@iwentsourcing/core 0.1.0 → 0.2.0
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/dist/aggregation/aggregation-declaration.d.ts +27 -27
- package/dist/authentication/public-auth-providers.js.map +1 -1
- package/dist/event-store/create-file-event-store.d.ts +1 -1
- package/dist/example/todo-example.d.ts +6 -6
- package/dist/management/access/access-events.d.ts +104 -104
- package/dist/management/access/access-state.d.ts +269 -269
- package/dist/management/access/access-stream.d.ts +286 -286
- package/dist/management/authentication/authentication-state.d.ts +21 -21
- package/dist/management/authentication/authentication-stream.d.ts +66 -66
- package/dist/management/permission/permission-aggregation.d.ts +101 -101
- package/dist/management/permission/permission-aggregation.test.js +0 -1
- package/dist/management/permission/permission-aggregation.test.js.map +1 -1
- package/dist/management/permission-error-schema.d.ts +29 -29
- package/dist/management/registry/registry-events.d.ts +186 -186
- package/dist/management/registry/registry-state.d.ts +55 -55
- package/dist/management/registry/registry-stream.d.ts +284 -284
- package/dist/management/state-read-policy.js.map +1 -1
- package/dist/management/system/iwentsourcing-realm.d.ts +106 -106
- package/dist/runtime/host-result-builder.d.ts +13 -13
- package/dist/runtime/permission-grant-schema.d.ts +7 -7
- package/dist/runtime/runtime-result.d.ts +26 -26
- package/dist/sequencer/create-sequencer-storage.d.ts +4 -4
- package/dist/sequencer/create-state-processor.d.ts +4 -4
- package/dist/sequencer/sequence-topic.d.ts +1 -1
- package/dist/stream/stream-declaration.d.ts +34 -34
- package/dist/tsbuild.info +1 -1
- package/dist/utils/combine-abort-signal.js.map +1 -1
- package/dist/worker/create-stream-worker.d.ts +2 -2
- package/package.json +1 -1
- package/dist/lock/exclusive-lock.d.ts +0 -4
- package/dist/lock/exclusive-lock.js +0 -8
- package/dist/lock/exclusive-lock.js.map +0 -1
- package/dist/management/managed-permission-denied-error.d.ts +0 -50
- package/dist/management/managed-permission-denied-error.js +0 -26
- package/dist/management/managed-permission-denied-error.js.map +0 -1
- package/dist/processing/create-event-processor.d.ts +0 -23
- package/dist/processing/create-event-processor.js +0 -133
- package/dist/processing/create-event-processor.js.map +0 -1
- package/dist/processing/create-event-processor.test.d.ts +0 -1
- package/dist/processing/create-event-processor.test.js +0 -218
- package/dist/processing/create-event-processor.test.js.map +0 -1
- package/dist/processing/event-processing-topic.d.ts +0 -5
- package/dist/processing/event-processing-topic.js +0 -13
- package/dist/processing/event-processing-topic.js.map +0 -1
- package/dist/processing/select-event-shard.d.ts +0 -1
- package/dist/processing/select-event-shard.js +0 -14
- package/dist/processing/select-event-shard.js.map +0 -1
- package/dist/processing/sequencer-cache-key.d.ts +0 -2
- package/dist/processing/sequencer-cache-key.js +0 -13
- package/dist/processing/sequencer-cache-key.js.map +0 -1
- package/dist/tmp-typetest.d.ts +0 -1
- package/dist/tmp-typetest.js +0 -3
- package/dist/tmp-typetest.js.map +0 -1
- package/dist/tracer/create-noop-telemetry.d.ts +0 -2
- package/dist/tracer/create-noop-telemetry.js +0 -22
- package/dist/tracer/create-noop-telemetry.js.map +0 -1
- package/dist/tracer/create-tracer.d.ts +0 -2
- package/dist/tracer/create-tracer.js +0 -15
- package/dist/tracer/create-tracer.js.map +0 -1
- package/dist/utils/lru-cache.d.ts +0 -11
- package/dist/utils/lru-cache.js +0 -44
- package/dist/utils/lru-cache.js.map +0 -1
- package/dist/worker/create-stream-wroker.test.d.ts +0 -0
- package/dist/worker/create-stream-wroker.test.js +0 -2
- package/dist/worker/create-stream-wroker.test.js.map +0 -1
- package/dist/worker/process-pending-events.d.ts +0 -20
- package/dist/worker/process-pending-events.js +0 -106
- package/dist/worker/process-pending-events.js.map +0 -1
|
@@ -1,77 +1,77 @@
|
|
|
1
1
|
import { TypeOfEvent } from '../../typing/type-of.js';
|
|
2
2
|
export declare const AuthenticationUser: import("../../storage/state-declaration.js").StateDeclaration<"user", {
|
|
3
3
|
realm: string;
|
|
4
|
-
provider: string;
|
|
5
|
-
username: string;
|
|
6
4
|
createdAt: Date;
|
|
5
|
+
username: string;
|
|
7
6
|
attributes: {
|
|
8
7
|
[key: string]: string;
|
|
9
8
|
} | undefined;
|
|
10
|
-
}, "realm" | "provider" | "username", Record<string, never> & Record<"provider", import("../../storage/state-declaration.js").StateIndex<{
|
|
11
|
-
realm: string;
|
|
12
9
|
provider: string;
|
|
13
|
-
|
|
10
|
+
}, "realm" | "username" | "provider", Record<string, never> & Record<"provider", import("../../storage/state-declaration.js").StateIndex<{
|
|
11
|
+
realm: string;
|
|
14
12
|
createdAt: Date;
|
|
13
|
+
username: string;
|
|
15
14
|
attributes: {
|
|
16
15
|
[key: string]: string;
|
|
17
16
|
} | undefined;
|
|
17
|
+
provider: string;
|
|
18
18
|
}, ["realm", "provider", "username"]>>>;
|
|
19
19
|
export type AuthenticationUser = TypeOfEvent<typeof AuthenticationUser>;
|
|
20
20
|
export declare const AuthenticationState: {
|
|
21
21
|
user: import("../../storage/state-declaration.js").StateDeclaration<"user", {
|
|
22
22
|
realm: string;
|
|
23
|
-
provider: string;
|
|
24
|
-
username: string;
|
|
25
23
|
createdAt: Date;
|
|
24
|
+
username: string;
|
|
26
25
|
attributes: {
|
|
27
26
|
[key: string]: string;
|
|
28
27
|
} | undefined;
|
|
29
|
-
}, "realm" | "provider" | "username", Record<string, never> & Record<"provider", import("../../storage/state-declaration.js").StateIndex<{
|
|
30
|
-
realm: string;
|
|
31
28
|
provider: string;
|
|
32
|
-
|
|
29
|
+
}, "realm" | "username" | "provider", Record<string, never> & Record<"provider", import("../../storage/state-declaration.js").StateIndex<{
|
|
30
|
+
realm: string;
|
|
33
31
|
createdAt: Date;
|
|
32
|
+
username: string;
|
|
34
33
|
attributes: {
|
|
35
34
|
[key: string]: string;
|
|
36
35
|
} | undefined;
|
|
36
|
+
provider: string;
|
|
37
37
|
}, ["realm", "provider", "username"]>>>;
|
|
38
38
|
userCredentials: import("../../storage/state-declaration.js").StateDeclaration<"userCredentials", {
|
|
39
39
|
realm: string;
|
|
40
|
-
provider: string;
|
|
41
|
-
username: string;
|
|
42
40
|
createdAt: Date;
|
|
41
|
+
username: string;
|
|
42
|
+
provider: string;
|
|
43
43
|
password: string;
|
|
44
|
-
}, "realm" | "
|
|
44
|
+
}, "realm" | "username" | "provider", Record<string, never> & Record<"provider", import("../../storage/state-declaration.js").StateIndex<{
|
|
45
45
|
realm: string;
|
|
46
|
-
provider: string;
|
|
47
|
-
username: string;
|
|
48
46
|
createdAt: Date;
|
|
47
|
+
username: string;
|
|
48
|
+
provider: string;
|
|
49
49
|
password: string;
|
|
50
50
|
}, ["realm", "provider", "username"]>>>;
|
|
51
51
|
userSession: import("../../storage/state-declaration.js").StateDeclaration<"userSession", {
|
|
52
|
+
clientSecret: boolean;
|
|
52
53
|
realm: string;
|
|
53
|
-
provider: string;
|
|
54
|
-
username: string;
|
|
55
54
|
createdAt: Date;
|
|
55
|
+
username: string;
|
|
56
|
+
provider: string;
|
|
56
57
|
refreshToken: string;
|
|
57
58
|
externalRefreshToken: string | undefined;
|
|
58
59
|
externalAccessToken: string | undefined;
|
|
59
60
|
externalAttributes: {
|
|
60
61
|
[key: string]: string;
|
|
61
62
|
} | undefined;
|
|
63
|
+
}, "realm" | "username" | "provider" | "refreshToken", Record<string, never> & Record<"provider", import("../../storage/state-declaration.js").StateIndex<{
|
|
62
64
|
clientSecret: boolean;
|
|
63
|
-
}, "realm" | "provider" | "username" | "refreshToken", Record<string, never> & Record<"provider", import("../../storage/state-declaration.js").StateIndex<{
|
|
64
65
|
realm: string;
|
|
65
|
-
provider: string;
|
|
66
|
-
username: string;
|
|
67
66
|
createdAt: Date;
|
|
67
|
+
username: string;
|
|
68
|
+
provider: string;
|
|
68
69
|
refreshToken: string;
|
|
69
70
|
externalRefreshToken: string | undefined;
|
|
70
71
|
externalAccessToken: string | undefined;
|
|
71
72
|
externalAttributes: {
|
|
72
73
|
[key: string]: string;
|
|
73
74
|
} | undefined;
|
|
74
|
-
clientSecret: boolean;
|
|
75
75
|
}, ["realm", "provider", "username"]>>>;
|
|
76
76
|
};
|
|
77
77
|
export type AuthenticationState = typeof AuthenticationState;
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
export declare const authenticationStream: import("../../runtime/host-runtime.js").StreamHostRuntime<{
|
|
2
2
|
user: import("../../storage/state-declaration.js").StateDeclaration<"user", {
|
|
3
3
|
realm: string;
|
|
4
|
-
provider: string;
|
|
5
4
|
createdAt: Date;
|
|
5
|
+
username: string;
|
|
6
6
|
attributes: {
|
|
7
7
|
[key: string]: string;
|
|
8
8
|
} | undefined;
|
|
9
|
-
username: string;
|
|
10
|
-
}, "realm" | "provider" | "username", Record<string, never> & Record<"provider", import("../../storage/state-declaration.js").StateIndex<{
|
|
11
|
-
realm: string;
|
|
12
9
|
provider: string;
|
|
10
|
+
}, "realm" | "username" | "provider", Record<string, never> & Record<"provider", import("../../storage/state-declaration.js").StateIndex<{
|
|
11
|
+
realm: string;
|
|
13
12
|
createdAt: Date;
|
|
13
|
+
username: string;
|
|
14
14
|
attributes: {
|
|
15
15
|
[key: string]: string;
|
|
16
16
|
} | undefined;
|
|
17
|
-
|
|
17
|
+
provider: string;
|
|
18
18
|
}, ["realm", "provider", "username"]>>>;
|
|
19
19
|
userCredentials: import("../../storage/state-declaration.js").StateDeclaration<"userCredentials", {
|
|
20
20
|
realm: string;
|
|
21
|
-
provider: string;
|
|
22
21
|
createdAt: Date;
|
|
23
22
|
username: string;
|
|
23
|
+
provider: string;
|
|
24
24
|
password: string;
|
|
25
|
-
}, "realm" | "
|
|
25
|
+
}, "realm" | "username" | "provider", Record<string, never> & Record<"provider", import("../../storage/state-declaration.js").StateIndex<{
|
|
26
26
|
realm: string;
|
|
27
|
-
provider: string;
|
|
28
27
|
createdAt: Date;
|
|
29
28
|
username: string;
|
|
29
|
+
provider: string;
|
|
30
30
|
password: string;
|
|
31
31
|
}, ["realm", "provider", "username"]>>>;
|
|
32
32
|
userSession: import("../../storage/state-declaration.js").StateDeclaration<"userSession", {
|
|
33
|
-
realm: string;
|
|
34
33
|
clientSecret: boolean;
|
|
35
|
-
|
|
34
|
+
realm: string;
|
|
36
35
|
createdAt: Date;
|
|
37
36
|
username: string;
|
|
37
|
+
provider: string;
|
|
38
38
|
refreshToken: string;
|
|
39
39
|
externalRefreshToken: string | undefined;
|
|
40
40
|
externalAccessToken: string | undefined;
|
|
41
41
|
externalAttributes: {
|
|
42
42
|
[key: string]: string;
|
|
43
43
|
} | undefined;
|
|
44
|
-
}, "realm" | "
|
|
45
|
-
realm: string;
|
|
44
|
+
}, "realm" | "username" | "provider" | "refreshToken", Record<string, never> & Record<"provider", import("../../storage/state-declaration.js").StateIndex<{
|
|
46
45
|
clientSecret: boolean;
|
|
47
|
-
|
|
46
|
+
realm: string;
|
|
48
47
|
createdAt: Date;
|
|
49
48
|
username: string;
|
|
49
|
+
provider: string;
|
|
50
50
|
refreshToken: string;
|
|
51
51
|
externalRefreshToken: string | undefined;
|
|
52
52
|
externalAccessToken: string | undefined;
|
|
@@ -107,19 +107,30 @@ export declare const authenticationStream: import("../../runtime/host-runtime.js
|
|
|
107
107
|
}, {}, Readonly<import("../../realm/realm-definition.js").RealmDefinition<{
|
|
108
108
|
readonly github: Readonly<{
|
|
109
109
|
type: "token";
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
110
|
+
jwt: {
|
|
111
|
+
type: "jwt";
|
|
112
|
+
secret: string | {
|
|
113
|
+
type: "secret";
|
|
114
|
+
name: string;
|
|
114
115
|
};
|
|
115
|
-
|
|
116
|
+
algorithm: "HS256";
|
|
117
|
+
issuer: string;
|
|
118
|
+
audience: string;
|
|
119
|
+
expirationTime: string;
|
|
116
120
|
};
|
|
117
|
-
clientId: string;
|
|
118
121
|
issuer: string;
|
|
122
|
+
clientId: string;
|
|
119
123
|
clientSecret: string | {
|
|
120
124
|
type: "secret";
|
|
121
125
|
name: string;
|
|
122
126
|
};
|
|
127
|
+
token: {
|
|
128
|
+
url: string;
|
|
129
|
+
formData: {
|
|
130
|
+
[key: string]: string;
|
|
131
|
+
};
|
|
132
|
+
tokenAttributes: string[] | undefined;
|
|
133
|
+
};
|
|
123
134
|
authorize: {
|
|
124
135
|
url: string;
|
|
125
136
|
queryParams: {
|
|
@@ -137,20 +148,31 @@ export declare const authenticationStream: import("../../runtime/host-runtime.js
|
|
|
137
148
|
url: string;
|
|
138
149
|
tokenAttributes: string[] | undefined;
|
|
139
150
|
};
|
|
151
|
+
}>;
|
|
152
|
+
readonly microsoft: Readonly<{
|
|
153
|
+
type: "openid";
|
|
140
154
|
jwt: {
|
|
141
155
|
type: "jwt";
|
|
142
156
|
secret: string | {
|
|
143
157
|
type: "secret";
|
|
144
158
|
name: string;
|
|
145
159
|
};
|
|
146
|
-
issuer: string;
|
|
147
160
|
algorithm: "HS256";
|
|
161
|
+
issuer: string;
|
|
148
162
|
audience: string;
|
|
149
163
|
expirationTime: string;
|
|
150
164
|
};
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
165
|
+
issuer: string | string[];
|
|
166
|
+
audience: string | string[] | undefined;
|
|
167
|
+
clientId: string | undefined;
|
|
168
|
+
clientSecret: string | {
|
|
169
|
+
type: "secret";
|
|
170
|
+
name: string;
|
|
171
|
+
} | undefined;
|
|
172
|
+
jwks: {
|
|
173
|
+
url: string;
|
|
174
|
+
subKey: string;
|
|
175
|
+
};
|
|
154
176
|
token: {
|
|
155
177
|
url: string;
|
|
156
178
|
formData: {
|
|
@@ -158,12 +180,6 @@ export declare const authenticationStream: import("../../runtime/host-runtime.js
|
|
|
158
180
|
};
|
|
159
181
|
tokenAttributes: string[] | undefined;
|
|
160
182
|
} | undefined;
|
|
161
|
-
clientId: string | undefined;
|
|
162
|
-
issuer: string | string[];
|
|
163
|
-
clientSecret: string | {
|
|
164
|
-
type: "secret";
|
|
165
|
-
name: string;
|
|
166
|
-
} | undefined;
|
|
167
183
|
authorize: {
|
|
168
184
|
url: string;
|
|
169
185
|
queryParams: {
|
|
@@ -177,25 +193,31 @@ export declare const authenticationStream: import("../../runtime/host-runtime.js
|
|
|
177
193
|
grantType: string;
|
|
178
194
|
scope: string | undefined;
|
|
179
195
|
} | undefined;
|
|
196
|
+
}>;
|
|
197
|
+
readonly google: Readonly<{
|
|
198
|
+
type: "openid";
|
|
180
199
|
jwt: {
|
|
181
200
|
type: "jwt";
|
|
182
201
|
secret: string | {
|
|
183
202
|
type: "secret";
|
|
184
203
|
name: string;
|
|
185
204
|
};
|
|
186
|
-
issuer: string;
|
|
187
205
|
algorithm: "HS256";
|
|
206
|
+
issuer: string;
|
|
188
207
|
audience: string;
|
|
189
208
|
expirationTime: string;
|
|
190
209
|
};
|
|
210
|
+
issuer: string | string[];
|
|
191
211
|
audience: string | string[] | undefined;
|
|
212
|
+
clientId: string | undefined;
|
|
213
|
+
clientSecret: string | {
|
|
214
|
+
type: "secret";
|
|
215
|
+
name: string;
|
|
216
|
+
} | undefined;
|
|
192
217
|
jwks: {
|
|
193
218
|
url: string;
|
|
194
219
|
subKey: string;
|
|
195
220
|
};
|
|
196
|
-
}>;
|
|
197
|
-
readonly google: Readonly<{
|
|
198
|
-
type: "openid";
|
|
199
221
|
token: {
|
|
200
222
|
url: string;
|
|
201
223
|
formData: {
|
|
@@ -203,12 +225,6 @@ export declare const authenticationStream: import("../../runtime/host-runtime.js
|
|
|
203
225
|
};
|
|
204
226
|
tokenAttributes: string[] | undefined;
|
|
205
227
|
} | undefined;
|
|
206
|
-
clientId: string | undefined;
|
|
207
|
-
issuer: string | string[];
|
|
208
|
-
clientSecret: string | {
|
|
209
|
-
type: "secret";
|
|
210
|
-
name: string;
|
|
211
|
-
} | undefined;
|
|
212
228
|
authorize: {
|
|
213
229
|
url: string;
|
|
214
230
|
queryParams: {
|
|
@@ -222,25 +238,31 @@ export declare const authenticationStream: import("../../runtime/host-runtime.js
|
|
|
222
238
|
grantType: string;
|
|
223
239
|
scope: string | undefined;
|
|
224
240
|
} | undefined;
|
|
241
|
+
}>;
|
|
242
|
+
readonly github_actions: Readonly<{
|
|
243
|
+
type: "openid";
|
|
225
244
|
jwt: {
|
|
226
245
|
type: "jwt";
|
|
227
246
|
secret: string | {
|
|
228
247
|
type: "secret";
|
|
229
248
|
name: string;
|
|
230
249
|
};
|
|
231
|
-
issuer: string;
|
|
232
250
|
algorithm: "HS256";
|
|
251
|
+
issuer: string;
|
|
233
252
|
audience: string;
|
|
234
253
|
expirationTime: string;
|
|
235
254
|
};
|
|
255
|
+
issuer: string | string[];
|
|
236
256
|
audience: string | string[] | undefined;
|
|
257
|
+
clientId: string | undefined;
|
|
258
|
+
clientSecret: string | {
|
|
259
|
+
type: "secret";
|
|
260
|
+
name: string;
|
|
261
|
+
} | undefined;
|
|
237
262
|
jwks: {
|
|
238
263
|
url: string;
|
|
239
264
|
subKey: string;
|
|
240
265
|
};
|
|
241
|
-
}>;
|
|
242
|
-
readonly github_actions: Readonly<{
|
|
243
|
-
type: "openid";
|
|
244
266
|
token: {
|
|
245
267
|
url: string;
|
|
246
268
|
formData: {
|
|
@@ -248,12 +270,6 @@ export declare const authenticationStream: import("../../runtime/host-runtime.js
|
|
|
248
270
|
};
|
|
249
271
|
tokenAttributes: string[] | undefined;
|
|
250
272
|
} | undefined;
|
|
251
|
-
clientId: string | undefined;
|
|
252
|
-
issuer: string | string[];
|
|
253
|
-
clientSecret: string | {
|
|
254
|
-
type: "secret";
|
|
255
|
-
name: string;
|
|
256
|
-
} | undefined;
|
|
257
273
|
authorize: {
|
|
258
274
|
url: string;
|
|
259
275
|
queryParams: {
|
|
@@ -267,22 +283,6 @@ export declare const authenticationStream: import("../../runtime/host-runtime.js
|
|
|
267
283
|
grantType: string;
|
|
268
284
|
scope: string | undefined;
|
|
269
285
|
} | undefined;
|
|
270
|
-
jwt: {
|
|
271
|
-
type: "jwt";
|
|
272
|
-
secret: string | {
|
|
273
|
-
type: "secret";
|
|
274
|
-
name: string;
|
|
275
|
-
};
|
|
276
|
-
issuer: string;
|
|
277
|
-
algorithm: "HS256";
|
|
278
|
-
audience: string;
|
|
279
|
-
expirationTime: string;
|
|
280
|
-
};
|
|
281
|
-
audience: string | string[] | undefined;
|
|
282
|
-
jwks: {
|
|
283
|
-
url: string;
|
|
284
|
-
subKey: string;
|
|
285
|
-
};
|
|
286
286
|
}>;
|
|
287
287
|
readonly iwentsourcing: {
|
|
288
288
|
type: "jwt";
|
|
@@ -290,8 +290,8 @@ export declare const authenticationStream: import("../../runtime/host-runtime.js
|
|
|
290
290
|
type: "secret";
|
|
291
291
|
name: string;
|
|
292
292
|
};
|
|
293
|
-
issuer: string;
|
|
294
293
|
algorithm: "HS256";
|
|
294
|
+
issuer: string;
|
|
295
295
|
audience: string;
|
|
296
296
|
expirationTime: string;
|
|
297
297
|
};
|