@greatwait/contracts 0.2.3 → 0.3.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 (90) hide show
  1. package/dist/attempt-search.d.ts +235 -0
  2. package/dist/attempt-search.js +101 -0
  3. package/dist/authority.js +9 -9
  4. package/dist/billing.d.ts +4 -4
  5. package/dist/bulk-operations.d.ts +1832 -0
  6. package/dist/bulk-operations.js +610 -0
  7. package/dist/configuration-bounds.d.ts +12 -0
  8. package/dist/configuration-bounds.js +12 -0
  9. package/dist/configuration.d.ts +75 -0
  10. package/dist/configuration.js +242 -0
  11. package/dist/data-export.d.ts +3 -3
  12. package/dist/delivery.d.ts +1 -0
  13. package/dist/delivery.js +1 -0
  14. package/dist/effective-limits.d.ts +4 -4
  15. package/dist/endpoints.js +25 -25
  16. package/dist/execution-selection.d.ts +48 -0
  17. package/dist/execution-selection.js +21 -0
  18. package/dist/http-request.d.ts +1 -1
  19. package/dist/http-request.js +25 -23
  20. package/dist/identifiers.d.ts +2 -0
  21. package/dist/identifiers.js +21 -19
  22. package/dist/identity.d.ts +3 -3
  23. package/dist/index.d.ts +5 -0
  24. package/dist/index.js +5 -0
  25. package/dist/occurrence-states.d.ts +14 -0
  26. package/dist/occurrence-states.js +13 -0
  27. package/dist/operational-config.js +7 -6
  28. package/dist/operations.d.ts +573 -89
  29. package/dist/operations.js +67 -0
  30. package/dist/protocol.d.ts +19 -5
  31. package/dist/protocol.js +47 -40
  32. package/dist/schedule-selection.d.ts +28 -0
  33. package/dist/schedule-selection.js +48 -0
  34. package/dist/scheduling-records.d.ts +20 -20
  35. package/dist/scheduling.d.ts +109 -63
  36. package/dist/scheduling.js +101 -117
  37. package/dist/signatures.d.ts +6 -6
  38. package/dist/signatures.js +24 -24
  39. package/dist/stored-http.d.ts +18 -0
  40. package/dist/stored-http.js +106 -0
  41. package/dist/test-sink.d.ts +6 -6
  42. package/dist/time.js +7 -7
  43. package/dist/usage.d.ts +3 -3
  44. package/generated/v1/examples/attempts.search.response.json +42 -0
  45. package/generated/v1/examples/bulk.cancel.request.json +3 -0
  46. package/generated/v1/examples/bulk.cancel.response.json +59 -0
  47. package/generated/v1/examples/bulk.confirm.request.json +5 -0
  48. package/generated/v1/examples/bulk.confirm.response.json +59 -0
  49. package/generated/v1/examples/bulk.items.response.json +3 -0
  50. package/generated/v1/examples/bulk.list.response.json +63 -0
  51. package/generated/v1/examples/bulk.pause.request.json +3 -0
  52. package/generated/v1/examples/bulk.pause.response.json +59 -0
  53. package/generated/v1/examples/bulk.preview.request.json +12 -0
  54. package/generated/v1/examples/bulk.preview.response.json +59 -0
  55. package/generated/v1/examples/bulk.read.response.json +59 -0
  56. package/generated/v1/examples/bulk.resume.request.json +3 -0
  57. package/generated/v1/examples/bulk.resume.response.json +59 -0
  58. package/generated/v1/manifest.json +243 -1
  59. package/generated/v1/openapi.json +21569 -2418
  60. package/generated/v1/policy-matrix.json +63 -0
  61. package/generated/v1/schemas/attempts.search.query.json +96 -0
  62. package/generated/v1/schemas/attempts.search.response.json +271 -0
  63. package/generated/v1/schemas/bulk.cancel.request.json +13 -0
  64. package/generated/v1/schemas/bulk.cancel.response.json +1717 -0
  65. package/generated/v1/schemas/bulk.confirm.request-headers.json +13 -0
  66. package/generated/v1/schemas/bulk.confirm.request.json +19 -0
  67. package/generated/v1/schemas/bulk.confirm.response.json +1717 -0
  68. package/generated/v1/schemas/bulk.items.query.json +29 -0
  69. package/generated/v1/schemas/bulk.items.response.json +194 -0
  70. package/generated/v1/schemas/bulk.list.query.json +32 -0
  71. package/generated/v1/schemas/bulk.list.response.json +1789 -0
  72. package/generated/v1/schemas/bulk.pause.request.json +13 -0
  73. package/generated/v1/schemas/bulk.pause.response.json +1717 -0
  74. package/generated/v1/schemas/bulk.preview.request.json +1218 -0
  75. package/generated/v1/schemas/bulk.preview.response.json +1717 -0
  76. package/generated/v1/schemas/bulk.read.response.json +1717 -0
  77. package/generated/v1/schemas/bulk.resume.request.json +13 -0
  78. package/generated/v1/schemas/bulk.resume.response.json +1717 -0
  79. package/generated/v1/schemas/executions.list.query.json +33 -12
  80. package/generated/v1/schemas/schedules.list.query.json +32 -3
  81. package/generated/v1/snippets/attempts.search.json +6 -0
  82. package/generated/v1/snippets/bulk.cancel.json +6 -0
  83. package/generated/v1/snippets/bulk.confirm.json +6 -0
  84. package/generated/v1/snippets/bulk.items.json +6 -0
  85. package/generated/v1/snippets/bulk.list.json +6 -0
  86. package/generated/v1/snippets/bulk.pause.json +6 -0
  87. package/generated/v1/snippets/bulk.preview.json +6 -0
  88. package/generated/v1/snippets/bulk.read.json +6 -0
  89. package/generated/v1/snippets/bulk.resume.json +6 -0
  90. package/package.json +1 -1
