@orthograph/preset 0.0.0-stage → 0.1.0-next.1

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 (74) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +2 -2
  3. package/dist/index.d.ts +5 -0
  4. package/dist/index.js +4 -0
  5. package/dist/main.d.ts +3 -0
  6. package/dist/main.js +4 -0
  7. package/dist/modules/app/internal/folder.d.ts +2 -0
  8. package/dist/modules/app/internal/folder.js +9 -0
  9. package/dist/modules/app/internal/names.d.ts +6 -0
  10. package/dist/modules/app/internal/names.js +10 -0
  11. package/dist/modules/app/service.d.ts +2 -0
  12. package/dist/modules/app/service.js +38 -0
  13. package/dist/modules/app/types.d.ts +26 -0
  14. package/dist/modules/app/types.js +5 -0
  15. package/dist/modules/starter/internal/project.d.ts +57 -0
  16. package/dist/modules/starter/internal/project.js +96 -0
  17. package/dist/modules/starter/service.d.ts +2 -0
  18. package/dist/modules/starter/service.js +38 -0
  19. package/dist/modules/starter/types.d.ts +25 -0
  20. package/dist/modules/starter/types.js +1 -0
  21. package/files/blueprint/environments/local.ts +8 -0
  22. package/files/blueprint/environments/production.ts +10 -0
  23. package/files/blueprint/environments/staging.ts +9 -0
  24. package/files/blueprint/environments/test.ts +8 -0
  25. package/files/blueprint/refusals.lock +85 -0
  26. package/files/blueprint/starting-worlds/founded.ts +11 -0
  27. package/files/blueprint/starting-worlds/invited.ts +12 -0
  28. package/files/blueprint/things/api-key/thing.ts +8 -0
  29. package/files/blueprint/things/api-key/verbs/create.ts +15 -0
  30. package/files/blueprint/things/invitation/events.ts +7 -0
  31. package/files/blueprint/things/invitation/machine.ts +13 -0
  32. package/files/blueprint/things/invitation/roles.ts +5 -0
  33. package/files/blueprint/things/invitation/thing.ts +8 -0
  34. package/files/blueprint/things/invitation/verbs/accept.ts +16 -0
  35. package/files/blueprint/things/invitation/verbs/revoke.ts +14 -0
  36. package/files/blueprint/things/invitation/verbs/send.ts +14 -0
  37. package/files/blueprint/things/membership/roles.ts +5 -0
  38. package/files/blueprint/things/membership/thing.ts +9 -0
  39. package/files/blueprint/things/membership/verbs/get.ts +11 -0
  40. package/files/blueprint/things/organization/events.ts +4 -0
  41. package/files/blueprint/things/organization/machine.ts +9 -0
  42. package/files/blueprint/things/organization/roles.ts +5 -0
  43. package/files/blueprint/things/organization/thing.ts +7 -0
  44. package/files/blueprint/things/organization/verbs/create.ts +14 -0
  45. package/files/blueprint/things/organization/verbs/get.ts +10 -0
  46. package/files/blueprint/things/person/errors.ts +3 -0
  47. package/files/blueprint/things/person/thing.ts +6 -0
  48. package/files/blueprint/things/person/verbs/sign-up.ts +14 -0
  49. package/files/blueprint/things/session/errors.ts +3 -0
  50. package/files/blueprint/things/session/thing.ts +7 -0
  51. package/files/blueprint/things/session/verbs/show.ts +13 -0
  52. package/files/blueprint/things/session/verbs/sign-in.ts +15 -0
  53. package/files/blueprint/things/system/thing.ts +6 -0
  54. package/files/blueprint/things/system/verbs/health.ts +11 -0
  55. package/files/blueprint/values/identity.ts +15 -0
  56. package/files/generated/model/model.json +3658 -0
  57. package/files/journeys/README.md +112 -0
  58. package/files/journeys/an-invitation-is-used-once.ts +38 -0
  59. package/files/journeys/an-owner-makes-an-api-key.ts +50 -0
  60. package/files/journeys/health-is-up.ts +17 -0
  61. package/files/journeys/invite-and-accept.ts +103 -0
  62. package/files/journeys/sign-up-and-sign-in.ts +48 -0
  63. package/files/src/api-key/create.ts +20 -0
  64. package/files/src/invitation/accept.ts +24 -0
  65. package/files/src/invitation/revoke.ts +8 -0
  66. package/files/src/invitation/send.ts +21 -0
  67. package/files/src/organization/create.ts +25 -0
  68. package/files/src/person/sign-up.ts +22 -0
  69. package/files/src/session/show.ts +14 -0
  70. package/files/src/session/sign-in.ts +22 -0
  71. package/files/src/system/health.ts +8 -0
  72. package/generators.json +9 -0
  73. package/package.json +34 -3
  74. package/schema.json +8 -0
