@reventlessdev/reventless-registration 0.0.0-stage → 1.0.0-alpha.2

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 (40) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +50 -2
  3. package/package.json +38 -3
  4. package/rescript.json +28 -0
  5. package/src/ContactVerification.res +106 -0
  6. package/src/ContactVerification.res.mjs +60 -0
  7. package/src/ContactVerification_Guards.res +180 -0
  8. package/src/ContactVerification_Guards.res.mjs +97 -0
  9. package/src/Registration/ContactAddressId.res +6 -0
  10. package/src/Registration/ContactAddressId.res.mjs +29 -0
  11. package/src/Registration/InboundTranslation/CompleteRegistration.res +35 -0
  12. package/src/Registration/InboundTranslation/CompleteRegistration.res.mjs +58 -0
  13. package/src/Registration/InboundTranslation/CompleteRegistration_Translation.res +40 -0
  14. package/src/Registration/InboundTranslation/CompleteRegistration_Translation.res.mjs +67 -0
  15. package/src/Registration/InboundTranslation/SignUp.res +35 -0
  16. package/src/Registration/InboundTranslation/SignUp.res.mjs +57 -0
  17. package/src/Registration/InboundTranslation/SignUp_Translation.res +40 -0
  18. package/src/Registration/InboundTranslation/SignUp_Translation.res.mjs +66 -0
  19. package/src/Registration/OutboundTranslation/CreateRegisteredPrincipal.res +34 -0
  20. package/src/Registration/OutboundTranslation/CreateRegisteredPrincipal.res.mjs +61 -0
  21. package/src/Registration/OutboundTranslation/CreateRegisteredPrincipal_Translation.res +46 -0
  22. package/src/Registration/OutboundTranslation/CreateRegisteredPrincipal_Translation.res.mjs +99 -0
  23. package/src/Registration/OutboundTranslation/SendRegistrationChallenge.res +51 -0
  24. package/src/Registration/OutboundTranslation/SendRegistrationChallenge.res.mjs +80 -0
  25. package/src/Registration/OutboundTranslation/SendRegistrationChallenge_Translation.res +113 -0
  26. package/src/Registration/OutboundTranslation/SendRegistrationChallenge_Translation.res.mjs +160 -0
  27. package/src/Registration/StateChange/RegistrationPolicy.res +58 -0
  28. package/src/Registration/StateChange/RegistrationPolicy.res.mjs +86 -0
  29. package/src/Registration/StateChange/RegistrationPolicy_Decision.res +43 -0
  30. package/src/Registration/StateChange/RegistrationPolicy_Decision.res.mjs +88 -0
  31. package/src/Registration/StateChange/Registrations.res +157 -0
  32. package/src/Registration/StateChange/Registrations.res.mjs +224 -0
  33. package/src/Registration/StateChange/Registrations_Decision.res +281 -0
  34. package/src/Registration/StateChange/Registrations_Decision.res.mjs +541 -0
  35. package/src/Registration/StateViewStream/RegistrationWindows.res +30 -0
  36. package/src/Registration/StateViewStream/RegistrationWindows.res.mjs +80 -0
  37. package/src/Registration/StateViewStream/RegistrationWindows_Projection.res +7 -0
  38. package/src/Registration/StateViewStream/RegistrationWindows_Projection.res.mjs +38 -0
  39. package/src/RegistrationChallenge.res +20 -0
  40. package/src/RegistrationChallenge.res.mjs +45 -0