@@ -0,0 +1,1789 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "data": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "object",
9
+ "properties": {
10
+ "id": {
11
+ "type": "string",
12
+ "pattern": "^bjo_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
13
+ },
14
+ "authority": {
15
+ "type": "object",
16
+ "properties": {
17
+ "environment": {
18
+ "type": "string",
19
+ "pattern": "^env_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
20
+ },
21
+ "environmentKind": {
22
+ "type": "string",
23
+ "enum": ["test", "live"]
24
+ },
25
+ "organization": {
26
+ "type": "string",
27
+ "pattern": "^org_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
28
+ },
29
+ "project": {
30
+ "type": "string",
31
+ "pattern": "^proj_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
32
+ }
33
+ },
34
+ "required": [
35
+ "environment",
36
+ "environmentKind",
37
+ "organization",
38
+ "project"
39
+ ]
40
+ },
41
+ "intent": {
42
+ "oneOf": [
43
+ {
44
+ "type": "object",
45
+ "properties": {
46
+ "target": {
47
+ "type": "string",
48
+ "enum": ["schedules", "parent_schedules", "occurrences"]
49
+ },
50
+ "selection": {
51
+ "anyOf": [
52
+ {
53
+ "type": "object",
54
+ "properties": {
55
+ "kind": {
56
+ "type": "string",
57
+ "const": "ids"
58
+ },
59
+ "resource": {
60
+ "type": "string",
61
+ "const": "schedules"
62
+ },
63
+ "ids": {
64
+ "maxItems": 1000000,
65
+ "type": "array",
66
+ "items": {
67
+ "type": "string",
68
+ "pattern": "^sch_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
69
+ }
70
+ }
71
+ },
72
+ "required": ["kind", "resource", "ids"]
73
+ },
74
+ {
75
+ "type": "object",
76
+ "properties": {
77
+ "kind": {
78
+ "type": "string",
79
+ "const": "ids"
80
+ },
81
+ "resource": {
82
+ "type": "string",
83
+ "const": "executions"
84
+ },
85
+ "ids": {
86
+ "maxItems": 1000000,
87
+ "type": "array",
88
+ "items": {
89
+ "type": "string",
90
+ "pattern": "^occ_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
91
+ }
92
+ }
93
+ },
94
+ "required": ["kind", "resource", "ids"]
95
+ },
96
+ {
97
+ "type": "object",
98
+ "properties": {
99
+ "kind": {
100
+ "type": "string",
101
+ "const": "all_matching"
102
+ },
103
+ "resource": {
104
+ "type": "string",
105
+ "const": "schedules"
106
+ },
107
+ "filter": {
108
+ "type": "object",
109
+ "properties": {
110
+ "external_identifier": {
111
+ "type": "string",
112
+ "minLength": 1,
113
+ "maxLength": 256,
114
+ "description": "Host application identifier, matched exactly and case-sensitively; at most 256 UTF-8 bytes. Readable by schedule readers; do not include secrets."
115
+ },
116
+ "tag": {
117
+ "type": "string",
118
+ "minLength": 1,
119
+ "maxLength": 64,
120
+ "description": "An exact, case-sensitive tag of at most 64 UTF-8 bytes."
121
+ },
122
+ "status": {
123
+ "type": "string",
124
+ "enum": [
125
+ "active",
126
+ "paused",
127
+ "cancelled",
128
+ "completed"
129
+ ]
130
+ },
131
+ "recurrence": {
132
+ "type": "string",
133
+ "enum": ["at", "every", "cron"]
134
+ },
135
+ "endpoint": {
136
+ "anyOf": [
137
+ {
138
+ "type": "string",
139
+ "pattern": "^ep_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
140
+ },
141
+ {
142
+ "type": "string",
143
+ "const": "none"
144
+ }
145
+ ]
146
+ },
147
+ "text": {
148
+ "description": "Case-insensitive literal substring of schedule name, endpoint address or schedule identifier.",
149
+ "type": "string",
150
+ "maxLength": 256
151
+ },
152
+ "schedule": {
153
+ "type": "string",
154
+ "pattern": "^sch_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
155
+ },
156
+ "dueAfter": {
157
+ "type": "string",
158
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
159
+ },
160
+ "dueBefore": {
161
+ "type": "string",
162
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
163
+ }
164
+ }
165
+ }
166
+ },
167
+ "required": ["kind", "resource", "filter"]
168
+ },
169
+ {
170
+ "type": "object",
171
+ "properties": {
172
+ "kind": {
173
+ "type": "string",
174
+ "const": "all_matching"
175
+ },
176
+ "resource": {
177
+ "type": "string",
178
+ "const": "executions"
179
+ },
180
+ "filter": {
181
+ "type": "object",
182
+ "properties": {
183
+ "external_identifier": {
184
+ "type": "string",
185
+ "minLength": 1,
186
+ "maxLength": 256,
187
+ "description": "Host application identifier, matched exactly and case-sensitively; at most 256 UTF-8 bytes. Readable by schedule readers; do not include secrets."
188
+ },
189
+ "tag": {
190
+ "type": "string",
191
+ "minLength": 1,
192
+ "maxLength": 64,
193
+ "description": "An exact, case-sensitive tag of at most 64 UTF-8 bytes."
194
+ },
195
+ "status": {
196
+ "type": "string",
197
+ "enum": [
198
+ "active",
199
+ "paused",
200
+ "cancelled",
201
+ "completed"
202
+ ]
203
+ },
204
+ "recurrence": {
205
+ "type": "string",
206
+ "enum": ["at", "every", "cron"]
207
+ },
208
+ "endpoint": {
209
+ "anyOf": [
210
+ {
211
+ "type": "string",
212
+ "pattern": "^ep_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
213
+ },
214
+ {
215
+ "type": "string",
216
+ "const": "none"
217
+ }
218
+ ]
219
+ },
220
+ "text": {
221
+ "description": "Case-insensitive literal substring of schedule name, endpoint address or schedule identifier.",
222
+ "type": "string",
223
+ "maxLength": 256
224
+ },
225
+ "schedule": {
226
+ "type": "string",
227
+ "pattern": "^sch_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
228
+ },
229
+ "from": {
230
+ "type": "string",
231
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
232
+ },
233
+ "to": {
234
+ "type": "string",
235
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
236
+ },
237
+ "outcome": {
238
+ "type": "string",
239
+ "enum": [
240
+ "planned",
241
+ "due",
242
+ "dispatching",
243
+ "retry_wait",
244
+ "ambiguous",
245
+ "succeeded",
246
+ "terminal_failed",
247
+ "cancelled",
248
+ "skipped_stale"
249
+ ]
250
+ }
251
+ }
252
+ }
253
+ },
254
+ "required": ["kind", "resource", "filter"]
255
+ }
256
+ ]
257
+ },
258
+ "operation": {
259
+ "type": "string",
260
+ "const": "retry"
261
+ },
262
+ "parameters": {
263
+ "type": "object",
264
+ "properties": {
265
+ "includeSucceeded": {
266
+ "type": "boolean"
267
+ }
268
+ }
269
+ }
270
+ },
271
+ "required": ["target", "selection", "operation", "parameters"]
272
+ },
273
+ {
274
+ "type": "object",
275
+ "properties": {
276
+ "target": {
277
+ "type": "string",
278
+ "enum": ["schedules", "parent_schedules", "occurrences"]
279
+ },
280
+ "selection": {
281
+ "anyOf": [
282
+ {
283
+ "type": "object",
284
+ "properties": {
285
+ "kind": {
286
+ "type": "string",
287
+ "const": "ids"
288
+ },
289
+ "resource": {
290
+ "type": "string",
291
+ "const": "schedules"
292
+ },
293
+ "ids": {
294
+ "maxItems": 1000000,
295
+ "type": "array",
296
+ "items": {
297
+ "type": "string",
298
+ "pattern": "^sch_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
299
+ }
300
+ }
301
+ },
302
+ "required": ["kind", "resource", "ids"]
303
+ },
304
+ {
305
+ "type": "object",
306
+ "properties": {
307
+ "kind": {
308
+ "type": "string",
309
+ "const": "ids"
310
+ },
311
+ "resource": {
312
+ "type": "string",
313
+ "const": "executions"
314
+ },
315
+ "ids": {
316
+ "maxItems": 1000000,
317
+ "type": "array",
318
+ "items": {
319
+ "type": "string",
320
+ "pattern": "^occ_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
321
+ }
322
+ }
323
+ },
324
+ "required": ["kind", "resource", "ids"]
325
+ },
326
+ {
327
+ "type": "object",
328
+ "properties": {
329
+ "kind": {
330
+ "type": "string",
331
+ "const": "all_matching"
332
+ },
333
+ "resource": {
334
+ "type": "string",
335
+ "const": "schedules"
336
+ },
337
+ "filter": {
338
+ "type": "object",
339
+ "properties": {
340
+ "external_identifier": {
341
+ "type": "string",
342
+ "minLength": 1,
343
+ "maxLength": 256,
344
+ "description": "Host application identifier, matched exactly and case-sensitively; at most 256 UTF-8 bytes. Readable by schedule readers; do not include secrets."
345
+ },
346
+ "tag": {
347
+ "type": "string",
348
+ "minLength": 1,
349
+ "maxLength": 64,
350
+ "description": "An exact, case-sensitive tag of at most 64 UTF-8 bytes."
351
+ },
352
+ "status": {
353
+ "type": "string",
354
+ "enum": [
355
+ "active",
356
+ "paused",
357
+ "cancelled",
358
+ "completed"
359
+ ]
360
+ },
361
+ "recurrence": {
362
+ "type": "string",
363
+ "enum": ["at", "every", "cron"]
364
+ },
365
+ "endpoint": {
366
+ "anyOf": [
367
+ {
368
+ "type": "string",
369
+ "pattern": "^ep_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
370
+ },
371
+ {
372
+ "type": "string",
373
+ "const": "none"
374
+ }
375
+ ]
376
+ },
377
+ "text": {
378
+ "description": "Case-insensitive literal substring of schedule name, endpoint address or schedule identifier.",
379
+ "type": "string",
380
+ "maxLength": 256
381
+ },
382
+ "schedule": {
383
+ "type": "string",
384
+ "pattern": "^sch_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
385
+ },
386
+ "dueAfter": {
387
+ "type": "string",
388
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
389
+ },
390
+ "dueBefore": {
391
+ "type": "string",
392
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
393
+ }
394
+ }
395
+ }
396
+ },
397
+ "required": ["kind", "resource", "filter"]
398
+ },
399
+ {
400
+ "type": "object",
401
+ "properties": {
402
+ "kind": {
403
+ "type": "string",
404
+ "const": "all_matching"
405
+ },
406
+ "resource": {
407
+ "type": "string",
408
+ "const": "executions"
409
+ },
410
+ "filter": {
411
+ "type": "object",
412
+ "properties": {
413
+ "external_identifier": {
414
+ "type": "string",
415
+ "minLength": 1,
416
+ "maxLength": 256,
417
+ "description": "Host application identifier, matched exactly and case-sensitively; at most 256 UTF-8 bytes. Readable by schedule readers; do not include secrets."
418
+ },
419
+ "tag": {
420
+ "type": "string",
421
+ "minLength": 1,
422
+ "maxLength": 64,
423
+ "description": "An exact, case-sensitive tag of at most 64 UTF-8 bytes."
424
+ },
425
+ "status": {
426
+ "type": "string",
427
+ "enum": [
428
+ "active",
429
+ "paused",
430
+ "cancelled",
431
+ "completed"
432
+ ]
433
+ },
434
+ "recurrence": {
435
+ "type": "string",
436
+ "enum": ["at", "every", "cron"]
437
+ },
438
+ "endpoint": {
439
+ "anyOf": [
440
+ {
441
+ "type": "string",
442
+ "pattern": "^ep_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
443
+ },
444
+ {
445
+ "type": "string",
446
+ "const": "none"
447
+ }
448
+ ]
449
+ },
450
+ "text": {
451
+ "description": "Case-insensitive literal substring of schedule name, endpoint address or schedule identifier.",
452
+ "type": "string",
453
+ "maxLength": 256
454
+ },
455
+ "schedule": {
456
+ "type": "string",
457
+ "pattern": "^sch_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
458
+ },
459
+ "from": {
460
+ "type": "string",
461
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
462
+ },
463
+ "to": {
464
+ "type": "string",
465
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
466
+ },
467
+ "outcome": {
468
+ "type": "string",
469
+ "enum": [
470
+ "planned",
471
+ "due",
472
+ "dispatching",
473
+ "retry_wait",
474
+ "ambiguous",
475
+ "succeeded",
476
+ "terminal_failed",
477
+ "cancelled",
478
+ "skipped_stale"
479
+ ]
480
+ }
481
+ }
482
+ }
483
+ },
484
+ "required": ["kind", "resource", "filter"]
485
+ }
486
+ ]
487
+ },
488
+ "operation": {
489
+ "type": "string",
490
+ "const": "reschedule"
491
+ },
492
+ "parameters": {
493
+ "oneOf": [
494
+ {
495
+ "type": "object",
496
+ "properties": {
497
+ "mode": {
498
+ "type": "string",
499
+ "const": "absolute"
500
+ },
501
+ "at": {
502
+ "type": "string",
503
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
504
+ }
505
+ },
506
+ "required": ["mode", "at"]
507
+ },
508
+ {
509
+ "type": "object",
510
+ "properties": {
511
+ "mode": {
512
+ "type": "string",
513
+ "const": "shift_existing"
514
+ },
515
+ "seconds": {
516
+ "type": "integer",
517
+ "minimum": -31536000,
518
+ "maximum": 31536000
519
+ }
520
+ },
521
+ "required": ["mode", "seconds"]
522
+ },
523
+ {
524
+ "type": "object",
525
+ "properties": {
526
+ "mode": {
527
+ "type": "string",
528
+ "const": "delay_from_reference"
529
+ },
530
+ "seconds": {
531
+ "type": "integer",
532
+ "minimum": 1,
533
+ "maximum": 31536000
534
+ }
535
+ },
536
+ "required": ["mode", "seconds"]
537
+ },
538
+ {
539
+ "type": "object",
540
+ "properties": {
541
+ "mode": {
542
+ "type": "string",
543
+ "const": "definition"
544
+ },
545
+ "definition": {
546
+ "anyOf": [
547
+ {
548
+ "type": "object",
549
+ "properties": {
550
+ "everySeconds": {
551
+ "type": "integer",
552
+ "minimum": 60,
553
+ "maximum": 31536000
554
+ }
555
+ },
556
+ "required": ["everySeconds"]
557
+ },
558
+ {
559
+ "type": "object",
560
+ "properties": {
561
+ "cron": {
562
+ "type": "string",
563
+ "minLength": 1,
564
+ "maxLength": 256
565
+ },
566
+ "timeZone": {}
567
+ },
568
+ "required": ["cron", "timeZone"]
569
+ }
570
+ ]
571
+ }
572
+ },
573
+ "required": ["mode", "definition"]
574
+ }
575
+ ]
576
+ }
577
+ },
578
+ "required": ["target", "selection", "operation", "parameters"]
579
+ },
580
+ {
581
+ "type": "object",
582
+ "properties": {
583
+ "target": {
584
+ "type": "string",
585
+ "enum": ["schedules", "parent_schedules", "occurrences"]
586
+ },
587
+ "selection": {
588
+ "anyOf": [
589
+ {
590
+ "type": "object",
591
+ "properties": {
592
+ "kind": {
593
+ "type": "string",
594
+ "const": "ids"
595
+ },
596
+ "resource": {
597
+ "type": "string",
598
+ "const": "schedules"
599
+ },
600
+ "ids": {
601
+ "maxItems": 1000000,
602
+ "type": "array",
603
+ "items": {
604
+ "type": "string",
605
+ "pattern": "^sch_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
606
+ }
607
+ }
608
+ },
609
+ "required": ["kind", "resource", "ids"]
610
+ },
611
+ {
612
+ "type": "object",
613
+ "properties": {
614
+ "kind": {
615
+ "type": "string",
616
+ "const": "ids"
617
+ },
618
+ "resource": {
619
+ "type": "string",
620
+ "const": "executions"
621
+ },
622
+ "ids": {
623
+ "maxItems": 1000000,
624
+ "type": "array",
625
+ "items": {
626
+ "type": "string",
627
+ "pattern": "^occ_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
628
+ }
629
+ }
630
+ },
631
+ "required": ["kind", "resource", "ids"]
632
+ },
633
+ {
634
+ "type": "object",
635
+ "properties": {
636
+ "kind": {
637
+ "type": "string",
638
+ "const": "all_matching"
639
+ },
640
+ "resource": {
641
+ "type": "string",
642
+ "const": "schedules"
643
+ },
644
+ "filter": {
645
+ "type": "object",
646
+ "properties": {
647
+ "external_identifier": {
648
+ "type": "string",
649
+ "minLength": 1,
650
+ "maxLength": 256,
651
+ "description": "Host application identifier, matched exactly and case-sensitively; at most 256 UTF-8 bytes. Readable by schedule readers; do not include secrets."
652
+ },
653
+ "tag": {
654
+ "type": "string",
655
+ "minLength": 1,
656
+ "maxLength": 64,
657
+ "description": "An exact, case-sensitive tag of at most 64 UTF-8 bytes."
658
+ },
659
+ "status": {
660
+ "type": "string",
661
+ "enum": [
662
+ "active",
663
+ "paused",
664
+ "cancelled",
665
+ "completed"
666
+ ]
667
+ },
668
+ "recurrence": {
669
+ "type": "string",
670
+ "enum": ["at", "every", "cron"]
671
+ },
672
+ "endpoint": {
673
+ "anyOf": [
674
+ {
675
+ "type": "string",
676
+ "pattern": "^ep_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
677
+ },
678
+ {
679
+ "type": "string",
680
+ "const": "none"
681
+ }
682
+ ]
683
+ },
684
+ "text": {
685
+ "description": "Case-insensitive literal substring of schedule name, endpoint address or schedule identifier.",
686
+ "type": "string",
687
+ "maxLength": 256
688
+ },
689
+ "schedule": {
690
+ "type": "string",
691
+ "pattern": "^sch_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
692
+ },
693
+ "dueAfter": {
694
+ "type": "string",
695
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
696
+ },
697
+ "dueBefore": {
698
+ "type": "string",
699
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
700
+ }
701
+ }
702
+ }
703
+ },
704
+ "required": ["kind", "resource", "filter"]
705
+ },
706
+ {
707
+ "type": "object",
708
+ "properties": {
709
+ "kind": {
710
+ "type": "string",
711
+ "const": "all_matching"
712
+ },
713
+ "resource": {
714
+ "type": "string",
715
+ "const": "executions"
716
+ },
717
+ "filter": {
718
+ "type": "object",
719
+ "properties": {
720
+ "external_identifier": {
721
+ "type": "string",
722
+ "minLength": 1,
723
+ "maxLength": 256,
724
+ "description": "Host application identifier, matched exactly and case-sensitively; at most 256 UTF-8 bytes. Readable by schedule readers; do not include secrets."
725
+ },
726
+ "tag": {
727
+ "type": "string",
728
+ "minLength": 1,
729
+ "maxLength": 64,
730
+ "description": "An exact, case-sensitive tag of at most 64 UTF-8 bytes."
731
+ },
732
+ "status": {
733
+ "type": "string",
734
+ "enum": [
735
+ "active",
736
+ "paused",
737
+ "cancelled",
738
+ "completed"
739
+ ]
740
+ },
741
+ "recurrence": {
742
+ "type": "string",
743
+ "enum": ["at", "every", "cron"]
744
+ },
745
+ "endpoint": {
746
+ "anyOf": [
747
+ {
748
+ "type": "string",
749
+ "pattern": "^ep_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
750
+ },
751
+ {
752
+ "type": "string",
753
+ "const": "none"
754
+ }
755
+ ]
756
+ },
757
+ "text": {
758
+ "description": "Case-insensitive literal substring of schedule name, endpoint address or schedule identifier.",
759
+ "type": "string",
760
+ "maxLength": 256
761
+ },
762
+ "schedule": {
763
+ "type": "string",
764
+ "pattern": "^sch_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
765
+ },
766
+ "from": {
767
+ "type": "string",
768
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
769
+ },
770
+ "to": {
771
+ "type": "string",
772
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
773
+ },
774
+ "outcome": {
775
+ "type": "string",
776
+ "enum": [
777
+ "planned",
778
+ "due",
779
+ "dispatching",
780
+ "retry_wait",
781
+ "ambiguous",
782
+ "succeeded",
783
+ "terminal_failed",
784
+ "cancelled",
785
+ "skipped_stale"
786
+ ]
787
+ }
788
+ }
789
+ }
790
+ },
791
+ "required": ["kind", "resource", "filter"]
792
+ }
793
+ ]
794
+ },
795
+ "operation": {
796
+ "type": "string",
797
+ "const": "cancel"
798
+ },
799
+ "parameters": {
800
+ "type": "object",
801
+ "properties": {}
802
+ }
803
+ },
804
+ "required": ["target", "selection", "operation", "parameters"]
805
+ },
806
+ {
807
+ "type": "object",
808
+ "properties": {
809
+ "target": {
810
+ "type": "string",
811
+ "enum": ["schedules", "parent_schedules", "occurrences"]
812
+ },
813
+ "selection": {
814
+ "anyOf": [
815
+ {
816
+ "type": "object",
817
+ "properties": {
818
+ "kind": {
819
+ "type": "string",
820
+ "const": "ids"
821
+ },
822
+ "resource": {
823
+ "type": "string",
824
+ "const": "schedules"
825
+ },
826
+ "ids": {
827
+ "maxItems": 1000000,
828
+ "type": "array",
829
+ "items": {
830
+ "type": "string",
831
+ "pattern": "^sch_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
832
+ }
833
+ }
834
+ },
835
+ "required": ["kind", "resource", "ids"]
836
+ },
837
+ {
838
+ "type": "object",
839
+ "properties": {
840
+ "kind": {
841
+ "type": "string",
842
+ "const": "ids"
843
+ },
844
+ "resource": {
845
+ "type": "string",
846
+ "const": "executions"
847
+ },
848
+ "ids": {
849
+ "maxItems": 1000000,
850
+ "type": "array",
851
+ "items": {
852
+ "type": "string",
853
+ "pattern": "^occ_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
854
+ }
855
+ }
856
+ },
857
+ "required": ["kind", "resource", "ids"]
858
+ },
859
+ {
860
+ "type": "object",
861
+ "properties": {
862
+ "kind": {
863
+ "type": "string",
864
+ "const": "all_matching"
865
+ },
866
+ "resource": {
867
+ "type": "string",
868
+ "const": "schedules"
869
+ },
870
+ "filter": {
871
+ "type": "object",
872
+ "properties": {
873
+ "external_identifier": {
874
+ "type": "string",
875
+ "minLength": 1,
876
+ "maxLength": 256,
877
+ "description": "Host application identifier, matched exactly and case-sensitively; at most 256 UTF-8 bytes. Readable by schedule readers; do not include secrets."
878
+ },
879
+ "tag": {
880
+ "type": "string",
881
+ "minLength": 1,
882
+ "maxLength": 64,
883
+ "description": "An exact, case-sensitive tag of at most 64 UTF-8 bytes."
884
+ },
885
+ "status": {
886
+ "type": "string",
887
+ "enum": [
888
+ "active",
889
+ "paused",
890
+ "cancelled",
891
+ "completed"
892
+ ]
893
+ },
894
+ "recurrence": {
895
+ "type": "string",
896
+ "enum": ["at", "every", "cron"]
897
+ },
898
+ "endpoint": {
899
+ "anyOf": [
900
+ {
901
+ "type": "string",
902
+ "pattern": "^ep_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
903
+ },
904
+ {
905
+ "type": "string",
906
+ "const": "none"
907
+ }
908
+ ]
909
+ },
910
+ "text": {
911
+ "description": "Case-insensitive literal substring of schedule name, endpoint address or schedule identifier.",
912
+ "type": "string",
913
+ "maxLength": 256
914
+ },
915
+ "schedule": {
916
+ "type": "string",
917
+ "pattern": "^sch_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
918
+ },
919
+ "dueAfter": {
920
+ "type": "string",
921
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
922
+ },
923
+ "dueBefore": {
924
+ "type": "string",
925
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
926
+ }
927
+ }
928
+ }
929
+ },
930
+ "required": ["kind", "resource", "filter"]
931
+ },
932
+ {
933
+ "type": "object",
934
+ "properties": {
935
+ "kind": {
936
+ "type": "string",
937
+ "const": "all_matching"
938
+ },
939
+ "resource": {
940
+ "type": "string",
941
+ "const": "executions"
942
+ },
943
+ "filter": {
944
+ "type": "object",
945
+ "properties": {
946
+ "external_identifier": {
947
+ "type": "string",
948
+ "minLength": 1,
949
+ "maxLength": 256,
950
+ "description": "Host application identifier, matched exactly and case-sensitively; at most 256 UTF-8 bytes. Readable by schedule readers; do not include secrets."
951
+ },
952
+ "tag": {
953
+ "type": "string",
954
+ "minLength": 1,
955
+ "maxLength": 64,
956
+ "description": "An exact, case-sensitive tag of at most 64 UTF-8 bytes."
957
+ },
958
+ "status": {
959
+ "type": "string",
960
+ "enum": [
961
+ "active",
962
+ "paused",
963
+ "cancelled",
964
+ "completed"
965
+ ]
966
+ },
967
+ "recurrence": {
968
+ "type": "string",
969
+ "enum": ["at", "every", "cron"]
970
+ },
971
+ "endpoint": {
972
+ "anyOf": [
973
+ {
974
+ "type": "string",
975
+ "pattern": "^ep_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
976
+ },
977
+ {
978
+ "type": "string",
979
+ "const": "none"
980
+ }
981
+ ]
982
+ },
983
+ "text": {
984
+ "description": "Case-insensitive literal substring of schedule name, endpoint address or schedule identifier.",
985
+ "type": "string",
986
+ "maxLength": 256
987
+ },
988
+ "schedule": {
989
+ "type": "string",
990
+ "pattern": "^sch_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
991
+ },
992
+ "from": {
993
+ "type": "string",
994
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
995
+ },
996
+ "to": {
997
+ "type": "string",
998
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
999
+ },
1000
+ "outcome": {
1001
+ "type": "string",
1002
+ "enum": [
1003
+ "planned",
1004
+ "due",
1005
+ "dispatching",
1006
+ "retry_wait",
1007
+ "ambiguous",
1008
+ "succeeded",
1009
+ "terminal_failed",
1010
+ "cancelled",
1011
+ "skipped_stale"
1012
+ ]
1013
+ }
1014
+ }
1015
+ }
1016
+ },
1017
+ "required": ["kind", "resource", "filter"]
1018
+ }
1019
+ ]
1020
+ },
1021
+ "operation": {
1022
+ "type": "string",
1023
+ "const": "pause"
1024
+ },
1025
+ "parameters": {
1026
+ "type": "object",
1027
+ "properties": {}
1028
+ }
1029
+ },
1030
+ "required": ["target", "selection", "operation", "parameters"]
1031
+ },
1032
+ {
1033
+ "type": "object",
1034
+ "properties": {
1035
+ "target": {
1036
+ "type": "string",
1037
+ "enum": ["schedules", "parent_schedules", "occurrences"]
1038
+ },
1039
+ "selection": {
1040
+ "anyOf": [
1041
+ {
1042
+ "type": "object",
1043
+ "properties": {
1044
+ "kind": {
1045
+ "type": "string",
1046
+ "const": "ids"
1047
+ },
1048
+ "resource": {
1049
+ "type": "string",
1050
+ "const": "schedules"
1051
+ },
1052
+ "ids": {
1053
+ "maxItems": 1000000,
1054
+ "type": "array",
1055
+ "items": {
1056
+ "type": "string",
1057
+ "pattern": "^sch_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
1058
+ }
1059
+ }
1060
+ },
1061
+ "required": ["kind", "resource", "ids"]
1062
+ },
1063
+ {
1064
+ "type": "object",
1065
+ "properties": {
1066
+ "kind": {
1067
+ "type": "string",
1068
+ "const": "ids"
1069
+ },
1070
+ "resource": {
1071
+ "type": "string",
1072
+ "const": "executions"
1073
+ },
1074
+ "ids": {
1075
+ "maxItems": 1000000,
1076
+ "type": "array",
1077
+ "items": {
1078
+ "type": "string",
1079
+ "pattern": "^occ_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
1080
+ }
1081
+ }
1082
+ },
1083
+ "required": ["kind", "resource", "ids"]
1084
+ },
1085
+ {
1086
+ "type": "object",
1087
+ "properties": {
1088
+ "kind": {
1089
+ "type": "string",
1090
+ "const": "all_matching"
1091
+ },
1092
+ "resource": {
1093
+ "type": "string",
1094
+ "const": "schedules"
1095
+ },
1096
+ "filter": {
1097
+ "type": "object",
1098
+ "properties": {
1099
+ "external_identifier": {
1100
+ "type": "string",
1101
+ "minLength": 1,
1102
+ "maxLength": 256,
1103
+ "description": "Host application identifier, matched exactly and case-sensitively; at most 256 UTF-8 bytes. Readable by schedule readers; do not include secrets."
1104
+ },
1105
+ "tag": {
1106
+ "type": "string",
1107
+ "minLength": 1,
1108
+ "maxLength": 64,
1109
+ "description": "An exact, case-sensitive tag of at most 64 UTF-8 bytes."
1110
+ },
1111
+ "status": {
1112
+ "type": "string",
1113
+ "enum": [
1114
+ "active",
1115
+ "paused",
1116
+ "cancelled",
1117
+ "completed"
1118
+ ]
1119
+ },
1120
+ "recurrence": {
1121
+ "type": "string",
1122
+ "enum": ["at", "every", "cron"]
1123
+ },
1124
+ "endpoint": {
1125
+ "anyOf": [
1126
+ {
1127
+ "type": "string",
1128
+ "pattern": "^ep_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
1129
+ },
1130
+ {
1131
+ "type": "string",
1132
+ "const": "none"
1133
+ }
1134
+ ]
1135
+ },
1136
+ "text": {
1137
+ "description": "Case-insensitive literal substring of schedule name, endpoint address or schedule identifier.",
1138
+ "type": "string",
1139
+ "maxLength": 256
1140
+ },
1141
+ "schedule": {
1142
+ "type": "string",
1143
+ "pattern": "^sch_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
1144
+ },
1145
+ "dueAfter": {
1146
+ "type": "string",
1147
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
1148
+ },
1149
+ "dueBefore": {
1150
+ "type": "string",
1151
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
1152
+ }
1153
+ }
1154
+ }
1155
+ },
1156
+ "required": ["kind", "resource", "filter"]
1157
+ },
1158
+ {
1159
+ "type": "object",
1160
+ "properties": {
1161
+ "kind": {
1162
+ "type": "string",
1163
+ "const": "all_matching"
1164
+ },
1165
+ "resource": {
1166
+ "type": "string",
1167
+ "const": "executions"
1168
+ },
1169
+ "filter": {
1170
+ "type": "object",
1171
+ "properties": {
1172
+ "external_identifier": {
1173
+ "type": "string",
1174
+ "minLength": 1,
1175
+ "maxLength": 256,
1176
+ "description": "Host application identifier, matched exactly and case-sensitively; at most 256 UTF-8 bytes. Readable by schedule readers; do not include secrets."
1177
+ },
1178
+ "tag": {
1179
+ "type": "string",
1180
+ "minLength": 1,
1181
+ "maxLength": 64,
1182
+ "description": "An exact, case-sensitive tag of at most 64 UTF-8 bytes."
1183
+ },
1184
+ "status": {
1185
+ "type": "string",
1186
+ "enum": [
1187
+ "active",
1188
+ "paused",
1189
+ "cancelled",
1190
+ "completed"
1191
+ ]
1192
+ },
1193
+ "recurrence": {
1194
+ "type": "string",
1195
+ "enum": ["at", "every", "cron"]
1196
+ },
1197
+ "endpoint": {
1198
+ "anyOf": [
1199
+ {
1200
+ "type": "string",
1201
+ "pattern": "^ep_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
1202
+ },
1203
+ {
1204
+ "type": "string",
1205
+ "const": "none"
1206
+ }
1207
+ ]
1208
+ },
1209
+ "text": {
1210
+ "description": "Case-insensitive literal substring of schedule name, endpoint address or schedule identifier.",
1211
+ "type": "string",
1212
+ "maxLength": 256
1213
+ },
1214
+ "schedule": {
1215
+ "type": "string",
1216
+ "pattern": "^sch_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
1217
+ },
1218
+ "from": {
1219
+ "type": "string",
1220
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
1221
+ },
1222
+ "to": {
1223
+ "type": "string",
1224
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
1225
+ },
1226
+ "outcome": {
1227
+ "type": "string",
1228
+ "enum": [
1229
+ "planned",
1230
+ "due",
1231
+ "dispatching",
1232
+ "retry_wait",
1233
+ "ambiguous",
1234
+ "succeeded",
1235
+ "terminal_failed",
1236
+ "cancelled",
1237
+ "skipped_stale"
1238
+ ]
1239
+ }
1240
+ }
1241
+ }
1242
+ },
1243
+ "required": ["kind", "resource", "filter"]
1244
+ }
1245
+ ]
1246
+ },
1247
+ "operation": {
1248
+ "type": "string",
1249
+ "const": "resume"
1250
+ },
1251
+ "parameters": {
1252
+ "type": "object",
1253
+ "properties": {}
1254
+ }
1255
+ },
1256
+ "required": ["target", "selection", "operation", "parameters"]
1257
+ }
1258
+ ]
1259
+ },
1260
+ "state": {
1261
+ "type": "string",
1262
+ "enum": [
1263
+ "preparing",
1264
+ "awaiting_confirmation",
1265
+ "queued",
1266
+ "running",
1267
+ "paused",
1268
+ "blocked",
1269
+ "completed",
1270
+ "completed_with_failures",
1271
+ "cancelled",
1272
+ "expired",
1273
+ "refused"
1274
+ ]
1275
+ },
1276
+ "version": {
1277
+ "type": "integer",
1278
+ "exclusiveMinimum": 0,
1279
+ "maximum": 9007199254740991
1280
+ },
1281
+ "createdAt": {
1282
+ "type": "string",
1283
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
1284
+ },
1285
+ "updatedAt": {
1286
+ "type": "string",
1287
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
1288
+ },
1289
+ "referenceAt": {
1290
+ "type": "string",
1291
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
1292
+ },
1293
+ "preparationExpiresAt": {
1294
+ "type": "string",
1295
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
1296
+ },
1297
+ "previewExpiresAt": {
1298
+ "type": "string",
1299
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
1300
+ },
1301
+ "executionExpiresAt": {
1302
+ "type": "string",
1303
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
1304
+ },
1305
+ "resultsExpireAt": {
1306
+ "type": "string",
1307
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
1308
+ },
1309
+ "intentDigest": {
1310
+ "type": "string",
1311
+ "pattern": "^[a-f0-9]{64}$"
1312
+ },
1313
+ "complete": {
1314
+ "type": "boolean"
1315
+ },
1316
+ "counts": {
1317
+ "type": "object",
1318
+ "properties": {
1319
+ "matched": {
1320
+ "type": "integer",
1321
+ "minimum": 0,
1322
+ "maximum": 9007199254740991
1323
+ },
1324
+ "eligible": {
1325
+ "type": "integer",
1326
+ "minimum": 0,
1327
+ "maximum": 9007199254740991
1328
+ },
1329
+ "ineligible": {
1330
+ "type": "integer",
1331
+ "minimum": 0,
1332
+ "maximum": 9007199254740991
1333
+ },
1334
+ "pending": {
1335
+ "type": "integer",
1336
+ "minimum": 0,
1337
+ "maximum": 9007199254740991
1338
+ },
1339
+ "running": {
1340
+ "type": "integer",
1341
+ "minimum": 0,
1342
+ "maximum": 9007199254740991
1343
+ },
1344
+ "succeeded": {
1345
+ "type": "integer",
1346
+ "minimum": 0,
1347
+ "maximum": 9007199254740991
1348
+ },
1349
+ "noOp": {
1350
+ "type": "integer",
1351
+ "minimum": 0,
1352
+ "maximum": 9007199254740991
1353
+ },
1354
+ "skipped": {
1355
+ "type": "integer",
1356
+ "minimum": 0,
1357
+ "maximum": 9007199254740991
1358
+ },
1359
+ "conflicted": {
1360
+ "type": "integer",
1361
+ "minimum": 0,
1362
+ "maximum": 9007199254740991
1363
+ },
1364
+ "failed": {
1365
+ "type": "integer",
1366
+ "minimum": 0,
1367
+ "maximum": 9007199254740991
1368
+ },
1369
+ "cancelled": {
1370
+ "type": "integer",
1371
+ "minimum": 0,
1372
+ "maximum": 9007199254740991
1373
+ }
1374
+ },
1375
+ "required": [
1376
+ "matched",
1377
+ "eligible",
1378
+ "ineligible",
1379
+ "pending",
1380
+ "running",
1381
+ "succeeded",
1382
+ "noOp",
1383
+ "skipped",
1384
+ "conflicted",
1385
+ "failed",
1386
+ "cancelled"
1387
+ ]
1388
+ },
1389
+ "reasons": {
1390
+ "type": "array",
1391
+ "items": {
1392
+ "type": "object",
1393
+ "properties": {
1394
+ "reason": {
1395
+ "type": "string",
1396
+ "enum": [
1397
+ "eligible",
1398
+ "already_active",
1399
+ "already_paused",
1400
+ "already_cancelled",
1401
+ "invalid_state",
1402
+ "unsupported_target",
1403
+ "expired_input",
1404
+ "unauthorized",
1405
+ "concurrently_changed",
1406
+ "past_time",
1407
+ "attempt_limit",
1408
+ "operation_failed",
1409
+ "transient_failure",
1410
+ "selection_too_large",
1411
+ "preparation_incomplete",
1412
+ "preview_expired",
1413
+ "job_expired",
1414
+ "job_cancelled",
1415
+ "quota_exceeded",
1416
+ "spending_limit",
1417
+ "in_flight"
1418
+ ]
1419
+ },
1420
+ "count": {
1421
+ "type": "integer",
1422
+ "minimum": 0,
1423
+ "maximum": 9007199254740991
1424
+ }
1425
+ },
1426
+ "required": ["reason", "count"]
1427
+ }
1428
+ },
1429
+ "warnings": {
1430
+ "type": "array",
1431
+ "items": {
1432
+ "type": "string"
1433
+ }
1434
+ },
1435
+ "samples": {
1436
+ "maxItems": 10,
1437
+ "type": "array",
1438
+ "items": {
1439
+ "type": "object",
1440
+ "properties": {
1441
+ "id": {
1442
+ "type": "string",
1443
+ "minLength": 1
1444
+ },
1445
+ "jobId": {
1446
+ "type": "string",
1447
+ "pattern": "^bjo_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
1448
+ },
1449
+ "scheduleId": {
1450
+ "type": "string",
1451
+ "pattern": "^sch_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
1452
+ },
1453
+ "occurrenceId": {
1454
+ "type": "string",
1455
+ "pattern": "^occ_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
1456
+ },
1457
+ "state": {
1458
+ "type": "string",
1459
+ "enum": [
1460
+ "pending",
1461
+ "running",
1462
+ "succeeded",
1463
+ "no_op",
1464
+ "skipped",
1465
+ "conflicted",
1466
+ "failed",
1467
+ "cancelled"
1468
+ ]
1469
+ },
1470
+ "reason": {
1471
+ "type": "string",
1472
+ "enum": [
1473
+ "eligible",
1474
+ "already_active",
1475
+ "already_paused",
1476
+ "already_cancelled",
1477
+ "invalid_state",
1478
+ "unsupported_target",
1479
+ "expired_input",
1480
+ "unauthorized",
1481
+ "concurrently_changed",
1482
+ "past_time",
1483
+ "attempt_limit",
1484
+ "operation_failed",
1485
+ "transient_failure",
1486
+ "selection_too_large",
1487
+ "preparation_incomplete",
1488
+ "preview_expired",
1489
+ "job_expired",
1490
+ "job_cancelled",
1491
+ "quota_exceeded",
1492
+ "spending_limit",
1493
+ "in_flight"
1494
+ ]
1495
+ },
1496
+ "eligible": {
1497
+ "type": "boolean"
1498
+ },
1499
+ "retryable": {
1500
+ "type": "boolean"
1501
+ },
1502
+ "fence": {
1503
+ "type": "string",
1504
+ "minLength": 1
1505
+ },
1506
+ "before": {
1507
+ "type": "object",
1508
+ "properties": {
1509
+ "status": {
1510
+ "type": "string"
1511
+ },
1512
+ "plannedFor": {
1513
+ "type": "string",
1514
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
1515
+ },
1516
+ "recurrence": {
1517
+ "type": "string"
1518
+ },
1519
+ "timeZone": {
1520
+ "type": "string"
1521
+ },
1522
+ "affectedFutureRuns": {
1523
+ "type": "integer",
1524
+ "minimum": 0,
1525
+ "maximum": 9007199254740991
1526
+ },
1527
+ "latenessPolicy": {
1528
+ "type": "string",
1529
+ "enum": ["skipAhead", "catchUp"]
1530
+ },
1531
+ "maxStalenessSeconds": {
1532
+ "type": "integer",
1533
+ "minimum": 0,
1534
+ "maximum": 9007199254740991
1535
+ },
1536
+ "overlapPolicy": {
1537
+ "type": "string",
1538
+ "enum": ["skip", "queue"]
1539
+ },
1540
+ "nextRunNote": {
1541
+ "type": "string",
1542
+ "minLength": 1,
1543
+ "maxLength": 1000
1544
+ }
1545
+ }
1546
+ },
1547
+ "after": {
1548
+ "type": "object",
1549
+ "properties": {
1550
+ "status": {
1551
+ "type": "string"
1552
+ },
1553
+ "plannedFor": {
1554
+ "type": "string",
1555
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
1556
+ },
1557
+ "recurrence": {
1558
+ "type": "string"
1559
+ },
1560
+ "timeZone": {
1561
+ "type": "string"
1562
+ },
1563
+ "affectedFutureRuns": {
1564
+ "type": "integer",
1565
+ "minimum": 0,
1566
+ "maximum": 9007199254740991
1567
+ },
1568
+ "latenessPolicy": {
1569
+ "type": "string",
1570
+ "enum": ["skipAhead", "catchUp"]
1571
+ },
1572
+ "maxStalenessSeconds": {
1573
+ "type": "integer",
1574
+ "minimum": 0,
1575
+ "maximum": 9007199254740991
1576
+ },
1577
+ "overlapPolicy": {
1578
+ "type": "string",
1579
+ "enum": ["skip", "queue"]
1580
+ },
1581
+ "nextRunNote": {
1582
+ "type": "string",
1583
+ "minLength": 1,
1584
+ "maxLength": 1000
1585
+ }
1586
+ }
1587
+ },
1588
+ "attemptId": {
1589
+ "type": "string",
1590
+ "pattern": "^att_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
1591
+ },
1592
+ "actionId": {
1593
+ "type": "string",
1594
+ "minLength": 1
1595
+ },
1596
+ "updatedAt": {
1597
+ "type": "string",
1598
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
1599
+ },
1600
+ "expiresAt": {
1601
+ "type": "string",
1602
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
1603
+ }
1604
+ },
1605
+ "required": [
1606
+ "id",
1607
+ "jobId",
1608
+ "scheduleId",
1609
+ "state",
1610
+ "reason",
1611
+ "eligible",
1612
+ "retryable",
1613
+ "fence",
1614
+ "before",
1615
+ "updatedAt"
1616
+ ]
1617
+ }
1618
+ },
1619
+ "limits": {
1620
+ "type": "object",
1621
+ "properties": {
1622
+ "maxTargets": {
1623
+ "type": "integer",
1624
+ "exclusiveMinimum": 0,
1625
+ "maximum": 9007199254740991
1626
+ },
1627
+ "executionLifetimeSeconds": {
1628
+ "type": "integer",
1629
+ "exclusiveMinimum": 0,
1630
+ "maximum": 9007199254740991
1631
+ },
1632
+ "previewLifetimeSeconds": {
1633
+ "type": "integer",
1634
+ "exclusiveMinimum": 0,
1635
+ "maximum": 9007199254740991
1636
+ },
1637
+ "resultRetentionSeconds": {
1638
+ "type": "integer",
1639
+ "minimum": 0,
1640
+ "maximum": 9007199254740991
1641
+ },
1642
+ "batchSize": {
1643
+ "type": "integer",
1644
+ "exclusiveMinimum": 0,
1645
+ "maximum": 9007199254740991
1646
+ },
1647
+ "workerConcurrency": {
1648
+ "type": "integer",
1649
+ "exclusiveMinimum": 0,
1650
+ "maximum": 9007199254740991
1651
+ }
1652
+ },
1653
+ "required": [
1654
+ "maxTargets",
1655
+ "executionLifetimeSeconds",
1656
+ "previewLifetimeSeconds",
1657
+ "resultRetentionSeconds",
1658
+ "batchSize",
1659
+ "workerConcurrency"
1660
+ ]
1661
+ },
1662
+ "billing": {
1663
+ "type": "object",
1664
+ "properties": {
1665
+ "additionalAttemptsMinimum": {
1666
+ "type": "integer",
1667
+ "minimum": 0,
1668
+ "maximum": 9007199254740991
1669
+ },
1670
+ "additionalAttemptsMaximum": {
1671
+ "type": "integer",
1672
+ "minimum": 0,
1673
+ "maximum": 9007199254740991
1674
+ },
1675
+ "currentLimits": {
1676
+ "type": "object",
1677
+ "properties": {
1678
+ "capturedAt": {
1679
+ "type": "string",
1680
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
1681
+ },
1682
+ "billingMode": {
1683
+ "type": "string",
1684
+ "enum": ["disabled", "shadow", "enforced"]
1685
+ },
1686
+ "attemptsPerOccurrence": {
1687
+ "type": "integer",
1688
+ "exclusiveMinimum": 0,
1689
+ "maximum": 9007199254740991
1690
+ },
1691
+ "dailyAttemptQuota": {
1692
+ "type": "string",
1693
+ "const": "none"
1694
+ },
1695
+ "availableCreditMicrodollars": {
1696
+ "type": "string",
1697
+ "pattern": "^(?:0|[1-9]\\d*)$"
1698
+ },
1699
+ "spendingCapMicrodollars": {
1700
+ "anyOf": [
1701
+ {
1702
+ "type": "string",
1703
+ "pattern": "^(?:0|[1-9]\\d*)$"
1704
+ },
1705
+ {
1706
+ "type": "null"
1707
+ }
1708
+ ]
1709
+ },
1710
+ "remainingToSpendingCapMicrodollars": {
1711
+ "type": "string",
1712
+ "pattern": "^(?:0|[1-9]\\d*)$"
1713
+ }
1714
+ },
1715
+ "required": [
1716
+ "capturedAt",
1717
+ "billingMode",
1718
+ "attemptsPerOccurrence",
1719
+ "dailyAttemptQuota"
1720
+ ]
1721
+ },
1722
+ "exactChargeKnown": {
1723
+ "type": "boolean",
1724
+ "const": false
1725
+ },
1726
+ "note": {
1727
+ "type": "string"
1728
+ }
1729
+ },
1730
+ "required": [
1731
+ "additionalAttemptsMinimum",
1732
+ "exactChargeKnown",
1733
+ "note"
1734
+ ]
1735
+ },
1736
+ "reason": {
1737
+ "type": "string",
1738
+ "enum": [
1739
+ "eligible",
1740
+ "already_active",
1741
+ "already_paused",
1742
+ "already_cancelled",
1743
+ "invalid_state",
1744
+ "unsupported_target",
1745
+ "expired_input",
1746
+ "unauthorized",
1747
+ "concurrently_changed",
1748
+ "past_time",
1749
+ "attempt_limit",
1750
+ "operation_failed",
1751
+ "transient_failure",
1752
+ "selection_too_large",
1753
+ "preparation_incomplete",
1754
+ "preview_expired",
1755
+ "job_expired",
1756
+ "job_cancelled",
1757
+ "quota_exceeded",
1758
+ "spending_limit",
1759
+ "in_flight"
1760
+ ]
1761
+ }
1762
+ },
1763
+ "required": [
1764
+ "id",
1765
+ "authority",
1766
+ "intent",
1767
+ "state",
1768
+ "version",
1769
+ "createdAt",
1770
+ "updatedAt",
1771
+ "referenceAt",
1772
+ "preparationExpiresAt",
1773
+ "complete",
1774
+ "counts",
1775
+ "reasons",
1776
+ "warnings",
1777
+ "samples",
1778
+ "limits",
1779
+ "billing"
1780
+ ]
1781
+ }
1782
+ },
1783
+ "nextCursor": {
1784
+ "type": "string",
1785
+ "minLength": 1
1786
+ }
1787
+ },
1788
+ "required": ["data"]
1789
+ }