@interop/wallet-core 0.69.0 → 0.71.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 (171) hide show
  1. package/README.md +22 -36
  2. package/dist/clientAnnex/ladder.d.ts +103 -57
  3. package/dist/clientAnnex/ladder.d.ts.map +1 -1
  4. package/dist/clientAnnex/ladder.js +254 -335
  5. package/dist/clientAnnex/ladder.js.map +1 -1
  6. package/dist/clientAnnex/ladderAnchored.d.ts.map +1 -1
  7. package/dist/clientAnnex/ladderAnchored.js +10 -5
  8. package/dist/clientAnnex/ladderAnchored.js.map +1 -1
  9. package/dist/clientAnnex/recoveryLadderAnchored.d.ts +3 -15
  10. package/dist/clientAnnex/recoveryLadderAnchored.d.ts.map +1 -1
  11. package/dist/clientAnnex/recoveryLadderAnchored.js +22 -3
  12. package/dist/clientAnnex/recoveryLadderAnchored.js.map +1 -1
  13. package/dist/clientAnnex/selfEnroll.js +1 -1
  14. package/dist/clientAnnex/selfEnroll.js.map +1 -1
  15. package/dist/clientAnnex/zcap.js +1 -1
  16. package/dist/clientAnnex/zcap.js.map +1 -1
  17. package/dist/clients/grantState.d.ts +67 -0
  18. package/dist/clients/grantState.d.ts.map +1 -0
  19. package/dist/clients/grantState.js +72 -0
  20. package/dist/clients/grantState.js.map +1 -0
  21. package/dist/clients/index.d.ts +7 -0
  22. package/dist/clients/index.d.ts.map +1 -1
  23. package/dist/clients/index.js +6 -0
  24. package/dist/clients/index.js.map +1 -1
  25. package/dist/enrollment/connectCode.d.ts +4 -3
  26. package/dist/enrollment/connectCode.d.ts.map +1 -1
  27. package/dist/enrollment/connectCode.js +4 -3
  28. package/dist/enrollment/connectCode.js.map +1 -1
  29. package/dist/enrollment/enrollment.js +1 -1
  30. package/dist/enrollment/enrollment.js.map +1 -1
  31. package/dist/enrollment/index.d.ts +2 -2
  32. package/dist/enrollment/index.js +2 -2
  33. package/dist/enrollment/onboardingInvite.d.ts +1 -1
  34. package/dist/enrollment/onboardingInvite.js +1 -1
  35. package/dist/enrollment/onboardingResponse.js +1 -1
  36. package/dist/index.d.ts +4 -11
  37. package/dist/index.d.ts.map +1 -1
  38. package/dist/index.js +4 -11
  39. package/dist/index.js.map +1 -1
  40. package/dist/keyring/index.d.ts +1 -1
  41. package/dist/keyring/index.js +1 -1
  42. package/dist/keyring/kdf.d.ts +34 -20
  43. package/dist/keyring/kdf.d.ts.map +1 -1
  44. package/dist/keyring/kdf.js +37 -26
  45. package/dist/keyring/kdf.js.map +1 -1
  46. package/dist/keys/userKey.js +1 -1
  47. package/dist/keys/userKey.js.map +1 -1
  48. package/dist/recovery/continuation.d.ts +5 -4
  49. package/dist/recovery/continuation.d.ts.map +1 -1
  50. package/dist/recovery/continuation.js +14 -13
  51. package/dist/recovery/continuation.js.map +1 -1
  52. package/dist/resourceLog/document.d.ts +10 -2
  53. package/dist/resourceLog/document.d.ts.map +1 -1
  54. package/dist/resourceLog/document.js +1 -2
  55. package/dist/resourceLog/document.js.map +1 -1
  56. package/dist/space/index.d.ts +4 -2
  57. package/dist/space/index.d.ts.map +1 -1
  58. package/dist/space/index.js +4 -2
  59. package/dist/space/index.js.map +1 -1
  60. package/dist/space/wasLink.d.ts +13 -2
  61. package/dist/space/wasLink.d.ts.map +1 -1
  62. package/dist/space/wasLink.js +28 -2
  63. package/dist/space/wasLink.js.map +1 -1
  64. package/dist/unlock/index.d.ts +1 -1
  65. package/dist/unlock/index.d.ts.map +1 -1
  66. package/dist/unlock/index.js.map +1 -1
  67. package/dist/unlock/standingClient.d.ts +1 -1
  68. package/dist/unlock/standingClient.d.ts.map +1 -1
  69. package/dist/unlock/standingClient.js +3 -3
  70. package/dist/unlock/standingClient.js.map +1 -1
  71. package/dist/unlock/standingWebvh.d.ts +81 -19
  72. package/dist/unlock/standingWebvh.d.ts.map +1 -1
  73. package/dist/unlock/standingWebvh.js +170 -30
  74. package/dist/unlock/standingWebvh.js.map +1 -1
  75. package/dist/webvh/did.d.ts +2 -4
  76. package/dist/webvh/did.d.ts.map +1 -1
  77. package/dist/webvh/did.js +2 -4
  78. package/dist/webvh/did.js.map +1 -1
  79. package/dist/webvh/didWebvh.d.ts +3 -2
  80. package/dist/webvh/didWebvh.d.ts.map +1 -1
  81. package/dist/webvh/didWebvh.js +2 -1
  82. package/dist/webvh/didWebvh.js.map +1 -1
  83. package/dist/webvh/index.d.ts +1 -1
  84. package/dist/webvh/index.js +1 -1
  85. package/dist/webvh/revokeClient.d.ts +13 -7
  86. package/dist/webvh/revokeClient.d.ts.map +1 -1
  87. package/dist/webvh/revokeClient.js +14 -7
  88. package/dist/webvh/revokeClient.js.map +1 -1
  89. package/dist/webvh/zcap.js +1 -1
  90. package/dist/webvh/zcap.js.map +1 -1
  91. package/package.json +2 -23
  92. package/dist/identity/agents.d.ts +0 -100
  93. package/dist/identity/agents.d.ts.map +0 -1
  94. package/dist/identity/agents.js +0 -120
  95. package/dist/identity/agents.js.map +0 -1
  96. package/dist/identity/index.d.ts +0 -24
  97. package/dist/identity/index.d.ts.map +0 -1
  98. package/dist/identity/index.js +0 -23
  99. package/dist/identity/index.js.map +0 -1
  100. package/dist/identity/keyResolver.d.ts +0 -30
  101. package/dist/identity/keyResolver.d.ts.map +0 -1
  102. package/dist/identity/keyResolver.js +0 -25
  103. package/dist/identity/keyResolver.js.map +0 -1
  104. package/dist/request/appKey.d.ts +0 -295
  105. package/dist/request/appKey.d.ts.map +0 -1
  106. package/dist/request/appKey.js +0 -516
  107. package/dist/request/appKey.js.map +0 -1
  108. package/dist/request/capabilityRequest.d.ts +0 -41
  109. package/dist/request/capabilityRequest.d.ts.map +0 -1
  110. package/dist/request/capabilityRequest.js +0 -46
  111. package/dist/request/capabilityRequest.js.map +0 -1
  112. package/dist/request/classify.d.ts +0 -226
  113. package/dist/request/classify.d.ts.map +0 -1
  114. package/dist/request/classify.js +0 -416
  115. package/dist/request/classify.js.map +0 -1
  116. package/dist/request/composeVp.d.ts +0 -52
  117. package/dist/request/composeVp.d.ts.map +0 -1
  118. package/dist/request/composeVp.js +0 -176
  119. package/dist/request/composeVp.js.map +0 -1
  120. package/dist/request/ephemeralExchange.d.ts +0 -100
  121. package/dist/request/ephemeralExchange.d.ts.map +0 -1
  122. package/dist/request/ephemeralExchange.js +0 -230
  123. package/dist/request/ephemeralExchange.js.map +0 -1
  124. package/dist/request/exchangeClient.d.ts +0 -142
  125. package/dist/request/exchangeClient.d.ts.map +0 -1
  126. package/dist/request/exchangeClient.js +0 -241
  127. package/dist/request/exchangeClient.js.map +0 -1
  128. package/dist/request/index.d.ts +0 -59
  129. package/dist/request/index.d.ts.map +0 -1
  130. package/dist/request/index.js +0 -59
  131. package/dist/request/index.js.map +0 -1
  132. package/dist/request/interactionRequest.d.ts +0 -23
  133. package/dist/request/interactionRequest.d.ts.map +0 -1
  134. package/dist/request/interactionRequest.js +0 -46
  135. package/dist/request/interactionRequest.js.map +0 -1
  136. package/dist/request/interactionUrl.d.ts +0 -42
  137. package/dist/request/interactionUrl.d.ts.map +0 -1
  138. package/dist/request/interactionUrl.js +0 -104
  139. package/dist/request/interactionUrl.js.map +0 -1
  140. package/dist/request/matching.d.ts +0 -95
  141. package/dist/request/matching.d.ts.map +0 -1
  142. package/dist/request/matching.js +0 -205
  143. package/dist/request/matching.js.map +0 -1
  144. package/dist/request/onboarding.d.ts +0 -94
  145. package/dist/request/onboarding.d.ts.map +0 -1
  146. package/dist/request/onboarding.js +0 -167
  147. package/dist/request/onboarding.js.map +0 -1
  148. package/dist/request/parse.d.ts +0 -63
  149. package/dist/request/parse.d.ts.map +0 -1
  150. package/dist/request/parse.js +0 -153
  151. package/dist/request/parse.js.map +0 -1
  152. package/dist/request/presentationSuite.d.ts +0 -71
  153. package/dist/request/presentationSuite.d.ts.map +0 -1
  154. package/dist/request/presentationSuite.js +0 -143
  155. package/dist/request/presentationSuite.js.map +0 -1
  156. package/dist/request/processRequest.d.ts +0 -45
  157. package/dist/request/processRequest.d.ts.map +0 -1
  158. package/dist/request/processRequest.js +0 -147
  159. package/dist/request/processRequest.js.map +0 -1
  160. package/dist/request/queryPredicates.d.ts +0 -98
  161. package/dist/request/queryPredicates.d.ts.map +0 -1
  162. package/dist/request/queryPredicates.js +0 -107
  163. package/dist/request/queryPredicates.js.map +0 -1
  164. package/dist/request/types.d.ts +0 -257
  165. package/dist/request/types.d.ts.map +0 -1
  166. package/dist/request/types.js +0 -2
  167. package/dist/request/types.js.map +0 -1
  168. package/dist/request/walletInput.d.ts +0 -93
  169. package/dist/request/walletInput.d.ts.map +0 -1
  170. package/dist/request/walletInput.js +0 -179
  171. package/dist/request/walletInput.js.map +0 -1
