@dereekb/dbx-cli 13.11.6 → 13.11.7
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/index.cjs.js
CHANGED
|
@@ -1868,6 +1868,11 @@ function mergeOutputCommandsConfig(existing, updates) {
|
|
|
1868
1868
|
'model.update',
|
|
1869
1869
|
'model.delete'
|
|
1870
1870
|
];
|
|
1871
|
+
/**
|
|
1872
|
+
* The default redirect URI used by the CLI.
|
|
1873
|
+
*
|
|
1874
|
+
* Opens up to nothing in the browser so the user can copy/paste the resulting token url back into the CLI.
|
|
1875
|
+
*/ var DEFAULT_CLI_REDIRECT_URI = 'http://127.0.0.1:0/callback';
|
|
1871
1876
|
/**
|
|
1872
1877
|
* Returns the input scope string with the `model.create`, `model.update`, and `model.delete`
|
|
1873
1878
|
* scopes removed, preserving every other scope (including `model.read` and `model.query`).
|
|
@@ -3457,11 +3462,11 @@ function maskEnv$1(env) {
|
|
|
3457
3462
|
resolve({
|
|
3458
3463
|
argvValue: argv.redirectUri,
|
|
3459
3464
|
existingValue: existing === null || existing === void 0 ? void 0 : existing.redirectUri,
|
|
3460
|
-
prompt: "Redirect URI [".concat((_ref4 = existing === null || existing === void 0 ? void 0 : existing.redirectUri) !== null && _ref4 !== void 0 ? _ref4 :
|
|
3465
|
+
prompt: "Redirect URI [".concat((_ref4 = existing === null || existing === void 0 ? void 0 : existing.redirectUri) !== null && _ref4 !== void 0 ? _ref4 : DEFAULT_CLI_REDIRECT_URI, "]: ")
|
|
3461
3466
|
})
|
|
3462
3467
|
];
|
|
3463
3468
|
case 9:
|
|
3464
|
-
redirectUri = (_ref3 = _state.sent()) !== null && _ref3 !== void 0 ? _ref3 :
|
|
3469
|
+
redirectUri = (_ref3 = _state.sent()) !== null && _ref3 !== void 0 ? _ref3 : DEFAULT_CLI_REDIRECT_URI;
|
|
3465
3470
|
scopes = (_argv_scopes = argv.scopes) !== null && _argv_scopes !== void 0 ? _argv_scopes : existing === null || existing === void 0 ? void 0 : existing.scopes;
|
|
3466
3471
|
if (!apiBaseUrl || !oidcIssuer || !clientId || !clientSecret) {
|
|
3467
3472
|
throw new CliError({
|
|
@@ -8836,6 +8841,7 @@ Object.defineProperty(exports, "CALL_MODEL_APP_FUNCTION_KEY", {
|
|
|
8836
8841
|
exports.CALL_MODEL_API_PATH = CALL_MODEL_API_PATH;
|
|
8837
8842
|
exports.CliError = CliError;
|
|
8838
8843
|
exports.DEFAULT_CLI_OIDC_SCOPES = DEFAULT_CLI_OIDC_SCOPES;
|
|
8844
|
+
exports.DEFAULT_CLI_REDIRECT_URI = DEFAULT_CLI_REDIRECT_URI;
|
|
8839
8845
|
exports.DEFAULT_CLI_SECRET_PATTERNS = DEFAULT_CLI_SECRET_PATTERNS;
|
|
8840
8846
|
exports.DEFAULT_MANIFEST_HELP_DATA_FORMAT = DEFAULT_MANIFEST_HELP_DATA_FORMAT;
|
|
8841
8847
|
exports.DEFAULT_MANIFEST_HELP_MODE = DEFAULT_MANIFEST_HELP_MODE;
|
package/index.esm.js
CHANGED
|
@@ -1866,6 +1866,11 @@ function mergeOutputCommandsConfig(existing, updates) {
|
|
|
1866
1866
|
'model.update',
|
|
1867
1867
|
'model.delete'
|
|
1868
1868
|
];
|
|
1869
|
+
/**
|
|
1870
|
+
* The default redirect URI used by the CLI.
|
|
1871
|
+
*
|
|
1872
|
+
* Opens up to nothing in the browser so the user can copy/paste the resulting token url back into the CLI.
|
|
1873
|
+
*/ var DEFAULT_CLI_REDIRECT_URI = 'http://127.0.0.1:0/callback';
|
|
1869
1874
|
/**
|
|
1870
1875
|
* Returns the input scope string with the `model.create`, `model.update`, and `model.delete`
|
|
1871
1876
|
* scopes removed, preserving every other scope (including `model.read` and `model.query`).
|
|
@@ -3455,11 +3460,11 @@ function maskEnv$1(env) {
|
|
|
3455
3460
|
resolve({
|
|
3456
3461
|
argvValue: argv.redirectUri,
|
|
3457
3462
|
existingValue: existing === null || existing === void 0 ? void 0 : existing.redirectUri,
|
|
3458
|
-
prompt: "Redirect URI [".concat((_ref4 = existing === null || existing === void 0 ? void 0 : existing.redirectUri) !== null && _ref4 !== void 0 ? _ref4 :
|
|
3463
|
+
prompt: "Redirect URI [".concat((_ref4 = existing === null || existing === void 0 ? void 0 : existing.redirectUri) !== null && _ref4 !== void 0 ? _ref4 : DEFAULT_CLI_REDIRECT_URI, "]: ")
|
|
3459
3464
|
})
|
|
3460
3465
|
];
|
|
3461
3466
|
case 9:
|
|
3462
|
-
redirectUri = (_ref3 = _state.sent()) !== null && _ref3 !== void 0 ? _ref3 :
|
|
3467
|
+
redirectUri = (_ref3 = _state.sent()) !== null && _ref3 !== void 0 ? _ref3 : DEFAULT_CLI_REDIRECT_URI;
|
|
3463
3468
|
scopes = (_argv_scopes = argv.scopes) !== null && _argv_scopes !== void 0 ? _argv_scopes : existing === null || existing === void 0 ? void 0 : existing.scopes;
|
|
3464
3469
|
if (!apiBaseUrl || !oidcIssuer || !clientId || !clientSecret) {
|
|
3465
3470
|
throw new CliError({
|
|
@@ -8827,4 +8832,4 @@ function printPaginatedOutput(input) {
|
|
|
8827
8832
|
})();
|
|
8828
8833
|
}
|
|
8829
8834
|
|
|
8830
|
-
export { CALL_MODEL_API_PATH, CliError, DEFAULT_CLI_OIDC_SCOPES, DEFAULT_CLI_SECRET_PATTERNS, DEFAULT_MANIFEST_HELP_DATA_FORMAT, DEFAULT_MANIFEST_HELP_MODE, DEFAULT_MANIFEST_MODEL_COMMAND_NAME, DEFAULT_MODEL_INFO_COMMAND_NAME, DUMP_MERGE_MODES, DUMP_OUTPUT_MODES, MODEL_WRITE_OIDC_SCOPES, MULTIPLE_PAGES_OUTPUT_MODES, PROMPT_CANCELLED_ERROR_CODE, STANDARD_GLOBAL_OPTION_NAMES, applyEnvVarOverrides, buildAuthorizationUrl, buildCliPaths, buildDumpFilePath, buildErrorOutput, buildManifestCommands, buildModelInfoCommand, callModelOverHttp, callPassthroughCommand, configureCliErrorMapper, configureCliSecretPatterns, configureOutputOptions, createAuthCommand, createAuthMiddleware, createCallModelCommand, createCli, createCliContext, createCliTokenCacheStore, createContextSlot, createDoctorCommand, createEnvCommand, createOutputCommand, createOutputMiddleware, defaultDoctorChecks, detectDataHelpFormat, detectHelpMode, discoverOidcMetadata, dumpTimestamp, exchangeAuthorizationCode, expandModelKeys, fetchUserInfo, filterReadOnlyModelScopes, findCliEnvDefault, findCliModelManifestEntry, generateOAuthState, generatePkceMaterial, getCliContext, getOutputOptions, isCliEnvConfigComplete, isTokenExpired, loadCliConfig, maskSecret, mergeCliConfig, mergeCliEnvWithDefault, mergeOutputConfig, openStreamingDump, outputError, outputResult, parsePastedRedirect, pickFields, promptLine, refreshAccessToken, renderModelManifestEntry, renderModelManifestFields, renderModelManifestList, requireCliContext, resolveActiveEnvName, resolveCliModel, resolveOutputConfig, revokeToken, runCli, runPaginatedList, sanitizeString, saveCliConfig, setCliContext, withCallModelArgs, withEnv, withMultiplePages, withOutput, wrapCommandHandler };
|
|
8835
|
+
export { CALL_MODEL_API_PATH, CliError, DEFAULT_CLI_OIDC_SCOPES, DEFAULT_CLI_REDIRECT_URI, DEFAULT_CLI_SECRET_PATTERNS, DEFAULT_MANIFEST_HELP_DATA_FORMAT, DEFAULT_MANIFEST_HELP_MODE, DEFAULT_MANIFEST_MODEL_COMMAND_NAME, DEFAULT_MODEL_INFO_COMMAND_NAME, DUMP_MERGE_MODES, DUMP_OUTPUT_MODES, MODEL_WRITE_OIDC_SCOPES, MULTIPLE_PAGES_OUTPUT_MODES, PROMPT_CANCELLED_ERROR_CODE, STANDARD_GLOBAL_OPTION_NAMES, applyEnvVarOverrides, buildAuthorizationUrl, buildCliPaths, buildDumpFilePath, buildErrorOutput, buildManifestCommands, buildModelInfoCommand, callModelOverHttp, callPassthroughCommand, configureCliErrorMapper, configureCliSecretPatterns, configureOutputOptions, createAuthCommand, createAuthMiddleware, createCallModelCommand, createCli, createCliContext, createCliTokenCacheStore, createContextSlot, createDoctorCommand, createEnvCommand, createOutputCommand, createOutputMiddleware, defaultDoctorChecks, detectDataHelpFormat, detectHelpMode, discoverOidcMetadata, dumpTimestamp, exchangeAuthorizationCode, expandModelKeys, fetchUserInfo, filterReadOnlyModelScopes, findCliEnvDefault, findCliModelManifestEntry, generateOAuthState, generatePkceMaterial, getCliContext, getOutputOptions, isCliEnvConfigComplete, isTokenExpired, loadCliConfig, maskSecret, mergeCliConfig, mergeCliEnvWithDefault, mergeOutputConfig, openStreamingDump, outputError, outputResult, parsePastedRedirect, pickFields, promptLine, refreshAccessToken, renderModelManifestEntry, renderModelManifestFields, renderModelManifestList, requireCliContext, resolveActiveEnvName, resolveCliModel, resolveOutputConfig, revokeToken, runCli, runPaginatedList, sanitizeString, saveCliConfig, setCliContext, withCallModelArgs, withEnv, withMultiplePages, withOutput, wrapCommandHandler };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-cli",
|
|
3
|
-
"version": "13.11.
|
|
3
|
+
"version": "13.11.7",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"bin": {
|
|
6
6
|
"dbx-cli-generate-firebase-api-manifest": "firebase-api-manifest/main.js"
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@dereekb/date": "13.11.
|
|
28
|
-
"@dereekb/firebase": "13.11.
|
|
29
|
-
"@dereekb/nestjs": "13.11.
|
|
30
|
-
"@dereekb/util": "13.11.
|
|
27
|
+
"@dereekb/date": "13.11.7",
|
|
28
|
+
"@dereekb/firebase": "13.11.7",
|
|
29
|
+
"@dereekb/nestjs": "13.11.7",
|
|
30
|
+
"@dereekb/util": "13.11.7",
|
|
31
31
|
"arktype": "^2.2.0",
|
|
32
32
|
"yargs": "^18.0.0"
|
|
33
33
|
},
|
package/src/lib/config/env.d.ts
CHANGED
|
@@ -11,6 +11,12 @@ export declare const DEFAULT_CLI_OIDC_SCOPES = "openid profile email";
|
|
|
11
11
|
* CLI doesn't take a server-side dependency just to know the names.
|
|
12
12
|
*/
|
|
13
13
|
export declare const MODEL_WRITE_OIDC_SCOPES: readonly ["model.create", "model.update", "model.delete"];
|
|
14
|
+
/**
|
|
15
|
+
* The default redirect URI used by the CLI.
|
|
16
|
+
*
|
|
17
|
+
* Opens up to nothing in the browser so the user can copy/paste the resulting token url back into the CLI.
|
|
18
|
+
*/
|
|
19
|
+
export declare const DEFAULT_CLI_REDIRECT_URI = "http://127.0.0.1:0/callback";
|
|
14
20
|
/**
|
|
15
21
|
* Returns the input scope string with the `model.create`, `model.update`, and `model.delete`
|
|
16
22
|
* scopes removed, preserving every other scope (including `model.read` and `model.query`).
|
|
@@ -119,6 +125,8 @@ export interface CliEnvConfig {
|
|
|
119
125
|
* The redirect URI registered with the OAuth client. The CLI does not bind a server — it parses
|
|
120
126
|
* the URL the user pastes back, so this can be any value the OIDC provider accepts as a
|
|
121
127
|
* registered redirect URI (e.g. `http://127.0.0.1:0/callback` or another loopback/placeholder URL).
|
|
128
|
+
*
|
|
129
|
+
* Defaults to {@link DEFAULT_CLI_REDIRECT_URI}.
|
|
122
130
|
*/
|
|
123
131
|
readonly redirectUri?: string;
|
|
124
132
|
/**
|