@kwirthmagnify/kwirth-common 0.5.16 → 0.5.18

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.
@@ -0,0 +1,11 @@
1
+ declare enum EAuthMethodKind {
2
+ PASSWORD = "password",// método kwirth → formulario usuario/contraseña
3
+ REDIRECT = "redirect"
4
+ }
5
+ interface IAuthMethod {
6
+ id: string;
7
+ label: string;
8
+ kind: EAuthMethodKind;
9
+ startUrl?: string;
10
+ }
11
+ export { EAuthMethodKind, IAuthMethod };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EAuthMethodKind = void 0;
4
+ /*
5
+ Métodos de autenticación que el back publica (GET /core/auth/method) y el front
6
+ usa para pintar la pantalla de login. 'kwirth' es el login user/password incorporado;
7
+ los IdP (Google, ...) son métodos REDIRECT que navegan a su startUrl.
8
+ */
9
+ var EAuthMethodKind;
10
+ (function (EAuthMethodKind) {
11
+ EAuthMethodKind["PASSWORD"] = "password";
12
+ EAuthMethodKind["REDIRECT"] = "redirect"; // IdP (OIDC/OAuth2) → botón que navega a startUrl
13
+ })(EAuthMethodKind || (exports.EAuthMethodKind = EAuthMethodKind = {}));
package/dist/Global.d.ts CHANGED
@@ -5,6 +5,7 @@ interface IUser {
5
5
  password: string;
6
6
  accessKey: AccessKey;
7
7
  resources: string;
8
+ idp?: string;
8
9
  }
9
10
  interface ILoginResponse {
10
11
  id: string;
package/dist/index.d.ts CHANGED
@@ -7,6 +7,7 @@ export * from './SignalMessage';
7
7
  export * from './ApiKey';
8
8
  export * from './AccessKey';
9
9
  export * from './Global';
10
+ export * from './AuthMethod';
10
11
  export * from './Version';
11
12
  export * from './FrontChannel';
12
13
  export * from './Daemon';
package/dist/index.js CHANGED
@@ -38,6 +38,7 @@ __exportStar(require("./SignalMessage"), exports);
38
38
  __exportStar(require("./ApiKey"), exports);
39
39
  __exportStar(require("./AccessKey"), exports);
40
40
  __exportStar(require("./Global"), exports);
41
+ __exportStar(require("./AuthMethod"), exports);
41
42
  __exportStar(require("./Version"), exports);
42
43
  __exportStar(require("./FrontChannel"), exports);
43
44
  __exportStar(require("./Daemon"), exports);
@@ -11,7 +11,8 @@ const SCIENTISTS = [
11
11
  'turing', 'lovelace', 'hopper', 'knuth', 'dijkstra', 'shannon', 'neumann', 'babbage', 'boole', 'hamilton',
12
12
  'liskov', 'engelbart', 'wozniak', 'ritchie', 'kernighan', 'torvalds', 'stallman', 'euler', 'gauss', 'tesla',
13
13
  'curie', 'feynman', 'hawking', 'einstein', 'darwin', 'fermat', 'pascal', 'leibniz', 'church', 'godel',
14
- 'chomsky', 'diffie', 'hellman', 'rivest', 'shamir', 'vigenere', 'stroustrup', 'gosling', 'kay', 'cerf'
14
+ 'chomsky', 'diffie', 'hellman', 'rivest', 'shamir', 'vigenere', 'stroustrup', 'gosling', 'kay', 'cerf',
15
+ 'wirth', 'galileo', 'davinci'
15
16
  ];
16
17
  const TECH_NOUNS = [
17
18
  'cipher', 'trace', 'phantom', 'scanner', 'signal', 'pattern', 'filter', 'watcher',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kwirthmagnify/kwirth-common",
3
- "version": "0.5.16",
3
+ "version": "0.5.18",
4
4
  "description": "Common interfaces for integrating applications with Kwirth",
5
5
  "scripts": {
6
6
  "build": "del .\\dist\\* /s /q && tsc"