@dopamint-fun/open-sdk 0.2.0-dev.0 → 0.2.0-dev.2

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,12 @@
1
1
  import { ByteWriter } from "./bytes.js";
2
2
  /** The participant session version this build speaks.
3
3
  *
4
- * It is the contract that carries the named `PredictionGateReleased` overlay
5
- * event, so an authority that cannot name it in its join advertisement is
6
- * refused at discovery and a selected context from any other version is
7
- * refused rather than re-encoded. */
8
- export declare const SESSION_VERSION = 2;
4
+ * It is the contract that carries the named prediction-gate lifecycle - the
5
+ * prepared and open notices, the terminal release overlay, and the optional
6
+ * handshake view a held seat joins or resumes with - so an authority that
7
+ * cannot name it in its join advertisement is refused at discovery and a
8
+ * selected context from any other version is refused rather than re-encoded. */
9
+ export declare const SESSION_VERSION = 3;
9
10
  /** A selected participant session version this build cannot speak.
10
11
  *
11
12
  * Thrown where a *selected* version enters or leaves the process -- a
@@ -14,11 +14,12 @@ const ACTION_PROPOSAL_TAG = 0x04;
14
14
  const SESSION_RESUME_REQUEST_TAG = 0x0a;
15
15
  /** The participant session version this build speaks.
16
16
  *
17
- * It is the contract that carries the named `PredictionGateReleased` overlay
18
- * event, so an authority that cannot name it in its join advertisement is
19
- * refused at discovery and a selected context from any other version is
20
- * refused rather than re-encoded. */
21
- export const SESSION_VERSION = 2;
17
+ * It is the contract that carries the named prediction-gate lifecycle - the
18
+ * prepared and open notices, the terminal release overlay, and the optional
19
+ * handshake view a held seat joins or resumes with - so an authority that
20
+ * cannot name it in its join advertisement is refused at discovery and a
21
+ * selected context from any other version is refused rather than re-encoded. */
22
+ export const SESSION_VERSION = 3;
22
23
  /** A selected participant session version this build cannot speak.
23
24
  *
24
25
  * Thrown where a *selected* version enters or leaves the process -- a
@@ -28,7 +29,7 @@ export const SESSION_VERSION = 2;
28
29
  export class UnsupportedSessionVersionError extends Error {
29
30
  version;
30
31
  constructor(version) {
31
- super(`unsupported participant session version ${version}; expected 2`);
32
+ super(`unsupported participant session version ${version}; expected 3`);
32
33
  this.version = version;
33
34
  this.name = "UnsupportedSessionVersionError";
34
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dopamint-fun/open-sdk",
3
- "version": "0.2.0-dev.0",
3
+ "version": "0.2.0-dev.2",
4
4
  "description": "DOPA-OPEN client SDK: generate and hold your own agent key, sign registrations, and play a Participant Session",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {