@toa.io/extensions.exposition 1.0.0-alpha.169 → 1.0.0-alpha.170
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/components/identity.bans/operations/tsconfig.tsbuildinfo +1 -1
- package/components/identity.basic/operations/tsconfig.tsbuildinfo +1 -1
- package/components/identity.federation/operations/tsconfig.tsbuildinfo +1 -1
- package/components/identity.keys/operations/tsconfig.tsbuildinfo +1 -1
- package/components/identity.otp/operations/tsconfig.tsbuildinfo +1 -1
- package/components/identity.passkeys/operations/tsconfig.tsbuildinfo +1 -1
- package/components/identity.roles/operations/tsconfig.tsbuildinfo +1 -1
- package/components/identity.tokens/manifest.toa.yaml +1 -2
- package/components/identity.tokens/operations/decrypt.d.ts +1 -0
- package/components/identity.tokens/operations/decrypt.js +3 -0
- package/components/identity.tokens/operations/decrypt.js.map +1 -1
- package/components/identity.tokens/operations/lib/types.d.ts +2 -1
- package/components/identity.tokens/operations/tsconfig.tsbuildinfo +1 -1
- package/components/identity.tokens/source/decrypt.test.ts +1 -1
- package/components/identity.tokens/source/decrypt.ts +4 -0
- package/components/identity.tokens/source/encrypt.test.ts +5 -1
- package/components/identity.tokens/source/lib/types.ts +2 -1
- package/package.json +3 -3
- package/source/directives/auth/Incept.ts +1 -1
- package/transpiled/directives/auth/Incept.js +1 -1
- package/transpiled/directives/auth/Incept.js.map +1 -1
- package/transpiled/tsconfig.tsbuildinfo +1 -1
- package/components/identity.basic/operations/assert.d.ts +0 -5
- package/components/identity.basic/operations/assert.js +0 -7
- package/components/identity.basic/operations/assert.js.map +0 -1
- package/components/identity.federation/operations/lib/Context.d.ts +0 -7
- package/components/identity.federation/operations/lib/Context.js +0 -3
- package/components/identity.federation/operations/lib/Context.js.map +0 -1
- package/components/identity.tokens/operations/components/identity.tokens/source/types.d.ts +0 -49
- package/components/identity.tokens/operations/components/identity.tokens/source/types.js +0 -3
- package/components/identity.tokens/operations/components/identity.tokens/source/types.js.map +0 -1
- package/components/identity.tokens/operations/lib/inde.d.ts +0 -2
- package/components/identity.tokens/operations/lib/inde.js +0 -19
- package/components/identity.tokens/operations/lib/inde.js.map +0 -1
- package/components/identity.tokens/operations/types.d.ts +0 -52
- package/components/identity.tokens/operations/types.js +0 -3
- package/components/identity.tokens/operations/types.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Context.js","sourceRoot":"","sources":["../../source/lib/Context.ts"],"names":[],"mappings":""}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { type Call, type Maybe, type Observation } from '@toa.io/types';
|
|
2
|
-
import { Method } from '../../../source/RTD';
|
|
3
|
-
export interface Context {
|
|
4
|
-
local: {
|
|
5
|
-
observe: Observation<Entity>;
|
|
6
|
-
decrypt: Call<Maybe<DecryptOutput>, string>;
|
|
7
|
-
};
|
|
8
|
-
configuration: Configuration;
|
|
9
|
-
}
|
|
10
|
-
export interface Configuration {
|
|
11
|
-
readonly key0: string;
|
|
12
|
-
readonly key1?: string;
|
|
13
|
-
readonly lifetime: number;
|
|
14
|
-
readonly refresh: number;
|
|
15
|
-
}
|
|
16
|
-
export interface Entity {
|
|
17
|
-
revokedAt?: number;
|
|
18
|
-
}
|
|
19
|
-
export interface Identity extends Record<string, any> {
|
|
20
|
-
id: string;
|
|
21
|
-
}
|
|
22
|
-
export interface AuthenticateInput {
|
|
23
|
-
authority: string;
|
|
24
|
-
credentials: string;
|
|
25
|
-
}
|
|
26
|
-
export interface AuthenticateOutput {
|
|
27
|
-
identity: Identity;
|
|
28
|
-
refresh: boolean;
|
|
29
|
-
}
|
|
30
|
-
export interface EncryptInput {
|
|
31
|
-
authority: string;
|
|
32
|
-
identity: Identity;
|
|
33
|
-
lifetime?: number;
|
|
34
|
-
scopes?: string[];
|
|
35
|
-
permissions: Record<string, Method>;
|
|
36
|
-
}
|
|
37
|
-
export interface DecryptOutput {
|
|
38
|
-
authority: string;
|
|
39
|
-
identity: Identity;
|
|
40
|
-
iat: string;
|
|
41
|
-
exp?: string;
|
|
42
|
-
refresh: boolean;
|
|
43
|
-
}
|
|
44
|
-
export interface Claims {
|
|
45
|
-
identity: Identity;
|
|
46
|
-
iss: string;
|
|
47
|
-
iat: string;
|
|
48
|
-
exp?: string;
|
|
49
|
-
}
|
package/components/identity.tokens/operations/components/identity.tokens/source/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../source/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
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);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./pad"), exports);
|
|
18
|
-
__exportStar(require("./types"), exports);
|
|
19
|
-
//# sourceMappingURL=inde.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inde.js","sourceRoot":"","sources":["../../source/lib/inde.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAqB;AACrB,0CAAuB"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import type { Call, Maybe, Observation } from '@toa.io/types';
|
|
2
|
-
export interface Context {
|
|
3
|
-
local: {
|
|
4
|
-
observe: Observation<Entity>;
|
|
5
|
-
decrypt: Call<Maybe<DecryptOutput>, string>;
|
|
6
|
-
};
|
|
7
|
-
configuration: Configuration;
|
|
8
|
-
}
|
|
9
|
-
export interface Configuration {
|
|
10
|
-
readonly keys: Record<string, string>;
|
|
11
|
-
readonly lifetime: number;
|
|
12
|
-
readonly refresh: number;
|
|
13
|
-
}
|
|
14
|
-
export interface Entity {
|
|
15
|
-
revokedAt?: number;
|
|
16
|
-
}
|
|
17
|
-
export interface Identity extends Record<string, any> {
|
|
18
|
-
id: string;
|
|
19
|
-
permissions?: Record<string, [string]>;
|
|
20
|
-
}
|
|
21
|
-
export interface AuthenticateInput {
|
|
22
|
-
authority: string;
|
|
23
|
-
credentials: string;
|
|
24
|
-
}
|
|
25
|
-
export interface AuthenticateOutput {
|
|
26
|
-
identity: Identity;
|
|
27
|
-
refresh: boolean;
|
|
28
|
-
}
|
|
29
|
-
export interface EncryptInput {
|
|
30
|
-
authority: string;
|
|
31
|
-
identity: Identity;
|
|
32
|
-
lifetime?: number;
|
|
33
|
-
scopes?: string[];
|
|
34
|
-
permissions?: Record<string, [string]>;
|
|
35
|
-
}
|
|
36
|
-
export interface DecryptOutput {
|
|
37
|
-
authority: string;
|
|
38
|
-
identity: Identity;
|
|
39
|
-
iat: string;
|
|
40
|
-
exp?: string;
|
|
41
|
-
refresh: boolean;
|
|
42
|
-
}
|
|
43
|
-
export interface Claims {
|
|
44
|
-
identity: Identity;
|
|
45
|
-
iss: string;
|
|
46
|
-
iat: string;
|
|
47
|
-
exp?: string;
|
|
48
|
-
}
|
|
49
|
-
export interface Key {
|
|
50
|
-
name: string;
|
|
51
|
-
value: string;
|
|
52
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../source/types.ts"],"names":[],"mappings":""}
|