@greatwait/contracts 0.2.2 → 0.3.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 (79) hide show
  1. package/dist/attempt-search.d.ts +235 -0
  2. package/dist/attempt-search.js +98 -0
  3. package/dist/billing.d.ts +4 -4
  4. package/dist/bulk-operations.d.ts +1832 -0
  5. package/dist/bulk-operations.js +610 -0
  6. package/dist/configuration-bounds.d.ts +12 -0
  7. package/dist/configuration-bounds.js +12 -0
  8. package/dist/configuration.d.ts +71 -0
  9. package/dist/configuration.js +204 -0
  10. package/dist/data-export.d.ts +3 -3
  11. package/dist/effective-limits.d.ts +4 -4
  12. package/dist/execution-selection.d.ts +48 -0
  13. package/dist/execution-selection.js +21 -0
  14. package/dist/http-request.d.ts +1 -1
  15. package/dist/identifiers.d.ts +2 -0
  16. package/dist/identifiers.js +2 -0
  17. package/dist/identity.d.ts +3 -3
  18. package/dist/index.d.ts +5 -0
  19. package/dist/index.js +5 -0
  20. package/dist/occurrence-states.d.ts +14 -0
  21. package/dist/occurrence-states.js +13 -0
  22. package/dist/operations.d.ts +573 -89
  23. package/dist/operations.js +67 -0
  24. package/dist/protocol.d.ts +19 -5
  25. package/dist/protocol.js +14 -7
  26. package/dist/schedule-selection.d.ts +28 -0
  27. package/dist/schedule-selection.js +48 -0
  28. package/dist/scheduling-records.d.ts +20 -20
  29. package/dist/scheduling.d.ts +64 -63
  30. package/dist/scheduling.js +10 -37
  31. package/dist/test-sink.d.ts +6 -6
  32. package/dist/usage.d.ts +3 -3
  33. package/generated/v1/examples/attempts.search.response.json +42 -0
  34. package/generated/v1/examples/bulk.cancel.request.json +3 -0
  35. package/generated/v1/examples/bulk.cancel.response.json +59 -0
  36. package/generated/v1/examples/bulk.confirm.request.json +5 -0
  37. package/generated/v1/examples/bulk.confirm.response.json +59 -0
  38. package/generated/v1/examples/bulk.items.response.json +3 -0
  39. package/generated/v1/examples/bulk.list.response.json +63 -0
  40. package/generated/v1/examples/bulk.pause.request.json +3 -0
  41. package/generated/v1/examples/bulk.pause.response.json +59 -0
  42. package/generated/v1/examples/bulk.preview.request.json +12 -0
  43. package/generated/v1/examples/bulk.preview.response.json +59 -0
  44. package/generated/v1/examples/bulk.read.response.json +59 -0
  45. package/generated/v1/examples/bulk.resume.request.json +3 -0
  46. package/generated/v1/examples/bulk.resume.response.json +59 -0
  47. package/generated/v1/manifest.json +243 -1
  48. package/generated/v1/openapi.json +21569 -2418
  49. package/generated/v1/policy-matrix.json +63 -0
  50. package/generated/v1/schemas/attempts.search.query.json +96 -0
  51. package/generated/v1/schemas/attempts.search.response.json +271 -0
  52. package/generated/v1/schemas/bulk.cancel.request.json +13 -0
  53. package/generated/v1/schemas/bulk.cancel.response.json +1717 -0
  54. package/generated/v1/schemas/bulk.confirm.request-headers.json +13 -0
  55. package/generated/v1/schemas/bulk.confirm.request.json +19 -0
  56. package/generated/v1/schemas/bulk.confirm.response.json +1717 -0
  57. package/generated/v1/schemas/bulk.items.query.json +29 -0
  58. package/generated/v1/schemas/bulk.items.response.json +194 -0
  59. package/generated/v1/schemas/bulk.list.query.json +32 -0
  60. package/generated/v1/schemas/bulk.list.response.json +1789 -0
  61. package/generated/v1/schemas/bulk.pause.request.json +13 -0
  62. package/generated/v1/schemas/bulk.pause.response.json +1717 -0
  63. package/generated/v1/schemas/bulk.preview.request.json +1218 -0
  64. package/generated/v1/schemas/bulk.preview.response.json +1717 -0
  65. package/generated/v1/schemas/bulk.read.response.json +1717 -0
  66. package/generated/v1/schemas/bulk.resume.request.json +13 -0
  67. package/generated/v1/schemas/bulk.resume.response.json +1717 -0
  68. package/generated/v1/schemas/executions.list.query.json +33 -12
  69. package/generated/v1/schemas/schedules.list.query.json +32 -3
  70. package/generated/v1/snippets/attempts.search.json +6 -0
  71. package/generated/v1/snippets/bulk.cancel.json +6 -0
  72. package/generated/v1/snippets/bulk.confirm.json +6 -0
  73. package/generated/v1/snippets/bulk.items.json +6 -0
  74. package/generated/v1/snippets/bulk.list.json +6 -0
  75. package/generated/v1/snippets/bulk.pause.json +6 -0
  76. package/generated/v1/snippets/bulk.preview.json +6 -0
  77. package/generated/v1/snippets/bulk.read.json +6 -0
  78. package/generated/v1/snippets/bulk.resume.json +6 -0
  79. package/package.json +1 -1
