@fluid-app/fluid-cli 0.1.678 → 0.1.679
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/bin/fluid.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $ as sendMfa, A as signInWithBrowser, B as getConfigDir, C as endUnusedSessions, D as primeIdentityProfile, F as resolveIdentityUrl, G as isClientProfile, I as readConfig, K as isIdentityProfile, L as updateConfig, M as clientAccessToken, P as primeClientProfile, Q as redeemIdentityLink, R as writeConfig, T as identityToken, X as fetchUserCompanies, Y as confirmMfa, Z as getFluidApiBase, _ as getAuthToken, _t as rootCommand, bt as walkCommands, c as inputsModeActive, et as signup, g as getActiveProfile, gt as filterCatalog, i as INPUTS_MODE_ENV, j as signOutIdentity, k as sessionFacts, l as registerInputsHook, nt as validateToken, q as FLUID_API_ERROR, s as exitOnInputsError, tt as switchCompany, u as createInputsReader, vt as visibleOptions, w as describeIdentityError, x as resolveCredentialSource, yt as visibleSubcommands, z as isStrictConfig } from "../hook-
|
|
2
|
+
import { $ as sendMfa, A as signInWithBrowser, B as getConfigDir, C as endUnusedSessions, D as primeIdentityProfile, F as resolveIdentityUrl, G as isClientProfile, I as readConfig, K as isIdentityProfile, L as updateConfig, M as clientAccessToken, P as primeClientProfile, Q as redeemIdentityLink, R as writeConfig, T as identityToken, X as fetchUserCompanies, Y as confirmMfa, Z as getFluidApiBase, _ as getAuthToken, _t as rootCommand, bt as walkCommands, c as inputsModeActive, et as signup, g as getActiveProfile, gt as filterCatalog, i as INPUTS_MODE_ENV, j as signOutIdentity, k as sessionFacts, l as registerInputsHook, nt as validateToken, q as FLUID_API_ERROR, s as exitOnInputsError, tt as switchCompany, u as createInputsReader, vt as visibleOptions, w as describeIdentityError, x as resolveCredentialSource, yt as visibleSubcommands, z as isStrictConfig } from "../hook-D6W0AV0N.mjs";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import { existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, renameSync, rmSync, unlinkSync, writeFileSync } from "node:fs";
|
|
5
5
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
@@ -106,7 +106,7 @@ function filterCatalog(entries, root, prefix) {
|
|
|
106
106
|
}
|
|
107
107
|
//#endregion
|
|
108
108
|
//#region package.json
|
|
109
|
-
var version = "0.1.
|
|
109
|
+
var version = "0.1.679";
|
|
110
110
|
//#endregion
|
|
111
111
|
//#region src/auth/client-headers.ts
|
|
112
112
|
const CLIENT_HEADERS = {
|
|
@@ -2037,10 +2037,12 @@ function exchangeToken(client, clientId, subjectToken, target) {
|
|
|
2037
2037
|
credentials: "omit"
|
|
2038
2038
|
});
|
|
2039
2039
|
}
|
|
2040
|
+
const NOT_YET_AVAILABLE_REASON = "company_not_yet_available";
|
|
2040
2041
|
function classifyExchangeFailure(error) {
|
|
2041
2042
|
if (classifyRefreshFailure(error) === "unavailable") return "unavailable";
|
|
2042
2043
|
const code = oauthErrorCode(error);
|
|
2043
2044
|
if (code === "invalid_request" || code === "invalid_token") return "unusable";
|
|
2045
|
+
if (code === "invalid_target" && isApiError(error) && error.body?.reason === NOT_YET_AVAILABLE_REASON) return "not_yet_available";
|
|
2044
2046
|
return "refused";
|
|
2045
2047
|
}
|
|
2046
2048
|
//#endregion
|
|
@@ -4131,4 +4133,4 @@ function exitOnInputsError(error, io = processIo) {
|
|
|
4131
4133
|
//#endregion
|
|
4132
4134
|
export { sendMfa as $, signInWithBrowser as A, getConfigDir as B, endUnusedSessions as C, primeIdentityProfile as D, isRoleNotGrantedError as E, resolveIdentityUrl as F, isClientProfile as G, ApiError as H, readConfig as I, SIGNUP_ERROR as J, isIdentityProfile as K, updateConfig as L, clientAccessToken as M, invalidateClientToken as N, profileAccessToken as O, primeClientProfile as P, redeemIdentityLink as Q, writeConfig as R, findProjectConfig as S, identityToken as T, createFetchClient as U, getConfigFilePath as V, createDefaultConfig as W, fetchUserCompanies as X, confirmMfa as Y, getFluidApiBase as Z, getAuthToken as _, rootCommand as _t, INPUTS_UNDECLARED_CODE as a, isError as at, listProfileNames as b, walkCommands as bt, inputsModeActive as c, isSuccess as ct, setActiveSnapshot as d, success as dt, signup as et, inInternalRead as f, tryCatch as ft, getActiveProfile as g, filterCatalog as gt, declareInputs as h, unwrapOr as ht, INPUTS_MODE_ENV as i, getErrorMessage$1 as it, signOutIdentity as j, sessionFacts as k, registerInputsHook as l, mapError as lt, withInternalReadsAsync as m, unwrap as mt, INPUTS_MISMATCH_CODE as n, validateToken as nt, INPUTS_UNDECLARED_EXIT as o, isFailure as ot, withInternalReads as p, tryCatchAsync as pt, FLUID_API_ERROR as q, INPUTS_MISMATCH_EXIT as r, failure as rt, exitOnInputsError as s, isNodeError as st, INPUTS_EXPECT_ENV as t, switchCompany as tt, createInputsReader as u, mapResult as ut, getAuthTokenAsync as v, visibleOptions as vt, describeIdentityError as w, resolveCredentialSource as x, describeCommand as xt, getRoleAuthTokenAsync as y, visibleSubcommands as yt, isStrictConfig as z };
|
|
4133
4135
|
|
|
4134
|
-
//# sourceMappingURL=hook-
|
|
4136
|
+
//# sourceMappingURL=hook-D6W0AV0N.mjs.map
|