@engramx/idl 0.16.0-rc.23 → 0.16.0-rc.24

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/dist/registry.did CHANGED
@@ -962,6 +962,13 @@ service : {
962
962
  /// Called by: the owner kit's opening of an engram through a parent, signed by the agent's lasting
963
963
  /// key, before it names the new engram's sign-in.
964
964
  getChildSignInOffer: (parent: principal) -> (Result_29) query;
965
+ /// The consent origin every newborn engram is told — `null` until the admin sets one, and newborns are
966
+ /// then told none (they keep the default origin).
967
+ ///
968
+ /// CALLER: the deployment's setup step, reading back what it set; and anyone comparing an engram's
969
+ /// `GET /oauth/authorize` target with what its registry hands out. PUBLIC: an origin is not a secret,
970
+ /// and every owner of this deployment is sent there.
971
+ getConsentOrigin: () -> (opt text) query;
965
972
  /// The ATTESTABLE custody-mode fact (agent-native model item 19): "managed" | "sovereign" |
966
973
  /// "unknown", derived from the registry's OWN transition records (claimSovereignty /
967
974
  /// returnToManaged maintain sovereignEngramIds) — NOT from a canister_status probe, which needs
@@ -1787,6 +1794,13 @@ service : {
1787
1794
  /// the async controller check + applies the outcome. When admin is null: REGISTRY_ROOT or a canister
1788
1795
  /// controller can set it. When admin is set: the current admin hands off, or REGISTRY_ROOT reclaims.
1789
1796
  setAdmin: (newAdmin: principal) -> (Result);
1797
+ /// Set the consent origin every engram spawned from now on is told (admin only; `null` clears it, and
1798
+ /// newborns are then told none). An https origin only — no path, query or fragment, lowercase, bounded
1799
+ /// (`ConsentOrigin.check`); anything else is `#Invalid` and nothing changes. Engrams already born keep
1800
+ /// what they were told.
1801
+ ///
1802
+ /// CALLER: the registry admin, from the deployment's setup step, before the deployment's first spawn.
1803
+ setConsentOrigin: (o: opt text) -> (Result);
1790
1804
  /// Upload the engram template in ONE message — the single-shot path. For a wasm too large to
1791
1805
  /// fit, use `engramWasmInit` → `engramWasmPushChunk` × N → `engramWasmFinalize` instead; the two
1792
1806
  /// paths produce the same result and differ only in how the bytes arrive.
@@ -778,6 +778,15 @@ export interface _SERVICE {
778
778
  * / key, before it names the new engram's sign-in.
779
779
  */
780
780
  getChildSignInOffer: ActorMethod<[Principal], Result_29>;
781
+ /**
782
+ * / The consent origin every newborn engram is told — `null` until the admin sets one, and newborns are
783
+ * / then told none (they keep the default origin).
784
+ * /
785
+ * / CALLER: the deployment's setup step, reading back what it set; and anyone comparing an engram's
786
+ * / `GET /oauth/authorize` target with what its registry hands out. PUBLIC: an origin is not a secret,
787
+ * / and every owner of this deployment is sent there.
788
+ */
789
+ getConsentOrigin: ActorMethod<[], [] | [string]>;
781
790
  /**
782
791
  * / The ATTESTABLE custody-mode fact (agent-native model item 19): "managed" | "sovereign" |
783
792
  * / "unknown", derived from the registry's OWN transition records (claimSovereignty /
@@ -1733,6 +1742,15 @@ export interface _SERVICE {
1733
1742
  * / controller can set it. When admin is set: the current admin hands off, or REGISTRY_ROOT reclaims.
1734
1743
  */
1735
1744
  setAdmin: ActorMethod<[Principal], Result>;
1745
+ /**
1746
+ * / Set the consent origin every engram spawned from now on is told (admin only; `null` clears it, and
1747
+ * / newborns are then told none). An https origin only — no path, query or fragment, lowercase, bounded
1748
+ * / (`ConsentOrigin.check`); anything else is `#Invalid` and nothing changes. Engrams already born keep
1749
+ * / what they were told.
1750
+ * /
1751
+ * / CALLER: the registry admin, from the deployment's setup step, before the deployment's first spawn.
1752
+ */
1753
+ setConsentOrigin: ActorMethod<[[] | [string]], Result>;
1736
1754
  /**
1737
1755
  * / Upload the engram template in ONE message — the single-shot path. For a wasm too large to
1738
1756
  * / fit, use `engramWasmInit` → `engramWasmPushChunk` × N → `engramWasmFinalize` instead; the two
@@ -489,6 +489,7 @@ export const idlFactory = ({ IDL }) => {
489
489
  getCertifiedAuditHead: IDL.Func([], [CertifiedAuditHead], ['query']),
490
490
  getCertifiedBirth: IDL.Func([IDL.Vec(IDL.Nat8)], [IDL.Opt(CertifiedBirth)], ['query']),
491
491
  getChildSignInOffer: IDL.Func([IDL.Principal], [Result_29], ['query']),
492
+ getConsentOrigin: IDL.Func([], [IDL.Opt(IDL.Text)], ['query']),
492
493
  getCustodyMode: IDL.Func([IDL.Principal], [Result_11], ['query']),
493
494
  getCycleReserveStatus: IDL.Func(
494
495
  [],
@@ -611,6 +612,7 @@ export const idlFactory = ({ IDL }) => {
611
612
  restartMyStoppedEngram: IDL.Func([], [Result_8], []),
612
613
  returnToManaged: IDL.Func([], [Result], []),
613
614
  setAdmin: IDL.Func([IDL.Principal], [Result], []),
615
+ setConsentOrigin: IDL.Func([IDL.Opt(IDL.Text)], [Result], []),
614
616
  setEngramWasm: IDL.Func([IDL.Vec(IDL.Nat8), IDL.Text], [Result], []),
615
617
  setEngramWasmClass: IDL.Func([ReleaseClass], [Result], []),
616
618
  setGenesisPredecessor: IDL.Func([IDL.Vec(IDL.Nat8), IDL.Nat], [Result], []),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@engramx/idl",
3
- "version": "0.16.0-rc.23",
3
+ "version": "0.16.0-rc.24",
4
4
  "description": "The Candid interfaces of the EngramX canisters (engram, registry, market) — the .did files and the JS/TS IDL factories generated from them, published with every release so code that calls them pins the interface by version.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "EngramX <developer@engramx.ai>",