@enbox/agent 0.2.2 → 0.3.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.
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 +3 -3
  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 +12 -12
  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
@@ -0,0 +1,122 @@
1
+ /**
2
+ * File-based local DWN discovery for CLI and native apps.
3
+ *
4
+ * When `electrobun-dwn` (or any local DWN server) starts, it writes a
5
+ * well-known file (`~/.enbox/dwn.json`) containing the DWN endpoint URL
6
+ * and the server PID. CLI tools and native apps read this file to discover
7
+ * the local DWN without port probing.
8
+ *
9
+ * The filesystem operations are abstracted behind {@link DiscoveryFileFs}
10
+ * so the module can be tested without touching the real filesystem, and
11
+ * adapted to runtimes that provide different I/O primitives.
12
+ *
13
+ * @see https://github.com/enboxorg/enbox/issues/587
14
+ * @module
15
+ */
16
+ /**
17
+ * The JSON shape persisted in the discovery file.
18
+ *
19
+ * @see https://identity.foundation/dwn-transport/#discovery-file
20
+ */
21
+ export interface DwnDiscoveryRecord {
22
+ /** Base URL of the running DWN server (e.g. `"http://127.0.0.1:55500"`). */
23
+ endpoint: string;
24
+ /** OS process ID of the DWN server. Used for liveness checking. */
25
+ pid: number;
26
+ /**
27
+ * Transport capabilities advertised by the server (e.g. `["http", "ws"]`).
28
+ * Optional per the DWN Transport Spec.
29
+ */
30
+ capabilities?: string[];
31
+ }
32
+ /**
33
+ * Minimal filesystem interface required by {@link DwnDiscoveryFile}.
34
+ *
35
+ * Consumers can provide a custom implementation for testing or for
36
+ * runtimes that do not expose Node-compatible `fs` and `os` modules.
37
+ */
38
+ export interface DiscoveryFileFs {
39
+ /** Read the file at `path` and return its UTF-8 contents, or `null` if not found. */
40
+ readFile(path: string): Promise<string | null>;
41
+ /** Write `contents` to the file at `path`, creating parent directories as needed. */
42
+ writeFile(path: string, contents: string): Promise<void>;
43
+ /** Delete the file at `path`. Must not throw if the file does not exist. */
44
+ removeFile(path: string): Promise<void>;
45
+ /** Return `true` if the process with the given PID is alive. */
46
+ isProcessAlive(pid: number): boolean;
47
+ /** Return the user's home directory (e.g. `/home/alice`). */
48
+ homedir(): string;
49
+ }
50
+ /**
51
+ * Creates a {@link DiscoveryFileFs} backed by Node.js / Bun built-in
52
+ * modules. Returns `undefined` in environments where `node:fs/promises`
53
+ * or `node:os` are not available (e.g. browsers).
54
+ */
55
+ export declare function createNodeDiscoveryFileFs(): DiscoveryFileFs | undefined;
56
+ /**
57
+ * Directory under the user's home where the discovery file lives.
58
+ * Shared with the `electrobun-dwn` app and other Enbox tooling.
59
+ */
60
+ export declare const DISCOVERY_DIR = ".enbox";
61
+ /** Filename of the discovery file. */
62
+ export declare const DISCOVERY_FILENAME = "dwn.json";
63
+ /**
64
+ * Reads, writes, and validates the `~/.enbox/dwn.json` discovery file.
65
+ *
66
+ * This is the **file-based discovery channel** for CLI and native apps.
67
+ * It is complementary to the `dwn://register` browser redirect flow.
68
+ *
69
+ * @example Reading the discovery file
70
+ * ```ts
71
+ * const discoveryFile = new DwnDiscoveryFile();
72
+ * const record = await discoveryFile.read();
73
+ *
74
+ * if (record) {
75
+ * console.log(`Local DWN at ${record.endpoint}`);
76
+ * }
77
+ * ```
78
+ *
79
+ * @example Writing the discovery file (from electrobun-dwn)
80
+ * ```ts
81
+ * const discoveryFile = new DwnDiscoveryFile();
82
+ * await discoveryFile.write({
83
+ * endpoint : 'http://127.0.0.1:55557',
84
+ * pid : process.pid,
85
+ * });
86
+ * ```
87
+ */
88
+ export declare class DwnDiscoveryFile {
89
+ private readonly _fs;
90
+ private readonly _filePath;
91
+ /**
92
+ * @param fs - Filesystem adapter. Defaults to Node/Bun built-ins.
93
+ * @param filePath - Override the discovery file path (mainly for testing).
94
+ * @throws If no filesystem adapter is available (e.g. in a browser).
95
+ */
96
+ constructor(fs?: DiscoveryFileFs, filePath?: string);
97
+ /** The absolute path of the discovery file. */
98
+ get path(): string;
99
+ /**
100
+ * Read and validate the discovery file.
101
+ *
102
+ * Returns the parsed {@link DwnDiscoveryRecord} if:
103
+ * 1. The file exists and contains valid JSON.
104
+ * 2. The `endpoint` is a non-empty string.
105
+ * 3. The `pid` is a positive integer whose process is still alive.
106
+ *
107
+ * Returns `undefined` in all other cases (missing file, parse error,
108
+ * stale PID). Stale files are automatically removed.
109
+ */
110
+ read(): Promise<DwnDiscoveryRecord | undefined>;
111
+ /**
112
+ * Write the discovery file. Creates the `~/.enbox/` directory if needed.
113
+ *
114
+ * @param record - The endpoint and PID to persist.
115
+ */
116
+ write(record: DwnDiscoveryRecord): Promise<void>;
117
+ /**
118
+ * Remove the discovery file. Does not throw if the file is already gone.
119
+ */
120
+ remove(): Promise<void>;
121
+ }
122
+ //# sourceMappingURL=dwn-discovery-file.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dwn-discovery-file.d.ts","sourceRoot":"","sources":["../../src/dwn-discovery-file.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC,4EAA4E;IAC5E,QAAQ,EAAE,MAAM,CAAC;IACjB,mEAAmE;IACnE,GAAG,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B,qFAAqF;IACrF,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC/C,qFAAqF;IACrF,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzD,4EAA4E;IAC5E,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACxC,gEAAgE;IAChE,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACrC,6DAA6D;IAC7D,OAAO,IAAI,MAAM,CAAC;CACnB;AAID;;;;GAIG;AACH,wBAAgB,yBAAyB,IAAI,eAAe,GAAG,SAAS,CA2DvE;AAID;;;GAGG;AACH,eAAO,MAAM,aAAa,WAAW,CAAC;AAEtC,sCAAsC;AACtC,eAAO,MAAM,kBAAkB,aAAa,CAAC;AAI7C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAkB;IACtC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IAEnC;;;;OAIG;gBACS,EAAE,CAAC,EAAE,eAAe,EAAE,QAAQ,CAAC,EAAE,MAAM;IAoBnD,+CAA+C;IAC/C,IAAW,IAAI,IAAI,MAAM,CAExB;IAED;;;;;;;;;;OAUG;IACU,IAAI,IAAI,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC;IAsC5D;;;;OAIG;IACU,KAAK,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAc7D;;OAEG;IACU,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;CAGrC"}
@@ -0,0 +1,105 @@
1
+ /**
2
+ * Shared types and utilities for the `dwn://register` discovery protocol.
3
+ *
4
+ * The payload is the JSON data exchanged between the local DWN server
5
+ * (electrobun-dwn) and the requesting app during the `dwn://register`
6
+ * redirect flow. It is encoded as base64url and placed in the URL
7
+ * fragment (`#`) of the callback URL.
8
+ *
9
+ * This module intentionally avoids external dependencies so it can be
10
+ * consumed from any environment (Bun, browser, Electrobun) without
11
+ * triggering transitive dependency resolution issues.
12
+ *
13
+ * @see https://github.com/enboxorg/enbox/issues/586
14
+ * @module
15
+ */
16
+ /**
17
+ * The JSON payload delivered via the URL fragment in a `dwn://register`
18
+ * callback redirect.
19
+ *
20
+ * Intentionally minimal — everything beyond the endpoint (version,
21
+ * WebSocket support, etc.) is obtained from `GET {endpoint}/info`.
22
+ */
23
+ export type DwnDiscoveryPayload = {
24
+ /** Base URL of the running DWN server (e.g. `"http://127.0.0.1:55557"`). */
25
+ endpoint: string;
26
+ };
27
+ /**
28
+ * Parsed result from a `dwn://register` URL.
29
+ */
30
+ export type DwnRegisterUrlParams = {
31
+ /** The callback URL to redirect to with the discovery payload. */
32
+ callback: string;
33
+ };
34
+ /** The URL scheme for DWN discovery protocol handlers. */
35
+ export declare const DWN_PROTOCOL_SCHEME = "dwn";
36
+ /** The `dwn://register` path that triggers the discovery handshake. */
37
+ export declare const DWN_REGISTER_PATH = "register";
38
+ /**
39
+ * Build a `dwn://register?callback=<url>` URL that, when opened by the OS,
40
+ * triggers electrobun-dwn (or another `dwn://` scheme handler) to redirect
41
+ * back to `callbackUrl` with the local DWN endpoint in the URL fragment.
42
+ *
43
+ * This is the **trigger** side of the `dwn://register` browser flow.
44
+ * The web app opens this URL (e.g. via `window.open()` or `location.href`),
45
+ * the OS routes it to the registered handler, and the handler redirects
46
+ * back with the discovery payload.
47
+ *
48
+ * @param callbackUrl - The URL to redirect back to after discovery.
49
+ * This should be the current page (or a dedicated callback page) that
50
+ * will read the payload from `window.location.hash`.
51
+ * @returns The `dwn://register?callback=<encoded-url>` URL string.
52
+ *
53
+ * @example
54
+ * ```ts
55
+ * const registerUrl = buildDwnRegisterUrl('https://myapp.com/callback');
56
+ * // => 'dwn://register?callback=https%3A%2F%2Fmyapp.com%2Fcallback'
57
+ * window.open(registerUrl);
58
+ * ```
59
+ */
60
+ export declare function buildDwnRegisterUrl(callbackUrl: string): string;
61
+ /**
62
+ * Encode a {@link DwnDiscoveryPayload} as a base64url string suitable
63
+ * for use in a URL fragment.
64
+ *
65
+ * @param payload - The discovery payload to encode.
66
+ * @returns A base64url-encoded string (no padding).
67
+ */
68
+ export declare function encodeDwnDiscoveryPayload(payload: DwnDiscoveryPayload): string;
69
+ /**
70
+ * Decode a base64url-encoded string back into a {@link DwnDiscoveryPayload}.
71
+ *
72
+ * @param encoded - The base64url string from the URL fragment.
73
+ * @returns The parsed payload, or `undefined` if decoding or parsing fails.
74
+ */
75
+ export declare function decodeDwnDiscoveryPayload(encoded: string): DwnDiscoveryPayload | undefined;
76
+ /**
77
+ * Parse a `dwn://register?callback=<url>` URL into its components.
78
+ *
79
+ * @param url - The full `dwn://register?callback=...` URL.
80
+ * @returns The parsed parameters, or `undefined` if the URL is not a
81
+ * valid `dwn://register` URL or is missing the `callback` parameter.
82
+ */
83
+ export declare function parseDwnRegisterUrl(url: string): DwnRegisterUrlParams | undefined;
84
+ /**
85
+ * Build the full callback redirect URL with the discovery payload
86
+ * encoded in the URL fragment.
87
+ *
88
+ * @param callbackUrl - The callback URL from the `dwn://register` request.
89
+ * @param payload - The discovery payload to encode in the fragment.
90
+ * @returns The full redirect URL (e.g. `https://notes.sh/dwn#eyJ...`).
91
+ */
92
+ export declare function buildDwnDiscoveryRedirectUrl(callbackUrl: string, payload: DwnDiscoveryPayload): string;
93
+ /**
94
+ * Read a {@link DwnDiscoveryPayload} from a URL's fragment (hash).
95
+ *
96
+ * Intended for use in the browser callback page that receives the
97
+ * redirect from electrobun-dwn.
98
+ *
99
+ * @param url - The full URL including the `#` fragment, or just the
100
+ * fragment string (with or without the leading `#`).
101
+ * @returns The parsed payload, or `undefined` if the fragment is missing
102
+ * or contains an invalid payload.
103
+ */
104
+ export declare function readDwnDiscoveryPayloadFromUrl(url: string): DwnDiscoveryPayload | undefined;
105
+ //# sourceMappingURL=dwn-discovery-payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dwn-discovery-payload.d.ts","sourceRoot":"","sources":["../../src/dwn-discovery-payload.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,4EAA4E;IAC5E,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,kEAAkE;IAClE,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAIF,0DAA0D;AAC1D,eAAO,MAAM,mBAAmB,QAAQ,CAAC;AAEzC,uEAAuE;AACvE,eAAO,MAAM,iBAAiB,aAAa,CAAC;AAI5C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAE/D;AAID;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,mBAAmB,GAAG,MAAM,CAG9E;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS,CAa1F;AAID;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,GAAG,SAAS,CAkCjF;AAED;;;;;;;GAOG;AACH,wBAAgB,4BAA4B,CAC1C,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,mBAAmB,GAC3B,MAAM,CAKR;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,8BAA8B,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS,CAa3F"}
@@ -1,6 +1,6 @@
1
1
  import type { DerivedPrivateJwk, EncryptionInput, EncryptionKeyDeriver, KeyDecrypter, RecordsWriteMessage } from '@enbox/dwn-sdk-js';
