@pellux/goodvibes-contracts 0.35.0 → 0.36.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.
package/README.md CHANGED
@@ -36,8 +36,53 @@ const loginMethod = getOperatorMethod('control.auth.login');
36
36
  type LoginOutput = OperatorMethodOutput<'control.auth.login'>;
37
37
  ```
38
38
 
39
+ Peer example:
40
+
41
+ ```ts
42
+ import {
43
+ getPeerContract,
44
+ getPeerEndpoint,
45
+ listPeerEndpoints,
46
+ } from '@pellux/goodvibes-sdk/contracts';
47
+
48
+ const peerContract = getPeerContract();
49
+ const pairEndpoint = getPeerEndpoint('pair.request');
50
+ const allEndpoints = listPeerEndpoints();
51
+ ```
52
+
53
+ Lookup and guard helpers:
54
+
55
+ ```ts
56
+ import {
57
+ listOperatorMethods,
58
+ isOperatorMethodId,
59
+ isPeerEndpointId,
60
+ RUNTIME_EVENT_DOMAINS,
61
+ isRuntimeEventDomain,
62
+ } from '@pellux/goodvibes-sdk/contracts';
63
+
64
+ listOperatorMethods(); // readonly OperatorMethodContract[]
65
+ isOperatorMethodId('control.auth.login'); // true
66
+ isPeerEndpointId('pair.request'); // true
67
+ RUNTIME_EVENT_DOMAINS.forEach((domain) => isRuntimeEventDomain(domain));
68
+ ```
69
+
39
70
  Node-only artifact path helpers:
40
71
 
41
72
  ```ts
42
- import { getOperatorContractPath } from '@pellux/goodvibes-sdk/contracts/node';
73
+ import {
74
+ getOperatorContractPath,
75
+ getPeerContractPath,
76
+ } from '@pellux/goodvibes-sdk/contracts/node';
77
+ ```
78
+
79
+ When installing this package directly instead of the SDK facade, import from
80
+ `@pellux/goodvibes-contracts` and `@pellux/goodvibes-contracts/node`:
81
+
82
+ ```ts
83
+ import { getOperatorContract, getPeerContract } from '@pellux/goodvibes-contracts';
84
+ import { getOperatorContractPath, getPeerContractPath } from '@pellux/goodvibes-contracts/node';
43
85
  ```
86
+
87
+ See the [zod-schemas README](./src/zod-schemas/README.md) for the runtime Zod
88
+ schema exports re-exported from this package root.
@@ -3,7 +3,7 @@
3
3
  "product": {
4
4
  "id": "goodvibes",
5
5
  "surface": "operator",
6
- "version": "0.35.0"
6
+ "version": "0.36.0"
7
7
  },
8
8
  "auth": {
9
9
  "modes": [
@@ -1,6 +1,6 @@
1
1
  export declare const FOUNDATION_METADATA: {
2
2
  readonly productId: "goodvibes";
3
- readonly productVersion: "0.35.0";
3
+ readonly productVersion: "0.36.0";
4
4
  readonly operatorMethodCount: 297;
5
5
  readonly operatorEventCount: 30;
6
6
  readonly peerEndpointCount: 6;
@@ -1,6 +1,6 @@
1
1
  export const FOUNDATION_METADATA = {
2
2
  "productId": "goodvibes",
3
- "productVersion": "0.35.0",
3
+ "productVersion": "0.36.0",
4
4
  "operatorMethodCount": 297,
5
5
  "operatorEventCount": 30,
6
6
  "peerEndpointCount": 6
@@ -3,7 +3,7 @@ export const OPERATOR_CONTRACT = {
3
3
  "product": {
4
4
  "id": "goodvibes",
5
5
  "surface": "operator",
6
- "version": "0.35.0"
6
+ "version": "0.36.0"
7
7
  },
8
8
  "auth": {
9
9
  "modes": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pellux/goodvibes-contracts",
3
- "version": "0.35.0",
3
+ "version": "0.36.0",
4
4
  "engines": {
5
5
  "bun": "1.3.10",
6
6
  "node": ">=22.0.0"