@@ -0,0 +1,1218 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "oneOf": [
4
+ {
5
+ "type": "object",
6
+ "properties": {
7
+ "target": {
8
+ "type": "string",
9
+ "enum": ["schedules", "parent_schedules", "occurrences"]
10
+ },
11
+ "selection": {
12
+ "anyOf": [
13
+ {
14
+ "type": "object",
15
+ "properties": {
16
+ "kind": {
17
+ "type": "string",
18
+ "const": "ids"
19
+ },
20
+ "resource": {
21
+ "type": "string",
22
+ "const": "schedules"
23
+ },
24
+ "ids": {
25
+ "maxItems": 1000000,
26
+ "type": "array",
27
+ "items": {
28
+ "type": "string",
29
+ "pattern": "^sch_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
30
+ }
31
+ }
32
+ },
33
+ "required": ["kind", "resource", "ids"],
34
+ "additionalProperties": false
35
+ },
36
+ {
37
+ "type": "object",
38
+ "properties": {
39
+ "kind": {
40
+ "type": "string",
41
+ "const": "ids"
42
+ },
43
+ "resource": {
44
+ "type": "string",
45
+ "const": "executions"
46
+ },
47
+ "ids": {
48
+ "maxItems": 1000000,
49
+ "type": "array",
50
+ "items": {
51
+ "type": "string",
52
+ "pattern": "^occ_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
53
+ }
54
+ }
55
+ },
56
+ "required": ["kind", "resource", "ids"],
57
+ "additionalProperties": false
58
+ },
59
+ {
60
+ "type": "object",
61
+ "properties": {
62
+ "kind": {
63
+ "type": "string",
64
+ "const": "all_matching"
65
+ },
66
+ "resource": {
67
+ "type": "string",
68
+ "const": "schedules"
69
+ },
70
+ "filter": {
71
+ "type": "object",
72
+ "properties": {
73
+ "external_identifier": {
74
+ "type": "string",
75
+ "minLength": 1,
76
+ "maxLength": 256,
77
+ "description": "Host application identifier, matched exactly and case-sensitively; at most 256 UTF-8 bytes. Readable by schedule readers; do not include secrets."
78
+ },
79
+ "tag": {
80
+ "type": "string",
81
+ "minLength": 1,
82
+ "maxLength": 64,
83
+ "description": "An exact, case-sensitive tag of at most 64 UTF-8 bytes."
84
+ },
85
+ "status": {
86
+ "type": "string",
87
+ "enum": ["active", "paused", "cancelled", "completed"]
88
+ },
89
+ "recurrence": {
90
+ "type": "string",
91
+ "enum": ["at", "every", "cron"]
92
+ },
93
+ "endpoint": {
94
+ "anyOf": [
95
+ {
96
+ "type": "string",
97
+ "pattern": "^ep_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
98
+ },
99
+ {
100
+ "type": "string",
101
+ "const": "none"
102
+ }
103
+ ]
104
+ },
105
+ "text": {
106
+ "description": "Case-insensitive literal substring of schedule name, endpoint address or schedule identifier.",
107
+ "type": "string",
108
+ "maxLength": 256
109
+ },
110
+ "schedule": {
111
+ "type": "string",
112
+ "pattern": "^sch_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
113
+ },
114
+ "dueAfter": {
115
+ "type": "string",
116
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
117
+ },
118
+ "dueBefore": {
119
+ "type": "string",
120
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
121
+ }
122
+ },
123
+ "additionalProperties": false
124
+ }
125
+ },
126
+ "required": ["kind", "resource", "filter"],
127
+ "additionalProperties": false
128
+ },
129
+ {
130
+ "type": "object",
131
+ "properties": {
132
+ "kind": {
133
+ "type": "string",
134
+ "const": "all_matching"
135
+ },
136
+ "resource": {
137
+ "type": "string",
138
+ "const": "executions"
139
+ },
140
+ "filter": {
141
+ "type": "object",
142
+ "properties": {
143
+ "external_identifier": {
144
+ "type": "string",
145
+ "minLength": 1,
146
+ "maxLength": 256,
147
+ "description": "Host application identifier, matched exactly and case-sensitively; at most 256 UTF-8 bytes. Readable by schedule readers; do not include secrets."
148
+ },
149
+ "tag": {
150
+ "type": "string",
151
+ "minLength": 1,
152
+ "maxLength": 64,
153
+ "description": "An exact, case-sensitive tag of at most 64 UTF-8 bytes."
154
+ },
155
+ "status": {
156
+ "type": "string",
157
+ "enum": ["active", "paused", "cancelled", "completed"]
158
+ },
159
+ "recurrence": {
160
+ "type": "string",
161
+ "enum": ["at", "every", "cron"]
162
+ },
163
+ "endpoint": {
164
+ "anyOf": [
165
+ {
166
+ "type": "string",
167
+ "pattern": "^ep_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
168
+ },
169
+ {
170
+ "type": "string",
171
+ "const": "none"
172
+ }
173
+ ]
174
+ },
175
+ "text": {
176
+ "description": "Case-insensitive literal substring of schedule name, endpoint address or schedule identifier.",
177
+ "type": "string",
178
+ "maxLength": 256
179
+ },
180
+ "schedule": {
181
+ "type": "string",
182
+ "pattern": "^sch_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
183
+ },
184
+ "from": {
185
+ "type": "string",
186
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
187
+ },
188
+ "to": {
189
+ "type": "string",
190
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
191
+ },
192
+ "outcome": {
193
+ "type": "string",
194
+ "enum": [
195
+ "planned",
196
+ "due",
197
+ "dispatching",
198
+ "retry_wait",
199
+ "ambiguous",
200
+ "succeeded",
201
+ "terminal_failed",
202
+ "cancelled",
203
+ "skipped_stale"
204
+ ]
205
+ }
206
+ },
207
+ "additionalProperties": false
208
+ }
209
+ },
210
+ "required": ["kind", "resource", "filter"],
211
+ "additionalProperties": false
212
+ }
213
+ ]
214
+ },
215
+ "operation": {
216
+ "type": "string",
217
+ "const": "retry"
218
+ },
219
+ "parameters": {
220
+ "type": "object",
221
+ "properties": {
222
+ "includeSucceeded": {
223
+ "type": "boolean"
224
+ }
225
+ },
226
+ "additionalProperties": false
227
+ }
228
+ },
229
+ "required": ["target", "selection", "operation", "parameters"],
230
+ "additionalProperties": false
231
+ },
232
+ {
233
+ "type": "object",
234
+ "properties": {
235
+ "target": {
236
+ "type": "string",
237
+ "enum": ["schedules", "parent_schedules", "occurrences"]
238
+ },
239
+ "selection": {
240
+ "anyOf": [
241
+ {
242
+ "type": "object",
243
+ "properties": {
244
+ "kind": {
245
+ "type": "string",
246
+ "const": "ids"
247
+ },
248
+ "resource": {
249
+ "type": "string",
250
+ "const": "schedules"
251
+ },
252
+ "ids": {
253
+ "maxItems": 1000000,
254
+ "type": "array",
255
+ "items": {
256
+ "type": "string",
257
+ "pattern": "^sch_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
258
+ }
259
+ }
260
+ },
261
+ "required": ["kind", "resource", "ids"],
262
+ "additionalProperties": false
263
+ },
264
+ {
265
+ "type": "object",
266
+ "properties": {
267
+ "kind": {
268
+ "type": "string",
269
+ "const": "ids"
270
+ },
271
+ "resource": {
272
+ "type": "string",
273
+ "const": "executions"
274
+ },
275
+ "ids": {
276
+ "maxItems": 1000000,
277
+ "type": "array",
278
+ "items": {
279
+ "type": "string",
280
+ "pattern": "^occ_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
281
+ }
282
+ }
283
+ },
284
+ "required": ["kind", "resource", "ids"],
285
+ "additionalProperties": false
286
+ },
287
+ {
288
+ "type": "object",
289
+ "properties": {
290
+ "kind": {
291
+ "type": "string",
292
+ "const": "all_matching"
293
+ },
294
+ "resource": {
295
+ "type": "string",
296
+ "const": "schedules"
297
+ },
298
+ "filter": {
299
+ "type": "object",
300
+ "properties": {
301
+ "external_identifier": {
302
+ "type": "string",
303
+ "minLength": 1,
304
+ "maxLength": 256,
305
+ "description": "Host application identifier, matched exactly and case-sensitively; at most 256 UTF-8 bytes. Readable by schedule readers; do not include secrets."
306
+ },
307
+ "tag": {
308
+ "type": "string",
309
+ "minLength": 1,
310
+ "maxLength": 64,
311
+ "description": "An exact, case-sensitive tag of at most 64 UTF-8 bytes."
312
+ },
313
+ "status": {
314
+ "type": "string",
315
+ "enum": ["active", "paused", "cancelled", "completed"]
316
+ },
317
+ "recurrence": {
318
+ "type": "string",
319
+ "enum": ["at", "every", "cron"]
320
+ },
321
+ "endpoint": {
322
+ "anyOf": [
323
+ {
324
+ "type": "string",
325
+ "pattern": "^ep_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
326
+ },
327
+ {
328
+ "type": "string",
329
+ "const": "none"
330
+ }
331
+ ]
332
+ },
333
+ "text": {
334
+ "description": "Case-insensitive literal substring of schedule name, endpoint address or schedule identifier.",
335
+ "type": "string",
336
+ "maxLength": 256
337
+ },
338
+ "schedule": {
339
+ "type": "string",
340
+ "pattern": "^sch_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
341
+ },
342
+ "dueAfter": {
343
+ "type": "string",
344
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
345
+ },
346
+ "dueBefore": {
347
+ "type": "string",
348
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
349
+ }
350
+ },
351
+ "additionalProperties": false
352
+ }
353
+ },
354
+ "required": ["kind", "resource", "filter"],
355
+ "additionalProperties": false
356
+ },
357
+ {
358
+ "type": "object",
359
+ "properties": {
360
+ "kind": {
361
+ "type": "string",
362
+ "const": "all_matching"
363
+ },
364
+ "resource": {
365
+ "type": "string",
366
+ "const": "executions"
367
+ },
368
+ "filter": {
369
+ "type": "object",
370
+ "properties": {
371
+ "external_identifier": {
372
+ "type": "string",
373
+ "minLength": 1,
374
+ "maxLength": 256,
375
+ "description": "Host application identifier, matched exactly and case-sensitively; at most 256 UTF-8 bytes. Readable by schedule readers; do not include secrets."
376
+ },
377
+ "tag": {
378
+ "type": "string",
379
+ "minLength": 1,
380
+ "maxLength": 64,
381
+ "description": "An exact, case-sensitive tag of at most 64 UTF-8 bytes."
382
+ },
383
+ "status": {
384
+ "type": "string",
385
+ "enum": ["active", "paused", "cancelled", "completed"]
386
+ },
387
+ "recurrence": {
388
+ "type": "string",
389
+ "enum": ["at", "every", "cron"]
390
+ },
391
+ "endpoint": {
392
+ "anyOf": [
393
+ {
394
+ "type": "string",
395
+ "pattern": "^ep_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
396
+ },
397
+ {
398
+ "type": "string",
399
+ "const": "none"
400
+ }
401
+ ]
402
+ },
403
+ "text": {
404
+ "description": "Case-insensitive literal substring of schedule name, endpoint address or schedule identifier.",
405
+ "type": "string",
406
+ "maxLength": 256
407
+ },
408
+ "schedule": {
409
+ "type": "string",
410
+ "pattern": "^sch_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
411
+ },
412
+ "from": {
413
+ "type": "string",
414
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
415
+ },
416
+ "to": {
417
+ "type": "string",
418
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
419
+ },
420
+ "outcome": {
421
+ "type": "string",
422
+ "enum": [
423
+ "planned",
424
+ "due",
425
+ "dispatching",
426
+ "retry_wait",
427
+ "ambiguous",
428
+ "succeeded",
429
+ "terminal_failed",
430
+ "cancelled",
431
+ "skipped_stale"
432
+ ]
433
+ }
434
+ },
435
+ "additionalProperties": false
436
+ }
437
+ },
438
+ "required": ["kind", "resource", "filter"],
439
+ "additionalProperties": false
440
+ }
441
+ ]
442
+ },
443
+ "operation": {
444
+ "type": "string",
445
+ "const": "reschedule"
446
+ },
447
+ "parameters": {
448
+ "oneOf": [
449
+ {
450
+ "type": "object",
451
+ "properties": {
452
+ "mode": {
453
+ "type": "string",
454
+ "const": "absolute"
455
+ },
456
+ "at": {
457
+ "type": "string",
458
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
459
+ }
460
+ },
461
+ "required": ["mode", "at"],
462
+ "additionalProperties": false
463
+ },
464
+ {
465
+ "type": "object",
466
+ "properties": {
467
+ "mode": {
468
+ "type": "string",
469
+ "const": "shift_existing"
470
+ },
471
+ "seconds": {
472
+ "type": "integer",
473
+ "minimum": -31536000,
474
+ "maximum": 31536000
475
+ }
476
+ },
477
+ "required": ["mode", "seconds"],
478
+ "additionalProperties": false
479
+ },
480
+ {
481
+ "type": "object",
482
+ "properties": {
483
+ "mode": {
484
+ "type": "string",
485
+ "const": "delay_from_reference"
486
+ },
487
+ "seconds": {
488
+ "type": "integer",
489
+ "minimum": 1,
490
+ "maximum": 31536000
491
+ }
492
+ },
493
+ "required": ["mode", "seconds"],
494
+ "additionalProperties": false
495
+ },
496
+ {
497
+ "type": "object",
498
+ "properties": {
499
+ "mode": {
500
+ "type": "string",
501
+ "const": "definition"
502
+ },
503
+ "definition": {
504
+ "anyOf": [
505
+ {
506
+ "type": "object",
507
+ "properties": {
508
+ "everySeconds": {
509
+ "type": "integer",
510
+ "minimum": 60,
511
+ "maximum": 31536000
512
+ }
513
+ },
514
+ "required": ["everySeconds"],
515
+ "additionalProperties": false
516
+ },
517
+ {
518
+ "type": "object",
519
+ "properties": {
520
+ "cron": {
521
+ "type": "string",
522
+ "minLength": 1,
523
+ "maxLength": 256
524
+ },
525
+ "timeZone": {
526
+ "type": "string",
527
+ "minLength": 1
528
+ }
529
+ },
530
+ "required": ["cron", "timeZone"],
531
+ "additionalProperties": false
532
+ }
533
+ ]
534
+ }
535
+ },
536
+ "required": ["mode", "definition"],
537
+ "additionalProperties": false
538
+ }
539
+ ]
540
+ }
541
+ },
542
+ "required": ["target", "selection", "operation", "parameters"],
543
+ "additionalProperties": false
544
+ },
545
+ {
546
+ "type": "object",
547
+ "properties": {
548
+ "target": {
549
+ "type": "string",
550
+ "enum": ["schedules", "parent_schedules", "occurrences"]
551
+ },
552
+ "selection": {
553
+ "anyOf": [
554
+ {
555
+ "type": "object",
556
+ "properties": {
557
+ "kind": {
558
+ "type": "string",
559
+ "const": "ids"
560
+ },
561
+ "resource": {
562
+ "type": "string",
563
+ "const": "schedules"
564
+ },
565
+ "ids": {
566
+ "maxItems": 1000000,
567
+ "type": "array",
568
+ "items": {
569
+ "type": "string",
570
+ "pattern": "^sch_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
571
+ }
572
+ }
573
+ },
574
+ "required": ["kind", "resource", "ids"],
575
+ "additionalProperties": false
576
+ },
577
+ {
578
+ "type": "object",
579
+ "properties": {
580
+ "kind": {
581
+ "type": "string",
582
+ "const": "ids"
583
+ },
584
+ "resource": {
585
+ "type": "string",
586
+ "const": "executions"
587
+ },
588
+ "ids": {
589
+ "maxItems": 1000000,
590
+ "type": "array",
591
+ "items": {
592
+ "type": "string",
593
+ "pattern": "^occ_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
594
+ }
595
+ }
596
+ },
597
+ "required": ["kind", "resource", "ids"],
598
+ "additionalProperties": false
599
+ },
600
+ {
601
+ "type": "object",
602
+ "properties": {
603
+ "kind": {
604
+ "type": "string",
605
+ "const": "all_matching"
606
+ },
607
+ "resource": {
608
+ "type": "string",
609
+ "const": "schedules"
610
+ },
611
+ "filter": {
612
+ "type": "object",
613
+ "properties": {
614
+ "external_identifier": {
615
+ "type": "string",
616
+ "minLength": 1,
617
+ "maxLength": 256,
618
+ "description": "Host application identifier, matched exactly and case-sensitively; at most 256 UTF-8 bytes. Readable by schedule readers; do not include secrets."
619
+ },
620
+ "tag": {
621
+ "type": "string",
622
+ "minLength": 1,
623
+ "maxLength": 64,
624
+ "description": "An exact, case-sensitive tag of at most 64 UTF-8 bytes."
625
+ },
626
+ "status": {
627
+ "type": "string",
628
+ "enum": ["active", "paused", "cancelled", "completed"]
629
+ },
630
+ "recurrence": {
631
+ "type": "string",
632
+ "enum": ["at", "every", "cron"]
633
+ },
634
+ "endpoint": {
635
+ "anyOf": [
636
+ {
637
+ "type": "string",
638
+ "pattern": "^ep_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
639
+ },
640
+ {
641
+ "type": "string",
642
+ "const": "none"
643
+ }
644
+ ]
645
+ },
646
+ "text": {
647
+ "description": "Case-insensitive literal substring of schedule name, endpoint address or schedule identifier.",
648
+ "type": "string",
649
+ "maxLength": 256
650
+ },
651
+ "schedule": {
652
+ "type": "string",
653
+ "pattern": "^sch_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
654
+ },
655
+ "dueAfter": {
656
+ "type": "string",
657
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
658
+ },
659
+ "dueBefore": {
660
+ "type": "string",
661
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
662
+ }
663
+ },
664
+ "additionalProperties": false
665
+ }
666
+ },
667
+ "required": ["kind", "resource", "filter"],
668
+ "additionalProperties": false
669
+ },
670
+ {
671
+ "type": "object",
672
+ "properties": {
673
+ "kind": {
674
+ "type": "string",
675
+ "const": "all_matching"
676
+ },
677
+ "resource": {
678
+ "type": "string",
679
+ "const": "executions"
680
+ },
681
+ "filter": {
682
+ "type": "object",
683
+ "properties": {
684
+ "external_identifier": {
685
+ "type": "string",
686
+ "minLength": 1,
687
+ "maxLength": 256,
688
+ "description": "Host application identifier, matched exactly and case-sensitively; at most 256 UTF-8 bytes. Readable by schedule readers; do not include secrets."
689
+ },
690
+ "tag": {
691
+ "type": "string",
692
+ "minLength": 1,
693
+ "maxLength": 64,
694
+ "description": "An exact, case-sensitive tag of at most 64 UTF-8 bytes."
695
+ },
696
+ "status": {
697
+ "type": "string",
698
+ "enum": ["active", "paused", "cancelled", "completed"]
699
+ },
700
+ "recurrence": {
701
+ "type": "string",
702
+ "enum": ["at", "every", "cron"]
703
+ },
704
+ "endpoint": {
705
+ "anyOf": [
706
+ {
707
+ "type": "string",
708
+ "pattern": "^ep_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
709
+ },
710
+ {
711
+ "type": "string",
712
+ "const": "none"
713
+ }
714
+ ]
715
+ },
716
+ "text": {
717
+ "description": "Case-insensitive literal substring of schedule name, endpoint address or schedule identifier.",
718
+ "type": "string",
719
+ "maxLength": 256
720
+ },
721
+ "schedule": {
722
+ "type": "string",
723
+ "pattern": "^sch_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
724
+ },
725
+ "from": {
726
+ "type": "string",
727
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
728
+ },
729
+ "to": {
730
+ "type": "string",
731
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
732
+ },
733
+ "outcome": {
734
+ "type": "string",
735
+ "enum": [
736
+ "planned",
737
+ "due",
738
+ "dispatching",
739
+ "retry_wait",
740
+ "ambiguous",
741
+ "succeeded",
742
+ "terminal_failed",
743
+ "cancelled",
744
+ "skipped_stale"
745
+ ]
746
+ }
747
+ },
748
+ "additionalProperties": false
749
+ }
750
+ },
751
+ "required": ["kind", "resource", "filter"],
752
+ "additionalProperties": false
753
+ }
754
+ ]
755
+ },
756
+ "operation": {
757
+ "type": "string",
758
+ "const": "cancel"
759
+ },
760
+ "parameters": {
761
+ "type": "object",
762
+ "properties": {},
763
+ "additionalProperties": false
764
+ }
765
+ },
766
+ "required": ["target", "selection", "operation", "parameters"],
767
+ "additionalProperties": false
768
+ },
769
+ {
770
+ "type": "object",
771
+ "properties": {
772
+ "target": {
773
+ "type": "string",
774
+ "enum": ["schedules", "parent_schedules", "occurrences"]
775
+ },
776
+ "selection": {
777
+ "anyOf": [
778
+ {
779
+ "type": "object",
780
+ "properties": {
781
+ "kind": {
782
+ "type": "string",
783
+ "const": "ids"
784
+ },
785
+ "resource": {
786
+ "type": "string",
787
+ "const": "schedules"
788
+ },
789
+ "ids": {
790
+ "maxItems": 1000000,
791
+ "type": "array",
792
+ "items": {
793
+ "type": "string",
794
+ "pattern": "^sch_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
795
+ }
796
+ }
797
+ },
798
+ "required": ["kind", "resource", "ids"],
799
+ "additionalProperties": false
800
+ },
801
+ {
802
+ "type": "object",
803
+ "properties": {
804
+ "kind": {
805
+ "type": "string",
806
+ "const": "ids"
807
+ },
808
+ "resource": {
809
+ "type": "string",
810
+ "const": "executions"
811
+ },
812
+ "ids": {
813
+ "maxItems": 1000000,
814
+ "type": "array",
815
+ "items": {
816
+ "type": "string",
817
+ "pattern": "^occ_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
818
+ }
819
+ }
820
+ },
821
+ "required": ["kind", "resource", "ids"],
822
+ "additionalProperties": false
823
+ },
824
+ {
825
+ "type": "object",
826
+ "properties": {
827
+ "kind": {
828
+ "type": "string",
829
+ "const": "all_matching"
830
+ },
831
+ "resource": {
832
+ "type": "string",
833
+ "const": "schedules"
834
+ },
835
+ "filter": {
836
+ "type": "object",
837
+ "properties": {
838
+ "external_identifier": {
839
+ "type": "string",
840
+ "minLength": 1,
841
+ "maxLength": 256,
842
+ "description": "Host application identifier, matched exactly and case-sensitively; at most 256 UTF-8 bytes. Readable by schedule readers; do not include secrets."
843
+ },
844
+ "tag": {
845
+ "type": "string",
846
+ "minLength": 1,
847
+ "maxLength": 64,
848
+ "description": "An exact, case-sensitive tag of at most 64 UTF-8 bytes."
849
+ },
850
+ "status": {
851
+ "type": "string",
852
+ "enum": ["active", "paused", "cancelled", "completed"]
853
+ },
854
+ "recurrence": {
855
+ "type": "string",
856
+ "enum": ["at", "every", "cron"]
857
+ },
858
+ "endpoint": {
859
+ "anyOf": [
860
+ {
861
+ "type": "string",
862
+ "pattern": "^ep_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
863
+ },
864
+ {
865
+ "type": "string",
866
+ "const": "none"
867
+ }
868
+ ]
869
+ },
870
+ "text": {
871
+ "description": "Case-insensitive literal substring of schedule name, endpoint address or schedule identifier.",
872
+ "type": "string",
873
+ "maxLength": 256
874
+ },
875
+ "schedule": {
876
+ "type": "string",
877
+ "pattern": "^sch_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
878
+ },
879
+ "dueAfter": {
880
+ "type": "string",
881
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
882
+ },
883
+ "dueBefore": {
884
+ "type": "string",
885
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
886
+ }
887
+ },
888
+ "additionalProperties": false
889
+ }
890
+ },
891
+ "required": ["kind", "resource", "filter"],
892
+ "additionalProperties": false
893
+ },
894
+ {
895
+ "type": "object",
896
+ "properties": {
897
+ "kind": {
898
+ "type": "string",
899
+ "const": "all_matching"
900
+ },
901
+ "resource": {
902
+ "type": "string",
903
+ "const": "executions"
904
+ },
905
+ "filter": {
906
+ "type": "object",
907
+ "properties": {
908
+ "external_identifier": {
909
+ "type": "string",
910
+ "minLength": 1,
911
+ "maxLength": 256,
912
+ "description": "Host application identifier, matched exactly and case-sensitively; at most 256 UTF-8 bytes. Readable by schedule readers; do not include secrets."
913
+ },
914
+ "tag": {
915
+ "type": "string",
916
+ "minLength": 1,
917
+ "maxLength": 64,
918
+ "description": "An exact, case-sensitive tag of at most 64 UTF-8 bytes."
919
+ },
920
+ "status": {
921
+ "type": "string",
922
+ "enum": ["active", "paused", "cancelled", "completed"]
923
+ },
924
+ "recurrence": {
925
+ "type": "string",
926
+ "enum": ["at", "every", "cron"]
927
+ },
928
+ "endpoint": {
929
+ "anyOf": [
930
+ {
931
+ "type": "string",
932
+ "pattern": "^ep_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
933
+ },
934
+ {
935
+ "type": "string",
936
+ "const": "none"
937
+ }
938
+ ]
939
+ },
940
+ "text": {
941
+ "description": "Case-insensitive literal substring of schedule name, endpoint address or schedule identifier.",
942
+ "type": "string",
943
+ "maxLength": 256
944
+ },
945
+ "schedule": {
946
+ "type": "string",
947
+ "pattern": "^sch_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
948
+ },
949
+ "from": {
950
+ "type": "string",
951
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
952
+ },
953
+ "to": {
954
+ "type": "string",
955
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
956
+ },
957
+ "outcome": {
958
+ "type": "string",
959
+ "enum": [
960
+ "planned",
961
+ "due",
962
+ "dispatching",
963
+ "retry_wait",
964
+ "ambiguous",
965
+ "succeeded",
966
+ "terminal_failed",
967
+ "cancelled",
968
+ "skipped_stale"
969
+ ]
970
+ }
971
+ },
972
+ "additionalProperties": false
973
+ }
974
+ },
975
+ "required": ["kind", "resource", "filter"],
976
+ "additionalProperties": false
977
+ }
978
+ ]
979
+ },
980
+ "operation": {
981
+ "type": "string",
982
+ "const": "pause"
983
+ },
984
+ "parameters": {
985
+ "type": "object",
986
+ "properties": {},
987
+ "additionalProperties": false
988
+ }
989
+ },
990
+ "required": ["target", "selection", "operation", "parameters"],
991
+ "additionalProperties": false
992
+ },
993
+ {
994
+ "type": "object",
995
+ "properties": {
996
+ "target": {
997
+ "type": "string",
998
+ "enum": ["schedules", "parent_schedules", "occurrences"]
999
+ },
1000
+ "selection": {
1001
+ "anyOf": [
1002
+ {
1003
+ "type": "object",
1004
+ "properties": {
1005
+ "kind": {
1006
+ "type": "string",
1007
+ "const": "ids"
1008
+ },
1009
+ "resource": {
1010
+ "type": "string",
1011
+ "const": "schedules"
1012
+ },
1013
+ "ids": {
1014
+ "maxItems": 1000000,
1015
+ "type": "array",
1016
+ "items": {
1017
+ "type": "string",
1018
+ "pattern": "^sch_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
1019
+ }
1020
+ }
1021
+ },
1022
+ "required": ["kind", "resource", "ids"],
1023
+ "additionalProperties": false
1024
+ },
1025
+ {
1026
+ "type": "object",
1027
+ "properties": {
1028
+ "kind": {
1029
+ "type": "string",
1030
+ "const": "ids"
1031
+ },
1032
+ "resource": {
1033
+ "type": "string",
1034
+ "const": "executions"
1035
+ },
1036
+ "ids": {
1037
+ "maxItems": 1000000,
1038
+ "type": "array",
1039
+ "items": {
1040
+ "type": "string",
1041
+ "pattern": "^occ_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
1042
+ }
1043
+ }
1044
+ },
1045
+ "required": ["kind", "resource", "ids"],
1046
+ "additionalProperties": false
1047
+ },
1048
+ {
1049
+ "type": "object",
1050
+ "properties": {
1051
+ "kind": {
1052
+ "type": "string",
1053
+ "const": "all_matching"
1054
+ },
1055
+ "resource": {
1056
+ "type": "string",
1057
+ "const": "schedules"
1058
+ },
1059
+ "filter": {
1060
+ "type": "object",
1061
+ "properties": {
1062
+ "external_identifier": {
1063
+ "type": "string",
1064
+ "minLength": 1,
1065
+ "maxLength": 256,
1066
+ "description": "Host application identifier, matched exactly and case-sensitively; at most 256 UTF-8 bytes. Readable by schedule readers; do not include secrets."
1067
+ },
1068
+ "tag": {
1069
+ "type": "string",
1070
+ "minLength": 1,
1071
+ "maxLength": 64,
1072
+ "description": "An exact, case-sensitive tag of at most 64 UTF-8 bytes."
1073
+ },
1074
+ "status": {
1075
+ "type": "string",
1076
+ "enum": ["active", "paused", "cancelled", "completed"]
1077
+ },
1078
+ "recurrence": {
1079
+ "type": "string",
1080
+ "enum": ["at", "every", "cron"]
1081
+ },
1082
+ "endpoint": {
1083
+ "anyOf": [
1084
+ {
1085
+ "type": "string",
1086
+ "pattern": "^ep_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
1087
+ },
1088
+ {
1089
+ "type": "string",
1090
+ "const": "none"
1091
+ }
1092
+ ]
1093
+ },
1094
+ "text": {
1095
+ "description": "Case-insensitive literal substring of schedule name, endpoint address or schedule identifier.",
1096
+ "type": "string",
1097
+ "maxLength": 256
1098
+ },
1099
+ "schedule": {
1100
+ "type": "string",
1101
+ "pattern": "^sch_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
1102
+ },
1103
+ "dueAfter": {
1104
+ "type": "string",
1105
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
1106
+ },
1107
+ "dueBefore": {
1108
+ "type": "string",
1109
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
1110
+ }
1111
+ },
1112
+ "additionalProperties": false
1113
+ }
1114
+ },
1115
+ "required": ["kind", "resource", "filter"],
1116
+ "additionalProperties": false
1117
+ },
1118
+ {
1119
+ "type": "object",
1120
+ "properties": {
1121
+ "kind": {
1122
+ "type": "string",
1123
+ "const": "all_matching"
1124
+ },
1125
+ "resource": {
1126
+ "type": "string",
1127
+ "const": "executions"
1128
+ },
1129
+ "filter": {
1130
+ "type": "object",
1131
+ "properties": {
1132
+ "external_identifier": {
1133
+ "type": "string",
1134
+ "minLength": 1,
1135
+ "maxLength": 256,
1136
+ "description": "Host application identifier, matched exactly and case-sensitively; at most 256 UTF-8 bytes. Readable by schedule readers; do not include secrets."
1137
+ },
1138
+ "tag": {
1139
+ "type": "string",
1140
+ "minLength": 1,
1141
+ "maxLength": 64,
1142
+ "description": "An exact, case-sensitive tag of at most 64 UTF-8 bytes."
1143
+ },
1144
+ "status": {
1145
+ "type": "string",
1146
+ "enum": ["active", "paused", "cancelled", "completed"]
1147
+ },
1148
+ "recurrence": {
1149
+ "type": "string",
1150
+ "enum": ["at", "every", "cron"]
1151
+ },
1152
+ "endpoint": {
1153
+ "anyOf": [
1154
+ {
1155
+ "type": "string",
1156
+ "pattern": "^ep_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
1157
+ },
1158
+ {
1159
+ "type": "string",
1160
+ "const": "none"
1161
+ }
1162
+ ]
1163
+ },
1164
+ "text": {
1165
+ "description": "Case-insensitive literal substring of schedule name, endpoint address or schedule identifier.",
1166
+ "type": "string",
1167
+ "maxLength": 256
1168
+ },
1169
+ "schedule": {
1170
+ "type": "string",
1171
+ "pattern": "^sch_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
1172
+ },
1173
+ "from": {
1174
+ "type": "string",
1175
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
1176
+ },
1177
+ "to": {
1178
+ "type": "string",
1179
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
1180
+ },
1181
+ "outcome": {
1182
+ "type": "string",
1183
+ "enum": [
1184
+ "planned",
1185
+ "due",
1186
+ "dispatching",
1187
+ "retry_wait",
1188
+ "ambiguous",
1189
+ "succeeded",
1190
+ "terminal_failed",
1191
+ "cancelled",
1192
+ "skipped_stale"
1193
+ ]
1194
+ }
1195
+ },
1196
+ "additionalProperties": false
1197
+ }
1198
+ },
1199
+ "required": ["kind", "resource", "filter"],
1200
+ "additionalProperties": false
1201
+ }
1202
+ ]
1203
+ },
1204
+ "operation": {
1205
+ "type": "string",
1206
+ "const": "resume"
1207
+ },
1208
+ "parameters": {
1209
+ "type": "object",
1210
+ "properties": {},
1211
+ "additionalProperties": false
1212
+ }
1213
+ },
1214
+ "required": ["target", "selection", "operation", "parameters"],
1215
+ "additionalProperties": false
1216
+ }
1217
+ ]
1218
+ }