2
2
  import type { KeyIdentifier, PublicKeyJwk } from '@enbox/crypto';
3
- import type { Web5PlatformAgent } from './types/agent.js';
3
+ import type { EnboxPlatformAgent } from './types/agent.js';
4
4
  import type { DwnMessageReply, ProcessDwnRequest, SendDwnRequest } from './types/dwn.js';
5
5
  import { ContentEncryptionAlgorithm, KeyDerivationScheme } from '@enbox/dwn-sdk-js';
6
6
  import { DwnInterface } from './types/dwn.js';
@@ -37,7 +37,7 @@ export declare function encryptAndComputeCid(plaintextBytes: Uint8Array, dek: Ui
37
37
  * and publicKeyJwk. No private key material is returned.
38
38
  * @throws If the DID has no keyAgreement verification method or it's not X25519.
39
39
  */
40
- export declare function getEncryptionKeyInfo(agent: Web5PlatformAgent, didUri: string): Promise<{
40
+ export declare function getEncryptionKeyInfo(agent: EnboxPlatformAgent, didUri: string): Promise<{
41
41
  keyId: string;
42
42
  keyUri: KeyIdentifier;
43
43
  publicKeyJwk: PublicKeyJwk;
@@ -54,7 +54,7 @@ export declare function getEncryptionKeyInfo(agent: Web5PlatformAgent, didUri: s
54
54
  * @param dek - Data encryption key
55
55
  * @param iv - Initialization vector
56
56
  */
57
- export declare function deriveContextEncryptionInput(agent: Web5PlatformAgent, didUri: string, contextId: string, dek: Uint8Array, iv: Uint8Array): Promise<{
57
+ export declare function deriveContextEncryptionInput(agent: EnboxPlatformAgent, didUri: string, contextId: string, dek: Uint8Array, iv: Uint8Array): Promise<{
58
58
  encryptionInput: Omit<EncryptionInput, 'authenticationTag'>;
59
59
  keyId: string;
60
60
  keyUri: KeyIdentifier;
@@ -69,7 +69,7 @@ export declare function deriveContextEncryptionInput(agent: Web5PlatformAgent, d
69
69
  * @param keyUri - The KMS key URI
70
70
  * @param derivationScheme - The key derivation scheme
71
71
  */
72
- export declare function buildKmsDecryptCallback(agent: Web5PlatformAgent, keyId: string, keyUri: KeyIdentifier, derivationScheme: typeof KeyDerivationScheme.ProtocolPath | typeof KeyDerivationScheme.ProtocolContext): KeyDecrypter;
72
+ export declare function buildKmsDecryptCallback(agent: EnboxPlatformAgent, keyId: string, keyUri: KeyIdentifier, derivationScheme: typeof KeyDerivationScheme.ProtocolPath | typeof KeyDerivationScheme.ProtocolContext): KeyDecrypter;
73
73
  /**
74
74
  * Constructs an EncryptionKeyDeriver callback for the SDK.
75
75
  * The SDK calls derivePublicKey(path), the KMS performs HKDF + public key
@@ -81,7 +81,7 @@ export declare function buildKmsDecryptCallback(agent: Web5PlatformAgent, keyId:
81
81
  * @param didUri - The DID URI to create the key deriver for
82
82
  * @returns An EncryptionKeyDeriver callback object
83
83
  */
84
- export declare function getEncryptionKeyDeriver(agent: Web5PlatformAgent, didUri: string): Promise<EncryptionKeyDeriver>;
84
+ export declare function getEncryptionKeyDeriver(agent: EnboxPlatformAgent, didUri: string): Promise<EncryptionKeyDeriver>;
85
85
  /**
86
86
  * Constructs a ProtocolPath KeyDecrypter.
87
87
  *
@@ -89,7 +89,7 @@ export declare function getEncryptionKeyDeriver(agent: Web5PlatformAgent, didUri
89
89
  * @param didUri - The DID URI to create the key decrypter for
90
90
  * @returns A KeyDecrypter callback object
91
91
  */
92
- export declare function getKeyDecrypter(agent: Web5PlatformAgent, didUri: string): Promise<KeyDecrypter>;
92
+ export declare function getKeyDecrypter(agent: EnboxPlatformAgent, didUri: string): Promise<KeyDecrypter>;
93
93
  /**
94
94
  * Builds a KeyDecrypter from a context-derived private key.
95
95
  * Uses the raw key directly (since it was shared with us via the key-delivery protocol).
@@ -112,7 +112,7 @@ export declare function buildContextKeyDecrypter(contextKey: DerivedPrivateJwk):
112
112
  * @param contextDerivedKeyCache - Cache for context-derived private keys
113
113
  * @param fetchContextKeyRecordFn - Function to fetch context key records from key-delivery protocol
114
114
  */
115
- export declare function resolveKeyDecrypter(agent: Web5PlatformAgent, authorDid: string, recordsWrite: RecordsWriteMessage, targetDid: string | undefined, contextDerivedKeyCache: {
115
+ export declare function resolveKeyDecrypter(agent: EnboxPlatformAgent, authorDid: string, recordsWrite: RecordsWriteMessage, targetDid: string | undefined, contextDerivedKeyCache: {
116
116
  get(key: string): DerivedPrivateJwk | undefined;
117
117
  set(key: string, value: DerivedPrivateJwk): void;
118
118
  }, fetchContextKeyRecordFn: (params: {
@@ -132,7 +132,7 @@ export declare function resolveKeyDecrypter(agent: Web5PlatformAgent, authorDid:
132
132
  * @param contextDerivedKeyCache - Cache for context-derived private keys
133
133
  * @param fetchContextKeyRecordFn - Function to fetch context key records
134
134
  */
135
- export declare function maybeDecryptReply<T extends DwnInterface>(request: ProcessDwnRequest<T> | SendDwnRequest<T>, reply: DwnMessageReply[T], agent: Web5PlatformAgent, contextDerivedKeyCache: {
135
+ export declare function maybeDecryptReply<T extends DwnInterface>(request: ProcessDwnRequest<T> | SendDwnRequest<T>, reply: DwnMessageReply[T], agent: EnboxPlatformAgent, contextDerivedKeyCache: {
136
136
  get(key: string): DerivedPrivateJwk | undefined;
137
137
  set(key: string, value: DerivedPrivateJwk): void;
138
138
  }, fetchContextKeyRecordFn: (params: {
@@ -1 +1 @@
1
- {"version":3,"file":"dwn-encryption.d.ts","sourceRoot":"","sources":["../../src/dwn-encryption.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,eAAe,EACf,oBAAoB,EACpB,YAAY,EAGZ,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAEjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EACjB,cAAc,EACf,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAEL,0BAA0B,EAI1B,mBAAmB,EAEpB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,SAAS,EAAE,0BAA0B,GAAG,MAAM,CAEtE;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,UAAU,E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E;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;CACzB,KAAK,OAAO,CAAC,iBAAiB,GAAG,SAAS,CAAC,GAC3C,OAAO,CAAC,IAAI,CAAC,CA6Df"}
@@ -1,6 +1,6 @@
1
1
  import type { PublicKeyJwk } from '@enbox/crypto';
2
2
  import type { DerivedPrivateJwk } from '@enbox/dwn-sdk-js';
3
- import type { Web5PlatformAgent } from './types/agent.js';
3
+ import type { EnboxPlatformAgent } from './types/agent.js';
4
4
  import type { DwnMessage, DwnMessageReply, ProcessDwnRequest } from './types/dwn.js';
5
5
  import { DwnInterface } from './types/dwn.js';
6
6
  /**
@@ -43,7 +43,7 @@ type ProcessRequestFn = <T extends DwnInterface>(request: ProcessDwnRequest<T>)
43
43
  * @param getProtocolDefinition - Function to get a protocol definition
44
44
  * @param installedCache - Cache for installation status
45
45
  */
46
- export declare function ensureKeyDeliveryProtocol(agent: Web5PlatformAgent, tenantDid: string, processRequest: ProcessRequestFn, getProtocolDefinition: (tenantDid: string, protocolUri: string) => Promise<any>, installedCache: {
46
+ export declare function ensureKeyDeliveryProtocol(agent: EnboxPlatformAgent, tenantDid: string, processRequest: ProcessRequestFn, getProtocolDefinition: (tenantDid: string, protocolUri: string) => Promise<any>, installedCache: {
47
47
  get(key: string): boolean | undefined;
48
48
  set(key: string, value: boolean): void;
49
49
  delete(key: string): void;
@@ -64,7 +64,7 @@ export declare function ensureKeyDeliveryProtocol(agent: Web5PlatformAgent, tena
64
64
  * @param eagerSend - Function to eagerly send the record to the remote DWN
65
65
  * @returns The recordId of the written contextKey record
66
66
  */
67
- export declare function writeContextKeyRecord(agent: Web5PlatformAgent, params: WriteContextKeyParams, processRequest: ProcessRequestFn, ensureProtocol: (tenantDid: string) => Promise<void>, eagerSend: (tenantDid: string, message: DwnMessage[DwnInterface.RecordsWrite]) => Promise<void>): Promise<string>;
67
+ export declare function writeContextKeyRecord(agent: EnboxPlatformAgent, params: WriteContextKeyParams, processRequest: ProcessRequestFn, ensureProtocol: (tenantDid: string) => Promise<void>, eagerSend: (tenantDid: string, message: DwnMessage[DwnInterface.RecordsWrite]) => Promise<void>): Promise<string>;
68
68
  /**
69
69
  * Eagerly sends a contextKey record to the tenant's remote DWN.
70
70
  * This is best-effort — sync guarantees eventual consistency regardless.
@@ -76,7 +76,7 @@ export declare function writeContextKeyRecord(agent: Web5PlatformAgent, params:
76
76
  * @param sendDwnRpcRequest - Function to send a DWN RPC request
77
77
  * @param getDwnEndpointUrlsForTarget - Function to resolve DWN endpoint URLs (with local discovery)
78
78
  */
79
- export declare function eagerSendContextKeyRecord(agent: Web5PlatformAgent, tenantDid: string, contextKeyMessage: DwnMessage[DwnInterface.RecordsWrite], getDwnMessage: (params: {
79
+ export declare function eagerSendContextKeyRecord(agent: EnboxPlatformAgent, tenantDid: string, contextKeyMessage: DwnMessage[DwnInterface.RecordsWrite], getDwnMessage: (params: {
80
80
  author: string;
81
81
  messageType: DwnInterface;
82
82
  messageCid: string;
@@ -104,7 +104,7 @@ export declare function eagerSendContextKeyRecord(agent: Web5PlatformAgent, tena
104
104
  * @param getDwnEndpointUrlsForTarget - Function to resolve DWN endpoint URLs (with local discovery)
105
105
  * @returns The decrypted `DerivedPrivateJwk`, or `undefined` if no matching record found
106
106
  */
107
- export declare function fetchContextKeyRecord(agent: Web5PlatformAgent, params: FetchContextKeyParams, processRequest: ProcessRequestFn, getSigner: (author: string) => Promise<any>, sendDwnRpcRequest: (params: {
107
+ export declare function fetchContextKeyRecord(agent: EnboxPlatformAgent, params: FetchContextKeyParams, processRequest: ProcessRequestFn, getSigner: (author: string) => Promise<any>, sendDwnRpcRequest: (params: {
108
108
  targetDid: string;
109
109
  dwnEndpointUrls: string[];
110
110
  message: any;
@@ -1 +1 @@
1
- {"version":3,"file":"dwn-key-delivery.d.ts","sourceRoot":"","sources":["../../src/dwn-key-delivery.ts"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,qBAAqB,EAC7B,cAAc,EAAE,gBAAgB,EAChC,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,CAAC,EAC3C,iBAAiB,EAAE,CAAC,MAAM,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,eAAe,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,EAAE,GAAG,CAAC;IAAC,IAAI,CAAC,EAAE,IAAI,CAAA;CAAE,KAAK,OAAO,CAAC,GAAG,CAAC,EACxH,2BAA2B,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC,GACpE,OAAO,CAAC,iBAAiB,GAAG,SAAS,CAAC,CA6FxC"}
@@ -1,7 +1,7 @@
1
1
  import type { KeyIdentifier } from '@enbox/crypto';
2
2
  import type { Dwn, RecordsWriteMessage } from '@enbox/dwn-sdk-js';
3
3
  import type { DwnSigner } from './types/dwn.js';
4
- import type { Web5PlatformAgent } from './types/agent.js';
4
+ import type { EnboxPlatformAgent } from './types/agent.js';
5
5
  /**
6
6
  * Reactively upgrades an externally-authored root record that has only
7
7
  * ProtocolPath encryption by appending a ProtocolContext recipient entry.
@@ -23,7 +23,7 @@ import type { Web5PlatformAgent } from './types/agent.js';
23
23
  * @param getSigner - Function to get a DWN signer
24
24
  * @param contextKeyCache - Cache for context key info
25
25
  */
26
- export declare function upgradeExternalRootRecord(agent: Web5PlatformAgent, tenantDid: string, recordsWrite: RecordsWriteMessage, dwn: Dwn, getSigner: (author: string) => Promise<DwnSigner>, contextKeyCache: {
26
+ export declare function upgradeExternalRootRecord(agent: EnboxPlatformAgent, tenantDid: string, recordsWrite: RecordsWriteMessage, dwn: Dwn, getSigner: (author: string) => Promise<DwnSigner>, contextKeyCache: {
27
27
  set(key: string, value: {
28
28
  keyId: string;
29
29
  keyUri: KeyIdentifier;
@@ -1 +1 @@
1
- {"version":3,"file":"dwn-record-upgrade.d.ts","sourceRoot":"","sources":["../../src/dwn-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ACR,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,SAAS,CAAC,EACjD,eAAe,EAAE;IAAE,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,aAAa,CAAC;QAAC,qBAAqB,EAAE,MAAM,EAAE,CAAA;KAAE,GAAG,IAAI,CAAA;CAAE,GAC5H,OAAO,CAAC,IAAI,CAAC,CAmHf"}
@@ -1,8 +1,8 @@
1
1
  import type { AgentKeyManager } from './types/key-manager.js';
2
2
  import type { BearerDid } from '@enbox/dids';
3
+ import type { EnboxPlatformAgent } from './types/agent.js';
4
+ import type { EnboxRpc } from '@enbox/dwn-clients';
3
5
  import type { LocalDwnStrategy } from './local-dwn.js';
4
- import type { Web5PlatformAgent } from './types/agent.js';
5
- import type { Web5Rpc } from '@enbox/dwn-clients';
6
6
  import type { DidInterface, DidRequest, DidResponse } from './did-api.js';
7
7
  import type { DwnInterface, DwnResponse, ProcessDwnRequest, SendDwnRequest } from './types/dwn.js';
8
8
  import type { ProcessVcRequest, SendVcRequest, VcResponse } from './types/vc.js';
@@ -15,7 +15,7 @@ import { AgentSyncApi } from './sync-api.js';
15
15
  import { HdIdentityVault } from './hd-identity-vault.js';
16
16
  import { LocalKeyManager } from './local-key-manager.js';
17
17
  /**
18
- * Initialization parameters for {@link Web5UserAgent}, including an optional recovery phrase that
18
+ * Initialization parameters for {@link EnboxUserAgent}, including an optional recovery phrase that
19
19
  * can be used to derive keys to encrypt the vault and generate a DID.
20
20
  */
21
21
  export type AgentInitializeParams = {
@@ -34,10 +34,10 @@ export type AgentInitializeParams = {
34
34
  */
35
35
  recoveryPhrase?: string;
36
36
  /**
37
- * Optional dwnEndpoints to register didService endpoints during Web5UserAgent initialization
37
+ * Optional dwnEndpoints to register didService endpoints during EnboxUserAgent initialization
38
38
  *
39
39
  * The dwnEndpoints are used to register DWN endpoints against the agent DID created during
40
- * Web5UserAgent.initialize() => DidDht.create(). This allows the
40
+ * EnboxUserAgent.initialize() => DidDht.create(). This allows the
41
41
  * agent to properly recover connectedDids from DWN. Also, this pattern can be used on the server
42
42
  * side in place of the agentDid-->connectedDids pattern.
43
43
  */
@@ -50,7 +50,7 @@ export type AgentStartParams = {
50
50
  password: string;
51
51
  };
52
52
  export type AgentParams<TKeyManager extends AgentKeyManager = LocalKeyManager> = {
53
- /** Optional. The Decentralized Identifier (DID) representing this Web5 User Agent. */
53
+ /** Optional. The Decentralized Identifier (DID) representing this Enbox User Agent. */
54
54
  agentDid?: BearerDid;
55
55
  /** Encrypted vault used for managing the Agent's DID and associated keys. */
56
56
  agentVault: HdIdentityVault;
@@ -68,22 +68,22 @@ export type AgentParams<TKeyManager extends AgentKeyManager = LocalKeyManager> =
68
68
  keyManager: TKeyManager;
69
69
  /** Facilitates fetching, requesting, creating, revoking and validating revocation status of permissions */
70
70
  permissionsApi: AgentPermissionsApi;
71
- /** Remote procedure call (RPC) client used to communicate with other Web5 services. */
72
- rpcClient: Web5Rpc;
71
+ /** Remote procedure call (RPC) client used to communicate with other Enbox services. */
72
+ rpcClient: EnboxRpc;
73
73
  /** Facilitates data synchronization of DWN records between nodes. */
74
74
  syncApi: AgentSyncApi;
75
75
  };
76
76
  export type CreateUserAgentParams = Partial<AgentParams> & {
77
77
  localDwnStrategy?: LocalDwnStrategy;
78
78
  };
79
- export declare class Web5UserAgent<TKeyManager extends AgentKeyManager = LocalKeyManager> implements Web5PlatformAgent<TKeyManager> {
79
+ export declare class EnboxUserAgent<TKeyManager extends AgentKeyManager = LocalKeyManager> implements EnboxPlatformAgent<TKeyManager> {
80
80
  crypto: AgentCryptoApi;
81
81
  did: AgentDidApi<TKeyManager>;
82
82
  dwn: AgentDwnApi;
83
83
  identity: AgentIdentityApi<TKeyManager>;
84
84
  keyManager: TKeyManager;
85
85
  permissions: AgentPermissionsApi;
86
- rpc: Web5Rpc;
86
+ rpc: EnboxRpc;
87
87
  sync: AgentSyncApi;
88
88
  vault: HdIdentityVault;
89
89
  private _agentDid?;
@@ -93,14 +93,14 @@ export declare class Web5UserAgent<TKeyManager extends AgentKeyManager = LocalKe
93
93
  /**
94
94
  * If any of the required agent components are not provided, instantiate default implementations.
95
95
  */
96
- static create({ dataPath, localDwnStrategy, agentDid, agentVault, cryptoApi, didApi, dwnApi, identityApi, keyManager, permissionsApi, rpcClient, syncApi }?: CreateUserAgentParams): Promise<Web5UserAgent>;
96
+ static create({ dataPath, localDwnStrategy, agentDid, agentVault, cryptoApi, didApi, dwnApi, identityApi, keyManager, permissionsApi, rpcClient, syncApi }?: CreateUserAgentParams): Promise<EnboxUserAgent>;
97
97
  firstLaunch(): Promise<boolean>;
98
98
  /**
99
99
  * Initializes the User Agent with a password, and optionally a recovery phrase.
100
100
  *
101
101
  * This method is typically called once, the first time the Agent is launched, and is responsible
102
102
  * for setting up the agent's operational environment, cryptographic key material, and readiness
103
- * for processing Web5 requests.
103
+ * for processing requests.
104
104
  *
105
105
  * The password is used to secure the Agent vault, and the recovery phrase is used to derive the
106
106
  * cryptographic keys for the vault. If a recovery phrase is not provided, a new recovery phrase
@@ -115,4 +115,8 @@ export declare class Web5UserAgent<TKeyManager extends AgentKeyManager = LocalKe
115
115
  sendVcRequest(_request: SendVcRequest): Promise<VcResponse>;
116
116
  start({ password }: AgentInitializeParams): Promise<void>;
117
117
  }
118
- //# sourceMappingURL=web5-user-agent.d.ts.map
118
+ /** @deprecated Use {@link EnboxUserAgent} instead. Will be removed in a future version. */
119
+ export declare const Web5UserAgent: typeof EnboxUserAgent;
120
+ /** @deprecated Use {@link EnboxUserAgent} instead. Will be removed in a future version. */
121
+ export type Web5UserAgent = EnboxUserAgent;
122
+ //# sourceMappingURL=enbox-user-agent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enbox-user-agent.d.ts","sourceRoot":"","sources":["../../src/enbox-user-agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,M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AC;CASvE;AAMD,2FAA2F;AAC3F,eAAO,MAAM,aAAa,uBAAiB,CAAC;AAE5C,2FAA2F;AAC3F,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC"}
@@ -2,11 +2,11 @@ import type { RequireOnly } from '@enbox/common';
2
2
  import type { AgentDataStore } from './store-data.js';
3
3
  import type { AgentKeyManager } from './types/key-manager.js';
4
4
  import type { DidMethodCreateOptions } from './did-api.js';
5
- import type { Web5PlatformAgent } from './types/agent.js';
5
+ import type { EnboxPlatformAgent } from './types/agent.js';
6
6
  import type { IdentityMetadata, PortableIdentity } from './types/identity.js';
7
7
  import { BearerIdentity } from './bearer-identity.js';
8
8
  export interface IdentityApiParams<TKeyManager extends AgentKeyManager> {
9
- agent?: Web5PlatformAgent<TKeyManager>;
9
+ agent?: EnboxPlatformAgent<TKeyManager>;
10
10
  store?: AgentDataStore<IdentityMetadata>;
11
11
  }
12
12
  export interface IdentityCreateParams<TKeyManager = AgentKeyManager, TMethod extends keyof DidMethodCreateOptions<TKeyManager> = keyof DidMethodCreateOptions<TKeyManager>> {
@@ -17,7 +17,7 @@ export interface IdentityCreateParams<TKeyManager = AgentKeyManager, TMethod ext
17
17
  }
18
18
  export declare function isPortableIdentity(obj: unknown): obj is PortableIdentity;
19
19
  /**
20
- * This API is used to manage and interact with Identities within the Web5 Agent framework.
20
+ * This API is used to manage and interact with Identities within the Enbox Agent framework.
21
21
  * An Identity is a DID that is associated with metadata that describes the Identity.
22
22
  * Metadata includes A name(label), and whether or not the Identity is connected (delegated to act on the behalf of another DID).
23
23
  *
@@ -28,22 +28,22 @@ export declare function isPortableIdentity(obj: unknown): obj is PortableIdentit
28
28
  */
29
29
  export declare class AgentIdentityApi<TKeyManager extends AgentKeyManager = AgentKeyManager> {
30
30
  /**
31
- * Holds the instance of a `Web5PlatformAgent` that represents the current execution context for
32
- * the `AgentIdentityApi`. This agent is used to interact with other Web5 agent components. It's
31
+ * Holds the instance of a `EnboxPlatformAgent` that represents the current execution context for
32
+ * the `AgentIdentityApi`. This agent is used to interact with other Enbox agent components. It's
33
33
  * vital to ensure this instance is set to correctly contextualize operations within the broader
34
- * Web5 Agent framework.
34
+ * Enbox Agent framework.
35
35
  */
36
36
  private _agent?;
37
37
  private _store;
38
38
  constructor({ agent, store }?: IdentityApiParams<TKeyManager>);
39
39
  /**
40
- * Retrieves the `Web5PlatformAgent` execution context.
40
+ * Retrieves the `EnboxPlatformAgent` execution context.
41
41
  *
42
- * @returns The `Web5PlatformAgent` instance that represents the current execution context.
42
+ * @returns The `EnboxPlatformAgent` instance that represents the current execution context.
43
43
  * @throws Will throw an error if the `agent` instance property is undefined.
44
44
  */
45
- get agent(): Web5PlatformAgent<TKeyManager>;
46
- set agent(agent: Web5PlatformAgent<TKeyManager>);
45
+ get agent(): EnboxPlatformAgent<TKeyManager>;
46
+ set agent(agent: EnboxPlatformAgent<TKeyManager>);
47
47
  get tenant(): string;
48
48
  create({ metadata, didMethod, didOptions, store }: IdentityCreateParams<TKeyManager>): Promise<BearerIdentity>;
49
49
  export({ didUri }: {
@@ -1 +1 @@
1
- {"version":3,"file":"identity-api.d.ts","sourceRoot":"","sources":["../../src/identity-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAI9E,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAGtD,MAAM,WAAW,iBAAiB,CAAC,WAAW,SAAS,eAAe;IACpE,KAAK,CAAC,EAAE,i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MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAyB/F;;;;;OAKG;IACU,iBAAiB,CAAC,EAAE,YAAY,EAAE,GAAC;QAAE,YAAY,CAAC,EAAE,MAAM,CAAA;KAAO,GAAG,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;CAYrH"}
@@ -12,6 +12,8 @@ export * from './bearer-identity.js';
12
12
  export * from './crypto-api.js';
13
13
  export * from './did-api.js';
14
14
  export * from './dwn-api.js';
15
+ export * from './dwn-discovery-file.js';
16
+ export * from './dwn-discovery-payload.js';
15
17
  export * from './dwn-encryption.js';
16
18
  export * from './dwn-key-delivery.js';
17
19
  export * from './dwn-record-upgrade.js';
@@ -32,5 +34,5 @@ export * from './test-harness.js';
32
34
  export * from './utils.js';
33
35
  export * from './connect.js';
34
36
  export * from './oidc.js';
35
- export * from './web5-user-agent.js';
37
+ export * from './enbox-user-agent.js';
36
38
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,kBAAkB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,mBAAmB,qBAAqB,CAAC;AACzC,mBAAmB,2BAA2B,CAAC;AAC/C,mBAAmB,wBAAwB,CAAC;AAC5C,mBAAmB,wBAAwB,CAAC;AAC5C,mBAAmB,iBAAiB,CAAC;AACrC,mBAAmB,eAAe,CAAC;AAEnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AAC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