@sphereon/ssi-sdk.siopv2-oid4vp-common 0.34.1-feature.SSISDK.46.40 → 0.34.1-feature.SSISDK.50.98

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
@@ -29,26 +29,12 @@ __export(index_exports, {
29
29
  SupportedVersion: () => import_did_auth_siop.SupportedVersion,
30
30
  URI: () => import_did_auth_siop.URI,
31
31
  VPTokenLocation: () => import_did_auth_siop.VPTokenLocation,
32
- authorizationRequestStatuses: () => authorizationRequestStatuses,
33
- authorizationResponseStatuses: () => authorizationResponseStatuses,
34
32
  decodeUriAsJson: () => import_did_auth_siop.decodeUriAsJson,
35
33
  encodeJsonAsURI: () => import_did_auth_siop.encodeJsonAsURI,
36
34
  uriWithBase: () => uriWithBase
37
35
  });
38
36
  module.exports = __toCommonJS(index_exports);
39
37
 
40
- // src/auth-model.ts
41
- var authorizationRequestStatuses = [
42
- "authorization_request_created",
43
- "authorization_request_retrieved",
44
- "error"
45
- ];
46
- var authorizationResponseStatuses = [
47
- "authorization_response_received",
48
- "authorization_response_verified",
49
- "error"
50
- ];
51
-
52
38
  // src/utils.ts
53
39
  function uriWithBase(path, opts) {
54
40
  let baseUri = `${!!opts?.baseURI ? opts.baseURI : opts?.envVarName && process ? process.env[opts.envVarName] : process?.env?.BACKEND_BASE_URI}`;
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts","../src/auth-model.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 PresentationDefinitionWithLocation,\n type PresentationVerificationResult,\n type PresentationVerificationCallback,\n VPTokenLocation,\n} from '@sphereon/did-auth-siop'\n","// noinspection JSUnusedGlobalSymbols\nimport { AuthorizationResponsePayload } from '@sphereon/did-auth-siop'\nimport { AdditionalClaims } from '@sphereon/ssi-types'\n\nexport interface ClaimPayloadCommonOpts {\n [x: string]: any\n}\n\nexport interface AuthorizationChallengeValidationResponse {\n presentation_during_issuance_session: string\n}\n\nexport const authorizationRequestStatuses = [\n \"authorization_request_created\",\n \"authorization_request_retrieved\",\n \"error\",\n] as const;\nexport type AuthorizationRequestStateStatus = (typeof authorizationRequestStatuses)[number];\n\nexport const authorizationResponseStatuses = [\n \"authorization_response_received\",\n \"authorization_response_verified\",\n \"error\",\n] as const;\nexport type AuthorizationResponseStateStatus = (typeof authorizationResponseStatuses)[number];\n\nexport interface GenerateAuthRequestURIResponse {\n correlationId: string\n state: string\n definitionId: string\n authRequestURI: string\n authStatusURI: string\n}\n\nexport interface AuthStatusResponse {\n status: AuthorizationRequestStateStatus | AuthorizationResponseStateStatus\n correlationId: string\n error?: string\n definitionId: string\n lastUpdated: number\n payload?: AuthorizationResponsePayload // Only put in here once the status reaches Verified on the RP side\n verifiedData?: AdditionalClaims\n}\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;;;;;;;;;;;;;;;;;;;ACYO,IAAMA,+BAA+B;EAC1C;EACA;EACA;;AAIK,IAAMC,gCAAgC;EAC3C;EACA;EACA;;;;ACtBK,SAASC,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;;;AFOhB,2BAkBO;","names":["authorizationRequestStatuses","authorizationResponseStatuses","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 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"]}
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { AuthorizationResponsePayload } from '@sphereon/did-auth-siop';
2
- export { AuthorizationRequest, AuthorizationRequestPayload, AuthorizationRequestState, AuthorizationResponse, AuthorizationResponsePayload, OP, OPBuilder, PresentationDefinitionWithLocation, PresentationVerificationCallback, PresentationVerificationResult, RP, RequestObjectPayload, SupportedVersion, URI, VPTokenLocation, decodeUriAsJson, encodeJsonAsURI } 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
3
  import { AdditionalClaims } from '@sphereon/ssi-types';
4
4
 
