@rockcarver/frodo-cli 5.0.0-15 → 5.0.0-16

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/app.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-Ctb5zv51.cjs");
2
2
  const require_Console = require("./Console-BwGVpCp2.cjs");
3
- const require_FrodoCommand = require("./FrodoCommand-Cs3PkII9.cjs");
4
- const require_EscapableSelectPrompt = require("./EscapableSelectPrompt-Qp8BKiAa.cjs");
5
- const require_EntityPickers = require("./EntityPickers-NlzD18p4.cjs");
6
- const require_ResolveInteractiveInputs = require("./ResolveInteractiveInputs-BZUtDvaq.cjs");
7
- const require_DefaultsStore = require("./DefaultsStore-RlEkAWqT.cjs");
8
- const require_RealmPickers = require("./RealmPickers-egCrSB9q.cjs");
3
+ const require_FrodoCommand = require("./FrodoCommand-DV3xmgo5.cjs");
4
+ const require_EscapableSelectPrompt = require("./EscapableSelectPrompt-DCkRKbxL.cjs");
5
+ const require_ResolveInteractiveInputs = require("./ResolveInteractiveInputs-up9YUHQr.cjs");
6
+ const require_EntityPickers = require("./EntityPickers-DTtIJ6xb.cjs");
7
+ const require_DefaultsStore = require("./DefaultsStore-Cb7yMNHY.cjs");
8
+ const require_RealmPickers = require("./RealmPickers-CU6P0yV8.cjs");
9
9
  const require_RealmOps = require("./RealmOps-Bl6aelFC.cjs");
10
10
  let util = require("util");
11
11
  util = require_rolldown_runtime.__toESM(util, 1);
