@pagopa/io-react-native-wallet 2.0.0-next.1 → 2.0.0-next.3

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 (174) hide show
  1. package/lib/commonjs/credential/issuance/02-evaluate-issuer-trust.js +2 -2
  2. package/lib/commonjs/credential/issuance/02-evaluate-issuer-trust.js.map +1 -1
  3. package/lib/commonjs/credential/issuance/03-start-user-authorization.js +38 -24
  4. package/lib/commonjs/credential/issuance/03-start-user-authorization.js.map +1 -1
  5. package/lib/commonjs/credential/issuance/05-authorize-access.js +6 -10
  6. package/lib/commonjs/credential/issuance/05-authorize-access.js.map +1 -1
  7. package/lib/commonjs/credential/issuance/06-obtain-credential.js +43 -11
  8. package/lib/commonjs/credential/issuance/06-obtain-credential.js.map +1 -1
  9. package/lib/commonjs/credential/issuance/07-verify-and-parse-credential.js +51 -48
  10. package/lib/commonjs/credential/issuance/07-verify-and-parse-credential.js.map +1 -1
  11. package/lib/commonjs/credential/issuance/README.md +34 -13
  12. package/lib/commonjs/credential/issuance/const.js +1 -1
  13. package/lib/commonjs/credential/issuance/types.js +16 -10
  14. package/lib/commonjs/credential/issuance/types.js.map +1 -1
  15. package/lib/commonjs/credential/presentation/02-evaluate-rp-trust.js +2 -2
  16. package/lib/commonjs/credential/presentation/02-evaluate-rp-trust.js.map +1 -1
  17. package/lib/commonjs/credential/presentation/05-verify-request-object.js.map +1 -1
  18. package/lib/commonjs/credential/presentation/07-evaluate-dcql-query.js +4 -4
  19. package/lib/commonjs/credential/presentation/07-evaluate-input-descriptor.js +3 -3
  20. package/lib/commonjs/credential/presentation/08-send-authorization-response.js.map +1 -1
  21. package/lib/commonjs/credential/status/README.md +0 -1
  22. package/lib/commonjs/sd-jwt/__test__/index.test.js +11 -15
  23. package/lib/commonjs/sd-jwt/__test__/index.test.js.map +1 -1
  24. package/lib/commonjs/sd-jwt/__test__/types.test.js +5 -2
  25. package/lib/commonjs/sd-jwt/__test__/types.test.js.map +1 -1
  26. package/lib/commonjs/sd-jwt/__test__/utils.test.js +37 -0
  27. package/lib/commonjs/sd-jwt/__test__/utils.test.js.map +1 -0
  28. package/lib/commonjs/sd-jwt/index.js +20 -0
  29. package/lib/commonjs/sd-jwt/index.js.map +1 -1
  30. package/lib/commonjs/sd-jwt/types.js +51 -4
  31. package/lib/commonjs/sd-jwt/types.js.map +1 -1
  32. package/lib/commonjs/sd-jwt/utils.js +64 -0
  33. package/lib/commonjs/sd-jwt/utils.js.map +1 -0
  34. package/lib/commonjs/trust/build-chain.js +252 -0
  35. package/lib/commonjs/trust/build-chain.js.map +1 -0
  36. package/lib/commonjs/trust/index.js +11 -282
  37. package/lib/commonjs/trust/index.js.map +1 -1
  38. package/lib/commonjs/trust/types.js +18 -13
  39. package/lib/commonjs/trust/types.js.map +1 -1
  40. package/lib/commonjs/trust/{chain.js → verify-chain.js} +40 -5
  41. package/lib/commonjs/trust/verify-chain.js.map +1 -0
  42. package/lib/commonjs/utils/errors.js.map +1 -1
  43. package/lib/commonjs/utils/par.js +32 -22
  44. package/lib/commonjs/utils/par.js.map +1 -1
  45. package/lib/commonjs/utils/pop.js +1 -1
  46. package/lib/commonjs/utils/pop.js.map +1 -1
  47. package/lib/commonjs/wallet-instance-attestation/types.js +5 -1
  48. package/lib/commonjs/wallet-instance-attestation/types.js.map +1 -1
  49. package/lib/module/credential/issuance/02-evaluate-issuer-trust.js +1 -1
  50. package/lib/module/credential/issuance/02-evaluate-issuer-trust.js.map +1 -1
  51. package/lib/module/credential/issuance/03-start-user-authorization.js +38 -24
  52. package/lib/module/credential/issuance/03-start-user-authorization.js.map +1 -1
  53. package/lib/module/credential/issuance/05-authorize-access.js +6 -10
  54. package/lib/module/credential/issuance/05-authorize-access.js.map +1 -1
  55. package/lib/module/credential/issuance/06-obtain-credential.js +44 -12
  56. package/lib/module/credential/issuance/06-obtain-credential.js.map +1 -1
  57. package/lib/module/credential/issuance/07-verify-and-parse-credential.js +51 -48
  58. package/lib/module/credential/issuance/07-verify-and-parse-credential.js.map +1 -1
  59. package/lib/module/credential/issuance/README.md +34 -13
  60. package/lib/module/credential/issuance/const.js +1 -1
  61. package/lib/module/credential/issuance/types.js +12 -8
  62. package/lib/module/credential/issuance/types.js.map +1 -1
  63. package/lib/module/credential/presentation/02-evaluate-rp-trust.js +1 -1
  64. package/lib/module/credential/presentation/02-evaluate-rp-trust.js.map +1 -1
  65. package/lib/module/credential/presentation/05-verify-request-object.js.map +1 -1
  66. package/lib/module/credential/presentation/07-evaluate-dcql-query.js +4 -4
  67. package/lib/module/credential/presentation/07-evaluate-input-descriptor.js +3 -3
  68. package/lib/module/credential/presentation/08-send-authorization-response.js +1 -1
  69. package/lib/module/credential/presentation/08-send-authorization-response.js.map +1 -1
  70. package/lib/module/credential/status/README.md +0 -1
  71. package/lib/module/sd-jwt/__test__/index.test.js +11 -16
  72. package/lib/module/sd-jwt/__test__/index.test.js.map +1 -1
  73. package/lib/module/sd-jwt/__test__/types.test.js +5 -2
  74. package/lib/module/sd-jwt/__test__/types.test.js.map +1 -1
  75. package/lib/module/sd-jwt/__test__/utils.test.js +35 -0
  76. package/lib/module/sd-jwt/__test__/utils.test.js.map +1 -0
  77. package/lib/module/sd-jwt/index.js +1 -0
  78. package/lib/module/sd-jwt/index.js.map +1 -1
  79. package/lib/module/sd-jwt/types.js +50 -3
  80. package/lib/module/sd-jwt/types.js.map +1 -1
  81. package/lib/module/sd-jwt/utils.js +57 -0
  82. package/lib/module/sd-jwt/utils.js.map +1 -0
  83. package/lib/module/trust/build-chain.js +235 -0
  84. package/lib/module/trust/build-chain.js.map +1 -0
  85. package/lib/module/trust/index.js +5 -268
  86. package/lib/module/trust/index.js.map +1 -1
  87. package/lib/module/trust/types.js +18 -13
  88. package/lib/module/trust/types.js.map +1 -1
  89. package/lib/module/trust/{chain.js → verify-chain.js} +36 -2
  90. package/lib/module/trust/verify-chain.js.map +1 -0
  91. package/lib/module/utils/errors.js +1 -1
  92. package/lib/module/utils/errors.js.map +1 -1
  93. package/lib/module/utils/par.js +29 -20
  94. package/lib/module/utils/par.js.map +1 -1
  95. package/lib/module/utils/pop.js +1 -1
  96. package/lib/module/utils/pop.js.map +1 -1
  97. package/lib/module/wallet-instance-attestation/types.js +5 -1
  98. package/lib/module/wallet-instance-attestation/types.js.map +1 -1
  99. package/lib/typescript/client/generated/wallet-provider.d.ts +12 -12
  100. package/lib/typescript/credential/issuance/01-start-flow.d.ts +2 -2
  101. package/lib/typescript/credential/issuance/01-start-flow.d.ts.map +1 -1
  102. package/lib/typescript/credential/issuance/02-evaluate-issuer-trust.d.ts.map +1 -1
  103. package/lib/typescript/credential/issuance/03-start-user-authorization.d.ts +7 -6
  104. package/lib/typescript/credential/issuance/03-start-user-authorization.d.ts.map +1 -1
  105. package/lib/typescript/credential/issuance/05-authorize-access.d.ts.map +1 -1
  106. package/lib/typescript/credential/issuance/06-obtain-credential.d.ts +10 -5
  107. package/lib/typescript/credential/issuance/06-obtain-credential.d.ts.map +1 -1
  108. package/lib/typescript/credential/issuance/07-verify-and-parse-credential.d.ts +3 -2
  109. package/lib/typescript/credential/issuance/07-verify-and-parse-credential.d.ts.map +1 -1
  110. package/lib/typescript/credential/issuance/const.d.ts +1 -1
  111. package/lib/typescript/credential/issuance/types.d.ts +46 -26
  112. package/lib/typescript/credential/issuance/types.d.ts.map +1 -1
  113. package/lib/typescript/credential/presentation/02-evaluate-rp-trust.d.ts.map +1 -1
  114. package/lib/typescript/credential/presentation/05-verify-request-object.d.ts +1 -1
  115. package/lib/typescript/credential/presentation/05-verify-request-object.d.ts.map +1 -1
  116. package/lib/typescript/credential/presentation/08-send-authorization-response.d.ts +2 -2
  117. package/lib/typescript/credential/presentation/08-send-authorization-response.d.ts.map +1 -1
  118. package/lib/typescript/credential/presentation/types.d.ts +4 -4
  119. package/lib/typescript/pid/sd-jwt/types.d.ts +7 -7
  120. package/lib/typescript/sd-jwt/__test__/utils.test.d.ts +2 -0
  121. package/lib/typescript/sd-jwt/__test__/utils.test.d.ts.map +1 -0
  122. package/lib/typescript/sd-jwt/index.d.ts +21 -8
  123. package/lib/typescript/sd-jwt/index.d.ts.map +1 -1
  124. package/lib/typescript/sd-jwt/types.d.ts +194 -12
  125. package/lib/typescript/sd-jwt/types.d.ts.map +1 -1
  126. package/lib/typescript/sd-jwt/utils.d.ts +18 -0
  127. package/lib/typescript/sd-jwt/utils.d.ts.map +1 -0
  128. package/lib/typescript/trust/build-chain.d.ts +1300 -0
  129. package/lib/typescript/trust/build-chain.d.ts.map +1 -0
  130. package/lib/typescript/trust/index.d.ts +5 -1301
  131. package/lib/typescript/trust/index.d.ts.map +1 -1
  132. package/lib/typescript/trust/types.d.ts +788 -624
  133. package/lib/typescript/trust/types.d.ts.map +1 -1
  134. package/lib/typescript/trust/{chain.d.ts → verify-chain.d.ts} +17 -1
  135. package/lib/typescript/trust/verify-chain.d.ts.map +1 -0
  136. package/lib/typescript/utils/errors.d.ts +2 -2
  137. package/lib/typescript/utils/errors.d.ts.map +1 -1
  138. package/lib/typescript/utils/par.d.ts +29 -13
  139. package/lib/typescript/utils/par.d.ts.map +1 -1
  140. package/lib/typescript/wallet-instance-attestation/types.d.ts +9 -9
  141. package/lib/typescript/wallet-instance-attestation/types.d.ts.map +1 -1
  142. package/package.json +1 -1
  143. package/src/credential/issuance/01-start-flow.ts +2 -2
  144. package/src/credential/issuance/02-evaluate-issuer-trust.ts +1 -1
  145. package/src/credential/issuance/03-start-user-authorization.ts +57 -38
  146. package/src/credential/issuance/05-authorize-access.ts +5 -11
  147. package/src/credential/issuance/06-obtain-credential.ts +53 -23
  148. package/src/credential/issuance/07-verify-and-parse-credential.ts +54 -62
  149. package/src/credential/issuance/README.md +34 -13
  150. package/src/credential/issuance/const.ts +1 -1
  151. package/src/credential/issuance/types.ts +18 -8
  152. package/src/credential/presentation/02-evaluate-rp-trust.ts +1 -1
  153. package/src/credential/presentation/05-verify-request-object.ts +1 -1
  154. package/src/credential/presentation/07-evaluate-dcql-query.ts +4 -4
  155. package/src/credential/presentation/07-evaluate-input-descriptor.ts +3 -3
  156. package/src/credential/presentation/08-send-authorization-response.ts +4 -4
  157. package/src/credential/status/README.md +0 -1
  158. package/src/sd-jwt/__test__/index.test.ts +8 -29
  159. package/src/sd-jwt/__test__/types.test.ts +6 -2
  160. package/src/sd-jwt/__test__/utils.test.ts +37 -0
  161. package/src/sd-jwt/index.ts +2 -0
  162. package/src/sd-jwt/types.ts +49 -2
  163. package/src/sd-jwt/utils.ts +73 -0
  164. package/src/trust/build-chain.ts +395 -0
  165. package/src/trust/index.ts +5 -442
  166. package/src/trust/types.ts +23 -17
  167. package/src/trust/{chain.ts → verify-chain.ts} +41 -1
  168. package/src/utils/errors.ts +4 -4
  169. package/src/utils/par.ts +37 -21
  170. package/src/utils/pop.ts +1 -1
  171. package/src/wallet-instance-attestation/types.ts +3 -1
  172. package/lib/commonjs/trust/chain.js.map +0 -1
  173. package/lib/module/trust/chain.js.map +0 -1
  174. package/lib/typescript/trust/chain.d.ts.map +0 -1