5
5
  interface ClaimPayloadCommonOpts {
@@ -8,10 +8,8 @@ interface ClaimPayloadCommonOpts {
8
8
  interface AuthorizationChallengeValidationResponse {
9
9
  presentation_during_issuance_session: string;
10
10
  }
11
- declare const authorizationRequestStatuses: readonly ["authorization_request_created", "authorization_request_retrieved", "error"];
12
- type AuthorizationRequestStateStatus = (typeof authorizationRequestStatuses)[number];
13
- declare const authorizationResponseStatuses: readonly ["authorization_response_received", "authorization_response_verified", "error"];
14
- type AuthorizationResponseStateStatus = (typeof authorizationResponseStatuses)[number];
11
+ type AuthorizationRequestStateStatus = 'created' | 'sent' | 'received' | 'verified' | 'error';
12
+ type AuthorizationResponseStateStatus = 'created' | 'sent' | 'received' | 'verified' | 'error';
15
13
  interface GenerateAuthRequestURIResponse {
16
14
  correlationId: string;
17
15
  state: string;
@@ -34,4 +32,4 @@ declare function uriWithBase(path: string, opts?: {
34
32
  envVarName?: string;
35
33
  }): string;
36
34
 
37
- export { type AuthStatusResponse, type AuthorizationChallengeValidationResponse, type AuthorizationRequestStateStatus, type AuthorizationResponseStateStatus, type ClaimPayloadCommonOpts, type GenerateAuthRequestURIResponse, authorizationRequestStatuses, authorizationResponseStatuses, uriWithBase };
35
+ export { type AuthStatusResponse, type AuthorizationChallengeValidationResponse, type AuthorizationRequestStateStatus, type AuthorizationResponseStateStatus, type ClaimPayloadCommonOpts, type GenerateAuthRequestURIResponse, uriWithBase };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { AuthorizationResponsePayload } from '@sphereon/did-auth-siop';
2
- export { AuthorizationRequest, AuthorizationRequestPayload, AuthorizationRequestState, AuthorizationResponse, AuthorizationResponsePayload, OP, OPBuilder, PresentationDefinitionWithLocation, PresentationVerificationCallback, PresentationVerificationResult, RP, RequestObjectPayload, SupportedVersion, URI, VPTokenLocation, decodeUriAsJson, encodeJsonAsURI } 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
3
  import { AdditionalClaims } from '@sphereon/ssi-types';
4
4
 
5
5
  interface ClaimPayloadCommonOpts {
@@ -8,10 +8,8 @@ interface ClaimPayloadCommonOpts {
8
8
  interface AuthorizationChallengeValidationResponse {
9
9
  presentation_during_issuance_session: string;
10
10
  }
11
- declare const authorizationRequestStatuses: readonly ["authorization_request_created", "authorization_request_retrieved", "error"];
12
- type AuthorizationRequestStateStatus = (typeof authorizationRequestStatuses)[number];
13
- declare const authorizationResponseStatuses: readonly ["authorization_response_received", "authorization_response_verified", "error"];
14
- type AuthorizationResponseStateStatus = (typeof authorizationResponseStatuses)[number];
11
+ type AuthorizationRequestStateStatus = 'created' | 'sent' | 'received' | 'verified' | 'error';
12
+ type AuthorizationResponseStateStatus = 'created' | 'sent' | 'received' | 'verified' | 'error';
15
13
  interface GenerateAuthRequestURIResponse {
16
14
  correlationId: string;
17
15
  state: string;
@@ -34,4 +32,4 @@ declare function uriWithBase(path: string, opts?: {
34
32
  envVarName?: string;
35
33
  }): string;
36
34
 
37
- export { type AuthStatusResponse, type AuthorizationChallengeValidationResponse, type AuthorizationRequestStateStatus, type AuthorizationResponseStateStatus, type ClaimPayloadCommonOpts, type GenerateAuthRequestURIResponse, authorizationRequestStatuses, authorizationResponseStatuses, uriWithBase };
35
+ export { type AuthStatusResponse, type AuthorizationChallengeValidationResponse, type AuthorizationRequestStateStatus, type AuthorizationResponseStateStatus, type ClaimPayloadCommonOpts, type GenerateAuthRequestURIResponse, uriWithBase };
package/dist/index.js CHANGED
@@ -1,18 +1,6 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
3
 
4
- // src/auth-model.ts
5
- var authorizationRequestStatuses = [
6
- "authorization_request_created",
7
- "authorization_request_retrieved",
8
- "error"
9
- ];
10
- var authorizationResponseStatuses = [
11
- "authorization_response_received",
12
- "authorization_response_verified",
13
- "error"
14
- ];
15
-
16
4
  // src/utils.ts
17
5
  function uriWithBase(path, opts) {
18
6
  let baseUri = `${!!opts?.baseURI ? opts.baseURI : opts?.envVarName && process ? process.env[opts.envVarName] : process?.env?.BACKEND_BASE_URI}`;
@@ -37,8 +25,6 @@ export {
37
25
  SupportedVersion,
38
26
  URI,
39
27
  VPTokenLocation,
40
- authorizationRequestStatuses,
41
- authorizationResponseStatuses,
42
28
  decodeUriAsJson,
43
29
  encodeJsonAsURI,
44
30
  uriWithBase
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/auth-model.ts","../src/utils.ts","../src/index.ts"],"sourcesContent":["// noinspection JSUnusedGlobalSymbols\nimport { AuthorizationResponsePayload } from '@sphereon/did-auth-siop'\nimport { AdditionalClaims } from '@sphereon/ssi-types'\n\nexport interface ClaimPayloadCommonOpts {\n [x: string]: any\n}\n\nexport interface AuthorizationChallengeValidationResponse {\n presentation_during_issuance_session: string\n}\n\nexport const authorizationRequestStatuses = [\n \"authorization_request_created\",\n \"authorization_request_retrieved\",\n \"error\",\n] as const;\nexport type AuthorizationRequestStateStatus = (typeof authorizationRequestStatuses)[number];\n\nexport const authorizationResponseStatuses = [\n \"authorization_response_received\",\n \"authorization_response_verified\",\n \"error\",\n] as const;\nexport type AuthorizationResponseStateStatus = (typeof authorizationResponseStatuses)[number];\n\nexport interface GenerateAuthRequestURIResponse {\n correlationId: string\n state: string\n definitionId: string\n authRequestURI: string\n authStatusURI: string\n}\n\nexport interface AuthStatusResponse {\n status: AuthorizationRequestStateStatus | AuthorizationResponseStateStatus\n correlationId: string\n error?: string\n definitionId: string\n lastUpdated: number\n payload?: AuthorizationResponsePayload // Only put in here once the status reaches Verified on the RP side\n verifiedData?: AdditionalClaims\n}\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","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 PresentationDefinitionWithLocation,\n type PresentationVerificationResult,\n type PresentationVerificationCallback,\n VPTokenLocation,\n} from '@sphereon/did-auth-siop'\n"],"mappings":";;;;AAYO,IAAMA,+BAA+B;EAC1C;EACA;EACA;;AAIK,IAAMC,gCAAgC;EAC3C;EACA;EACA;;;;ACtBK,SAASC,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,kBAIAC,uBACK;","names":["authorizationRequestStatuses","authorizationResponseStatuses","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 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"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sphereon/ssi-sdk.siopv2-oid4vp-common",
3
- "version": "0.34.1-feature.SSISDK.46.40+f6339611",
3
+ "version": "0.34.1-feature.SSISDK.50.98+48bdc676",
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-next.2",
29
- "@sphereon/ssi-sdk.core": "0.34.1-feature.SSISDK.46.40+f6339611",
30
- "@sphereon/ssi-types": "0.34.1-feature.SSISDK.46.40+f6339611",
28
+ "@sphereon/did-auth-siop": "0.19.1-feature.SSISDK.45.92",
29
+ "@sphereon/ssi-sdk.core": "0.34.1-feature.SSISDK.50.98+48bdc676",
30
+ "@sphereon/ssi-types": "0.34.1-feature.SSISDK.50.98+48bdc676",
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": "f633961166543652ec09e4e194ed2bacbcb92602"
46
+ "gitHead": "48bdc676bed10bd17c66ed7dfdbd401c54925cbb"
47
47
  }
package/src/auth-model.ts CHANGED
@@ -10,19 +10,9 @@ export interface AuthorizationChallengeValidationResponse {
10
10
  presentation_during_issuance_session: string
11
11
  }
12
12
 
13
- export const authorizationRequestStatuses = [
14
- "authorization_request_created",
15
- "authorization_request_retrieved",
16
- "error",
17
- ] as const;
18
- export type AuthorizationRequestStateStatus = (typeof authorizationRequestStatuses)[number];
13
+ export type AuthorizationRequestStateStatus = 'created' | 'sent' | 'received' | 'verified' | 'error'
19
14
 
20
- export const authorizationResponseStatuses = [
21
- "authorization_response_received",
22
- "authorization_response_verified",
23
- "error",
24
- ] as const;
25
- export type AuthorizationResponseStateStatus = (typeof authorizationResponseStatuses)[number];
15
+ export type AuthorizationResponseStateStatus = 'created' | 'sent' | 'received' | 'verified' | 'error'
26
16
 
27
17
  export interface GenerateAuthRequestURIResponse {
28
18
  correlationId: string
package/src/index.ts CHANGED
@@ -8,19 +8,21 @@ export * from './utils'
8
8
  export {
9
9
  decodeUriAsJson,
10
10
  encodeJsonAsURI,
11
- type AuthorizationResponsePayload,
12
- type AuthorizationRequestPayload,
13
11
  URI,
14
- type AuthorizationRequestState,
15
- type RequestObjectPayload,
16
12
  AuthorizationRequest,
17
13
  AuthorizationResponse,
18
14
  RP,
19
15
  OP,
20
16
  OPBuilder,
21
17
  SupportedVersion,
22
- type PresentationDefinitionWithLocation,
23
- type PresentationVerificationResult,
24
- type PresentationVerificationCallback,
25
18
  VPTokenLocation,
26
19
  } 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'