@atbash/sdk 0.13.0-dev.0 → 0.13.2-dev.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.
@@ -649,8 +649,13 @@ declare class Atbash {
649
649
  private riskEngineRecords;
650
650
  /**
651
651
  * BRID for an org — one round-trip to the map, honoring the client's chain
652
- * cache. Returns undefined when the org is unknown, so the caller falls
653
- * back to the client default (best-effort discovery).
652
+ * cache. A "brand-new org" (nothing anywhere names its chain) is not an
653
+ * error — `resolveChainForOrg` returns the client default for that case and
654
+ * this helper returns its BRID. A transport failure or non-200 from
655
+ * `/api/org-network` IS an error and propagates: the caller cannot fall
656
+ * back to the default chain on outage, because with multi-chain live that
657
+ * silently reads from the wrong chain. Matches the Python binding's
658
+ * `_brid_for_org` semantics.
654
659
  */
655
660
  private bridForOrg;
656
661
  /**
package/dist/browser.mjs CHANGED
@@ -45574,15 +45574,16 @@ var Atbash = class _Atbash {
45574
45574
  }
45575
45575
  /**
45576
45576
  * BRID for an org — one round-trip to the map, honoring the client's chain
45577
- * cache. Returns undefined when the org is unknown, so the caller falls
45578
- * back to the client default (best-effort discovery).
45577
+ * cache. A "brand-new org" (nothing anywhere names its chain) is not an
45578
+ * error — `resolveChainForOrg` returns the client default for that case and
45579
+ * this helper returns its BRID. A transport failure or non-200 from
45580
+ * `/api/org-network` IS an error and propagates: the caller cannot fall
45581
+ * back to the default chain on outage, because with multi-chain live that
45582
+ * silently reads from the wrong chain. Matches the Python binding's
45583
+ * `_brid_for_org` semantics.
45579
45584
  */
45580
45585
  async bridForOrg(orgName) {
45581
- try {
45582
- return (await this.resolveChainForOrg(orgName)).blockchainRid;
45583
- } catch {
45584
- return void 0;
45585
- }
45586
+ return (await this.resolveChainForOrg(orgName)).blockchainRid;
45586
45587
  }
45587
45588
  /**
45588
45589
  * BRID for the client's configured default org, if it has one.