@@ -0,0 +1,88 @@
1
+ // Generated by ReScript, PLEASE EDIT WITH CARE
2
+
3
+ import * as Primitive_object from "@rescript/runtime/lib/es6/Primitive_object.js";
4
+ import * as Admission$Reventless from "@reventlessdev/reventless-spec/src/types/Admission.res.mjs";
5
+ import * as RegistrationPolicy$ReventlessRegistration from "./RegistrationPolicy.res.mjs";
6
+
7
+ let initialState = {
8
+ TAG: "Open",
9
+ _0: undefined
10
+ };
11
+
12
+ function evolve(_state, event) {
13
+ if (event.TAG === "RegistrationOpened") {
14
+ return {
15
+ TAG: "Open",
16
+ _0: event.until
17
+ };
18
+ } else {
19
+ return "Closed";
20
+ }
21
+ }
22
+
23
+ function Make(App) {
24
+ let decide = (state, command) => {
25
+ let role = command.role;
26
+ if (!Admission$Reventless.isSelfService(App.table, role)) {
27
+ return {
28
+ TAG: "Error",
29
+ _0: {
30
+ TAG: "NotSelfService",
31
+ role: role
32
+ }
33
+ };
34
+ }
35
+ if (typeof state !== "object") {
36
+ if (command.TAG !== "OpenRegistration") {
37
+ return {
38
+ TAG: "Ok",
39
+ _0: []
40
+ };
41
+ }
42
+ } else {
43
+ if (command.TAG !== "OpenRegistration") {
44
+ return {
45
+ TAG: "Ok",
46
+ _0: [{
47
+ TAG: "RegistrationClosed",
48
+ role: command.role
49
+ }]
50
+ };
51
+ }
52
+ if (Primitive_object.equal(state._0, command.until)) {
53
+ return {
54
+ TAG: "Ok",
55
+ _0: []
56
+ };
57
+ }
58
+ }
59
+ return {
60
+ TAG: "Ok",
61
+ _0: [{
62
+ TAG: "RegistrationOpened",
63
+ role: command.role,
64
+ until: command.until
65
+ }]
66
+ };
67
+ };
68
+ return {
69
+ Spec: undefined,
70
+ moduleUrl: RegistrationPolicy$ReventlessRegistration.moduleUrl,
71
+ initialState: initialState,
72
+ evolve: evolve,
73
+ decide: decide
74
+ };
75
+ }
76
+
77
+ let Spec;
78
+
79
+ let moduleUrl = "@reventlessdev/reventless-registration/src/Registration/StateChange/RegistrationPolicy_Decision.res.mjs";
80
+
81
+ export {
82
+ Spec,
83
+ initialState,
84
+ evolve,
85
+ Make,
86
+ moduleUrl,
87
+ }
88
+ /* Admission-Reventless Not a pure module */
@@ -0,0 +1,157 @@
1
+ // Registrations StateChangeSlice.
2
+ //
3
+ // One registration per address: the address claimed, the challenge sent to it,
4
+ // the proof that answers the challenge, and the account that follows. The claim
5
+ // is a DCB tag on the address — `contactAddress` — so "this address is taken" is
6
+ // decided here, identically on every platform, rather than by whichever identity
7
+ // provider happens to be behind the deployment.
8
+ //
9
+ // **Verify, then create.** Nothing here creates an account. A registration is
10
+ // recorded against the address, the proof settles it, and only then does a
11
+ // translation reach the identity provider. An address nobody proved holds no
12
+ // account, so there is no unconfirmed account to clean up.
13
+ //
14
+ // **Every command is relayed, never a client's.** The doors are the inbound
15
+ // translations in this chapter: they stamp the time a request arrived, and they
16
+ // hash a presented proof so its plaintext never reaches this slice or the log.
17
+ //
18
+ // **Its answers do not tell an anonymous caller anything.** A closed policy, a
19
+ // pending registration and an address already registered all leave the door
20
+ // answering the same way; only what is sent to the address differs.
21
+
22
+ @@reventless.spec
23
+
24
+ // The policy's two events are read by role, a reference to another entity: the
25
+ // role is an identity the framework declares, so the inference reads it across
26
+ // partitions as it reads any id another slice is partitioned by.
27
+ @schema
28
+ type consumedEvent =
29
+ | RegistrationOpened({
30
+ role: @s.matches(Reventless.DcbTag.mark(Reventless.Role.nameSchema)) Reventless.Role.name,
31
+ until?: Reventless.DateTime.t,
32
+ })
33
+ | RegistrationClosed({
34
+ role: @s.matches(Reventless.DcbTag.mark(Reventless.Role.nameSchema)) Reventless.Role.name,
35
+ })
36
+ | RegistrationRequested({
37
+ email: ContactAddressId.t,
38
+ roles: array<string>,
39
+ requestedAt: Reventless.DateTime.t,
40
+ })
41
+ | RegistrationExpired({email: ContactAddressId.t})
42
+ | RegistrationInvited({
43
+ email: ContactAddressId.t,
44
+ roles: array<string>,
45
+ invitedBy: string,
46
+ invitedAt: Reventless.DateTime.t,
47
+ })
48
+ | RegistrationChallengeReissued({
49
+ email: ContactAddressId.t,
50
+ reissuedAt: Reventless.DateTime.t,
51
+ invitedBy?: string,
52
+ })
53
+ | RegistrationWithdrawn({email: ContactAddressId.t, withdrawnAt: Reventless.DateTime.t})
54
+ | RegistrationAttemptedOnTakenAddress({
55
+ email: ContactAddressId.t,
56
+ attemptedAt: Reventless.DateTime.t,
57
+ })
58
+ | RegistrationChallengeIssued({
59
+ email: ContactAddressId.t,
60
+ proofHash: string,
61
+ issuedAt: Reventless.DateTime.t,
62
+ })
63
+ | RegistrationProofAccepted({email: ContactAddressId.t, roles: array<string>, proofHash: string})
64
+ | RegistrationProofRefused({email: ContactAddressId.t, reason: string})
65
+ | RegistrationCompleted({email: ContactAddressId.t})
66
+
67
+ // `Register` names the role asked for, and the policy is read by it. The
68
+ // registration records the roles it grants as
69
+ // data, never as a tag: keeping the tag off this slice's own events is what
70
+ // makes the role a read of another entity rather than one of this slice's keys,
71
+ // so a policy changing while a registration is decided is caught by the append
72
+ // condition. A set rather than one role, so a door granting several at once
73
+ // records them all; a sign-up records a set of one. Plain names on the events,
74
+ // since what they carry is what a settled proof grants, not a key the ledger is
75
+ // read by.
76
+ @schema
77
+ type command =
78
+ | @noApi
79
+ Register({
80
+ email: ContactAddressId.t,
81
+ role: @s.matches(Reventless.DcbTag.mark(Reventless.Role.nameSchema)) Reventless.Role.name,
82
+ requestedAt: Reventless.DateTime.t,
83
+ })
84
+ | @noApi
85
+ IssueRegistrationChallenge({
86
+ email: ContactAddressId.t,
87
+ proofHash: string,
88
+ issuedAt: Reventless.DateTime.t,
89
+ })
90
+ | @noApi
91
+ SubmitRegistrationProof({
92
+ email: ContactAddressId.t,
93
+ proofHash: string,
94
+ presentedAt: Reventless.DateTime.t,
95
+ })
96
+ | @noApi RecordRegistrationCompleted({email: ContactAddressId.t})
97
+ // A signed-in inviter claims the address for someone else, as the roles the
98
+ // app declares by invitation. No door here reaches it: a plugin that provides
99
+ // invitations marks its door `Invite` and checks the inviter before relaying.
100
+ | @noApi
101
+ Invite({
102
+ email: ContactAddressId.t,
103
+ roles: array<Reventless.Role.name>,
104
+ invitedBy: string,
105
+ requestedAt: Reventless.DateTime.t,
106
+ })
107
+ // Voids the code a pending registration holds, so a new one is sent: a code
108
+ // lost, or its attempts spent. Held to one per resend cooldown.
109
+ | @noApi
110
+ ReissueRegistrationChallenge({
111
+ email: ContactAddressId.t,
112
+ requestedAt: Reventless.DateTime.t,
113
+ })
114
+ // Releases an address a registration holds and nobody has proved yet.
115
+ | @noApi WithdrawRegistration({email: ContactAddressId.t, withdrawnAt: Reventless.DateTime.t})
116
+
117
+ // Every outcome of a command relayed for an anonymous caller is a recorded fact
118
+ // or a quiet no-op, never an error: an error is the one answer a caller could
119
+ // tell apart. `Invite` is the exception, because its caller is a signed-in
120
+ // inviter, who is owed the reason an invitation was not recorded.
121
+ @schema
122
+ type error =
123
+ | NotByInvitation({role: string})
124
+ | NoRoleToGrant
125
+
126
+ @schema
127
+ type event =
128
+ | RegistrationRequested({
129
+ email: ContactAddressId.t,
130
+ roles: array<string>,
131
+ requestedAt: Reventless.DateTime.t,
132
+ })
133
+ | RegistrationExpired({email: ContactAddressId.t})
134
+ | RegistrationInvited({
135
+ email: ContactAddressId.t,
136
+ roles: array<string>,
137
+ invitedBy: string,
138
+ invitedAt: Reventless.DateTime.t,
139
+ })
140
+ | RegistrationChallengeReissued({
141
+ email: ContactAddressId.t,
142
+ reissuedAt: Reventless.DateTime.t,
143
+ invitedBy?: string,
144
+ })
145
+ | RegistrationWithdrawn({email: ContactAddressId.t, withdrawnAt: Reventless.DateTime.t})
146
+ | RegistrationAttemptedOnTakenAddress({
147
+ email: ContactAddressId.t,
148
+ attemptedAt: Reventless.DateTime.t,
149
+ })
150
+ | RegistrationChallengeIssued({
151
+ email: ContactAddressId.t,
152
+ proofHash: string,
153
+ issuedAt: Reventless.DateTime.t,
154
+ })
155
+ | RegistrationProofAccepted({email: ContactAddressId.t, roles: array<string>, proofHash: string})
156
+ | RegistrationProofRefused({email: ContactAddressId.t, reason: string})
157
+ | RegistrationCompleted({email: ContactAddressId.t})
@@ -0,0 +1,224 @@
1
+ // Generated by ReScript, PLEASE EDIT WITH CARE
2
+
3
+ import * as Sury from "sury";
4
+ import * as Role$Reventless from "@reventlessdev/reventless-spec/src/types/Role.res.mjs";
5
+ import * as DcbTag$Reventless from "@reventlessdev/reventless-spec/src/components/DcbTag.res.mjs";
6
+ import * as Api$ReventlessInfra from "@reventlessdev/reventless-infra/src/components/Api.res.mjs";
7
+ import * as DateTime$Reventless from "@reventlessdev/reventless-spec/src/semantic/DateTime.res.mjs";
8
+ import * as ContactAddressId$ReventlessRegistration from "../ContactAddressId.res.mjs";
9
+
10
+ let consumedEventSchema = Sury.union([
11
+ Sury.$schema(s => ({
12
+ TAG: "RegistrationOpened",
13
+ role: s.m(DcbTag$Reventless.mark(Role$Reventless.nameSchema)),
14
+ until: s.m(Sury.$option(DateTime$Reventless.schema))
15
+ })),
16
+ Sury.$schema(s => ({
17
+ TAG: "RegistrationClosed",
18
+ role: s.m(DcbTag$Reventless.mark(Role$Reventless.nameSchema))
19
+ })),
20
+ Sury.$schema(s => ({
21
+ TAG: "RegistrationRequested",
22
+ email: s.m(DcbTag$Reventless.mark(ContactAddressId$ReventlessRegistration.schema)),
23
+ roles: s.m(Sury.array(Sury.string)),
24
+ requestedAt: s.m(DateTime$Reventless.schema)
25
+ })),
26
+ Sury.$schema(s => ({
27
+ TAG: "RegistrationExpired",
28
+ email: s.m(DcbTag$Reventless.mark(ContactAddressId$ReventlessRegistration.schema))
29
+ })),
30
+ Sury.$schema(s => ({
31
+ TAG: "RegistrationInvited",
32
+ email: s.m(DcbTag$Reventless.mark(ContactAddressId$ReventlessRegistration.schema)),
33
+ roles: s.m(Sury.array(Sury.string)),
34
+ invitedBy: s.m(Sury.string),
35
+ invitedAt: s.m(DateTime$Reventless.schema)
36
+ })),
37
+ Sury.$schema(s => ({
38
+ TAG: "RegistrationChallengeReissued",
39
+ email: s.m(DcbTag$Reventless.mark(ContactAddressId$ReventlessRegistration.schema)),
40
+ reissuedAt: s.m(DateTime$Reventless.schema),
41
+ invitedBy: s.m(Sury.$option(Sury.string))
42
+ })),
43
+ Sury.$schema(s => ({
44
+ TAG: "RegistrationWithdrawn",
45
+ email: s.m(DcbTag$Reventless.mark(ContactAddressId$ReventlessRegistration.schema)),
46
+ withdrawnAt: s.m(DateTime$Reventless.schema)
47
+ })),
48
+ Sury.$schema(s => ({
49
+ TAG: "RegistrationAttemptedOnTakenAddress",
50
+ email: s.m(DcbTag$Reventless.mark(ContactAddressId$ReventlessRegistration.schema)),
51
+ attemptedAt: s.m(DateTime$Reventless.schema)
52
+ })),
53
+ Sury.$schema(s => ({
54
+ TAG: "RegistrationChallengeIssued",
55
+ email: s.m(DcbTag$Reventless.mark(ContactAddressId$ReventlessRegistration.schema)),
56
+ proofHash: s.m(Sury.string),
57
+ issuedAt: s.m(DateTime$Reventless.schema)
58
+ })),
59
+ Sury.$schema(s => ({
60
+ TAG: "RegistrationProofAccepted",
61
+ email: s.m(DcbTag$Reventless.mark(ContactAddressId$ReventlessRegistration.schema)),
62
+ roles: s.m(Sury.array(Sury.string)),
63
+ proofHash: s.m(Sury.string)
64
+ })),
65
+ Sury.$schema(s => ({
66
+ TAG: "RegistrationProofRefused",
67
+ email: s.m(DcbTag$Reventless.mark(ContactAddressId$ReventlessRegistration.schema)),
68
+ reason: s.m(Sury.string)
69
+ })),
70
+ Sury.$schema(s => ({
71
+ TAG: "RegistrationCompleted",
72
+ email: s.m(DcbTag$Reventless.mark(ContactAddressId$ReventlessRegistration.schema))
73
+ }))
74
+ ]);
75
+
76
+ let commandSchema = Sury.union([
77
+ Sury.$schema(s => ({
78
+ TAG: "Register",
79
+ email: s.m(DcbTag$Reventless.mark(ContactAddressId$ReventlessRegistration.schema)),
80
+ role: s.m(DcbTag$Reventless.mark(Role$Reventless.nameSchema)),
81
+ requestedAt: s.m(DateTime$Reventless.schema)
82
+ })),
83
+ Sury.$schema(s => ({
84
+ TAG: "IssueRegistrationChallenge",
85
+ email: s.m(DcbTag$Reventless.mark(ContactAddressId$ReventlessRegistration.schema)),
86
+ proofHash: s.m(Sury.string),
87
+ issuedAt: s.m(DateTime$Reventless.schema)
88
+ })),
89
+ Sury.$schema(s => ({
90
+ TAG: "SubmitRegistrationProof",
91
+ email: s.m(DcbTag$Reventless.mark(ContactAddressId$ReventlessRegistration.schema)),
92
+ proofHash: s.m(Sury.string),
93
+ presentedAt: s.m(DateTime$Reventless.schema)
94
+ })),
95
+ Sury.$schema(s => ({
96
+ TAG: "RecordRegistrationCompleted",
97
+ email: s.m(DcbTag$Reventless.mark(ContactAddressId$ReventlessRegistration.schema))
98
+ })),
99
+ Sury.$schema(s => ({
100
+ TAG: "Invite",
101
+ email: s.m(DcbTag$Reventless.mark(ContactAddressId$ReventlessRegistration.schema)),
102
+ roles: s.m(Sury.array(Role$Reventless.nameSchema)),
103
+ invitedBy: s.m(Sury.string),
104
+ requestedAt: s.m(DateTime$Reventless.schema)
105
+ })),
106
+ Sury.$schema(s => ({
107
+ TAG: "ReissueRegistrationChallenge",
108
+ email: s.m(DcbTag$Reventless.mark(ContactAddressId$ReventlessRegistration.schema)),
109
+ requestedAt: s.m(DateTime$Reventless.schema)
110
+ })),
111
+ Sury.$schema(s => ({
112
+ TAG: "WithdrawRegistration",
113
+ email: s.m(DcbTag$Reventless.mark(ContactAddressId$ReventlessRegistration.schema)),
114
+ withdrawnAt: s.m(DateTime$Reventless.schema)
115
+ }))
116
+ ]);
117
+
118
+ let errorSchema = Sury.union([
119
+ Sury.$schema(s => ({
120
+ TAG: "NotByInvitation",
121
+ role: s.m(Sury.string)
122
+ })),
123
+ Sury.literal("NoRoleToGrant")
124
+ ]);
125
+
126
+ let eventSchema = Sury.union([
127
+ Sury.$schema(s => ({
128
+ TAG: "RegistrationRequested",
129
+ email: s.m(DcbTag$Reventless.mark(ContactAddressId$ReventlessRegistration.schema)),
130
+ roles: s.m(Sury.array(Sury.string)),
131
+ requestedAt: s.m(DateTime$Reventless.schema)
132
+ })),
133
+ Sury.$schema(s => ({
134
+ TAG: "RegistrationExpired",
135
+ email: s.m(DcbTag$Reventless.mark(ContactAddressId$ReventlessRegistration.schema))
136
+ })),
137
+ Sury.$schema(s => ({
138
+ TAG: "RegistrationInvited",
139
+ email: s.m(DcbTag$Reventless.mark(ContactAddressId$ReventlessRegistration.schema)),
140
+ roles: s.m(Sury.array(Sury.string)),
141
+ invitedBy: s.m(Sury.string),
142
+ invitedAt: s.m(DateTime$Reventless.schema)
143
+ })),
144
+ Sury.$schema(s => ({
145
+ TAG: "RegistrationChallengeReissued",
146
+ email: s.m(DcbTag$Reventless.mark(ContactAddressId$ReventlessRegistration.schema)),
147
+ reissuedAt: s.m(DateTime$Reventless.schema),
148
+ invitedBy: s.m(Sury.$option(Sury.string))
149
+ })),
150
+ Sury.$schema(s => ({
151
+ TAG: "RegistrationWithdrawn",
152
+ email: s.m(DcbTag$Reventless.mark(ContactAddressId$ReventlessRegistration.schema)),
153
+ withdrawnAt: s.m(DateTime$Reventless.schema)
154
+ })),
155
+ Sury.$schema(s => ({
156
+ TAG: "RegistrationAttemptedOnTakenAddress",
157
+ email: s.m(DcbTag$Reventless.mark(ContactAddressId$ReventlessRegistration.schema)),
158
+ attemptedAt: s.m(DateTime$Reventless.schema)
159
+ })),
160
+ Sury.$schema(s => ({
161
+ TAG: "RegistrationChallengeIssued",
162
+ email: s.m(DcbTag$Reventless.mark(ContactAddressId$ReventlessRegistration.schema)),
163
+ proofHash: s.m(Sury.string),
164
+ issuedAt: s.m(DateTime$Reventless.schema)
165
+ })),
166
+ Sury.$schema(s => ({
167
+ TAG: "RegistrationProofAccepted",
168
+ email: s.m(DcbTag$Reventless.mark(ContactAddressId$ReventlessRegistration.schema)),
169
+ roles: s.m(Sury.array(Sury.string)),
170
+ proofHash: s.m(Sury.string)
171
+ })),
172
+ Sury.$schema(s => ({
173
+ TAG: "RegistrationProofRefused",
174
+ email: s.m(DcbTag$Reventless.mark(ContactAddressId$ReventlessRegistration.schema)),
175
+ reason: s.m(Sury.string)
176
+ })),
177
+ Sury.$schema(s => ({
178
+ TAG: "RegistrationCompleted",
179
+ email: s.m(DcbTag$Reventless.mark(ContactAddressId$ReventlessRegistration.schema))
180
+ }))
181
+ ]);
182
+
183
+ let commandSchema$1 = Api$ReventlessInfra.markNoApiVariants(commandSchema, [
184
+ "Register",
185
+ "IssueRegistrationChallenge",
186
+ "SubmitRegistrationProof",
187
+ "RecordRegistrationCompleted",
188
+ "Invite",
189
+ "ReissueRegistrationChallenge",
190
+ "WithdrawRegistration"
191
+ ]);
192
+
193
+ function authorizationOf(param) {
194
+ return "AllowAuthenticated";
195
+ }
196
+
197
+ function commandTransition(param) {
198
+ return "Undeclared";
199
+ }
200
+
201
+ let traits = [];
202
+
203
+ let name = "Registrations";
204
+
205
+ let Id;
206
+
207
+ let moduleUrl = "@reventlessdev/reventless-registration/src/Registration/StateChange/Registrations.res.mjs";
208
+
209
+ let readConsistency = "EscalateOnRetry";
210
+
211
+ export {
212
+ name,
213
+ Id,
214
+ consumedEventSchema,
215
+ errorSchema,
216
+ eventSchema,
217
+ commandSchema$1 as commandSchema,
218
+ moduleUrl,
219
+ authorizationOf,
220
+ readConsistency,
221
+ commandTransition,
222
+ traits,
223
+ }
224
+ /* consumedEventSchema Not a pure module */