@wayai/cli 0.3.289 → 0.3.290
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/index.js +19 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -38507,6 +38507,20 @@ async function runVaultImport(flagArgs) {
|
|
|
38507
38507
|
console.log(` value ${v.field} \u2192 ${v.secret_id ?? "-"}: ${v.outcome}${v.code ? ` (${v.code})` : ""}`);
|
|
38508
38508
|
for (const r of v.rows) console.log(` hub=${r.hub_id} connection=${r.connection_id}: ${r.outcome}`);
|
|
38509
38509
|
}
|
|
38510
|
+
const credentials = data.credentials ?? [];
|
|
38511
|
+
if (credentials.length > 0) {
|
|
38512
|
+
console.log(`org credentials: ${credentials.length} credentials_remaining=${data.credentials_remaining ?? 0}`);
|
|
38513
|
+
for (const r of data.credential_reasons ?? []) console.log(` stays (${r.reason}): ${r.credentials}`);
|
|
38514
|
+
for (const c of credentials) {
|
|
38515
|
+
const reasons = c.reasons.length > 0 ? ` (${c.reasons.join(", ")})` : "";
|
|
38516
|
+
console.log(` credential ${c.credential_id} ${c.field} \u2192 ${c.secret_id ?? "-"}: ${c.outcome}${reasons}${c.code ? ` (${c.code})` : ""}${c.credential_row ? ` credential_row=${c.credential_row}` : ""}`);
|
|
38517
|
+
for (const r of c.rows) console.log(` hub=${r.hub_id} connection=${r.connection_id}: ${r.outcome}`);
|
|
38518
|
+
for (const r of c.stale_rows) console.log(` stale: hub=${r.hub_id} connection=${r.connection_id}`);
|
|
38519
|
+
}
|
|
38520
|
+
if (credentials.some((c) => c.reasons.includes("stale_row"))) {
|
|
38521
|
+
console.log("A credential with a stale row moves once `wayai admin hubs repair-credential-links --org <org_id> --apply` writes its current value.");
|
|
38522
|
+
}
|
|
38523
|
+
}
|
|
38510
38524
|
printVaultReport(data);
|
|
38511
38525
|
}
|
|
38512
38526
|
async function runVaultRevert(flagArgs) {
|
|
@@ -38538,6 +38552,10 @@ async function runVaultRevert(flagArgs) {
|
|
|
38538
38552
|
console.log(` value ${v.field} \u2190 ${v.secret_id}${v.code ? `: ${v.code}` : ""}`);
|
|
38539
38553
|
for (const r of v.rows) console.log(` hub=${r.hub_id} connection=${r.connection_id}: ${r.outcome}`);
|
|
38540
38554
|
}
|
|
38555
|
+
for (const c of data.credentials ?? []) {
|
|
38556
|
+
console.log(` credential ${c.credential_id} ${c.field} \u2190 ${c.secret_id}${c.code ? `: ${c.code}` : ""}${c.credential_row ? ` credential_row=${c.credential_row}` : ""}`);
|
|
38557
|
+
for (const r of c.rows) console.log(` hub=${r.hub_id} connection=${r.connection_id}: ${r.outcome}`);
|
|
38558
|
+
}
|
|
38541
38559
|
printVaultReport(data);
|
|
38542
38560
|
}
|
|
38543
38561
|
async function runRepairBranchingOrphans(flagArgs) {
|
|
@@ -39783,7 +39801,7 @@ Usage:
|
|
|
39783
39801
|
Repair org-admin roster rows keyed by email with a NULL user_email (pre-#3922 platform-admin adds): grant the real access they never conferred, or drop the phantom seat. Idempotent \u2014 run --dry-run first
|
|
39784
39802
|
|
|
39785
39803
|
wayai admin vault import --org <org_id> --connector <connector_id> [--max-puts <n>] [--apply] [--yes] [--json]
|
|
39786
|
-
Move one org's stored credentials of one connector into the credentials vault, no re-entry (#5644). A dry run by default (counts by field, link kind and form); --apply needs the connector's gate open, puts each distinct value once for the direct rows holding it
|
|
39804
|
+
Move one org's stored credentials of one connector into the credentials vault, no re-entry (#5644). A dry run by default (counts by field, link kind and form); --apply needs the connector's gate open, puts each distinct value once for the direct rows holding it, moves each org credential with the rows it supplies when all of them may move (else names why it stays), and keeps the old ciphertext 30 days for revert. Re-run until values_remaining and credentials_remaining are 0. Lists Telegram bots to enable again
|
|
39787
39805
|
|
|
39788
39806
|
wayai admin vault revert --org <org_id> --connector <connector_id> [--apply] [--yes] [--json]
|
|
39789
39807
|
Put back what vault import moved, within 30 days, and erase the vault entries no row names. A dry run by default
|