@sphereon/ssi-sdk.siopv2-oid4vp-common 0.34.1-next.91 → 0.36.1-feat.SSISDK.83.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.
package/dist/index.cjs CHANGED
@@ -26,9 +26,13 @@ __export(index_exports, {
26
26
  OP: () => import_did_auth_siop.OP,
27
27
  OPBuilder: () => import_did_auth_siop.OPBuilder,
28
28
  RP: () => import_did_auth_siop.RP,
29
+ ResponseMode: () => import_did_auth_siop.ResponseMode,
30
+ ResponseType: () => import_did_auth_siop.ResponseType,
29
31
  SupportedVersion: () => import_did_auth_siop.SupportedVersion,
30
32
  URI: () => import_did_auth_siop.URI,
31
33
  VPTokenLocation: () => import_did_auth_siop.VPTokenLocation,
34
+ createAuthorizationRequestToPayload: () => import_did_auth_siop.createAuthorizationRequestToPayload,
35
+ createAuthorizationResponseFromPayload: () => import_did_auth_siop.createAuthorizationResponseFromPayload,
32
36
  decodeUriAsJson: () => import_did_auth_siop.decodeUriAsJson,
33
37
  encodeJsonAsURI: () => import_did_auth_siop.encodeJsonAsURI,
34
38
  uriWithBase: () => uriWithBase
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts","../src/utils.ts"],"sourcesContent":["export * from './auth-model'\nexport * from './utils'\n\n// We are exporting some common class from SIOP\n/**\n * @private\n */\nexport {\n decodeUriAsJson,\n encodeJsonAsURI,\n URI,\n AuthorizationRequest,\n AuthorizationResponse,\n RP,\n OP,\n OPBuilder,\n SupportedVersion,\n VPTokenLocation,\n} from '@sphereon/did-auth-siop'\n\nexport type {\n RequestObjectPayload,\n AuthorizationRequestState,\n AuthorizationResponsePayload,\n AuthorizationRequestPayload,\n PresentationVerificationResult,\n PresentationVerificationCallback,\n} from '@sphereon/did-auth-siop'\n","export function uriWithBase(path: string, opts?: { baseURI?: string; envVarName?: string }) {\n let baseUri = `${!!opts?.baseURI ? opts.baseURI : opts?.envVarName && process ? process.env[opts.envVarName!] : process?.env?.BACKEND_BASE_URI}`\n if (!baseUri || baseUri === 'undefined') {\n throw Error('No base URI provided as param or environment variable')\n } else if (!baseUri.startsWith('http')) {\n throw Error(`Base URI needs to start with http(s). Received: ${baseUri}`)\n }\n baseUri = baseUri.endsWith('/') ? baseUri.substring(0, baseUri.length - 1) : baseUri\n return `${baseUri}${path.startsWith('/') ? path : '/' + path}`\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;ACAO,SAASA,YAAYC,MAAcC,MAAgD;AACxF,MAAIC,UAAU,GAAG,CAAC,CAACD,MAAME,UAAUF,KAAKE,UAAUF,MAAMG,cAAcC,UAAUA,QAAQC,IAAIL,KAAKG,UAAU,IAAKC,SAASC,KAAKC,gBAAAA;AAC9H,MAAI,CAACL,WAAWA,YAAY,aAAa;AACvC,UAAMM,MAAM,uDAAA;EACd,WAAW,CAACN,QAAQO,WAAW,MAAA,GAAS;AACtC,UAAMD,MAAM,mDAAmDN,OAAAA,EAAS;EAC1E;AACAA,YAAUA,QAAQQ,SAAS,GAAA,IAAOR,QAAQS,UAAU,GAAGT,QAAQU,SAAS,CAAA,IAAKV;AAC7E,SAAO,GAAGA,OAAAA,GAAUF,KAAKS,WAAW,GAAA,IAAOT,OAAO,MAAMA,IAAAA;AAC1D;AATgBD;;;ADOhB,2BAWO;","names":["uriWithBase","path","opts","baseUri","baseURI","envVarName","process","env","BACKEND_BASE_URI","Error","startsWith","endsWith","substring","length"]}
1
+ {"version":3,"sources":["../src/index.ts","../src/utils.ts"],"sourcesContent":["export * from './auth-model'\nexport * from './utils'\n\n// We are exporting some common class from SIOP\n/**\n * @private\n */\nexport {\n decodeUriAsJson,\n encodeJsonAsURI,\n type AuthorizationResponsePayload,\n type AuthorizationRequestPayload,\n URI,\n type AuthorizationRequestState,\n type RequestObjectPayload,\n AuthorizationRequest,\n AuthorizationResponse,\n RP,\n OP,\n OPBuilder,\n SupportedVersion,\n type PresentationVerificationResult,\n type PresentationVerificationCallback,\n type CreateAuthorizationRequest,\n type CreateAuthorizationRequestPayload,\n type CreateAuthorizationResponse,\n type CreateAuthorizationResponsePayload,\n type CallbackOpts,\n type CallbackOptsPayload,\n type QRCodeOpts,\n type QRCodeOptsPayload,\n type RequestUriMethod,\n type RequestError,\n type RequestErrorPayload,\n type AuthStatusResponse,\n type AuthStatusResponsePayload,\n createAuthorizationResponseFromPayload,\n createAuthorizationRequestToPayload,\n ResponseType,\n ResponseMode,\n VPTokenLocation,\n} from '@sphereon/did-auth-siop'\n","export function uriWithBase(path: string, opts?: { baseURI?: string; envVarName?: string }) {\n let baseUri = `${!!opts?.baseURI ? opts.baseURI : opts?.envVarName && process ? process.env[opts.envVarName!] : process?.env?.BACKEND_BASE_URI}`\n if (!baseUri || baseUri === 'undefined') {\n throw Error('No base URI provided as param or environment variable')\n } else if (!baseUri.startsWith('http')) {\n throw Error(`Base URI needs to start with http(s). Received: ${baseUri}`)\n }\n baseUri = baseUri.endsWith('/') ? baseUri.substring(0, baseUri.length - 1) : baseUri\n return `${baseUri}${path.startsWith('/') ? path : '/' + path}`\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;ACAO,SAASA,YAAYC,MAAcC,MAAgD;AACxF,MAAIC,UAAU,GAAG,CAAC,CAACD,MAAME,UAAUF,KAAKE,UAAUF,MAAMG,cAAcC,UAAUA,QAAQC,IAAIL,KAAKG,UAAU,IAAKC,SAASC,KAAKC,gBAAAA;AAC9H,MAAI,CAACL,WAAWA,YAAY,aAAa;AACvC,UAAMM,MAAM,uDAAA;EACd,WAAW,CAACN,QAAQO,WAAW,MAAA,GAAS;AACtC,UAAMD,MAAM,mDAAmDN,OAAAA,EAAS;EAC1E;AACAA,YAAUA,QAAQQ,SAAS,GAAA,IAAOR,QAAQS,UAAU,GAAGT,QAAQU,SAAS,CAAA,IAAKV;AAC7E,SAAO,GAAGA,OAAAA,GAAUF,KAAKS,WAAW,GAAA,IAAOT,OAAO,MAAMA,IAAAA;AAC1D;AATgBD;;;ADOhB,2BAkCO;","names":["uriWithBase","path","opts","baseUri","baseURI","envVarName","process","env","BACKEND_BASE_URI","Error","startsWith","endsWith","substring","length"]}
package/dist/index.d.cts CHANGED
@@ -1,6 +1,4 @@
1
- import { AuthorizationResponsePayload } from '@sphereon/did-auth-siop';
2
- export { AuthorizationRequest, AuthorizationRequestPayload, AuthorizationRequestState, AuthorizationResponse, AuthorizationResponsePayload, OP, OPBuilder, PresentationVerificationCallback, PresentationVerificationResult, RP, RequestObjectPayload, SupportedVersion, URI, VPTokenLocation, decodeUriAsJson, encodeJsonAsURI } from '@sphereon/did-auth-siop';
3
- import { AdditionalClaims } from '@sphereon/ssi-types';
1
+ export { AuthStatusResponse, AuthStatusResponsePayload, AuthorizationRequest, AuthorizationRequestPayload, AuthorizationRequestState, AuthorizationResponse, AuthorizationResponsePayload, CallbackOpts, CallbackOptsPayload, CreateAuthorizationRequest, CreateAuthorizationRequestPayload, CreateAuthorizationResponse, CreateAuthorizationResponsePayload, OP, OPBuilder, PresentationVerificationCallback, PresentationVerificationResult, QRCodeOpts, QRCodeOptsPayload, RP, RequestError, RequestErrorPayload, RequestObjectPayload, RequestUriMethod, ResponseMode, ResponseType, SupportedVersion, URI, VPTokenLocation, createAuthorizationRequestToPayload, createAuthorizationResponseFromPayload, decodeUriAsJson, encodeJsonAsURI } from '@sphereon/did-auth-siop';
4
2
 
5
3
  interface ClaimPayloadCommonOpts {
6
4
  [x: string]: any;
@@ -8,28 +6,19 @@ interface ClaimPayloadCommonOpts {
8
6
  interface AuthorizationChallengeValidationResponse {
9
7
  presentation_during_issuance_session: string;
10
8
  }
11
- type AuthorizationRequestStateStatus = 'created' | 'sent' | 'received' | 'verified' | 'error';
12
- type AuthorizationResponseStateStatus = 'created' | 'sent' | 'received' | 'verified' | 'error';
9
+ type AuthorizationRequestStateStatus = 'authorization_request_created' | 'authorization_request_retrieved' | 'error';
10
+ type AuthorizationResponseStateStatus = 'authorization_response_received' | 'authorization_response_verified' | 'error';
13
11
  interface GenerateAuthRequestURIResponse {
14
12
  correlationId: string;
15
13
  state: string;
16
- definitionId: string;
14
+ queryId: string;
17
15
  authRequestURI: string;
18
16
  authStatusURI: string;
19
17
  }
20
- interface AuthStatusResponse {
21
- status: AuthorizationRequestStateStatus | AuthorizationResponseStateStatus;
22
- correlationId: string;
23
- error?: string;
24
- definitionId: string;
25
- lastUpdated: number;
26
- payload?: AuthorizationResponsePayload;
27
- verifiedData?: AdditionalClaims;
28
- }
29
18
 
30
19
  declare function uriWithBase(path: string, opts?: {
31
20
  baseURI?: string;
32
21
  envVarName?: string;
33
22
  }): string;
34
23
 
35
- export { type AuthStatusResponse, type AuthorizationChallengeValidationResponse, type AuthorizationRequestStateStatus, type AuthorizationResponseStateStatus, type ClaimPayloadCommonOpts, type GenerateAuthRequestURIResponse, uriWithBase };
24
+ export { type AuthorizationChallengeValidationResponse, type AuthorizationRequestStateStatus, type AuthorizationResponseStateStatus, type ClaimPayloadCommonOpts, type GenerateAuthRequestURIResponse, uriWithBase };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,4 @@
1
- import { AuthorizationResponsePayload } from '@sphereon/did-auth-siop';
2
- export { AuthorizationRequest, AuthorizationRequestPayload, AuthorizationRequestState, AuthorizationResponse, AuthorizationResponsePayload, OP, OPBuilder, PresentationVerificationCallback, PresentationVerificationResult, RP, RequestObjectPayload, SupportedVersion, URI, VPTokenLocation, decodeUriAsJson, encodeJsonAsURI } from '@sphereon/did-auth-siop';
3
- import { AdditionalClaims } from '@sphereon/ssi-types';
1
+ export { AuthStatusResponse, AuthStatusResponsePayload, AuthorizationRequest, AuthorizationRequestPayload, AuthorizationRequestState, AuthorizationResponse, AuthorizationResponsePayload, CallbackOpts, CallbackOptsPayload, CreateAuthorizationRequest, CreateAuthorizationRequestPayload, CreateAuthorizationResponse, CreateAuthorizationResponsePayload, OP, OPBuilder, PresentationVerificationCallback, PresentationVerificationResult, QRCodeOpts, QRCodeOptsPayload, RP, RequestError, RequestErrorPayload, RequestObjectPayload, RequestUriMethod, ResponseMode, ResponseType, SupportedVersion, URI, VPTokenLocation, createAuthorizationRequestToPayload, createAuthorizationResponseFromPayload, decodeUriAsJson, encodeJsonAsURI } from '@sphereon/did-auth-siop';
4
2
 
5
3
  interface ClaimPayloadCommonOpts {
6
4
  [x: string]: any;
@@ -8,28 +6,19 @@ interface ClaimPayloadCommonOpts {
8
6
  interface AuthorizationChallengeValidationResponse {
9
7
  presentation_during_issuance_session: string;
10
8
  }
11
- type AuthorizationRequestStateStatus = 'created' | 'sent' | 'received' | 'verified' | 'error';
12
- type AuthorizationResponseStateStatus = 'created' | 'sent' | 'received' | 'verified' | 'error';
9
+ type AuthorizationRequestStateStatus = 'authorization_request_created' | 'authorization_request_retrieved' | 'error';
10
+ type AuthorizationResponseStateStatus = 'authorization_response_received' | 'authorization_response_verified' | 'error';
13
11
  interface GenerateAuthRequestURIResponse {
14
12
  correlationId: string;
15
13
  state: string;
16
- definitionId: string;
14
+ queryId: string;
17
15
  authRequestURI: string;
18
16
  authStatusURI: string;
19
17
  }
20
- interface AuthStatusResponse {
21
- status: AuthorizationRequestStateStatus | AuthorizationResponseStateStatus;
22
- correlationId: string;
23
- error?: string;
24
- definitionId: string;
25
- lastUpdated: number;
26
- payload?: AuthorizationResponsePayload;
27
- verifiedData?: AdditionalClaims;
28
- }
29
18
 
30
19
  declare function uriWithBase(path: string, opts?: {
31
20
  baseURI?: string;
32
21
  envVarName?: string;
33
22
  }): string;
34
23
 
35
- export { type AuthStatusResponse, type AuthorizationChallengeValidationResponse, type AuthorizationRequestStateStatus, type AuthorizationResponseStateStatus, type ClaimPayloadCommonOpts, type GenerateAuthRequestURIResponse, uriWithBase };
24
+ export { type AuthorizationChallengeValidationResponse, type AuthorizationRequestStateStatus, type AuthorizationResponseStateStatus, type ClaimPayloadCommonOpts, type GenerateAuthRequestURIResponse, uriWithBase };
package/dist/index.js CHANGED
@@ -15,16 +15,20 @@ function uriWithBase(path, opts) {
15
15
  __name(uriWithBase, "uriWithBase");
16
16
 
17
17
  // src/index.ts
18
- import { decodeUriAsJson, encodeJsonAsURI, URI, AuthorizationRequest, AuthorizationResponse, RP, OP, OPBuilder, SupportedVersion, VPTokenLocation } from "@sphereon/did-auth-siop";
18
+ import { decodeUriAsJson, encodeJsonAsURI, URI, AuthorizationRequest, AuthorizationResponse, RP, OP, OPBuilder, SupportedVersion, createAuthorizationResponseFromPayload, createAuthorizationRequestToPayload, ResponseType, ResponseMode, VPTokenLocation } from "@sphereon/did-auth-siop";
19
19
  export {
20
20
  AuthorizationRequest,
21
21
  AuthorizationResponse,
22
22
  OP,
23
23
  OPBuilder,
24
24
  RP,
25
+ ResponseMode,
26
+ ResponseType,
25
27
  SupportedVersion,
26
28
  URI,
27
29
  VPTokenLocation,
30
+ createAuthorizationRequestToPayload,
31
+ createAuthorizationResponseFromPayload,
28
32
  decodeUriAsJson,
29
33
  encodeJsonAsURI,
30
34
  uriWithBase
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/utils.ts","../src/index.ts"],"sourcesContent":["export function uriWithBase(path: string, opts?: { baseURI?: string; envVarName?: string }) {\n let baseUri = `${!!opts?.baseURI ? opts.baseURI : opts?.envVarName && process ? process.env[opts.envVarName!] : process?.env?.BACKEND_BASE_URI}`\n if (!baseUri || baseUri === 'undefined') {\n throw Error('No base URI provided as param or environment variable')\n } else if (!baseUri.startsWith('http')) {\n throw Error(`Base URI needs to start with http(s). Received: ${baseUri}`)\n }\n baseUri = baseUri.endsWith('/') ? baseUri.substring(0, baseUri.length - 1) : baseUri\n return `${baseUri}${path.startsWith('/') ? path : '/' + path}`\n}\n","export * from './auth-model'\nexport * from './utils'\n\n// We are exporting some common class from SIOP\n/**\n * @private\n */\nexport {\n decodeUriAsJson,\n encodeJsonAsURI,\n URI,\n AuthorizationRequest,\n AuthorizationResponse,\n RP,\n OP,\n OPBuilder,\n SupportedVersion,\n VPTokenLocation,\n} from '@sphereon/did-auth-siop'\n\nexport type {\n RequestObjectPayload,\n AuthorizationRequestState,\n AuthorizationResponsePayload,\n AuthorizationRequestPayload,\n PresentationVerificationResult,\n PresentationVerificationCallback,\n} from '@sphereon/did-auth-siop'\n"],"mappings":";;;;AAAO,SAASA,YAAYC,MAAcC,MAAgD;AACxF,MAAIC,UAAU,GAAG,CAAC,CAACD,MAAME,UAAUF,KAAKE,UAAUF,MAAMG,cAAcC,UAAUA,QAAQC,IAAIL,KAAKG,UAAU,IAAKC,SAASC,KAAKC,gBAAAA;AAC9H,MAAI,CAACL,WAAWA,YAAY,aAAa;AACvC,UAAMM,MAAM,uDAAA;EACd,WAAW,CAACN,QAAQO,WAAW,MAAA,GAAS;AACtC,UAAMD,MAAM,mDAAmDN,OAAAA,EAAS;EAC1E;AACAA,YAAUA,QAAQQ,SAAS,GAAA,IAAOR,QAAQS,UAAU,GAAGT,QAAQU,SAAS,CAAA,IAAKV;AAC7E,SAAO,GAAGA,OAAAA,GAAUF,KAAKS,WAAW,GAAA,IAAOT,OAAO,MAAMA,IAAAA;AAC1D;AATgBD;;;ACOhB,SACEc,iBACAC,iBACAC,KACAC,sBACAC,uBACAC,IACAC,IACAC,WACAC,kBACAC,uBACK;","names":["uriWithBase","path","opts","baseUri","baseURI","envVarName","process","env","BACKEND_BASE_URI","Error","startsWith","endsWith","substring","length","decodeUriAsJson","encodeJsonAsURI","URI","AuthorizationRequest","AuthorizationResponse","RP","OP","OPBuilder","SupportedVersion","VPTokenLocation"]}
1
+ {"version":3,"sources":["../src/utils.ts","../src/index.ts"],"sourcesContent":["export function uriWithBase(path: string, opts?: { baseURI?: string; envVarName?: string }) {\n let baseUri = `${!!opts?.baseURI ? opts.baseURI : opts?.envVarName && process ? process.env[opts.envVarName!] : process?.env?.BACKEND_BASE_URI}`\n if (!baseUri || baseUri === 'undefined') {\n throw Error('No base URI provided as param or environment variable')\n } else if (!baseUri.startsWith('http')) {\n throw Error(`Base URI needs to start with http(s). Received: ${baseUri}`)\n }\n baseUri = baseUri.endsWith('/') ? baseUri.substring(0, baseUri.length - 1) : baseUri\n return `${baseUri}${path.startsWith('/') ? path : '/' + path}`\n}\n","export * from './auth-model'\nexport * from './utils'\n\n// We are exporting some common class from SIOP\n/**\n * @private\n */\nexport {\n decodeUriAsJson,\n encodeJsonAsURI,\n type AuthorizationResponsePayload,\n type AuthorizationRequestPayload,\n URI,\n type AuthorizationRequestState,\n type RequestObjectPayload,\n AuthorizationRequest,\n AuthorizationResponse,\n RP,\n OP,\n OPBuilder,\n SupportedVersion,\n type PresentationVerificationResult,\n type PresentationVerificationCallback,\n type CreateAuthorizationRequest,\n type CreateAuthorizationRequestPayload,\n type CreateAuthorizationResponse,\n type CreateAuthorizationResponsePayload,\n type CallbackOpts,\n type CallbackOptsPayload,\n type QRCodeOpts,\n type QRCodeOptsPayload,\n type RequestUriMethod,\n type RequestError,\n type RequestErrorPayload,\n type AuthStatusResponse,\n type AuthStatusResponsePayload,\n createAuthorizationResponseFromPayload,\n createAuthorizationRequestToPayload,\n ResponseType,\n ResponseMode,\n VPTokenLocation,\n} from '@sphereon/did-auth-siop'\n"],"mappings":";;;;AAAO,SAASA,YAAYC,MAAcC,MAAgD;AACxF,MAAIC,UAAU,GAAG,CAAC,CAACD,MAAME,UAAUF,KAAKE,UAAUF,MAAMG,cAAcC,UAAUA,QAAQC,IAAIL,KAAKG,UAAU,IAAKC,SAASC,KAAKC,gBAAAA;AAC9H,MAAI,CAACL,WAAWA,YAAY,aAAa;AACvC,UAAMM,MAAM,uDAAA;EACd,WAAW,CAACN,QAAQO,WAAW,MAAA,GAAS;AACtC,UAAMD,MAAM,mDAAmDN,OAAAA,EAAS;EAC1E;AACAA,YAAUA,QAAQQ,SAAS,GAAA,IAAOR,QAAQS,UAAU,GAAGT,QAAQU,SAAS,CAAA,IAAKV;AAC7E,SAAO,GAAGA,OAAAA,GAAUF,KAAKS,WAAW,GAAA,IAAOT,OAAO,MAAMA,IAAAA;AAC1D;AATgBD;;;ACOhB,SACEc,iBACAC,iBAGAC,KAGAC,sBACAC,uBACAC,IACAC,IACAC,WACAC,kBAgBAC,wCACAC,qCACAC,cACAC,cACAC,uBACK;","names":["uriWithBase","path","opts","baseUri","baseURI","envVarName","process","env","BACKEND_BASE_URI","Error","startsWith","endsWith","substring","length","decodeUriAsJson","encodeJsonAsURI","URI","AuthorizationRequest","AuthorizationResponse","RP","OP","OPBuilder","SupportedVersion","createAuthorizationResponseFromPayload","createAuthorizationRequestToPayload","ResponseType","ResponseMode","VPTokenLocation"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sphereon/ssi-sdk.siopv2-oid4vp-common",
3
- "version": "0.34.1-next.91+3c949810",
3
+ "version": "0.36.1-feat.SSISDK.83.3+08adc8a3",
4
4
  "description": "Common SIOPv2 and OID4VP types between modules",
5
5
  "source": "src/index.ts",
6
6
  "type": "module",
@@ -25,9 +25,9 @@
25
25
  "access": "public"
26
26
  },
27
27
  "dependencies": {
28
- "@sphereon/did-auth-siop": "0.19.1-feature.SSISDK.45.90",
29
- "@sphereon/ssi-sdk.core": "0.34.1-next.91+3c949810",
30
- "@sphereon/ssi-types": "0.34.1-next.91+3c949810",
28
+ "@sphereon/did-auth-siop": "0.20.0",
29
+ "@sphereon/ssi-sdk.core": "0.36.1-feat.SSISDK.83.3+08adc8a3",
30
+ "@sphereon/ssi-types": "0.36.1-feat.SSISDK.83.3+08adc8a3",
31
31
  "uint8arrays": "^3.1.1"
32
32
  },
33
33
  "scripts": {
@@ -43,5 +43,5 @@
43
43
  "README.md",
44
44
  "LICENSE"
45
45
  ],
46
- "gitHead": "3c9498100ca07dfc2ba7979e7347fb9b19c47d18"
46
+ "gitHead": "08adc8a36bd361bbae337829b04343fd37de5803"
47
47
  }
package/src/auth-model.ts CHANGED
@@ -10,14 +10,14 @@ export interface AuthorizationChallengeValidationResponse {
10
10
  presentation_during_issuance_session: string
11
11
  }
12
12
 
13
- export type AuthorizationRequestStateStatus = 'created' | 'sent' | 'received' | 'verified' | 'error'
13
+ export type AuthorizationRequestStateStatus = 'authorization_request_created' | 'authorization_request_retrieved' | 'error'
14
14
 
15
- export type AuthorizationResponseStateStatus = 'created' | 'sent' | 'received' | 'verified' | 'error'
15
+ export type AuthorizationResponseStateStatus = 'authorization_response_received' | 'authorization_response_verified' | 'error'
16
16
 
17
17
  export interface GenerateAuthRequestURIResponse {
18
18
  correlationId: string
19
19
  state: string
20
- definitionId: string
20
+ queryId: string
21
21
  authRequestURI: string
22
22
  authStatusURI: string
23
23
  }
@@ -26,7 +26,7 @@ export interface AuthStatusResponse {
26
26
  status: AuthorizationRequestStateStatus | AuthorizationResponseStateStatus
27
27
  correlationId: string
28
28
  error?: string
29
- definitionId: string
29
+ queryId: string
30
30
  lastUpdated: number
31
31
  payload?: AuthorizationResponsePayload // Only put in here once the status reaches Verified on the RP side
32
32
  verifiedData?: AdditionalClaims
package/src/index.ts CHANGED
@@ -8,21 +8,35 @@ export * from './utils'
8
8
  export {
9
9
  decodeUriAsJson,
10
10
  encodeJsonAsURI,
11
+ type AuthorizationResponsePayload,
12
+ type AuthorizationRequestPayload,
11
13
  URI,
14
+ type AuthorizationRequestState,
15
+ type RequestObjectPayload,
12
16
  AuthorizationRequest,
13
17
  AuthorizationResponse,
14
18
  RP,
15
19
  OP,
16
20
  OPBuilder,
17
21
  SupportedVersion,
22
+ type PresentationVerificationResult,
23
+ type PresentationVerificationCallback,
24
+ type CreateAuthorizationRequest,
25
+ type CreateAuthorizationRequestPayload,
26
+ type CreateAuthorizationResponse,
27
+ type CreateAuthorizationResponsePayload,
28
+ type CallbackOpts,
29
+ type CallbackOptsPayload,
30
+ type QRCodeOpts,
31
+ type QRCodeOptsPayload,
32
+ type RequestUriMethod,
33
+ type RequestError,
34
+ type RequestErrorPayload,
35
+ type AuthStatusResponse,
36
+ type AuthStatusResponsePayload,
37
+ createAuthorizationResponseFromPayload,
38
+ createAuthorizationRequestToPayload,
39
+ ResponseType,
40
+ ResponseMode,
18
41
  VPTokenLocation,
19
42
  } from '@sphereon/did-auth-siop'
20
-
21
- export type {
22
- RequestObjectPayload,
23
- AuthorizationRequestState,
24
- AuthorizationResponsePayload,
25
- AuthorizationRequestPayload,
26
- PresentationVerificationResult,
27
- PresentationVerificationCallback,
28
- } from '@sphereon/did-auth-siop'