@greenlandai/sdk 0.5.13 → 0.5.14

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/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.5.14 (2026-09-30)
2
+ - **`client.enyal.createAgreement()` on a zero-knowledge account** — ENYAL (6961c0e) refuses it with an uncharged 409; it now
3
+ throws `ProofRefusedError` (`.jouleCost 0`, not retried) like the other uncharged refusals, instead of a plain `ConflictError`.
4
+ - The restore fix of this release is in the Python `EnyalAgent`; JavaScript users have it in @enyalai/sdk 2.2.12.
5
+
1
6
  ## 0.5.13 (2026-09-30)
2
7
  - **Zero-knowledge record envelope (ENYAL #6; RUL-0054/RUL-0055)** — the same change as @enyalai/sdk 2.2.11:
3
8
  `crypto.decryptDisclosedChunk()` opens the `"ENYC" ‖ 0x01 ‖ r ‖ content` envelope of a record marked `hash_scheme:
package/dist/index.cjs CHANGED
@@ -189,7 +189,8 @@ var PROOF_REFUSAL_PATHS = /* @__PURE__ */ new Set([
189
189
  "/api/v1/archive",
190
190
  "/api/v1/proof/queue",
191
191
  "/api/v1/disclose",
192
- "/api/v1/agreement/verify"
192
+ "/api/v1/agreement/verify",
193
+ "/api/v1/agreement/create"
193
194
  ]);
194
195
  function isRetryable(err) {
195
196
  if (err instanceof ConflictError && err.retryAfter != null) return true;
@@ -4888,7 +4889,7 @@ var RareeaiSubmodule = class _RareeaiSubmodule {
4888
4889
  };
4889
4890
 
4890
4891
  // index.js
4891
- var VERSION = "0.5.13";
4892
+ var VERSION = "0.5.14";
4892
4893
  var Client = class {
4893
4894
  /**
4894
4895
  * @param {object} opts
package/index.js CHANGED
@@ -16,7 +16,7 @@ export {
16
16
  export { ENFORCED, NOT_SUPPORTED, SAFE, IDEMPOTENCY_MAP } from "./src/core/idempotency.js";
17
17
  export * as crypto from "./src/core/crypto.js";
18
18
 
19
- export const VERSION = "0.5.13";
19
+ export const VERSION = "0.5.14";
20
20
 
21
21
  export class Client {
22
22
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@greenlandai/sdk",
3
- "version": "0.5.13",
3
+ "version": "0.5.14",
4
4
  "description": "Unified SDK for the GreenlandAI ecosystem (ENYAL, JoulePAI, RAREEAI, GreenlandAI)",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://greenlandai.ai",
@@ -39,11 +39,11 @@ function parseRetryAfter(value) {
39
39
 
40
40
  // Paths where ENYAL answers a request it will not serve with a 409 and NO charge (2026-09-30): a proof over zero-knowledge
41
41
  // records (/prove, /prove-batch, /compliance/attest, /archive with proof_tier, /proof/queue), a SHA-256 content proof on
42
- // /disclose, and /agreement/verify on a zero-knowledge record. ENYAL's idempotency "in progress" 409 on the same paths carries a
42
+ // /disclose, /agreement/verify on a zero-knowledge record, and /agreement/create on a zero-knowledge account (ENYAL 6961c0e). ENYAL's idempotency "in progress" 409 on the same paths carries a
43
43
  // Retry-After and is retried instead (it is never a ProofRefusedError).
44
44
  const PROOF_REFUSAL_PATHS = new Set([
45
45
  "/api/v1/prove", "/api/v1/prove-batch", "/api/v1/compliance/attest", "/api/v1/archive", "/api/v1/proof/queue",
46
- "/api/v1/disclose", "/api/v1/agreement/verify",
46
+ "/api/v1/disclose", "/api/v1/agreement/verify", "/api/v1/agreement/create",
47
47
  ]);
48
48
 
49
49
  function isRetryable(err) {