@@ -1,295 +0,0 @@
1
- import type { IDocumentLoader, IVerifiableCredential } from '@interop/data-integrity-core';
2
- import { CONTEXT_URL_V1 as APP_CONNECT_CONTEXT_URL } from 'byoe-context';
3
- import type { IAppConnectApp } from './types.js';
4
- /**
5
- * The key name mixed into seed derivation. Unlike the handle this is
6
- * load-bearing: it is the HMAC message in `CapabilityAgent` derivation, so the
7
- * exact string is a pinned input of the App Connect key-derivation rule --
8
- * every existing app-key credential's identity depends on it.
9
- */
10
- export declare const APP_KEY_KEY_NAME = "app-key";
11
- /**
12
- * The marker type every app-key credential carries, mapped to one stable IRI
13
- * for every application. It makes "presents as an app key" a term check rather
14
- * than a shape heuristic, which is what the store-time refusal
15
- * ({@link assertStorableAppKey}) and the match path key off.
16
- *
17
- * It is a self-declaration, not evidence: the `type` array of a planted
18
- * credential is attacker-controlled like the rest of it. The seed-to-subject
19
- * binding ({@link appKeySeedBindsSubject}) authenticates only a credential's
20
- * internal consistency, never its provenance (a fully attacker-generated
21
- * credential binds perfectly). That is exactly why external ingest refuses on
22
- * the marker alone, binding or not ({@link assertStorableAppKey}): app keys
23
- * are wallet-minted, never imported.
24
- */
25
- export declare const APP_KEY_CREDENTIAL_TYPE = "AppKeyCredential";
26
- /**
27
- * The fixed `type` array of every app-key credential: exactly two entries, in
28
- * this order, identical for every application. Which application a credential
29
- * belongs to is the `credentialSubject.appUrl` claim, not a type.
30
- */
31
- export declare const APP_KEY_TYPE_ARRAY: readonly string[];
32
- /**
33
- * The hosted App Connect context URL every app-key credential carries as the
34
- * second entry of its `@context` array (after the VC 1.1 context URL). The
35
- * context document defines the profile's BYOE terms; document loaders resolve
36
- * it from the bundled `byoe-context` document, so no fetch happens at sign or
37
- * verification time.
38
- */
39
- export { APP_CONNECT_CONTEXT_URL };
40
- /**
41
- * Whether a credential presents as an app key -- that is, carries the
42
- * {@link APP_KEY_CREDENTIAL_TYPE} marker in its `type` array. Says nothing
43
- * about whether it IS one; that is the seed-to-subject binding's job.
44
- *
45
- * @param credential {IVerifiableCredential}
46
- * @returns {boolean}
47
- */
48
- export declare function presentsAsAppKey(credential: IVerifiableCredential): boolean;
49
- /**
50
- * The refusal a store path raises for a credential that presents as an app key
51
- * but arrived from outside the wallet's own mint path. A distinct class so the
52
- * UI can show its own translated wording rather than this message.
53
- */
54
- export declare class AppKeyRefusedError extends Error {
55
- constructor();
56
- }
57
- /**
58
- * Refuses any credential that presents as an app key, unconditionally --
59
- * whether or not it binds to its own seed. Called on every path that puts a
60
- * credential in the store from outside the wallet (a CHAPI store offer, a
61
- * URL / QR / manual-paste import), so an externally arriving app key never
62
- * reaches the store, the credential list, or the user's Space.
63
- *
64
- * The seed-to-subject binding ({@link appKeySeedBindsSubject}) authenticates
65
- * only the credential's internal consistency, not its provenance: a fully
66
- * attacker-generated credential binds perfectly (a fresh seed, the victim
67
- * app's `origin` and `appUrl`, self-issued), and storing it would make its
68
- * DID the controller the wallet delegates the user's storage to. So there is
69
- * no "binds, so it stores" carve-out here: app-key credentials are
70
- * wallet-minted, never imported, and only the wallet's own mint path may
71
- * store one.
72
- *
73
- * A credential with no marker is left alone, so an ordinary credential that
74
- * merely happens to carry a `seed` or `origin` claim is never caught.
75
- *
76
- * @param credential {IVerifiableCredential}
77
- * @returns {void} throws the refusal reason
78
- */
79
- export declare function assertStorableAppKey(credential: IVerifiableCredential): void;
80
- /**
81
- * Whether an app-key credential's subject DID is the one its own seed derives
82
- * -- the binding that makes the credential an app key rather than merely a
83
- * self-issued claim to be one. Self-issuance is a weak signal (anyone can
84
- * self-issue); this is the strong one, and it is fully local: the credential
85
- * carries the seed, so re-derive with the same call `mintAppKeyCredential`
86
- * uses and compare. Fails closed on an absent, non-base64url, or otherwise
87
- * unusable seed rather than throwing out of the match path.
88
- *
89
- * @param credential {IVerifiableCredential}
90
- * @returns {Promise<boolean>}
91
- */
92
- export declare function appKeySeedBindsSubject(credential: IVerifiableCredential): Promise<boolean>;
93
- /**
94
- * Raised by {@link assertMintedAppKey} when a credential offered to the mint
95
- * path's store door does not carry the mint invariants. Reaching it means a
96
- * caller tried to route a foreign credential through the wallet's own mint
97
- * door -- a programming error, not a user-facing refusal, so it is not
98
- * translated like {@link AppKeyRefusedError}.
99
- */
100
- export declare class AppKeyMintInvariantError extends Error {
101
- constructor();
102
- }
103
- /**
104
- * Asserts the mint invariants on a credential the wallet claims to have just
105
- * minted: it presents as an app key (the marker type) and its subject DID
106
- * re-derives from the seed it carries. The mirror image of
107
- * {@link assertStorableAppKey} -- external ingest refuses every marker
108
- * credential, the mint door stores only credentials that carry the full mint
109
- * shape -- kept beside it so the two halves of the app-key store policy live
110
- * in one module.
111
- *
112
- * @param credential {IVerifiableCredential}
113
- * @returns {Promise<void>} throws {@link AppKeyMintInvariantError}
114
- */
115
- export declare function assertMintedAppKey(credential: IVerifiableCredential): Promise<void>;
116
- /**
117
- * The app-key candidates for an app + origin, latest-first: everything the
118
- * cheap, synchronous predicates accept, so only plausible candidates pay for
119
- * a key derivation. A candidate must carry the marker (required, not merely
120
- * tolerated: a credential can then only reach the delegation path by carrying
121
- * it, which is exactly what the store-time refusal screens), name the
122
- * request's `appUrl` in `credentialSubject.appUrl` (both sides in serialized
123
- * form -- the wallet mints the claim serialized, so the comparison is an
124
- * exact string match), be self-issued, and be bound to the attested
125
- * requesting origin. Sorting here (rather than after the binding check) lets
126
- * {@link findAppKeyCredential} stop at the newest credential that binds.
127
- *
128
- * The legacy path ({@link findLegacyAppKeyCredential}) is the same chain
129
- * with `appUrl` undefined: it selects the credentials carrying no
130
- * `credentialSubject.appUrl` claim, so one predicate set and one sort serve
131
- * both paths and a hardening applied here reaches the legacy path too.
132
- *
133
- * @param options {object}
134
- * @param options.credentials {IVerifiableCredential[]}
135
- * @param [options.appUrl] {string} - The request's `app.appUrl` in
136
- * serialized form; undefined selects the legacy credentials that carry no
137
- * `appUrl` claim.
138
- * @param options.origin {string} - The attested requesting origin.
139
- * @returns {IVerifiableCredential[]}
140
- */
141
- export declare function appKeyCandidates({ credentials, appUrl, origin }: {
142
- credentials: IVerifiableCredential[];
143
- appUrl: string | undefined;
144
- origin: string;
145
- }): IVerifiableCredential[];
146
- /**
147
- * The current (latest) app-key credential for an app + origin, or undefined
148
- * when the user has none -- which signals first run for that (origin,
149
- * `appUrl`) pair.
150
- *
151
- * @param options {object}
152
- * @param options.credentials {IVerifiableCredential[]}
153
- * @param options.appUrl {string} - The request's `app.appUrl` in serialized
154
- * form.
155
- * @param options.origin {string} - The attested requesting origin.
156
- * @returns {Promise<IVerifiableCredential | undefined>}
157
- */
158
- export declare function findAppKeyCredential({ credentials, appUrl, origin }: {
159
- credentials: IVerifiableCredential[];
160
- appUrl: string;
161
- origin: string;
162
- }): Promise<IVerifiableCredential | undefined>;
163
- /**
164
- * Assembles and signs an app-key credential for a seed the caller supplies:
165
- * the fixed two-entry type array, the hosted App Connect context URL, issuer
166
- * and subject both the seed-derived DID, and the `seed` / `appUrl` / `origin`
167
- * claims. `vc.issue` auto-fills `issuanceDate` in the canonical UTC form the
168
- * ranking expects. Shared by the fresh mint and the legacy re-issue, and
169
- * exported for an application's own self-issue path (dev-grant provisioning,
170
- * tests), so the credential's shape is maintained in one place.
171
- *
172
- * @param options {object}
173
- * @param options.seedBytes {Uint8Array} - The 32-byte master seed; the
174
- * derived did:key is both issuer and subject.
175
- * @param options.appName {string} - Shown on the credential (`name`, and the
176
- * default `description`).
177
- * @param options.appUrl {string} - The app's canonical URL, already in
178
- * serialized form.
179
- * @param options.origin {string} - The attested requesting origin.
180
- * @param [options.description] {string} - Overrides the default consent
181
- * sentence (the legacy re-issue carries the old credential's forward).
182
- * @param [options.documentLoader] {IDocumentLoader} - JSON-LD loader; defaults
183
- * to the shared security loader.
184
- * @returns {Promise<{ credential: IVerifiableCredential; subjectDid: string }>}
185
- */
186
- export declare function issueAppKeyCredential({ seedBytes, appName, appUrl, origin, description, documentLoader: loader }: {
187
- seedBytes: Uint8Array;
188
- appName: string;
189
- appUrl: string;
190
- origin: string;
191
- description?: string;
192
- documentLoader?: IDocumentLoader;
193
- }): Promise<{
194
- credential: IVerifiableCredential;
195
- subjectDid: string;
196
- }>;
197
- /**
198
- * Mints a fresh app-key credential for an app + origin: generates a 32-byte
199
- * seed, derives the seed's did:key, and self-issues the credential (issuer ==
200
- * subject == the seed-derived DID) with the `credentialSubject.appUrl` claim
201
- * set from the validated request value. Does NOT store the result -- the
202
- * caller stores it before delegating, so a failed delegation is found as
203
- * "returning" on the next attempt rather than minting a second identity.
204
- *
205
- * @param options {object}
206
- * @param options.app {IAppConnectApp} - The validated app identity; its
207
- * `appUrl` must already be in serialized form (`appConnectRequestOf`
208
- * guarantees this).
209
- * @param options.origin {string} - The attested requesting origin, never a
210
- * value taken from the request body.
211
- * @returns {Promise<{ credential: IVerifiableCredential; subjectDid: string }>}
212
- */
213
- export declare function mintAppKeyCredential({ app, origin }: {
214
- app: IAppConnectApp;
215
- origin: string;
216
- }): Promise<{
217
- credential: IVerifiableCredential;
218
- subjectDid: string;
219
- }>;
220
- /**
221
- * The latest legacy app-key credential for an origin, or undefined. A legacy
222
- * credential predates the `appUrl` model: it carries the marker and a
223
- * per-app third type entry, but no `credentialSubject.appUrl` claim. Its
224
- * identity was scoped to (origin, `credentialType`), and the request no
225
- * longer carries a `credentialType` to select on, so the mapping is
226
- * recoverable only when it is unambiguous: when the binding legacy candidates
227
- * for the origin all name one subject DID. Two distinct legacy identities on
228
- * one origin yield undefined rather than a guess -- re-issuing the wrong one
229
- * would hand one application another's identity, which is worse than the
230
- * caller treating the connect as a first run.
231
- *
232
- * @param options {object}
233
- * @param options.credentials {IVerifiableCredential[]}
234
- * @param options.origin {string} - The attested requesting origin.
235
- * @returns {Promise<IVerifiableCredential | undefined>}
236
- */
237
- export declare function findLegacyAppKeyCredential({ credentials, origin }: {
238
- credentials: IVerifiableCredential[];
239
- origin: string;
240
- }): Promise<IVerifiableCredential | undefined>;
241
- /**
242
- * Re-issues a legacy app-key credential in place under the `appUrl` model:
243
- * the same seed (so the same derived DID -- the app's identity and its
244
- * encrypted-data access are preserved), the fixed two-entry type array, the
245
- * hosted App Connect context URL, and the `credentialSubject.appUrl` claim set
246
- * from the validated request value. A fresh mint would roll the seed and orphan
247
- * the identity, and must never be the migration path. The fresh
248
- * `issuanceDate` ranks the re-issued credential ahead of the legacy one, so
249
- * subsequent connects match it directly.
250
- *
251
- * Does NOT store the result; the caller stores it through the mint door
252
- * (it satisfies {@link assertMintedAppKey}) and may retire the legacy record.
253
- *
254
- * @param options {object}
255
- * @param options.credential {IVerifiableCredential} - The legacy credential;
256
- * it must bind per {@link appKeySeedBindsSubject} and be bound to `origin`,
257
- * else this throws {@link AppKeyMintInvariantError}.
258
- * @param options.app {IAppConnectApp} - The validated app identity; its
259
- * `appUrl` must already be in serialized form.
260
- * @param options.origin {string} - The attested requesting origin.
261
- * @returns {Promise<{ credential: IVerifiableCredential; subjectDid: string }>}
262
- */
263
- export declare function reissueAppKeyCredential({ credential, app, origin }: {
264
- credential: IVerifiableCredential;
265
- app: IAppConnectApp;
266
- origin: string;
267
- }): Promise<{
268
- credential: IVerifiableCredential;
269
- subjectDid: string;
270
- }>;
271
- /**
272
- * The subject DID (`credentialSubject.id`) of an app-key credential, or
273
- * undefined. For a valid app-key credential this equals the issuer.
274
- *
275
- * @param credential {IVerifiableCredential}
276
- * @returns {string | undefined}
277
- */
278
- export declare function appKeySubjectDid(credential: IVerifiableCredential): string | undefined;
279
- /**
280
- * The origin (`credentialSubject.origin`) an app-key credential is bound to,
281
- * when present.
282
- *
283
- * @param credential {IVerifiableCredential}
284
- * @returns {string | undefined}
285
- */
286
- export declare function appKeyOrigin(credential: IVerifiableCredential): string | undefined;
287
- /**
288
- * The application URL (`credentialSubject.appUrl`) an app-key credential is
289
- * scoped to, when present. Absent on a legacy (pre-`appUrl`) credential.
290
- *
291
- * @param credential {IVerifiableCredential}
292
- * @returns {string | undefined}
293
- */
294
- export declare function appKeyAppUrl(credential: IVerifiableCredential): string | undefined;
295
- //# sourceMappingURL=appKey.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"appKey.d.ts","sourceRoot":"","sources":["../../src/request/appKey.ts"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACtB,MAAM,8BAA8B,CAAA;AAMrC,OAAO,EAAE,cAAc,IAAI,uBAAuB,EAAE,MAAM,cAAc,CAAA;AAExE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAShD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,YAAY,CAAA;AAIzC;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,uBAAuB,qBAAqB,CAAA;AAEzD;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,SAAS,MAAM,EAG9C,CAAA;AAEF;;;;;;GAMG;AACH,OAAO,EAAE,uBAAuB,EAAE,CAAA;AAOlC;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,qBAAqB,GAAG,OAAO,CAE3E;AAED;;;;GAIG;AACH,qBAAa,kBAAmB,SAAQ,KAAK;;CAQ5C;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,qBAAqB,GAAG,IAAI,CAI5E;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,sBAAsB,CAC1C,UAAU,EAAE,qBAAqB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