@sphereon/ssi-sdk.siopv2-oid4vp-common 0.34.1-feature.merge.crypto.extensions.modules.39 → 0.34.1-fix.78
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 +0 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -8
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- package/src/index.ts +8 -6
package/dist/index.cjs
CHANGED
|
@@ -22,17 +22,10 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
22
22
|
var index_exports = {};
|
|
23
23
|
__export(index_exports, {
|
|
24
24
|
AuthorizationRequest: () => import_did_auth_siop.AuthorizationRequest,
|
|
25
|
-
AuthorizationRequestPayload: () => import_did_auth_siop.AuthorizationRequestPayload,
|
|
26
|
-
AuthorizationRequestState: () => import_did_auth_siop.AuthorizationRequestState,
|
|
27
25
|
AuthorizationResponse: () => import_did_auth_siop.AuthorizationResponse,
|
|
28
|
-
AuthorizationResponsePayload: () => import_did_auth_siop.AuthorizationResponsePayload,
|
|
29
26
|
OP: () => import_did_auth_siop.OP,
|
|
30
27
|
OPBuilder: () => import_did_auth_siop.OPBuilder,
|
|
31
|
-
PresentationDefinitionWithLocation: () => import_did_auth_siop.PresentationDefinitionWithLocation,
|
|
32
|
-
PresentationVerificationCallback: () => import_did_auth_siop.PresentationVerificationCallback,
|
|
33
|
-
PresentationVerificationResult: () => import_did_auth_siop.PresentationVerificationResult,
|
|
34
28
|
RP: () => import_did_auth_siop.RP,
|
|
35
|
-
RequestObjectPayload: () => import_did_auth_siop.RequestObjectPayload,
|
|
36
29
|
SupportedVersion: () => import_did_auth_siop.SupportedVersion,
|
|
37
30
|
URI: () => import_did_auth_siop.URI,
|
|
38
31
|
VPTokenLocation: () => import_did_auth_siop.VPTokenLocation,
|
package/dist/index.cjs.map
CHANGED
|
@@ -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
|
|
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,
|
|
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 {
|
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,
|
|
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 {
|
package/dist/index.js
CHANGED
|
@@ -15,20 +15,13 @@ function uriWithBase(path, opts) {
|
|
|
15
15
|
__name(uriWithBase, "uriWithBase");
|
|
16
16
|
|
|
17
17
|
// src/index.ts
|
|
18
|
-
import { decodeUriAsJson, encodeJsonAsURI,
|
|
18
|
+
import { decodeUriAsJson, encodeJsonAsURI, URI, AuthorizationRequest, AuthorizationResponse, RP, OP, OPBuilder, SupportedVersion, VPTokenLocation } from "@sphereon/did-auth-siop";
|
|
19
19
|
export {
|
|
20
20
|
AuthorizationRequest,
|
|
21
|
-
AuthorizationRequestPayload,
|
|
22
|
-
AuthorizationRequestState,
|
|
23
21
|
AuthorizationResponse,
|
|
24
|
-
AuthorizationResponsePayload,
|
|
25
22
|
OP,
|
|
26
23
|
OPBuilder,
|
|
27
|
-
PresentationDefinitionWithLocation,
|
|
28
|
-
PresentationVerificationCallback,
|
|
29
|
-
PresentationVerificationResult,
|
|
30
24
|
RP,
|
|
31
|
-
RequestObjectPayload,
|
|
32
25
|
SupportedVersion,
|
|
33
26
|
URI,
|
|
34
27
|
VPTokenLocation,
|
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
|
|
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-
|
|
3
|
+
"version": "0.34.1-fix.78+5114f005",
|
|
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-
|
|
29
|
-
"@sphereon/ssi-sdk.core": "0.34.1-
|
|
30
|
-
"@sphereon/ssi-types": "0.34.1-
|
|
28
|
+
"@sphereon/did-auth-siop": "0.19.1-feature.DIIPv4.86",
|
|
29
|
+
"@sphereon/ssi-sdk.core": "0.34.1-fix.78+5114f005",
|
|
30
|
+
"@sphereon/ssi-types": "0.34.1-fix.78+5114f005",
|
|
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": "
|
|
46
|
+
"gitHead": "5114f005ed3bbb851b2c7bb226cbb195fc70bf92"
|
|
47
47
|
}
|
package/src/index.ts
CHANGED
|
@@ -8,19 +8,21 @@ export * from './utils'
|
|
|
8
8
|
export {
|
|
9
9
|
decodeUriAsJson,
|
|
10
10
|
encodeJsonAsURI,
|
|
11
|
-
AuthorizationResponsePayload,
|
|
12
|
-
AuthorizationRequestPayload,
|
|
13
11
|
URI,
|
|
14
|
-
AuthorizationRequestState,
|
|
15
|
-
RequestObjectPayload,
|
|
16
12
|
AuthorizationRequest,
|
|
17
13
|
AuthorizationResponse,
|
|
18
14
|
RP,
|
|
19
15
|
OP,
|
|
20
16
|
OPBuilder,
|
|
21
17
|
SupportedVersion,
|
|
22
|
-
|
|
18
|
+
VPTokenLocation,
|
|
19
|
+
} from '@sphereon/did-auth-siop'
|
|
20
|
+
|
|
21
|
+
export type {
|
|
22
|
+
RequestObjectPayload,
|
|
23
|
+
AuthorizationRequestState,
|
|
24
|
+
AuthorizationResponsePayload,
|
|
25
|
+
AuthorizationRequestPayload,
|
|
23
26
|
PresentationVerificationResult,
|
|
24
27
|
PresentationVerificationCallback,
|
|
25
|
-
VPTokenLocation,
|
|
26
28
|
} from '@sphereon/did-auth-siop'
|