@routinerun/form 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/README.md +53 -2
  2. package/bin/routinerun.js +72 -0
  3. package/package.json +43 -4
  4. package/schema/skin.v1.schema.json +194 -0
  5. package/schema/written-routine.v1.schema.json +1722 -0
  6. package/schema/written-routine.v2.schema.json +2396 -0
  7. package/src/check.js +102 -0
  8. package/src/index.js +47 -0
  9. package/src/link.js +36 -0
  10. package/src/schema-skin.js +196 -0
  11. package/src/schema-v1.js +1724 -0
  12. package/src/schema-v2.js +2398 -0
  13. package/src/skin.js +14 -0
  14. package/src/upgrade.js +118 -0
  15. package/starters/on-call/a-practice-page.json +43 -0
  16. package/starters/on-call/after-it-is-fixed.json +42 -0
  17. package/starters/on-call/handing-the-pager-over.json +41 -0
  18. package/starters/on-call/putting-something-live.json +48 -0
  19. package/starters/on-call/the-alert-that-keeps-coming-back.json +42 -0
  20. package/starters/on-call/when-something-pages-you.json +50 -0
  21. package/starters/starters/a-chapter-at-a-time.json +42 -0
  22. package/starters/starters/a-glass-of-water.json +51 -0
  23. package/starters/starters/a-meeting-you-called.json +47 -0
  24. package/starters/starters/a-post-idea-to-published.json +61 -0
  25. package/starters/starters/a-shoot-shot-by-shot.json +49 -0
  26. package/starters/starters/awake-at-three.json +43 -0
  27. package/starters/starters/before-a-trial-charges-you.json +47 -0
  28. package/starters/starters/before-people-come-round.json +40 -0
  29. package/starters/starters/check-a-purchase.json +43 -0
  30. package/starters/starters/closing-the-day.json +38 -0
  31. package/starters/starters/count-it-without-looking.json +40 -0
  32. package/starters/starters/due-diligence-on-a-deal.json +76 -0
  33. package/starters/starters/fifty-two-and-seventeen.json +37 -0
  34. package/starters/starters/first-half-hour.json +57 -0
  35. package/starters/starters/five-sets.json +41 -0
  36. package/starters/starters/getting-up-when-it-is-dark.json +61 -0
  37. package/starters/starters/good-night-house.json +53 -0
  38. package/starters/starters/home-and-the-house-knows.json +42 -0
  39. package/starters/starters/inbox.json +31 -0
  40. package/starters/starters/into-deep-work.json +53 -0
  41. package/starters/starters/leaving-a-note-for-tomorrow.json +37 -0
  42. package/starters/starters/leaving-it-empty-for-a-week.json +49 -0
  43. package/starters/starters/out-and-the-house-off.json +43 -0
  44. package/starters/starters/out-of-the-door.json +37 -0
  45. package/starters/starters/physio-three-times-a-day.json +60 -0
  46. package/starters/starters/picking-it-back-up.json +37 -0
  47. package/starters/starters/pomodoro-four-rounds.json +50 -0
  48. package/starters/starters/read-it-and-keep-one-thing.json +44 -0
  49. package/starters/starters/reading-somebodys-code.json +48 -0
  50. package/starters/starters/receipts-before-they-are-lost.json +45 -0
  51. package/starters/starters/run-and-walk.json +79 -0
  52. package/starters/starters/something-that-runs-out.json +42 -0
  53. package/starters/starters/something-worth-remembering.json +40 -0
  54. package/starters/starters/standup-before-the-call.json +51 -0
  55. package/starters/starters/sunday-evening.json +45 -0
  56. package/starters/starters/tabata-four-minutes.json +73 -0
  57. package/starters/starters/the-bills-this-month.json +48 -0
  58. package/starters/starters/the-button-one-press-at-a-time.json +94 -0
  59. package/starters/starters/the-week-looked-at.json +46 -0
  60. package/starters/starters/the-weekly-shop.json +50 -0
  61. package/starters/starters/to-read.json +31 -0
  62. package/starters/starters/to-watch.json +31 -0
  63. package/starters/starters/washing-end-to-end.json +43 -0
  64. package/starters/starters/when-something-breaks.json +46 -0
  65. package/starters/starters/winding-down.json +58 -0
  66. package/starters/starters/work-until-you-drift.json +40 -0
