@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.
Files changed (68) hide show
  1. package/dist/aggregation/aggregation-declaration.d.ts +27 -27
  2. package/dist/authentication/public-auth-providers.js.map +1 -1
  3. package/dist/event-store/create-file-event-store.d.ts +1 -1
  4. package/dist/example/todo-example.d.ts +6 -6
  5. package/dist/management/access/access-events.d.ts +104 -104
  6. package/dist/management/access/access-state.d.ts +269 -269
  7. package/dist/management/access/access-stream.d.ts +286 -286
  8. package/dist/management/authentication/authentication-state.d.ts +21 -21
  9. package/dist/management/authentication/authentication-stream.d.ts +66 -66
  10. package/dist/management/permission/permission-aggregation.d.ts +101 -101
  11. package/dist/management/permission/permission-aggregation.test.js +0 -1
  12. package/dist/management/permission/permission-aggregation.test.js.map +1 -1
  13. package/dist/management/permission-error-schema.d.ts +29 -29
  14. package/dist/management/registry/registry-events.d.ts +186 -186
  15. package/dist/management/registry/registry-state.d.ts +55 -55
  16. package/dist/management/registry/registry-stream.d.ts +284 -284
  17. package/dist/management/state-read-policy.js.map +1 -1
  18. package/dist/management/system/iwentsourcing-realm.d.ts +106 -106
  19. package/dist/runtime/host-result-builder.d.ts +13 -13
  20. package/dist/runtime/permission-grant-schema.d.ts +7 -7
  21. package/dist/runtime/runtime-result.d.ts +26 -26
  22. package/dist/sequencer/create-sequencer-storage.d.ts +4 -4
  23. package/dist/sequencer/create-state-processor.d.ts +4 -4
  24. package/dist/sequencer/sequence-topic.d.ts +1 -1
  25. package/dist/stream/stream-declaration.d.ts +34 -34
  26. package/dist/tsbuild.info +1 -1
  27. package/dist/utils/combine-abort-signal.js.map +1 -1
  28. package/dist/worker/create-stream-worker.d.ts +2 -2
  29. package/package.json +1 -1
  30. package/dist/lock/exclusive-lock.d.ts +0 -4
  31. package/dist/lock/exclusive-lock.js +0 -8
  32. package/dist/lock/exclusive-lock.js.map +0 -1
  33. package/dist/management/managed-permission-denied-error.d.ts +0 -50
  34. package/dist/management/managed-permission-denied-error.js +0 -26
  35. package/dist/management/managed-permission-denied-error.js.map +0 -1
  36. package/dist/processing/create-event-processor.d.ts +0 -23
  37. package/dist/processing/create-event-processor.js +0 -133
  38. package/dist/processing/create-event-processor.js.map +0 -1
  39. package/dist/processing/create-event-processor.test.d.ts +0 -1
  40. package/dist/processing/create-event-processor.test.js +0 -218
  41. package/dist/processing/create-event-processor.test.js.map +0 -1
  42. package/dist/processing/event-processing-topic.d.ts +0 -5
  43. package/dist/processing/event-processing-topic.js +0 -13
  44. package/dist/processing/event-processing-topic.js.map +0 -1
  45. package/dist/processing/select-event-shard.d.ts +0 -1
  46. package/dist/processing/select-event-shard.js +0 -14
  47. package/dist/processing/select-event-shard.js.map +0 -1
  48. package/dist/processing/sequencer-cache-key.d.ts +0 -2
  49. package/dist/processing/sequencer-cache-key.js +0 -13
  50. package/dist/processing/sequencer-cache-key.js.map +0 -1
  51. package/dist/tmp-typetest.d.ts +0 -1
  52. package/dist/tmp-typetest.js +0 -3
  53. package/dist/tmp-typetest.js.map +0 -1
  54. package/dist/tracer/create-noop-telemetry.d.ts +0 -2
  55. package/dist/tracer/create-noop-telemetry.js +0 -22
  56. package/dist/tracer/create-noop-telemetry.js.map +0 -1
  57. package/dist/tracer/create-tracer.d.ts +0 -2
  58. package/dist/tracer/create-tracer.js +0 -15
  59. package/dist/tracer/create-tracer.js.map +0 -1
  60. package/dist/utils/lru-cache.d.ts +0 -11
  61. package/dist/utils/lru-cache.js +0 -44
  62. package/dist/utils/lru-cache.js.map +0 -1
  63. package/dist/worker/create-stream-wroker.test.d.ts +0 -0
  64. package/dist/worker/create-stream-wroker.test.js +0 -2
  65. package/dist/worker/create-stream-wroker.test.js.map +0 -1
  66. package/dist/worker/process-pending-events.d.ts +0 -20
  67. package/dist/worker/process-pending-events.js +0 -106
  68. package/dist/worker/process-pending-events.js.map +0 -1
