@econ-v1/rpc 7.6.66 → 7.6.67

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.
@@ -1,11 +1,19 @@
1
1
  export const NAT_PROFILE_QUERY: "network.nat_profile.v1";
2
2
  export type NatProfile = import("@econ-v1/ports").NatProfile;
3
+ export type DirectVerdict = {
4
+ code: "observed";
5
+ label: string;
6
+ observed: {
7
+ attempts: number;
8
+ direct: number;
9
+ };
10
+ } | {
11
+ code: "relay_only" | "possible" | "expected" | "unknown";
12
+ label: string;
13
+ };
3
14
  export type NatProfileRow = {
4
15
  client: NatProfile;
5
16
  node: NatProfile;
6
- verdict: {
7
- code: "relay_only" | "possible" | "expected" | "unknown";
8
- label: string;
9
- };
17
+ verdict: DirectVerdict;
10
18
  };
11
19
  //# sourceMappingURL=nat-profile-contract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"nat-profile-contract.d.ts","sourceRoot":"","sources":["../src/nat-profile-contract.js"],"names":[],"mappings":"AACA,gCAAuD,wBAAwB,CAAE;yBACnE,OAAO,gBAAgB,EAAE,UAAU;4BACnC;IAAC,MAAM,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,UAAU,CAAC;IAAC,OAAO,EAAE;QAAC,IAAI,EAAE,YAAY,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAC,CAAA;CAAC"}
1
+ {"version":3,"file":"nat-profile-contract.d.ts","sourceRoot":"","sources":["../src/nat-profile-contract.js"],"names":[],"mappings":"AACA,gCAAuD,wBAAwB,CAAE;yBACnE,OAAO,gBAAgB,EAAE,UAAU;4BACnC;IAAC,IAAI,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAC,CAAA;CAAC,GAAG;IAAC,IAAI,EAAE,YAAY,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAC;4BAC3J;IAAC,MAAM,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,UAAU,CAAC;IAAC,OAAO,EAAE,aAAa,CAAA;CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@econ-v1/rpc",
3
- "version": "7.6.66",
3
+ "version": "7.6.67",
4
4
  "description": "Typed runtime and contracts for Node client stage-to-kernel RPC",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "author": "Node contributors",
@@ -56,7 +56,7 @@
56
56
  "access": "public"
57
57
  },
58
58
  "dependencies": {
59
- "@econ-v1/domain": "7.6.66",
60
- "@econ-v1/ports": "7.6.66"
59
+ "@econ-v1/domain": "7.6.67",
60
+ "@econ-v1/ports": "7.6.67"
61
61
  }
62
62
  }
@@ -1,4 +1,5 @@
1
1
  // @ts-check
2
2
  export const NAT_PROFILE_QUERY = /** @type {const} */ ("network.nat_profile.v1");
3
3
  /** @typedef {import('@econ-v1/ports').NatProfile} NatProfile */
4
- /** @typedef {{client: NatProfile, node: NatProfile, verdict: {code: "relay_only" | "possible" | "expected" | "unknown", label: string}}} NatProfileRow */
4
+ /** @typedef {{code: "observed", label: string, observed: {attempts: number, direct: number}} | {code: "relay_only" | "possible" | "expected" | "unknown", label: string}} DirectVerdict */
5
+ /** @typedef {{client: NatProfile, node: NatProfile, verdict: DirectVerdict}} NatProfileRow */