@@ -0,0 +1,2396 @@
1
+ {
2
+ "$defs" : {
3
+ "action" : {
4
+ "anyOf" : [
5
+ {
6
+ "description" : "runs a Shortcuts shortcut by its exact name, handing it the input if there is one",
7
+ "properties" : {
8
+ "shortcut" : {
9
+ "anyOf" : [
10
+ {
11
+ "type" : "string"
12
+ },
13
+ {
14
+ "properties" : {
15
+ "input" : {
16
+ "type" : "string"
17
+ },
18
+ "name" : {
19
+ "type" : "string"
20
+ }
21
+ },
22
+ "required" : [
23
+ "name",
24
+ "input"
25
+ ],
26
+ "type" : "object"
27
+ }
28
+ ]
29
+ }
30
+ },
31
+ "required" : [
32
+ "shortcut"
33
+ ],
34
+ "type" : "object"
35
+ },
36
+ {
37
+ "description" : "opens a link",
38
+ "properties" : {
39
+ "open" : {
40
+ "pattern" : "^[A-Za-z][A-Za-z0-9+.-]*:",
41
+ "type" : "string"
42
+ }
43
+ },
44
+ "required" : [
45
+ "open"
46
+ ],
47
+ "type" : "object"
48
+ },
49
+ {
50
+ "description" : "says the words out loud, in my phone's language unless \"lang\" names another",
51
+ "properties" : {
52
+ "say" : {
53
+ "anyOf" : [
54
+ {
55
+ "type" : "string"
56
+ },
57
+ {
58
+ "properties" : {
59
+ "lang" : {
60
+ "type" : "string"
61
+ },
62
+ "language" : {
63
+ "type" : "string"
64
+ },
65
+ "text" : {
66
+ "type" : "string"
67
+ }
68
+ },
69
+ "required" : [
70
+ "text"
71
+ ],
72
+ "type" : "object"
73
+ }
74
+ ]
75
+ }
76
+ },
77
+ "required" : [
78
+ "say"
79
+ ],
80
+ "type" : "object"
81
+ },
82
+ {
83
+ "description" : "puts the text on the clipboard",
84
+ "properties" : {
85
+ "copy" : {
86
+ "type" : "string"
87
+ }
88
+ },
89
+ "required" : [
90
+ "copy"
91
+ ],
92
+ "type" : "object"
93
+ },
94
+ {
95
+ "description" : "asks me to write a note, with this as the prompt",
96
+ "properties" : {
97
+ "note" : {
98
+ "anyOf" : [
99
+ {
100
+ "type" : "string"
101
+ },
102
+ {
103
+ "additionalProperties" : false,
104
+ "properties" : {
105
+ "kind" : {
106
+ "description" : "Asked for with these words as the prompt, or written with them. Left out, asked.",
107
+ "enum" : [
108
+ "asked",
109
+ "written"
110
+ ]
111
+ },
112
+ "text" : {
113
+ "type" : "string"
114
+ }
115
+ },
116
+ "required" : [
117
+ "text"
118
+ ],
119
+ "type" : "object"
120
+ }
121
+ ]
122
+ }
123
+ },
124
+ "required" : [
125
+ "note"
126
+ ],
127
+ "type" : "object"
128
+ },
129
+ {
130
+ "description" : "adds one to a number value",
131
+ "properties" : {
132
+ "count" : {
133
+ "anyOf" : [
134
+ {
135
+ "type" : "string"
136
+ },
137
+ {
138
+ "additionalProperties" : false,
139
+ "properties" : {
140
+ "key" : {
141
+ "type" : "string"
142
+ },
143
+ "on" : {
144
+ "description" : "A value of the run, or of the step in hand. Left out, the run.",
145
+ "enum" : [
146
+ "run",
147
+ "step"
148
+ ]
149
+ }
150
+ },
151
+ "required" : [
152
+ "key"
153
+ ],
154
+ "type" : "object"
155
+ }
156
+ ]
157
+ }
158
+ },
159
+ "required" : [
160
+ "count"
161
+ ],
162
+ "type" : "object"
163
+ },
164
+ {
165
+ "description" : "sets a value to the current moment",
166
+ "properties" : {
167
+ "now" : {
168
+ "type" : "string"
169
+ }
170
+ },
171
+ "required" : [
172
+ "now"
173
+ ],
174
+ "type" : "object"
175
+ },
176
+ {
177
+ "description" : "keeps how long this step took",
178
+ "properties" : {
179
+ "howLong" : {
180
+ "type" : "string"
181
+ }
182
+ },
183
+ "required" : [
184
+ "howLong"
185
+ ],
186
+ "type" : "object"
187
+ },
188
+ {
189
+ "description" : "moves the run on: next, pause, finish or stop",
190
+ "properties" : {
191
+ "run" : {
192
+ "enum" : [
193
+ "next",
194
+ "pause",
195
+ "finish",
196
+ "stop"
197
+ ]
198
+ }
199
+ },
200
+ "required" : [
201
+ "run"
202
+ ],
203
+ "type" : "object"
204
+ },
205
+ {
206
+ "description" : "puts this step aside and brings it back then, while the run goes on — \"followUp\" is the step's own followUp, a name is one of my own Not now answers, an object is a followUp said here",
207
+ "properties" : {
208
+ "putAside" : {
209
+ "anyOf" : [
210
+ {
211
+ "description" : "\"followUp\" for the step's own followUp, or the name of one of my own Not now answers.",
212
+ "type" : "string"
213
+ },
214
+ {
215
+ "properties" : {
216
+ "alarm" : {
217
+ "type" : "boolean"
218
+ },
219
+ "at" : {
220
+ "pattern" : "^([01]?[0-9]|2[0-3]):[0-5][0-9]$",
221
+ "type" : "string"
222
+ },
223
+ "days" : {
224
+ "type" : "integer"
225
+ },
226
+ "hours" : {
227
+ "type" : "number"
228
+ },
229
+ "name" : {
230
+ "type" : "string"
231
+ },
232
+ "soonerIf" : {
233
+ "type" : "string"
234
+ },
235
+ "wholeRun" : {
236
+ "type" : "boolean"
237
+ },
238
+ "workdays" : {
239
+ "type" : "boolean"
240
+ }
241
+ },
242
+ "type" : "object"
243
+ }
244
+ ]
245
+ }
246
+ },
247
+ "required" : [
248
+ "putAside"
249
+ ],
250
+ "type" : "object"
251
+ },
252
+ {
253
+ "description" : "gives this step a deadline counted from the press: \"hours\" from now, or \"at\" the next time it is that time (\"days\" on); \"kind\" is by or startBy, \"late\" skip, keep or ask, \"tellMe\" as for a step",
254
+ "properties" : {
255
+ "deadline" : {
256
+ "properties" : {
257
+ "at" : {
258
+ "pattern" : "^([01]?[0-9]|2[0-3]):[0-5][0-9]$",
259
+ "type" : "string"
260
+ },
261
+ "days" : {
262
+ "type" : "integer"
263
+ },
264
+ "hours" : {
265
+ "type" : "number"
266
+ },
267
+ "kind" : {
268
+ "enum" : [
269
+ "by",
270
+ "startBy"
271
+ ]
272
+ },
273
+ "late" : {
274
+ "enum" : [
275
+ "skip",
276
+ "keep",
277
+ "ask"
278
+ ]
279
+ },
280
+ "tellMe" : {
281
+ "enum" : [
282
+ "alarm",
283
+ "notification",
284
+ "calendar",
285
+ "reminders"
286
+ ]
287
+ },
288
+ "workdays" : {
289
+ "type" : "boolean"
290
+ }
291
+ },
292
+ "type" : "object"
293
+ }
294
+ },
295
+ "required" : [
296
+ "deadline"
297
+ ],
298
+ "type" : "object"
299
+ },
300
+ {
301
+ "description" : "asks a question about this step, or the run with \"about\": \"run\", once (\"hours\" or \"at\") or \"every\" so many minutes, hours or days until it is answered; meanwhile the step goes to the end or the run pauses unless \"meanwhile\" is false; \"answers\" are now, later, last or skip for a step and resume, pause, next, finish or stop for a run",
302
+ "properties" : {
303
+ "checkIn" : {
304
+ "properties" : {
305
+ "about" : {
306
+ "enum" : [
307
+ "step",
308
+ "run"
309
+ ]
310
+ },
311
+ "answers" : {
312
+ "items" : {
313
+ "enum" : [
314
+ "now",
315
+ "later",
316
+ "last",
317
+ "skip",
318
+ "resume",
319
+ "pause",
320
+ "next",
321
+ "finish",
322
+ "stop"
323
+ ]
324
+ },
325
+ "type" : "array"
326
+ },
327
+ "at" : {
328
+ "pattern" : "^([01]?[0-9]|2[0-3]):[0-5][0-9]$",
329
+ "type" : "string"
330
+ },
331
+ "days" : {
332
+ "type" : "integer"
333
+ },
334
+ "every" : {
335
+ "additionalProperties" : false,
336
+ "description" : "One unit and how many.",
337
+ "minProperties" : 1,
338
+ "properties" : {
339
+ "days" : {
340
+ "minimum" : 1,
341
+ "type" : "integer"
342
+ },
343
+ "hours" : {
344
+ "minimum" : 1,
345
+ "type" : "integer"
346
+ },
347
+ "minutes" : {
348
+ "minimum" : 1,
349
+ "type" : "integer"
350
+ }
351
+ },
352
+ "type" : "object"
353
+ },
354
+ "hours" : {
355
+ "type" : "number"
356
+ },
357
+ "meanwhile" : {
358
+ "type" : "boolean"
359
+ },
360
+ "question" : {
361
+ "type" : "string"
362
+ },
363
+ "quietly" : {
364
+ "type" : "boolean"
365
+ },
366
+ "workdays" : {
367
+ "type" : "boolean"
368
+ }
369
+ },
370
+ "type" : "object"
371
+ }
372
+ },
373
+ "required" : [
374
+ "checkIn"
375
+ ],
376
+ "type" : "object"
377
+ },
378
+ {
379
+ "description" : "sets a value",
380
+ "properties" : {
381
+ "set" : {
382
+ "properties" : {
383
+ "key" : {
384
+ "type" : "string"
385
+ },
386
+ "text" : {
387
+ "type" : "string"
388
+ },
389
+ "to" : {
390
+ "type" : "string"
391
+ }
392
+ },
393
+ "required" : [
394
+ "key"
395
+ ],
396
+ "type" : "object"
397
+ }
398
+ },
399
+ "required" : [
400
+ "set"
401
+ ],
402
+ "type" : "object"
403
+ },
404
+ {
405
+ "description" : "adds a number to a value",
406
+ "properties" : {
407
+ "add" : {
408
+ "properties" : {
409
+ "key" : {
410
+ "type" : "string"
411
+ },
412
+ "number" : {
413
+ "type" : "number"
414
+ }
415
+ },
416
+ "required" : [
417
+ "key"
418
+ ],
419
+ "type" : "object"
420
+ }
421
+ },
422
+ "required" : [
423
+ "add"
424
+ ],
425
+ "type" : "object"
426
+ },
427
+ {
428
+ "description" : "adds a line to a text value",
429
+ "properties" : {
430
+ "addLine" : {
431
+ "properties" : {
432
+ "key" : {
433
+ "type" : "string"
434
+ },
435
+ "text" : {
436
+ "type" : "string"
437
+ },
438
+ "to" : {
439
+ "type" : "string"
440
+ }
441
+ },
442
+ "required" : [
443
+ "key"
444
+ ],
445
+ "type" : "object"
446
+ }
447
+ },
448
+ "required" : [
449
+ "addLine"
450
+ ],
451
+ "type" : "object"
452
+ },
453
+ {
454
+ "description" : "sends a request to a server; method is GET, POST, PUT or DELETE, POST if left out",
455
+ "properties" : {
456
+ "webhook" : {
457
+ "properties" : {
458
+ "body" : {
459
+
460
+ },
461
+ "headers" : {
462
+ "additionalProperties" : {
463
+ "type" : "string"
464
+ },
465
+ "type" : "object"
466
+ },
467
+ "method" : {
468
+ "enum" : [
469
+ "GET",
470
+ "POST",
471
+ "PUT",
472
+ "DELETE"
473
+ ]
474
+ },
475
+ "url" : {
476
+ "pattern" : "^https?://",
477
+ "type" : "string"
478
+ }
479
+ },
480
+ "required" : [
481
+ "url"
482
+ ],
483
+ "type" : "object"
484
+ }
485
+ },
486
+ "required" : [
487
+ "webhook"
488
+ ],
489
+ "type" : "object"
490
+ },
491
+ {
492
+ "description" : "puts an event in my calendar, starting in so many minutes and lasting so many",
493
+ "properties" : {
494
+ "event" : {
495
+ "properties" : {
496
+ "in" : {
497
+ "type" : "integer"
498
+ },
499
+ "minutes" : {
500
+ "type" : "integer"
501
+ },
502
+ "notes" : {
503
+ "type" : "string"
504
+ },
505
+ "title" : {
506
+ "type" : "string"
507
+ }
508
+ },
509
+ "required" : [
510
+ "title"
511
+ ],
512
+ "type" : "object"
513
+ }
514
+ },
515
+ "required" : [
516
+ "event"
517
+ ],
518
+ "type" : "object"
519
+ },
520
+ {
521
+ "description" : "adds a reminder to Reminders, due in so many minutes",
522
+ "properties" : {
523
+ "reminder" : {
524
+ "properties" : {
525
+ "in" : {
526
+ "type" : "integer"
527
+ },
528
+ "list" : {
529
+ "type" : "string"
530
+ },
531
+ "notes" : {
532
+ "type" : "string"
533
+ },
534
+ "title" : {
535
+ "type" : "string"
536
+ }
537
+ },
538
+ "required" : [
539
+ "title"
540
+ ],
541
+ "type" : "object"
542
+ }
543
+ },
544
+ "required" : [
545
+ "reminder"
546
+ ],
547
+ "type" : "object"
548
+ },
549
+ {
550
+ "description" : "rings an alarm in so many minutes",
551
+ "properties" : {
552
+ "alarm" : {
553
+ "properties" : {
554
+ "in" : {
555
+ "type" : "integer"
556
+ },
557
+ "title" : {
558
+ "type" : "string"
559
+ }
560
+ },
561
+ "required" : [
562
+ "title",
563
+ "in"
564
+ ],
565
+ "type" : "object"
566
+ }
567
+ },
568
+ "required" : [
569
+ "alarm"
570
+ ],
571
+ "type" : "object"
572
+ },
573
+ {
574
+ "description" : "runs a Home scene by its exact name",
575
+ "properties" : {
576
+ "scene" : {
577
+ "anyOf" : [
578
+ {
579
+ "type" : "string"
580
+ },
581
+ {
582
+ "properties" : {
583
+ "home" : {
584
+ "type" : "string"
585
+ },
586
+ "name" : {
587
+ "type" : "string"
588
+ }
589
+ },
590
+ "required" : [
591
+ "name"
592
+ ],
593
+ "type" : "object"
594
+ }
595
+ ]
596
+ }
597
+ },
598
+ "required" : [
599
+ "scene"
600
+ ],
601
+ "type" : "object"
602
+ },
603
+ {
604
+ "description" : "writes to Health: water (ml), mindful (minutes) or weight (kg)",
605
+ "properties" : {
606
+ "health" : {
607
+ "properties" : {
608
+ "amount" : {
609
+ "type" : [
610
+ "number",
611
+ "string"
612
+ ]
613
+ },
614
+ "log" : {
615
+ "enum" : [
616
+ "water",
617
+ "mindful",
618
+ "weight"
619
+ ]
620
+ }
621
+ },
622
+ "required" : [
623
+ "log",
624
+ "amount"
625
+ ],
626
+ "type" : "object"
627
+ }
628
+ },
629
+ "required" : [
630
+ "health"
631
+ ],
632
+ "type" : "object"
633
+ },
634
+ {
635
+ "description" : "calls a Home Assistant service; \"data\" adds fields, \"address\" is where it answers if not homeassistant.local",
636
+ "properties" : {
637
+ "homeassistant" : {
638
+ "properties" : {
639
+ "address" : {
640
+ "type" : "string"
641
+ },
642
+ "call" : {
643
+ "type" : "string"
644
+ },
645
+ "data" : {
646
+ "type" : "object"
647
+ },
648
+ "entity" : {
649
+ "type" : "string"
650
+ },
651
+ "secret" : {
652
+ "type" : "string"
653
+ }
654
+ },
655
+ "required" : [
656
+ "call"
657
+ ],
658
+ "type" : "object"
659
+ }
660
+ },
661
+ "required" : [
662
+ "homeassistant"
663
+ ],
664
+ "type" : "object"
665
+ },
666
+ {
667
+ "description" : "posts to a Slack channel through its incoming webhook",
668
+ "properties" : {
669
+ "slack" : {
670
+ "properties" : {
671
+ "secret" : {
672
+ "type" : "string"
673
+ },
674
+ "text" : {
675
+ "type" : "string"
676
+ }
677
+ },
678
+ "required" : [
679
+ "text"
680
+ ],
681
+ "type" : "object"
682
+ }
683
+ },
684
+ "required" : [
685
+ "slack"
686
+ ],
687
+ "type" : "object"
688
+ },
689
+ {
690
+ "description" : "pushes a message through ntfy, to a topic I name",
691
+ "properties" : {
692
+ "ntfy" : {
693
+ "properties" : {
694
+ "server" : {
695
+ "type" : "string"
696
+ },
697
+ "text" : {
698
+ "type" : "string"
699
+ },
700
+ "title" : {
701
+ "type" : "string"
702
+ },
703
+ "topic" : {
704
+ "type" : "string"
705
+ }
706
+ },
707
+ "required" : [
708
+ "topic",
709
+ "text"
710
+ ],
711
+ "type" : "object"
712
+ }
713
+ },
714
+ "required" : [
715
+ "ntfy"
716
+ ],
717
+ "type" : "object"
718
+ },
719
+ {
720
+ "description" : "triggers, acknowledges or resolves a PagerDuty incident; trigger needs a summary",
721
+ "properties" : {
722
+ "pagerduty" : {
723
+ "properties" : {
724
+ "action" : {
725
+ "type" : "string"
726
+ },
727
+ "key" : {
728
+ "type" : "string"
729
+ },
730
+ "secret" : {
731
+ "type" : "string"
732
+ },
733
+ "severity" : {
734
+ "type" : "string"
735
+ },
736
+ "summary" : {
737
+ "type" : "string"
738
+ }
739
+ },
740
+ "required" : [
741
+ "action"
742
+ ],
743
+ "type" : "object"
744
+ }
745
+ },
746
+ "required" : [
747
+ "pagerduty"
748
+ ],
749
+ "type" : "object"
750
+ },
751
+ {
752
+ "description" : "fires an IFTTT webhook event with up to three values",
753
+ "properties" : {
754
+ "ifttt" : {
755
+ "properties" : {
756
+ "event" : {
757
+ "type" : "string"
758
+ },
759
+ "secret" : {
760
+ "type" : "string"
761
+ },
762
+ "values" : {
763
+ "items" : {
764
+ "type" : "string"
765
+ },
766
+ "type" : "array"
767
+ }
768
+ },
769
+ "required" : [
770
+ "event"
771
+ ],
772
+ "type" : "object"
773
+ }
774
+ },
775
+ "required" : [
776
+ "ifttt"
777
+ ],
778
+ "type" : "object"
779
+ },
780
+ {
781
+ "description" : "posts a message to a Discord channel through the channel's webhook",
782
+ "properties" : {
783
+ "discord" : {
784
+ "additionalProperties" : false,
785
+ "properties" : {
786
+ "secret" : {
787
+ "type" : "string"
788
+ },
789
+ "text" : {
790
+ "type" : [
791
+ "string",
792
+ "number",
793
+ "boolean"
794
+ ]
795
+ }
796
+ },
797
+ "required" : [
798
+ "text"
799
+ ],
800
+ "type" : "object"
801
+ }
802
+ },
803
+ "required" : [
804
+ "discord"
805
+ ],
806
+ "type" : "object"
807
+ },
808
+ {
809
+ "description" : "posts a message to a Discord channel through the channel's webhook",
810
+ "properties" : {
811
+ "preset:discord" : {
812
+ "additionalProperties" : false,
813
+ "properties" : {
814
+ "secret" : {
815
+ "type" : "string"
816
+ },
817
+ "text" : {
818
+ "type" : [
819
+ "string",
820
+ "number",
821
+ "boolean"
822
+ ]
823
+ }
824
+ },
825
+ "required" : [
826
+ "text"
827
+ ],
828
+ "type" : "object"
829
+ }
830
+ },
831
+ "required" : [
832
+ "preset:discord"
833
+ ],
834
+ "type" : "object"
835
+ },
836
+ {
837
+ "description" : "posts a message to a Google Chat space through its webhook",
838
+ "properties" : {
839
+ "googlechat" : {
840
+ "additionalProperties" : false,
841
+ "properties" : {
842
+ "secret" : {
843
+ "type" : "string"
844
+ },
845
+ "text" : {
846
+ "type" : [
847
+ "string",
848
+ "number",
849
+ "boolean"
850
+ ]
851
+ }
852
+ },
853
+ "required" : [
854
+ "text"
855
+ ],
856
+ "type" : "object"
857
+ }
858
+ },
859
+ "required" : [
860
+ "googlechat"
861
+ ],
862
+ "type" : "object"
863
+ },
864
+ {
865
+ "description" : "posts a message to a Google Chat space through its webhook",
866
+ "properties" : {
867
+ "preset:googlechat" : {
868
+ "additionalProperties" : false,
869
+ "properties" : {
870
+ "secret" : {
871
+ "type" : "string"
872
+ },
873
+ "text" : {
874
+ "type" : [
875
+ "string",
876
+ "number",
877
+ "boolean"
878
+ ]
879
+ }
880
+ },
881
+ "required" : [
882
+ "text"
883
+ ],
884
+ "type" : "object"
885
+ }
886
+ },
887
+ "required" : [
888
+ "preset:googlechat"
889
+ ],
890
+ "type" : "object"
891
+ },
892
+ {
893
+ "description" : "tells a Healthchecks.io check that this happened, so it can say when one day it did not",
894
+ "properties" : {
895
+ "healthchecks" : {
896
+ "additionalProperties" : false,
897
+ "properties" : {
898
+ "secret" : {
899
+ "type" : "string"
900
+ }
901
+ },
902
+ "type" : "object"
903
+ }
904
+ },
905
+ "required" : [
906
+ "healthchecks"
907
+ ],
908
+ "type" : "object"
909
+ },
910
+ {
911
+ "description" : "tells a Healthchecks.io check that this happened, so it can say when one day it did not",
912
+ "properties" : {
913
+ "preset:healthchecks" : {
914
+ "additionalProperties" : false,
915
+ "properties" : {
916
+ "secret" : {
917
+ "type" : "string"
918
+ }
919
+ },
920
+ "type" : "object"
921
+ }
922
+ },
923
+ "required" : [
924
+ "preset:healthchecks"
925
+ ],
926
+ "type" : "object"
927
+ },
928
+ {
929
+ "description" : "pushes a notification to your devices through Pushover; \"title\" may be left out",
930
+ "properties" : {
931
+ "pushover" : {
932
+ "additionalProperties" : false,
933
+ "properties" : {
934
+ "secret" : {
935
+ "type" : "string"
936
+ },
937
+ "text" : {
938
+ "type" : [
939
+ "string",
940
+ "number",
941
+ "boolean"
942
+ ]
943
+ },
944
+ "title" : {
945
+ "type" : [
946
+ "string",
947
+ "number",
948
+ "boolean"
949
+ ]
950
+ }
951
+ },
952
+ "required" : [
953
+ "text"
954
+ ],
955
+ "type" : "object"
956
+ }
957
+ },
958
+ "required" : [
959
+ "pushover"
960
+ ],
961
+ "type" : "object"
962
+ },
963
+ {
964
+ "description" : "pushes a notification to your devices through Pushover; \"title\" may be left out",
965
+ "properties" : {
966
+ "preset:pushover" : {
967
+ "additionalProperties" : false,
968
+ "properties" : {
969
+ "secret" : {
970
+ "type" : "string"
971
+ },
972
+ "text" : {
973
+ "type" : [
974
+ "string",
975
+ "number",
976
+ "boolean"
977
+ ]
978
+ },
979
+ "title" : {
980
+ "type" : [
981
+ "string",
982
+ "number",
983
+ "boolean"
984
+ ]
985
+ }
986
+ },
987
+ "required" : [
988
+ "text"
989
+ ],
990
+ "type" : "object"
991
+ }
992
+ },
993
+ "required" : [
994
+ "preset:pushover"
995
+ ],
996
+ "type" : "object"
997
+ },
998
+ {
999
+ "description" : "sends a message from your own Telegram bot to a chat you name",
1000
+ "properties" : {
1001
+ "telegram" : {
1002
+ "additionalProperties" : false,
1003
+ "properties" : {
1004
+ "chat" : {
1005
+ "type" : [
1006
+ "string",
1007
+ "number",
1008
+ "boolean"
1009
+ ]
1010
+ },
1011
+ "secret" : {
1012
+ "type" : "string"
1013
+ },
1014
+ "text" : {
1015
+ "type" : [
1016
+ "string",
1017
+ "number",
1018
+ "boolean"
1019
+ ]
1020
+ }
1021
+ },
1022
+ "required" : [
1023
+ "chat",
1024
+ "text"
1025
+ ],
1026
+ "type" : "object"
1027
+ }
1028
+ },
1029
+ "required" : [
1030
+ "telegram"
1031
+ ],
1032
+ "type" : "object"
1033
+ },
1034
+ {
1035
+ "description" : "sends a message from your own Telegram bot to a chat you name",
1036
+ "properties" : {
1037
+ "preset:telegram" : {
1038
+ "additionalProperties" : false,
1039
+ "properties" : {
1040
+ "chat" : {
1041
+ "type" : [
1042
+ "string",
1043
+ "number",
1044
+ "boolean"
1045
+ ]
1046
+ },
1047
+ "secret" : {
1048
+ "type" : "string"
1049
+ },
1050
+ "text" : {
1051
+ "type" : [
1052
+ "string",
1053
+ "number",
1054
+ "boolean"
1055
+ ]
1056
+ }
1057
+ },
1058
+ "required" : [
1059
+ "chat",
1060
+ "text"
1061
+ ],
1062
+ "type" : "object"
1063
+ }
1064
+ },
1065
+ "required" : [
1066
+ "preset:telegram"
1067
+ ],
1068
+ "type" : "object"
1069
+ },
1070
+ {
1071
+ "description" : "starts a Zap that begins with Webhooks by Zapier, Catch Hook, handing it the run, the step and a message; \"text\" may be left out",
1072
+ "properties" : {
1073
+ "zapier" : {
1074
+ "additionalProperties" : false,
1075
+ "properties" : {
1076
+ "secret" : {
1077
+ "type" : "string"
1078
+ },
1079
+ "text" : {
1080
+ "type" : [
1081
+ "string",
1082
+ "number",
1083
+ "boolean"
1084
+ ]
1085
+ }
1086
+ },
1087
+ "type" : "object"
1088
+ }
1089
+ },
1090
+ "required" : [
1091
+ "zapier"
1092
+ ],
1093
+ "type" : "object"
1094
+ },
1095
+ {
1096
+ "description" : "starts a Zap that begins with Webhooks by Zapier, Catch Hook, handing it the run, the step and a message; \"text\" may be left out",
1097
+ "properties" : {
1098
+ "preset:zapier" : {
1099
+ "additionalProperties" : false,
1100
+ "properties" : {
1101
+ "secret" : {
1102
+ "type" : "string"
1103
+ },
1104
+ "text" : {
1105
+ "type" : [
1106
+ "string",
1107
+ "number",
1108
+ "boolean"
1109
+ ]
1110
+ }
1111
+ },
1112
+ "type" : "object"
1113
+ }
1114
+ },
1115
+ "required" : [
1116
+ "preset:zapier"
1117
+ ],
1118
+ "type" : "object"
1119
+ },
1120
+ {
1121
+ "description" : "A word this version does not know. It is read as a step action that does nothing, named on the import screen, and kept as it was written.",
1122
+ "minProperties" : 1,
1123
+ "not" : {
1124
+ "anyOf" : [
1125
+ {
1126
+ "required" : [
1127
+ "shortcut"
1128
+ ]
1129
+ },
1130
+ {
1131
+ "required" : [
1132
+ "open"
1133
+ ]
1134
+ },
1135
+ {
1136
+ "required" : [
1137
+ "say"
1138
+ ]
1139
+ },
1140
+ {
1141
+ "required" : [
1142
+ "copy"
1143
+ ]
1144
+ },
1145
+ {
1146
+ "required" : [
1147
+ "note"
1148
+ ]
1149
+ },
1150
+ {
1151
+ "required" : [
1152
+ "count"
1153
+ ]
1154
+ },
1155
+ {
1156
+ "required" : [
1157
+ "now"
1158
+ ]
1159
+ },
1160
+ {
1161
+ "required" : [
1162
+ "howLong"
1163
+ ]
1164
+ },
1165
+ {
1166
+ "required" : [
1167
+ "run"
1168
+ ]
1169
+ },
1170
+ {
1171
+ "required" : [
1172
+ "putAside"
1173
+ ]
1174
+ },
1175
+ {
1176
+ "required" : [
1177
+ "deadline"
1178
+ ]
1179
+ },
1180
+ {
1181
+ "required" : [
1182
+ "checkIn"
1183
+ ]
1184
+ },
1185
+ {
1186
+ "required" : [
1187
+ "set"
1188
+ ]
1189
+ },
1190
+ {
1191
+ "required" : [
1192
+ "add"
1193
+ ]
1194
+ },
1195
+ {
1196
+ "required" : [
1197
+ "addLine"
1198
+ ]
1199
+ },
1200
+ {
1201
+ "required" : [
1202
+ "webhook"
1203
+ ]
1204
+ },
1205
+ {
1206
+ "required" : [
1207
+ "event"
1208
+ ]
1209
+ },
1210
+ {
1211
+ "required" : [
1212
+ "reminder"
1213
+ ]
1214
+ },
1215
+ {
1216
+ "required" : [
1217
+ "alarm"
1218
+ ]
1219
+ },
1220
+ {
1221
+ "required" : [
1222
+ "scene"
1223
+ ]
1224
+ },
1225
+ {
1226
+ "required" : [
1227
+ "health"
1228
+ ]
1229
+ },
1230
+ {
1231
+ "required" : [
1232
+ "homeassistant"
1233
+ ]
1234
+ },
1235
+ {
1236
+ "required" : [
1237
+ "slack"
1238
+ ]
1239
+ },
1240
+ {
1241
+ "required" : [
1242
+ "ntfy"
1243
+ ]
1244
+ },
1245
+ {
1246
+ "required" : [
1247
+ "pagerduty"
1248
+ ]
1249
+ },
1250
+ {
1251
+ "required" : [
1252
+ "ifttt"
1253
+ ]
1254
+ },
1255
+ {
1256
+ "required" : [
1257
+ "discord"
1258
+ ]
1259
+ },
1260
+ {
1261
+ "required" : [
1262
+ "preset:discord"
1263
+ ]
1264
+ },
1265
+ {
1266
+ "required" : [
1267
+ "googlechat"
1268
+ ]
1269
+ },
1270
+ {
1271
+ "required" : [
1272
+ "preset:googlechat"
1273
+ ]
1274
+ },
1275
+ {
1276
+ "required" : [
1277
+ "healthchecks"
1278
+ ]
1279
+ },
1280
+ {
1281
+ "required" : [
1282
+ "preset:healthchecks"
1283
+ ]
1284
+ },
1285
+ {
1286
+ "required" : [
1287
+ "pushover"
1288
+ ]
1289
+ },
1290
+ {
1291
+ "required" : [
1292
+ "preset:pushover"
1293
+ ]
1294
+ },
1295
+ {
1296
+ "required" : [
1297
+ "telegram"
1298
+ ]
1299
+ },
1300
+ {
1301
+ "required" : [
1302
+ "preset:telegram"
1303
+ ]
1304
+ },
1305
+ {
1306
+ "required" : [
1307
+ "zapier"
1308
+ ]
1309
+ },
1310
+ {
1311
+ "required" : [
1312
+ "preset:zapier"
1313
+ ]
1314
+ }
1315
+ ]
1316
+ },
1317
+ "type" : "object"
1318
+ }
1319
+ ],
1320
+ "description" : "One word and what it is about, like {\"say\": \"Good morning\"}."
1321
+ },
1322
+ "button" : {
1323
+ "allOf" : [
1324
+ {
1325
+ "$ref" : "#/$defs/action"
1326
+ },
1327
+ {
1328
+ "properties" : {
1329
+ "actionButton" : {
1330
+ "description" : "The Action button may press it too, with nobody looking.",
1331
+ "type" : "boolean"
1332
+ },
1333
+ "label" : {
1334
+ "type" : "string"
1335
+ },
1336
+ "onNext" : {
1337
+ "type" : "boolean"
1338
+ },
1339
+ "pass" : {
1340
+ "$ref" : "#/$defs/pass"
1341
+ },
1342
+ "title" : {
1343
+ "type" : "string"
1344
+ }
1345
+ }
1346
+ }
1347
+ ]
1348
+ },
1349
+ "deadline" : {
1350
+ "additionalProperties" : false,
1351
+ "description" : "When the step has to be done by, or begun by.",
1352
+ "properties" : {
1353
+ "at" : {
1354
+ "description" : "A time of day, or a date and time.",
1355
+ "pattern" : "^(([01]?[0-9]|2[0-3]):[0-5][0-9]|[0-9]{4}-[0-9]{2}-[0-9]{2}([ T][0-9]{2}:[0-9]{2}(:[0-9]{2})?)?)$",
1356
+ "type" : "string"
1357
+ },
1358
+ "day" : {
1359
+ "description" : "Which day of the run, counting the first as 1.",
1360
+ "minimum" : 1,
1361
+ "type" : "integer"
1362
+ },
1363
+ "from" : {
1364
+ "anyOf" : [
1365
+ {
1366
+ "properties" : {
1367
+ "date" : {
1368
+ "type" : "string"
1369
+ },
1370
+ "days" : {
1371
+ "type" : "number"
1372
+ },
1373
+ "hours" : {
1374
+ "type" : "number"
1375
+ }
1376
+ },
1377
+ "required" : [
1378
+ "date"
1379
+ ],
1380
+ "type" : "object"
1381
+ },
1382
+ {
1383
+ "properties" : {
1384
+ "days" : {
1385
+ "type" : "number"
1386
+ },
1387
+ "hours" : {
1388
+ "type" : "number"
1389
+ },
1390
+ "value" : {
1391
+ "pattern" : "\\S",
1392
+ "type" : "string"
1393
+ }
1394
+ },
1395
+ "required" : [
1396
+ "value"
1397
+ ],
1398
+ "type" : "object"
1399
+ }
1400
+ ],
1401
+ "description" : "Counted from a named date or a value the routine or run carries, instead of a time of day. Negative is before."
1402
+ },
1403
+ "kind" : {
1404
+ "description" : "Whether the step is done by then or begun by then. Left out, done by.",
1405
+ "enum" : [
1406
+ "doneBy",
1407
+ "startBy"
1408
+ ]
1409
+ },
1410
+ "late" : {
1411
+ "enum" : [
1412
+ "skip",
1413
+ "keep",
1414
+ "ask"
1415
+ ]
1416
+ },
1417
+ "tellMe" : {
1418
+ "enum" : [
1419
+ "alarm",
1420
+ "notification",
1421
+ "calendar",
1422
+ "reminders"
1423
+ ]
1424
+ },
1425
+ "warn" : {
1426
+ "allOf" : [
1427
+ {
1428
+ "additionalProperties" : false,
1429
+ "minProperties" : 1,
1430
+ "properties" : {
1431
+ "days" : {
1432
+ "type" : "number"
1433
+ },
1434
+ "hours" : {
1435
+ "type" : "number"
1436
+ },
1437
+ "minutes" : {
1438
+ "type" : "number"
1439
+ }
1440
+ },
1441
+ "type" : "object"
1442
+ }
1443
+ ],
1444
+ "description" : "How far ahead it is said as well. Left out, a day ahead for anything more than a day off."
1445
+ },
1446
+ "within" : {
1447
+ "allOf" : [
1448
+ {
1449
+ "additionalProperties" : false,
1450
+ "minProperties" : 1,
1451
+ "properties" : {
1452
+ "days" : {
1453
+ "type" : "number"
1454
+ },
1455
+ "hours" : {
1456
+ "type" : "number"
1457
+ },
1458
+ "minutes" : {
1459
+ "type" : "number"
1460
+ }
1461
+ },
1462
+ "type" : "object"
1463
+ }
1464
+ ],
1465
+ "description" : "So long after the run starts, instead of a time of day."
1466
+ }
1467
+ },
1468
+ "type" : "object"
1469
+ },
1470
+ "doing" : {
1471
+ "allOf" : [
1472
+ {
1473
+ "$ref" : "#/$defs/action"
1474
+ },
1475
+ {
1476
+ "properties" : {
1477
+ "pass" : {
1478
+ "$ref" : "#/$defs/pass"
1479
+ }
1480
+ }
1481
+ }
1482
+ ]
1483
+ },
1484
+ "pass" : {
1485
+ "anyOf" : [
1486
+ {
1487
+ "enum" : [
1488
+ "everyTime",
1489
+ "firstTime",
1490
+ "afterTheFirst",
1491
+ "lastTime",
1492
+ "everyTimeButTheLast"
1493
+ ]
1494
+ },
1495
+ {
1496
+ "additionalProperties" : false,
1497
+ "properties" : {
1498
+ "kind" : {
1499
+ "enum" : [
1500
+ "onlyOn",
1501
+ "everyOther"
1502
+ ]
1503
+ },
1504
+ "value" : {
1505
+ "minimum" : 1,
1506
+ "type" : "integer"
1507
+ }
1508
+ },
1509
+ "required" : [
1510
+ "kind",
1511
+ "value"
1512
+ ],
1513
+ "type" : "object"
1514
+ }
1515
+ ],
1516
+ "description" : "Which times through the step it happens on. Left out, every time."
1517
+ },
1518
+ "reaction" : {
1519
+ "properties" : {
1520
+ "does" : {
1521
+ "items" : {
1522
+ "$ref" : "#/$defs/action"
1523
+ },
1524
+ "minItems" : 1,
1525
+ "type" : "array"
1526
+ },
1527
+ "on" : {
1528
+ "anyOf" : [
1529
+ {
1530
+ "enum" : [
1531
+ "finish",
1532
+ "stop",
1533
+ "pause",
1534
+ "blocked",
1535
+ "anyStatus",
1536
+ "anyStep",
1537
+ "firstStep",
1538
+ "lastStep",
1539
+ "anyDeadline"
1540
+ ]
1541
+ },
1542
+ {
1543
+ "properties" : {
1544
+ "step" : {
1545
+ "minimum" : 1,
1546
+ "type" : "integer"
1547
+ }
1548
+ },
1549
+ "required" : [
1550
+ "step"
1551
+ ],
1552
+ "type" : "object"
1553
+ },
1554
+ {
1555
+ "properties" : {
1556
+ "deadline" : {
1557
+ "minimum" : 1,
1558
+ "type" : "integer"
1559
+ }
1560
+ },
1561
+ "required" : [
1562
+ "deadline"
1563
+ ],
1564
+ "type" : "object"
1565
+ }
1566
+ ]
1567
+ }
1568
+ },
1569
+ "required" : [
1570
+ "on",
1571
+ "does"
1572
+ ],
1573
+ "type" : "object"
1574
+ },
1575
+ "readiness" : {
1576
+ "anyOf" : [
1577
+ {
1578
+ "enum" : [
1579
+ "confirm",
1580
+ "confirmSaying",
1581
+ "nothingLeftUnplaced",
1582
+ "whileFocusIsOn"
1583
+ ]
1584
+ },
1585
+ {
1586
+ "additionalProperties" : false,
1587
+ "properties" : {
1588
+ "notBefore" : {
1589
+ "pattern" : "^([01]?[0-9]|2[0-3]):[0-5][0-9]$",
1590
+ "type" : "string"
1591
+ }
1592
+ },
1593
+ "required" : [
1594
+ "notBefore"
1595
+ ],
1596
+ "type" : "object"
1597
+ },
1598
+ {
1599
+ "additionalProperties" : false,
1600
+ "properties" : {
1601
+ "after" : {
1602
+ "additionalProperties" : false,
1603
+ "minProperties" : 1,
1604
+ "properties" : {
1605
+ "days" : {
1606
+ "type" : "number"
1607
+ },
1608
+ "hours" : {
1609
+ "type" : "number"
1610
+ },
1611
+ "minutes" : {
1612
+ "type" : "number"
1613
+ }
1614
+ },
1615
+ "type" : "object"
1616
+ }
1617
+ },
1618
+ "required" : [
1619
+ "after"
1620
+ ],
1621
+ "type" : "object"
1622
+ },
1623
+ {
1624
+ "additionalProperties" : false,
1625
+ "properties" : {
1626
+ "waitsFor" : {
1627
+ "pattern" : "\\S",
1628
+ "type" : "string"
1629
+ }
1630
+ },
1631
+ "required" : [
1632
+ "waitsFor"
1633
+ ],
1634
+ "type" : "object"
1635
+ }
1636
+ ],
1637
+ "description" : "What Next waits for before it moves on."
1638
+ },
1639
+ "step" : {
1640
+ "properties" : {
1641
+ "buttons" : {
1642
+ "description" : "What waits for a tap.",
1643
+ "items" : {
1644
+ "$ref" : "#/$defs/button"
1645
+ },
1646
+ "type" : "array"
1647
+ },
1648
+ "colour" : {
1649
+ "anyOf" : [
1650
+ {
1651
+ "enum" : [
1652
+ "red",
1653
+ "orange",
1654
+ "yellow",
1655
+ "green",
1656
+ "mint",
1657
+ "teal",
1658
+ "blue",
1659
+ "indigo",
1660
+ "purple",
1661
+ "pink",
1662
+ "brown",
1663
+ "grey"
1664
+ ]
1665
+ },
1666
+ {
1667
+ "pattern" : "^#[0-9A-Fa-f]{6}$",
1668
+ "type" : "string"
1669
+ }
1670
+ ]
1671
+ },
1672
+ "deadline" : {
1673
+ "$ref" : "#/$defs/deadline"
1674
+ },
1675
+ "description" : {
1676
+ "description" : "How or why, in Markdown.",
1677
+ "type" : "string"
1678
+ },
1679
+ "does" : {
1680
+ "description" : "What happens on arriving at the step.",
1681
+ "items" : {
1682
+ "$ref" : "#/$defs/doing"
1683
+ },
1684
+ "type" : "array"
1685
+ },
1686
+ "followUp" : {
1687
+ "properties" : {
1688
+ "alarm" : {
1689
+ "type" : "boolean"
1690
+ },
1691
+ "at" : {
1692
+ "pattern" : "^([01]?[0-9]|2[0-3]):[0-5][0-9]$",
1693
+ "type" : "string"
1694
+ },
1695
+ "days" : {
1696
+ "type" : "integer"
1697
+ },
1698
+ "hours" : {
1699
+ "type" : "number"
1700
+ },
1701
+ "name" : {
1702
+ "type" : "string"
1703
+ },
1704
+ "soonerIf" : {
1705
+ "type" : "string"
1706
+ },
1707
+ "wholeRun" : {
1708
+ "type" : "boolean"
1709
+ },
1710
+ "workdays" : {
1711
+ "type" : "boolean"
1712
+ }
1713
+ },
1714
+ "type" : "object"
1715
+ },
1716
+ "keepsScreenAwake" : {
1717
+ "description" : "The screen stays on while the step is in hand.",
1718
+ "type" : "boolean"
1719
+ },
1720
+ "links" : {
1721
+ "items" : {
1722
+ "properties" : {
1723
+ "title" : {
1724
+ "type" : "string"
1725
+ },
1726
+ "url" : {
1727
+ "pattern" : "^https?://",
1728
+ "type" : "string"
1729
+ }
1730
+ },
1731
+ "required" : [
1732
+ "title",
1733
+ "url"
1734
+ ],
1735
+ "type" : "object"
1736
+ },
1737
+ "type" : "array"
1738
+ },
1739
+ "minutes" : {
1740
+ "description" : "How long it runs, where it has a clock.",
1741
+ "minimum" : 0,
1742
+ "type" : "number"
1743
+ },
1744
+ "notes" : {
1745
+ "description" : "Notes on the step, one string each, in Markdown.",
1746
+ "items" : {
1747
+ "pattern" : "\\S",
1748
+ "type" : "string"
1749
+ },
1750
+ "type" : "array"
1751
+ },
1752
+ "readiness" : {
1753
+ "$ref" : "#/$defs/readiness"
1754
+ },
1755
+ "repeats" : {
1756
+ "description" : "How many times it is done in all.",
1757
+ "minimum" : 1,
1758
+ "type" : "integer"
1759
+ },
1760
+ "symbol" : {
1761
+ "type" : "string"
1762
+ },
1763
+ "tags" : {
1764
+ "description" : "Words the step is filed under.",
1765
+ "items" : {
1766
+ "pattern" : "\\S",
1767
+ "type" : "string"
1768
+ },
1769
+ "type" : "array"
1770
+ },
1771
+ "timeUp" : {
1772
+ "$ref" : "#/$defs/timeUp"
1773
+ },
1774
+ "title" : {
1775
+ "description" : "What to do, as an instruction.",
1776
+ "pattern" : "\\S",
1777
+ "type" : "string"
1778
+ },
1779
+ "triggers" : {
1780
+ "description" : "Check-ins: each asks a \"question\" while a run is on this step.",
1781
+ "items" : {
1782
+ "$ref" : "#/$defs/trigger"
1783
+ },
1784
+ "type" : "array"
1785
+ },
1786
+ "values" : {
1787
+ "additionalProperties" : {
1788
+ "$ref" : "#/$defs/value"
1789
+ },
1790
+ "description" : "Named values, as \"name\": value — words, a number, true or false, or a link.",
1791
+ "type" : "object"
1792
+ },
1793
+ "waitsOut" : {
1794
+ "description" : "Next waits until \"minutes\" have run out. Ignored on a step with no \"minutes\".",
1795
+ "type" : "boolean"
1796
+ },
1797
+ "was" : {
1798
+ "minimum" : 1,
1799
+ "type" : "integer"
1800
+ }
1801
+ },
1802
+ "required" : [
1803
+ "title"
1804
+ ],
1805
+ "type" : "object"
1806
+ },
1807
+ "timeUp" : {
1808
+ "additionalProperties" : false,
1809
+ "description" : "What happens when the step's minutes run out. Left out, it says so and stays.",
1810
+ "properties" : {
1811
+ "advances" : {
1812
+ "description" : "The run moves on by itself.",
1813
+ "type" : "boolean"
1814
+ },
1815
+ "does" : {
1816
+ "items" : {
1817
+ "$ref" : "#/$defs/doing"
1818
+ },
1819
+ "type" : "array"
1820
+ },
1821
+ "reminds" : {
1822
+ "description" : "It says so. Left out, it does.",
1823
+ "type" : "boolean"
1824
+ },
1825
+ "tellMe" : {
1826
+ "enum" : [
1827
+ "alarm",
1828
+ "notification",
1829
+ "calendar",
1830
+ "reminders"
1831
+ ]
1832
+ }
1833
+ },
1834
+ "type" : "object"
1835
+ },
1836
+ "trigger" : {
1837
+ "properties" : {
1838
+ "answers" : {
1839
+ "description" : "A check-in's answers. Left out, next.",
1840
+ "items" : {
1841
+ "enum" : [
1842
+ "offer",
1843
+ "start",
1844
+ "next",
1845
+ "pause",
1846
+ "resume",
1847
+ "later",
1848
+ "stop",
1849
+ "finish"
1850
+ ]
1851
+ },
1852
+ "type" : "array"
1853
+ },
1854
+ "does" : {
1855
+ "enum" : [
1856
+ "offer",
1857
+ "start",
1858
+ "next",
1859
+ "pause",
1860
+ "resume",
1861
+ "later",
1862
+ "stop",
1863
+ "finish"
1864
+ ]
1865
+ },
1866
+ "name" : {
1867
+ "type" : "string"
1868
+ },
1869
+ "question" : {
1870
+ "description" : "Makes it a check-in, asked until it is answered. On a step only.",
1871
+ "type" : "string"
1872
+ },
1873
+ "tellMe" : {
1874
+ "enum" : [
1875
+ "notification",
1876
+ "alarm",
1877
+ "calendar",
1878
+ "reminders"
1879
+ ]
1880
+ },
1881
+ "when" : {
1882
+ "$ref" : "#/$defs/when"
1883
+ }
1884
+ },
1885
+ "required" : [
1886
+ "when"
1887
+ ],
1888
+ "type" : "object"
1889
+ },
1890
+ "value" : {
1891
+ "anyOf" : [
1892
+ {
1893
+ "type" : [
1894
+ "string",
1895
+ "number",
1896
+ "boolean"
1897
+ ]
1898
+ },
1899
+ {
1900
+ "additionalProperties" : false,
1901
+ "properties" : {
1902
+ "text" : {
1903
+ "type" : "string"
1904
+ }
1905
+ },
1906
+ "required" : [
1907
+ "text"
1908
+ ],
1909
+ "type" : "object"
1910
+ },
1911
+ {
1912
+ "additionalProperties" : false,
1913
+ "properties" : {
1914
+ "number" : {
1915
+ "type" : "number"
1916
+ }
1917
+ },
1918
+ "required" : [
1919
+ "number"
1920
+ ],
1921
+ "type" : "object"
1922
+ },
1923
+ {
1924
+ "additionalProperties" : false,
1925
+ "properties" : {
1926
+ "day" : {
1927
+ "pattern" : "^[0-9]{4}-[0-9]{2}-[0-9]{2}([ T][0-9]{2}:[0-9]{2}(:[0-9]{2})?)?$",
1928
+ "type" : "string"
1929
+ }
1930
+ },
1931
+ "required" : [
1932
+ "day"
1933
+ ],
1934
+ "type" : "object"
1935
+ },
1936
+ {
1937
+ "additionalProperties" : false,
1938
+ "properties" : {
1939
+ "date" : {
1940
+ "pattern" : "^[0-9]{4}-[0-9]{2}-[0-9]{2}([ T][0-9]{2}:[0-9]{2}(:[0-9]{2})?)?$",
1941
+ "type" : "string"
1942
+ }
1943
+ },
1944
+ "required" : [
1945
+ "date"
1946
+ ],
1947
+ "type" : "object"
1948
+ },
1949
+ {
1950
+ "additionalProperties" : false,
1951
+ "properties" : {
1952
+ "time" : {
1953
+ "pattern" : "^([01]?[0-9]|2[0-3]):[0-5][0-9]$",
1954
+ "type" : "string"
1955
+ }
1956
+ },
1957
+ "required" : [
1958
+ "time"
1959
+ ],
1960
+ "type" : "object"
1961
+ },
1962
+ {
1963
+ "additionalProperties" : false,
1964
+ "properties" : {
1965
+ "url" : {
1966
+ "pattern" : "^https?://",
1967
+ "type" : "string"
1968
+ }
1969
+ },
1970
+ "required" : [
1971
+ "url"
1972
+ ],
1973
+ "type" : "object"
1974
+ }
1975
+ ]
1976
+ },
1977
+ "when" : {
1978
+ "description" : "One moment. Exactly one kind is said.",
1979
+ "properties" : {
1980
+ "arrive" : {
1981
+ "description" : "A saved place, by name.",
1982
+ "type" : "string"
1983
+ },
1984
+ "at" : {
1985
+ "description" : "A time of day, with weekdays, a day of the month or a date.",
1986
+ "pattern" : "^([01]?[0-9]|2[0-3]):[0-5][0-9]$",
1987
+ "type" : "string"
1988
+ },
1989
+ "between" : {
1990
+ "description" : "The hours of the day an \"every\" is held to.",
1991
+ "items" : {
1992
+ "maximum" : 24,
1993
+ "minimum" : 0,
1994
+ "type" : "integer"
1995
+ },
1996
+ "maxItems" : 2,
1997
+ "minItems" : 2,
1998
+ "type" : "array"
1999
+ },
2000
+ "dayOfMonth" : {
2001
+ "anyOf" : [
2002
+ {
2003
+ "maximum" : 31,
2004
+ "minimum" : 1,
2005
+ "type" : "integer"
2006
+ },
2007
+ {
2008
+ "const" : "last"
2009
+ }
2010
+ ]
2011
+ },
2012
+ "eventAlert" : {
2013
+ "description" : "The title of one of your own calendar events, whose alert it answers.",
2014
+ "type" : "string"
2015
+ },
2016
+ "every" : {
2017
+ "allOf" : [
2018
+ {
2019
+ "additionalProperties" : false,
2020
+ "minProperties" : 1,
2021
+ "properties" : {
2022
+ "days" : {
2023
+ "type" : "number"
2024
+ },
2025
+ "hours" : {
2026
+ "type" : "number"
2027
+ },
2028
+ "minutes" : {
2029
+ "type" : "number"
2030
+ }
2031
+ },
2032
+ "type" : "object"
2033
+ }
2034
+ ],
2035
+ "description" : "Every so often, by the clock."
2036
+ },
2037
+ "focus" : {
2038
+ "enum" : [
2039
+ "on",
2040
+ "off"
2041
+ ]
2042
+ },
2043
+ "leave" : {
2044
+ "description" : "A saved place, by name.",
2045
+ "type" : "string"
2046
+ },
2047
+ "month" : {
2048
+ "maximum" : 12,
2049
+ "minimum" : 1,
2050
+ "type" : "integer"
2051
+ },
2052
+ "nth" : {
2053
+ "maximum" : 5,
2054
+ "minimum" : 1,
2055
+ "type" : "integer"
2056
+ },
2057
+ "on" : {
2058
+ "description" : "Once, on this date.",
2059
+ "pattern" : "^[0-9]{4}-[0-9]{2}-[0-9]{2}([ T][0-9]{2}:[0-9]{2}(:[0-9]{2})?)?$",
2060
+ "type" : "string"
2061
+ },
2062
+ "reminderAlert" : {
2063
+ "description" : "The title of one of your reminders, whose alert it answers.",
2064
+ "type" : "string"
2065
+ },
2066
+ "settle" : {
2067
+ "description" : "A saved place, by name.",
2068
+ "type" : "string"
2069
+ },
2070
+ "weekdays" : {
2071
+ "items" : {
2072
+ "enum" : [
2073
+ "mon",
2074
+ "tue",
2075
+ "wed",
2076
+ "thu",
2077
+ "fri",
2078
+ "sat",
2079
+ "sun"
2080
+ ]
2081
+ },
2082
+ "type" : "array"
2083
+ },
2084
+ "workoutEnds" : {
2085
+ "type" : "boolean"
2086
+ }
2087
+ },
2088
+ "type" : "object"
2089
+ }
2090
+ },
2091
+ "$id" : "https://routinerun.com/schema/routine.v2.json",
2092
+ "$schema" : "https://json-schema.org/draft/2020-12/schema",
2093
+ "description" : "A routine as an assistant or a person writes one, in the app's own words: names rather than identifiers, step numbers rather than ids, one word per action. Form 1 is still read, and turned into this one by one table (WrittenForm in the app, upgrade in @routinerun/form).",
2094
+ "properties" : {
2095
+ "asksWhatToKeep" : {
2096
+ "description" : "Whether a run asks what to keep when it ends. Left out, it asks.",
2097
+ "type" : "boolean"
2098
+ },
2099
+ "catalogue" : {
2100
+ "description" : "Where a starter sits in the catalogue: its file name, its shelf, what it needs. The app reads a routine with one and ignores it.",
2101
+ "properties" : {
2102
+ "dependsOn" : {
2103
+ "items" : {
2104
+ "type" : "string"
2105
+ },
2106
+ "type" : "array"
2107
+ },
2108
+ "firstShelf" : {
2109
+ "type" : "boolean"
2110
+ },
2111
+ "group" : {
2112
+ "type" : "string"
2113
+ },
2114
+ "licence" : {
2115
+ "type" : "string"
2116
+ },
2117
+ "release" : {
2118
+ "minimum" : 1,
2119
+ "type" : "integer"
2120
+ },
2121
+ "shortcuts" : {
2122
+ "items" : {
2123
+ "type" : "string"
2124
+ },
2125
+ "type" : "array"
2126
+ },
2127
+ "slug" : {
2128
+ "pattern" : "^[a-z0-9]+(-[a-z0-9]+)*$",
2129
+ "type" : "string"
2130
+ },
2131
+ "startsByItself" : {
2132
+ "type" : "boolean"
2133
+ },
2134
+ "web" : {
2135
+ "pattern" : "^https://",
2136
+ "type" : "string"
2137
+ }
2138
+ },
2139
+ "required" : [
2140
+ "slug",
2141
+ "group"
2142
+ ],
2143
+ "type" : "object"
2144
+ },
2145
+ "colour" : {
2146
+ "anyOf" : [
2147
+ {
2148
+ "enum" : [
2149
+ "red",
2150
+ "orange",
2151
+ "yellow",
2152
+ "green",
2153
+ "mint",
2154
+ "teal",
2155
+ "blue",
2156
+ "indigo",
2157
+ "purple",
2158
+ "pink",
2159
+ "brown",
2160
+ "grey"
2161
+ ]
2162
+ },
2163
+ {
2164
+ "pattern" : "^#[0-9A-Fa-f]{6}$",
2165
+ "type" : "string"
2166
+ }
2167
+ ]
2168
+ },
2169
+ "comesRoundAgain" : {
2170
+ "anyOf" : [
2171
+ {
2172
+ "const" : "atOnce"
2173
+ },
2174
+ {
2175
+ "additionalProperties" : false,
2176
+ "minProperties" : 1,
2177
+ "properties" : {
2178
+ "after" : {
2179
+ "additionalProperties" : false,
2180
+ "minProperties" : 1,
2181
+ "properties" : {
2182
+ "days" : {
2183
+ "type" : "number"
2184
+ },
2185
+ "hours" : {
2186
+ "type" : "number"
2187
+ },
2188
+ "minutes" : {
2189
+ "type" : "number"
2190
+ }
2191
+ },
2192
+ "type" : "object"
2193
+ },
2194
+ "atOnce" : {
2195
+ "type" : "boolean"
2196
+ },
2197
+ "from" : {
2198
+ "description" : "What the gap counts from. Left out, the run finishing.",
2199
+ "enum" : [
2200
+ "finished",
2201
+ "started",
2202
+ "firstStep"
2203
+ ]
2204
+ },
2205
+ "spaced" : {
2206
+ "description" : "1, 3, 7, 21 then 60 days, or 1, 2, 4, 8 then 16 weeks.",
2207
+ "enum" : [
2208
+ "days",
2209
+ "weeks"
2210
+ ]
2211
+ }
2212
+ },
2213
+ "type" : "object"
2214
+ }
2215
+ ],
2216
+ "description" : "Whether a run of this is offered again after it, and how soon."
2217
+ },
2218
+ "dates" : {
2219
+ "items" : {
2220
+ "description" : "A date the steps and starts are counted from, by name.",
2221
+ "properties" : {
2222
+ "name" : {
2223
+ "pattern" : "\\S",
2224
+ "type" : "string"
2225
+ },
2226
+ "on" : {
2227
+ "description" : "The day, or the day and time. Left out while it is not known.",
2228
+ "pattern" : "^[0-9]{4}-[0-9]{2}-[0-9]{2}([ T][0-9]{2}:[0-9]{2}(:[0-9]{2})?)?$",
2229
+ "type" : "string"
2230
+ }
2231
+ },
2232
+ "required" : [
2233
+ "name"
2234
+ ],
2235
+ "type" : "object"
2236
+ },
2237
+ "type" : "array"
2238
+ },
2239
+ "description" : {
2240
+ "description" : "What it is for, in Markdown.",
2241
+ "type" : "string"
2242
+ },
2243
+ "from" : {
2244
+ "description" : "Which routine this is, where it already exists on the phone: eight characters of its identifier. Left exactly as it was handed out, and never invented.",
2245
+ "type" : "string"
2246
+ },
2247
+ "name" : {
2248
+ "description" : "What the routine is called.",
2249
+ "pattern" : "\\S",
2250
+ "type" : "string"
2251
+ },
2252
+ "notes" : {
2253
+ "description" : "Notes on the routine, one string each, in Markdown.",
2254
+ "items" : {
2255
+ "pattern" : "\\S",
2256
+ "type" : "string"
2257
+ },
2258
+ "type" : "array"
2259
+ },
2260
+ "nudge" : {
2261
+ "description" : "For a list that stays open, the time of day it says how much is waiting.",
2262
+ "pattern" : "^([01]?[0-9]|2[0-3]):[0-5][0-9]$",
2263
+ "type" : "string"
2264
+ },
2265
+ "once" : {
2266
+ "description" : "Something that happens once: finishing its run puts it away.",
2267
+ "type" : "boolean"
2268
+ },
2269
+ "order" : {
2270
+ "description" : "How freely somebody walking it may move about its steps: \"inOrder\", \"oneAtATime\" or \"free\".",
2271
+ "enum" : [
2272
+ "free",
2273
+ "inOrder",
2274
+ "oneAtATime"
2275
+ ]
2276
+ },
2277
+ "places" : {
2278
+ "description" : "Saved places it belongs to, by name. A name the phone has not saved is left out.",
2279
+ "items" : {
2280
+ "pattern" : "\\S",
2281
+ "type" : "string"
2282
+ },
2283
+ "type" : "array"
2284
+ },
2285
+ "reactions" : {
2286
+ "description" : "What happens when a run gets somewhere.",
2287
+ "items" : {
2288
+ "$ref" : "#/$defs/reaction"
2289
+ },
2290
+ "type" : "array"
2291
+ },
2292
+ "rounds" : {
2293
+ "description" : "Steps that go round, by number, counting from one. No \"repeats\" is until I have had enough.",
2294
+ "properties" : {
2295
+ "from" : {
2296
+ "minimum" : 1,
2297
+ "type" : "integer"
2298
+ },
2299
+ "repeats" : {
2300
+ "minimum" : 1,
2301
+ "type" : "integer"
2302
+ },
2303
+ "through" : {
2304
+ "minimum" : 1,
2305
+ "type" : "integer"
2306
+ }
2307
+ },
2308
+ "required" : [
2309
+ "from",
2310
+ "through"
2311
+ ],
2312
+ "type" : "object"
2313
+ },
2314
+ "routineRun" : {
2315
+ "const" : 2,
2316
+ "description" : "The form this is written in. 2 for this one; 1 is still read."
2317
+ },
2318
+ "runName" : {
2319
+ "description" : "What each run is called, naming a value: \"Due diligence: {param:company}\".",
2320
+ "type" : "string"
2321
+ },
2322
+ "severalAtOnce" : {
2323
+ "description" : "Several runs may go at once.",
2324
+ "type" : "boolean"
2325
+ },
2326
+ "startsFrom" : {
2327
+ "items" : {
2328
+ "description" : "A start offered so many days before (negative) or after a named date.",
2329
+ "properties" : {
2330
+ "at" : {
2331
+ "pattern" : "^([01]?[0-9]|2[0-3]):[0-5][0-9]$",
2332
+ "type" : "string"
2333
+ },
2334
+ "date" : {
2335
+ "type" : "string"
2336
+ },
2337
+ "days" : {
2338
+ "type" : "integer"
2339
+ },
2340
+ "minutes" : {
2341
+ "type" : "integer"
2342
+ }
2343
+ },
2344
+ "required" : [
2345
+ "date"
2346
+ ],
2347
+ "type" : "object"
2348
+ },
2349
+ "type" : "array"
2350
+ },
2351
+ "staysOpen" : {
2352
+ "description" : "A list that is never done: it waits when it is empty rather than finishing.",
2353
+ "type" : "boolean"
2354
+ },
2355
+ "steps" : {
2356
+ "description" : "The steps, in order. Empty only for a list that stays open.",
2357
+ "items" : {
2358
+ "$ref" : "#/$defs/step"
2359
+ },
2360
+ "type" : "array"
2361
+ },
2362
+ "symbol" : {
2363
+ "description" : "An SF Symbols name.",
2364
+ "type" : "string"
2365
+ },
2366
+ "tags" : {
2367
+ "description" : "Words it is filed under.",
2368
+ "items" : {
2369
+ "pattern" : "\\S",
2370
+ "type" : "string"
2371
+ },
2372
+ "type" : "array"
2373
+ },
2374
+ "triggers" : {
2375
+ "description" : "When it offers to start, or starts. A time with weekdays and nothing else offers to start.",
2376
+ "items" : {
2377
+ "$ref" : "#/$defs/trigger"
2378
+ },
2379
+ "type" : "array"
2380
+ },
2381
+ "values" : {
2382
+ "additionalProperties" : {
2383
+ "$ref" : "#/$defs/value"
2384
+ },
2385
+ "description" : "Named values, as \"name\": value — words, a number, true or false, or a link.",
2386
+ "type" : "object"
2387
+ }
2388
+ },
2389
+ "required" : [
2390
+ "routineRun",
2391
+ "name",
2392
+ "steps"
2393
+ ],
2394
+ "title" : "Routine Run: a routine, written (form 2)",
2395
+ "type" : "object"
2396
+ }