@@ -2,6 +2,40 @@ export declare const registryStream: import("../../runtime/host-runtime.js").Str
2
2
  realm: import("../../storage/state-declaration.js").StateDeclaration<"realm", {
3
3
  name: string;
4
4
  }, "name", Record<string, never>>;
5
+ streams: import("../../storage/state-declaration.js").StateDeclaration<"streams", {
6
+ realm: string;
7
+ pattern: string;
8
+ version: string;
9
+ runtime: {
10
+ source: string;
11
+ exportName: string;
12
+ };
13
+ }, "realm" | "pattern" | "version", Record<string, never> & Record<"versions", import("../../storage/state-declaration.js").StateIndex<{
14
+ realm: string;
15
+ pattern: string;
16
+ version: string;
17
+ runtime: {
18
+ source: string;
19
+ exportName: string;
20
+ };
21
+ }, ["realm", "pattern"]>>>;
22
+ tenants: import("../../storage/state-declaration.js").StateDeclaration<"tenants", {
23
+ tenant: string;
24
+ recordedAt: Date;
25
+ }, "tenant", Record<string, never>>;
26
+ tenantMembership: import("../../storage/state-declaration.js").StateDeclaration<"tenantMembership", {
27
+ authId: string;
28
+ tenant: string;
29
+ recordedAt: Date;
30
+ }, "authId" | "tenant", Record<string, never> & Record<"tenant", import("../../storage/state-declaration.js").StateIndex<{
31
+ authId: string;
32
+ tenant: string;
33
+ recordedAt: Date;
34
+ }, ["tenant"]>> & Record<"authId", import("../../storage/state-declaration.js").StateIndex<{
35
+ authId: string;
36
+ tenant: string;
37
+ recordedAt: Date;
38
+ }, ["authId"]>>>;
5
39
  auth: import("../../storage/state-declaration.js").StateDeclaration<"auth", {
6
40
  realm: string;
7
41
  providers: {
@@ -11,55 +45,34 @@ export declare const registryStream: import("../../runtime/host-runtime.js").Str
11
45
  type: "secret";
12
46
  name: string;
13
47
  };
14
- issuer: string;
15
48
  algorithm: "HS256";
49
+ issuer: string;
16
50
  audience: string;
17
51
  expirationTime: string;
18
52
  } | {
19
- type: "token";
20
- token: {
21
- url: string;
22
- formData: {
23
- [key: string]: string;
24
- };
25
- tokenAttributes: string[] | undefined;
26
- };
27
- clientId: string;
28
- issuer: string;
29
- clientSecret: string | {
30
- type: "secret";
31
- name: string;
32
- };
33
- authorize: {
34
- url: string;
35
- queryParams: {
36
- [key: string]: string;
37
- };
38
- };
39
- deviceCode: {
40
- clientSecret: boolean;
41
- verificationUriName: string;
42
- codeUrl: string;
43
- grantType: string;
44
- scope: string | undefined;
45
- };
46
- user: {
47
- url: string;
48
- tokenAttributes: string[] | undefined;
49
- };
53
+ type: "openid";
50
54
  jwt: {
51
55
  type: "jwt";
52
56
  secret: string | {
53
57
  type: "secret";
54
58
  name: string;
55
59
  };
56
- issuer: string;
57
60
  algorithm: "HS256";
61
+ issuer: string;
58
62
  audience: string;
59
63
  expirationTime: string;
60
64
  };
61
- } | {
62
- type: "openid";
65
+ issuer: string | string[];
66
+ audience: string | string[] | undefined;
67
+ clientId: string | undefined;
68
+ clientSecret: string | {
69
+ type: "secret";
70
+ name: string;
71
+ } | undefined;
72
+ jwks: {
73
+ url: string;
74
+ subKey: string;
75
+ };
63
76
  token: {
64
77
  url: string;
65
78
  formData: {
@@ -67,12 +80,6 @@ export declare const registryStream: import("../../runtime/host-runtime.js").Str
67
80
  };
68
81
  tokenAttributes: string[] | undefined;
69
82
  } | undefined;
70
- clientId: string | undefined;
71
- issuer: string | string[];
72
- clientSecret: string | {
73
- type: "secret";
74
- name: string;
75
- } | undefined;
76
83
  authorize: {
77
84
  url: string;
78
85
  queryParams: {
@@ -86,39 +93,25 @@ export declare const registryStream: import("../../runtime/host-runtime.js").Str
86
93
  grantType: string;
87
94
  scope: string | undefined;
88
95
  } | undefined;
96
+ } | {
97
+ type: "token";
89
98
  jwt: {
90
99
  type: "jwt";
91
100
  secret: string | {
92
101
  type: "secret";
93
102
  name: string;
94
103
  };
95
- issuer: string;
96
104
  algorithm: "HS256";
105
+ issuer: string;
97
106
  audience: string;
98
107
  expirationTime: string;
99
108
  };
100
- audience: string | string[] | undefined;
101
- jwks: {
102
- url: string;
103
- subKey: string;
104
- };
105
- };
106
- };
107
- }, "realm", Record<string, never> & Record<"realm", import("../../storage/state-declaration.js").StateIndex<{
108
- realm: string;
109
- providers: {
110
- [key: string]: {
111
- type: "jwt";
112
- secret: string | {
109
+ issuer: string;
110
+ clientId: string;
111
+ clientSecret: string | {
113
112
  type: "secret";
114
113
  name: string;
115
114
  };
116
- issuer: string;
117
- algorithm: "HS256";
118
- audience: string;
119
- expirationTime: string;
120
- } | {
121
- type: "token";
122
115
  token: {
123
116
  url: string;
124
117
  formData: {
@@ -126,12 +119,6 @@ export declare const registryStream: import("../../runtime/host-runtime.js").Str
126
119
  };
127
120
  tokenAttributes: string[] | undefined;
128
121
  };
129
- clientId: string;
130
- issuer: string;
131
- clientSecret: string | {
132
- type: "secret";
133
- name: string;
134
- };
135
122
  authorize: {
136
123
  url: string;
137
124
  queryParams: {
@@ -149,19 +136,45 @@ export declare const registryStream: import("../../runtime/host-runtime.js").Str
149
136
  url: string;
150
137
  tokenAttributes: string[] | undefined;
151
138
  };
139
+ };
140
+ };
141
+ }, "realm", Record<string, never> & Record<"realm", import("../../storage/state-declaration.js").StateIndex<{
142
+ realm: string;
143
+ providers: {
144
+ [key: string]: {
145
+ type: "jwt";
146
+ secret: string | {
147
+ type: "secret";
148
+ name: string;
149
+ };
150
+ algorithm: "HS256";
151
+ issuer: string;
152
+ audience: string;
153
+ expirationTime: string;
154
+ } | {
155
+ type: "openid";
152
156
  jwt: {
153
157
  type: "jwt";
154
158
  secret: string | {
155
159
  type: "secret";
156
160
  name: string;
157
161
  };
158
- issuer: string;
159
162
  algorithm: "HS256";
163
+ issuer: string;
160
164
  audience: string;
161
165
  expirationTime: string;
162
166
  };
163
- } | {
164
- type: "openid";
167
+ issuer: string | string[];
168
+ audience: string | string[] | undefined;
169
+ clientId: string | undefined;
170
+ clientSecret: string | {
171
+ type: "secret";
172
+ name: string;
173
+ } | undefined;
174
+ jwks: {
175
+ url: string;
176
+ subKey: string;
177
+ };
165
178
  token: {
166
179
  url: string;
167
180
  formData: {
@@ -169,12 +182,6 @@ export declare const registryStream: import("../../runtime/host-runtime.js").Str
169
182
  };
170
183
  tokenAttributes: string[] | undefined;
171
184
  } | undefined;
172
- clientId: string | undefined;
173
- issuer: string | string[];
174
- clientSecret: string | {
175
- type: "secret";
176
- name: string;
177
- } | undefined;
178
185
  authorize: {
179
186
  url: string;
180
187
  queryParams: {
@@ -188,58 +195,68 @@ export declare const registryStream: import("../../runtime/host-runtime.js").Str
188
195
  grantType: string;
189
196
  scope: string | undefined;
190
197
  } | undefined;
198
+ } | {
199
+ type: "token";
191
200
  jwt: {
192
201
  type: "jwt";
193
202
  secret: string | {
194
203
  type: "secret";
195
204
  name: string;
196
205
  };
197
- issuer: string;
198
206
  algorithm: "HS256";
207
+ issuer: string;
199
208
  audience: string;
200
209
  expirationTime: string;
201
210
  };
202
- audience: string | string[] | undefined;
203
- jwks: {
211
+ issuer: string;
212
+ clientId: string;
213
+ clientSecret: string | {
214
+ type: "secret";
215
+ name: string;
216
+ };
217
+ token: {
204
218
  url: string;
205
- subKey: string;
219
+ formData: {
220
+ [key: string]: string;
221
+ };
222
+ tokenAttributes: string[] | undefined;
223
+ };
224
+ authorize: {
225
+ url: string;
226
+ queryParams: {
227
+ [key: string]: string;
228
+ };
229
+ };
230
+ deviceCode: {
231
+ clientSecret: boolean;
232
+ verificationUriName: string;
233
+ codeUrl: string;
234
+ grantType: string;
235
+ scope: string | undefined;
236
+ };
237
+ user: {
238
+ url: string;
239
+ tokenAttributes: string[] | undefined;
206
240
  };
207
241
  };
208
242
  };
209
243
  }, ["realm"]>>>;
210
- streams: import("../../storage/state-declaration.js").StateDeclaration<"streams", {
211
- realm: string;
212
- version: string;
213
- pattern: string;
214
- runtime: {
215
- source: string;
216
- exportName: string;
217
- };
218
- }, "realm" | "version" | "pattern", Record<string, never> & Record<"versions", import("../../storage/state-declaration.js").StateIndex<{
219
- realm: string;
220
- version: string;
221
- pattern: string;
222
- runtime: {
223
- source: string;
224
- exportName: string;
225
- };
226
- }, ["realm", "pattern"]>>>;
227
244
  streamEvents: import("../../storage/state-declaration.js").StateDeclaration<"streamEvents", {
228
- event: string;
229
- realm: string;
230
- version: string;
231
- pattern: string;
232
245
  schema: {
233
246
  schemas: {
234
247
  [key: string]: import("../../json-schema/json-schema.js").JsonSchema;
235
248
  };
236
249
  mainSchema: import("../../json-schema/json-schema.js").JsonSchema;
237
250
  };
238
- }, "event" | "realm" | "version" | "pattern", Record<string, never>>;
239
- aggregations: import("../../storage/state-declaration.js").StateDeclaration<"aggregations", {
251
+ event: string;
240
252
  realm: string;
253
+ pattern: string;
241
254
  version: string;
255
+ }, "event" | "realm" | "pattern" | "version", Record<string, never>>;
256
+ aggregations: import("../../storage/state-declaration.js").StateDeclaration<"aggregations", {
257
+ realm: string;
242
258
  pattern: string;
259
+ version: string;
243
260
  runtime: {
244
261
  source: string;
245
262
  exportName: string;
@@ -247,10 +264,10 @@ export declare const registryStream: import("../../runtime/host-runtime.js").Str
247
264
  streamSources: {
248
265
  streams: string[];
249
266
  };
250
- }, "realm" | "version" | "pattern", Record<string, never> & Record<"realm", import("../../storage/state-declaration.js").StateIndex<{
267
+ }, "realm" | "pattern" | "version", Record<string, never> & Record<"realm", import("../../storage/state-declaration.js").StateIndex<{
251
268
  realm: string;
252
- version: string;
253
269
  pattern: string;
270
+ version: string;
254
271
  runtime: {
255
272
  source: string;
256
273
  exportName: string;
@@ -261,36 +278,19 @@ export declare const registryStream: import("../../runtime/host-runtime.js").Str
261
278
  }, ["realm"]>>>;
262
279
  aggregationStreamSources: import("../../storage/state-declaration.js").StateDeclaration<"aggregationStreamSources", {
263
280
  realm: string;
264
- version: string;
265
281
  pattern: string;
282
+ version: string;
266
283
  streamPattern: string;
267
284
  streamVersion: string;
268
285
  streamEvent: string;
269
- }, "realm" | "version" | "pattern" | "streamPattern" | "streamVersion" | "streamEvent", Record<string, never> & Record<"source", import("../../storage/state-declaration.js").StateIndex<{
286
+ }, "realm" | "pattern" | "version" | "streamPattern" | "streamVersion" | "streamEvent", Record<string, never> & Record<"source", import("../../storage/state-declaration.js").StateIndex<{
270
287
  realm: string;
271
- version: string;
272
288
  pattern: string;
289
+ version: string;
273
290
  streamPattern: string;
274
291
  streamVersion: string;
275
292
  streamEvent: string;
276
293
  }, ["realm", "streamPattern", "streamVersion", "streamEvent", "pattern", "version"]>>>;
277
- tenants: import("../../storage/state-declaration.js").StateDeclaration<"tenants", {
278
- tenant: string;
279
- recordedAt: Date;
280
- }, "tenant", Record<string, never>>;
281
- tenantMembership: import("../../storage/state-declaration.js").StateDeclaration<"tenantMembership", {
282
- authId: string;
283
- tenant: string;
284
- recordedAt: Date;
285
- }, "authId" | "tenant", Record<string, never> & Record<"tenant", import("../../storage/state-declaration.js").StateIndex<{
286
- authId: string;
287
- tenant: string;
288
- recordedAt: Date;
289
- }, ["tenant"]>> & Record<"authId", import("../../storage/state-declaration.js").StateIndex<{
290
- authId: string;
291
- tenant: string;
292
- recordedAt: Date;
293
- }, ["authId"]>>>;
294
294
  }, {
295
295
  "upload-definition": import("../../event-store/event-declarations.js").EventDeclaration<import("../../storage/event-props-output.js").EventPropsOutput<{
296
296
  name: import("../../typing/string-type-description.js").StringTypeDescription<string>;
@@ -302,103 +302,137 @@ export declare const registryStream: import("../../runtime/host-runtime.js").Str
302
302
  type: "secret";
303
303
  name: string;
304
304
  };
305
- issuer: string;
306
305
  algorithm: "HS256";
306
+ issuer: string;
307
307
  audience: string;
308
308
  expirationTime: string;
309
309
  } | {
310
- type: "token";
311
- token: {
312
- url: string;
313
- formData: {
314
- [key: string]: string;
310
+ type: "openid";
311
+ jwt: {
312
+ type: "jwt";
313
+ secret: string | {
314
+ type: "secret";
315
+ name: string;
315
316
  };
316
- tokenAttributes: string[] | undefined;
317
+ algorithm: "HS256";
318
+ issuer: string;
319
+ audience: string;
320
+ expirationTime: string;
317
321
  };
318
- clientId: string;
319
- issuer: string;
322
+ issuer: string | string[];
323
+ audience: string | string[] | undefined;
324
+ clientId: string | undefined;
320
325
  clientSecret: string | {
321
326
  type: "secret";
322
327
  name: string;
328
+ } | undefined;
329
+ jwks: {
330
+ url: string;
331
+ subKey: string;
323
332
  };
333
+ token: {
334
+ url: string;
335
+ formData: {
336
+ [key: string]: string;
337
+ };
338
+ tokenAttributes: string[] | undefined;
339
+ } | undefined;
324
340
  authorize: {
325
341
  url: string;
326
342
  queryParams: {
327
343
  [key: string]: string;
328
344
  };
329
- };
345
+ } | undefined;
330
346
  deviceCode: {
331
347
  clientSecret: boolean;
332
348
  verificationUriName: string;
333
349
  codeUrl: string;
334
350
  grantType: string;
335
351
  scope: string | undefined;
336
- };
337
- user: {
338
- url: string;
339
- tokenAttributes: string[] | undefined;
340
- };
352
+ } | undefined;
353
+ } | {
354
+ type: "token";
341
355
  jwt: {
342
356
  type: "jwt";
343
357
  secret: string | {
344
358
  type: "secret";
345
359
  name: string;
346
360
  };
347
- issuer: string;
348
361
  algorithm: "HS256";
362
+ issuer: string;
349
363
  audience: string;
350
364
  expirationTime: string;
351
365
  };
352
- } | {
353
- type: "openid";
354
- token: {
355
- url: string;
356
- formData: {
357
- [key: string]: string;
358
- };
359
- tokenAttributes: string[] | undefined;
360
- } | undefined;
361
- clientId: string | undefined;
362
- issuer: string | string[];
366
+ issuer: string;
367
+ clientId: string;
363
368
  clientSecret: string | {
364
369
  type: "secret";
365
370
  name: string;
366
- } | undefined;
371
+ };
372
+ token: {
373
+ url: string;
374
+ formData: {
375
+ [key: string]: string;
376
+ };
377
+ tokenAttributes: string[] | undefined;
378
+ };
367
379
  authorize: {
368
380
  url: string;
369
381
  queryParams: {
370
382
  [key: string]: string;
371
383
  };
372
- } | undefined;
384
+ };
373
385
  deviceCode: {
374
386
  clientSecret: boolean;
375
387
  verificationUriName: string;
376
388
  codeUrl: string;
377
389
  grantType: string;
378
390
  scope: string | undefined;
379
- } | undefined;
380
- jwt: {
381
- type: "jwt";
382
- secret: string | {
383
- type: "secret";
384
- name: string;
385
- };
386
- issuer: string;
387
- algorithm: "HS256";
388
- audience: string;
389
- expirationTime: string;
390
391
  };
391
- audience: string | string[] | undefined;
392
- jwks: {
392
+ user: {
393
393
  url: string;
394
- subKey: string;
394
+ tokenAttributes: string[] | undefined;
395
395
  };
396
396
  };
397
397
  }>;
398
398
  streams: import("../../typing/array-type-description.js").ArrayTypeDescription<{
399
+ auth: {
400
+ allowAnonymous: boolean;
401
+ };
402
+ outputs: {
403
+ [key: string]: {
404
+ schema: {
405
+ schemas: {
406
+ [key: string]: import("../../json-schema/json-schema.js").JsonSchema;
407
+ };
408
+ mainSchema: import("../../json-schema/json-schema.js").JsonSchema;
409
+ };
410
+ };
411
+ };
399
412
  realm: string;
400
- version: string;
401
413
  pattern: string;
414
+ version: string;
415
+ runtime: {
416
+ source: string;
417
+ exportName: string;
418
+ };
419
+ states: {
420
+ [key: string]: {
421
+ key: string[];
422
+ indices: {
423
+ [key: string]: {
424
+ fields: string[];
425
+ unique: boolean;
426
+ };
427
+ };
428
+ schema: {
429
+ schemas: {
430
+ [key: string]: import("../../json-schema/json-schema.js").JsonSchema;
431
+ };
432
+ mainSchema: import("../../json-schema/json-schema.js").JsonSchema;
433
+ };
434
+ };
435
+ };
402
436
  events: {
403
437
  [key: string]: {
404
438
  schema: {
@@ -411,34 +445,29 @@ export declare const registryStream: import("../../runtime/host-runtime.js").Str
411
445
  };
412
446
  stateGrant: {
413
447
  state: string;
414
- methods: ("get" | "range" | "observe" | "iterate" | "observeRange")[];
415
448
  filters: {
416
- field: string;
417
449
  value: string;
450
+ field: string;
418
451
  }[];
419
452
  access: "read" | "write";
453
+ methods: ("get" | "range" | "observe" | "iterate" | "observeRange")[];
420
454
  }[];
421
455
  eventGrant: {
456
+ event: string;
422
457
  filters: {
423
- field: string;
424
458
  value: string;
459
+ field: string;
425
460
  }[];
426
461
  access: "read" | "write";
427
- event: string;
428
462
  }[];
463
+ }>;
464
+ aggregations: import("../../typing/array-type-description.js").ArrayTypeDescription<{
429
465
  auth: {
430
466
  allowAnonymous: boolean;
431
467
  };
432
- outputs: {
433
- [key: string]: {
434
- schema: {
435
- schemas: {
436
- [key: string]: import("../../json-schema/json-schema.js").JsonSchema;
437
- };
438
- mainSchema: import("../../json-schema/json-schema.js").JsonSchema;
439
- };
440
- };
441
- };
468
+ realm: string;
469
+ pattern: string;
470
+ version: string;
442
471
  runtime: {
443
472
  source: string;
444
473
  exportName: string;
@@ -446,25 +475,20 @@ export declare const registryStream: import("../../runtime/host-runtime.js").Str
446
475
  states: {
447
476
  [key: string]: {
448
477
  key: string[];
449
- schema: {
450
- schemas: {
451
- [key: string]: import("../../json-schema/json-schema.js").JsonSchema;
452
- };
453
- mainSchema: import("../../json-schema/json-schema.js").JsonSchema;
454
- };
455
478
  indices: {
456
479
  [key: string]: {
457
480
  fields: string[];
458
481
  unique: boolean;
459
482
  };
460
483
  };
484
+ schema: {
485
+ schemas: {
486
+ [key: string]: import("../../json-schema/json-schema.js").JsonSchema;
487
+ };
488
+ mainSchema: import("../../json-schema/json-schema.js").JsonSchema;
489
+ };
461
490
  };
462
491
  };
463
- }>;
464
- aggregations: import("../../typing/array-type-description.js").ArrayTypeDescription<{
465
- realm: string;
466
- version: string;
467
- pattern: string;
468
492
  events: {
469
493
  [key: string]: {
470
494
  schema: {
@@ -473,13 +497,12 @@ export declare const registryStream: import("../../runtime/host-runtime.js").Str
473
497
  };
474
498
  mainSchema: import("../../json-schema/json-schema.js").JsonSchema;
475
499
  };
476
- output: string;
500
+ event: string;
477
501
  stream: {
478
- version: string;
479
502
  pattern: string;
503
+ version: string;
480
504
  };
481
505
  } | {
482
- event: string;
483
506
  schema: {
484
507
  schemas: {
485
508
  [key: string]: import("../../json-schema/json-schema.js").JsonSchema;
@@ -487,52 +510,29 @@ export declare const registryStream: import("../../runtime/host-runtime.js").Str
487
510
  mainSchema: import("../../json-schema/json-schema.js").JsonSchema;
488
511
  };
489
512
  stream: {
490
- version: string;
491
513
  pattern: string;
514
+ version: string;
492
515
  };
516
+ output: string;
493
517
  };
494
518
  };
495
519
  stateGrant: {
496
520
  state: string;
497
- methods: ("get" | "range" | "observe" | "iterate" | "observeRange")[];
498
521
  filters: {
499
- field: string;
500
522
  value: string;
523
+ field: string;
501
524
  }[];
502
525
  access: "read" | "write";
526
+ methods: ("get" | "range" | "observe" | "iterate" | "observeRange")[];
503
527
  }[];
504
528
  eventGrant: {
529
+ event: string;
505
530
  filters: {
506
- field: string;
507
531
  value: string;
532
+ field: string;
508
533
  }[];
509
534
  access: "read" | "write";
510
- event: string;
511
535
  }[];
512
- auth: {
513
- allowAnonymous: boolean;
514
- };
515
- runtime: {
516
- source: string;
517
- exportName: string;
518
- };
519
- states: {
520
- [key: string]: {
521
- key: string[];
522
- schema: {
523
- schemas: {
524
- [key: string]: import("../../json-schema/json-schema.js").JsonSchema;
525
- };
526
- mainSchema: import("../../json-schema/json-schema.js").JsonSchema;
527
- };
528
- indices: {
529
- [key: string]: {
530
- fields: string[];
531
- unique: boolean;
532
- };
533
- };
534
- };
535
- };
536
536
  }>;
537
537
  }>> & {
538
538
  key: "upload-definition";
@@ -550,21 +550,21 @@ export declare const registryStream: import("../../runtime/host-runtime.js").Str
550
550
  iss: string;
551
551
  }>;
552
552
  eventGrants: import("../../typing/optional-type-description.js").OptionalTypeDescription<{
553
+ event: string;
553
554
  filters: {
554
- field: string;
555
555
  value: string;
556
+ field: string;
556
557
  }[];
557
558
  access: "read" | "write";
558
- event: string;
559
559
  }[]>;
560
560
  stateGrants: import("../../typing/optional-type-description.js").OptionalTypeDescription<{
561
561
  state: string;
562
- methods: ("get" | "range" | "observe" | "iterate" | "observeRange")[];
563
562
  filters: {
564
- field: string;
565
563
  value: string;
564
+ field: string;
566
565
  }[];
567
566
  access: "read" | "write";
567
+ methods: ("get" | "range" | "observe" | "iterate" | "observeRange")[];
568
568
  }[]>;
569
569
  }>> & {
570
570
  key: "grant-access";
@@ -576,8 +576,8 @@ export declare const registryStream: import("../../runtime/host-runtime.js").Str
576
576
  iss: string;
577
577
  }>;
578
578
  eventGrants: import("../../typing/optional-type-description.js").OptionalTypeDescription<{
579
- access: "read" | "write";
580
579
  event: string;
580
+ access: "read" | "write";
581
581
  }[]>;
582
582
  stateGrants: import("../../typing/optional-type-description.js").OptionalTypeDescription<{
583
583
  state: string;
@@ -589,19 +589,30 @@ export declare const registryStream: import("../../runtime/host-runtime.js").Str
589
589
  }, Readonly<import("../../realm/realm-definition.js").RealmDefinition<{
590
590
  readonly github: Readonly<{
591
591
  type: "token";
592
- token: {
593
- url: string;
594
- formData: {
595
- [key: string]: string;
592
+ jwt: {
593
+ type: "jwt";
594
+ secret: string | {
595
+ type: "secret";
596
+ name: string;
596
597
  };
597
- tokenAttributes: string[] | undefined;
598
+ algorithm: "HS256";
599
+ issuer: string;
600
+ audience: string;
601
+ expirationTime: string;
598
602
  };
599
- clientId: string;
600
603
  issuer: string;
604
+ clientId: string;
601
605
  clientSecret: string | {
602
606
  type: "secret";
603
607
  name: string;
604
608
  };
609
+ token: {
610
+ url: string;
611
+ formData: {
612
+ [key: string]: string;
613
+ };
614
+ tokenAttributes: string[] | undefined;
615
+ };
605
616
  authorize: {
606
617
  url: string;
607
618
  queryParams: {
@@ -619,20 +630,31 @@ export declare const registryStream: import("../../runtime/host-runtime.js").Str
619
630
  url: string;
620
631
  tokenAttributes: string[] | undefined;
621
632
  };
633
+ }>;
634
+ readonly microsoft: Readonly<{
635
+ type: "openid";
622
636
  jwt: {
623
637
  type: "jwt";
624
638
  secret: string | {
625
639
  type: "secret";
626
640
  name: string;
627
641
  };
628
- issuer: string;
629
642
  algorithm: "HS256";
643
+ issuer: string;
630
644
  audience: string;
631
645
  expirationTime: string;
632
646
  };
633
- }>;
634
- readonly microsoft: Readonly<{
635
- type: "openid";
647
+ issuer: string | string[];
648
+ audience: string | string[] | undefined;
649
+ clientId: string | undefined;
650
+ clientSecret: string | {
651
+ type: "secret";
652
+ name: string;
653
+ } | undefined;
654
+ jwks: {
655
+ url: string;
656
+ subKey: string;
657
+ };
636
658
  token: {
637
659
  url: string;
638
660
  formData: {
@@ -640,12 +662,6 @@ export declare const registryStream: import("../../runtime/host-runtime.js").Str
640
662
  };
641
663
  tokenAttributes: string[] | undefined;
642
664
  } | undefined;
643
- clientId: string | undefined;
644
- issuer: string | string[];
645
- clientSecret: string | {
646
- type: "secret";
647
- name: string;
648
- } | undefined;
649
665
  authorize: {
650
666
  url: string;
651
667
  queryParams: {
@@ -659,25 +675,31 @@ export declare const registryStream: import("../../runtime/host-runtime.js").Str
659
675
  grantType: string;
660
676
  scope: string | undefined;
661
677
  } | undefined;
678
+ }>;
679
+ readonly google: Readonly<{
680
+ type: "openid";
662
681
  jwt: {
663
682
  type: "jwt";
664
683
  secret: string | {
665
684
  type: "secret";
666
685
  name: string;
667
686
  };
668
- issuer: string;
669
687
  algorithm: "HS256";
688
+ issuer: string;
670
689
  audience: string;
671
690
  expirationTime: string;
672
691
  };
692
+ issuer: string | string[];
673
693
  audience: string | string[] | undefined;
694
+ clientId: string | undefined;
695
+ clientSecret: string | {
696
+ type: "secret";
697
+ name: string;
698
+ } | undefined;
674
699
  jwks: {
675
700
  url: string;
676
701
  subKey: string;
677
702
  };
678
- }>;
679
- readonly google: Readonly<{
680
- type: "openid";
681
703
  token: {
682
704
  url: string;
683
705
  formData: {
@@ -685,12 +707,6 @@ export declare const registryStream: import("../../runtime/host-runtime.js").Str
685
707
  };
686
708
  tokenAttributes: string[] | undefined;
687
709
  } | undefined;
688
- clientId: string | undefined;
689
- issuer: string | string[];
690
- clientSecret: string | {
691
- type: "secret";
692
- name: string;
693
- } | undefined;
694
710
  authorize: {
695
711
  url: string;
696
712
  queryParams: {
@@ -704,25 +720,31 @@ export declare const registryStream: import("../../runtime/host-runtime.js").Str
704
720
  grantType: string;
705
721
  scope: string | undefined;
706
722
  } | undefined;
723
+ }>;
724
+ readonly github_actions: Readonly<{
725
+ type: "openid";
707
726
  jwt: {
708
727
  type: "jwt";
709
728
  secret: string | {
710
729
  type: "secret";
711
730
  name: string;
712
731
  };
713
- issuer: string;
714
732
  algorithm: "HS256";
733
+ issuer: string;
715
734
  audience: string;
716
735
  expirationTime: string;
717
736
  };
737
+ issuer: string | string[];
718
738
  audience: string | string[] | undefined;
739
+ clientId: string | undefined;
740
+ clientSecret: string | {
741
+ type: "secret";
742
+ name: string;
743
+ } | undefined;
719
744
  jwks: {
720
745
  url: string;
721
746
  subKey: string;
722
747
  };
723
- }>;
724
- readonly github_actions: Readonly<{
725
- type: "openid";
726
748
  token: {
727
749
  url: string;
728
750
  formData: {
@@ -730,12 +752,6 @@ export declare const registryStream: import("../../runtime/host-runtime.js").Str
730
752
  };
731
753
  tokenAttributes: string[] | undefined;
732
754
  } | undefined;
733
- clientId: string | undefined;
734
- issuer: string | string[];
735
- clientSecret: string | {
736
- type: "secret";
737
- name: string;
738
- } | undefined;
739
755
  authorize: {
740
756
  url: string;
741
757
  queryParams: {
@@ -749,22 +765,6 @@ export declare const registryStream: import("../../runtime/host-runtime.js").Str
749
765
  grantType: string;
750
766
  scope: string | undefined;
751
767
  } | undefined;
752
- jwt: {
753
- type: "jwt";
754
- secret: string | {
755
- type: "secret";
756
- name: string;
757
- };
758
- issuer: string;
759
- algorithm: "HS256";
760
- audience: string;
761
- expirationTime: string;
762
- };
763
- audience: string | string[] | undefined;
764
- jwks: {
765
- url: string;
766
- subKey: string;
767
- };
768
768
  }>;
769
769
  readonly iwentsourcing: {
770
770
  type: "jwt";
@@ -772,8 +772,8 @@ export declare const registryStream: import("../../runtime/host-runtime.js").Str
772
772
  type: "secret";
773
773
  name: string;
774
774
  };
775
- issuer: string;
776
775
  algorithm: "HS256";
776
+ issuer: string;
777
777
  audience: string;
778
778
  expirationTime: string;
779
779
  };