@sphereon/jarm 0.16.1-next.168 → 0.16.1-next.181

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.
@@ -33,7 +33,7 @@ export declare const jarmAuthResponseDirectPostJwtValidate: (input: JarmDirectPo
33
33
  [key: string]: unknown;
34
34
  };
35
35
  authResponseParams: {
36
- vp_token: string;
36
+ vp_token: string | string[];
37
37
  presentation_submission: unknown;
38
38
  state?: string | undefined;
39
39
  iss?: string | undefined;
@@ -1,6 +1,6 @@
1
1
  import * as v from 'valibot';
2
2
  export declare const vJarmDirectPostJwtParams: v.LooseObjectSchema<{
3
- readonly vp_token: v.StringSchema<undefined>;
3
+ readonly vp_token: v.UnionSchema<[v.StringSchema<undefined>, v.ArraySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>]>, undefined>], undefined>;
4
4
  readonly presentation_submission: v.UnknownSchema;
5
5
  readonly nonce: v.OptionalSchema<v.StringSchema<undefined>, never>;
6
6
  readonly iss: v.OptionalSchema<v.StringSchema<undefined>, never>;
@@ -26,7 +26,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.jarmAuthResponseDirectPostValidateParams = exports.vJarmDirectPostJwtParams = void 0;
27
27
  const v = __importStar(require("valibot"));
28
28
  const v_jarm_auth_response_params_js_1 = require("./v-jarm-auth-response-params.js");
29
- exports.vJarmDirectPostJwtParams = v.looseObject(Object.assign(Object.assign(Object.assign({}, v.omit(v_jarm_auth_response_params_js_1.vJarmAuthResponseParams, ['iss', 'aud', 'exp']).entries), v.partial(v.pick(v_jarm_auth_response_params_js_1.vJarmAuthResponseParams, ['iss', 'aud', 'exp'])).entries), { vp_token: v.string(), presentation_submission: v.unknown(), nonce: v.optional(v.string()) }));
29
+ exports.vJarmDirectPostJwtParams = v.looseObject(Object.assign(Object.assign(Object.assign({}, v.omit(v_jarm_auth_response_params_js_1.vJarmAuthResponseParams, ['iss', 'aud', 'exp']).entries), v.partial(v.pick(v_jarm_auth_response_params_js_1.vJarmAuthResponseParams, ['iss', 'aud', 'exp'])).entries), { vp_token: v.union([v.string(), v.array(v.pipe(v.string(), v.nonEmpty()))]), presentation_submission: v.unknown(), nonce: v.optional(v.string()) }));
30
30
  const jarmAuthResponseDirectPostValidateParams = (input) => {
31
31
  const { authRequestParams, authResponseParams } = input;
32
32
  // 2. The client obtains the state parameter from the JWT and checks its binding to the user agent. If the check fails, the client MUST abort processing and refuse the response.
@@ -1 +1 @@
1
- {"version":3,"file":"v-jarm-direct-post-jwt-auth-response-params.js","sourceRoot":"","sources":["../../lib/jarm-auth-response/v-jarm-direct-post-jwt-auth-response-params.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA6B;AAE7B,qFAA2E;AAE9D,QAAA,wBAAwB,GAAG,CAAC,CAAC,WAAW,+CAChD,CAAC,CAAC,IAAI,CAAC,wDAAuB,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,OAAO,GAC9D,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,wDAAuB,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,KAE5E,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,EACpB,uBAAuB,EAAE,CAAC,CAAC,OAAO,EAAE,EACpC,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAC7B,CAAC;AAII,MAAM,wCAAwC,GAAG,CAAC,KAGxD,EAAE,EAAE;IACH,MAAM,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC;IAExD,iLAAiL;IACjL,IAAI,iBAAiB,CAAC,KAAK,KAAK,kBAAkB,CAAC,KAAK,EAAE,CAAC;QACzD,MAAM,IAAI,KAAK,CAAC,yCAAyC,iBAAiB,CAAC,KAAK,+BAA+B,CAAC,CAAC;IACnH,CAAC;AACH,CAAC,CAAC;AAVW,QAAA,wCAAwC,4CAUnD"}
1
+ {"version":3,"file":"v-jarm-direct-post-jwt-auth-response-params.js","sourceRoot":"","sources":["../../lib/jarm-auth-response/v-jarm-direct-post-jwt-auth-response-params.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA6B;AAE7B,qFAA2E;AAE9D,QAAA,wBAAwB,GAAG,CAAC,CAAC,WAAW,+CAChD,CAAC,CAAC,IAAI,CAAC,wDAAuB,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,OAAO,GAC9D,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,wDAAuB,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,KAE5E,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC,EAC1E,uBAAuB,EAAE,CAAC,CAAC,OAAO,EAAE,EACpC,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAC7B,CAAC;AAII,MAAM,wCAAwC,GAAG,CAAC,KAGxD,EAAE,EAAE;IACH,MAAM,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC;IAExD,iLAAiL;IACjL,IAAI,iBAAiB,CAAC,KAAK,KAAK,kBAAkB,CAAC,KAAK,EAAE,CAAC;QACzD,MAAM,IAAI,KAAK,CAAC,yCAAyC,iBAAiB,CAAC,KAAK,+BAA+B,CAAC,CAAC;IACnH,CAAC;AACH,CAAC,CAAC;AAVW,QAAA,wCAAwC,4CAUnD"}
@@ -6,7 +6,7 @@ export const vJarmDirectPostJwtParams = v.looseObject({
6
6
  ...v.omit(vJarmAuthResponseParams, ['iss', 'aud', 'exp']).entries,
7
7
  ...v.partial(v.pick(vJarmAuthResponseParams, ['iss', 'aud', 'exp'])).entries,
8
8
 
9
- vp_token: v.string(),
9
+ vp_token: v.union([v.string(), v.array(v.pipe(v.string(), v.nonEmpty()))]),
10
10
  presentation_submission: v.unknown(),
11
11
  nonce: v.optional(v.string()),
12
12
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sphereon/jarm",
3
- "version": "0.16.1-next.168+5e4237d",
3
+ "version": "0.16.1-next.181+3893ad6",
4
4
  "description": "Sphereon JARM",
5
5
  "source": "lib/index.ts",
6
6
  "main": "dist/index.js",
@@ -10,7 +10,7 @@
10
10
  "build:clean": "tsc --build --clean && tsc --build"
11
11
  },
12
12
  "dependencies": {
13
- "@sphereon/oid4vc-common": "0.16.1-next.168+5e4237d",
13
+ "@sphereon/oid4vc-common": "0.16.1-next.181+3893ad6",
14
14
  "valibot": "^0.42.1"
15
15
  },
16
16
  "devDependencies": {
@@ -43,5 +43,5 @@
43
43
  "publishConfig": {
44
44
  "access": "public"
45
45
  },
46
- "gitHead": "5e4237db6a7dfc68b23bf60a8cb0ad4f9cbb9aec"
46
+ "gitHead": "3893ad60d7f79599a835e8d91da2ee20a336e4ee"
47
47
  }