@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
|
@@ -26,17 +26,17 @@ export declare const RegistryTenant: import("../../storage/state-declaration.js"
|
|
|
26
26
|
recordedAt: Date;
|
|
27
27
|
}, "tenant", Record<string, never>>;
|
|
28
28
|
export declare const RegistryTenantMembership: import("../../storage/state-declaration.js").StateDeclaration<"tenantMembership", {
|
|
29
|
+
authId: string;
|
|
29
30
|
tenant: string;
|
|
30
31
|
recordedAt: Date;
|
|
32
|
+
}, "authId" | "tenant", Record<string, never> & Record<"tenant", import("../../storage/state-declaration.js").StateIndex<{
|
|
31
33
|
authId: string;
|
|
32
|
-
}, "tenant" | "authId", Record<string, never> & Record<"tenant", import("../../storage/state-declaration.js").StateIndex<{
|
|
33
34
|
tenant: string;
|
|
34
35
|
recordedAt: Date;
|
|
35
|
-
authId: string;
|
|
36
36
|
}, ["tenant"]>> & Record<"authId", import("../../storage/state-declaration.js").StateIndex<{
|
|
37
|
+
authId: string;
|
|
37
38
|
tenant: string;
|
|
38
39
|
recordedAt: Date;
|
|
39
|
-
authId: string;
|
|
40
40
|
}, ["authId"]>>>;
|
|
41
41
|
export type RegistryTenantMembership = TypeOfEvent<typeof RegistryTenantMembership>;
|
|
42
42
|
export declare const RegistryState: {
|
|
@@ -65,17 +65,17 @@ export declare const RegistryState: {
|
|
|
65
65
|
recordedAt: Date;
|
|
66
66
|
}, "tenant", Record<string, never>>;
|
|
67
67
|
tenantMembership: import("../../storage/state-declaration.js").StateDeclaration<"tenantMembership", {
|
|
68
|
+
authId: string;
|
|
68
69
|
tenant: string;
|
|
69
70
|
recordedAt: Date;
|
|
71
|
+
}, "authId" | "tenant", Record<string, never> & Record<"tenant", import("../../storage/state-declaration.js").StateIndex<{
|
|
70
72
|
authId: string;
|
|
71
|
-
}, "tenant" | "authId", Record<string, never> & Record<"tenant", import("../../storage/state-declaration.js").StateIndex<{
|
|
72
73
|
tenant: string;
|
|
73
74
|
recordedAt: Date;
|
|
74
|
-
authId: string;
|
|
75
75
|
}, ["tenant"]>> & Record<"authId", import("../../storage/state-declaration.js").StateIndex<{
|
|
76
|
+
authId: string;
|
|
76
77
|
tenant: string;
|
|
77
78
|
recordedAt: Date;
|
|
78
|
-
authId: string;
|
|
79
79
|
}, ["authId"]>>>;
|
|
80
80
|
auth: import("../../storage/state-declaration.js").StateDeclaration<"auth", {
|
|
81
81
|
realm: string;
|
|
@@ -83,19 +83,32 @@ export declare const RegistryState: {
|
|
|
83
83
|
[key: string]: {
|
|
84
84
|
type: "jwt";
|
|
85
85
|
secret: string | {
|
|
86
|
-
name: string;
|
|
87
86
|
type: "secret";
|
|
87
|
+
name: string;
|
|
88
88
|
};
|
|
89
|
+
algorithm: "HS256";
|
|
89
90
|
issuer: string;
|
|
90
91
|
audience: string;
|
|
91
|
-
algorithm: "HS256";
|
|
92
92
|
expirationTime: string;
|
|
93
93
|
} | {
|
|
94
94
|
type: "openid";
|
|
95
|
+
jwt: {
|
|
96
|
+
type: "jwt";
|
|
97
|
+
secret: string | {
|
|
98
|
+
type: "secret";
|
|
99
|
+
name: string;
|
|
100
|
+
};
|
|
101
|
+
algorithm: "HS256";
|
|
102
|
+
issuer: string;
|
|
103
|
+
audience: string;
|
|
104
|
+
expirationTime: string;
|
|
105
|
+
};
|
|
106
|
+
issuer: string | string[];
|
|
107
|
+
audience: string | string[] | undefined;
|
|
95
108
|
clientId: string | undefined;
|
|
96
109
|
clientSecret: string | {
|
|
97
|
-
name: string;
|
|
98
110
|
type: "secret";
|
|
111
|
+
name: string;
|
|
99
112
|
} | undefined;
|
|
100
113
|
jwks: {
|
|
101
114
|
url: string;
|
|
@@ -121,25 +134,24 @@ export declare const RegistryState: {
|
|
|
121
134
|
grantType: string;
|
|
122
135
|
scope: string | undefined;
|
|
123
136
|
} | undefined;
|
|
124
|
-
|
|
125
|
-
|
|
137
|
+
} | {
|
|
138
|
+
type: "token";
|
|
126
139
|
jwt: {
|
|
127
140
|
type: "jwt";
|
|
128
141
|
secret: string | {
|
|
129
|
-
name: string;
|
|
130
142
|
type: "secret";
|
|
143
|
+
name: string;
|
|
131
144
|
};
|
|
145
|
+
algorithm: "HS256";
|
|
132
146
|
issuer: string;
|
|
133
147
|
audience: string;
|
|
134
|
-
algorithm: "HS256";
|
|
135
148
|
expirationTime: string;
|
|
136
149
|
};
|
|
137
|
-
|
|
138
|
-
type: "token";
|
|
150
|
+
issuer: string;
|
|
139
151
|
clientId: string;
|
|
140
152
|
clientSecret: string | {
|
|
141
|
-
name: string;
|
|
142
153
|
type: "secret";
|
|
154
|
+
name: string;
|
|
143
155
|
};
|
|
144
156
|
token: {
|
|
145
157
|
url: string;
|
|
@@ -161,18 +173,6 @@ export declare const RegistryState: {
|
|
|
161
173
|
grantType: string;
|
|
162
174
|
scope: string | undefined;
|
|
163
175
|
};
|
|
164
|
-
issuer: string;
|
|
165
|
-
jwt: {
|
|
166
|
-
type: "jwt";
|
|
167
|
-
secret: string | {
|
|
168
|
-
name: string;
|
|
169
|
-
type: "secret";
|
|
170
|
-
};
|
|
171
|
-
issuer: string;
|
|
172
|
-
audience: string;
|
|
173
|
-
algorithm: "HS256";
|
|
174
|
-
expirationTime: string;
|
|
175
|
-
};
|
|
176
176
|
user: {
|
|
177
177
|
url: string;
|
|
178
178
|
tokenAttributes: string[] | undefined;
|
|
@@ -185,19 +185,32 @@ export declare const RegistryState: {
|
|
|
185
185
|
[key: string]: {
|
|
186
186
|
type: "jwt";
|
|
187
187
|
secret: string | {
|
|
188
|
-
name: string;
|
|
189
188
|
type: "secret";
|
|
189
|
+
name: string;
|
|
190
190
|
};
|
|
191
|
+
algorithm: "HS256";
|
|
191
192
|
issuer: string;
|
|
192
193
|
audience: string;
|
|
193
|
-
algorithm: "HS256";
|
|
194
194
|
expirationTime: string;
|
|
195
195
|
} | {
|
|
196
196
|
type: "openid";
|
|
197
|
+
jwt: {
|
|
198
|
+
type: "jwt";
|
|
199
|
+
secret: string | {
|
|
200
|
+
type: "secret";
|
|
201
|
+
name: string;
|
|
202
|
+
};
|
|
203
|
+
algorithm: "HS256";
|
|
204
|
+
issuer: string;
|
|
205
|
+
audience: string;
|
|
206
|
+
expirationTime: string;
|
|
207
|
+
};
|
|
208
|
+
issuer: string | string[];
|
|
209
|
+
audience: string | string[] | undefined;
|
|
197
210
|
clientId: string | undefined;
|
|
198
211
|
clientSecret: string | {
|
|
199
|
-
name: string;
|
|
200
212
|
type: "secret";
|
|
213
|
+
name: string;
|
|
201
214
|
} | undefined;
|
|
202
215
|
jwks: {
|
|
203
216
|
url: string;
|
|
@@ -223,25 +236,24 @@ export declare const RegistryState: {
|
|
|
223
236
|
grantType: string;
|
|
224
237
|
scope: string | undefined;
|
|
225
238
|
} | undefined;
|
|
226
|
-
|
|
227
|
-
|
|
239
|
+
} | {
|
|
240
|
+
type: "token";
|
|
228
241
|
jwt: {
|
|
229
242
|
type: "jwt";
|
|
230
243
|
secret: string | {
|
|
231
|
-
name: string;
|
|
232
244
|
type: "secret";
|
|
245
|
+
name: string;
|
|
233
246
|
};
|
|
247
|
+
algorithm: "HS256";
|
|
234
248
|
issuer: string;
|
|
235
249
|
audience: string;
|
|
236
|
-
algorithm: "HS256";
|
|
237
250
|
expirationTime: string;
|
|
238
251
|
};
|
|
239
|
-
|
|
240
|
-
type: "token";
|
|
252
|
+
issuer: string;
|
|
241
253
|
clientId: string;
|
|
242
254
|
clientSecret: string | {
|
|
243
|
-
name: string;
|
|
244
255
|
type: "secret";
|
|
256
|
+
name: string;
|
|
245
257
|
};
|
|
246
258
|
token: {
|
|
247
259
|
url: string;
|
|
@@ -263,18 +275,6 @@ export declare const RegistryState: {
|
|
|
263
275
|
grantType: string;
|
|
264
276
|
scope: string | undefined;
|
|
265
277
|
};
|
|
266
|
-
issuer: string;
|
|
267
|
-
jwt: {
|
|
268
|
-
type: "jwt";
|
|
269
|
-
secret: string | {
|
|
270
|
-
name: string;
|
|
271
|
-
type: "secret";
|
|
272
|
-
};
|
|
273
|
-
issuer: string;
|
|
274
|
-
audience: string;
|
|
275
|
-
algorithm: "HS256";
|
|
276
|
-
expirationTime: string;
|
|
277
|
-
};
|
|
278
278
|
user: {
|
|
279
279
|
url: string;
|
|
280
280
|
tokenAttributes: string[] | undefined;
|
|
@@ -283,17 +283,17 @@ export declare const RegistryState: {
|
|
|
283
283
|
};
|
|
284
284
|
}, ["realm"]>>>;
|
|
285
285
|
streamEvents: import("../../storage/state-declaration.js").StateDeclaration<"streamEvents", {
|
|
286
|
-
realm: string;
|
|
287
|
-
pattern: string;
|
|
288
|
-
version: string;
|
|
289
|
-
event: string;
|
|
290
286
|
schema: {
|
|
291
287
|
schemas: {
|
|
292
288
|
[key: string]: import("../../json-schema/json-schema.js").JsonSchema;
|
|
293
289
|
};
|
|
294
290
|
mainSchema: import("../../json-schema/json-schema.js").JsonSchema;
|
|
295
291
|
};
|
|
296
|
-
|
|
292
|
+
event: string;
|
|
293
|
+
realm: string;
|
|
294
|
+
pattern: string;
|
|
295
|
+
version: string;
|
|
296
|
+
}, "event" | "realm" | "pattern" | "version", Record<string, never>>;
|
|
297
297
|
aggregations: import("../../storage/state-declaration.js").StateDeclaration<"aggregations", {
|
|
298
298
|
realm: string;
|
|
299
299
|
pattern: string;
|