@enbox/agent 0.2.2 → 0.3.1

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.
Files changed (133) hide show
  1. package/dist/browser.mjs +9 -9
  2. package/dist/browser.mjs.map +4 -4
  3. package/dist/esm/agent-did-resolver-cache.js.map +1 -1
  4. package/dist/esm/anonymous-dwn-api.js +1 -1
  5. package/dist/esm/bearer-identity.js +1 -1
  6. package/dist/esm/connect.js +5 -9
  7. package/dist/esm/connect.js.map +1 -1
  8. package/dist/esm/did-api.js +3 -3
  9. package/dist/esm/did-api.js.map +1 -1
  10. package/dist/esm/dwn-api.js +39 -8
  11. package/dist/esm/dwn-api.js.map +1 -1
  12. package/dist/esm/dwn-discovery-file.js +244 -0
  13. package/dist/esm/dwn-discovery-file.js.map +1 -0
  14. package/dist/esm/dwn-discovery-payload.js +253 -0
  15. package/dist/esm/dwn-discovery-payload.js.map +1 -0
  16. package/dist/esm/dwn-encryption.js.map +1 -1
  17. package/dist/esm/dwn-key-delivery.js.map +1 -1
  18. package/dist/esm/dwn-record-upgrade.js.map +1 -1
  19. package/dist/esm/{web5-user-agent.js → enbox-user-agent.js} +12 -7
  20. package/dist/esm/enbox-user-agent.js.map +1 -0
  21. package/dist/esm/identity-api.js +3 -3
  22. package/dist/esm/identity-api.js.map +1 -1
  23. package/dist/esm/index.js +3 -1
  24. package/dist/esm/index.js.map +1 -1
  25. package/dist/esm/local-dwn.js +150 -26
  26. package/dist/esm/local-dwn.js.map +1 -1
  27. package/dist/esm/local-key-manager.js +2 -2
  28. package/dist/esm/local-key-manager.js.map +1 -1
  29. package/dist/esm/oidc.js +11 -11
  30. package/dist/esm/oidc.js.map +1 -1
  31. package/dist/esm/permissions-api.js.map +1 -1
  32. package/dist/esm/store-data.js.map +1 -1
  33. package/dist/esm/sync-api.js +2 -2
  34. package/dist/esm/sync-api.js.map +1 -1
  35. package/dist/esm/sync-engine-level.js +2 -2
  36. package/dist/esm/sync-engine-level.js.map +1 -1
  37. package/dist/esm/test-harness.js +3 -3
  38. package/dist/esm/test-harness.js.map +1 -1
  39. package/dist/esm/utils-internal.js +2 -2
  40. package/dist/types/agent-did-resolver-cache.d.ts +7 -7
  41. package/dist/types/agent-did-resolver-cache.d.ts.map +1 -1
  42. package/dist/types/anonymous-dwn-api.d.ts +3 -3
  43. package/dist/types/anonymous-dwn-api.d.ts.map +1 -1
  44. package/dist/types/bearer-identity.d.ts +1 -1
  45. package/dist/types/connect.d.ts +8 -8
  46. package/dist/types/connect.d.ts.map +1 -1
  47. package/dist/types/did-api.d.ts +12 -11
  48. package/dist/types/did-api.d.ts.map +1 -1
  49. package/dist/types/dwn-api.d.ts +27 -11
  50. package/dist/types/dwn-api.d.ts.map +1 -1
  51. package/dist/types/dwn-discovery-file.d.ts +122 -0
  52. package/dist/types/dwn-discovery-file.d.ts.map +1 -0
  53. package/dist/types/dwn-discovery-payload.d.ts +105 -0
  54. package/dist/types/dwn-discovery-payload.d.ts.map +1 -0
  55. package/dist/types/dwn-encryption.d.ts +8 -8
  56. package/dist/types/dwn-encryption.d.ts.map +1 -1
  57. package/dist/types/dwn-key-delivery.d.ts +5 -5
  58. package/dist/types/dwn-key-delivery.d.ts.map +1 -1
  59. package/dist/types/dwn-record-upgrade.d.ts +2 -2
  60. package/dist/types/dwn-record-upgrade.d.ts.map +1 -1
  61. package/dist/types/{web5-user-agent.d.ts → enbox-user-agent.d.ts} +17 -13
  62. package/dist/types/enbox-user-agent.d.ts.map +1 -0
  63. package/dist/types/identity-api.d.ts +10 -10
  64. package/dist/types/identity-api.d.ts.map +1 -1
  65. package/dist/types/index.d.ts +3 -1
  66. package/dist/types/index.d.ts.map +1 -1
  67. package/dist/types/local-dwn.d.ts +93 -15
  68. package/dist/types/local-dwn.d.ts.map +1 -1
  69. package/dist/types/local-key-manager.d.ts +9 -9
  70. package/dist/types/local-key-manager.d.ts.map +1 -1
  71. package/dist/types/oidc.d.ts +23 -19
  72. package/dist/types/oidc.d.ts.map +1 -1
  73. package/dist/types/permissions-api.d.ts +4 -4
  74. package/dist/types/permissions-api.d.ts.map +1 -1
  75. package/dist/types/store-data.d.ts +3 -3
  76. package/dist/types/store-data.d.ts.map +1 -1
  77. package/dist/types/store-did.d.ts +2 -2
  78. package/dist/types/store-did.d.ts.map +1 -1
  79. package/dist/types/store-identity.d.ts +2 -2
  80. package/dist/types/store-identity.d.ts.map +1 -1
  81. package/dist/types/store-key.d.ts +2 -2
  82. package/dist/types/store-key.d.ts.map +1 -1
  83. package/dist/types/sync-api.d.ts +9 -9
  84. package/dist/types/sync-api.d.ts.map +1 -1
  85. package/dist/types/sync-engine-level.d.ts +9 -9
  86. package/dist/types/sync-engine-level.d.ts.map +1 -1
  87. package/dist/types/sync-messages.d.ts +5 -5
  88. package/dist/types/sync-messages.d.ts.map +1 -1
  89. package/dist/types/test-harness.d.ts +4 -4
  90. package/dist/types/test-harness.d.ts.map +1 -1
  91. package/dist/types/types/agent.d.ts +24 -19
  92. package/dist/types/types/agent.d.ts.map +1 -1
  93. package/dist/types/types/identity.d.ts +1 -1
  94. package/dist/types/types/key-manager.d.ts +2 -2
  95. package/dist/types/types/key-manager.d.ts.map +1 -1
  96. package/dist/types/types/sync.d.ts +2 -2
  97. package/dist/types/types/sync.d.ts.map +1 -1
  98. package/dist/types/utils-internal.d.ts +4 -4
  99. package/dist/types/utils-internal.d.ts.map +1 -1
  100. package/package.json +6 -6
  101. package/src/agent-did-resolver-cache.ts +8 -8
  102. package/src/anonymous-dwn-api.ts +4 -4
  103. package/src/bearer-identity.ts +1 -1
  104. package/src/connect.ts +14 -19
  105. package/src/did-api.ts +13 -11
  106. package/src/dwn-api.ts +61 -16
  107. package/src/dwn-discovery-file.ts +305 -0
  108. package/src/dwn-discovery-payload.ts +308 -0
  109. package/src/dwn-encryption.ts +8 -8
  110. package/src/dwn-key-delivery.ts +5 -5
  111. package/src/dwn-record-upgrade.ts +2 -2
  112. package/src/{web5-user-agent.ts → enbox-user-agent.ts} +26 -16
  113. package/src/identity-api.ts +11 -11
  114. package/src/index.ts +3 -1
  115. package/src/local-dwn.ts +154 -28
  116. package/src/local-key-manager.ts +10 -10
  117. package/src/oidc.ts +40 -30
  118. package/src/permissions-api.ts +5 -5
  119. package/src/store-data.ts +7 -7
  120. package/src/store-did.ts +2 -2
  121. package/src/store-identity.ts +2 -2
  122. package/src/store-key.ts +2 -2
  123. package/src/sync-api.ts +10 -10
  124. package/src/sync-engine-level.ts +12 -12
  125. package/src/sync-messages.ts +5 -5
  126. package/src/test-harness.ts +9 -9
  127. package/src/types/agent.ts +31 -20
  128. package/src/types/identity.ts +1 -1
  129. package/src/types/key-manager.ts +2 -2
  130. package/src/types/sync.ts +2 -2
  131. package/src/utils-internal.ts +4 -4
  132. package/dist/esm/web5-user-agent.js.map +0 -1
  133. package/dist/types/web5-user-agent.d.ts.map +0 -1