@@ -0,0 +1,3658 @@
1
+ {
2
+ "refusals": {
3
+ "IdempotencyConflict": "AR-002",
4
+ "InvitationNotPending": "IN-900",
5
+ "NotAllowed": "AR-001",
6
+ "OrganizationNotActive": "OR-900",
7
+ "PersonEmailTaken": "PE-001",
8
+ "SessionCredentialsWrong": "SE-001"
9
+ },
10
+ "values": {
11
+ "Ok": {
12
+ "type": "schema"
13
+ },
14
+ "Password": {
15
+ "type": "text",
16
+ "max": 128
17
+ },
18
+ "Role": {
19
+ "type": "schema"
20
+ },
21
+ "Secret": {
22
+ "type": "text",
23
+ "max": 512
24
+ },
25
+ "Way": {
26
+ "type": "schema"
27
+ }
28
+ },
29
+ "things": {
30
+ "api-key": {
31
+ "name": "api-key",
32
+ "identifier": "ApiKey",
33
+ "code": "AP",
34
+ "description": "A key an agent or a service calls with, on behalf of whoever created it. Better Auth keeps its hash.",
35
+ "fields": {
36
+ "id": {
37
+ "value": {
38
+ "type": "id",
39
+ "prefix": "key"
40
+ }
41
+ },
42
+ "organization": {
43
+ "value": {
44
+ "type": "id",
45
+ "prefix": "org"
46
+ },
47
+ "ref": "organization.id"
48
+ },
49
+ "name": {
50
+ "value": {
51
+ "type": "text",
52
+ "max": 200
53
+ }
54
+ },
55
+ "createdBy": {
56
+ "value": {
57
+ "type": "id",
58
+ "prefix": "per"
59
+ },
60
+ "ref": "person.id"
61
+ }
62
+ },
63
+ "lives": "database",
64
+ "machine": null,
65
+ "events": {},
66
+ "errors": {},
67
+ "roles": [],
68
+ "roleRules": {},
69
+ "from": {
70
+ "kind": "app"
71
+ },
72
+ "hash": "dec54cf75bd4acb9"
73
+ },
74
+ "invitation": {
75
+ "name": "invitation",
76
+ "identifier": "Invitation",
77
+ "code": "IN",
78
+ "description": "An offer to join an organisation, sent to an email address.",
79
+ "fields": {
80
+ "id": {
81
+ "value": {
82
+ "type": "id",
83
+ "prefix": "inv"
84
+ }
85
+ },
86
+ "organization": {
87
+ "value": {
88
+ "type": "id",
89
+ "prefix": "org"
90
+ },
91
+ "ref": "organization.id"
92
+ },
93
+ "email": {
94
+ "value": {
95
+ "type": "text",
96
+ "max": 254
97
+ },
98
+ "ref": "person.email"
99
+ },
100
+ "invitedBy": {
101
+ "value": {
102
+ "type": "id",
103
+ "prefix": "per"
104
+ },
105
+ "ref": "person.id"
106
+ }
107
+ },
108
+ "lives": "database",
109
+ "machine": {
110
+ "states": [
111
+ "pending",
112
+ "accepted",
113
+ "revoked"
114
+ ],
115
+ "moves": {
116
+ "send": {
117
+ "from": [],
118
+ "to": [
119
+ "pending"
120
+ ],
121
+ "emits": "InvitationSent"
122
+ },
123
+ "accept": {
124
+ "from": [
125
+ "pending"
126
+ ],
127
+ "to": [
128
+ "accepted"
129
+ ],
130
+ "emits": "InvitationAccepted"
131
+ },
132
+ "revoke": {
133
+ "from": [
134
+ "pending"
135
+ ],
136
+ "to": [
137
+ "revoked"
138
+ ],
139
+ "emits": "InvitationRevoked"
140
+ }
141
+ },
142
+ "notFrom": {
143
+ "error": "InvitationNotPending",
144
+ "exit": 40,
145
+ "code": "IN-900"
146
+ }
147
+ },
148
+ "events": {
149
+ "InvitationAccepted": {
150
+ "invitation": {
151
+ "value": {
152
+ "type": "id",
153
+ "prefix": "inv"
154
+ },
155
+ "ref": "invitation.id"
156
+ },
157
+ "membership": {
158
+ "value": {
159
+ "type": "id",
160
+ "prefix": "mem"
161
+ },
162
+ "ref": "membership.id"
163
+ }
164
+ },
165
+ "InvitationRevoked": {
166
+ "invitation": {
167
+ "value": {
168
+ "type": "id",
169
+ "prefix": "inv"
170
+ },
171
+ "ref": "invitation.id"
172
+ }
173
+ },
174
+ "InvitationSent": {
175
+ "invitation": {
176
+ "value": {
177
+ "type": "id",
178
+ "prefix": "inv"
179
+ },
180
+ "ref": "invitation.id"
181
+ },
182
+ "email": {
183
+ "value": {
184
+ "type": "text",
185
+ "max": 254
186
+ },
187
+ "ref": "invitation.email"
188
+ }
189
+ }
190
+ },
191
+ "errors": {},
192
+ "roles": [
193
+ "invitee"
194
+ ],
195
+ "roleRules": {
196
+ "invitee": "(invitation, principal) => invitation.email === principal.email"
197
+ },
198
+ "from": {
199
+ "kind": "app"
200
+ },
201
+ "hash": "7c1d13c393ddaa62"
202
+ },
203
+ "membership": {
204
+ "name": "membership",
205
+ "identifier": "Membership",
206
+ "code": "ME",
207
+ "description": "A person's place in an organisation.",
208
+ "fields": {
209
+ "id": {
210
+ "value": {
211
+ "type": "id",
212
+ "prefix": "mem"
213
+ }
214
+ },
215
+ "organization": {
216
+ "value": {
217
+ "type": "id",
218
+ "prefix": "org"
219
+ },
220
+ "ref": "organization.id"
221
+ },
222
+ "person": {
223
+ "value": {
224
+ "type": "id",
225
+ "prefix": "per"
226
+ },
227
+ "ref": "person.id"
228
+ },
229
+ "role": {
230
+ "value": {
231
+ "type": "schema"
232
+ },
233
+ "named": "Role"
234
+ }
235
+ },
236
+ "lives": "database",
237
+ "machine": null,
238
+ "events": {},
239
+ "errors": {},
240
+ "roles": [
241
+ "holder"
242
+ ],
243
+ "roleRules": {
244
+ "holder": "(membership, principal) => membership.person === principal.person"
245
+ },
246
+ "from": {
247
+ "kind": "app"
248
+ },
249
+ "hash": "e6505be81a7030e4"
250
+ },
251
+ "organization": {
252
+ "name": "organization",
253
+ "identifier": "Organization",
254
+ "code": "OR",
255
+ "description": "A company or team that people belong to.",
256
+ "fields": {
257
+ "id": {
258
+ "value": {
259
+ "type": "id",
260
+ "prefix": "org"
261
+ }
262
+ },
263
+ "name": {
264
+ "value": {
265
+ "type": "text",
266
+ "max": 200
267
+ }
268
+ },
269
+ "owner": {
270
+ "value": {
271
+ "type": "id",
272
+ "prefix": "per"
273
+ },
274
+ "ref": "person.id"
275
+ }
276
+ },
277
+ "lives": "database",
278
+ "machine": {
279
+ "states": [
280
+ "active"
281
+ ],
282
+ "moves": {
283
+ "create": {
284
+ "from": [],
285
+ "to": [
286
+ "active"
287
+ ],
288
+ "emits": "OrganizationCreated"
289
+ }
290
+ },
291
+ "notFrom": {
292
+ "error": "OrganizationNotActive",
293
+ "exit": 20,
294
+ "code": "OR-900"
295
+ }
296
+ },
297
+ "events": {
298
+ "OrganizationCreated": {
299
+ "organization": {
300
+ "value": {
301
+ "type": "id",
302
+ "prefix": "org"
303
+ },
304
+ "ref": "organization.id"
305
+ },
306
+ "owner": {
307
+ "value": {
308
+ "type": "id",
309
+ "prefix": "per"
310
+ },
311
+ "ref": "organization.owner"
312
+ }
313
+ }
314
+ },
315
+ "errors": {},
316
+ "roles": [
317
+ "owner"
318
+ ],
319
+ "roleRules": {
320
+ "owner": "(organization, principal) => organization.owner === principal.person"
321
+ },
322
+ "from": {
323
+ "kind": "app"
324
+ },
325
+ "hash": "24a71fadb70bce98"
326
+ },
327
+ "person": {
328
+ "name": "person",
329
+ "identifier": "Person",
330
+ "code": "PE",
331
+ "description": "Someone who signs in. Better Auth keeps people; the project refers to them by id.",
332
+ "fields": {
333
+ "id": {
334
+ "value": {
335
+ "type": "id",
336
+ "prefix": "per"
337
+ }
338
+ },
339
+ "email": {
340
+ "value": {
341
+ "type": "text",
342
+ "max": 254
343
+ }
344
+ },
345
+ "name": {
346
+ "value": {
347
+ "type": "text",
348
+ "max": 200
349
+ }
350
+ }
351
+ },
352
+ "lives": "database",
353
+ "machine": null,
354
+ "events": {},
355
+ "errors": {
356
+ "PersonEmailTaken": {
357
+ "fields": {},
358
+ "exit": 11,
359
+ "code": "PE-001"
360
+ }
361
+ },
362
+ "roles": [],
363
+ "roleRules": {},
364
+ "from": {
365
+ "kind": "app"
366
+ },
367
+ "hash": "ad771ebabdfe3e0e"
368
+ },
369
+ "session": {
370
+ "name": "session",
371
+ "identifier": "Session",
372
+ "code": "SE",
373
+ "description": "A person's signed-in session, issued by Better Auth.",
374
+ "fields": {
375
+ "id": {
376
+ "value": {
377
+ "type": "id",
378
+ "prefix": "ses"
379
+ }
380
+ },
381
+ "person": {
382
+ "value": {
383
+ "type": "id",
384
+ "prefix": "per"
385
+ },
386
+ "ref": "person.id"
387
+ }
388
+ },
389
+ "lives": "database",
390
+ "machine": null,
391
+ "events": {},
392
+ "errors": {
393
+ "SessionCredentialsWrong": {
394
+ "fields": {},
395
+ "exit": 10,
396
+ "code": "SE-001"
397
+ }
398
+ },
399
+ "roles": [],
400
+ "roleRules": {},
401
+ "from": {
402
+ "kind": "app"
403
+ },
404
+ "hash": "455311c2adae1097"
405
+ },
406
+ "system": {
407
+ "name": "system",
408
+ "identifier": "System",
409
+ "code": "SY",
410
+ "description": "The running application itself.",
411
+ "fields": {
412
+ "id": {
413
+ "value": {
414
+ "type": "id",
415
+ "prefix": "sys"
416
+ }
417
+ }
418
+ },
419
+ "lives": "database",
420
+ "machine": null,
421
+ "events": {},
422
+ "errors": {},
423
+ "roles": [],
424
+ "roleRules": {},
425
+ "from": {
426
+ "kind": "app"
427
+ },
428
+ "hash": "357767c64efceced"
429
+ }
430
+ },
431
+ "operations": {
432
+ "api-key.create": {
433
+ "kind": "operation",
434
+ "name": "api-key.create",
435
+ "thing": "api-key",
436
+ "verb": "create",
437
+ "identifier": "create",
438
+ "file": "blueprint/things/api-key/verbs/create.ts",
439
+ "from": {
440
+ "kind": "app"
441
+ },
442
+ "description": "Create an API key in an organisation. The key itself is shown once.",
443
+ "payload": {
444
+ "organization": {
445
+ "value": {
446
+ "type": "id",
447
+ "prefix": "org"
448
+ },
449
+ "ref": "api-key.organization"
450
+ },
451
+ "name": {
452
+ "value": {
453
+ "type": "text",
454
+ "max": 200
455
+ },
456
+ "ref": "api-key.name"
457
+ }
458
+ },
459
+ "answer": {
460
+ "apiKey": {
461
+ "value": {
462
+ "type": "id",
463
+ "prefix": "key"
464
+ },
465
+ "ref": "api-key.id"
466
+ },
467
+ "key": {
468
+ "value": {
469
+ "type": "text",
470
+ "max": 512
471
+ },
472
+ "named": "Secret",
473
+ "visibility": "secret",
474
+ "issued": true
475
+ }
476
+ },
477
+ "move": null,
478
+ "errors": [],
479
+ "breaks": [],
480
+ "refusals": [
481
+ "NotAllowed"
482
+ ],
483
+ "allowed": [
484
+ {
485
+ "kind": "role-of",
486
+ "role": "organization.owner",
487
+ "path": "organization",
488
+ "via": [
489
+ "device",
490
+ "session"
491
+ ]
492
+ }
493
+ ],
494
+ "agentTool": false,
495
+ "refs": {
496
+ "organization": "organization"
497
+ },
498
+ "steps": {
499
+ "issue": {
500
+ "name": "api-key.create.issue",
501
+ "type": "database"
502
+ },
503
+ "insert": {
504
+ "name": "api-key.create.insert",
505
+ "type": "database"
506
+ }
507
+ },
508
+ "idempotent": null,
509
+ "runs": "server",
510
+ "test": "unit",
511
+ "budget": {
512
+ "p95Ms": 250
513
+ },
514
+ "hash": "13b1d071bf6d24ea"
515
+ },
516
+ "invitation.accept": {
517
+ "kind": "operation",
518
+ "name": "invitation.accept",
519
+ "thing": "invitation",
520
+ "verb": "accept",
521
+ "identifier": "accept",
522
+ "file": "blueprint/things/invitation/verbs/accept.ts",
523
+ "from": {
524
+ "kind": "app"
525
+ },
526
+ "description": "Accept an invitation and become a member of its organisation.",
527
+ "payload": {
528
+ "invitation": {
529
+ "value": {
530
+ "type": "id",
531
+ "prefix": "inv"
532
+ },
533
+ "ref": "invitation.id"
534
+ }
535
+ },
536
+ "answer": {
537
+ "organization": {
538
+ "value": {
539
+ "type": "id",
540
+ "prefix": "org"
541
+ },
542
+ "ref": "invitation.organization"
543
+ },
544
+ "membership": {
545
+ "value": {
546
+ "type": "id",
547
+ "prefix": "mem"
548
+ },
549
+ "ref": "membership.id"
550
+ }
551
+ },
552
+ "move": {
553
+ "key": "accept",
554
+ "from": [
555
+ "pending"
556
+ ],
557
+ "to": [
558
+ "accepted"
559
+ ],
560
+ "emits": "InvitationAccepted"
561
+ },
562
+ "errors": [],
563
+ "breaks": [],
564
+ "refusals": [
565
+ "InvitationNotPending",
566
+ "NotAllowed"
567
+ ],
568
+ "allowed": [
569
+ {
570
+ "kind": "role",
571
+ "role": "invitation.invitee",
572
+ "via": [
573
+ "device",
574
+ "key",
575
+ "session"
576
+ ]
577
+ }
578
+ ],
579
+ "agentTool": false,
580
+ "refs": {
581
+ "invitation": "invitation"
582
+ },
583
+ "steps": {
584
+ "join": {
585
+ "name": "invitation.accept.join",
586
+ "type": "database"
587
+ }
588
+ },
589
+ "idempotent": null,
590
+ "runs": "server",
591
+ "test": "unit",
592
+ "budget": {
593
+ "p95Ms": 200
594
+ },
595
+ "hash": "70314ea959c43146"
596
+ },
597
+ "invitation.revoke": {
598
+ "kind": "operation",
599
+ "name": "invitation.revoke",
600
+ "thing": "invitation",
601
+ "verb": "revoke",
602
+ "identifier": "revoke",
603
+ "file": "blueprint/things/invitation/verbs/revoke.ts",
604
+ "from": {
605
+ "kind": "app"
606
+ },
607
+ "description": "Withdraw an invitation that hasn't been accepted.",
608
+ "payload": {
609
+ "invitation": {
610
+ "value": {
611
+ "type": "id",
612
+ "prefix": "inv"
613
+ },
614
+ "ref": "invitation.id"
615
+ }
616
+ },
617
+ "answer": {},
618
+ "move": {
619
+ "key": "revoke",
620
+ "from": [
621
+ "pending"
622
+ ],
623
+ "to": [
624
+ "revoked"
625
+ ],
626
+ "emits": "InvitationRevoked"
627
+ },
628
+ "errors": [],
629
+ "breaks": [],
630
+ "refusals": [
631
+ "InvitationNotPending",
632
+ "NotAllowed"
633
+ ],
634
+ "allowed": [
635
+ {
636
+ "kind": "role-of",
637
+ "role": "organization.owner",
638
+ "path": "invitation.organization"
639
+ }
640
+ ],
641
+ "agentTool": true,
642
+ "refs": {
643
+ "invitation": "invitation"
644
+ },
645
+ "steps": {
646
+ "update": {
647
+ "name": "invitation.revoke.update",
648
+ "type": "database"
649
+ }
650
+ },
651
+ "idempotent": null,
652
+ "runs": "server",
653
+ "test": "unit",
654
+ "budget": {
655
+ "p95Ms": 150
656
+ },
657
+ "hash": "2e88e5bd83d2eed9"
658
+ },
659
+ "invitation.send": {
660
+ "kind": "operation",
661
+ "name": "invitation.send",
662
+ "thing": "invitation",
663
+ "verb": "send",
664
+ "identifier": "send",
665
+ "file": "blueprint/things/invitation/verbs/send.ts",
666
+ "from": {
667
+ "kind": "app"
668
+ },
669
+ "description": "Invite someone to an organisation by email.",
670
+ "payload": {
671
+ "organization": {
672
+ "value": {
673
+ "type": "id",
674
+ "prefix": "org"
675
+ },
676
+ "ref": "invitation.organization"
677
+ },
678
+ "email": {
679
+ "value": {
680
+ "type": "text",
681
+ "max": 254
682
+ },
683
+ "ref": "invitation.email"
684
+ }
685
+ },
686
+ "answer": {
687
+ "invitation": {
688
+ "value": {
689
+ "type": "id",
690
+ "prefix": "inv"
691
+ },
692
+ "ref": "invitation.id"
693
+ }
694
+ },
695
+ "move": {
696
+ "key": "send",
697
+ "from": [],
698
+ "to": [
699
+ "pending"
700
+ ],
701
+ "emits": "InvitationSent"
702
+ },
703
+ "errors": [],
704
+ "breaks": [],
705
+ "refusals": [
706
+ "NotAllowed"
707
+ ],
708
+ "allowed": [
709
+ {
710
+ "kind": "role-of",
711
+ "role": "organization.owner",
712
+ "path": "organization"
713
+ }
714
+ ],
715
+ "agentTool": true,
716
+ "refs": {
717
+ "organization": "organization"
718
+ },
719
+ "mints": "invitation",
720
+ "steps": {
721
+ "insert": {
722
+ "name": "invitation.send.insert",
723
+ "type": "database"
724
+ }
725
+ },
726
+ "idempotent": null,
727
+ "runs": "server",
728
+ "test": "unit",
729
+ "budget": {
730
+ "p95Ms": 200
731
+ },
732
+ "hash": "fb40c7cb89f22921"
733
+ },
734
+ "membership.get": {
735
+ "kind": "read",
736
+ "name": "membership.get",
737
+ "thing": "membership",
738
+ "verb": "get",
739
+ "identifier": "get",
740
+ "file": "blueprint/things/membership/verbs/get.ts",
741
+ "from": {
742
+ "kind": "app"
743
+ },
744
+ "description": "Read one membership by its id: organization, person, role.",
745
+ "payload": {
746
+ "id": {
747
+ "value": {
748
+ "type": "id",
749
+ "prefix": "mem"
750
+ },
751
+ "ref": "membership.id"
752
+ }
753
+ },
754
+ "answer": {
755
+ "organization": {
756
+ "value": {
757
+ "type": "id",
758
+ "prefix": "org"
759
+ },
760
+ "ref": "membership.organization"
761
+ },
762
+ "person": {
763
+ "value": {
764
+ "type": "id",
765
+ "prefix": "per"
766
+ },
767
+ "ref": "membership.person"
768
+ },
769
+ "role": {
770
+ "value": {
771
+ "type": "schema"
772
+ },
773
+ "named": "Role",
774
+ "ref": "membership.role"
775
+ }
776
+ },
777
+ "move": null,
778
+ "errors": [],
779
+ "breaks": [],
780
+ "refusals": [
781
+ "NotAllowed"
782
+ ],
783
+ "allowed": [
784
+ {
785
+ "kind": "role",
786
+ "role": "membership.holder"
787
+ },
788
+ {
789
+ "kind": "role-of",
790
+ "role": "organization.owner",
791
+ "path": "membership.organization"
792
+ }
793
+ ],
794
+ "agentTool": true,
795
+ "steps": {},
796
+ "idempotent": null,
797
+ "runs": "server",
798
+ "test": "unit",
799
+ "budget": {
800
+ "p95Ms": 50
801
+ },
802
+ "hash": "e734960d35d8a981"
803
+ },
804
+ "organization.create": {
805
+ "kind": "operation",
806
+ "name": "organization.create",
807
+ "thing": "organization",
808
+ "verb": "create",
809
+ "identifier": "create",
810
+ "file": "blueprint/things/organization/verbs/create.ts",
811
+ "from": {
812
+ "kind": "app"
813
+ },
814
+ "description": "Found an organisation. Whoever founds it owns it, and is its first member.",
815
+ "payload": {
816
+ "name": {
817
+ "value": {
818
+ "type": "text",
819
+ "max": 200
820
+ },
821
+ "ref": "organization.name"
822
+ }
823
+ },
824
+ "answer": {
825
+ "organization": {
826
+ "value": {
827
+ "type": "id",
828
+ "prefix": "org"
829
+ },
830
+ "ref": "organization.id"
831
+ }
832
+ },
833
+ "move": {
834
+ "key": "create",
835
+ "from": [],
836
+ "to": [
837
+ "active"
838
+ ],
839
+ "emits": "OrganizationCreated"
840
+ },
841
+ "errors": [],
842
+ "breaks": [],
843
+ "refusals": [
844
+ "NotAllowed",
845
+ "IdempotencyConflict"
846
+ ],
847
+ "allowed": [
848
+ {
849
+ "kind": "signed-in"
850
+ }
851
+ ],
852
+ "agentTool": true,
853
+ "mints": "organization",
854
+ "steps": {
855
+ "insert": {
856
+ "name": "organization.create.insert",
857
+ "type": "database"
858
+ },
859
+ "owner": {
860
+ "name": "organization.create.owner",
861
+ "type": "database"
862
+ }
863
+ },
864
+ "idempotent": "request",
865
+ "runs": "server",
866
+ "test": "unit",
867
+ "budget": {
868
+ "p95Ms": 250
869
+ },
870
+ "hash": "44abc64a3e7dc160"
871
+ },
872
+ "organization.get": {
873
+ "kind": "read",
874
+ "name": "organization.get",
875
+ "thing": "organization",
876
+ "verb": "get",
877
+ "identifier": "get",
878
+ "file": "blueprint/things/organization/verbs/get.ts",
879
+ "from": {
880
+ "kind": "app"
881
+ },
882
+ "description": "Read one organization by its id: name, owner, state.",
883
+ "payload": {
884
+ "id": {
885
+ "value": {
886
+ "type": "id",
887
+ "prefix": "org"
888
+ },
889
+ "ref": "organization.id"
890
+ }
891
+ },
892
+ "answer": {
893
+ "name": {
894
+ "value": {
895
+ "type": "text",
896
+ "max": 200
897
+ },
898
+ "ref": "organization.name"
899
+ },
900
+ "owner": {
901
+ "value": {
902
+ "type": "id",
903
+ "prefix": "per"
904
+ },
905
+ "ref": "organization.owner"
906
+ },
907
+ "state": {
908
+ "value": {
909
+ "type": "text",
910
+ "max": 64
911
+ }
912
+ }
913
+ },
914
+ "move": null,
915
+ "errors": [],
916
+ "breaks": [],
917
+ "refusals": [
918
+ "NotAllowed"
919
+ ],
920
+ "allowed": [
921
+ {
922
+ "kind": "role",
923
+ "role": "organization.owner"
924
+ }
925
+ ],
926
+ "agentTool": true,
927
+ "steps": {},
928
+ "idempotent": null,
929
+ "runs": "server",
930
+ "test": "unit",
931
+ "budget": {
932
+ "p95Ms": 50
933
+ },
934
+ "hash": "684ffa1f086e7c63"
935
+ },
936
+ "person.sign-up": {
937
+ "kind": "operation",
938
+ "name": "person.sign-up",
939
+ "thing": "person",
940
+ "verb": "sign-up",
941
+ "identifier": "signUp",
942
+ "file": "blueprint/things/person/verbs/sign-up.ts",
943
+ "from": {
944
+ "kind": "app"
945
+ },
946
+ "description": "Sign up with an email address and a password.",
947
+ "payload": {
948
+ "email": {
949
+ "value": {
950
+ "type": "text",
951
+ "max": 254
952
+ },
953
+ "ref": "person.email"
954
+ },
955
+ "password": {
956
+ "value": {
957
+ "type": "text",
958
+ "max": 128
959
+ },
960
+ "named": "Password",
961
+ "visibility": "secret"
962
+ },
963
+ "name": {
964
+ "value": {
965
+ "type": "text",
966
+ "max": 200
967
+ },
968
+ "ref": "person.name"
969
+ }
970
+ },
971
+ "answer": {
972
+ "person": {
973
+ "value": {
974
+ "type": "id",
975
+ "prefix": "per"
976
+ },
977
+ "ref": "person.id"
978
+ }
979
+ },
980
+ "move": null,
981
+ "errors": [
982
+ "PersonEmailTaken"
983
+ ],
984
+ "breaks": [],
985
+ "refusals": [
986
+ "PersonEmailTaken"
987
+ ],
988
+ "allowed": [
989
+ {
990
+ "kind": "anyone"
991
+ }
992
+ ],
993
+ "agentTool": true,
994
+ "steps": {
995
+ "create": {
996
+ "name": "person.sign-up.create",
997
+ "type": "database"
998
+ }
999
+ },
1000
+ "idempotent": null,
1001
+ "runs": "server",
1002
+ "test": "unit",
1003
+ "budget": {
1004
+ "p95Ms": 400
1005
+ },
1006
+ "hash": "e7172748550f49b1"
1007
+ },
1008
+ "session.show": {
1009
+ "kind": "operation",
1010
+ "name": "session.show",
1011
+ "thing": "session",
1012
+ "verb": "show",
1013
+ "identifier": "show",
1014
+ "file": "blueprint/things/session/verbs/show.ts",
1015
+ "from": {
1016
+ "kind": "app"
1017
+ },
1018
+ "description": "Who is signed in.",
1019
+ "payload": {},
1020
+ "answer": {
1021
+ "person": {
1022
+ "value": {
1023
+ "type": "id",
1024
+ "prefix": "per"
1025
+ },
1026
+ "ref": "person.id"
1027
+ },
1028
+ "email": {
1029
+ "value": {
1030
+ "type": "text",
1031
+ "max": 254
1032
+ },
1033
+ "ref": "person.email"
1034
+ },
1035
+ "via": {
1036
+ "value": {
1037
+ "type": "schema"
1038
+ },
1039
+ "named": "Way"
1040
+ }
1041
+ },
1042
+ "move": null,
1043
+ "errors": [],
1044
+ "breaks": [],
1045
+ "refusals": [
1046
+ "NotAllowed"
1047
+ ],
1048
+ "allowed": [
1049
+ {
1050
+ "kind": "signed-in"
1051
+ }
1052
+ ],
1053
+ "agentTool": true,
1054
+ "steps": {},
1055
+ "idempotent": null,
1056
+ "runs": "server",
1057
+ "test": "unit",
1058
+ "budget": {
1059
+ "p95Ms": 100
1060
+ },
1061
+ "hash": "f6abef87ce0c498a"
1062
+ },
1063
+ "session.sign-in": {
1064
+ "kind": "operation",
1065
+ "name": "session.sign-in",
1066
+ "thing": "session",
1067
+ "verb": "sign-in",
1068
+ "identifier": "signIn",
1069
+ "file": "blueprint/things/session/verbs/sign-in.ts",
1070
+ "from": {
1071
+ "kind": "app"
1072
+ },
1073
+ "description": "Sign in with email and password. The token is the bearer for every later call.",
1074
+ "payload": {
1075
+ "email": {
1076
+ "value": {
1077
+ "type": "text",
1078
+ "max": 254
1079
+ },
1080
+ "ref": "person.email"
1081
+ },
1082
+ "password": {
1083
+ "value": {
1084
+ "type": "text",
1085
+ "max": 128
1086
+ },
1087
+ "named": "Password",
1088
+ "visibility": "secret"
1089
+ }
1090
+ },
1091
+ "answer": {
1092
+ "session": {
1093
+ "value": {
1094
+ "type": "id",
1095
+ "prefix": "ses"
1096
+ },
1097
+ "ref": "session.id",
1098
+ "visibility": "secret",
1099
+ "issued": true
1100
+ },
1101
+ "token": {
1102
+ "value": {
1103
+ "type": "text",
1104
+ "max": 512
1105
+ },
1106
+ "named": "Secret",
1107
+ "visibility": "secret",
1108
+ "issued": true
1109
+ }
1110
+ },
1111
+ "move": null,
1112
+ "errors": [
1113
+ "SessionCredentialsWrong"
1114
+ ],
1115
+ "breaks": [],
1116
+ "refusals": [
1117
+ "SessionCredentialsWrong"
1118
+ ],
1119
+ "allowed": [
1120
+ {
1121
+ "kind": "anyone"
1122
+ }
1123
+ ],
1124
+ "agentTool": true,
1125
+ "steps": {
1126
+ "verify": {
1127
+ "name": "session.sign-in.verify",
1128
+ "type": "database"
1129
+ }
1130
+ },
1131
+ "idempotent": null,
1132
+ "runs": "server",
1133
+ "test": "unit",
1134
+ "budget": {
1135
+ "p95Ms": 400
1136
+ },
1137
+ "hash": "13e27d0e3a08e66b"
1138
+ },
1139
+ "system.health": {
1140
+ "kind": "operation",
1141
+ "name": "system.health",
1142
+ "thing": "system",
1143
+ "verb": "health",
1144
+ "identifier": "health",
1145
+ "file": "blueprint/things/system/verbs/health.ts",
1146
+ "from": {
1147
+ "kind": "app"
1148
+ },
1149
+ "description": "Is the application up?",
1150
+ "payload": {},
1151
+ "answer": {
1152
+ "status": {
1153
+ "value": {
1154
+ "type": "schema"
1155
+ },
1156
+ "named": "Ok"
1157
+ }
1158
+ },
1159
+ "move": null,
1160
+ "errors": [],
1161
+ "breaks": [],
1162
+ "refusals": [],
1163
+ "allowed": [
1164
+ {
1165
+ "kind": "anyone"
1166
+ }
1167
+ ],
1168
+ "agentTool": true,
1169
+ "steps": {},
1170
+ "idempotent": null,
1171
+ "runs": "server",
1172
+ "test": "unit",
1173
+ "budget": {
1174
+ "p95Ms": 50
1175
+ },
1176
+ "hash": "d97534a72031965e"
1177
+ }
1178
+ },
1179
+ "journeys": {
1180
+ "journeys/an-invitation-is-used-once.ts": {
1181
+ "name": "an invitation is used once",
1182
+ "file": "journeys/an-invitation-is-used-once.ts",
1183
+ "cast": {
1184
+ "ada": {
1185
+ "kind": "role",
1186
+ "role": "organization.owner"
1187
+ },
1188
+ "olga": {
1189
+ "kind": "signed-in"
1190
+ }
1191
+ },
1192
+ "starts": "invited",
1193
+ "steps": [
1194
+ {
1195
+ "title": "olga accepts the invitation ada sent her",
1196
+ "call": {
1197
+ "actor": "olga",
1198
+ "operation": "invitation.accept",
1199
+ "payload": {
1200
+ "invitation": {
1201
+ "ref": [
1202
+ "world",
1203
+ "invitation"
1204
+ ]
1205
+ }
1206
+ }
1207
+ },
1208
+ "checks": [
1209
+ {
1210
+ "kind": "expect-equal",
1211
+ "value": {
1212
+ "ref": [
1213
+ "world",
1214
+ "organization"
1215
+ ]
1216
+ }
1217
+ },
1218
+ {
1219
+ "kind": "expect",
1220
+ "match": "^mem_[0-9a-z]+$",
1221
+ "flags": ""
1222
+ },
1223
+ {
1224
+ "kind": "emits",
1225
+ "event": "InvitationAccepted",
1226
+ "fields": {
1227
+ "invitation": {
1228
+ "ref": [
1229
+ "world",
1230
+ "invitation"
1231
+ ]
1232
+ },
1233
+ "membership": {
1234
+ "ref": [
1235
+ "last",
1236
+ "membership"
1237
+ ]
1238
+ }
1239
+ }
1240
+ },
1241
+ {
1242
+ "kind": "is-in",
1243
+ "thing": "invitation",
1244
+ "id": {
1245
+ "ref": [
1246
+ "world",
1247
+ "invitation"
1248
+ ]
1249
+ },
1250
+ "state": "accepted"
1251
+ },
1252
+ {
1253
+ "kind": "spans",
1254
+ "present": [
1255
+ "invitation.accept",
1256
+ "invitation.accept.join"
1257
+ ],
1258
+ "absent": []
1259
+ }
1260
+ ]
1261
+ },
1262
+ {
1263
+ "title": "accepting it again is refused",
1264
+ "call": {
1265
+ "actor": "olga",
1266
+ "operation": "invitation.accept",
1267
+ "payload": {
1268
+ "invitation": {
1269
+ "ref": [
1270
+ "world",
1271
+ "invitation"
1272
+ ]
1273
+ }
1274
+ }
1275
+ },
1276
+ "checks": [
1277
+ {
1278
+ "kind": "refuses",
1279
+ "error": "invitation.notFrom",
1280
+ "fields": {
1281
+ "state": "accepted"
1282
+ }
1283
+ },
1284
+ {
1285
+ "kind": "no-events"
1286
+ },
1287
+ {
1288
+ "kind": "is-in",
1289
+ "thing": "invitation",
1290
+ "id": {
1291
+ "ref": [
1292
+ "world",
1293
+ "invitation"
1294
+ ]
1295
+ },
1296
+ "state": "accepted"
1297
+ },
1298
+ {
1299
+ "kind": "spans",
1300
+ "present": [],
1301
+ "absent": [
1302
+ "invitation.accept.join"
1303
+ ]
1304
+ }
1305
+ ]
1306
+ },
1307
+ {
1308
+ "title": "ada can't revoke an invitation that has been accepted",
1309
+ "call": {
1310
+ "actor": "ada",
1311
+ "operation": "invitation.revoke",
1312
+ "payload": {
1313
+ "invitation": {
1314
+ "ref": [
1315
+ "world",
1316
+ "invitation"
1317
+ ]
1318
+ }
1319
+ }
1320
+ },
1321
+ "checks": [
1322
+ {
1323
+ "kind": "refuses",
1324
+ "error": "invitation.notFrom",
1325
+ "fields": {
1326
+ "state": "accepted"
1327
+ }
1328
+ },
1329
+ {
1330
+ "kind": "no-events"
1331
+ },
1332
+ {
1333
+ "kind": "spans",
1334
+ "present": [],
1335
+ "absent": [
1336
+ "invitation.revoke.update"
1337
+ ]
1338
+ }
1339
+ ]
1340
+ }
1341
+ ],
1342
+ "sourceHash": "9e88e14681fb4c9b0feedcffe750b2b1023275bdb5074d165162516b901e0b74"
1343
+ },
1344
+ "journeys/an-owner-makes-an-api-key.ts": {
1345
+ "name": "an owner makes an api key",
1346
+ "file": "journeys/an-owner-makes-an-api-key.ts",
1347
+ "cast": {
1348
+ "ada": {
1349
+ "kind": "role",
1350
+ "role": "organization.owner"
1351
+ },
1352
+ "bob": {
1353
+ "kind": "signed-in"
1354
+ }
1355
+ },
1356
+ "starts": "founded",
1357
+ "steps": [
1358
+ {
1359
+ "title": "bob can't make a key in ada's organisation",
1360
+ "call": {
1361
+ "actor": "bob",
1362
+ "operation": "api-key.create",
1363
+ "payload": {
1364
+ "organization": {
1365
+ "ref": [
1366
+ "world",
1367
+ "organization"
1368
+ ]
1369
+ },
1370
+ "name": "bob's key"
1371
+ }
1372
+ },
1373
+ "checks": [
1374
+ {
1375
+ "kind": "refuses",
1376
+ "error": "NotAllowed",
1377
+ "fields": {}
1378
+ },
1379
+ {
1380
+ "kind": "no-events"
1381
+ },
1382
+ {
1383
+ "kind": "spans",
1384
+ "present": [],
1385
+ "absent": [
1386
+ "api-key.create",
1387
+ "api-key.create.issue",
1388
+ "api-key.create.insert"
1389
+ ]
1390
+ }
1391
+ ]
1392
+ },
1393
+ {
1394
+ "title": "ada makes a key; the secret is shown once",
1395
+ "call": {
1396
+ "actor": "ada",
1397
+ "operation": "api-key.create",
1398
+ "payload": {
1399
+ "organization": {
1400
+ "ref": [
1401
+ "world",
1402
+ "organization"
1403
+ ]
1404
+ },
1405
+ "name": "ci"
1406
+ }
1407
+ },
1408
+ "checks": [
1409
+ {
1410
+ "kind": "expect",
1411
+ "match": "^key_[0-9a-z]+$",
1412
+ "flags": ""
1413
+ },
1414
+ {
1415
+ "kind": "expect",
1416
+ "match": "^.+$",
1417
+ "flags": ""
1418
+ },
1419
+ {
1420
+ "kind": "spans",
1421
+ "present": [
1422
+ "api-key.create",
1423
+ "api-key.create.issue",
1424
+ "api-key.create.insert"
1425
+ ],
1426
+ "absent": []
1427
+ }
1428
+ ]
1429
+ },
1430
+ {
1431
+ "title": "bob founds an organisation of his own",
1432
+ "call": {
1433
+ "actor": "bob",
1434
+ "operation": "organization.create",
1435
+ "payload": {
1436
+ "name": "Bob Co"
1437
+ }
1438
+ },
1439
+ "checks": [
1440
+ {
1441
+ "kind": "expect",
1442
+ "match": "^org_[0-9a-z]+$",
1443
+ "flags": ""
1444
+ },
1445
+ {
1446
+ "kind": "emits",
1447
+ "event": "OrganizationCreated",
1448
+ "fields": {
1449
+ "organization": {
1450
+ "ref": [
1451
+ "last",
1452
+ "organization"
1453
+ ]
1454
+ },
1455
+ "owner": {
1456
+ "ref": [
1457
+ "cast",
1458
+ "bob",
1459
+ "person"
1460
+ ]
1461
+ }
1462
+ }
1463
+ },
1464
+ {
1465
+ "kind": "is-in",
1466
+ "thing": "organization",
1467
+ "id": {
1468
+ "ref": [
1469
+ "last",
1470
+ "organization"
1471
+ ]
1472
+ },
1473
+ "state": "active"
1474
+ },
1475
+ {
1476
+ "kind": "spans",
1477
+ "present": [
1478
+ "organization.create",
1479
+ "organization.create.insert",
1480
+ "organization.create.owner"
1481
+ ],
1482
+ "absent": []
1483
+ }
1484
+ ]
1485
+ },
1486
+ {
1487
+ "title": "ada can't read bob's organisation",
1488
+ "call": {
1489
+ "actor": "ada",
1490
+ "operation": "organization.get",
1491
+ "payload": {
1492
+ "id": {
1493
+ "ref": [
1494
+ "last",
1495
+ "organization"
1496
+ ]
1497
+ }
1498
+ }
1499
+ },
1500
+ "checks": [
1501
+ {
1502
+ "kind": "refuses",
1503
+ "error": "NotAllowed",
1504
+ "fields": {}
1505
+ }
1506
+ ]
1507
+ },
1508
+ {
1509
+ "title": "bob makes a key in his own organisation",
1510
+ "call": {
1511
+ "actor": "bob",
1512
+ "operation": "api-key.create",
1513
+ "payload": {
1514
+ "organization": {
1515
+ "ref": [
1516
+ "last",
1517
+ "organization"
1518
+ ]
1519
+ },
1520
+ "name": "bob's own key"
1521
+ }
1522
+ },
1523
+ "checks": [
1524
+ {
1525
+ "kind": "expect",
1526
+ "match": "^key_[0-9a-z]+$",
1527
+ "flags": ""
1528
+ },
1529
+ {
1530
+ "kind": "expect",
1531
+ "match": "^.+$",
1532
+ "flags": ""
1533
+ }
1534
+ ]
1535
+ }
1536
+ ],
1537
+ "sourceHash": "6e1c7c375d8388c9ed7a6fc2e41a53724a4856a49e3fe802c526c3f555758f08"
1538
+ },
1539
+ "journeys/health-is-up.ts": {
1540
+ "name": "health is up",
1541
+ "file": "journeys/health-is-up.ts",
1542
+ "cast": {
1543
+ "visitor": {
1544
+ "kind": "anyone"
1545
+ }
1546
+ },
1547
+ "starts": null,
1548
+ "steps": [
1549
+ {
1550
+ "title": "anyone can ask if the application is up",
1551
+ "call": {
1552
+ "actor": "visitor",
1553
+ "operation": "system.health",
1554
+ "payload": {}
1555
+ },
1556
+ "checks": [
1557
+ {
1558
+ "kind": "expect-equal",
1559
+ "value": "ok"
1560
+ },
1561
+ {
1562
+ "kind": "no-events"
1563
+ },
1564
+ {
1565
+ "kind": "spans",
1566
+ "present": [
1567
+ "system.health"
1568
+ ],
1569
+ "absent": []
1570
+ }
1571
+ ]
1572
+ }
1573
+ ],
1574
+ "sourceHash": "75ae85ee5a4bfcfccba6436d8ca16a29a741227a90db4ed87c9c0d1bec330b03"
1575
+ },
1576
+ "journeys/invite-and-accept.ts": {
1577
+ "name": "invite and accept",
1578
+ "file": "journeys/invite-and-accept.ts",
1579
+ "cast": {
1580
+ "ada": {
1581
+ "kind": "role",
1582
+ "role": "organization.owner"
1583
+ },
1584
+ "olga": {
1585
+ "kind": "signed-in"
1586
+ },
1587
+ "bob": {
1588
+ "kind": "signed-in"
1589
+ }
1590
+ },
1591
+ "starts": "founded",
1592
+ "steps": [
1593
+ {
1594
+ "title": "ada sees who she is signed in as",
1595
+ "call": {
1596
+ "actor": "ada",
1597
+ "operation": "session.show",
1598
+ "payload": {}
1599
+ },
1600
+ "checks": [
1601
+ {
1602
+ "kind": "expect-equal",
1603
+ "value": {
1604
+ "ref": [
1605
+ "cast",
1606
+ "ada",
1607
+ "person"
1608
+ ]
1609
+ }
1610
+ },
1611
+ {
1612
+ "kind": "expect-equal",
1613
+ "value": {
1614
+ "ref": [
1615
+ "cast",
1616
+ "ada",
1617
+ "email"
1618
+ ]
1619
+ }
1620
+ },
1621
+ {
1622
+ "kind": "no-events"
1623
+ },
1624
+ {
1625
+ "kind": "spans",
1626
+ "present": [
1627
+ "session.show"
1628
+ ],
1629
+ "absent": []
1630
+ }
1631
+ ]
1632
+ },
1633
+ {
1634
+ "title": "ada reads her organisation",
1635
+ "call": {
1636
+ "actor": "ada",
1637
+ "operation": "organization.get",
1638
+ "payload": {
1639
+ "id": {
1640
+ "ref": [
1641
+ "world",
1642
+ "organization"
1643
+ ]
1644
+ }
1645
+ }
1646
+ },
1647
+ "checks": [
1648
+ {
1649
+ "kind": "expect-equal",
1650
+ "value": "Acme Demo"
1651
+ },
1652
+ {
1653
+ "kind": "expect-equal",
1654
+ "value": {
1655
+ "ref": [
1656
+ "cast",
1657
+ "ada",
1658
+ "person"
1659
+ ]
1660
+ }
1661
+ },
1662
+ {
1663
+ "kind": "expect-equal",
1664
+ "value": "active"
1665
+ },
1666
+ {
1667
+ "kind": "is-in",
1668
+ "thing": "organization",
1669
+ "id": {
1670
+ "ref": [
1671
+ "world",
1672
+ "organization"
1673
+ ]
1674
+ },
1675
+ "state": "active"
1676
+ },
1677
+ {
1678
+ "kind": "no-events"
1679
+ }
1680
+ ]
1681
+ },
1682
+ {
1683
+ "title": "bob can't invite anyone to it",
1684
+ "call": {
1685
+ "actor": "bob",
1686
+ "operation": "invitation.send",
1687
+ "payload": {
1688
+ "organization": {
1689
+ "ref": [
1690
+ "world",
1691
+ "organization"
1692
+ ]
1693
+ },
1694
+ "email": {
1695
+ "ref": [
1696
+ "cast",
1697
+ "olga",
1698
+ "email"
1699
+ ]
1700
+ }
1701
+ }
1702
+ },
1703
+ "checks": [
1704
+ {
1705
+ "kind": "refuses",
1706
+ "error": "NotAllowed",
1707
+ "fields": {}
1708
+ },
1709
+ {
1710
+ "kind": "no-events"
1711
+ },
1712
+ {
1713
+ "kind": "spans",
1714
+ "present": [],
1715
+ "absent": [
1716
+ "invitation.send",
1717
+ "invitation.send.insert"
1718
+ ]
1719
+ }
1720
+ ]
1721
+ },
1722
+ {
1723
+ "title": "ada invites olga by her email",
1724
+ "call": {
1725
+ "actor": "ada",
1726
+ "operation": "invitation.send",
1727
+ "payload": {
1728
+ "organization": {
1729
+ "ref": [
1730
+ "world",
1731
+ "organization"
1732
+ ]
1733
+ },
1734
+ "email": {
1735
+ "ref": [
1736
+ "cast",
1737
+ "olga",
1738
+ "email"
1739
+ ]
1740
+ }
1741
+ }
1742
+ },
1743
+ "checks": [
1744
+ {
1745
+ "kind": "expect",
1746
+ "match": "^inv_[0-9a-z]+$",
1747
+ "flags": ""
1748
+ },
1749
+ {
1750
+ "kind": "emits",
1751
+ "event": "InvitationSent",
1752
+ "fields": {
1753
+ "invitation": {
1754
+ "ref": [
1755
+ "last",
1756
+ "invitation"
1757
+ ]
1758
+ },
1759
+ "email": {
1760
+ "ref": [
1761
+ "cast",
1762
+ "olga",
1763
+ "email"
1764
+ ]
1765
+ }
1766
+ }
1767
+ },
1768
+ {
1769
+ "kind": "is-in",
1770
+ "thing": "invitation",
1771
+ "id": {
1772
+ "ref": [
1773
+ "last",
1774
+ "invitation"
1775
+ ]
1776
+ },
1777
+ "state": "pending"
1778
+ },
1779
+ {
1780
+ "kind": "spans",
1781
+ "present": [
1782
+ "invitation.send",
1783
+ "invitation.send.insert"
1784
+ ],
1785
+ "absent": []
1786
+ }
1787
+ ]
1788
+ },
1789
+ {
1790
+ "title": "bob can't accept olga's invitation",
1791
+ "call": {
1792
+ "actor": "bob",
1793
+ "operation": "invitation.accept",
1794
+ "payload": {
1795
+ "invitation": {
1796
+ "ref": [
1797
+ "last",
1798
+ "invitation"
1799
+ ]
1800
+ }
1801
+ }
1802
+ },
1803
+ "checks": [
1804
+ {
1805
+ "kind": "refuses",
1806
+ "error": "NotAllowed",
1807
+ "fields": {}
1808
+ },
1809
+ {
1810
+ "kind": "no-events"
1811
+ },
1812
+ {
1813
+ "kind": "is-in",
1814
+ "thing": "invitation",
1815
+ "id": {
1816
+ "ref": [
1817
+ "last",
1818
+ "invitation"
1819
+ ]
1820
+ },
1821
+ "state": "pending"
1822
+ },
1823
+ {
1824
+ "kind": "spans",
1825
+ "present": [],
1826
+ "absent": [
1827
+ "invitation.accept",
1828
+ "invitation.accept.join"
1829
+ ]
1830
+ }
1831
+ ]
1832
+ },
1833
+ {
1834
+ "title": "olga accepts and joins ada's organisation",
1835
+ "call": {
1836
+ "actor": "olga",
1837
+ "operation": "invitation.accept",
1838
+ "payload": {
1839
+ "invitation": {
1840
+ "ref": [
1841
+ "last",
1842
+ "invitation"
1843
+ ]
1844
+ }
1845
+ }
1846
+ },
1847
+ "checks": [
1848
+ {
1849
+ "kind": "expect-equal",
1850
+ "value": {
1851
+ "ref": [
1852
+ "world",
1853
+ "organization"
1854
+ ]
1855
+ }
1856
+ },
1857
+ {
1858
+ "kind": "expect",
1859
+ "match": "^mem_[0-9a-z]+$",
1860
+ "flags": ""
1861
+ },
1862
+ {
1863
+ "kind": "emits",
1864
+ "event": "InvitationAccepted",
1865
+ "fields": {
1866
+ "membership": {
1867
+ "ref": [
1868
+ "last",
1869
+ "membership"
1870
+ ]
1871
+ }
1872
+ }
1873
+ },
1874
+ {
1875
+ "kind": "spans",
1876
+ "present": [
1877
+ "invitation.accept",
1878
+ "invitation.accept.join"
1879
+ ],
1880
+ "absent": []
1881
+ }
1882
+ ]
1883
+ },
1884
+ {
1885
+ "title": "bob can't read olga's membership",
1886
+ "call": {
1887
+ "actor": "bob",
1888
+ "operation": "membership.get",
1889
+ "payload": {
1890
+ "id": {
1891
+ "ref": [
1892
+ "last",
1893
+ "membership"
1894
+ ]
1895
+ }
1896
+ }
1897
+ },
1898
+ "checks": [
1899
+ {
1900
+ "kind": "refuses",
1901
+ "error": "NotAllowed",
1902
+ "fields": {}
1903
+ }
1904
+ ]
1905
+ },
1906
+ {
1907
+ "title": "olga reads her membership: she is a member, not an owner",
1908
+ "call": {
1909
+ "actor": "olga",
1910
+ "operation": "membership.get",
1911
+ "payload": {
1912
+ "id": {
1913
+ "ref": [
1914
+ "last",
1915
+ "membership"
1916
+ ]
1917
+ }
1918
+ }
1919
+ },
1920
+ "checks": [
1921
+ {
1922
+ "kind": "expect-equal",
1923
+ "value": {
1924
+ "ref": [
1925
+ "world",
1926
+ "organization"
1927
+ ]
1928
+ }
1929
+ },
1930
+ {
1931
+ "kind": "expect-equal",
1932
+ "value": {
1933
+ "ref": [
1934
+ "cast",
1935
+ "olga",
1936
+ "person"
1937
+ ]
1938
+ }
1939
+ },
1940
+ {
1941
+ "kind": "expect-equal",
1942
+ "value": "member"
1943
+ },
1944
+ {
1945
+ "kind": "no-events"
1946
+ }
1947
+ ]
1948
+ },
1949
+ {
1950
+ "title": "ada sends a second invitation",
1951
+ "call": {
1952
+ "actor": "ada",
1953
+ "operation": "invitation.send",
1954
+ "payload": {
1955
+ "organization": {
1956
+ "ref": [
1957
+ "world",
1958
+ "organization"
1959
+ ]
1960
+ },
1961
+ "email": {
1962
+ "ref": [
1963
+ "cast",
1964
+ "bob",
1965
+ "email"
1966
+ ]
1967
+ }
1968
+ }
1969
+ },
1970
+ "checks": [
1971
+ {
1972
+ "kind": "expect",
1973
+ "match": "^inv_[0-9a-z]+$",
1974
+ "flags": ""
1975
+ },
1976
+ {
1977
+ "kind": "emits",
1978
+ "event": "InvitationSent",
1979
+ "fields": {
1980
+ "invitation": {
1981
+ "ref": [
1982
+ "last",
1983
+ "invitation"
1984
+ ]
1985
+ },
1986
+ "email": {
1987
+ "ref": [
1988
+ "cast",
1989
+ "bob",
1990
+ "email"
1991
+ ]
1992
+ }
1993
+ }
1994
+ },
1995
+ {
1996
+ "kind": "is-in",
1997
+ "thing": "invitation",
1998
+ "id": {
1999
+ "ref": [
2000
+ "last",
2001
+ "invitation"
2002
+ ]
2003
+ },
2004
+ "state": "pending"
2005
+ }
2006
+ ]
2007
+ },
2008
+ {
2009
+ "title": "olga, a member but not the owner, can't revoke it",
2010
+ "call": {
2011
+ "actor": "olga",
2012
+ "operation": "invitation.revoke",
2013
+ "payload": {
2014
+ "invitation": {
2015
+ "ref": [
2016
+ "last",
2017
+ "invitation"
2018
+ ]
2019
+ }
2020
+ }
2021
+ },
2022
+ "checks": [
2023
+ {
2024
+ "kind": "refuses",
2025
+ "error": "NotAllowed",
2026
+ "fields": {}
2027
+ },
2028
+ {
2029
+ "kind": "no-events"
2030
+ },
2031
+ {
2032
+ "kind": "spans",
2033
+ "present": [],
2034
+ "absent": [
2035
+ "invitation.revoke",
2036
+ "invitation.revoke.update"
2037
+ ]
2038
+ }
2039
+ ]
2040
+ },
2041
+ {
2042
+ "title": "ada revokes it",
2043
+ "call": {
2044
+ "actor": "ada",
2045
+ "operation": "invitation.revoke",
2046
+ "payload": {
2047
+ "invitation": {
2048
+ "ref": [
2049
+ "last",
2050
+ "invitation"
2051
+ ]
2052
+ }
2053
+ }
2054
+ },
2055
+ "checks": [
2056
+ {
2057
+ "kind": "emits",
2058
+ "event": "InvitationRevoked",
2059
+ "fields": {}
2060
+ },
2061
+ {
2062
+ "kind": "spans",
2063
+ "present": [
2064
+ "invitation.revoke",
2065
+ "invitation.revoke.update"
2066
+ ],
2067
+ "absent": []
2068
+ }
2069
+ ]
2070
+ }
2071
+ ],
2072
+ "sourceHash": "cf697a8e531f10316e6513348e93486c809fb842fca372774d580eeef91fbb4a"
2073
+ },
2074
+ "journeys/sign-up-and-sign-in.ts": {
2075
+ "name": "sign up and sign in",
2076
+ "file": "journeys/sign-up-and-sign-in.ts",
2077
+ "cast": {
2078
+ "newcomer": {
2079
+ "kind": "anyone"
2080
+ }
2081
+ },
2082
+ "starts": null,
2083
+ "steps": [
2084
+ {
2085
+ "title": "before signing up the newcomer is nobody",
2086
+ "call": {
2087
+ "actor": "newcomer",
2088
+ "operation": "session.show",
2089
+ "payload": {}
2090
+ },
2091
+ "checks": [
2092
+ {
2093
+ "kind": "refuses",
2094
+ "error": "NotAllowed",
2095
+ "fields": {}
2096
+ },
2097
+ {
2098
+ "kind": "no-events"
2099
+ },
2100
+ {
2101
+ "kind": "spans",
2102
+ "present": [],
2103
+ "absent": [
2104
+ "session.show"
2105
+ ]
2106
+ }
2107
+ ]
2108
+ },
2109
+ {
2110
+ "title": "the newcomer signs up",
2111
+ "call": {
2112
+ "actor": "newcomer",
2113
+ "operation": "person.sign-up",
2114
+ "payload": {
2115
+ "email": {
2116
+ "ref": [
2117
+ "cast",
2118
+ "newcomer",
2119
+ "email"
2120
+ ]
2121
+ },
2122
+ "password": {
2123
+ "ref": [
2124
+ "cast",
2125
+ "newcomer",
2126
+ "password"
2127
+ ]
2128
+ },
2129
+ "name": "Newcomer"
2130
+ }
2131
+ },
2132
+ "checks": [
2133
+ {
2134
+ "kind": "expect",
2135
+ "match": "^per_[0-9a-z]+$",
2136
+ "flags": ""
2137
+ },
2138
+ {
2139
+ "kind": "spans",
2140
+ "present": [
2141
+ "person.sign-up",
2142
+ "person.sign-up.create"
2143
+ ],
2144
+ "absent": []
2145
+ }
2146
+ ]
2147
+ },
2148
+ {
2149
+ "title": "signing up again with the same email is refused",
2150
+ "call": {
2151
+ "actor": "newcomer",
2152
+ "operation": "person.sign-up",
2153
+ "payload": {
2154
+ "email": {
2155
+ "ref": [
2156
+ "cast",
2157
+ "newcomer",
2158
+ "email"
2159
+ ]
2160
+ },
2161
+ "password": {
2162
+ "ref": [
2163
+ "cast",
2164
+ "newcomer",
2165
+ "password"
2166
+ ]
2167
+ },
2168
+ "name": "Newcomer again"
2169
+ }
2170
+ },
2171
+ "checks": [
2172
+ {
2173
+ "kind": "refuses",
2174
+ "error": "PersonEmailTaken",
2175
+ "fields": {}
2176
+ },
2177
+ {
2178
+ "kind": "no-events"
2179
+ },
2180
+ {
2181
+ "kind": "spans",
2182
+ "present": [
2183
+ "person.sign-up"
2184
+ ],
2185
+ "absent": []
2186
+ }
2187
+ ]
2188
+ },
2189
+ {
2190
+ "title": "a wrong password is refused",
2191
+ "call": {
2192
+ "actor": "newcomer",
2193
+ "operation": "session.sign-in",
2194
+ "payload": {
2195
+ "email": {
2196
+ "ref": [
2197
+ "cast",
2198
+ "newcomer",
2199
+ "email"
2200
+ ]
2201
+ },
2202
+ "password": {
2203
+ "redacted": true
2204
+ }
2205
+ }
2206
+ },
2207
+ "checks": [
2208
+ {
2209
+ "kind": "refuses",
2210
+ "error": "SessionCredentialsWrong",
2211
+ "fields": {}
2212
+ },
2213
+ {
2214
+ "kind": "no-events"
2215
+ },
2216
+ {
2217
+ "kind": "spans",
2218
+ "present": [
2219
+ "session.sign-in"
2220
+ ],
2221
+ "absent": []
2222
+ }
2223
+ ]
2224
+ },
2225
+ {
2226
+ "title": "the right password answers a session and a token",
2227
+ "call": {
2228
+ "actor": "newcomer",
2229
+ "operation": "session.sign-in",
2230
+ "payload": {
2231
+ "email": {
2232
+ "ref": [
2233
+ "cast",
2234
+ "newcomer",
2235
+ "email"
2236
+ ]
2237
+ },
2238
+ "password": {
2239
+ "ref": [
2240
+ "cast",
2241
+ "newcomer",
2242
+ "password"
2243
+ ]
2244
+ }
2245
+ }
2246
+ },
2247
+ "checks": [
2248
+ {
2249
+ "kind": "expect",
2250
+ "match": "^ses_[0-9a-z]+$",
2251
+ "flags": ""
2252
+ },
2253
+ {
2254
+ "kind": "expect",
2255
+ "match": "^.+$",
2256
+ "flags": ""
2257
+ },
2258
+ {
2259
+ "kind": "spans",
2260
+ "present": [
2261
+ "session.sign-in",
2262
+ "session.sign-in.verify"
2263
+ ],
2264
+ "absent": []
2265
+ }
2266
+ ]
2267
+ }
2268
+ ],
2269
+ "sourceHash": "59cd73d467f68f7747f707b3f32e2fe02e5807444a42aef338d5bfa697e7cd87"
2270
+ }
2271
+ },
2272
+ "startingWorlds": {
2273
+ "founded": {
2274
+ "name": "founded",
2275
+ "file": "blueprint/starting-worlds/founded.ts",
2276
+ "from": null,
2277
+ "cast": {
2278
+ "ada": {
2279
+ "kind": "role",
2280
+ "role": "organization.owner"
2281
+ }
2282
+ },
2283
+ "sourceHash": "7fc64f2291c5db5ba4755646c988e0646866c96633d7190068131b17ecb59278",
2284
+ "makes": [
2285
+ {
2286
+ "actor": "ada",
2287
+ "operation": "organization.create",
2288
+ "payload": {
2289
+ "name": "Acme Demo"
2290
+ }
2291
+ }
2292
+ ],
2293
+ "gives": {
2294
+ "organization": {
2295
+ "ref": [
2296
+ "last",
2297
+ "organization"
2298
+ ]
2299
+ }
2300
+ }
2301
+ },
2302
+ "invited": {
2303
+ "name": "invited",
2304
+ "file": "blueprint/starting-worlds/invited.ts",
2305
+ "from": "founded",
2306
+ "cast": {
2307
+ "ada": {
2308
+ "kind": "role",
2309
+ "role": "organization.owner"
2310
+ },
2311
+ "olga": {
2312
+ "kind": "signed-in"
2313
+ }
2314
+ },
2315
+ "sourceHash": "496b865f4b984f114c22472960e4d221dd1fa428b97f46d74da7e35a3e5487fa",
2316
+ "makes": [
2317
+ {
2318
+ "actor": "ada",
2319
+ "operation": "invitation.send",
2320
+ "payload": {
2321
+ "organization": {
2322
+ "ref": [
2323
+ "world",
2324
+ "organization"
2325
+ ]
2326
+ },
2327
+ "email": {
2328
+ "ref": [
2329
+ "cast",
2330
+ "olga",
2331
+ "email"
2332
+ ]
2333
+ }
2334
+ }
2335
+ }
2336
+ ],
2337
+ "gives": {
2338
+ "organization": {
2339
+ "ref": [
2340
+ "world",
2341
+ "organization"
2342
+ ]
2343
+ },
2344
+ "invitation": {
2345
+ "ref": [
2346
+ "last",
2347
+ "invitation"
2348
+ ]
2349
+ }
2350
+ }
2351
+ }
2352
+ },
2353
+ "environments": {
2354
+ "local": {
2355
+ "name": "local",
2356
+ "file": "blueprint/environments/local.ts",
2357
+ "runs": "on this machine",
2358
+ "identity": "test-principals",
2359
+ "lifetimeMs": null,
2360
+ "cloud": null,
2361
+ "database": "d1-local",
2362
+ "secrets": {},
2363
+ "promotesFrom": null,
2364
+ "telemetry": [
2365
+ {
2366
+ "sink": "local"
2367
+ }
2368
+ ],
2369
+ "deploy": {},
2370
+ "publish": {},
2371
+ "hash": "0f14705e03d3bc97"
2372
+ },
2373
+ "production": {
2374
+ "name": "production",
2375
+ "file": "blueprint/environments/production.ts",
2376
+ "runs": "always on",
2377
+ "identity": "better-auth",
2378
+ "lifetimeMs": null,
2379
+ "cloud": {
2380
+ "provider": "cloudflare",
2381
+ "database": "d1"
2382
+ },
2383
+ "database": null,
2384
+ "secrets": {},
2385
+ "promotesFrom": "staging",
2386
+ "deploy": {
2387
+ "server": {
2388
+ "how": "worker",
2389
+ "domain": null
2390
+ }
2391
+ },
2392
+ "publish": {
2393
+ "cli": [
2394
+ {
2395
+ "how": "npm",
2396
+ "tag": null
2397
+ }
2398
+ ],
2399
+ "sdk": [
2400
+ {
2401
+ "how": "npm",
2402
+ "tag": null
2403
+ }
2404
+ ]
2405
+ },
2406
+ "hash": "1dfc78cddbccb96a"
2407
+ },
2408
+ "staging": {
2409
+ "name": "staging",
2410
+ "file": "blueprint/environments/staging.ts",
2411
+ "runs": "always on",
2412
+ "identity": "better-auth",
2413
+ "lifetimeMs": null,
2414
+ "cloud": {
2415
+ "provider": "cloudflare",
2416
+ "database": "d1"
2417
+ },
2418
+ "database": null,
2419
+ "secrets": {},
2420
+ "promotesFrom": null,
2421
+ "deploy": {
2422
+ "server": {
2423
+ "how": "worker",
2424
+ "domain": null
2425
+ }
2426
+ },
2427
+ "publish": {
2428
+ "cli": [
2429
+ {
2430
+ "how": "npm",
2431
+ "tag": "next"
2432
+ }
2433
+ ],
2434
+ "sdk": [
2435
+ {
2436
+ "how": "npm",
2437
+ "tag": "next"
2438
+ }
2439
+ ]
2440
+ },
2441
+ "hash": "a07f0efb92bd99a6"
2442
+ },
2443
+ "test": {
2444
+ "name": "test",
2445
+ "file": "blueprint/environments/test.ts",
2446
+ "runs": "a fresh world for each pull request",
2447
+ "identity": "test-principals",
2448
+ "lifetimeMs": 7200000,
2449
+ "cloud": {
2450
+ "provider": "cloudflare",
2451
+ "database": "d1"
2452
+ },
2453
+ "database": null,
2454
+ "secrets": {},
2455
+ "promotesFrom": null,
2456
+ "deploy": {},
2457
+ "publish": {},
2458
+ "hash": "e264584f19862db6"
2459
+ }
2460
+ },
2461
+ "alertRules": [
2462
+ {
2463
+ "id": "anomaly:AR-001",
2464
+ "kind": "anomaly",
2465
+ "labels": {
2466
+ "environment": "*",
2467
+ "code": "AR-001",
2468
+ "severity": "ticket",
2469
+ "owner": "orthograph"
2470
+ }
2471
+ },
2472
+ {
2473
+ "id": "anomaly:AR-002",
2474
+ "kind": "anomaly",
2475
+ "labels": {
2476
+ "environment": "*",
2477
+ "code": "AR-002",
2478
+ "severity": "ticket",
2479
+ "owner": "orthograph"
2480
+ }
2481
+ },
2482
+ {
2483
+ "id": "anomaly:IN-900",
2484
+ "kind": "anomaly",
2485
+ "labels": {
2486
+ "environment": "*",
2487
+ "code": "IN-900",
2488
+ "severity": "ticket",
2489
+ "owner": "orthograph"
2490
+ }
2491
+ },
2492
+ {
2493
+ "id": "anomaly:OR-900",
2494
+ "kind": "anomaly",
2495
+ "labels": {
2496
+ "environment": "*",
2497
+ "code": "OR-900",
2498
+ "severity": "ticket",
2499
+ "owner": "orthograph"
2500
+ }
2501
+ },
2502
+ {
2503
+ "id": "anomaly:PE-001",
2504
+ "kind": "anomaly",
2505
+ "labels": {
2506
+ "environment": "*",
2507
+ "code": "PE-001",
2508
+ "severity": "ticket",
2509
+ "owner": "blueprint/things/person/errors.ts"
2510
+ }
2511
+ },
2512
+ {
2513
+ "id": "anomaly:SE-001",
2514
+ "kind": "anomaly",
2515
+ "labels": {
2516
+ "environment": "*",
2517
+ "code": "SE-001",
2518
+ "severity": "ticket",
2519
+ "owner": "blueprint/things/session/errors.ts"
2520
+ }
2521
+ },
2522
+ {
2523
+ "id": "defect:api-key.create",
2524
+ "kind": "defect",
2525
+ "labels": {
2526
+ "environment": "*",
2527
+ "operation": "api-key.create",
2528
+ "severity": "page",
2529
+ "owner": "blueprint/things/api-key/verbs/create.ts"
2530
+ },
2531
+ "target": 0.999,
2532
+ "windowDays": 28,
2533
+ "minCalls": 20,
2534
+ "alerts": [
2535
+ {
2536
+ "name": "fast",
2537
+ "burn": 14.4,
2538
+ "windowsMs": [
2539
+ 3600000,
2540
+ 300000
2541
+ ],
2542
+ "severity": "page"
2543
+ },
2544
+ {
2545
+ "name": "slow",
2546
+ "burn": 6,
2547
+ "windowsMs": [
2548
+ 21600000,
2549
+ 1800000
2550
+ ],
2551
+ "severity": "page"
2552
+ },
2553
+ {
2554
+ "name": "ticket",
2555
+ "burn": 1,
2556
+ "windowsMs": [
2557
+ 259200000,
2558
+ 21600000
2559
+ ],
2560
+ "severity": "ticket"
2561
+ }
2562
+ ]
2563
+ },
2564
+ {
2565
+ "id": "defect:invitation.accept",
2566
+ "kind": "defect",
2567
+ "labels": {
2568
+ "environment": "*",
2569
+ "operation": "invitation.accept",
2570
+ "severity": "page",
2571
+ "owner": "blueprint/things/invitation/verbs/accept.ts"
2572
+ },
2573
+ "target": 0.999,
2574
+ "windowDays": 28,
2575
+ "minCalls": 20,
2576
+ "alerts": [
2577
+ {
2578
+ "name": "fast",
2579
+ "burn": 14.4,
2580
+ "windowsMs": [
2581
+ 3600000,
2582
+ 300000
2583
+ ],
2584
+ "severity": "page"
2585
+ },
2586
+ {
2587
+ "name": "slow",
2588
+ "burn": 6,
2589
+ "windowsMs": [
2590
+ 21600000,
2591
+ 1800000
2592
+ ],
2593
+ "severity": "page"
2594
+ },
2595
+ {
2596
+ "name": "ticket",
2597
+ "burn": 1,
2598
+ "windowsMs": [
2599
+ 259200000,
2600
+ 21600000
2601
+ ],
2602
+ "severity": "ticket"
2603
+ }
2604
+ ]
2605
+ },
2606
+ {
2607
+ "id": "defect:invitation.revoke",
2608
+ "kind": "defect",
2609
+ "labels": {
2610
+ "environment": "*",
2611
+ "operation": "invitation.revoke",
2612
+ "severity": "page",
2613
+ "owner": "blueprint/things/invitation/verbs/revoke.ts"
2614
+ },
2615
+ "target": 0.999,
2616
+ "windowDays": 28,
2617
+ "minCalls": 20,
2618
+ "alerts": [
2619
+ {
2620
+ "name": "fast",
2621
+ "burn": 14.4,
2622
+ "windowsMs": [
2623
+ 3600000,
2624
+ 300000
2625
+ ],
2626
+ "severity": "page"
2627
+ },
2628
+ {
2629
+ "name": "slow",
2630
+ "burn": 6,
2631
+ "windowsMs": [
2632
+ 21600000,
2633
+ 1800000
2634
+ ],
2635
+ "severity": "page"
2636
+ },
2637
+ {
2638
+ "name": "ticket",
2639
+ "burn": 1,
2640
+ "windowsMs": [
2641
+ 259200000,
2642
+ 21600000
2643
+ ],
2644
+ "severity": "ticket"
2645
+ }
2646
+ ]
2647
+ },
2648
+ {
2649
+ "id": "defect:invitation.send",
2650
+ "kind": "defect",
2651
+ "labels": {
2652
+ "environment": "*",
2653
+ "operation": "invitation.send",
2654
+ "severity": "page",
2655
+ "owner": "blueprint/things/invitation/verbs/send.ts"
2656
+ },
2657
+ "target": 0.999,
2658
+ "windowDays": 28,
2659
+ "minCalls": 20,
2660
+ "alerts": [
2661
+ {
2662
+ "name": "fast",
2663
+ "burn": 14.4,
2664
+ "windowsMs": [
2665
+ 3600000,
2666
+ 300000
2667
+ ],
2668
+ "severity": "page"
2669
+ },
2670
+ {
2671
+ "name": "slow",
2672
+ "burn": 6,
2673
+ "windowsMs": [
2674
+ 21600000,
2675
+ 1800000
2676
+ ],
2677
+ "severity": "page"
2678
+ },
2679
+ {
2680
+ "name": "ticket",
2681
+ "burn": 1,
2682
+ "windowsMs": [
2683
+ 259200000,
2684
+ 21600000
2685
+ ],
2686
+ "severity": "ticket"
2687
+ }
2688
+ ]
2689
+ },
2690
+ {
2691
+ "id": "defect:membership.get",
2692
+ "kind": "defect",
2693
+ "labels": {
2694
+ "environment": "*",
2695
+ "operation": "membership.get",
2696
+ "severity": "page",
2697
+ "owner": "blueprint/things/membership/verbs/get.ts"
2698
+ },
2699
+ "target": 0.999,
2700
+ "windowDays": 28,
2701
+ "minCalls": 20,
2702
+ "alerts": [
2703
+ {
2704
+ "name": "fast",
2705
+ "burn": 14.4,
2706
+ "windowsMs": [
2707
+ 3600000,
2708
+ 300000
2709
+ ],
2710
+ "severity": "page"
2711
+ },
2712
+ {
2713
+ "name": "slow",
2714
+ "burn": 6,
2715
+ "windowsMs": [
2716
+ 21600000,
2717
+ 1800000
2718
+ ],
2719
+ "severity": "page"
2720
+ },
2721
+ {
2722
+ "name": "ticket",
2723
+ "burn": 1,
2724
+ "windowsMs": [
2725
+ 259200000,
2726
+ 21600000
2727
+ ],
2728
+ "severity": "ticket"
2729
+ }
2730
+ ]
2731
+ },
2732
+ {
2733
+ "id": "defect:organization.create",
2734
+ "kind": "defect",
2735
+ "labels": {
2736
+ "environment": "*",
2737
+ "operation": "organization.create",
2738
+ "severity": "page",
2739
+ "owner": "blueprint/things/organization/verbs/create.ts"
2740
+ },
2741
+ "target": 0.999,
2742
+ "windowDays": 28,
2743
+ "minCalls": 20,
2744
+ "alerts": [
2745
+ {
2746
+ "name": "fast",
2747
+ "burn": 14.4,
2748
+ "windowsMs": [
2749
+ 3600000,
2750
+ 300000
2751
+ ],
2752
+ "severity": "page"
2753
+ },
2754
+ {
2755
+ "name": "slow",
2756
+ "burn": 6,
2757
+ "windowsMs": [
2758
+ 21600000,
2759
+ 1800000
2760
+ ],
2761
+ "severity": "page"
2762
+ },
2763
+ {
2764
+ "name": "ticket",
2765
+ "burn": 1,
2766
+ "windowsMs": [
2767
+ 259200000,
2768
+ 21600000
2769
+ ],
2770
+ "severity": "ticket"
2771
+ }
2772
+ ]
2773
+ },
2774
+ {
2775
+ "id": "defect:organization.get",
2776
+ "kind": "defect",
2777
+ "labels": {
2778
+ "environment": "*",
2779
+ "operation": "organization.get",
2780
+ "severity": "page",
2781
+ "owner": "blueprint/things/organization/verbs/get.ts"
2782
+ },
2783
+ "target": 0.999,
2784
+ "windowDays": 28,
2785
+ "minCalls": 20,
2786
+ "alerts": [
2787
+ {
2788
+ "name": "fast",
2789
+ "burn": 14.4,
2790
+ "windowsMs": [
2791
+ 3600000,
2792
+ 300000
2793
+ ],
2794
+ "severity": "page"
2795
+ },
2796
+ {
2797
+ "name": "slow",
2798
+ "burn": 6,
2799
+ "windowsMs": [
2800
+ 21600000,
2801
+ 1800000
2802
+ ],
2803
+ "severity": "page"
2804
+ },
2805
+ {
2806
+ "name": "ticket",
2807
+ "burn": 1,
2808
+ "windowsMs": [
2809
+ 259200000,
2810
+ 21600000
2811
+ ],
2812
+ "severity": "ticket"
2813
+ }
2814
+ ]
2815
+ },
2816
+ {
2817
+ "id": "defect:person.sign-up",
2818
+ "kind": "defect",
2819
+ "labels": {
2820
+ "environment": "*",
2821
+ "operation": "person.sign-up",
2822
+ "severity": "page",
2823
+ "owner": "blueprint/things/person/verbs/sign-up.ts"
2824
+ },
2825
+ "target": 0.999,
2826
+ "windowDays": 28,
2827
+ "minCalls": 20,
2828
+ "alerts": [
2829
+ {
2830
+ "name": "fast",
2831
+ "burn": 14.4,
2832
+ "windowsMs": [
2833
+ 3600000,
2834
+ 300000
2835
+ ],
2836
+ "severity": "page"
2837
+ },
2838
+ {
2839
+ "name": "slow",
2840
+ "burn": 6,
2841
+ "windowsMs": [
2842
+ 21600000,
2843
+ 1800000
2844
+ ],
2845
+ "severity": "page"
2846
+ },
2847
+ {
2848
+ "name": "ticket",
2849
+ "burn": 1,
2850
+ "windowsMs": [
2851
+ 259200000,
2852
+ 21600000
2853
+ ],
2854
+ "severity": "ticket"
2855
+ }
2856
+ ]
2857
+ },
2858
+ {
2859
+ "id": "defect:session.show",
2860
+ "kind": "defect",
2861
+ "labels": {
2862
+ "environment": "*",
2863
+ "operation": "session.show",
2864
+ "severity": "page",
2865
+ "owner": "blueprint/things/session/verbs/show.ts"
2866
+ },
2867
+ "target": 0.999,
2868
+ "windowDays": 28,
2869
+ "minCalls": 20,
2870
+ "alerts": [
2871
+ {
2872
+ "name": "fast",
2873
+ "burn": 14.4,
2874
+ "windowsMs": [
2875
+ 3600000,
2876
+ 300000
2877
+ ],
2878
+ "severity": "page"
2879
+ },
2880
+ {
2881
+ "name": "slow",
2882
+ "burn": 6,
2883
+ "windowsMs": [
2884
+ 21600000,
2885
+ 1800000
2886
+ ],
2887
+ "severity": "page"
2888
+ },
2889
+ {
2890
+ "name": "ticket",
2891
+ "burn": 1,
2892
+ "windowsMs": [
2893
+ 259200000,
2894
+ 21600000
2895
+ ],
2896
+ "severity": "ticket"
2897
+ }
2898
+ ]
2899
+ },
2900
+ {
2901
+ "id": "defect:session.sign-in",
2902
+ "kind": "defect",
2903
+ "labels": {
2904
+ "environment": "*",
2905
+ "operation": "session.sign-in",
2906
+ "severity": "page",
2907
+ "owner": "blueprint/things/session/verbs/sign-in.ts"
2908
+ },
2909
+ "target": 0.999,
2910
+ "windowDays": 28,
2911
+ "minCalls": 20,
2912
+ "alerts": [
2913
+ {
2914
+ "name": "fast",
2915
+ "burn": 14.4,
2916
+ "windowsMs": [
2917
+ 3600000,
2918
+ 300000
2919
+ ],
2920
+ "severity": "page"
2921
+ },
2922
+ {
2923
+ "name": "slow",
2924
+ "burn": 6,
2925
+ "windowsMs": [
2926
+ 21600000,
2927
+ 1800000
2928
+ ],
2929
+ "severity": "page"
2930
+ },
2931
+ {
2932
+ "name": "ticket",
2933
+ "burn": 1,
2934
+ "windowsMs": [
2935
+ 259200000,
2936
+ 21600000
2937
+ ],
2938
+ "severity": "ticket"
2939
+ }
2940
+ ]
2941
+ },
2942
+ {
2943
+ "id": "defect:system.health",
2944
+ "kind": "defect",
2945
+ "labels": {
2946
+ "environment": "*",
2947
+ "operation": "system.health",
2948
+ "severity": "page",
2949
+ "owner": "blueprint/things/system/verbs/health.ts"
2950
+ },
2951
+ "target": 0.999,
2952
+ "windowDays": 28,
2953
+ "minCalls": 20,
2954
+ "alerts": [
2955
+ {
2956
+ "name": "fast",
2957
+ "burn": 14.4,
2958
+ "windowsMs": [
2959
+ 3600000,
2960
+ 300000
2961
+ ],
2962
+ "severity": "page"
2963
+ },
2964
+ {
2965
+ "name": "slow",
2966
+ "burn": 6,
2967
+ "windowsMs": [
2968
+ 21600000,
2969
+ 1800000
2970
+ ],
2971
+ "severity": "page"
2972
+ },
2973
+ {
2974
+ "name": "ticket",
2975
+ "burn": 1,
2976
+ "windowsMs": [
2977
+ 259200000,
2978
+ 21600000
2979
+ ],
2980
+ "severity": "ticket"
2981
+ }
2982
+ ]
2983
+ },
2984
+ {
2985
+ "id": "latency:api-key.create",
2986
+ "kind": "latency",
2987
+ "labels": {
2988
+ "environment": "*",
2989
+ "operation": "api-key.create",
2990
+ "severity": "page",
2991
+ "owner": "blueprint/things/api-key/verbs/create.ts"
2992
+ },
2993
+ "target": 0.95,
2994
+ "windowDays": 28,
2995
+ "thresholdMs": 250,
2996
+ "minCalls": 20,
2997
+ "alerts": [
2998
+ {
2999
+ "name": "fast",
3000
+ "burn": 14.4,
3001
+ "windowsMs": [
3002
+ 3600000,
3003
+ 300000
3004
+ ],
3005
+ "severity": "page"
3006
+ },
3007
+ {
3008
+ "name": "slow",
3009
+ "burn": 6,
3010
+ "windowsMs": [
3011
+ 21600000,
3012
+ 1800000
3013
+ ],
3014
+ "severity": "page"
3015
+ },
3016
+ {
3017
+ "name": "ticket",
3018
+ "burn": 1,
3019
+ "windowsMs": [
3020
+ 259200000,
3021
+ 21600000
3022
+ ],
3023
+ "severity": "ticket"
3024
+ }
3025
+ ]
3026
+ },
3027
+ {
3028
+ "id": "latency:invitation.accept",
3029
+ "kind": "latency",
3030
+ "labels": {
3031
+ "environment": "*",
3032
+ "operation": "invitation.accept",
3033
+ "severity": "page",
3034
+ "owner": "blueprint/things/invitation/verbs/accept.ts"
3035
+ },
3036
+ "target": 0.95,
3037
+ "windowDays": 28,
3038
+ "thresholdMs": 200,
3039
+ "minCalls": 20,
3040
+ "alerts": [
3041
+ {
3042
+ "name": "fast",
3043
+ "burn": 14.4,
3044
+ "windowsMs": [
3045
+ 3600000,
3046
+ 300000
3047
+ ],
3048
+ "severity": "page"
3049
+ },
3050
+ {
3051
+ "name": "slow",
3052
+ "burn": 6,
3053
+ "windowsMs": [
3054
+ 21600000,
3055
+ 1800000
3056
+ ],
3057
+ "severity": "page"
3058
+ },
3059
+ {
3060
+ "name": "ticket",
3061
+ "burn": 1,
3062
+ "windowsMs": [
3063
+ 259200000,
3064
+ 21600000
3065
+ ],
3066
+ "severity": "ticket"
3067
+ }
3068
+ ]
3069
+ },
3070
+ {
3071
+ "id": "latency:invitation.revoke",
3072
+ "kind": "latency",
3073
+ "labels": {
3074
+ "environment": "*",
3075
+ "operation": "invitation.revoke",
3076
+ "severity": "page",
3077
+ "owner": "blueprint/things/invitation/verbs/revoke.ts"
3078
+ },
3079
+ "target": 0.95,
3080
+ "windowDays": 28,
3081
+ "thresholdMs": 150,
3082
+ "minCalls": 20,
3083
+ "alerts": [
3084
+ {
3085
+ "name": "fast",
3086
+ "burn": 14.4,
3087
+ "windowsMs": [
3088
+ 3600000,
3089
+ 300000
3090
+ ],
3091
+ "severity": "page"
3092
+ },
3093
+ {
3094
+ "name": "slow",
3095
+ "burn": 6,
3096
+ "windowsMs": [
3097
+ 21600000,
3098
+ 1800000
3099
+ ],
3100
+ "severity": "page"
3101
+ },
3102
+ {
3103
+ "name": "ticket",
3104
+ "burn": 1,
3105
+ "windowsMs": [
3106
+ 259200000,
3107
+ 21600000
3108
+ ],
3109
+ "severity": "ticket"
3110
+ }
3111
+ ]
3112
+ },
3113
+ {
3114
+ "id": "latency:invitation.send",
3115
+ "kind": "latency",
3116
+ "labels": {
3117
+ "environment": "*",
3118
+ "operation": "invitation.send",
3119
+ "severity": "page",
3120
+ "owner": "blueprint/things/invitation/verbs/send.ts"
3121
+ },
3122
+ "target": 0.95,
3123
+ "windowDays": 28,
3124
+ "thresholdMs": 200,
3125
+ "minCalls": 20,
3126
+ "alerts": [
3127
+ {
3128
+ "name": "fast",
3129
+ "burn": 14.4,
3130
+ "windowsMs": [
3131
+ 3600000,
3132
+ 300000
3133
+ ],
3134
+ "severity": "page"
3135
+ },
3136
+ {
3137
+ "name": "slow",
3138
+ "burn": 6,
3139
+ "windowsMs": [
3140
+ 21600000,
3141
+ 1800000
3142
+ ],
3143
+ "severity": "page"
3144
+ },
3145
+ {
3146
+ "name": "ticket",
3147
+ "burn": 1,
3148
+ "windowsMs": [
3149
+ 259200000,
3150
+ 21600000
3151
+ ],
3152
+ "severity": "ticket"
3153
+ }
3154
+ ]
3155
+ },
3156
+ {
3157
+ "id": "latency:membership.get",
3158
+ "kind": "latency",
3159
+ "labels": {
3160
+ "environment": "*",
3161
+ "operation": "membership.get",
3162
+ "severity": "page",
3163
+ "owner": "blueprint/things/membership/verbs/get.ts"
3164
+ },
3165
+ "target": 0.95,
3166
+ "windowDays": 28,
3167
+ "thresholdMs": 50,
3168
+ "minCalls": 20,
3169
+ "alerts": [
3170
+ {
3171
+ "name": "fast",
3172
+ "burn": 14.4,
3173
+ "windowsMs": [
3174
+ 3600000,
3175
+ 300000
3176
+ ],
3177
+ "severity": "page"
3178
+ },
3179
+ {
3180
+ "name": "slow",
3181
+ "burn": 6,
3182
+ "windowsMs": [
3183
+ 21600000,
3184
+ 1800000
3185
+ ],
3186
+ "severity": "page"
3187
+ },
3188
+ {
3189
+ "name": "ticket",
3190
+ "burn": 1,
3191
+ "windowsMs": [
3192
+ 259200000,
3193
+ 21600000
3194
+ ],
3195
+ "severity": "ticket"
3196
+ }
3197
+ ]
3198
+ },
3199
+ {
3200
+ "id": "latency:organization.create",
3201
+ "kind": "latency",
3202
+ "labels": {
3203
+ "environment": "*",
3204
+ "operation": "organization.create",
3205
+ "severity": "page",
3206
+ "owner": "blueprint/things/organization/verbs/create.ts"
3207
+ },
3208
+ "target": 0.95,
3209
+ "windowDays": 28,
3210
+ "thresholdMs": 250,
3211
+ "minCalls": 20,
3212
+ "alerts": [
3213
+ {
3214
+ "name": "fast",
3215
+ "burn": 14.4,
3216
+ "windowsMs": [
3217
+ 3600000,
3218
+ 300000
3219
+ ],
3220
+ "severity": "page"
3221
+ },
3222
+ {
3223
+ "name": "slow",
3224
+ "burn": 6,
3225
+ "windowsMs": [
3226
+ 21600000,
3227
+ 1800000
3228
+ ],
3229
+ "severity": "page"
3230
+ },
3231
+ {
3232
+ "name": "ticket",
3233
+ "burn": 1,
3234
+ "windowsMs": [
3235
+ 259200000,
3236
+ 21600000
3237
+ ],
3238
+ "severity": "ticket"
3239
+ }
3240
+ ]
3241
+ },
3242
+ {
3243
+ "id": "latency:organization.get",
3244
+ "kind": "latency",
3245
+ "labels": {
3246
+ "environment": "*",
3247
+ "operation": "organization.get",
3248
+ "severity": "page",
3249
+ "owner": "blueprint/things/organization/verbs/get.ts"
3250
+ },
3251
+ "target": 0.95,
3252
+ "windowDays": 28,
3253
+ "thresholdMs": 50,
3254
+ "minCalls": 20,
3255
+ "alerts": [
3256
+ {
3257
+ "name": "fast",
3258
+ "burn": 14.4,
3259
+ "windowsMs": [
3260
+ 3600000,
3261
+ 300000
3262
+ ],
3263
+ "severity": "page"
3264
+ },
3265
+ {
3266
+ "name": "slow",
3267
+ "burn": 6,
3268
+ "windowsMs": [
3269
+ 21600000,
3270
+ 1800000
3271
+ ],
3272
+ "severity": "page"
3273
+ },
3274
+ {
3275
+ "name": "ticket",
3276
+ "burn": 1,
3277
+ "windowsMs": [
3278
+ 259200000,
3279
+ 21600000
3280
+ ],
3281
+ "severity": "ticket"
3282
+ }
3283
+ ]
3284
+ },
3285
+ {
3286
+ "id": "latency:person.sign-up",
3287
+ "kind": "latency",
3288
+ "labels": {
3289
+ "environment": "*",
3290
+ "operation": "person.sign-up",
3291
+ "severity": "page",
3292
+ "owner": "blueprint/things/person/verbs/sign-up.ts"
3293
+ },
3294
+ "target": 0.95,
3295
+ "windowDays": 28,
3296
+ "thresholdMs": 400,
3297
+ "minCalls": 20,
3298
+ "alerts": [
3299
+ {
3300
+ "name": "fast",
3301
+ "burn": 14.4,
3302
+ "windowsMs": [
3303
+ 3600000,
3304
+ 300000
3305
+ ],
3306
+ "severity": "page"
3307
+ },
3308
+ {
3309
+ "name": "slow",
3310
+ "burn": 6,
3311
+ "windowsMs": [
3312
+ 21600000,
3313
+ 1800000
3314
+ ],
3315
+ "severity": "page"
3316
+ },
3317
+ {
3318
+ "name": "ticket",
3319
+ "burn": 1,
3320
+ "windowsMs": [
3321
+ 259200000,
3322
+ 21600000
3323
+ ],
3324
+ "severity": "ticket"
3325
+ }
3326
+ ]
3327
+ },
3328
+ {
3329
+ "id": "latency:session.show",
3330
+ "kind": "latency",
3331
+ "labels": {
3332
+ "environment": "*",
3333
+ "operation": "session.show",
3334
+ "severity": "page",
3335
+ "owner": "blueprint/things/session/verbs/show.ts"
3336
+ },
3337
+ "target": 0.95,
3338
+ "windowDays": 28,
3339
+ "thresholdMs": 100,
3340
+ "minCalls": 20,
3341
+ "alerts": [
3342
+ {
3343
+ "name": "fast",
3344
+ "burn": 14.4,
3345
+ "windowsMs": [
3346
+ 3600000,
3347
+ 300000
3348
+ ],
3349
+ "severity": "page"
3350
+ },
3351
+ {
3352
+ "name": "slow",
3353
+ "burn": 6,
3354
+ "windowsMs": [
3355
+ 21600000,
3356
+ 1800000
3357
+ ],
3358
+ "severity": "page"
3359
+ },
3360
+ {
3361
+ "name": "ticket",
3362
+ "burn": 1,
3363
+ "windowsMs": [
3364
+ 259200000,
3365
+ 21600000
3366
+ ],
3367
+ "severity": "ticket"
3368
+ }
3369
+ ]
3370
+ },
3371
+ {
3372
+ "id": "latency:session.sign-in",
3373
+ "kind": "latency",
3374
+ "labels": {
3375
+ "environment": "*",
3376
+ "operation": "session.sign-in",
3377
+ "severity": "page",
3378
+ "owner": "blueprint/things/session/verbs/sign-in.ts"
3379
+ },
3380
+ "target": 0.95,
3381
+ "windowDays": 28,
3382
+ "thresholdMs": 400,
3383
+ "minCalls": 20,
3384
+ "alerts": [
3385
+ {
3386
+ "name": "fast",
3387
+ "burn": 14.4,
3388
+ "windowsMs": [
3389
+ 3600000,
3390
+ 300000
3391
+ ],
3392
+ "severity": "page"
3393
+ },
3394
+ {
3395
+ "name": "slow",
3396
+ "burn": 6,
3397
+ "windowsMs": [
3398
+ 21600000,
3399
+ 1800000
3400
+ ],
3401
+ "severity": "page"
3402
+ },
3403
+ {
3404
+ "name": "ticket",
3405
+ "burn": 1,
3406
+ "windowsMs": [
3407
+ 259200000,
3408
+ 21600000
3409
+ ],
3410
+ "severity": "ticket"
3411
+ }
3412
+ ]
3413
+ },
3414
+ {
3415
+ "id": "latency:system.health",
3416
+ "kind": "latency",
3417
+ "labels": {
3418
+ "environment": "*",
3419
+ "operation": "system.health",
3420
+ "severity": "page",
3421
+ "owner": "blueprint/things/system/verbs/health.ts"
3422
+ },
3423
+ "target": 0.95,
3424
+ "windowDays": 28,
3425
+ "thresholdMs": 50,
3426
+ "minCalls": 20,
3427
+ "alerts": [
3428
+ {
3429
+ "name": "fast",
3430
+ "burn": 14.4,
3431
+ "windowsMs": [
3432
+ 3600000,
3433
+ 300000
3434
+ ],
3435
+ "severity": "page"
3436
+ },
3437
+ {
3438
+ "name": "slow",
3439
+ "burn": 6,
3440
+ "windowsMs": [
3441
+ 21600000,
3442
+ 1800000
3443
+ ],
3444
+ "severity": "page"
3445
+ },
3446
+ {
3447
+ "name": "ticket",
3448
+ "burn": 1,
3449
+ "windowsMs": [
3450
+ 259200000,
3451
+ 21600000
3452
+ ],
3453
+ "severity": "ticket"
3454
+ }
3455
+ ]
3456
+ },
3457
+ {
3458
+ "id": "verdict:an invitation is used once:local",
3459
+ "kind": "verdict",
3460
+ "labels": {
3461
+ "environment": "local",
3462
+ "journey": "an invitation is used once",
3463
+ "severity": "page",
3464
+ "owner": "journeys/an-invitation-is-used-once.ts"
3465
+ }
3466
+ },
3467
+ {
3468
+ "id": "verdict:an invitation is used once:production",
3469
+ "kind": "verdict",
3470
+ "labels": {
3471
+ "environment": "production",
3472
+ "journey": "an invitation is used once",
3473
+ "severity": "page",
3474
+ "owner": "journeys/an-invitation-is-used-once.ts"
3475
+ }
3476
+ },
3477
+ {
3478
+ "id": "verdict:an invitation is used once:staging",
3479
+ "kind": "verdict",
3480
+ "labels": {
3481
+ "environment": "staging",
3482
+ "journey": "an invitation is used once",
3483
+ "severity": "page",
3484
+ "owner": "journeys/an-invitation-is-used-once.ts"
3485
+ }
3486
+ },
3487
+ {
3488
+ "id": "verdict:an invitation is used once:test",
3489
+ "kind": "verdict",
3490
+ "labels": {
3491
+ "environment": "test",
3492
+ "journey": "an invitation is used once",
3493
+ "severity": "page",
3494
+ "owner": "journeys/an-invitation-is-used-once.ts"
3495
+ }
3496
+ },
3497
+ {
3498
+ "id": "verdict:an owner makes an api key:local",
3499
+ "kind": "verdict",
3500
+ "labels": {
3501
+ "environment": "local",
3502
+ "journey": "an owner makes an api key",
3503
+ "severity": "page",
3504
+ "owner": "journeys/an-owner-makes-an-api-key.ts"
3505
+ }
3506
+ },
3507
+ {
3508
+ "id": "verdict:an owner makes an api key:production",
3509
+ "kind": "verdict",
3510
+ "labels": {
3511
+ "environment": "production",
3512
+ "journey": "an owner makes an api key",
3513
+ "severity": "page",
3514
+ "owner": "journeys/an-owner-makes-an-api-key.ts"
3515
+ }
3516
+ },
3517
+ {
3518
+ "id": "verdict:an owner makes an api key:staging",
3519
+ "kind": "verdict",
3520
+ "labels": {
3521
+ "environment": "staging",
3522
+ "journey": "an owner makes an api key",
3523
+ "severity": "page",
3524
+ "owner": "journeys/an-owner-makes-an-api-key.ts"
3525
+ }
3526
+ },
3527
+ {
3528
+ "id": "verdict:an owner makes an api key:test",
3529
+ "kind": "verdict",
3530
+ "labels": {
3531
+ "environment": "test",
3532
+ "journey": "an owner makes an api key",
3533
+ "severity": "page",
3534
+ "owner": "journeys/an-owner-makes-an-api-key.ts"
3535
+ }
3536
+ },
3537
+ {
3538
+ "id": "verdict:health is up:local",
3539
+ "kind": "verdict",
3540
+ "labels": {
3541
+ "environment": "local",
3542
+ "journey": "health is up",
3543
+ "severity": "page",
3544
+ "owner": "journeys/health-is-up.ts"
3545
+ }
3546
+ },
3547
+ {
3548
+ "id": "verdict:health is up:production",
3549
+ "kind": "verdict",
3550
+ "labels": {
3551
+ "environment": "production",
3552
+ "journey": "health is up",
3553
+ "severity": "page",
3554
+ "owner": "journeys/health-is-up.ts"
3555
+ }
3556
+ },
3557
+ {
3558
+ "id": "verdict:health is up:staging",
3559
+ "kind": "verdict",
3560
+ "labels": {
3561
+ "environment": "staging",
3562
+ "journey": "health is up",
3563
+ "severity": "page",
3564
+ "owner": "journeys/health-is-up.ts"
3565
+ }
3566
+ },
3567
+ {
3568
+ "id": "verdict:health is up:test",
3569
+ "kind": "verdict",
3570
+ "labels": {
3571
+ "environment": "test",
3572
+ "journey": "health is up",
3573
+ "severity": "page",
3574
+ "owner": "journeys/health-is-up.ts"
3575
+ }
3576
+ },
3577
+ {
3578
+ "id": "verdict:invite and accept:local",
3579
+ "kind": "verdict",
3580
+ "labels": {
3581
+ "environment": "local",
3582
+ "journey": "invite and accept",
3583
+ "severity": "page",
3584
+ "owner": "journeys/invite-and-accept.ts"
3585
+ }
3586
+ },
3587
+ {
3588
+ "id": "verdict:invite and accept:production",
3589
+ "kind": "verdict",
3590
+ "labels": {
3591
+ "environment": "production",
3592
+ "journey": "invite and accept",
3593
+ "severity": "page",
3594
+ "owner": "journeys/invite-and-accept.ts"
3595
+ }
3596
+ },
3597
+ {
3598
+ "id": "verdict:invite and accept:staging",
3599
+ "kind": "verdict",
3600
+ "labels": {
3601
+ "environment": "staging",
3602
+ "journey": "invite and accept",
3603
+ "severity": "page",
3604
+ "owner": "journeys/invite-and-accept.ts"
3605
+ }
3606
+ },
3607
+ {
3608
+ "id": "verdict:invite and accept:test",
3609
+ "kind": "verdict",
3610
+ "labels": {
3611
+ "environment": "test",
3612
+ "journey": "invite and accept",
3613
+ "severity": "page",
3614
+ "owner": "journeys/invite-and-accept.ts"
3615
+ }
3616
+ },
3617
+ {
3618
+ "id": "verdict:sign up and sign in:local",
3619
+ "kind": "verdict",
3620
+ "labels": {
3621
+ "environment": "local",
3622
+ "journey": "sign up and sign in",
3623
+ "severity": "page",
3624
+ "owner": "journeys/sign-up-and-sign-in.ts"
3625
+ }
3626
+ },
3627
+ {
3628
+ "id": "verdict:sign up and sign in:production",
3629
+ "kind": "verdict",
3630
+ "labels": {
3631
+ "environment": "production",
3632
+ "journey": "sign up and sign in",
3633
+ "severity": "page",
3634
+ "owner": "journeys/sign-up-and-sign-in.ts"
3635
+ }
3636
+ },
3637
+ {
3638
+ "id": "verdict:sign up and sign in:staging",
3639
+ "kind": "verdict",
3640
+ "labels": {
3641
+ "environment": "staging",
3642
+ "journey": "sign up and sign in",
3643
+ "severity": "page",
3644
+ "owner": "journeys/sign-up-and-sign-in.ts"
3645
+ }
3646
+ },
3647
+ {
3648
+ "id": "verdict:sign up and sign in:test",
3649
+ "kind": "verdict",
3650
+ "labels": {
3651
+ "environment": "test",
3652
+ "journey": "sign up and sign in",
3653
+ "severity": "page",
3654
+ "owner": "journeys/sign-up-and-sign-in.ts"
3655
+ }
3656
+ }
3657
+ ]
3658
+ }