@@ -1,1302 +1,6 @@
1
- import { CredentialIssuerEntityConfiguration, EntityConfiguration, EntityStatement, RelyingPartyEntityConfiguration, TrustAnchorEntityConfiguration, WalletProviderEntityConfiguration } from "./types";
2
- import { validateTrustChain } from "./chain";
3
- import type { JWK } from "../utils/jwk";
4
- import type { X509CertificateOptions } from "@pagopa/io-react-native-crypto";
5
- export type { WalletProviderEntityConfiguration, TrustAnchorEntityConfiguration, CredentialIssuerEntityConfiguration, RelyingPartyEntityConfiguration, EntityConfiguration, EntityStatement, };
6
- /**
7
- * Verify a given trust chain is actually valid.
8
- * It can handle fast chain renewal, which means we try to fetch a fresh version of each statement.
9
- *
10
- * @param trustAnchorEntity The entity configuration of the known trust anchor
11
- * @param chain The chain of statements to be validated
12
- * @param x509Options Options for the verification process
13
- * @param appFetch (optional) fetch api implementation
14
- * @param renewOnFail Whether to attempt to renew the trust chain if the initial validation fails
15
- * @returns The result of the chain validation
16
- * @throws {FederationError} If the chain is not valid
17
- */
18
- export declare function verifyTrustChain(trustAnchorEntity: TrustAnchorEntityConfiguration, chain: string[], x509Options?: X509CertificateOptions, { appFetch, renewOnFail, }?: {
19
- appFetch?: GlobalFetch["fetch"];
20
- renewOnFail?: boolean;
21
- }): Promise<ReturnType<typeof validateTrustChain>>;
22
- /**
23
- * Fetch the signed entity configuration token for an entity
24
- *
25
- * @param entityBaseUrl The url of the entity to fetch
26
- * @param appFetch (optional) fetch api implementation
27
- * @returns The signed Entity Configuration token
28
- */
29
- export declare function getSignedEntityConfiguration(entityBaseUrl: string, { appFetch, }?: {
30
- appFetch?: GlobalFetch["fetch"];
31
- }): Promise<string>;
32
- /**
33
- * Fetch and parse the entity configuration document for a given federation entity.
34
- * This is an inner method to serve public interfaces.
35
- *
36
- * To add another entity configuration type (example: Foo entity type):
37
- * - create its zod schema and type by inherit from the base type (example: FooEntityConfiguration = BaseEntityConfiguration.and(...))
38
- * - add such type to EntityConfiguration union
39
- * - add an overload to this function
40
- * - create a public function which use such type (example: getFooEntityConfiguration = (url, options) => Promise<FooEntityConfiguration>)
41
- *
42
- * @param entityBaseUrl The base url of the entity.
43
- * @param schema The expected schema of the entity configuration, according to the kind of entity we are fetching from.
44
- * @param options An optional object with additional options.
45
- * @param options.appFetch An optional instance of the http client to be used.
46
- * @returns The parsed entity configuration object
47
- * @throws {IoWalletError} If the http request fails
48
- * @throws Parse error if the document is not in the expected shape.
49
- */
50
- declare function fetchAndParseEntityConfiguration(entityBaseUrl: string, schema: typeof WalletProviderEntityConfiguration, options?: {
51
- appFetch?: GlobalFetch["fetch"];
52
- }): Promise<WalletProviderEntityConfiguration>;
53
- declare function fetchAndParseEntityConfiguration(entityBaseUrl: string, schema: typeof RelyingPartyEntityConfiguration, options?: {
54
- appFetch?: GlobalFetch["fetch"];
55
- }): Promise<RelyingPartyEntityConfiguration>;
56
- declare function fetchAndParseEntityConfiguration(entityBaseUrl: string, schema: typeof TrustAnchorEntityConfiguration, options?: {
57
- appFetch?: GlobalFetch["fetch"];
58
- }): Promise<TrustAnchorEntityConfiguration>;
59
- declare function fetchAndParseEntityConfiguration(entityBaseUrl: string, schema: typeof CredentialIssuerEntityConfiguration, options?: {
60
- appFetch?: GlobalFetch["fetch"];
61
- }): Promise<CredentialIssuerEntityConfiguration>;
62
- declare function fetchAndParseEntityConfiguration(entityBaseUrl: string, schema: typeof EntityConfiguration, options?: {
63
- appFetch?: GlobalFetch["fetch"];
64
- }): Promise<EntityConfiguration>;
65
- export declare const getWalletProviderEntityConfiguration: (entityBaseUrl: Parameters<typeof fetchAndParseEntityConfiguration>[0], options?: Parameters<typeof fetchAndParseEntityConfiguration>[2]) => Promise<{
66
- header: {
67
- alg: string;
68
- kid: string;
69
- typ: "entity-statement+jwt";
70
- };
71
- payload: {
72
- iss: string;
73
- sub: string;
74
- iat: number;
75
- exp: number;
76
- metadata: {
77
- federation_entity: {
78
- federation_fetch_endpoint?: string | undefined;
79
- federation_list_endpoint?: string | undefined;
80
- federation_resolve_endpoint?: string | undefined;
81
- federation_trust_mark_status_endpoint?: string | undefined;
82
- federation_trust_mark_list_endpoint?: string | undefined;
83
- federation_trust_mark_endpoint?: string | undefined;
84
- federation_historical_keys_endpoint?: string | undefined;
85
- endpoint_auth_signing_alg_values_supported?: string | undefined;
86
- organization_name?: string | undefined;
87
- homepage_uri?: string | undefined;
88
- policy_uri?: string | undefined;
89
- logo_uri?: string | undefined;
90
- contacts?: string[] | undefined;
91
- } & {
92
- [k: string]: unknown;
93
- };
94
- } & {
95
- [k: string]: unknown;
96
- };
97
- jwks: {
98
- keys: {
99
- kty: "RSA" | "EC";
100
- alg?: string | undefined;
101
- crv?: string | undefined;
102
- d?: string | undefined;
103
- dp?: string | undefined;
104
- dq?: string | undefined;
105
- e?: string | undefined;
106
- ext?: boolean | undefined;
107
- k?: string | undefined;
108
- key_ops?: string[] | undefined;
109
- kid?: string | undefined;
110
- n?: string | undefined;
111
- p?: string | undefined;
112
- q?: string | undefined;
113
- qi?: string | undefined;
114
- use?: string | undefined;
115
- x?: string | undefined;
116
- y?: string | undefined;
117
- x5c?: string[] | undefined;
118
- x5t?: string | undefined;
119
- "x5t#S256"?: string | undefined;
120
- x5u?: string | undefined;
121
- }[];
122
- };
123
- authority_hints?: string[] | undefined;
124
- } & {
125
- [k: string]: unknown;
126
- };
127
- } & {
128
- payload: {
129
- metadata: {
130
- wallet_provider: {
131
- jwks: {
132
- keys: {
133
- kty: "RSA" | "EC";
134
- alg?: string | undefined;
135
- crv?: string | undefined;
136
- d?: string | undefined;
137
- dp?: string | undefined;
138
- dq?: string | undefined;
139
- e?: string | undefined;
140
- ext?: boolean | undefined;
141
- k?: string | undefined;
142
- key_ops?: string[] | undefined;
143
- kid?: string | undefined;
144
- n?: string | undefined;
145
- p?: string | undefined;
146
- q?: string | undefined;
147
- qi?: string | undefined;
148
- use?: string | undefined;
149
- x?: string | undefined;
150
- y?: string | undefined;
151
- x5c?: string[] | undefined;
152
- x5t?: string | undefined;
153
- "x5t#S256"?: string | undefined;
154
- x5u?: string | undefined;
155
- }[];
156
- };
157
- token_endpoint: string;
158
- grant_types_supported: string[];
159
- token_endpoint_auth_methods_supported: string[];
160
- token_endpoint_auth_signing_alg_values_supported: string[];
161
- aal_values_supported?: string[] | undefined;
162
- } & {
163
- [k: string]: unknown;
164
- };
165
- };
166
- };
167
- }>;
168
- export declare const getCredentialIssuerEntityConfiguration: (entityBaseUrl: Parameters<typeof fetchAndParseEntityConfiguration>[0], options?: Parameters<typeof fetchAndParseEntityConfiguration>[2]) => Promise<{
169
- header: {
170
- alg: string;
171
- kid: string;
172
- typ: "entity-statement+jwt";
173
- };
174
- payload: {
175
- iss: string;
176
- sub: string;
177
- iat: number;
178
- exp: number;
179
- metadata: {
180
- federation_entity: {
181
- federation_fetch_endpoint?: string | undefined;
182
- federation_list_endpoint?: string | undefined;
183
- federation_resolve_endpoint?: string | undefined;
184
- federation_trust_mark_status_endpoint?: string | undefined;
185
- federation_trust_mark_list_endpoint?: string | undefined;
186
- federation_trust_mark_endpoint?: string | undefined;
187
- federation_historical_keys_endpoint?: string | undefined;
188
- endpoint_auth_signing_alg_values_supported?: string | undefined;
189
- organization_name?: string | undefined;
190
- homepage_uri?: string | undefined;
191
- policy_uri?: string | undefined;
192
- logo_uri?: string | undefined;
193
- contacts?: string[] | undefined;
194
- } & {
195
- [k: string]: unknown;
196
- };
197
- } & {
198
- [k: string]: unknown;
199
- };
200
- jwks: {
201
- keys: {
202
- kty: "RSA" | "EC";
203
- alg?: string | undefined;
204
- crv?: string | undefined;
205
- d?: string | undefined;
206
- dp?: string | undefined;
207
- dq?: string | undefined;
208
- e?: string | undefined;
209
- ext?: boolean | undefined;
210
- k?: string | undefined;
211
- key_ops?: string[] | undefined;
212
- kid?: string | undefined;
213
- n?: string | undefined;
214
- p?: string | undefined;
215
- q?: string | undefined;
216
- qi?: string | undefined;
217
- use?: string | undefined;
218
- x?: string | undefined;
219
- y?: string | undefined;
220
- x5c?: string[] | undefined;
221
- x5t?: string | undefined;
222
- "x5t#S256"?: string | undefined;
223
- x5u?: string | undefined;
224
- }[];
225
- };
226
- authority_hints?: string[] | undefined;
227
- } & {
228
- [k: string]: unknown;
229
- };
230
- } & {
231
- payload: {
232
- metadata: {
233
- openid_credential_issuer: {
234
- jwks: {
235
- keys: {
236
- kty: "RSA" | "EC";
237
- alg?: string | undefined;
238
- crv?: string | undefined;
239
- d?: string | undefined;
240
- dp?: string | undefined;
241
- dq?: string | undefined;
242
- e?: string | undefined;
243
- ext?: boolean | undefined;
244
- k?: string | undefined;
245
- key_ops?: string[] | undefined;
246
- kid?: string | undefined;
247
- n?: string | undefined;
248
- p?: string | undefined;
249
- q?: string | undefined;
250
- qi?: string | undefined;
251
- use?: string | undefined;
252
- x?: string | undefined;
253
- y?: string | undefined;
254
- x5c?: string[] | undefined;
255
- x5t?: string | undefined;
256
- "x5t#S256"?: string | undefined;
257
- x5u?: string | undefined;
258
- }[];
259
- };
260
- credential_issuer: string;
261
- credential_endpoint: string;
262
- revocation_endpoint: string;
263
- status_attestation_endpoint: string;
264
- display: {
265
- name: string;
266
- locale: string;
267
- }[];
268
- credential_configurations_supported: Record<string, {
269
- format: "vc+sd-jwt" | "vc+mdoc-cbor";
270
- display: {
271
- name: string;
272
- locale: string;
273
- }[];
274
- scope: string;
275
- claims: Record<string, {
276
- display: {
277
- name: string;
278
- locale: string;
279
- }[];
280
- value_type: string;
281
- }>;
282
- cryptographic_binding_methods_supported: string[];
283
- credential_signing_alg_values_supported: string[];
284
- authentic_source?: string | undefined;
285
- issuance_errors_supported?: Record<string, {
286
- display: {
287
- title: string;
288
- locale: string;
289
- description: string;
290
- }[];
291
- }> | undefined;
292
- }>;
293
- };
294
- oauth_authorization_server: {
295
- jwks: {
296
- keys: {
297
- kty: "RSA" | "EC";
298
- alg?: string | undefined;
299
- crv?: string | undefined;
300
- d?: string | undefined;
301
- dp?: string | undefined;
302
- dq?: string | undefined;
303
- e?: string | undefined;
304
- ext?: boolean | undefined;
305
- k?: string | undefined;
306
- key_ops?: string[] | undefined;
307
- kid?: string | undefined;
308
- n?: string | undefined;
309
- p?: string | undefined;
310
- q?: string | undefined;
311
- qi?: string | undefined;
312
- use?: string | undefined;
313
- x?: string | undefined;
314
- y?: string | undefined;
315
- x5c?: string[] | undefined;
316
- x5t?: string | undefined;
317
- "x5t#S256"?: string | undefined;
318
- x5u?: string | undefined;
319
- }[];
320
- };
321
- authorization_endpoint: string;
322
- pushed_authorization_request_endpoint: string;
323
- token_endpoint: string;
324
- client_registration_types_supported: string[];
325
- code_challenge_methods_supported: string[];
326
- acr_values_supported: string[];
327
- grant_types_supported: string[];
328
- issuer: string;
329
- scopes_supported: string[];
330
- response_modes_supported: string[];
331
- token_endpoint_auth_methods_supported: string[];
332
- token_endpoint_auth_signing_alg_values_supported: string[];
333
- request_object_signing_alg_values_supported: string[];
334
- };
335
- openid_credential_verifier?: {
336
- jwks: {
337
- keys: {
338
- kty: "RSA" | "EC";
339
- alg?: string | undefined;
340
- crv?: string | undefined;
341
- d?: string | undefined;
342
- dp?: string | undefined;
343
- dq?: string | undefined;
344
- e?: string | undefined;
345
- ext?: boolean | undefined;
346
- k?: string | undefined;
347
- key_ops?: string[] | undefined;
348
- kid?: string | undefined;
349
- n?: string | undefined;
350
- p?: string | undefined;
351
- q?: string | undefined;
352
- qi?: string | undefined;
353
- use?: string | undefined;
354
- x?: string | undefined;
355
- y?: string | undefined;
356
- x5c?: string[] | undefined;
357
- x5t?: string | undefined;
358
- "x5t#S256"?: string | undefined;
359
- x5u?: string | undefined;
360
- }[];
361
- };
362
- application_type?: string | undefined;
363
- client_id?: string | undefined;
364
- client_name?: string | undefined;
365
- contacts?: string[] | undefined;
366
- presentation_definition?: {
367
- id: string;
368
- input_descriptors: {
369
- id: string;
370
- constraints: {
371
- fields?: {
372
- path: string[];
373
- id?: string | undefined;
374
- purpose?: string | undefined;
375
- name?: string | undefined;
376
- filter?: any;
377
- optional?: boolean | undefined;
378
- intent_to_retain?: boolean | undefined;
379
- }[] | undefined;
380
- limit_disclosure?: "required" | "preferred" | undefined;
381
- };
382
- name?: string | undefined;
383
- purpose?: string | undefined;
384
- format?: Record<string, any> | undefined;
385
- group?: string | undefined;
386
- }[];
387
- name?: string | undefined;
388
- purpose?: string | undefined;
389
- submission_requirements?: {
390
- rule: string;
391
- name?: string | undefined;
392
- purpose?: string | undefined;
393
- from?: string | undefined;
394
- from_nested?: {
395
- rule: string;
396
- from: string;
397
- name?: string | undefined;
398
- purpose?: string | undefined;
399
- }[] | undefined;
400
- count?: number | undefined;
401
- }[] | undefined;
402
- } | undefined;
403
- request_uris?: string[] | undefined;
404
- authorization_signed_response_alg?: string | undefined;
405
- authorization_encrypted_response_alg?: string | undefined;
406
- authorization_encrypted_response_enc?: string | undefined;
407
- } | undefined;
408
- };
409
- jwks: {
410
- keys: {
411
- kty: "RSA" | "EC";
412
- alg?: string | undefined;
413
- crv?: string | undefined;
414
- d?: string | undefined;
415
- dp?: string | undefined;
416
- dq?: string | undefined;
417
- e?: string | undefined;
418
- ext?: boolean | undefined;
419
- k?: string | undefined;
420
- key_ops?: string[] | undefined;
421
- kid?: string | undefined;
422
- n?: string | undefined;
423
- p?: string | undefined;
424
- q?: string | undefined;
425
- qi?: string | undefined;
426
- use?: string | undefined;
427
- x?: string | undefined;
428
- y?: string | undefined;
429
- x5c?: string[] | undefined;
430
- x5t?: string | undefined;
431
- "x5t#S256"?: string | undefined;
432
- x5u?: string | undefined;
433
- }[];
434
- };
435
- };
436
- }>;
437
- export declare const getTrustAnchorEntityConfiguration: (entityBaseUrl: Parameters<typeof fetchAndParseEntityConfiguration>[0], options?: Parameters<typeof fetchAndParseEntityConfiguration>[2]) => Promise<{
438
- header: {
439
- alg: string;
440
- kid: string;
441
- typ: "entity-statement+jwt";
442
- };
443
- payload: {
444
- iss: string;
445
- sub: string;
446
- iat: number;
447
- exp: number;
448
- metadata: {
449
- federation_entity: {
450
- federation_fetch_endpoint?: string | undefined;
451
- federation_list_endpoint?: string | undefined;
452
- federation_resolve_endpoint?: string | undefined;
453
- federation_trust_mark_status_endpoint?: string | undefined;
454
- federation_trust_mark_list_endpoint?: string | undefined;
455
- federation_trust_mark_endpoint?: string | undefined;
456
- federation_historical_keys_endpoint?: string | undefined;
457
- endpoint_auth_signing_alg_values_supported?: string | undefined;
458
- organization_name?: string | undefined;
459
- homepage_uri?: string | undefined;
460
- policy_uri?: string | undefined;
461
- logo_uri?: string | undefined;
462
- contacts?: string[] | undefined;
463
- } & {
464
- [k: string]: unknown;
465
- };
466
- } & {
467
- [k: string]: unknown;
468
- };
469
- jwks: {
470
- keys: {
471
- kty: "RSA" | "EC";
472
- alg?: string | undefined;
473
- crv?: string | undefined;
474
- d?: string | undefined;
475
- dp?: string | undefined;
476
- dq?: string | undefined;
477
- e?: string | undefined;
478
- ext?: boolean | undefined;
479
- k?: string | undefined;
480
- key_ops?: string[] | undefined;
481
- kid?: string | undefined;
482
- n?: string | undefined;
483
- p?: string | undefined;
484
- q?: string | undefined;
485
- qi?: string | undefined;
486
- use?: string | undefined;
487
- x?: string | undefined;
488
- y?: string | undefined;
489
- x5c?: string[] | undefined;
490
- x5t?: string | undefined;
491
- "x5t#S256"?: string | undefined;
492
- x5u?: string | undefined;
493
- }[];
494
- };
495
- authority_hints?: string[] | undefined;
496
- } & {
497
- [k: string]: unknown;
498
- };
499
- }>;
500
- export declare const getRelyingPartyEntityConfiguration: (entityBaseUrl: Parameters<typeof fetchAndParseEntityConfiguration>[0], options?: Parameters<typeof fetchAndParseEntityConfiguration>[2]) => Promise<{
501
- header: {
502
- alg: string;
503
- kid: string;
504
- typ: "entity-statement+jwt";
505
- };
506
- payload: {
507
- iss: string;
508
- sub: string;
509
- iat: number;
510
- exp: number;
511
- metadata: {
512
- federation_entity: {
513
- federation_fetch_endpoint?: string | undefined;
514
- federation_list_endpoint?: string | undefined;
515
- federation_resolve_endpoint?: string | undefined;
516
- federation_trust_mark_status_endpoint?: string | undefined;
517
- federation_trust_mark_list_endpoint?: string | undefined;
518
- federation_trust_mark_endpoint?: string | undefined;
519
- federation_historical_keys_endpoint?: string | undefined;
520
- endpoint_auth_signing_alg_values_supported?: string | undefined;
521
- organization_name?: string | undefined;
522
- homepage_uri?: string | undefined;
523
- policy_uri?: string | undefined;
524
- logo_uri?: string | undefined;
525
- contacts?: string[] | undefined;
526
- } & {
527
- [k: string]: unknown;
528
- };
529
- } & {
530
- [k: string]: unknown;
531
- };
532
- jwks: {
533
- keys: {
534
- kty: "RSA" | "EC";
535
- alg?: string | undefined;
536
- crv?: string | undefined;
537
- d?: string | undefined;
538
- dp?: string | undefined;
539
- dq?: string | undefined;
540
- e?: string | undefined;
541
- ext?: boolean | undefined;
542
- k?: string | undefined;
543
- key_ops?: string[] | undefined;
544
- kid?: string | undefined;
545
- n?: string | undefined;
546
- p?: string | undefined;
547
- q?: string | undefined;
548
- qi?: string | undefined;
549
- use?: string | undefined;
550
- x?: string | undefined;
551
- y?: string | undefined;
552
- x5c?: string[] | undefined;
553
- x5t?: string | undefined;
554
- "x5t#S256"?: string | undefined;
555
- x5u?: string | undefined;
556
- }[];
557
- };
558
- authority_hints?: string[] | undefined;
559
- } & {
560
- [k: string]: unknown;
561
- };
562
- } & {
563
- payload: {
564
- metadata: {
565
- openid_credential_verifier: {
566
- jwks: {
567
- keys: {
568
- kty: "RSA" | "EC";
569
- alg?: string | undefined;
570
- crv?: string | undefined;
571
- d?: string | undefined;
572
- dp?: string | undefined;
573
- dq?: string | undefined;
574
- e?: string | undefined;
575
- ext?: boolean | undefined;
576
- k?: string | undefined;
577
- key_ops?: string[] | undefined;
578
- kid?: string | undefined;
579
- n?: string | undefined;
580
- p?: string | undefined;
581
- q?: string | undefined;
582
- qi?: string | undefined;
583
- use?: string | undefined;
584
- x?: string | undefined;
585
- y?: string | undefined;
586
- x5c?: string[] | undefined;
587
- x5t?: string | undefined;
588
- "x5t#S256"?: string | undefined;
589
- x5u?: string | undefined;
590
- }[];
591
- };
592
- application_type?: string | undefined;
593
- client_id?: string | undefined;
594
- client_name?: string | undefined;
595
- contacts?: string[] | undefined;
596
- presentation_definition?: {
597
- id: string;
598
- input_descriptors: {
599
- id: string;
600
- constraints: {
601
- fields?: {
602
- path: string[];
603
- id?: string | undefined;
604
- purpose?: string | undefined;
605
- name?: string | undefined;
606
- filter?: any;
607
- optional?: boolean | undefined;
608
- intent_to_retain?: boolean | undefined;
609
- }[] | undefined;
610
- limit_disclosure?: "required" | "preferred" | undefined;
611
- };
612
- name?: string | undefined;
613
- purpose?: string | undefined;
614
- format?: Record<string, any> | undefined;
615
- group?: string | undefined;
616
- }[];
617
- name?: string | undefined;
618
- purpose?: string | undefined;
619
- submission_requirements?: {
620
- rule: string;
621
- name?: string | undefined;
622
- purpose?: string | undefined;
623
- from?: string | undefined;
624
- from_nested?: {
625
- rule: string;
626
- from: string;
627
- name?: string | undefined;
628
- purpose?: string | undefined;
629
- }[] | undefined;
630
- count?: number | undefined;
631
- }[] | undefined;
632
- } | undefined;
633
- request_uris?: string[] | undefined;
634
- authorization_signed_response_alg?: string | undefined;
635
- authorization_encrypted_response_alg?: string | undefined;
636
- authorization_encrypted_response_enc?: string | undefined;
637
- };
638
- };
639
- };
640
- }>;
641
- export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof fetchAndParseEntityConfiguration>[0], options?: Parameters<typeof fetchAndParseEntityConfiguration>[2]) => Promise<{
642
- header: {
643
- alg: string;
644
- kid: string;
645
- typ: "entity-statement+jwt";
646
- };
647
- payload: {
648
- iss: string;
649
- sub: string;
650
- iat: number;
651
- exp: number;
652
- metadata: {
653
- federation_entity: {
654
- federation_fetch_endpoint?: string | undefined;
655
- federation_list_endpoint?: string | undefined;
656
- federation_resolve_endpoint?: string | undefined;
657
- federation_trust_mark_status_endpoint?: string | undefined;
658
- federation_trust_mark_list_endpoint?: string | undefined;
659
- federation_trust_mark_endpoint?: string | undefined;
660
- federation_historical_keys_endpoint?: string | undefined;
661
- endpoint_auth_signing_alg_values_supported?: string | undefined;
662
- organization_name?: string | undefined;
663
- homepage_uri?: string | undefined;
664
- policy_uri?: string | undefined;
665
- logo_uri?: string | undefined;
666
- contacts?: string[] | undefined;
667
- } & {
668
- [k: string]: unknown;
669
- };
670
- } & {
671
- [k: string]: unknown;
672
- };
673
- jwks: {
674
- keys: {
675
- kty: "RSA" | "EC";
676
- alg?: string | undefined;
677
- crv?: string | undefined;
678
- d?: string | undefined;
679
- dp?: string | undefined;
680
- dq?: string | undefined;
681
- e?: string | undefined;
682
- ext?: boolean | undefined;
683
- k?: string | undefined;
684
- key_ops?: string[] | undefined;
685
- kid?: string | undefined;
686
- n?: string | undefined;
687
- p?: string | undefined;
688
- q?: string | undefined;
689
- qi?: string | undefined;
690
- use?: string | undefined;
691
- x?: string | undefined;
692
- y?: string | undefined;
693
- x5c?: string[] | undefined;
694
- x5t?: string | undefined;
695
- "x5t#S256"?: string | undefined;
696
- x5u?: string | undefined;
697
- }[];
698
- };
699
- authority_hints?: string[] | undefined;
700
- } & {
701
- [k: string]: unknown;
702
- };
703
- } | ({
704
- header: {
705
- alg: string;
706
- kid: string;
707
- typ: "entity-statement+jwt";
708
- };
709
- payload: {
710
- iss: string;
711
- sub: string;
712
- iat: number;
713
- exp: number;
714
- metadata: {
715
- federation_entity: {
716
- federation_fetch_endpoint?: string | undefined;
717
- federation_list_endpoint?: string | undefined;
718
- federation_resolve_endpoint?: string | undefined;
719
- federation_trust_mark_status_endpoint?: string | undefined;
720
- federation_trust_mark_list_endpoint?: string | undefined;
721
- federation_trust_mark_endpoint?: string | undefined;
722
- federation_historical_keys_endpoint?: string | undefined;
723
- endpoint_auth_signing_alg_values_supported?: string | undefined;
724
- organization_name?: string | undefined;
725
- homepage_uri?: string | undefined;
726
- policy_uri?: string | undefined;
727
- logo_uri?: string | undefined;
728
- contacts?: string[] | undefined;
729
- } & {
730
- [k: string]: unknown;
731
- };
732
- } & {
733
- [k: string]: unknown;
734
- };
735
- jwks: {
736
- keys: {
737
- kty: "RSA" | "EC";
738
- alg?: string | undefined;
739
- crv?: string | undefined;
740
- d?: string | undefined;
741
- dp?: string | undefined;
742
- dq?: string | undefined;
743
- e?: string | undefined;
744
- ext?: boolean | undefined;
745
- k?: string | undefined;
746
- key_ops?: string[] | undefined;
747
- kid?: string | undefined;
748
- n?: string | undefined;
749
- p?: string | undefined;
750
- q?: string | undefined;
751
- qi?: string | undefined;
752
- use?: string | undefined;
753
- x?: string | undefined;
754
- y?: string | undefined;
755
- x5c?: string[] | undefined;
756
- x5t?: string | undefined;
757
- "x5t#S256"?: string | undefined;
758
- x5u?: string | undefined;
759
- }[];
760
- };
761
- authority_hints?: string[] | undefined;
762
- } & {
763
- [k: string]: unknown;
764
- };
765
- } & {
766
- payload: {
767
- metadata: {
768
- openid_credential_issuer: {
769
- jwks: {
770
- keys: {
771
- kty: "RSA" | "EC";
772
- alg?: string | undefined;
773
- crv?: string | undefined;
774
- d?: string | undefined;
775
- dp?: string | undefined;
776
- dq?: string | undefined;
777
- e?: string | undefined;
778
- ext?: boolean | undefined;
779
- k?: string | undefined;
780
- key_ops?: string[] | undefined;
781
- kid?: string | undefined;
782
- n?: string | undefined;
783
- p?: string | undefined;
784
- q?: string | undefined;
785
- qi?: string | undefined;
786
- use?: string | undefined;
787
- x?: string | undefined;
788
- y?: string | undefined;
789
- x5c?: string[] | undefined;
790
- x5t?: string | undefined;
791
- "x5t#S256"?: string | undefined;
792
- x5u?: string | undefined;
793
- }[];
794
- };
795
- credential_issuer: string;
796
- credential_endpoint: string;
797
- revocation_endpoint: string;
798
- status_attestation_endpoint: string;
799
- display: {
800
- name: string;
801
- locale: string;
802
- }[];
803
- credential_configurations_supported: Record<string, {
804
- format: "vc+sd-jwt" | "vc+mdoc-cbor";
805
- display: {
806
- name: string;
807
- locale: string;
808
- }[];
809
- scope: string;
810
- claims: Record<string, {
811
- display: {
812
- name: string;
813
- locale: string;
814
- }[];
815
- value_type: string;
816
- }>;
817
- cryptographic_binding_methods_supported: string[];
818
- credential_signing_alg_values_supported: string[];
819
- authentic_source?: string | undefined;
820
- issuance_errors_supported?: Record<string, {
821
- display: {
822
- title: string;
823
- locale: string;
824
- description: string;
825
- }[];
826
- }> | undefined;
827
- }>;
828
- };
829
- oauth_authorization_server: {
830
- jwks: {
831
- keys: {
832
- kty: "RSA" | "EC";
833
- alg?: string | undefined;
834
- crv?: string | undefined;
835
- d?: string | undefined;
836
- dp?: string | undefined;
837
- dq?: string | undefined;
838
- e?: string | undefined;
839
- ext?: boolean | undefined;
840
- k?: string | undefined;
841
- key_ops?: string[] | undefined;
842
- kid?: string | undefined;
843
- n?: string | undefined;
844
- p?: string | undefined;
845
- q?: string | undefined;
846
- qi?: string | undefined;
847
- use?: string | undefined;
848
- x?: string | undefined;
849
- y?: string | undefined;
850
- x5c?: string[] | undefined;
851
- x5t?: string | undefined;
852
- "x5t#S256"?: string | undefined;
853
- x5u?: string | undefined;
854
- }[];
855
- };
856
- authorization_endpoint: string;
857
- pushed_authorization_request_endpoint: string;
858
- token_endpoint: string;
859
- client_registration_types_supported: string[];
860
- code_challenge_methods_supported: string[];
861
- acr_values_supported: string[];
862
- grant_types_supported: string[];
863
- issuer: string;
864
- scopes_supported: string[];
865
- response_modes_supported: string[];
866
- token_endpoint_auth_methods_supported: string[];
867
- token_endpoint_auth_signing_alg_values_supported: string[];
868
- request_object_signing_alg_values_supported: string[];
869
- };
870
- openid_credential_verifier?: {
871
- jwks: {
872
- keys: {
873
- kty: "RSA" | "EC";
874
- alg?: string | undefined;
875
- crv?: string | undefined;
876
- d?: string | undefined;
877
- dp?: string | undefined;
878
- dq?: string | undefined;
879
- e?: string | undefined;
880
- ext?: boolean | undefined;
881
- k?: string | undefined;
882
- key_ops?: string[] | undefined;
883
- kid?: string | undefined;
884
- n?: string | undefined;
885
- p?: string | undefined;
886
- q?: string | undefined;
887
- qi?: string | undefined;
888
- use?: string | undefined;
889
- x?: string | undefined;
890
- y?: string | undefined;
891
- x5c?: string[] | undefined;
892
- x5t?: string | undefined;
893
- "x5t#S256"?: string | undefined;
894
- x5u?: string | undefined;
895
- }[];
896
- };
897
- application_type?: string | undefined;
898
- client_id?: string | undefined;
899
- client_name?: string | undefined;
900
- contacts?: string[] | undefined;
901
- presentation_definition?: {
902
- id: string;
903
- input_descriptors: {
904
- id: string;
905
- constraints: {
906
- fields?: {
907
- path: string[];
908
- id?: string | undefined;
909
- purpose?: string | undefined;
910
- name?: string | undefined;
911
- filter?: any;
912
- optional?: boolean | undefined;
913
- intent_to_retain?: boolean | undefined;
914
- }[] | undefined;
915
- limit_disclosure?: "required" | "preferred" | undefined;
916
- };
917
- name?: string | undefined;
918
- purpose?: string | undefined;
919
- format?: Record<string, any> | undefined;
920
- group?: string | undefined;
921
- }[];
922
- name?: string | undefined;
923
- purpose?: string | undefined;
924
- submission_requirements?: {
925
- rule: string;
926
- name?: string | undefined;
927
- purpose?: string | undefined;
928
- from?: string | undefined;
929
- from_nested?: {
930
- rule: string;
931
- from: string;
932
- name?: string | undefined;
933
- purpose?: string | undefined;
934
- }[] | undefined;
935
- count?: number | undefined;
936
- }[] | undefined;
937
- } | undefined;
938
- request_uris?: string[] | undefined;
939
- authorization_signed_response_alg?: string | undefined;
940
- authorization_encrypted_response_alg?: string | undefined;
941
- authorization_encrypted_response_enc?: string | undefined;
942
- } | undefined;
943
- };
944
- jwks: {
945
- keys: {
946
- kty: "RSA" | "EC";
947
- alg?: string | undefined;
948
- crv?: string | undefined;
949
- d?: string | undefined;
950
- dp?: string | undefined;
951
- dq?: string | undefined;
952
- e?: string | undefined;
953
- ext?: boolean | undefined;
954
- k?: string | undefined;
955
- key_ops?: string[] | undefined;
956
- kid?: string | undefined;
957
- n?: string | undefined;
958
- p?: string | undefined;
959
- q?: string | undefined;
960
- qi?: string | undefined;
961
- use?: string | undefined;
962
- x?: string | undefined;
963
- y?: string | undefined;
964
- x5c?: string[] | undefined;
965
- x5t?: string | undefined;
966
- "x5t#S256"?: string | undefined;
967
- x5u?: string | undefined;
968
- }[];
969
- };
970
- };
971
- }) | ({
972
- header: {
973
- alg: string;
974
- kid: string;
975
- typ: "entity-statement+jwt";
976
- };
977
- payload: {
978
- iss: string;
979
- sub: string;
980
- iat: number;
981
- exp: number;
982
- metadata: {
983
- federation_entity: {
984
- federation_fetch_endpoint?: string | undefined;
985
- federation_list_endpoint?: string | undefined;
986
- federation_resolve_endpoint?: string | undefined;
987
- federation_trust_mark_status_endpoint?: string | undefined;
988
- federation_trust_mark_list_endpoint?: string | undefined;
989
- federation_trust_mark_endpoint?: string | undefined;
990
- federation_historical_keys_endpoint?: string | undefined;
991
- endpoint_auth_signing_alg_values_supported?: string | undefined;
992
- organization_name?: string | undefined;
993
- homepage_uri?: string | undefined;
994
- policy_uri?: string | undefined;
995
- logo_uri?: string | undefined;
996
- contacts?: string[] | undefined;
997
- } & {
998
- [k: string]: unknown;
999
- };
1000
- } & {
1001
- [k: string]: unknown;
1002
- };
1003
- jwks: {
1004
- keys: {
1005
- kty: "RSA" | "EC";
1006
- alg?: string | undefined;
1007
- crv?: string | undefined;
1008
- d?: string | undefined;
1009
- dp?: string | undefined;
1010
- dq?: string | undefined;
1011
- e?: string | undefined;
1012
- ext?: boolean | undefined;
1013
- k?: string | undefined;
1014
- key_ops?: string[] | undefined;
1015
- kid?: string | undefined;
1016
- n?: string | undefined;
1017
- p?: string | undefined;
1018
- q?: string | undefined;
1019
- qi?: string | undefined;
1020
- use?: string | undefined;
1021
- x?: string | undefined;
1022
- y?: string | undefined;
1023
- x5c?: string[] | undefined;
1024
- x5t?: string | undefined;
1025
- "x5t#S256"?: string | undefined;
1026
- x5u?: string | undefined;
1027
- }[];
1028
- };
1029
- authority_hints?: string[] | undefined;
1030
- } & {
1031
- [k: string]: unknown;
1032
- };
1033
- } & {
1034
- payload: {
1035
- metadata: {
1036
- openid_credential_verifier: {
1037
- jwks: {
1038
- keys: {
1039
- kty: "RSA" | "EC";
1040
- alg?: string | undefined;
1041
- crv?: string | undefined;
1042
- d?: string | undefined;
1043
- dp?: string | undefined;
1044
- dq?: string | undefined;
1045
- e?: string | undefined;
1046
- ext?: boolean | undefined;
1047
- k?: string | undefined;
1048
- key_ops?: string[] | undefined;
1049
- kid?: string | undefined;
1050
- n?: string | undefined;
1051
- p?: string | undefined;
1052
- q?: string | undefined;
1053
- qi?: string | undefined;
1054
- use?: string | undefined;
1055
- x?: string | undefined;
1056
- y?: string | undefined;
1057
- x5c?: string[] | undefined;
1058
- x5t?: string | undefined;
1059
- "x5t#S256"?: string | undefined;
1060
- x5u?: string | undefined;
1061
- }[];
1062
- };
1063
- application_type?: string | undefined;
1064
- client_id?: string | undefined;
1065
- client_name?: string | undefined;
1066
- contacts?: string[] | undefined;
1067
- presentation_definition?: {
1068
- id: string;
1069
- input_descriptors: {
1070
- id: string;
1071
- constraints: {
1072
- fields?: {
1073
- path: string[];
1074
- id?: string | undefined;
1075
- purpose?: string | undefined;
1076
- name?: string | undefined;
1077
- filter?: any;
1078
- optional?: boolean | undefined;
1079
- intent_to_retain?: boolean | undefined;
1080
- }[] | undefined;
1081
- limit_disclosure?: "required" | "preferred" | undefined;
1082
- };
1083
- name?: string | undefined;
1084
- purpose?: string | undefined;
1085
- format?: Record<string, any> | undefined;
1086
- group?: string | undefined;
1087
- }[];
1088
- name?: string | undefined;
1089
- purpose?: string | undefined;
1090
- submission_requirements?: {
1091
- rule: string;
1092
- name?: string | undefined;
1093
- purpose?: string | undefined;
1094
- from?: string | undefined;
1095
- from_nested?: {
1096
- rule: string;
1097
- from: string;
1098
- name?: string | undefined;
1099
- purpose?: string | undefined;
1100
- }[] | undefined;
1101
- count?: number | undefined;
1102
- }[] | undefined;
1103
- } | undefined;
1104
- request_uris?: string[] | undefined;
1105
- authorization_signed_response_alg?: string | undefined;
1106
- authorization_encrypted_response_alg?: string | undefined;
1107
- authorization_encrypted_response_enc?: string | undefined;
1108
- };
1109
- };
1110
- };
1111
- }) | ({
1112
- header: {
1113
- alg: string;
1114
- kid: string;
1115
- typ: "entity-statement+jwt";
1116
- };
1117
- payload: {
1118
- iss: string;
1119
- sub: string;
1120
- iat: number;
1121
- exp: number;
1122
- metadata: {
1123
- federation_entity: {
1124
- federation_fetch_endpoint?: string | undefined;
1125
- federation_list_endpoint?: string | undefined;
1126
- federation_resolve_endpoint?: string | undefined;
1127
- federation_trust_mark_status_endpoint?: string | undefined;
1128
- federation_trust_mark_list_endpoint?: string | undefined;
1129
- federation_trust_mark_endpoint?: string | undefined;
1130
- federation_historical_keys_endpoint?: string | undefined;
1131
- endpoint_auth_signing_alg_values_supported?: string | undefined;
1132
- organization_name?: string | undefined;
1133
- homepage_uri?: string | undefined;
1134
- policy_uri?: string | undefined;
1135
- logo_uri?: string | undefined;
1136
- contacts?: string[] | undefined;
1137
- } & {
1138
- [k: string]: unknown;
1139
- };
1140
- } & {
1141
- [k: string]: unknown;
1142
- };
1143
- jwks: {
1144
- keys: {
1145
- kty: "RSA" | "EC";
1146
- alg?: string | undefined;
1147
- crv?: string | undefined;
1148
- d?: string | undefined;
1149
- dp?: string | undefined;
1150
- dq?: string | undefined;
1151
- e?: string | undefined;
1152
- ext?: boolean | undefined;
1153
- k?: string | undefined;
1154
- key_ops?: string[] | undefined;
1155
- kid?: string | undefined;
1156
- n?: string | undefined;
1157
- p?: string | undefined;
1158
- q?: string | undefined;
1159
- qi?: string | undefined;
1160
- use?: string | undefined;
1161
- x?: string | undefined;
1162
- y?: string | undefined;
1163
- x5c?: string[] | undefined;
1164
- x5t?: string | undefined;
1165
- "x5t#S256"?: string | undefined;
1166
- x5u?: string | undefined;
1167
- }[];
1168
- };
1169
- authority_hints?: string[] | undefined;
1170
- } & {
1171
- [k: string]: unknown;
1172
- };
1173
- } & {
1174
- payload: {
1175
- metadata: {
1176
- wallet_provider: {
1177
- jwks: {
1178
- keys: {
1179
- kty: "RSA" | "EC";
1180
- alg?: string | undefined;
1181
- crv?: string | undefined;
1182
- d?: string | undefined;
1183
- dp?: string | undefined;
1184
- dq?: string | undefined;
1185
- e?: string | undefined;
1186
- ext?: boolean | undefined;
1187
- k?: string | undefined;
1188
- key_ops?: string[] | undefined;
1189
- kid?: string | undefined;
1190
- n?: string | undefined;
1191
- p?: string | undefined;
1192
- q?: string | undefined;
1193
- qi?: string | undefined;
1194
- use?: string | undefined;
1195
- x?: string | undefined;
1196
- y?: string | undefined;
1197
- x5c?: string[] | undefined;
1198
- x5t?: string | undefined;
1199
- "x5t#S256"?: string | undefined;
1200
- x5u?: string | undefined;
1201
- }[];
1202
- };
1203
- token_endpoint: string;
1204
- grant_types_supported: string[];
1205
- token_endpoint_auth_methods_supported: string[];
1206
- token_endpoint_auth_signing_alg_values_supported: string[];
1207
- aal_values_supported?: string[] | undefined;
1208
- } & {
1209
- [k: string]: unknown;
1210
- };
1211
- };
1212
- };
1213
- })>;
1214
- /**
1215
- * Fetch and parse the entity statement document for a given federation entity.
1216
- *
1217
- * @param accreditationBodyBaseUrl The base url of the accreditation body which holds and signs the required entity statement
1218
- * @param subordinatedEntityBaseUrl The url that identifies the subordinate entity
1219
- * @param appFetch An optional instance of the http client to be used.
1220
- * @returns The parsed entity configuration object
1221
- * @throws {IoWalletError} If the http request fails
1222
- */
1223
- export declare function getEntityStatement(accreditationBodyBaseUrl: string, subordinatedEntityBaseUrl: string, { appFetch, }?: {
1224
- appFetch?: GlobalFetch["fetch"];
1225
- }): Promise<{
1226
- header: {
1227
- alg: string;
1228
- kid: string;
1229
- typ: "entity-statement+jwt";
1230
- };
1231
- payload: {
1232
- iss: string;
1233
- sub: string;
1234
- iat: number;
1235
- exp: number;
1236
- jwks: {
1237
- keys: {
1238
- kty: "RSA" | "EC";
1239
- alg?: string | undefined;
1240
- crv?: string | undefined;
1241
- d?: string | undefined;
1242
- dp?: string | undefined;
1243
- dq?: string | undefined;
1244
- e?: string | undefined;
1245
- ext?: boolean | undefined;
1246
- k?: string | undefined;
1247
- key_ops?: string[] | undefined;
1248
- kid?: string | undefined;
1249
- n?: string | undefined;
1250
- p?: string | undefined;
1251
- q?: string | undefined;
1252
- qi?: string | undefined;
1253
- use?: string | undefined;
1254
- x?: string | undefined;
1255
- y?: string | undefined;
1256
- x5c?: string[] | undefined;
1257
- x5t?: string | undefined;
1258
- "x5t#S256"?: string | undefined;
1259
- x5u?: string | undefined;
1260
- }[];
1261
- };
1262
- trust_marks?: {
1263
- id: string;
1264
- trust_mark: string;
1265
- }[] | undefined;
1266
- };
1267
- }>;
1268
- /**
1269
- * Fetch the entity statement document for a given federation entity.
1270
- *
1271
- * @param federationFetchEndpoint The exact endpoint provided by the parent EC's metadata.
1272
- * @param subordinatedEntityBaseUrl The url that identifies the subordinate entity.
1273
- * @param appFetch An optional instance of the http client to be used.
1274
- * @returns The signed entity statement token.
1275
- * @throws {IoWalletError} If the http request fails.
1276
- */
1277
- export declare function getSignedEntityStatement(federationFetchEndpoint: string, subordinatedEntityBaseUrl: string, { appFetch, }?: {
1278
- appFetch?: GlobalFetch["fetch"];
1279
- }): Promise<string>;
1280
- /**
1281
- * Fetch the federation list document from a given endpoint.
1282
- *
1283
- * @param federationListEndpoint The URL of the federation list endpoint.
1284
- * @param appFetch An optional instance of the http client to be used.
1285
- * @returns The federation list as an array of strings.
1286
- * @throws {IoWalletError} If the HTTP request fails.
1287
- * @throws {FederationError} If the result is not in the expected format.
1288
- */
1289
- export declare function getFederationList(federationListEndpoint: string, { appFetch, }?: {
1290
- appFetch?: GlobalFetch["fetch"];
1291
- }): Promise<string[]>;
1292
- /**
1293
- * Build a not-verified trust chain for a given Relying Party (RP) entity.
1294
- *
1295
- * @param relyingPartyEntityBaseUrl The base URL of the RP entity
1296
- * @param trustAnchorKey The public key of the Trust Anchor (TA) entity
1297
- * @param appFetch An optional instance of the http client to be used.
1298
- * @returns A list of signed tokens that represent the trust chain, in the order of the chain (from the RP to the Trust Anchor)
1299
- * @throws {FederationError} When an element of the chain fails to parse or other build steps fail.
1300
- */
1301
- export declare function buildTrustChain(relyingPartyEntityBaseUrl: string, trustAnchorKey: JWK, appFetch?: GlobalFetch["fetch"]): Promise<string[]>;
1
+ import * as Build from "./build-chain";
2
+ import * as Verify from "./verify-chain";
3
+ import * as Errors from "./errors";
4
+ import * as Types from "./types";
5
+ export { Build, Verify, Errors, Types };
1302
6
  //# sourceMappingURL=index.d.ts.map