@erdoai/cli 0.129.0 → 0.130.0

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.
Files changed (2) hide show
  1. package/dist/index.js +15 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6330,7 +6330,7 @@ contact: ${parts.join(" \xB7 ")}`);
6330
6330
  }
6331
6331
  }
6332
6332
  );
6333
- var voiceNumbersCmd = voiceCmd.command("numbers").description("The organization's phone numbers, their A2P SMS registration and their caller name");
6333
+ var voiceNumbersCmd = voiceCmd.command("numbers").description("The organization's phone numbers, their A2P SMS registration, their caller name and their call attestation");
6334
6334
  function printRegistrationState(registration) {
6335
6335
  if (registration === null || typeof registration !== "object") {
6336
6336
  if (registration !== void 0) print(registration);
@@ -6378,7 +6378,7 @@ voiceNumbersCmd.command("list").description("List the organization's numbers wit
6378
6378
  } else {
6379
6379
  const callable = new Set(res.person_call_numbers ?? []);
6380
6380
  printAlignedTable(
6381
- ["number", "agent", "kind", "calls", "status", "waiting on", "reason", "caller name", "shows"],
6381
+ ["number", "agent", "kind", "calls", "status", "waiting on", "reason", "caller name", "shows", "attest."],
6382
6382
  numbers.map((n) => [
6383
6383
  n.address,
6384
6384
  n.agent_ref ?? "",
@@ -6388,7 +6388,8 @@ voiceNumbersCmd.command("list").description("List the organization's numbers wit
6388
6388
  n.next_step ?? "",
6389
6389
  n.reason ?? "",
6390
6390
  n.caller_name_attachment ?? "",
6391
- describeObservedCallerName(n.caller_name_observed, n.observed_caller_name)
6391
+ describeObservedCallerName(n.caller_name_observed, n.observed_caller_name),
6392
+ n.call_attestation ?? ""
6392
6393
  ])
6393
6394
  );
6394
6395
  process.stderr.write(`showing ${numbers.length} number(s)
@@ -6403,6 +6404,7 @@ voiceNumbersCmd.command("list").description("List the organization's numbers wit
6403
6404
  console.log("Complete it with: erdo org business-profile set --help, or in Settings \u2192 Business.");
6404
6405
  }
6405
6406
  printStaleCallerNameNote(numbers);
6407
+ printCallAttestationNote(res.call_attestation);
6406
6408
  } catch (e) {
6407
6409
  fail(e);
6408
6410
  }
@@ -6452,6 +6454,16 @@ voiceNumbersCmd.command("provision-sms <number>").description("Ask for A2P SMS r
6452
6454
  fail(e);
6453
6455
  }
6454
6456
  });
6457
+ function printCallAttestationNote(attestation) {
6458
+ if (!attestation || attestation.status === "approved") return;
6459
+ console.log("");
6460
+ const waiting = attestation.next_step ? ` (waiting on ${attestation.next_step})` : "";
6461
+ console.log(`Call attestation (SHAKEN/STIR): ${attestation.status}${waiting} \u2014 calls carry B until it is approved.`);
6462
+ if (attestation.reason) console.log(attestation.reason);
6463
+ if (attestation.missing_profile_fields && attestation.missing_profile_fields.length > 0) {
6464
+ console.log("Complete the business profile with: erdo org business-profile set --help, or in Settings \u2192 Business.");
6465
+ }
6466
+ }
6455
6467
  function describeObservedCallerName(observed, name) {
6456
6468
  switch (observed) {
6457
6469
  case "ours":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erdoai/cli",
3
- "version": "0.129.0",
3
+ "version": "0.130.0",
4
4
  "description": "Erdo CLI — drive datasets, pages, and evals from the terminal or CI",
5
5
  "type": "module",
6
6
  "bin": {