@sphereon/ssi-sdk.siopv2-oid4vp-rp-rest-api 0.34.1-feature.SSISDK.46.42 → 0.34.1-feature.SSISDK.46.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -298,14 +298,29 @@ type RequestError = {
298
298
  message: string;
299
299
  error_details?: string;
300
300
  };
301
- interface GetAuthStatusResponse {
301
+ type GetAuthStatusResponse = {
302
302
  status: AuthorizationRequestStateStatus | AuthorizationResponseStateStatus;
303
303
  correlation_id: string;
304
304
  query_id: string;
305
305
  last_updated: number;
306
- verified_data?: AdditionalClaims;
306
+ verified_data?: VerifiedData;
307
307
  error?: RequestError;
308
- }
308
+ };
309
+ type VerifiedData = {
310
+ authorization_response?: AuthorizationResponse;
311
+ credential_claims?: AdditionalClaims;
312
+ };
313
+ type AuthorizationResponse = {
314
+ presentation_submission?: Record<string, any>;
315
+ vp_token?: VpToken;
316
+ };
317
+ type SingleObjectVpTokenPE = Record<string, any>;
318
+ type SingleStringVpTokenPE = string;
319
+ type MultipleVpTokens = Array<SingleObjectVpTokenPE> | Array<SingleStringVpTokenPE>;
320
+ type MultipleVpTokenDCQL = {
321
+ [key: string]: MultipleVpTokens;
322
+ };
323
+ type VpToken = SingleObjectVpTokenPE | SingleStringVpTokenPE | MultipleVpTokens | MultipleVpTokenDCQL;
309
324
 