@@ -1493,7 +1493,7 @@ const { CLOUD_DEPLOYMENT_TYPE_KEY: CLOUD_DEPLOYMENT_TYPE_KEY$176, FORGEOPS_DEPLO
1493
1493
  const deploymentTypes$187 = [CLOUD_DEPLOYMENT_TYPE_KEY$176, FORGEOPS_DEPLOYMENT_TYPE_KEY$131];
1494
1494
  function setup$402() {
1495
1495
  const program = new require_FrodoCommand.FrodoCommand("frodo admin create-oauth2-client-with-admin-privileges", [], deploymentTypes$187);
1496
- program.description("Create an oauth2 client with admin privileges.").addOption(new require_FrodoCommand.Option("--client-id [id]", "Client id.")).addOption(new require_FrodoCommand.Option("--client-secret [secret]", "Client secret.")).addOption(new require_FrodoCommand.Option("--llt", "Create a long-lived token and store it in a secret. The default secret name is esv-admin-token and the default token lifetime is 315,360,000 seconds (10 years). Both can be overwritten with the --llt-esv and --llt-ttl options.")).addOption(new require_FrodoCommand.Option("--llt-scope [scope]", "Request the following scope(s). This option only applies if used with the --llt option.").default("fr:idm:*", "fr:idm:*")).addOption(new require_FrodoCommand.Option("--llt-esv [esv]", "Name of the secret to store the token in. This option only applies if used with the --llt option.").default("esv-admin-token", "esv-admin-token")).addOption(new require_FrodoCommand.Option("--no-llt-esv", "Don't store the token in a secret and output to console instead. This option only applies if used with the --llt option.")).addOption(new require_FrodoCommand.Option("--llt-ttl [ttl]", "Token lifetime (seconds). This option only applies if used with the --llt option.").default(31536e4, "315,360,000 seconds (10 years)")).action(async (host, realm, user, password, options, command) => {
1496
+ program.description("Create an oauth2 client with admin privileges.").addOption(new require_FrodoCommand.Option("--client-id <id>", "Client id.")).addOption(new require_FrodoCommand.SecretOption("--client-secret [secret]", "Client secret.")).addOption(new require_FrodoCommand.Option("--llt", "Create a long-lived token and store it in a secret. The default secret name is esv-admin-token and the default token lifetime is 315,360,000 seconds (10 years). Both can be overwritten with the --llt-esv and --llt-ttl options.")).addOption(new require_FrodoCommand.Option("--llt-scope <scope>", "Request the following scope(s). This option only applies if used with the --llt option.").default("fr:idm:*", "fr:idm:*")).addOption(new require_FrodoCommand.Option("--llt-esv <esv>", "Name of the secret to store the token in. This option only applies if used with the --llt option.").default("esv-admin-token", "esv-admin-token")).addOption(new require_FrodoCommand.Option("--no-llt-esv", "Don't store the token in a secret and output to console instead. This option only applies if used with the --llt option.")).addOption(new require_FrodoCommand.Option("--llt-ttl <ttl>", "Token lifetime (seconds). This option only applies if used with the --llt option.").default(31536e4, "315,360,000 seconds (10 years)")).action(async (host, realm, user, password, options, command) => {
1497
1497
  command.handleDefaultArgsAndOpts(host, realm, user, password, options, command);
1498
1498
  if (await require_FrodoCommand.getTokens(false, true, deploymentTypes$187)) {
1499
1499
  require_Console.printMessage(`Creating oauth2 client with admin privileges in realm "${require_Console.state.getRealm()}"...`);
@@ -1587,7 +1587,7 @@ const journeyMarkdownFile = "ZionLogin.md";
1587
1587
  //#region src/cli/admin/admin-execute-rfc7523-authz-grant-flow.ts
1588
1588
  function setup$401() {
1589
1589
  const program = new require_FrodoCommand.FrodoCommand("frodo admin execute-rfc7523-authz-grant-flow");
1590
- program.description("Execute RFC7523 authorization grant flow.").addOption(new require_FrodoCommand.Option("--client-id [id]", "Client id.")).addOption(new require_FrodoCommand.Option("--jwk-file [file]", "Path to JSON Web Key (JWK) file containing private key.")).addOption(new require_FrodoCommand.Option("--sub [subject]", "Subject identifier, typically a UUID. Must resolve to a valid user in the realm.")).addOption(new require_FrodoCommand.Option("--iss [issuer]", "Trusted issuer, typically a URL.")).addOption(new require_FrodoCommand.Option("--scope [scope]", "Space-delimited list of scopes.").default("openid fr:am:* fr:idm:*")).addOption(new require_FrodoCommand.Option("--json", "Output in JSON format.")).addHelpText("after", "Usage Examples:\n If you used frodo to create the RFC7523 configuration (see 'Related Commands' below), then you can test your configuration with minimal input and frodo will locate the missing parameters. The command below returns access token and identity token:\n" + require_Console.theme.command(` $ frodo admin execute-rfc7523-authz-grant-flow --client-id rfc7523-client1 ${amBaseUrl}\n`) + ` Same as above but output raw json:\n` + require_Console.theme.command(` $ frodo admin execute-rfc7523-authz-grant-flow --client-id rfc7523-client1 --json ${amBaseUrl}\n`) + ` Same as first command above but explicitly provide all parameters:\n` + require_Console.theme.command(` $ frodo admin execute-rfc7523-authz-grant-flow --client-id rfc7523-client1 --iss https://my-issuer.com/issuer --sub 146c2230-9448-4442-b86d-eb4a81a0121d --jwk-file rfc7523-client1_private.jwk.json ${amBaseUrl}\n`) + `\nRelated Commands:\n Run ${require_Console.theme.command("frodo admin generate-rfc7523-authz-grant-artefacts --help")} to see how to create the required configuration artefacts for ${require_Console.theme.command("frodo admin execute-rfc7523-authz-grant-flow")}:\n`).action(async (host, realm, user, password, options, command) => {
1590
+ program.description("Execute RFC7523 authorization grant flow.").addOption(new require_FrodoCommand.Option("--client-id <id>", "Client id.")).addOption(new require_FrodoCommand.Option("--jwk-file <file>", "Path to JSON Web Key (JWK) file containing private key.")).addOption(new require_FrodoCommand.Option("--sub <subject>", "Subject identifier, typically a UUID. Must resolve to a valid user in the realm.")).addOption(new require_FrodoCommand.Option("--iss <issuer>", "Trusted issuer, typically a URL.")).addOption(new require_FrodoCommand.Option("--scope <scope>", "Space-delimited list of scopes.").default("openid fr:am:* fr:idm:*")).addOption(new require_FrodoCommand.Option("--json", "Output in JSON format.")).addHelpText("after", "Usage Examples:\n If you used frodo to create the RFC7523 configuration (see 'Related Commands' below), then you can test your configuration with minimal input and frodo will locate the missing parameters. The command below returns access token and identity token:\n" + require_Console.theme.command(` $ frodo admin execute-rfc7523-authz-grant-flow --client-id rfc7523-client1 ${amBaseUrl}\n`) + ` Same as above but output raw json:\n` + require_Console.theme.command(` $ frodo admin execute-rfc7523-authz-grant-flow --client-id rfc7523-client1 --json ${amBaseUrl}\n`) + ` Same as first command above but explicitly provide all parameters:\n` + require_Console.theme.command(` $ frodo admin execute-rfc7523-authz-grant-flow --client-id rfc7523-client1 --iss https://my-issuer.com/issuer --sub 146c2230-9448-4442-b86d-eb4a81a0121d --jwk-file rfc7523-client1_private.jwk.json ${amBaseUrl}\n`) + `\nRelated Commands:\n Run ${require_Console.theme.command("frodo admin generate-rfc7523-authz-grant-artefacts --help")} to see how to create the required configuration artefacts for ${require_Console.theme.command("frodo admin execute-rfc7523-authz-grant-flow")}:\n`).action(async (host, realm, user, password, options, command) => {
1591
1591
  command.handleDefaultArgsAndOpts(host, realm, user, password, options, command);
1592
1592
  if (await require_FrodoCommand.getTokens()) {
1593
1593
  require_Console.printMessage(`Executing RFC7523 authorization grant flow...`);
@@ -1904,7 +1904,7 @@ function setup$397() {
1904
1904
  //#region src/cli/admin/admin-generate-rfc7523-authz-grant-artefacts.ts
1905
1905
  function setup$396() {
1906
1906
  const program = new require_FrodoCommand.FrodoCommand("frodo admin generate-rfc7523-authz-grant-artefacts");
1907
- program.description("Generate RFC7523 authorization grant artefacts.").addOption(new require_FrodoCommand.Option("--client-id [id]", "Client id.")).addOption(new require_FrodoCommand.Option("--jwk-file [file]", "Path to JSON Web Key (JWK) file containing private key.")).addOption(new require_FrodoCommand.Option("--sub [subject]", "Subject identifier, typically a UUID. Must resolve to a valid user in the realm. Restricts the trusted issuer to only this subject by adding the identifier to the list of allowed subjects. Omitting this option allows the trusted issuer to request tokens for any realm user without restrictions.")).addOption(new require_FrodoCommand.Option("--iss [issuer]", "Trusted issuer, typically a URL.")).addOption(new require_FrodoCommand.Option("--scope [scope]", "Space-delimited list of scopes.").default("openid fr:am:* fr:idm:*")).addOption(new require_FrodoCommand.Option("--no-save", "Do not save artefacts in AM and to file By default this command creates a fully configured oauth2 client and trusted issuer in AM and saves the generated JWK (private key) and JWKS (public key set) to files.")).addOption(new require_FrodoCommand.Option("--json", "Output in JSON format.")).addHelpText("after", "Usage Examples:\n Generate, output to console, and save all the artefacts for an RFC7523 authorization grant flow configuration limited to one particular subject:\n - Fully configured OAuth2 client - named '<clientId>'\n - Fully configured OAuth2 trusted issuer - named '<clientId>-issuer'\n - Private Key as Json Web Key (JWK) - named '<clientId>_private.jwk.json'\n - Public Key as Json Web Key Set (JWKS) - named '<clientId>_public.jwks.json'\n" + require_Console.theme.command(` $ frodo admin generate-rfc7523-authz-grant-artefacts --client-id rfc7523-client1 --iss https://my-issuer.com/issuer --sub 146c2230-9448-4442-b86d-eb4a81a0121d ${amBaseUrl}\n`) + ` Same as above but use an existing JWK file instead of creating one.\n` + require_Console.theme.command(` $ frodo admin generate-rfc7523-authz-grant-artefacts --client-id rfc7523-client1 --iss https://my-issuer.com/issuer --sub 146c2230-9448-4442-b86d-eb4a81a0121d --jwk-file rfc7523-client1_private.jwk.json ${amBaseUrl}\n`) + ` Generate and output to console all the artefacts for an RFC7523 authorization grant flow configuration but do not create any configuration or files.\n` + require_Console.theme.command(` $ frodo admin generate-rfc7523-authz-grant-artefacts --client-id rfc7523-client1 --iss https://my-issuer.com/issuer --sub 146c2230-9448-4442-b86d-eb4a81a0121d --no-save ${amBaseUrl}\n`) + ` Generate and output in json format all the artefacts for an RFC7523 authorization grant flow configuration.\n` + require_Console.theme.command(` $ frodo admin generate-rfc7523-authz-grant-artefacts --client-id rfc7523-client1 --iss https://my-issuer.com/issuer --sub 146c2230-9448-4442-b86d-eb4a81a0121d --json ${amBaseUrl}\n`) + `\nRelated Commands:\n Run ${require_Console.theme.command("frodo admin execute-rfc7523-authz-grant-flow --help")} to see how to test your configuration created with ${require_Console.theme.command("frodo admin generate-rfc7523-authz-grant-artefacts")}:\n`).action(async (host, realm, user, password, options, command) => {
1907
+ program.description("Generate RFC7523 authorization grant artefacts.").addOption(new require_FrodoCommand.Option("--client-id <id>", "Client id.")).addOption(new require_FrodoCommand.Option("--jwk-file <file>", "Path to JSON Web Key (JWK) file containing private key.")).addOption(new require_FrodoCommand.Option("--sub <subject>", "Subject identifier, typically a UUID. Must resolve to a valid user in the realm. Restricts the trusted issuer to only this subject by adding the identifier to the list of allowed subjects. Omitting this option allows the trusted issuer to request tokens for any realm user without restrictions.")).addOption(new require_FrodoCommand.Option("--iss <issuer>", "Trusted issuer, typically a URL.")).addOption(new require_FrodoCommand.Option("--scope <scope>", "Space-delimited list of scopes.").default("openid fr:am:* fr:idm:*")).addOption(new require_FrodoCommand.Option("--no-save", "Do not save artefacts in AM and to file By default this command creates a fully configured oauth2 client and trusted issuer in AM and saves the generated JWK (private key) and JWKS (public key set) to files.")).addOption(new require_FrodoCommand.Option("--json", "Output in JSON format.")).addHelpText("after", "Usage Examples:\n Generate, output to console, and save all the artefacts for an RFC7523 authorization grant flow configuration limited to one particular subject:\n - Fully configured OAuth2 client - named '<clientId>'\n - Fully configured OAuth2 trusted issuer - named '<clientId>-issuer'\n - Private Key as Json Web Key (JWK) - named '<clientId>_private.jwk.json'\n - Public Key as Json Web Key Set (JWKS) - named '<clientId>_public.jwks.json'\n" + require_Console.theme.command(` $ frodo admin generate-rfc7523-authz-grant-artefacts --client-id rfc7523-client1 --iss https://my-issuer.com/issuer --sub 146c2230-9448-4442-b86d-eb4a81a0121d ${amBaseUrl}\n`) + ` Same as above but use an existing JWK file instead of creating one.\n` + require_Console.theme.command(` $ frodo admin generate-rfc7523-authz-grant-artefacts --client-id rfc7523-client1 --iss https://my-issuer.com/issuer --sub 146c2230-9448-4442-b86d-eb4a81a0121d --jwk-file rfc7523-client1_private.jwk.json ${amBaseUrl}\n`) + ` Generate and output to console all the artefacts for an RFC7523 authorization grant flow configuration but do not create any configuration or files.\n` + require_Console.theme.command(` $ frodo admin generate-rfc7523-authz-grant-artefacts --client-id rfc7523-client1 --iss https://my-issuer.com/issuer --sub 146c2230-9448-4442-b86d-eb4a81a0121d --no-save ${amBaseUrl}\n`) + ` Generate and output in json format all the artefacts for an RFC7523 authorization grant flow configuration.\n` + require_Console.theme.command(` $ frodo admin generate-rfc7523-authz-grant-artefacts --client-id rfc7523-client1 --iss https://my-issuer.com/issuer --sub 146c2230-9448-4442-b86d-eb4a81a0121d --json ${amBaseUrl}\n`) + `\nRelated Commands:\n Run ${require_Console.theme.command("frodo admin execute-rfc7523-authz-grant-flow --help")} to see how to test your configuration created with ${require_Console.theme.command("frodo admin generate-rfc7523-authz-grant-artefacts")}:\n`).action(async (host, realm, user, password, options, command) => {
1908
1908
  command.handleDefaultArgsAndOpts(host, realm, user, password, options, command);
1909
1909
  if (await require_FrodoCommand.getTokens()) {
1910
1910
  require_Console.printMessage(`Generating RFC7523 authorization grant artefacts in realm "${require_Console.state.getRealm()}"...`);
@@ -1927,7 +1927,7 @@ function setup$396() {
1927
1927
  const { clientCredentialsGrant } = require_Console.frodo.oauth2oidc.endpoint;
1928
1928
  function setup$395() {
1929
1929
  const program = new require_FrodoCommand.FrodoCommand("frodo admin get-access-token");
1930
- program.description("Get an access token using client credentials grant type.").addOption(new require_FrodoCommand.Option("-i, --client-id [id]", "Client id.").makeOptionMandatory()).addOption(new require_FrodoCommand.Option("-s, --client-secret [secret]", "Client secret.").makeOptionMandatory()).addOption(new require_FrodoCommand.Option("--scope [scope]", "Request the following scope(s).").default("fr:idm:*", "fr:idm:*")).action(async (host, realm, user, password, options, command) => {
1930
+ program.description("Get an access token using client credentials grant type.").addOption(new require_FrodoCommand.Option("-i, --client-id <id>", "Client id.").makeOptionMandatory()).addOption(new require_FrodoCommand.SecretOption("-s, --client-secret [secret]", "Client secret.").makeOptionMandatory()).addOption(new require_FrodoCommand.Option("--scope <scope>", "Request the following scope(s).").default("fr:idm:*", "fr:idm:*")).action(async (host, realm, user, password, options, command) => {
1931
1931
  command.handleDefaultArgsAndOpts(host, realm, user, password, options, command);
1932
1932
  if (await require_FrodoCommand.getTokens()) {
1933
1933
  require_Console.printMessage(`Getting an access token using client "${options.clientId}"...`);
@@ -8265,7 +8265,7 @@ async function configManagerExportRaw(file) {
8265
8265
  * directory, a 0600 file, removed again in every case).
8266
8266
  */
8267
8267
  function readRawConfigFromStdin() {
8268
- const text = require_FrodoCommand.readStdinToEndSync();
8268
+ const text = require_ResolveInteractiveInputs.readStdinToEndSync();
8269
8269
  const dir = fs.default.mkdtempSync(path.default.join(os.default.tmpdir(), "frodo-stdin-"));
8270
8270
  try {
8271
8271
  const file = path.default.join(dir, "stdin.json");
@@ -12176,7 +12176,7 @@ const { CLOUD_DEPLOYMENT_TYPE_KEY: CLOUD_DEPLOYMENT_TYPE_KEY$85 } = require_Cons
12176
12176
  const { addNewServiceAccount, saveConnectionProfile: saveConnectionProfile$5 } = require_Console.frodo.conn;
12177
12177
  function setup$229() {
12178
12178
  const program = new require_FrodoCommand.FrodoCommand("frodo conn save", ["realm"]);
12179
- program.alias("add").description("Save connection profiles.").addOption(new require_FrodoCommand.Option("--no-sa", "Do not create and add service account. Cannot be used with --sa-id or --sa-jwk-file.").conflicts(["saId", "saJwkFile"])).addOption(new require_FrodoCommand.Option("--log-api-key [key]", "Log API key. If specified, must also include --log-api-secret. Cannot be used with --no-log-api.").conflicts(["logApi"])).addOption(new require_FrodoCommand.Option("--log-api-secret [secret]", "Log API secret. If specified, must also include --log-api-key. Cannot be used with --no-log-api.").conflicts(["logApi"])).addOption(new require_FrodoCommand.Option("--no-log-api", "Do not create and add log API key and secret.").conflicts(["logApiKey", "logApiSecret"])).addOption(new require_FrodoCommand.Option("--no-validate", "Do not validate connection.")).addOption(new require_FrodoCommand.Option("--authentication-service [service]", "Name of the authentication service/tree to use.")).addOption(new require_FrodoCommand.Option("--authentication-header-overrides [headers]", `Map of headers: '{"host":"am.example.com:8081"}'. These headers are sent with all requests and can be used to override default behavior, for example to set a custom host header for Proxy Connect-protected PingOne Advanced Identity Cloud environments.`)).addOption(new require_FrodoCommand.Option("--configuration-header-overrides [headers]", `Map of headers: '{"X-Configuration-Type":"mutable"}'. These headers are sent with all configuration requests and can be used to override default behavior, for example to set a custom configuration header for mutable PingOne Advanced Identity Cloud environments.`)).addOption(new require_FrodoCommand.Option("--alias [name]", "Alias name for this connection profile.")).addOption(require_FrodoCommand.preferredCredentialOption).addOption(new require_FrodoCommand.Option("--preferred-device-flow", "Only meaningful with --preferred-credential browser: persist a preference for the OAuth2 Device Authorization Grant over the default loopback-redirect flow, so later implicit commands against this host use it without repeating --device.")).addOption(new require_FrodoCommand.Option("--no-preferred-device-flow", "Explicitly persist a preference against device flow (loopback-redirect instead). Omit both flags to leave any existing preference untouched.")).addHelpText("after", "Usage Examples:\n Create a connection profile with a new log API key and secret and a new service account:\n" + require_Console.theme.command(` $ frodo conn save ${amBaseUrl} ${username} '${password}'\n`) + ` Create a connection profile using Amster private key credentials (PingAM classic deployments only):\n` + require_Console.theme.command(` $ frodo conn save --private-key ${amsterPrivateKey} ${amClassicBaseUrl}\n`) + ` Create a connection profile with a new log API key and secret and a new service account and set an alias:\n` + require_Console.theme.command(` $ frodo conn save --alias ${alias} ${amBaseUrl} ${username} '${password}'\n`) + ` Save an existing service account to an existing or new connection profile:\n` + require_Console.theme.command(` $ frodo conn save --sa-id ${saId} --sa-jwk-file ${saJwkFile} ${amBaseUrl}\n`) + ` Save an existing service account to an existing or new connection profile and set an alias:\n` + require_Console.theme.command(` $ frodo conn save --alias ${alias} --sa-id ${saId} --sa-jwk-file ${saJwkFile} ${amBaseUrl}\n`) + ` Save an existing service account to an existing connection profile (partial host URL only updates an existing profile):\n` + require_Console.theme.command(` $ frodo conn save --sa-id ${saId} --sa-jwk-file ${saJwkFile} ${connId}\n`) + ` Save a connection profile for a Proxy Connect-protected PingOne Advanced Identity Cloud environment:\n` + require_Console.theme.command(` $ frodo conn save --authentication-header-overrides '{"MY-SECRET-HEADER": "proxyconnect secret header value"}' ${amBaseUrl} ${username} '${password}'\n`) + ` Update an existing connection profile with a custom header override for a freshly Proxy Connect-protected PingOne Advanced Identity Cloud environment:\n` + require_Console.theme.command(` $ frodo conn save --authentication-header-overrides '{"MY-SECRET-HEADER": "proxyconnect secret header value"}' ${connId}\n`) + ` Save a connection profile for a mutable PingOne Advanced Identity Cloud environment:\n` + require_Console.theme.command(` $ frodo conn save --configuration-header-overrides '{"X-Configuration-Type": "mutable"}' ${amBaseUrl} ${username} '${password}'\n`) + ` Update an existing connection profile with a configuration header override for a freshly mutable PingOne Advanced Identity Cloud environment:\n` + require_Console.theme.command(` $ frodo conn save --configuration-header-overrides '{"X-Configuration-Type": "mutable"}' ${connId}\n`) + ` Update an existing connection profile to use Amster private key credentials with a custom Amster journey (PingAM classic deployments only):\n` + require_Console.theme.command(` $ frodo conn save --private-key ${amsterPrivateKey} --authentication-service ${customAmsterService} ${classicConnId}\n`) + ` Update an existing connection profile (with both a service account and a username/password already saved) to prefer the plain user by default:\n` + require_Console.theme.command(` $ frodo conn save --preferred-credential user ${connId}\n`)).action(async (host, user, password, options, command) => {
12179
+ program.alias("add").description("Save connection profiles.").addOption(new require_FrodoCommand.Option("--no-sa", "Do not create and add service account. Cannot be used with --sa-id or --sa-jwk-file.").conflicts(["saId", "saJwkFile"])).addOption(new require_FrodoCommand.Option("--log-api-key <key>", "Log API key. If specified, must also include --log-api-secret. Cannot be used with --no-log-api.").conflicts(["logApi"])).addOption(new require_FrodoCommand.SecretOption("--log-api-secret [secret]", "Log API secret. If specified, must also include --log-api-key. Cannot be used with --no-log-api.").conflicts(["logApi"])).addOption(new require_FrodoCommand.Option("--no-log-api", "Do not create and add log API key and secret.").conflicts(["logApiKey", "logApiSecret"])).addOption(new require_FrodoCommand.Option("--no-validate", "Do not validate connection.")).addOption(new require_FrodoCommand.Option("--authentication-service <service>", "Name of the authentication service/tree to use.")).addOption(new require_FrodoCommand.Option("--authentication-header-overrides <headers>", `Map of headers: '{"host":"am.example.com:8081"}'. These headers are sent with all requests and can be used to override default behavior, for example to set a custom host header for Proxy Connect-protected PingOne Advanced Identity Cloud environments.`)).addOption(new require_FrodoCommand.Option("--configuration-header-overrides <headers>", `Map of headers: '{"X-Configuration-Type":"mutable"}'. These headers are sent with all configuration requests and can be used to override default behavior, for example to set a custom configuration header for mutable PingOne Advanced Identity Cloud environments.`)).addOption(new require_FrodoCommand.Option("--alias <name>", "Alias name for this connection profile.")).addOption(require_FrodoCommand.preferredCredentialOption).addOption(new require_FrodoCommand.Option("--preferred-device-flow", "Only meaningful with --preferred-credential browser: persist a preference for the OAuth2 Device Authorization Grant over the default loopback-redirect flow, so later implicit commands against this host use it without repeating --device.")).addOption(new require_FrodoCommand.Option("--no-preferred-device-flow", "Explicitly persist a preference against device flow (loopback-redirect instead). Omit both flags to leave any existing preference untouched.")).addHelpText("after", "Usage Examples:\n Create a connection profile with a new log API key and secret and a new service account:\n" + require_Console.theme.command(` $ frodo conn save ${amBaseUrl} ${username} '${password}'\n`) + ` Create a connection profile using Amster private key credentials (PingAM classic deployments only):\n` + require_Console.theme.command(` $ frodo conn save --private-key ${amsterPrivateKey} ${amClassicBaseUrl}\n`) + ` Create a connection profile with a new log API key and secret and a new service account and set an alias:\n` + require_Console.theme.command(` $ frodo conn save --alias ${alias} ${amBaseUrl} ${username} '${password}'\n`) + ` Save an existing service account to an existing or new connection profile:\n` + require_Console.theme.command(` $ frodo conn save --sa-id ${saId} --sa-jwk-file ${saJwkFile} ${amBaseUrl}\n`) + ` Save an existing service account to an existing or new connection profile and set an alias:\n` + require_Console.theme.command(` $ frodo conn save --alias ${alias} --sa-id ${saId} --sa-jwk-file ${saJwkFile} ${amBaseUrl}\n`) + ` Save an existing service account to an existing connection profile (partial host URL only updates an existing profile):\n` + require_Console.theme.command(` $ frodo conn save --sa-id ${saId} --sa-jwk-file ${saJwkFile} ${connId}\n`) + ` Save a connection profile for a Proxy Connect-protected PingOne Advanced Identity Cloud environment:\n` + require_Console.theme.command(` $ frodo conn save --authentication-header-overrides '{"MY-SECRET-HEADER": "proxyconnect secret header value"}' ${amBaseUrl} ${username} '${password}'\n`) + ` Update an existing connection profile with a custom header override for a freshly Proxy Connect-protected PingOne Advanced Identity Cloud environment:\n` + require_Console.theme.command(` $ frodo conn save --authentication-header-overrides '{"MY-SECRET-HEADER": "proxyconnect secret header value"}' ${connId}\n`) + ` Save a connection profile for a mutable PingOne Advanced Identity Cloud environment:\n` + require_Console.theme.command(` $ frodo conn save --configuration-header-overrides '{"X-Configuration-Type": "mutable"}' ${amBaseUrl} ${username} '${password}'\n`) + ` Update an existing connection profile with a configuration header override for a freshly mutable PingOne Advanced Identity Cloud environment:\n` + require_Console.theme.command(` $ frodo conn save --configuration-header-overrides '{"X-Configuration-Type": "mutable"}' ${connId}\n`) + ` Update an existing connection profile to use Amster private key credentials with a custom Amster journey (PingAM classic deployments only):\n` + require_Console.theme.command(` $ frodo conn save --private-key ${amsterPrivateKey} --authentication-service ${customAmsterService} ${classicConnId}\n`) + ` Update an existing connection profile (with both a service account and a username/password already saved) to prefer the plain user by default:\n` + require_Console.theme.command(` $ frodo conn save --preferred-credential user ${connId}\n`)).action(async (host, user, password, options, command) => {
12180
12180
  command.handleDefaultArgsAndOpts(host, user, password, options, command);
12181
12181
  const aliasOwner = findAliasConflict(host, options.alias);
12182
12182
  if (aliasOwner) {
@@ -12399,7 +12399,11 @@ const { loadConnectionProfileByHost, saveConnectionProfile: saveConnectionProfil
12399
12399
  */
12400
12400
  function setup$223() {
12401
12401
  const program = new require_FrodoCommand.FrodoCommand("frodo conn set", ["realm"]);
12402
- program.description("Set fields of an existing connection profile. Only the fields given on the command line change; everything else stays as-is. Run 'frodo conn set' without any field option to list the settable fields.").addOption(new require_FrodoCommand.Option("--username [username]", "Username to login with.")).addOption(new require_FrodoCommand.Option("--password [password]", "Password for the username. Given without a value, reads it from stdin non-interactively (echo off) when piped; prompts securely on an interactive terminal.")).addOption(new require_FrodoCommand.Option("--alias [name]", "Alias name for this connection profile.")).addOption(new require_FrodoCommand.Option("--log-api-key [key]", "Log API key.")).addOption(new require_FrodoCommand.Option("--log-api-secret [secret]", "Log API secret.")).addOption(new require_FrodoCommand.Option("--authentication-service [service]", "Name of the authentication service/tree to use.")).addOption(new require_FrodoCommand.Option("--authentication-header-overrides [headers]", "Map of headers: '{\"host\":\"am.example.com:8081\"}'. These headers are sent with all requests.")).addOption(new require_FrodoCommand.Option("--configuration-header-overrides [headers]", "Map of headers: '{\"X-Configuration-Type\":\"mutable\"}'. These headers are sent with all configuration requests.")).addOption(require_FrodoCommand.preferredCredentialOption).addOption(new require_FrodoCommand.Option("--preferred-device-flow", "Persist a preference for the OAuth2 Device Authorization Grant over the default loopback-redirect flow (only meaningful with --preferred-credential browser).")).addOption(new require_FrodoCommand.Option("--no-preferred-device-flow", "Explicitly persist a preference against device flow (loopback-redirect instead).")).addOption(new require_FrodoCommand.Option("--allow-insecure", "Allow insecure connections when using SSL/TLS (persisted on the profile).")).addOption(new require_FrodoCommand.Option("--no-validate", "Do not validate the connection after setting the fields.")).skipConnectionPromptsWhen((command) => !require_RealmPickers.positionalValue(command, "host") && !require_Console.state.getHost() && namedFields(command.opts()).length === 0).addHelpText("after", "Usage Examples:\n List the settable fields:\n $ frodo conn set\n Change a profile's stored password (validates the connection):\n" + require_Console.theme.command(` $ frodo conn set ${connId} --password '${password}'\n`) + ` Point a profile at a new username and validate:\n` + require_Console.theme.command(` $ frodo conn set ${connId} --username ${username}\n`) + ` Set the preferred credential and an alias in one shot:\n` + require_Console.theme.command(` $ frodo conn set ${connId} --preferred-credential user --alias prod\n`)).action(async (host, user, password, options, command) => {
12402
+ program.description("Set fields of an existing connection profile. Only the fields given on the command line change; everything else stays as-is. Run 'frodo conn set' without any field option to list the settable fields.").addOption(new require_FrodoCommand.Option("--username <username>", "Username to login with.")).addOption(new require_FrodoCommand.SecretOption("--password [password]", "Password for the username. Put the host before this option, or a host given after it is taken as the password.")).addOption(new require_FrodoCommand.Option("--alias <name>", "Alias name for this connection profile.")).addOption(new require_FrodoCommand.Option("--log-api-key <key>", "Log API key.")).addOption(new require_FrodoCommand.SecretOption("--log-api-secret [secret]", "Log API secret. It goes with the profile's log API key; give --log-api-key as well to change both.")).addOption(new require_FrodoCommand.Option("--authentication-service <service>", "Name of the authentication service/tree to use.")).addOption(new require_FrodoCommand.Option("--authentication-header-overrides <headers>", "Map of headers: '{\"host\":\"am.example.com:8081\"}'. These headers are sent with all requests.")).addOption(new require_FrodoCommand.Option("--configuration-header-overrides <headers>", "Map of headers: '{\"X-Configuration-Type\":\"mutable\"}'. These headers are sent with all configuration requests.")).addOption(require_FrodoCommand.preferredCredentialOption).addOption(new require_FrodoCommand.Option("--preferred-device-flow", "Persist a preference for the OAuth2 Device Authorization Grant over the default loopback-redirect flow (only meaningful with --preferred-credential browser).")).addOption(new require_FrodoCommand.Option("--no-preferred-device-flow", "Explicitly persist a preference against device flow (loopback-redirect instead).")).addOption(new require_FrodoCommand.Option("--allow-insecure", "Allow insecure connections when using SSL/TLS (persisted on the profile).")).addOption(new require_FrodoCommand.Option("--no-validate", "Do not validate the connection after setting the fields.")).skipConnectionPromptsWhen((command) => {
12403
+ const hostGiven = !!require_RealmPickers.positionalValue(command, "host") || !!require_Console.state.getHost();
12404
+ if (!hostGiven && namedFields(command.opts()).length === 0) return true;
12405
+ return hostGiven && command.getOptionValue("password") !== void 0;
12406
+ }).addHelpText("after", "Usage Examples:\n List the settable fields:\n $ frodo conn set\n Change a profile's stored password (validates the connection):\n" + require_Console.theme.command(` $ frodo conn set ${connId} --password '${password}'\n`) + ` Change it without putting it on the command line (a piped value is read from stdin):\n` + require_Console.theme.command(` $ echo "$FRODO_NEW_PASSWORD" | frodo conn set ${connId} --password\n`) + ` Point a profile at a new username and validate:\n` + require_Console.theme.command(` $ frodo conn set ${connId} --username ${username}\n`) + ` Set the preferred credential and an alias in one shot:\n` + require_Console.theme.command(` $ frodo conn set ${connId} --preferred-credential user --alias prod\n`)).action(async (host, user, password, options, command) => {
12403
12407
  command.handleDefaultArgsAndOpts(host, user, password, options, command);
12404
12408
  const given = namedFields(options);
12405
12409
  if (given.length === 0) {
@@ -15462,7 +15466,7 @@ const { CLOUD_DEPLOYMENT_TYPE_KEY: CLOUD_DEPLOYMENT_TYPE_KEY$74 } = require_Cons
15462
15466
  const deploymentTypes$90 = [CLOUD_DEPLOYMENT_TYPE_KEY$74];
15463
15467
  function setup$202() {
15464
15468
  const program = new require_FrodoCommand.FrodoCommand("frodo esv secret create", ["realm"], deploymentTypes$90);
15465
- program.description("Create secrets.").requiredOption("-i, --secret-id <secret-id>", "Secret id.").addOption(new require_FrodoCommand.Option("--value <value>", "Secret value. Cannot be used with -f.").conflicts(["file"])).addOption(new require_FrodoCommand.Option("-f, --file [file]", "Name of the file to read pem or base64hmac encoded secret from. Cannot be used with --value.").conflicts(["value"])).option("--description [description]", "Secret description.").addOption(new require_FrodoCommand.Option("--encoding [encoding]", "Secret encoding").choices([
15469
+ program.description("Create secrets.").requiredOption("-i, --secret-id <secret-id>", "Secret id.").addOption(new require_FrodoCommand.Option("--value <value>", "Secret value. Cannot be used with -f.").conflicts(["file"])).addOption(new require_FrodoCommand.Option("-f, --file [file]", "Name of the file to read pem or base64hmac encoded secret from. Cannot be used with --value.").conflicts(["value"])).option("--description <description>", "Secret description.").addOption(new require_FrodoCommand.Option("--encoding <encoding>", "Secret encoding").choices([
15466
15470
  "generic",
15467
15471
  "pem",
15468
15472
  "base64hmac"
@@ -16276,7 +16280,7 @@ const { CLOUD_DEPLOYMENT_TYPE_KEY: CLOUD_DEPLOYMENT_TYPE_KEY$61 } = require_Cons
16276
16280
  const deploymentTypes$77 = [CLOUD_DEPLOYMENT_TYPE_KEY$61];
16277
16281
  function setup$187() {
16278
16282
  const program = new require_FrodoCommand.FrodoCommand("frodo esv variable create", ["realm"], deploymentTypes$77);
16279
- program.description("Create variables.").requiredOption("-i, --variable-id <variable-id>", "Variable id.").requiredOption("--value <value>", "Variable value.").option("--description [description]", "Variable description.").option("--variable-type [variable-type]", "Variable type. Must be one of \"string\", \"list\", \"array\", \"object\", \"bool\", \"int\", or \"number\".", "string").addHelpText("after", "Usage Examples:\n Create an ESV variable using implied default type \"string\":\n" + require_Console.theme.command(` $ frodo esv variable create --variable-id "esv-trinity-phone" --value "(312)-555-0690" --description "Trinity's phone number." ${connId}\n`) + ` Create an ESV variable of type "array":\n` + require_Console.theme.command(` $ frodo esv variable create --variable-id "esv-nebuchadnezzar-crew" --variable-type array --value '["Morpheus","Trinity","Link","Tank","Dozer","Apoc","Cypher","Mouse","Neo","Switch"]' --description "The crew of the Nebuchadnezzar hovercraft." ${connId}\n`) + ` Create an ESV variable of type "object":\n` + require_Console.theme.command(` $ frodo esv variable create --variable-id "esv-nebuchadnezzar-crew-structure" --variable-type object --value '{"Captain":"Morpheus","FirstMate":"Trinity","Operator":["Link","Tank"],"Medic":"Dozer","Crewmen":["Apoc","Cypher","Mouse","Neo","Switch"]}' --description "The structure of the crew of the Nebuchadnezzar hovercraft." ${connId}\n`) + ` Create an ESV variable of type "int":\n` + require_Console.theme.command(` $ frodo esv variable create --variable-id "esv-neo-age" --variable-type int --value '28' --description "Neo's age in the matrix." ${connId}\n`) + ` Create an ESV variable of type "bool":\n` + require_Console.theme.command(` $ frodo esv variable create --variable-id "esv-blue-piller" --variable-type bool --value 'false' --description "Zion membership criteria." ${connId}\n`)).action(async (host, user, password, options, command) => {
16283
+ program.description("Create variables.").requiredOption("-i, --variable-id <variable-id>", "Variable id.").requiredOption("--value <value>", "Variable value.").option("--description <description>", "Variable description.").option("--variable-type <variable-type>", "Variable type. Must be one of \"string\", \"list\", \"array\", \"object\", \"bool\", \"int\", or \"number\".", "string").addHelpText("after", "Usage Examples:\n Create an ESV variable using implied default type \"string\":\n" + require_Console.theme.command(` $ frodo esv variable create --variable-id "esv-trinity-phone" --value "(312)-555-0690" --description "Trinity's phone number." ${connId}\n`) + ` Create an ESV variable of type "array":\n` + require_Console.theme.command(` $ frodo esv variable create --variable-id "esv-nebuchadnezzar-crew" --variable-type array --value '["Morpheus","Trinity","Link","Tank","Dozer","Apoc","Cypher","Mouse","Neo","Switch"]' --description "The crew of the Nebuchadnezzar hovercraft." ${connId}\n`) + ` Create an ESV variable of type "object":\n` + require_Console.theme.command(` $ frodo esv variable create --variable-id "esv-nebuchadnezzar-crew-structure" --variable-type object --value '{"Captain":"Morpheus","FirstMate":"Trinity","Operator":["Link","Tank"],"Medic":"Dozer","Crewmen":["Apoc","Cypher","Mouse","Neo","Switch"]}' --description "The structure of the crew of the Nebuchadnezzar hovercraft." ${connId}\n`) + ` Create an ESV variable of type "int":\n` + require_Console.theme.command(` $ frodo esv variable create --variable-id "esv-neo-age" --variable-type int --value '28' --description "Neo's age in the matrix." ${connId}\n`) + ` Create an ESV variable of type "bool":\n` + require_Console.theme.command(` $ frodo esv variable create --variable-id "esv-blue-piller" --variable-type bool --value 'false' --description "Zion membership criteria." ${connId}\n`)).action(async (host, user, password, options, command) => {
16280
16284
  command.handleDefaultArgsAndOpts(host, user, password, options, command);
16281
16285
  if (await require_FrodoCommand.getTokens(false, true, deploymentTypes$77)) {
16282
16286
  require_Console.verboseMessage("Creating variable...");
@@ -16426,7 +16430,7 @@ const { CLOUD_DEPLOYMENT_TYPE_KEY: CLOUD_DEPLOYMENT_TYPE_KEY$55 } = require_Cons
16426
16430
  const deploymentTypes$71 = [CLOUD_DEPLOYMENT_TYPE_KEY$55];
16427
16431
  function setup$181() {
16428
16432
  const program = new require_FrodoCommand.FrodoCommand("frodo esv variable set", ["realm"], deploymentTypes$71);
16429
- program.description("Set variable description.").requiredOption("-i, --variable-id <variable-id>", "Variable id.").option("--value [value]", "Variable value.").option("--description [description]", "Variable description.").action(async (host, user, password, options, command) => {
16433
+ program.description("Set variable description.").requiredOption("-i, --variable-id <variable-id>", "Variable id.").option("--value <value>", "Variable value.").option("--description <description>", "Variable description.").action(async (host, user, password, options, command) => {
16430
16434
  command.handleDefaultArgsAndOpts(host, user, password, options, command);
16431
16435
  if (!options.value && !options.description) {
16432
16436
  require_Console.printMessage("Provide --variable-id and either one or both of --value and --description.");
@@ -16704,7 +16708,7 @@ function setup$171() {
16704
16708
  "entitiesFile",
16705
16709
  "all",
16706
16710
  "allSeparate"
16707
- ])).addOption(new require_FrodoCommand.Option("-f, --file [file]", "Export file if -x or -a is provided. Cannot be used with -A.").conflicts(["allSeparate"])).addOption(new require_FrodoCommand.Option("-e, --entities-file [entities-file]", "Name of the entity file. Cannot be used with -i.").conflicts(["entityId"])).addOption(new require_FrodoCommand.Option("-a, --all", "Export all IDM configuration objects into a single file in directory -D. Cannot be used with -i or -A.").conflicts(["entityId", "allSeparate"])).addOption(new require_FrodoCommand.Option("-A, --all-separate", "Export all IDM configuration objects into separate JSON files in directory -D. Cannot be used with -i or -a.").conflicts(["entityId", "all"])).addOption(new require_FrodoCommand.Option("-N, --no-metadata", "Does not include metadata in the export file.")).addOption(new require_FrodoCommand.Option("-x, --no-extract", "Do not extract and save idm scripts and save to separate files. Cannot be used with -a.").default(true, "true")).requireOneOf({
16711
+ ])).addOption(new require_FrodoCommand.Option("-f, --file [file]", "Export file if -x or -a is provided. Cannot be used with -A.").conflicts(["allSeparate"])).addOption(new require_FrodoCommand.Option("-e, --entities-file <entities-file>", "Name of the entity file. Cannot be used with -i.").conflicts(["entityId"])).addOption(new require_FrodoCommand.Option("-a, --all", "Export all IDM configuration objects into a single file in directory -D. Cannot be used with -i or -A.").conflicts(["entityId", "allSeparate"])).addOption(new require_FrodoCommand.Option("-A, --all-separate", "Export all IDM configuration objects into separate JSON files in directory -D. Cannot be used with -i or -a.").conflicts(["entityId", "all"])).addOption(new require_FrodoCommand.Option("-N, --no-metadata", "Does not include metadata in the export file.")).addOption(new require_FrodoCommand.Option("-x, --no-extract", "Do not extract and save idm scripts and save to separate files. Cannot be used with -a.").default(true, "true")).requireOneOf({
16708
16712
  options: [
16709
16713
  "all",
16710
16714
  "allSeparate",
@@ -16746,7 +16750,7 @@ function setup$170() {
16746
16750
  "entitiesFile",
16747
16751
  "all",
16748
16752
  "allSeparate"
16749
- ])).addOption(new require_FrodoCommand.Option("-f, --file [file]", "Import file. Cannot be used with -A.").conflicts(["allSeparate"])).addOption(new require_FrodoCommand.Option("-e, --entities-file [entities-file]", "Name of the entity file. Cannot be used with -i.").conflicts(["entityId"])).addOption(new require_FrodoCommand.Option("-a, --all", "Import all IDM configuration objects from a single file in directory -D. Cannot be used with -i or -A.").conflicts(["entityId", "allSeparate"])).addOption(new require_FrodoCommand.Option("-A, --all-separate", "Import all IDM configuration objects from separate files in directory -D. Cannot be used with -i, -f or -a.").conflicts([
16753
+ ])).addOption(new require_FrodoCommand.Option("-f, --file [file]", "Import file. Cannot be used with -A.").conflicts(["allSeparate"])).addOption(new require_FrodoCommand.Option("-e, --entities-file <entities-file>", "Name of the entity file. Cannot be used with -i.").conflicts(["entityId"])).addOption(new require_FrodoCommand.Option("-a, --all", "Import all IDM configuration objects from a single file in directory -D. Cannot be used with -i or -A.").conflicts(["entityId", "allSeparate"])).addOption(new require_FrodoCommand.Option("-A, --all-separate", "Import all IDM configuration objects from separate files in directory -D. Cannot be used with -i, -f or -a.").conflicts([
16750
16754
  "entityId",
16751
16755
  "file",
16752
16756
  "all"
@@ -20168,7 +20172,7 @@ function setup$108() {
20168
20172
  program.enablePositionalOptions();
20169
20173
  program.addCommand(setup$109().name("setup"));
20170
20174
  program.mergeHeadingIntoOptions(require_FrodoCommand.AUTHENTICATION_OPTIONS_HEADING);
20171
- program.description("Authenticate to a cloud, forgeops, or classic deployment.").addOption(new require_FrodoCommand.Option("--login-scope <scope>", "Override the default OAuth2 scope requested for browser login. Ignored without --browser/--device. Defaults per deployment type: \ncloud: \"fr:am:* fr:idm:*\" \nforgeops: \"fr:idm:* openid\" \nclassic: \"openid\"")).addOption(new require_FrodoCommand.Option("--save", "Save a connection profile for this host after a successful login.")).addOption(new require_FrodoCommand.Option("--alias [name]", "Alias name for the saved connection profile. Ignored without --save. Lets later commands address this session by an alias.")).addOption(require_FrodoCommand.preferredCredentialOption).addHelpText("after", "Usage Examples:\n Login with a username and password:\n" + require_Console.theme.command(` $ frodo login ${amBaseUrl} ${username} '${password}'\n`) + ` Login with a username and password and save a connection profile:\n` + require_Console.theme.command(` $ frodo login --save ${amBaseUrl} ${username} '${password}'\n`) + ` Login via an interactive browser and save a connection profile so later commands reuse it:\n` + require_Console.theme.command(` $ frodo login --browser --save --type cloud ${amBaseUrl}\n`) + ` Login via an interactive browser and let frodo detect the deployment type from the host:\n` + require_Console.theme.command(` $ frodo login --browser --save ${amBaseUrl}\n`) + ` Login via the OAuth2 Device Authorization Grant, for headless/SSH sessions:\n` + require_Console.theme.command(` $ frodo login --device --save --type cloud ${amBaseUrl}\n`) + ` Login to two different hosts under different aliases, so later commands can address each one by its alias:\n` + require_Console.theme.command(` $ frodo login --browser --save --alias simulation --login-client-id ${loginClientId} --type forgeops ${amBaseUrl}\n $ frodo login --browser --save --alias reality --login-client-id ${loginClientId} --type forgeops ${amBaseUrl2}\n`)).action(async (host, user, password, options, command) => {
20175
+ program.description("Authenticate to a cloud, forgeops, or classic deployment.").addOption(new require_FrodoCommand.Option("--login-scope <scope>", "Override the default OAuth2 scope requested for browser login. Ignored without --browser/--device. Defaults per deployment type: \ncloud: \"fr:am:* fr:idm:*\" \nforgeops: \"fr:idm:* openid\" \nclassic: \"openid\"")).addOption(new require_FrodoCommand.Option("--save", "Save a connection profile for this host after a successful login.")).addOption(new require_FrodoCommand.Option("--alias <name>", "Alias name for the saved connection profile. Ignored without --save. Lets later commands address this session by an alias.")).addOption(require_FrodoCommand.preferredCredentialOption).addHelpText("after", "Usage Examples:\n Login with a username and password:\n" + require_Console.theme.command(` $ frodo login ${amBaseUrl} ${username} '${password}'\n`) + ` Login with a username and password and save a connection profile:\n` + require_Console.theme.command(` $ frodo login --save ${amBaseUrl} ${username} '${password}'\n`) + ` Login via an interactive browser and save a connection profile so later commands reuse it:\n` + require_Console.theme.command(` $ frodo login --browser --save --type cloud ${amBaseUrl}\n`) + ` Login via an interactive browser and let frodo detect the deployment type from the host:\n` + require_Console.theme.command(` $ frodo login --browser --save ${amBaseUrl}\n`) + ` Login via the OAuth2 Device Authorization Grant, for headless/SSH sessions:\n` + require_Console.theme.command(` $ frodo login --device --save --type cloud ${amBaseUrl}\n`) + ` Login to two different hosts under different aliases, so later commands can address each one by its alias:\n` + require_Console.theme.command(` $ frodo login --browser --save --alias simulation --login-client-id ${loginClientId} --type forgeops ${amBaseUrl}\n $ frodo login --browser --save --alias reality --login-client-id ${loginClientId} --type forgeops ${amBaseUrl2}\n`)).action(async (host, user, password, options, command) => {
20172
20176
  command.handleDefaultArgsAndOpts(host, user, password, options, command);
20173
20177
  if (require_Console.state.getAuthMode() === "interactive") {
20174
20178
  const tokens = await require_FrodoCommand.getTokensInteractive({
@@ -20231,6 +20235,7 @@ function setup$107() {
20231
20235
  require_EntityPickers.deferEntityPicks(program, [require_EntityPickers.entityPick({
20232
20236
  name: "mappingId",
20233
20237
  kind: "mapping",
20238
+ scopedBy: ["connectorId", "managedObjectType"],
20234
20239
  load: () => require_Console.frodo.idm.mapping.readMappings(program.getOptionValue("connectorId"), program.getOptionValue("managedObjectType")),
20235
20240
  label: (mapping) => mapping.displayName || mapping.name,
20236
20241
  description: (mapping) => mapping._id ?? ""
@@ -20469,7 +20474,7 @@ function setup$101() {
20469
20474
  }
20470
20475
  //#endregion
20471
20476
  //#region package.json
20472
- var version$1 = "5.0.0-15";
20477
+ var version$1 = "5.0.0-16";
20473
20478
  //#endregion
20474
20479
  //#region node_modules/@modelcontextprotocol/server/dist/chunk-Br0eD_fh.mjs
20475
20480
  var __create = Object.create;
@@ -45328,7 +45333,7 @@ const { getVersion, getBuildTimestamp, getAllVersions } = require_Console.frodo.
45328
45333
  * rather than a tsup build, since no bundler ever substitutes the
45329
45334
  * identifier there.
45330
45335
  */
45331
- const getCliBuildTimestamp = () => "2026-10-28T12:40:15.670Z";
45336
+ const getCliBuildTimestamp = () => "2026-10-28T18:06:17.957Z";
45332
45337
  const VERSION_CACHE_FILE = `${os.default.homedir()}/.frodo/Versions.json`;
45333
45338
  const VERSION_CHECK_INTERVAL = 86400;
45334
45339
  const ENDPOINTS = [{