@pax2pay/model-banking 0.1.581 → 0.1.583
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/Identifier.ts +2 -2
- package/Log/Entry.ts +7 -7
- package/Log/Locations.ts +7 -7
- package/Log/Message/Configuration.ts +7 -7
- package/Log/Message/Entry.ts +6 -6
- package/Log/index.ts +9 -9
- package/Realm.ts +3 -3
- package/Supplier/index.ts +1 -1
- package/User/Access/Permission.ts +7 -3
- package/User/Access/index.ts +9 -7
- package/User/JWT/Payload.ts +26 -27
- package/User/JWT/index.ts +2 -2
- package/User/Password.ts +3 -5
- package/User/index.ts +9 -29
- package/dist/cjs/Identifier.d.ts +2 -2
- package/dist/cjs/Identifier.js +2 -35
- package/dist/cjs/Identifier.js.map +1 -1
- package/dist/cjs/Log/Entry.d.ts +12 -12
- package/dist/cjs/Log/Entry.js +5 -38
- package/dist/cjs/Log/Entry.js.map +1 -1
- package/dist/cjs/Log/Locations.d.ts +8 -8
- package/dist/cjs/Log/Locations.js +6 -39
- package/dist/cjs/Log/Locations.js.map +1 -1
- package/dist/cjs/Log/Message/Configuration.d.ts +8 -8
- package/dist/cjs/Log/Message/Configuration.js +6 -39
- package/dist/cjs/Log/Message/Configuration.js.map +1 -1
- package/dist/cjs/Log/Message/Entry.d.ts +7 -7
- package/dist/cjs/Log/Message/Entry.js +5 -38
- package/dist/cjs/Log/Message/Entry.js.map +1 -1
- package/dist/cjs/Log/index.d.ts +14 -14
- package/dist/cjs/Log/index.js +8 -41
- package/dist/cjs/Log/index.js.map +1 -1
- package/dist/cjs/Realm.d.ts +3 -3
- package/dist/cjs/Realm.js +2 -35
- package/dist/cjs/Realm.js.map +1 -1
- package/dist/cjs/Supplier/index.d.ts +1 -5
- package/dist/cjs/Supplier/index.js.map +1 -1
- package/dist/cjs/User/Access/Permission.d.ts +42 -6
- package/dist/cjs/User/Access/Permission.js +4 -0
- package/dist/cjs/User/Access/Permission.js.map +1 -1
- package/dist/cjs/User/Access/index.d.ts +80 -7
- package/dist/cjs/User/Access/index.js +8 -0
- package/dist/cjs/User/Access/index.js.map +1 -1
- package/dist/cjs/User/JWT/Payload.d.ts +234 -26
- package/dist/cjs/User/JWT/Payload.js +20 -4
- package/dist/cjs/User/JWT/Payload.js.map +1 -1
- package/dist/cjs/User/JWT/index.js +2 -2
- package/dist/cjs/User/JWT/index.js.map +1 -1
- package/dist/cjs/User/Password.d.ts +12 -6
- package/dist/cjs/User/Password.js +2 -0
- package/dist/cjs/User/Password.js.map +1 -1
- package/dist/cjs/User/index.d.ts +112 -10
- package/dist/cjs/User/index.js +6 -18
- package/dist/cjs/User/index.js.map +1 -1
- package/dist/cjs/pax2pay.d.ts +1 -0
- package/dist/cjs/pax2pay.js +3 -1
- package/dist/cjs/pax2pay.js.map +1 -1
- package/dist/cjs/zod.d.ts +12 -0
- package/dist/cjs/zod.js +52 -0
- package/dist/cjs/zod.js.map +1 -0
- package/dist/mjs/Identifier.d.ts +2 -2
- package/dist/mjs/Identifier.js +2 -2
- package/dist/mjs/Identifier.js.map +1 -1
- package/dist/mjs/Log/Entry.d.ts +12 -12
- package/dist/mjs/Log/Entry.js +5 -5
- package/dist/mjs/Log/Entry.js.map +1 -1
- package/dist/mjs/Log/Locations.d.ts +8 -8
- package/dist/mjs/Log/Locations.js +6 -6
- package/dist/mjs/Log/Locations.js.map +1 -1
- package/dist/mjs/Log/Message/Configuration.d.ts +8 -8
- package/dist/mjs/Log/Message/Configuration.js +6 -6
- package/dist/mjs/Log/Message/Configuration.js.map +1 -1
- package/dist/mjs/Log/Message/Entry.d.ts +7 -7
- package/dist/mjs/Log/Message/Entry.js +5 -5
- package/dist/mjs/Log/Message/Entry.js.map +1 -1
- package/dist/mjs/Log/index.d.ts +14 -14
- package/dist/mjs/Log/index.js +8 -8
- package/dist/mjs/Log/index.js.map +1 -1
- package/dist/mjs/Realm.d.ts +3 -3
- package/dist/mjs/Realm.js +2 -2
- package/dist/mjs/Realm.js.map +1 -1
- package/dist/mjs/Supplier/index.d.ts +1 -5
- package/dist/mjs/Supplier/index.js.map +1 -1
- package/dist/mjs/User/Access/Permission.d.ts +42 -6
- package/dist/mjs/User/Access/Permission.js +4 -0
- package/dist/mjs/User/Access/Permission.js.map +1 -1
- package/dist/mjs/User/Access/index.d.ts +80 -7
- package/dist/mjs/User/Access/index.js +8 -0
- package/dist/mjs/User/Access/index.js.map +1 -1
- package/dist/mjs/User/JWT/Payload.d.ts +234 -26
- package/dist/mjs/User/JWT/Payload.js +20 -4
- package/dist/mjs/User/JWT/Payload.js.map +1 -1
- package/dist/mjs/User/JWT/index.js +2 -2
- package/dist/mjs/User/JWT/index.js.map +1 -1
- package/dist/mjs/User/Password.d.ts +12 -6
- package/dist/mjs/User/Password.js +2 -0
- package/dist/mjs/User/Password.js.map +1 -1
- package/dist/mjs/User/index.d.ts +112 -10
- package/dist/mjs/User/index.js +6 -18
- package/dist/mjs/User/index.js.map +1 -1
- package/dist/mjs/pax2pay.d.ts +1 -0
- package/dist/mjs/pax2pay.js +1 -0
- package/dist/mjs/pax2pay.js.map +1 -1
- package/dist/mjs/zod.d.ts +12 -0
- package/dist/mjs/zod.js +16 -0
- package/dist/mjs/zod.js.map +1 -0
- package/package.json +2 -2
- package/pax2pay.ts +1 -0
- package/tsconfig.json +1 -2
- package/zod.ts +20 -0
|
@@ -1,12 +1,85 @@
|
|
|
1
|
+
import { zod } from "../../zod";
|
|
1
2
|
import { Permission as AccessPermission } from "./Permission";
|
|
2
|
-
export
|
|
3
|
-
uk?: Access.Permission.Realm;
|
|
4
|
-
uguk?: Access.Permission.Realm;
|
|
5
|
-
eea?: Access.Permission.Realm;
|
|
6
|
-
test?: Access.Permission.Realm;
|
|
7
|
-
"*"?: Access.Permission.Global;
|
|
8
|
-
}
|
|
3
|
+
export type Access = zod.infer<typeof Access.typeZod>;
|
|
9
4
|
export declare namespace Access {
|
|
10
5
|
export import Permission = AccessPermission;
|
|
11
6
|
const type: import("isly/dist/cjs/object").IslyObject<object, object>;
|
|
7
|
+
const typeZod: zod.ZodObject<{
|
|
8
|
+
uk: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<{
|
|
9
|
+
rule: "rule";
|
|
10
|
+
card: "card";
|
|
11
|
+
organization: "organization";
|
|
12
|
+
transaction: "transaction";
|
|
13
|
+
settlement: "settlement";
|
|
14
|
+
user: "user";
|
|
15
|
+
log: "log";
|
|
16
|
+
operation: "operation";
|
|
17
|
+
"*": "*";
|
|
18
|
+
treasury: "treasury";
|
|
19
|
+
}> & zod.z.core.$partial, zod.ZodEnum<{
|
|
20
|
+
developer: "developer";
|
|
21
|
+
read: "read";
|
|
22
|
+
write: "write";
|
|
23
|
+
admin: "admin";
|
|
24
|
+
}>>>;
|
|
25
|
+
uguk: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<{
|
|
26
|
+
rule: "rule";
|
|
27
|
+
card: "card";
|
|
28
|
+
organization: "organization";
|
|
29
|
+
transaction: "transaction";
|
|
30
|
+
settlement: "settlement";
|
|
31
|
+
user: "user";
|
|
32
|
+
log: "log";
|
|
33
|
+
operation: "operation";
|
|
34
|
+
"*": "*";
|
|
35
|
+
treasury: "treasury";
|
|
36
|
+
}> & zod.z.core.$partial, zod.ZodEnum<{
|
|
37
|
+
developer: "developer";
|
|
38
|
+
read: "read";
|
|
39
|
+
write: "write";
|
|
40
|
+
admin: "admin";
|
|
41
|
+
}>>>;
|
|
42
|
+
eea: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<{
|
|
43
|
+
rule: "rule";
|
|
44
|
+
card: "card";
|
|
45
|
+
organization: "organization";
|
|
46
|
+
transaction: "transaction";
|
|
47
|
+
settlement: "settlement";
|
|
48
|
+
user: "user";
|
|
49
|
+
log: "log";
|
|
50
|
+
operation: "operation";
|
|
51
|
+
"*": "*";
|
|
52
|
+
treasury: "treasury";
|
|
53
|
+
}> & zod.z.core.$partial, zod.ZodEnum<{
|
|
54
|
+
developer: "developer";
|
|
55
|
+
read: "read";
|
|
56
|
+
write: "write";
|
|
57
|
+
admin: "admin";
|
|
58
|
+
}>>>;
|
|
59
|
+
test: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<{
|
|
60
|
+
rule: "rule";
|
|
61
|
+
card: "card";
|
|
62
|
+
organization: "organization";
|
|
63
|
+
transaction: "transaction";
|
|
64
|
+
settlement: "settlement";
|
|
65
|
+
user: "user";
|
|
66
|
+
log: "log";
|
|
67
|
+
operation: "operation";
|
|
68
|
+
"*": "*";
|
|
69
|
+
treasury: "treasury";
|
|
70
|
+
}> & zod.z.core.$partial, zod.ZodEnum<{
|
|
71
|
+
developer: "developer";
|
|
72
|
+
read: "read";
|
|
73
|
+
write: "write";
|
|
74
|
+
admin: "admin";
|
|
75
|
+
}>>>;
|
|
76
|
+
"*": zod.ZodOptional<zod.ZodObject<{
|
|
77
|
+
user: zod.ZodOptional<zod.ZodEnum<{
|
|
78
|
+
developer: "developer";
|
|
79
|
+
read: "read";
|
|
80
|
+
write: "write";
|
|
81
|
+
admin: "admin";
|
|
82
|
+
}>>;
|
|
83
|
+
}, zod.z.core.$strip>>;
|
|
84
|
+
}, zod.z.core.$strip>;
|
|
12
85
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Access = void 0;
|
|
4
4
|
const isly_1 = require("isly");
|
|
5
|
+
const zod_1 = require("../../zod");
|
|
5
6
|
const Permission_1 = require("./Permission");
|
|
6
7
|
var Access;
|
|
7
8
|
(function (Access) {
|
|
@@ -13,5 +14,12 @@ var Access;
|
|
|
13
14
|
test: Access.Permission.type.optional(),
|
|
14
15
|
"*": isly_1.isly.object({ user: Access.Permission.Level.type.optional() }).optional(),
|
|
15
16
|
});
|
|
17
|
+
Access.typeZod = zod_1.zod.object({
|
|
18
|
+
uk: Access.Permission.typeZod.optional(),
|
|
19
|
+
uguk: Access.Permission.typeZod.optional(),
|
|
20
|
+
eea: Access.Permission.typeZod.optional(),
|
|
21
|
+
test: Access.Permission.typeZod.optional(),
|
|
22
|
+
"*": zod_1.zod.object({ user: Access.Permission.Level.typeZod.optional() }).optional(),
|
|
23
|
+
});
|
|
16
24
|
})(Access || (exports.Access = Access = {}));
|
|
17
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../User/Access/index.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,6CAA6D;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../User/Access/index.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,mCAA+B;AAC/B,6CAA6D;AAI7D,IAAiB,MAAM,CAgBtB;AAhBD,WAAiB,MAAM;IACR,iBAAU,GAAG,uBAAgB,CAAA;IAC9B,WAAI,GAAG,WAAI,CAAC,MAAM,CAAC;QAC/B,EAAE,EAAE,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,EAAE;QACrC,IAAI,EAAE,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,EAAE;QACvC,GAAG,EAAE,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,EAAE;QACtC,IAAI,EAAE,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,EAAE;QACvC,GAAG,EAAE,WAAI,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE;KAC9E,CAAC,CAAA;IACW,cAAO,GAAG,SAAG,CAAC,MAAM,CAAC;QACjC,EAAE,EAAE,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,EAAE;QACxC,IAAI,EAAE,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,EAAE;QAC1C,GAAG,EAAE,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,EAAE;QACzC,IAAI,EAAE,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,EAAE;QAC1C,GAAG,EAAE,SAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE;KAChF,CAAC,CAAA;AACH,CAAC,EAhBgB,MAAM,sBAAN,MAAM,QAgBtB"}
|
|
@@ -1,43 +1,251 @@
|
|
|
1
|
-
import { authly } from "authly";
|
|
2
1
|
import { isly } from "isly";
|
|
3
|
-
import {
|
|
4
|
-
import { Access } from "../Access";
|
|
2
|
+
import { zod } from "../../zod";
|
|
5
3
|
export type Payload = Payload.LongTerm | Payload.ShortTerm;
|
|
6
4
|
export declare namespace Payload {
|
|
7
|
-
|
|
8
|
-
sub: string;
|
|
9
|
-
permission: Access.Permission;
|
|
10
|
-
realm: Realm;
|
|
11
|
-
}
|
|
5
|
+
type Creatable = zod.infer<typeof Creatable.typeZod>;
|
|
12
6
|
namespace Creatable {
|
|
13
|
-
const type: import("isly/dist/cjs/object").IslyObject<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
7
|
+
const type: import("isly/dist/cjs/object").IslyObject<{
|
|
8
|
+
sub: string;
|
|
9
|
+
permission: Partial<Record<"rule" | "card" | "organization" | "transaction" | "settlement" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
|
|
10
|
+
realm: "test" | "uk" | "uguk" | "eea";
|
|
11
|
+
}, object>;
|
|
12
|
+
const typeZod: zod.ZodObject<{
|
|
13
|
+
sub: zod.ZodString;
|
|
14
|
+
permission: zod.ZodRecord<zod.ZodEnum<{
|
|
15
|
+
rule: "rule";
|
|
16
|
+
card: "card";
|
|
17
|
+
organization: "organization";
|
|
18
|
+
transaction: "transaction";
|
|
19
|
+
settlement: "settlement";
|
|
20
|
+
user: "user";
|
|
21
|
+
log: "log";
|
|
22
|
+
operation: "operation";
|
|
23
|
+
"*": "*";
|
|
24
|
+
treasury: "treasury";
|
|
25
|
+
}> & zod.z.core.$partial, zod.ZodEnum<{
|
|
26
|
+
developer: "developer";
|
|
27
|
+
read: "read";
|
|
28
|
+
write: "write";
|
|
29
|
+
admin: "admin";
|
|
30
|
+
}>>;
|
|
31
|
+
realm: zod.ZodEnum<{
|
|
32
|
+
test: "test";
|
|
33
|
+
uk: "uk";
|
|
34
|
+
uguk: "uguk";
|
|
35
|
+
eea: "eea";
|
|
36
|
+
}>;
|
|
37
|
+
}, zod.z.core.$strip>;
|
|
22
38
|
}
|
|
39
|
+
type Base = zod.infer<typeof Base.typeZod>;
|
|
23
40
|
namespace Base {
|
|
24
|
-
const type: import("isly/dist/cjs/object").IslyObject<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
41
|
+
const type: import("isly/dist/cjs/object").IslyObject<{
|
|
42
|
+
aud: string;
|
|
43
|
+
iat: number;
|
|
44
|
+
iss: string;
|
|
45
|
+
sub: string;
|
|
46
|
+
permission: Partial<Record<"rule" | "card" | "organization" | "transaction" | "settlement" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
|
|
47
|
+
realm: "test" | "uk" | "uguk" | "eea";
|
|
48
|
+
token?: string | undefined;
|
|
49
|
+
}, object>;
|
|
50
|
+
const typeZod: zod.ZodObject<{
|
|
51
|
+
aud: zod.ZodString;
|
|
52
|
+
iat: zod.ZodNumber;
|
|
53
|
+
iss: zod.ZodString;
|
|
54
|
+
sub: zod.ZodString;
|
|
55
|
+
permission: zod.ZodRecord<zod.ZodEnum<{
|
|
56
|
+
rule: "rule";
|
|
57
|
+
card: "card";
|
|
58
|
+
organization: "organization";
|
|
59
|
+
transaction: "transaction";
|
|
60
|
+
settlement: "settlement";
|
|
61
|
+
user: "user";
|
|
62
|
+
log: "log";
|
|
63
|
+
operation: "operation";
|
|
64
|
+
"*": "*";
|
|
65
|
+
treasury: "treasury";
|
|
66
|
+
}> & zod.z.core.$partial, zod.ZodEnum<{
|
|
67
|
+
developer: "developer";
|
|
68
|
+
read: "read";
|
|
69
|
+
write: "write";
|
|
70
|
+
admin: "admin";
|
|
71
|
+
}>>;
|
|
72
|
+
realm: zod.ZodEnum<{
|
|
73
|
+
test: "test";
|
|
74
|
+
uk: "uk";
|
|
75
|
+
uguk: "uguk";
|
|
76
|
+
eea: "eea";
|
|
77
|
+
}>;
|
|
78
|
+
token: zod.ZodOptional<zod.ZodString>;
|
|
79
|
+
}, zod.z.core.$strip>;
|
|
28
80
|
}
|
|
81
|
+
type LongTerm = zod.infer<typeof LongTerm.typeZod>;
|
|
29
82
|
namespace LongTerm {
|
|
30
|
-
const type: import("isly/dist/cjs/object").IslyObject<
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
83
|
+
const type: import("isly/dist/cjs/object").IslyObject<{
|
|
84
|
+
aud: string;
|
|
85
|
+
iat: number;
|
|
86
|
+
iss: string;
|
|
87
|
+
sub: string;
|
|
88
|
+
permission: Partial<Record<"rule" | "card" | "organization" | "transaction" | "settlement" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
|
|
89
|
+
realm: "test" | "uk" | "uguk" | "eea";
|
|
90
|
+
id: string;
|
|
91
|
+
token?: string | undefined;
|
|
92
|
+
}, {
|
|
93
|
+
aud: string;
|
|
94
|
+
iat: number;
|
|
95
|
+
iss: string;
|
|
96
|
+
sub: string;
|
|
97
|
+
permission: Partial<Record<"rule" | "card" | "organization" | "transaction" | "settlement" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
|
|
98
|
+
realm: "test" | "uk" | "uguk" | "eea";
|
|
99
|
+
token?: string | undefined;
|
|
100
|
+
}>;
|
|
101
|
+
const typeZod: zod.ZodObject<{
|
|
102
|
+
aud: zod.ZodString;
|
|
103
|
+
iat: zod.ZodNumber;
|
|
104
|
+
iss: zod.ZodString;
|
|
105
|
+
sub: zod.ZodString;
|
|
106
|
+
permission: zod.ZodRecord<zod.ZodEnum<{
|
|
107
|
+
rule: "rule";
|
|
108
|
+
card: "card";
|
|
109
|
+
organization: "organization";
|
|
110
|
+
transaction: "transaction";
|
|
111
|
+
settlement: "settlement";
|
|
112
|
+
user: "user";
|
|
113
|
+
log: "log";
|
|
114
|
+
operation: "operation";
|
|
115
|
+
"*": "*";
|
|
116
|
+
treasury: "treasury";
|
|
117
|
+
}> & zod.z.core.$partial, zod.ZodEnum<{
|
|
118
|
+
developer: "developer";
|
|
119
|
+
read: "read";
|
|
120
|
+
write: "write";
|
|
121
|
+
admin: "admin";
|
|
122
|
+
}>>;
|
|
123
|
+
realm: zod.ZodEnum<{
|
|
124
|
+
test: "test";
|
|
125
|
+
uk: "uk";
|
|
126
|
+
uguk: "uguk";
|
|
127
|
+
eea: "eea";
|
|
128
|
+
}>;
|
|
129
|
+
token: zod.ZodOptional<zod.ZodString>;
|
|
130
|
+
id: zod.ZodString;
|
|
131
|
+
}, zod.z.core.$strip>;
|
|
34
132
|
}
|
|
133
|
+
type ShortTerm = zod.infer<typeof ShortTerm.typeZod>;
|
|
35
134
|
namespace ShortTerm {
|
|
36
|
-
const type: import("isly/dist/cjs/object").IslyObject<
|
|
135
|
+
const type: import("isly/dist/cjs/object").IslyObject<{
|
|
136
|
+
aud: string;
|
|
137
|
+
iat: number;
|
|
138
|
+
iss: string;
|
|
139
|
+
sub: string;
|
|
140
|
+
permission: Partial<Record<"rule" | "card" | "organization" | "transaction" | "settlement" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
|
|
141
|
+
realm: "test" | "uk" | "uguk" | "eea";
|
|
142
|
+
exp: number;
|
|
143
|
+
token?: string | undefined;
|
|
144
|
+
}, {
|
|
145
|
+
aud: string;
|
|
146
|
+
iat: number;
|
|
147
|
+
iss: string;
|
|
148
|
+
sub: string;
|
|
149
|
+
permission: Partial<Record<"rule" | "card" | "organization" | "transaction" | "settlement" | "user" | "log" | "operation" | "*" | "treasury", "developer" | "read" | "write" | "admin">>;
|
|
150
|
+
realm: "test" | "uk" | "uguk" | "eea";
|
|
151
|
+
token?: string | undefined;
|
|
152
|
+
}>;
|
|
153
|
+
const typeZod: zod.ZodObject<{
|
|
154
|
+
aud: zod.ZodString;
|
|
155
|
+
iat: zod.ZodNumber;
|
|
156
|
+
iss: zod.ZodString;
|
|
157
|
+
sub: zod.ZodString;
|
|
158
|
+
permission: zod.ZodRecord<zod.ZodEnum<{
|
|
159
|
+
rule: "rule";
|
|
160
|
+
card: "card";
|
|
161
|
+
organization: "organization";
|
|
162
|
+
transaction: "transaction";
|
|
163
|
+
settlement: "settlement";
|
|
164
|
+
user: "user";
|
|
165
|
+
log: "log";
|
|
166
|
+
operation: "operation";
|
|
167
|
+
"*": "*";
|
|
168
|
+
treasury: "treasury";
|
|
169
|
+
}> & zod.z.core.$partial, zod.ZodEnum<{
|
|
170
|
+
developer: "developer";
|
|
171
|
+
read: "read";
|
|
172
|
+
write: "write";
|
|
173
|
+
admin: "admin";
|
|
174
|
+
}>>;
|
|
175
|
+
realm: zod.ZodEnum<{
|
|
176
|
+
test: "test";
|
|
177
|
+
uk: "uk";
|
|
178
|
+
uguk: "uguk";
|
|
179
|
+
eea: "eea";
|
|
180
|
+
}>;
|
|
181
|
+
token: zod.ZodOptional<zod.ZodString>;
|
|
182
|
+
exp: zod.ZodNumber;
|
|
183
|
+
}, zod.z.core.$strip>;
|
|
37
184
|
}
|
|
38
185
|
const configuration: {
|
|
39
186
|
aud: string;
|
|
40
187
|
iss: string;
|
|
41
188
|
};
|
|
42
189
|
const type: isly.Type<Payload>;
|
|
190
|
+
const typeZod: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
191
|
+
aud: zod.ZodString;
|
|
192
|
+
iat: zod.ZodNumber;
|
|
193
|
+
iss: zod.ZodString;
|
|
194
|
+
sub: zod.ZodString;
|
|
195
|
+
permission: zod.ZodRecord<zod.ZodEnum<{
|
|
196
|
+
rule: "rule";
|
|
197
|
+
card: "card";
|
|
198
|
+
organization: "organization";
|
|
199
|
+
transaction: "transaction";
|
|
200
|
+
settlement: "settlement";
|
|
201
|
+
user: "user";
|
|
202
|
+
log: "log";
|
|
203
|
+
operation: "operation";
|
|
204
|
+
"*": "*";
|
|
205
|
+
treasury: "treasury";
|
|
206
|
+
}> & zod.z.core.$partial, zod.ZodEnum<{
|
|
207
|
+
developer: "developer";
|
|
208
|
+
read: "read";
|
|
209
|
+
write: "write";
|
|
210
|
+
admin: "admin";
|
|
211
|
+
}>>;
|
|
212
|
+
realm: zod.ZodEnum<{
|
|
213
|
+
test: "test";
|
|
214
|
+
uk: "uk";
|
|
215
|
+
uguk: "uguk";
|
|
216
|
+
eea: "eea";
|
|
217
|
+
}>;
|
|
218
|
+
token: zod.ZodOptional<zod.ZodString>;
|
|
219
|
+
id: zod.ZodString;
|
|
220
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
221
|
+
aud: zod.ZodString;
|
|
222
|
+
iat: zod.ZodNumber;
|
|
223
|
+
iss: zod.ZodString;
|
|
224
|
+
sub: zod.ZodString;
|
|
225
|
+
permission: zod.ZodRecord<zod.ZodEnum<{
|
|
226
|
+
rule: "rule";
|
|
227
|
+
card: "card";
|
|
228
|
+
organization: "organization";
|
|
229
|
+
transaction: "transaction";
|
|
230
|
+
settlement: "settlement";
|
|
231
|
+
user: "user";
|
|
232
|
+
log: "log";
|
|
233
|
+
operation: "operation";
|
|
234
|
+
"*": "*";
|
|
235
|
+
treasury: "treasury";
|
|
236
|
+
}> & zod.z.core.$partial, zod.ZodEnum<{
|
|
237
|
+
developer: "developer";
|
|
238
|
+
read: "read";
|
|
239
|
+
write: "write";
|
|
240
|
+
admin: "admin";
|
|
241
|
+
}>>;
|
|
242
|
+
realm: zod.ZodEnum<{
|
|
243
|
+
test: "test";
|
|
244
|
+
uk: "uk";
|
|
245
|
+
uguk: "uguk";
|
|
246
|
+
eea: "eea";
|
|
247
|
+
}>;
|
|
248
|
+
token: zod.ZodOptional<zod.ZodString>;
|
|
249
|
+
exp: zod.ZodNumber;
|
|
250
|
+
}, zod.z.core.$strip>]>;
|
|
43
251
|
}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Payload = void 0;
|
|
4
4
|
const isly_1 = require("isly");
|
|
5
5
|
const Realm_1 = require("../../Realm");
|
|
6
|
+
const zod_1 = require("../../zod");
|
|
6
7
|
const Access_1 = require("../Access");
|
|
7
8
|
var Payload;
|
|
8
9
|
(function (Payload) {
|
|
@@ -13,6 +14,11 @@ var Payload;
|
|
|
13
14
|
permission: Access_1.Access.Permission.type,
|
|
14
15
|
realm: Realm_1.Realm.type,
|
|
15
16
|
});
|
|
17
|
+
Creatable.typeZod = zod_1.zod.object({
|
|
18
|
+
sub: zod_1.zod.string(),
|
|
19
|
+
permission: Access_1.Access.Permission.typeZod,
|
|
20
|
+
realm: Realm_1.Realm.typeZod,
|
|
21
|
+
});
|
|
16
22
|
})(Creatable = Payload.Creatable || (Payload.Creatable = {}));
|
|
17
23
|
let Base;
|
|
18
24
|
(function (Base) {
|
|
@@ -23,20 +29,30 @@ var Payload;
|
|
|
23
29
|
sub: isly_1.isly.string(),
|
|
24
30
|
permission: Access_1.Access.Permission.type,
|
|
25
31
|
realm: Realm_1.Realm.type,
|
|
32
|
+
token: isly_1.isly.string().optional(),
|
|
33
|
+
});
|
|
34
|
+
Base.typeZod = zod_1.zod.object({
|
|
35
|
+
aud: zod_1.zod.string(),
|
|
36
|
+
iat: zod_1.zod.number(),
|
|
37
|
+
iss: zod_1.zod.string(),
|
|
38
|
+
sub: zod_1.zod.string(),
|
|
39
|
+
permission: Access_1.Access.Permission.typeZod,
|
|
40
|
+
realm: Realm_1.Realm.typeZod,
|
|
41
|
+
token: zod_1.zod.string().optional(),
|
|
26
42
|
});
|
|
27
43
|
})(Base = Payload.Base || (Payload.Base = {}));
|
|
28
44
|
let LongTerm;
|
|
29
45
|
(function (LongTerm) {
|
|
30
46
|
LongTerm.type = Base.type.extend({ id: isly_1.isly.string() });
|
|
47
|
+
LongTerm.typeZod = Base.typeZod.extend({ id: zod_1.zod.string() });
|
|
31
48
|
})(LongTerm = Payload.LongTerm || (Payload.LongTerm = {}));
|
|
32
49
|
let ShortTerm;
|
|
33
50
|
(function (ShortTerm) {
|
|
34
51
|
ShortTerm.type = Base.type.extend({ exp: isly_1.isly.number() });
|
|
52
|
+
ShortTerm.typeZod = Base.typeZod.extend({ exp: zod_1.zod.number() });
|
|
35
53
|
})(ShortTerm = Payload.ShortTerm || (Payload.ShortTerm = {}));
|
|
36
|
-
Payload.configuration = {
|
|
37
|
-
aud: "https://banking.pax2pay.app",
|
|
38
|
-
iss: "pax2pay",
|
|
39
|
-
};
|
|
54
|
+
Payload.configuration = { aud: "https://banking.pax2pay.app", iss: "pax2pay" };
|
|
40
55
|
Payload.type = isly_1.isly.union(LongTerm.type, ShortTerm.type);
|
|
56
|
+
Payload.typeZod = zod_1.zod.union([LongTerm.typeZod, ShortTerm.typeZod]);
|
|
41
57
|
})(Payload || (exports.Payload = Payload = {}));
|
|
42
58
|
//# sourceMappingURL=Payload.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.js","sourceRoot":"","sources":["../../../../User/JWT/Payload.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Payload.js","sourceRoot":"","sources":["../../../../User/JWT/Payload.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,uCAAmC;AACnC,mCAA+B;AAC/B,sCAAkC;AAGlC,IAAiB,OAAO,CAgDvB;AAhDD,WAAiB,OAAO;IAEvB,IAAiB,SAAS,CAWzB;IAXD,WAAiB,SAAS;QACZ,cAAI,GAAG,WAAI,CAAC,MAAM,CAAY;YAC1C,GAAG,EAAE,WAAI,CAAC,MAAM,EAAE;YAClB,UAAU,EA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;QACX,aAAI,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAW,EAAE,EAAE,EAAE,WAAI,CAAC,MAAM,EAAE,EAAE,CAAC,CAAA;QACxD,gBAAO,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,SAAG,CAAC,MAAM,EAAE,EAAE,CAAC,CAAA;IACjE,CAAC,EAHgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAGxB;IAED,IAAiB,SAAS,CAGzB;IAHD,WAAiB,SAAS;QACZ,cAAI,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAY,EAAE,GAAG,EAAE,WAAI,CAAC,MAAM,EAAE,EAAE,CAAC,CAAA;QAC1D,iBAAO,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,SAAG,CAAC,MAAM,EAAE,EAAE,CAAC,CAAA;IAClE,CAAC,EAHgB,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGzB;IACY,qBAAa,GAAG,EAAE,GAAG,EAAE,6BAA6B,EAAE,GAAG,EAAE,SAAS,EAAE,CAAA;IACtE,YAAI,GAAG,WAAI,CAAC,KAAK,CAAU,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC,CAAA;IACzD,eAAO,GAAG,SAAG,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC,CAAA;AACxE,CAAC,EAhDgB,OAAO,uBAAP,OAAO,QAgDvB"}
|
|
@@ -30,8 +30,8 @@ class JWT {
|
|
|
30
30
|
const verified = await this.verifier?.verify(token, JWT.Payload.configuration.aud);
|
|
31
31
|
delete verified?.token;
|
|
32
32
|
return JWT.Payload.type.is(verified) &&
|
|
33
|
-
verified
|
|
34
|
-
(
|
|
33
|
+
verified.iss == JWT.Payload.configuration.iss &&
|
|
34
|
+
("exp" in verified || (await this.store?.get(verified.id).then(s => s?.value)))
|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AK,CAAC,CAAA;IAC/B,CAAC;IAJqB,UAAM,SAI3B,CAAA;IACa,WAAO,GAAG,iBAAU,CAAA;IACrB,OAAG,GACf,kuBAAkuB,CAAA;AACpuB,CAAC,EAVgB,GAAG,mBAAH,GAAG,QAUnB"}
|
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
import { cryptly } from "cryptly";
|
|
2
2
|
import { gracely } from "gracely";
|
|
3
3
|
import { isoly } from "isoly";
|
|
4
|
+
import { zod } from "../zod";
|
|
4
5
|
export interface Password {
|
|
5
6
|
hash: cryptly.Password.Hash;
|
|
6
7
|
changed: isoly.DateTime;
|
|
7
8
|
}
|
|
8
9
|
export declare namespace Password {
|
|
9
|
-
|
|
10
|
-
current?: string;
|
|
11
|
-
new: string;
|
|
12
|
-
repeat: string;
|
|
13
|
-
}
|
|
10
|
+
type Creatable = zod.infer<typeof Creatable.typeZod>;
|
|
14
11
|
namespace Creatable {
|
|
15
|
-
const
|
|
12
|
+
const typeZod: zod.ZodObject<{
|
|
13
|
+
current: zod.ZodOptional<zod.ZodString>;
|
|
14
|
+
new: zod.ZodString;
|
|
15
|
+
repeat: zod.ZodString;
|
|
16
|
+
}, zod.z.core.$strip>;
|
|
17
|
+
const type: import("isly/dist/cjs/object").IslyObject<{
|
|
18
|
+
new: string;
|
|
19
|
+
repeat: string;
|
|
20
|
+
current?: string | undefined;
|
|
21
|
+
}, object>;
|
|
16
22
|
}
|
|
17
23
|
function create(creatable: Creatable, pepper: string | undefined): Promise<Password | gracely.Error>;
|
|
18
24
|
function salt(): string;
|
|
@@ -5,10 +5,12 @@ const cryptly_1 = require("cryptly");
|
|
|
5
5
|
const gracely_1 = require("gracely");
|
|
6
6
|
const isoly_1 = require("isoly");
|
|
7
7
|
const isly_1 = require("isly");
|
|
8
|
+
const zod_1 = require("../zod");
|
|
8
9
|
var Password;
|
|
9
10
|
(function (Password) {
|
|
10
11
|
let Creatable;
|
|
11
12
|
(function (Creatable) {
|
|
13
|
+
Creatable.typeZod = zod_1.zod.object({ current: zod_1.zod.string().optional(), new: zod_1.zod.string(), repeat: zod_1.zod.string() });
|
|
12
14
|
Creatable.type = isly_1.isly.object({
|
|
13
15
|
current: isly_1.isly.string().optional(),
|
|
14
16
|
new: isly_1.isly.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Password.js","sourceRoot":"","sources":["../../../User/Password.ts"],"names":[],"mappings":";;;AAAA,qCAAiC;AACjC,qCAAiC;AACjC,iCAA6B;AAC7B,+BAA2B;
|
|
1
|
+
{"version":3,"file":"Password.js","sourceRoot":"","sources":["../../../User/Password.ts"],"names":[],"mappings":";;;AAAA,qCAAiC;AACjC,qCAAiC;AACjC,iCAA6B;AAC7B,+BAA2B;AAC3B,gCAA4B;AAM5B,IAAiB,QAAQ,CAkCxB;AAlCD,WAAiB,QAAQ;IAExB,IAAiB,SAAS,CAOzB;IAPD,WAAiB,SAAS;QACZ,iBAAO,GAAG,SAAG,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,SAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,GAAG,EAAE,SAAG,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,SAAG,CAAC,MAAM,EAAE,EAAE,CAAC,CAAA;QACnG,cAAI,GAAG,WAAI,CAAC,MAAM,CAAY;YAC1C,OAAO,EAAE,WAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YACjC,GAAG,EAAE,WAAI,CAAC,MAAM,EAAE;YAClB,MAAM,EAAE,WAAI,CAAC,MAAM,EAAE;SACrB,CAAC,CAAA;IACH,CAAC,EAPgB,SAAS,GAAT,kBAAS,KAAT,kBAAS,QAOzB;IACM,KAAK,UAAU,MAAM,CAAC,SAAoB,EAAE,MAA0B;QAC5E,IAAI,MAA0C,CAAA;QAC9C,IAAI,SAAS,CAAC,GAAG,KAAK,SAAS,CAAC,MAAM;YACrC,MAAM,GAAG,iBAAO,CAAC,MAAM,CAAC,SAAS,CAAC,0DA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