@@ -1,27 +1,27 @@
1
- import type { Web5PlatformAgent } from './types/agent.js';
1
+ import type { EnboxPlatformAgent } from './types/agent.js';
2
2
  import type { StartSyncParams, SyncConnectivityState, SyncEngine, SyncIdentityOptions } from './types/sync.js';
3
3
  export type SyncApiParams = {
4
- agent?: Web5PlatformAgent;
4
+ agent?: EnboxPlatformAgent;
5
5
  syncEngine: SyncEngine;
6
6
  };
7
7
  export declare class AgentSyncApi implements SyncEngine {
8
8
  /**
9
- * Holds the instance of a `Web5PlatformAgent` that represents the current execution context for
10
- * the `AgentSyncApi`. This agent is used to interact with other Web5 agent components. It's vital
11
- * to ensure this instance is set to correctly contextualize operations within the broader Web5
9
+ * Holds the instance of a `EnboxPlatformAgent` that represents the current execution context for
10
+ * the `AgentSyncApi`. This agent is used to interact with other Enbox agent components. It's vital
11
+ * to ensure this instance is set to correctly contextualize operations within the broader Enbox
12
12
  * Agent framework.
13
13
  */
14
14
  private _agent?;
15
15
  private _syncEngine;
16
16
  constructor({ agent, syncEngine }: SyncApiParams);
17
17
  /**
18
- * Retrieves the `Web5PlatformAgent` execution context.
18
+ * Retrieves the `EnboxPlatformAgent` execution context.
19
19
  *
20
- * @returns The `Web5PlatformAgent` instance that represents the current execution context.
20
+ * @returns The `EnboxPlatformAgent` instance that represents the current execution context.
21
21
  * @throws Will throw an error if the `agent` instance property is undefined.
22
22
  */
23
- get agent(): Web5PlatformAgent;
24
- set agent(agent: Web5PlatformAgent);
23
+ get agent(): EnboxPlatformAgent;
24
+ set agent(agent: EnboxPlatformAgent);
25
25
  get connectivityState(): SyncConnectivityState;
26
26
  registerIdentity(params: {
27
27
  did: string;
@@ -1 +1 @@
1
- {"version":3,"file":"sync-api.d.ts","sourceRoot":"","sources":["../../src/sync-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAE/G,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,UAAU,EAAE,UAAU,CAAC;CACxB,CAAC;AAEF,qBAAa,YAAa,YAAW,UAAU;IAC7C;;;;;OAKG;IACH,OAAO,CAAC,MAAM,CAAC,CAAoB;IAEnC,OAAO,CAAC,WAAW,CAAa;gBAEpB,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE,aAAa;IAKhD;;;;;OAKG;IACH,IAAI,KAAK,IAAI,iBAAiB,CAM7B;IAED,IAAI,KAAK,CAAC,KAAK,EAAE,iBAAiB,EAGjC;IAED,IAAI,iBAAiB,IAAI,qBAAqB,CAE7C;IAEY,gBAAgB,CAAC,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,mBAAmB,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAIvF,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI9C,kBAAkB,CAAC,GAAG,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BAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI9C,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC;IAIzE,qBAAqB,CAAC,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,mBAAmB,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAIjG,IAAI,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIhD,SAAS,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IAIjD,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGjD"}
@@ -1,18 +1,18 @@
1
1
  import type { AbstractLevel } from 'abstract-level';
2
2
  import type { GenericMessage } from '@enbox/dwn-sdk-js';
3
+ import type { EnboxPlatformAgent } from './types/agent.js';
3
4
  import type { StartSyncParams, SyncConnectivityState, SyncEngine, SyncIdentityOptions } from './types/sync.js';
4
- import type { Web5PlatformAgent } from './types/agent.js';
5
5
  export type SyncEngineLevelParams = {
6
- agent?: Web5PlatformAgent;
6
+ agent?: EnboxPlatformAgent;
7
7
  dataPath?: string;
8
8
  db?: AbstractLevel<string | Buffer | Uint8Array>;
9
9
  };
10
10
  export declare class SyncEngineLevel implements SyncEngine {
11
11
  /**
12
- * Holds the instance of a `Web5PlatformAgent` that represents the current execution context for
13
- * the `SyncEngineLevel`. This agent is used to interact with other Web5 agent components. It's
12
+ * Holds the instance of a `EnboxPlatformAgent` that represents the current execution context for
13
+ * the `SyncEngineLevel`. This agent is used to interact with other Enbox agent components. It's
14
14
  * vital to ensure this instance is set to correctly contextualize operations within the broader
15
- * Web5 Agent framework.
15
+ * Enbox Agent framework.
16
16
  */
17
17
  private _agent?;
18
18
  /**
@@ -48,13 +48,13 @@ export declare class SyncEngineLevel implements SyncEngine {
48
48
  private static readonly MAX_BACKOFF_MULTIPLIER;
49
49
  constructor({ agent, dataPath, db }: SyncEngineLevelParams);
50
50
  /**
51
- * Retrieves the `Web5PlatformAgent` execution context.
51
+ * Retrieves the `EnboxPlatformAgent` execution context.
52
52
  *
53
- * @returns The `Web5PlatformAgent` instance that represents the current execution context.
53
+ * @returns The `EnboxPlatformAgent` instance that represents the current execution context.
54
54
  * @throws Will throw an error if the `agent` instance property is undefined.
55
55
  */
56
- get agent(): Web5PlatformAgent;
57
- set agent(agent: Web5PlatformAgent);
56
+ get agent(): EnboxPlatformAgent;
57
+ set agent(agent: EnboxPlatformAgent);
58
58
  get connectivityState(): SyncConnectivityState;
59
59
  clear(): Promise<void>;
60
60
  close(): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"sync-engine-level.d.ts","sourceRoot":"","sources":["../../src/sync-engine-level.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAgF,MAAM,mBAAmB,CAAC;AAQtI,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,UAAU,EAAE,mBAAmB,EAAY,MAAM,iBAAiB,CAAC;AACzH,OAAO,KAAK,EAAa,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAQrE,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,EAAE,CAAC,EAAE,aAAa,CAAC,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC,CAAC;CAClD,CAAC;AAuCF,qBAAa,eAAgB,YAAW,UAAU;IAChD;;;;;OAKG;IACH,OAAO,CAAC,MAAM,CAAC,CAAoB;IAEnC;;OAEG;IACH,OAAO,CAAC,eAAe,CAAiB;IAExC,OAAO,CAAC,GAAG,CAA8C;IACzD,OAAO,CAAC,eAAe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;;;OAIG;IACH,OAAO,CAAC,aAAa;IAerB;;;OAGG;YACW,iBAAiB;IAiB/B;;;OAGG;YACW,YAAY;IAmB1B;;;OAGG;YACW,aAAa;IA6B3B;;;;;OAKG;YACW,YAAY;YA0EZ,mBAAmB;YAoBnB,oBAAoB;YA0BpB,cAAc;YAoBd,eAAe;IA8B7B;;;OAGG;YACW,YAAY;IAc1B;;;OAGG;YACW,YAAY;IAkB1B;;;OAGG;WACW,eAAe,CAAC,CAAC,SAAS;QAAE,OAAO,EAAE,cAAc,CAAA;KAAE,EACjE,QAAQ,EAAE,CAAC,EAAE,GACZ,CAAC,EAAE;IAIN;;OAEG;YACW,cAAc;IAqC5B;;;OAGG;YACW,wBAAwB;CAmBvC"}
@@ -1,5 +1,5 @@
1
+ import type { EnboxPlatformAgent } from './types/agent.js';
1
2
  import type { PermissionsApi } from './types/permissions.js';
2
- import type { Web5PlatformAgent } from './types/agent.js';
3
3
  import type { GenericMessage, UnionMessageReply } from '@enbox/dwn-sdk-js';
4
4
  /** Entry type for fetched messages with optional data stream. */
5
5
  export type SyncMessageEntry = {
@@ -32,7 +32,7 @@ export declare function pullMessages({ did, dwnUrl, delegateDid, protocol, messa
32
32
  delegateDid?: string;
33
33
  protocol?: string;
34
34
  messageCids: string[];
35
- agent: Web5PlatformAgent;
35
+ agent: EnboxPlatformAgent;
36
36
  permissionsApi: PermissionsApi;
37
37
  }): Promise<void>;
38
38
  /**
@@ -44,7 +44,7 @@ export declare function fetchRemoteMessages({ did, dwnUrl, delegateDid, protocol
44
44
  delegateDid?: string;
45
45
  protocol?: string;
46
46
  messageCids: string[];
47
- agent: Web5PlatformAgent;
47
+ agent: EnboxPlatformAgent;
48
48
  permissionsApi: PermissionsApi;
49
49
  }): Promise<SyncMessageEntry[]>;
50
50
  /**
@@ -59,7 +59,7 @@ export declare function pushMessages({ did, dwnUrl, delegateDid, protocol, messa
59
59
  delegateDid?: string;
60
60
  protocol?: string;
61
61
  messageCids: string[];
62
- agent: Web5PlatformAgent;
62
+ agent: EnboxPlatformAgent;
63
63
  permissionsApi: PermissionsApi;
64
64
  }): Promise<void>;
65
65
  /**
@@ -70,7 +70,7 @@ export declare function getLocalMessage({ author, delegateDid, protocol, message
70
70
  delegateDid?: string;
71
71
  protocol?: string;
72
72
  messageCid: string;
73
- agent: Web5PlatformAgent;
73
+ agent: EnboxPlatformAgent;
74
74
  permissionsApi: PermissionsApi;
75
75
  }): Promise<SyncMessageEntry | undefined>;
76
76
  //# sourceMappingURL=sync-messages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sync-messages.d.ts","sourceRoot":"","sources":["../../src/sync-messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAqB,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAQ9F,iEAAiE;AACjE,MAAM,MAAM,gBAAgB,GAAG;IAAE,OAAO,EAAE,cAAc,CAAC;IAAC,UAAU,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,CAAA;CAAE,CAAC;AAEpG;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAS9E;AAED;;GAEG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAM5E;AAED;;;;;;;;GAQG;AACH,wBAAsB,YAAY,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE,cAAc,EAAE,EAAE;IAC7G,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,EA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EAAE,EAAE;IACpH,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,KAAK,EAAE,kBAAkB,CAAC;IAC1B,cAAc,EAAE,cAAc,CAAC;CAChC,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAwE9B;AAED;;;;;GAKG;AACH,wBAAsB,YAAY,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE,cAAc,EAAE,EAAE;IAC7G,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,KAAK,EAAE,kBAAkB,CAAC;IAC1B,cAAc,EAAE,cAAc,CAAC;CAChC,GAAG,OAAO,CAAC,IAAI,CAAC,CAiChB;AAED;;GAEG;AACH,wBAAsB,eAAe,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,cAAc,EAAE,EAAE;IAC1G,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,kBAAkB,CAAC;IAC1B,cAAc,EAAE,cAAc,CAAC;CAChC,GAAG,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAwCxC"}
@@ -2,15 +2,15 @@ import type { AbstractLevel } from 'abstract-level';
2
2
  import type { BearerIdentity } from './bearer-identity.js';
3
3
  import type { DidResolverCache } from '@enbox/dids';
4
4
  import type { Dwn } from '@enbox/dwn-sdk-js';
5
+ import type { EnboxPlatformAgent } from './types/agent.js';
5
6
  import type { KeyValueStore } from '@enbox/common';
6
- import type { Web5PlatformAgent } from './types/agent.js';
7
7
  import { DataStoreLevel, MessageStoreLevel, ResumableTaskStoreLevel, StateIndexLevel } from '@enbox/dwn-sdk-js';
8
8
  import { LocalKeyManager } from './local-key-manager.js';
9
9
  import { DwnDidStore } from './store-did.js';
10
10
  import { DwnIdentityStore } from './store-identity.js';
11
11
  import { DwnKeyStore } from './store-key.js';
12
12
  type PlatformAgentTestHarnessParams = {
13
- agent: Web5PlatformAgent<LocalKeyManager>;
13
+ agent: EnboxPlatformAgent<LocalKeyManager>;
14
14
  agentStores: 'dwn' | 'memory';
15
15
  didResolverCache: DidResolverCache;
16
16
  dwn: Dwn;
@@ -28,7 +28,7 @@ type PlatformAgentTestHarnessParams = {
28
28
  };
29
29
  };
30
30
  export declare class PlatformAgentTestHarness {
31
- agent: Web5PlatformAgent<LocalKeyManager>;
31
+ agent: EnboxPlatformAgent<LocalKeyManager>;
32
32
  agentStores: 'dwn' | 'memory';
33
33
  didResolverCache: DidResolverCache;
34
34
  dwn: Dwn;
@@ -68,7 +68,7 @@ export declare class PlatformAgentTestHarness {
68
68
  testDwnUrls: string[];
69
69
  }): Promise<BearerIdentity>;
70
70
  static setup({ agentClass, agentStores, testDataLocation }: {
71
- agentClass: new (params: any) => Web5PlatformAgent<LocalKeyManager>;
71
+ agentClass: new (params: any) => EnboxPlatformAgent<LocalKeyManager>;
72
72
  agentStores?: 'dwn' | 'memory';
73
73
  testDataLocation?: string;
74
74
  }): Promise<PlatformAgentTestHarness>;
@@ -1 +1 @@
1
- {"version":3,"file":"test-harness.d.ts","sourceRoot":"","sources":["../../src/test-harness.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,gB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gB,EAAE,EAAE;QACvE,UAAU,EAAE,KAAK,MAAM,EAAE,GAAG,KAAK,kBAAkB,CAAC,eAAe,CAAC,CAAA;QACpE,WAAW,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;QAC/B,gBAAgB,CAAC,EAAE,MAAM,CAAC;KAC3B,GAAG,OAAO,CAAC,wBAAwB,CAAC;IA+FrC,OAAO,CAAC,MAAM,CAAC,aAAa;IAqC5B,OAAO,CAAC,MAAM,CAAC,eAAe;CAsB/B"}
@@ -5,14 +5,15 @@ import type { AgentIdentityApi } from '../identity-api.js';
5
5
  import type { AgentKeyManager } from './key-manager.js';
6
6
  import type { AgentPermissionsApi } from '../permissions-api.js';
7
7
  import type { AgentSyncApi } from '../sync-api.js';
8
+ import type { EnboxRpc } from '@enbox/dwn-clients';
8
9
  import type { IdentityVault } from './identity-vault.js';
9
- import type { Web5Rpc } from '@enbox/dwn-clients';
10
+ import type { LocalKeyManager } from '../local-key-manager.js';
10
11
  import type { AgentDidApi, DidInterface, DidRequest, DidResponse } from '../did-api.js';
11
12
  import type { DwnInterface, DwnResponse, ProcessDwnRequest, SendDwnRequest } from './dwn.js';
12
13
  import type { ProcessVcRequest, SendVcRequest, VcResponse } from './vc.js';
13
14
  /**
14
15
  * Defines the structure for response status in the context of an Agent's interaction within the
15
- * Web5 framework.
16
+ * Enbox framework.
16
17
  *
17
18
  * This type is utilized to convey the success or failure of an operation performed by the Agent,
18
19
  * providing feedback that can be programmatically interpreted and acted upon.
@@ -48,18 +49,18 @@ export type ResponseStatus = {
48
49
  };
49
50
  };
50
51
  /**
51
- * Defines the interface for a Web5 Agent, encapsulating the core functionality all implementations
52
+ * Defines the interface for an Enbox Agent, encapsulating the core functionality all implementations
52
53
  * must include.
53
54
  *
54
55
  * The Agent is responsible for handling decentralized identifier (DID) requests, decentralized web
55
56
  * node (DWN) requests, and verifiable credential (VC) requests.
56
57
  *
57
- * The `AgentDid` property represents the Web5 Agent's own DID, while the various process and send
58
+ * The `AgentDid` property represents the Enbox Agent's own DID, while the various process and send
58
59
  * methods enable the Agent to handle and initiate requests pertaining to DIDs, DWNs, and VCs.
59
60
  */
60
- export interface Web5Agent {
61
+ export interface EnboxAgent {
61
62
  /**
62
- * The Decentralized Identifier (DID) of this Web5 Agent.
63
+ * The Decentralized Identifier (DID) of this Enbox Agent.
63
64
  */
64
65
  agentDid: BearerDid;
65
66
  /**
@@ -95,23 +96,23 @@ export interface Web5Agent {
95
96
  sendVcRequest(request: SendVcRequest): Promise<VcResponse>;
96
97
  }
97
98
  /**
98
- * Represents a Web5 Platform Agent, an extended and more feature-rich implementation of a
99
- * {@link Web5Agent}.
99
+ * Represents an Enbox Platform Agent, an extended and more feature-rich implementation of a
100
+ * {@link EnboxAgent}.
100
101
  *
101
102
  * This Agent integrates a comprehensive set of APIs and functionalities, including cryptographic
102
103
  * operations, DID management, DWN interaction, identity handling, and data synchronization.
103
104
  *
104
- * The platform agent provides a higher-level abstraction over the core Web5Agent functionalities,
105
- * facilitating a robust platform for developing Web5 applications. It includes lifecycle management
105
+ * The platform agent provides a higher-level abstraction over the core EnboxAgent functionalities,
106
+ * facilitating a robust platform for developing Enbox applications. It includes lifecycle management
106
107
  * methods like initialization and startup, alongside a suite of specialized APIs and utilities.
107
108
  *
108
109
  * @typeParam TKeyManager - The type of Key Manager used to manage cryptographic keys.
109
110
  */
110
- export interface Web5PlatformAgent<TKeyManager extends AgentKeyManager = AgentKeyManager> extends Web5Agent {
111
+ export interface EnboxPlatformAgent<TKeyManager extends AgentKeyManager = AgentKeyManager> extends EnboxAgent {
111
112
  /**
112
113
  * The cryptography API, essential for performing various cryptographic operations such
113
114
  * as encryption, decryption, signing, and verification, ensuring secure data handling and
114
- * communication within the Web5 Platform.
115
+ * communication within the Enbox platform.
115
116
  */
116
117
  crypto: AgentCryptoApi;
117
118
  /**
@@ -121,12 +122,12 @@ export interface Web5PlatformAgent<TKeyManager extends AgentKeyManager = AgentKe
121
122
  did: AgentDidApi<TKeyManager>;
122
123
  /**
123
124
  * The DWN API, enabling the Agent to interact with Decentralized Web Nodes (DWNs) and handle
124
- * requests from Web5 applications.
125
+ * requests from Enbox applications.
125
126
  */
126
127
  dwn: AgentDwnApi;
127
128
  /**
128
129
  * The identity management API, handling identity-related operations and allowing the agent to
129
- * manage Web5 identities, supporting operations like identity creation and update.
130
+ * manage Enbox identities, supporting operations like identity creation and update.
130
131
  */
131
132
  identity: AgentIdentityApi<TKeyManager>;
132
133
  /**
@@ -139,17 +140,17 @@ export interface Web5PlatformAgent<TKeyManager extends AgentKeyManager = AgentKe
139
140
  */
140
141
  permissions: AgentPermissionsApi;
141
142
  /**
142
- * The RPC (Remote Procedure Call) client interface, facilitating communication with other Web5
143
- * Agents and services.
143
+ * The RPC (Remote Procedure Call) client interface, facilitating communication with other Enbox
144
+ * agents and services.
144
145
  */
145
- rpc: Web5Rpc;
146
+ rpc: EnboxRpc;
146
147
  /**
147
148
  * The synchronization API, responsible for managing the consistency and real-time update of the
148
149
  * agent's data with the state of the distributed network.
149
150
  */
150
151
  sync: AgentSyncApi;
151
152
  /**
152
- * An instance of {@link IdentityVault}, providing secure storage and management of a Web5 Agent's
153
+ * An instance of {@link IdentityVault}, providing secure storage and management of an Enbox Agent's
153
154
  * DID and cryptographic keys.
154
155
  */
155
156
  vault: IdentityVault;
@@ -160,7 +161,7 @@ export interface Web5PlatformAgent<TKeyManager extends AgentKeyManager = AgentKe
160
161
  firstLaunch(): Promise<boolean>;
161
162
  /**
162
163
  * Initializes the agent with essential parameters (e.g., a passphrase) and prepares it for
163
- * processing Web5 requests.
164
+ * processing requests.
164
165
  */
165
166
  initialize(params: unknown): Promise<unknown>;
166
167
  /**
@@ -169,4 +170,8 @@ export interface Web5PlatformAgent<TKeyManager extends AgentKeyManager = AgentKe
169
170
  */
170
171
  start(params: unknown): Promise<unknown>;
171
172
  }
173
+ /** @deprecated Use {@link EnboxAgent} instead. Will be removed in a future version. */
174
+ export type Web5Agent = EnboxAgent;
175
+ /** @deprecated Use {@link EnboxPlatformAgent} instead. Will be removed in a future version. */
176
+ export type Web5PlatformAgent<TKeyManager extends AgentKeyManager = LocalKeyManager> = EnboxPlatformAgent<TKeyManager>;
172
177
  //# sourceMappingURL=agent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../src/types/agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxF,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC7F,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAG3E;;;;;;;;;;GAUG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B;;;;;OAKG;IACH,EAAE,EAAE,OAAO,CAAC;IAEZ,MAAM,EAAE;QACN;;;;;WAKG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;;;;;WAMG;QACH,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;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ACH,MAAM,WAAW,kBAAkB,CAAC,WAAW,SAAS,eAAe,GAAG,eAAe,CAAE,SAAQ,UAAU;IAC3G;;;;OAIG;IACH,MAAM,EAAE,cAAc,CAAC;IAEvB;;;OAGG;IACH,GAAG,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;IAE9B;;;OAGG;IACH,GAAG,EAAE,WAAW,CAAC;IAEjB;;;OAGG;IACH,QAAQ,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAC;IAExC;;;OAGG;IACH,UAAU,EAAE,WAAW,CAAC;IAExB;;OAEG;IACH,WAAW,EAAE,mBAAmB,CAAC;IAEjC;;;OAGG;IACH,GAAG,EAAE,QAAQ,CAAC;IAEd;;;OAGG;IACH,IAAI,EAAE,YAAY,CAAC;IAEnB;;;OAGG;IACH,KAAK,EAAE,aAAa,CAAC;IAErB;;;OAGG;IACH,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAEhC;;;OAGG;IACH,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAE9C;;;OAGG;IACH,KAAK,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAC1C;AAMD,uFAAuF;AACvF,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC;AAEnC,+FAA+F;AAC/F,MAAM,MAAM,iBAAiB,CAAC,WAAW,SAAS,eAAe,GAAG,eAAe,IAAI,kBAAkB,CAAC,WAAW,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { PortableDid } from '@enbox/dids';
2
2
  /**
3
- * Represents metadata about a Web5 Identity.
3
+ * Represents metadata about an Enbox Identity.
4
4
  */
5
5
  export interface IdentityMetadata {
6
6
  name: string;
@@ -1,7 +1,7 @@
1
1
  import type { Cipher, Jwk, KeyDeleter, KeyExporter, KeyIdentifier, KeyImporter, KeyManager, KeyWrapper, KmsCipherParams, KmsDeleteKeyParams, KmsExportKeyParams, KmsImportKeyParams, KmsUriUnwrapKeyParams, KmsUriWrapKeyParams, PublicKeyJwk } from '@enbox/crypto';
2
- import type { Web5PlatformAgent } from './agent.js';
2
+ import type { EnboxPlatformAgent } from './agent.js';
3
3
  export interface AgentKeyManager extends KeyManager, Cipher<KmsCipherParams, KmsCipherParams>, KeyImporter<KmsImportKeyParams, KeyIdentifier>, KeyExporter<KmsExportKeyParams, Jwk>, KeyDeleter<KmsDeleteKeyParams>, KeyWrapper<KmsUriWrapKeyParams, KmsUriUnwrapKeyParams> {
4
- agent: Web5PlatformAgent;
4
+ agent: EnboxPlatformAgent;
5
5
  /**
6
6
  * Derives an HD child public key from a stored private key using HKDF-SHA256
7
7
  * iteratively through the given derivation path segments.
@@ -1 +1 @@
1
- {"version":3,"file":"key-manager.d.ts","sourceRoot":"","sources":["../../../src/types/key-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,GAAG,EACH,UAAU,EACV,WAAW,EACX,aAAa,EACb,WAAW,EACX,UAAU,EACV,UAAU,EACV,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,YAAY,EACb,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,MAAM,WAAW,eAAgB,SAAQ,UAAU,EACjD,MAAM,CAAC,eAAe,EAAE,eAAe,CAAC,EACxC,WAAW,CAAC,kBAAkB,EAAE,aAAa,CAAC,EAC9C,WAAW,CAAC,kBAAkB,EAAE,GAAG,CAAC,EACpC,UAAU,CAAC,kBAAkB,CAAC,EAC9B,UAAU,CAAC,mBAAmB,EAAE,qBAAqB,CAAC;IAEtD,KAAK,EAAE,iBAAiB,CAAC;IAEzB;;;;;;;;;OASG;IACH,eAAe,CAAC,MAAM,EAAE;QACtB,MAAM,EAAE,aAAa,CAAC;QACtB,cAAc,EAAE,MAAM,EAAE,CAAC;KAC1B,GAAG,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CAAC,CAAC;IAE1B;;;;;;;;;;;;;;;OAeG;IACH,YAAY,CAAC,MAAM,EAAE;QACnB,MAAM,EAAE,aAAa,CAAC;QACtB,cAAc,EAAE,MAAM,EAAE,CAAC;QACzB,YAAY,EAAE,UAAU,CAAC;QACzB,kBAAkB,EAAE,YAAY,CAAC;KAClC,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAExB;;;;;;;;;;;;;;;;;OAiBG;IACH,qBAAqB,CAAC,MAAM,EAAE;QAC5B,MAAM,EAAE,aAAa,CAAC;QACtB,cAAc,EAAE,MAAM,EAAE,CAAC;KAC1B,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;CACzB"}
@@ -1,4 +1,4 @@
1
- import type { Web5PlatformAgent } from './agent.js';
1
+ import type { EnboxPlatformAgent } from './agent.js';
2
2
  /**
3
3
  * The SyncEngine is responsible for syncing messages between the agent and the platform.
4
4
  */
@@ -52,7 +52,7 @@ export interface SyncEngine {
52
52
  /**
53
53
  * The agent that the SyncEngine is attached to.
54
54
  */
55
- agent: Web5PlatformAgent;
55
+ agent: EnboxPlatformAgent;
56
56
  /**
57
57
  * Current connectivity state as observed by the sync engine.
58
58
  * Updated when WebSocket subscriptions connect/disconnect or when the
@@ -1 +1 @@
1
- {"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../src/types/sync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;AAErE;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvC;;GAEG;AACH,MA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AE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAClD;;;;;OAKG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3C"}
@@ -1,8 +1,8 @@
1
1
  import type { Jwk, KeyIdentifier, KmsExportKeyParams, KmsGetPublicKeyParams, KmsSignParams } from '@enbox/crypto';
2
2
  import { LocalKeyManager } from '@enbox/crypto';
3
- import type { Web5PlatformAgent } from './types/agent.js';
3
+ import type { EnboxPlatformAgent } from './types/agent.js';
4
4
  /**
5
- * Internal utility functions used by the Web5 platform agent that are not intended for public use
5
+ * Internal utility functions used by the Enbox platform agent that are not intended for public use
6
6
  * and are not exported in the public API.
7
7
  */
8
8
  /**
@@ -36,14 +36,14 @@ export declare class DeterministicKeyGenerator extends LocalKeyManager {
36
36
  * This approach ensures operations are isolated by DID, supporting multi-tenancy.
37
37
  *
38
38
  * @param params - The parameters for determining the tenant.
39
- * @param params.agent - The Web5 platform agent instance.
39
+ * @param params.agent - The Enbox platform agent instance.
40
40
  * @param [params.tenant] - An optional tenant DID. If provided, it takes precedence.
41
41
  * @param [params.didUri] - An optional DID URI to use if no tenant DID or agent DID is available.
42
42
  * @returns A promise that resolves to the tenant DID.
43
43
  * @throws Throws an error if it fails to determine the tenant from the provided inputs.
44
44
  */
45
45
  export declare function getDataStoreTenant({ agent, tenant, didUri }: {
46
- agent: Web5PlatformAgent;
46
+ agent: EnboxPlatformAgent;
47
47
  tenant?: string;
48
48
  didUri?: string;
49
49
  }): Promise<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"utils-internal.d.ts","sourceRoot":"","sources":["../../src/utils-internal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,aAAa,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAElH,OAAO,EAAiC,eAAe,EAAE,MAAM,eAAe,CAAC;AAE/E,OAAO,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AO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D;;;GAGG;AAEH;;;GAGG;AACH,eAAO,MAAM,gBAAgB,MAAM,CAAC;AAEpC,qBAAa,yBAA0B,SAAQ,eAAe;IAC5D,OAAO,CAAC,eAAe,CAA0B;IACjD,OAAO,CAAC,aAAa,CAAkC;;IAQ1C,iBAAiB,CAAC,EAAE,WAAW,EAAE,EAAE;QAAE,WAAW,EAAE,GAAG,EAAE,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAqBzE,SAAS,CAAC,EAAE,MAAM,EAAE,EAC/B,kBAAkB,GACjB,OAAO,CAAC,GAAG,CAAC;IAYF,WAAW,CAAC,OAAO,EAAE;QAChC,SAAS,EAAE,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,QAAQ,CAAA;KAC5D,GAAG,OAAO,CAAC,aAAa,CAAC;IAYb,YAAY,CAAC,EAAE,MAAM,EAAE,EAChC,qBAAqB,GACtB,OAAO,CAAC,GAAG,CAAC;IAeF,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAChC,aAAa,GACZ,OAAO,CAAC,UAAU,CAAC;CAcvB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,kBAAkB,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE;IAClE,KAAK,EAAE,kBAAkB,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,OAAO,CAAC,MAAM,CAAC,CAuBlB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enbox/agent",
3
- "version": "0.2.2",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "main": "./dist/esm/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -71,11 +71,11 @@
71
71
  },
72
72
  "dependencies": {
73
73
  "@scure/bip39": "1.2.2",
74
- "@enbox/dwn-clients": "0.0.9",
75
- "@enbox/dwn-sdk-js": "0.1.1",
76
- "@enbox/common": "0.0.6",
77
- "@enbox/crypto": "0.0.7",
78
- "@enbox/dids": "0.0.8",
74
+ "@enbox/dwn-clients": "0.1.0",
75
+ "@enbox/dwn-sdk-js": "0.1.2",
76
+ "@enbox/common": "0.0.7",
77
+ "@enbox/crypto": "0.0.8",
78
+ "@enbox/dids": "0.0.9",
79
79
  "abstract-level": "1.0.4",
80
80
  "ed25519-keygen": "0.4.11",
81
81
  "level": "8.0.0",
@@ -1,6 +1,6 @@
1
1
  import type { DidResolutionResult, DidResolverCache, DidResolverCacheLevelParams } from '@enbox/dids';
2
2
 
3
- import type { Web5PlatformAgent } from './types/agent.js';
3
+ import type { EnboxPlatformAgent } from './types/agent.js';
4
4
 
5
5
  import { DidResolverCacheLevel } from '@enbox/dids';
6
6
  import { logger } from '@enbox/common';
@@ -13,29 +13,29 @@ import { logger } from '@enbox/common';
13
13
  export class AgentDidResolverCache extends DidResolverCacheLevel implements DidResolverCache {
14
14
 
15
15
  /**
16
- * Holds the instance of a `Web5PlatformAgent` that represents the current execution context for
17
- * the `AgentDidApi`. This agent is used to interact with other Web5 agent components. It's vital
18
- * to ensure this instance is set to correctly contextualize operations within the broader Web5
16
+ * Holds the instance of a `EnboxPlatformAgent` that represents the current execution context for
17
+ * the `AgentDidApi`. This agent is used to interact with other Enbox agent components. It's vital
18
+ * to ensure this instance is set to correctly contextualize operations within the broader Enbox
19
19
  * Agent framework.
20
20
  */
21
- private _agent?: Web5PlatformAgent;
21
+ private _agent?: EnboxPlatformAgent;
22
22
 
23
23
  /** A map of DIDs that are currently in-flight. This helps avoid going into an infinite loop */
24
24
  private _resolving: Map<string, boolean> = new Map();
25
25
 
26
- constructor({ agent, db, location, ttl }: DidResolverCacheLevelParams & { agent?: Web5PlatformAgent }) {
26
+ constructor({ agent, db, location, ttl }: DidResolverCacheLevelParams & { agent?: EnboxPlatformAgent }) {
27
27
  super ({ db, location, ttl });
28
28
  this._agent = agent;
29
29
  }
30
30
 
31
- get agent(): Web5PlatformAgent {
31
+ get agent(): EnboxPlatformAgent {
32
32
  if (!this._agent) {
33
33
  throw new Error('Agent not initialized');
34
34
  }
35
35
  return this._agent;
36
36
  }
37
37
 
38
- set agent(agent: Web5PlatformAgent) {
38
+ set agent(agent: EnboxPlatformAgent) {
39
39
  this._agent = agent;
40
40
  }
41
41
 
@@ -13,7 +13,7 @@ import type {
13
13
  RecordsSubscribeReply,
14
14
  SubscriptionListener,
15
15
  } from '@enbox/dwn-sdk-js';
16
- import type { DwnRpcRequest, Web5Rpc } from '@enbox/dwn-clients';
16
+ import type { DwnRpcRequest, EnboxRpc } from '@enbox/dwn-clients';
17
17
 
18
18
  import { ProtocolsQuery, RecordsCount, RecordsQuery, RecordsRead, RecordsSubscribe } from '@enbox/dwn-sdk-js';
19
19
 
@@ -26,7 +26,7 @@ export type AnonymousDwnApiParams = {
26
26
  /** A DID URL dereferencer for resolving target DID service endpoints. */
27
27
  didResolver: DidUrlDereferencer;
28
28
  /** An RPC client for sending messages to remote DWNs. */
29
- rpcClient: Web5Rpc;
29
+ rpcClient: EnboxRpc;
30
30
  };
31
31
 
32
32
  /**
@@ -89,7 +89,7 @@ export type AnonymousProtocolsQueryParams = {
89
89
  * @example
90
90
  * ```ts
91
91
  * const resolver = new UniversalResolver({ didResolvers: [DidDht, DidJwk] });
92
- * const rpcClient = new Web5RpcClient();
92
+ * const rpcClient = new EnboxRpcClient();
93
93
  * const anonymousDwn = new AnonymousDwnApi({ didResolver: resolver, rpcClient });
94
94
  *
95
95
  * const reply = await anonymousDwn.recordsQuery('did:dht:alice...', {
@@ -99,7 +99,7 @@ export type AnonymousProtocolsQueryParams = {
99
99
  */
100
100
  export class AnonymousDwnApi {
101
101
  private _didResolver: DidUrlDereferencer;
102
- private _rpcClient: Web5Rpc;
102
+ private _rpcClient: EnboxRpc;
103
103
 
104
104
  constructor({ didResolver, rpcClient }: AnonymousDwnApiParams) {
105
105
  this._didResolver = didResolver;
@@ -2,7 +2,7 @@ import type { BearerDid } from '@enbox/dids';
2
2
  import type { IdentityMetadata, PortableIdentity } from './types/identity.js';
3
3
 
4
4
  /**
5
- * Represents a Web5 Identity with its DID and metadata.
5
+ * Represents an Enbox Identity with its DID and metadata.
6
6
  */
7
7
  export class BearerIdentity {
8
8
  /** {@inheritDoc BearerDid} */