@sphereon/did-auth-siop-web-demo-shared 0.1.3-next.23 → 0.1.3-next.25

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,18 @@
1
- import { ClaimPayloadCommonOpts } from "@sphereon/did-auth-siop";
1
+ import { AuthorizationRequestStateStatus, AuthorizationResponseStateStatus, ClaimPayloadCommonOpts } from "@sphereon/did-auth-siop";
2
+ export interface GenerateAuthRequestURIResponse {
3
+ correlationId: string;
4
+ definitionId: string;
5
+ authRequestURI: string;
6
+ authStatusURI: string;
7
+ }
8
+ export interface AuthStatusResponse {
9
+ status: AuthorizationRequestStateStatus | AuthorizationResponseStateStatus;
10
+ correlationId: string;
11
+ error?: string;
12
+ definitionId: string;
13
+ lastUpdated: number;
14
+ }
15
+ export { AuthorizationResponseStateStatus, AuthorizationRequestStateStatus };
2
16
  export declare class StateMapping {
3
17
  redirectUrl?: string;
4
18
  stateId?: string;
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AuthResponse = exports.StateMapping = void 0;
3
+ exports.AuthResponse = exports.StateMapping = exports.AuthorizationRequestStateStatus = exports.AuthorizationResponseStateStatus = void 0;
4
+ // noinspection JSUnusedGlobalSymbols
5
+ const did_auth_siop_1 = require("@sphereon/did-auth-siop");
6
+ Object.defineProperty(exports, "AuthorizationRequestStateStatus", { enumerable: true, get: function () { return did_auth_siop_1.AuthorizationRequestStateStatus; } });
7
+ Object.defineProperty(exports, "AuthorizationResponseStateStatus", { enumerable: true, get: function () { return did_auth_siop_1.AuthorizationResponseStateStatus; } });
4
8
  class StateMapping {
5
9
  constructor() {
6
10
  this.authRequestCreated = false;
package/dist/index.js CHANGED
@@ -1,11 +1,7 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
9
5
  }) : (function(o, m, k, k2) {
10
6
  if (k2 === undefined) k2 = k;
11
7
  o[k2] = m[k];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sphereon/did-auth-siop-web-demo-shared",
3
- "version": "0.1.3-next.23",
3
+ "version": "0.1.3-next.25",
4
4
  "description": "Shared types between modules",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",