310
325
  declare function verifyAuthResponseSIOPv2Endpoint(router: Router, context: IRequiredContext, opts?: ISingleEndpointOpts & {
311
326
  presentationDefinitionLocation?: PresentationDefinitionLocation;
@@ -336,4 +351,4 @@ declare class SIOPv2RPApiServer {
336
351
  get opts(): ISIOPv2RPRestAPIOpts | undefined;
337
352
  }
338
353
 
339
- export { type ComponentOptions, type CreateAuthorizationRequest, type CreateAuthorizationRequestBody, type CreateAuthorizationRequestResponse, type CreateAuthorizationResponse, type DeleteAuthorizationRequest, type DeleteAuthorizationRequestPathParameters, type GetAuthStatusResponse, type GetAuthorizationRequestStatus, type GetAuthorizationRequestStatusPathParameters, type ICreateAuthRequestWebappEndpointOpts, type IRequiredContext, type IRequiredPlugins, type ISIOPv2RPRestAPIOpts, type QRCodeOpts, type RequestError, SIOPv2RPApiServer, type SiopFeatures, authStatusUniversalOID4VPEndpoint, createAuthRequestUniversalOID4VPEndpoint, getAuthRequestSIOPv2Endpoint, getDefinitionsEndpoint, removeAuthRequestStateUniversalOID4VPEndpoint, verifyAuthResponseSIOPv2Endpoint };
354
+ export { type AuthorizationResponse, type ComponentOptions, type CreateAuthorizationRequest, type CreateAuthorizationRequestBody, type CreateAuthorizationRequestResponse, type CreateAuthorizationResponse, type DeleteAuthorizationRequest, type DeleteAuthorizationRequestPathParameters, type GetAuthStatusResponse, type GetAuthorizationRequestStatus, type GetAuthorizationRequestStatusPathParameters, type ICreateAuthRequestWebappEndpointOpts, type IRequiredContext, type IRequiredPlugins, type ISIOPv2RPRestAPIOpts, type MultipleVpTokenDCQL, type MultipleVpTokens, type QRCodeOpts, type RequestError, SIOPv2RPApiServer, type SingleObjectVpTokenPE, type SingleStringVpTokenPE, type SiopFeatures, type VerifiedData, type VpToken, authStatusUniversalOID4VPEndpoint, createAuthRequestUniversalOID4VPEndpoint, getAuthRequestSIOPv2Endpoint, getDefinitionsEndpoint, removeAuthRequestStateUniversalOID4VPEndpoint, verifyAuthResponseSIOPv2Endpoint };
package/dist/index.d.ts CHANGED
@@ -298,14 +298,29 @@ type RequestError = {
298
298
  message: string;
299
299
  error_details?: string;
300
300
  };
301
- interface GetAuthStatusResponse {
301
+ type GetAuthStatusResponse = {
302
302
  status: AuthorizationRequestStateStatus | AuthorizationResponseStateStatus;
303
303
  correlation_id: string;
304
304
  query_id: string;
305
305
  last_updated: number;
306
- verified_data?: AdditionalClaims;
306
+ verified_data?: VerifiedData;
307
307
  error?: RequestError;
308
- }
308
+ };
309
+ type VerifiedData = {
310
+ authorization_response?: AuthorizationResponse;
311
+ credential_claims?: AdditionalClaims;
312
+ };
313
+ type AuthorizationResponse = {
314
+ presentation_submission?: Record<string, any>;
315
+ vp_token?: VpToken;
316
+ };
317
+ type SingleObjectVpTokenPE = Record<string, any>;
318
+ type SingleStringVpTokenPE = string;
319
+ type MultipleVpTokens = Array<SingleObjectVpTokenPE> | Array<SingleStringVpTokenPE>;
320
+ type MultipleVpTokenDCQL = {
321
+ [key: string]: MultipleVpTokens;
322
+ };
323
+ type VpToken = SingleObjectVpTokenPE | SingleStringVpTokenPE | MultipleVpTokens | MultipleVpTokenDCQL;
309
324
 
310
325
  declare function verifyAuthResponseSIOPv2Endpoint(router: Router, context: IRequiredContext, opts?: ISingleEndpointOpts & {
311
326
  presentationDefinitionLocation?: PresentationDefinitionLocation;
@@ -336,4 +351,4 @@ declare class SIOPv2RPApiServer {
336
351
  get opts(): ISIOPv2RPRestAPIOpts | undefined;
337
352
  }
338
353
 
339
- export { type ComponentOptions, type CreateAuthorizationRequest, type CreateAuthorizationRequestBody, type CreateAuthorizationRequestResponse, type CreateAuthorizationResponse, type DeleteAuthorizationRequest, type DeleteAuthorizationRequestPathParameters, type GetAuthStatusResponse, type GetAuthorizationRequestStatus, type GetAuthorizationRequestStatusPathParameters, type ICreateAuthRequestWebappEndpointOpts, type IRequiredContext, type IRequiredPlugins, type ISIOPv2RPRestAPIOpts, type QRCodeOpts, type RequestError, SIOPv2RPApiServer, type SiopFeatures, authStatusUniversalOID4VPEndpoint, createAuthRequestUniversalOID4VPEndpoint, getAuthRequestSIOPv2Endpoint, getDefinitionsEndpoint, removeAuthRequestStateUniversalOID4VPEndpoint, verifyAuthResponseSIOPv2Endpoint };
354
+ export { type AuthorizationResponse, type ComponentOptions, type CreateAuthorizationRequest, type CreateAuthorizationRequestBody, type CreateAuthorizationRequestResponse, type CreateAuthorizationResponse, type DeleteAuthorizationRequest, type DeleteAuthorizationRequestPathParameters, type GetAuthStatusResponse, type GetAuthorizationRequestStatus, type GetAuthorizationRequestStatusPathParameters, type ICreateAuthRequestWebappEndpointOpts, type IRequiredContext, type IRequiredPlugins, type ISIOPv2RPRestAPIOpts, type MultipleVpTokenDCQL, type MultipleVpTokens, type QRCodeOpts, type RequestError, SIOPv2RPApiServer, type SingleObjectVpTokenPE, type SingleStringVpTokenPE, type SiopFeatures, type VerifiedData, type VpToken, authStatusUniversalOID4VPEndpoint, createAuthRequestUniversalOID4VPEndpoint, getAuthRequestSIOPv2Endpoint, getDefinitionsEndpoint, removeAuthRequestStateUniversalOID4VPEndpoint, verifyAuthResponseSIOPv2Endpoint };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sphereon/ssi-sdk.siopv2-oid4vp-rp-rest-api",
3
- "version": "0.34.1-feature.SSISDK.46.42+7bc89636",
3
+ "version": "0.34.1-feature.SSISDK.46.43+90b3e986",
4
4
  "source": "src/index.ts",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -23,16 +23,16 @@
23
23
  "start:dev": "ts-node __tests__/RestAPI.ts"
24
24
  },
25
25
  "dependencies": {
26
- "@sphereon/did-auth-siop": "0.19.1-feature.SSISDK.46.5",
27
- "@sphereon/ssi-express-support": "0.34.1-feature.SSISDK.46.42+7bc89636",
28
- "@sphereon/ssi-sdk.core": "0.34.1-feature.SSISDK.46.42+7bc89636",
29
- "@sphereon/ssi-sdk.credential-validation": "0.34.1-feature.SSISDK.46.42+7bc89636",
30
- "@sphereon/ssi-sdk.kv-store-temp": "0.34.1-feature.SSISDK.46.42+7bc89636",
31
- "@sphereon/ssi-sdk.pd-manager": "0.34.1-feature.SSISDK.46.42+7bc89636",
32
- "@sphereon/ssi-sdk.presentation-exchange": "0.34.1-feature.SSISDK.46.42+7bc89636",
33
- "@sphereon/ssi-sdk.siopv2-oid4vp-common": "0.34.1-feature.SSISDK.46.42+7bc89636",
34
- "@sphereon/ssi-sdk.siopv2-oid4vp-rp-auth": "0.34.1-feature.SSISDK.46.42+7bc89636",
35
- "@sphereon/ssi-types": "0.34.1-feature.SSISDK.46.42+7bc89636",
26
+ "@sphereon/did-auth-siop": "0.19.1-feature.SSISDK.46.6",
27
+ "@sphereon/ssi-express-support": "0.34.1-feature.SSISDK.46.43+90b3e986",
28
+ "@sphereon/ssi-sdk.core": "0.34.1-feature.SSISDK.46.43+90b3e986",
29
+ "@sphereon/ssi-sdk.credential-validation": "0.34.1-feature.SSISDK.46.43+90b3e986",
30
+ "@sphereon/ssi-sdk.kv-store-temp": "0.34.1-feature.SSISDK.46.43+90b3e986",
31
+ "@sphereon/ssi-sdk.pd-manager": "0.34.1-feature.SSISDK.46.43+90b3e986",
32
+ "@sphereon/ssi-sdk.presentation-exchange": "0.34.1-feature.SSISDK.46.43+90b3e986",
33
+ "@sphereon/ssi-sdk.siopv2-oid4vp-common": "0.34.1-feature.SSISDK.46.43+90b3e986",
34
+ "@sphereon/ssi-sdk.siopv2-oid4vp-rp-auth": "0.34.1-feature.SSISDK.46.43+90b3e986",
35
+ "@sphereon/ssi-types": "0.34.1-feature.SSISDK.46.43+90b3e986",
36
36
  "@veramo/core": "4.2.0",
37
37
  "@veramo/credential-w3c": "4.2.0",
38
38
  "awesome-qr": "^2.1.5-rc.0",
@@ -49,16 +49,16 @@
49
49
  },
50
50
  "devDependencies": {
51
51
  "@decentralized-identity/ion-sdk": "^0.6.0",
52
- "@sphereon/did-auth-siop-adapter": "0.19.1-feature.SSISDK.46.5",
52
+ "@sphereon/did-auth-siop-adapter": "0.19.1-feature.SSISDK.46.6",
53
53
  "@sphereon/did-uni-client": "^0.6.3",
54
54
  "@sphereon/pex": "5.0.0-unstable.28",
55
55
  "@sphereon/pex-models": "^2.3.2",
56
- "@sphereon/ssi-sdk-ext.did-provider-jwk": "0.34.1-feature.SSISDK.46.42+7bc89636",
57
- "@sphereon/ssi-sdk-ext.identifier-resolution": "0.34.1-feature.SSISDK.46.42+7bc89636",
58
- "@sphereon/ssi-sdk-ext.jwt-service": "0.34.1-feature.SSISDK.46.42+7bc89636",
59
- "@sphereon/ssi-sdk.credential-vcdm": "0.34.1-feature.SSISDK.46.42+7bc89636",
60
- "@sphereon/ssi-sdk.credential-vcdm-jsonld-provider": "0.34.1-feature.SSISDK.46.42+7bc89636",
61
- "@sphereon/ssi-sdk.data-store": "0.34.1-feature.SSISDK.46.42+7bc89636",
56
+ "@sphereon/ssi-sdk-ext.did-provider-jwk": "0.34.1-feature.SSISDK.46.43+90b3e986",
57
+ "@sphereon/ssi-sdk-ext.identifier-resolution": "0.34.1-feature.SSISDK.46.43+90b3e986",
58
+ "@sphereon/ssi-sdk-ext.jwt-service": "0.34.1-feature.SSISDK.46.43+90b3e986",
59
+ "@sphereon/ssi-sdk.credential-vcdm": "0.34.1-feature.SSISDK.46.43+90b3e986",
60
+ "@sphereon/ssi-sdk.credential-vcdm-jsonld-provider": "0.34.1-feature.SSISDK.46.43+90b3e986",
61
+ "@sphereon/ssi-sdk.data-store": "0.34.1-feature.SSISDK.46.43+90b3e986",
62
62
  "@types/body-parser": "^1.19.5",
63
63
  "@types/cookie-parser": "^1.4.7",
64
64
  "@types/cors": "^2.8.17",
@@ -117,5 +117,5 @@
117
117
  "OpenID Connect",
118
118
  "Authenticator"
119
119
  ],
120
- "gitHead": "7bc89636f8e96783eca147c7160dbb4dbf387735"
120
+ "gitHead": "90b3e9867b8e4c01c3f0ed2e8bb31b7d9783ee22"
121
121
  }
@@ -63,11 +63,37 @@ export type RequestError = {
63
63
  error_details?: string
64
64
  }
65
65
 
66
- export interface GetAuthStatusResponse {
66
+ export type GetAuthStatusResponse = {
67
67
  status: AuthorizationRequestStateStatus | AuthorizationResponseStateStatus
68
68
  correlation_id: string
69
69
  query_id: string
70
70
  last_updated: number
71
- verified_data?: AdditionalClaims
71
+ verified_data?: VerifiedData
72
72
  error?: RequestError
73
73
  }
74
+
75
+ export type VerifiedData = {
76
+ authorization_response?: AuthorizationResponse
77
+ credential_claims?: AdditionalClaims
78
+ }
79
+
80
+ export type AuthorizationResponse = {
81
+ presentation_submission?: Record<string, any>
82
+ vp_token?: VpToken
83
+ }
84
+
85
+ export type SingleObjectVpTokenPE = Record<string, any>
86
+
87
+ export type SingleStringVpTokenPE = string
88
+
89
+ export type MultipleVpTokens = Array<SingleObjectVpTokenPE> | Array<SingleStringVpTokenPE>
90
+
91
+ export type MultipleVpTokenDCQL = {
92
+ [key: string]: MultipleVpTokens
93
+ }
94
+
95
+ export type VpToken =
96
+ | SingleObjectVpTokenPE
97
+ | SingleStringVpTokenPE
98
+ | MultipleVpTokens
99
+ | MultipleVpTokenDCQL