@pidgeon-ai/cli 1.8.5 → 1.9.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.
- package/README.md +8 -0
- package/dist/{chunk-QVT6JKM6.js → chunk-4KV65KM4.js} +181 -3
- package/dist/chunk-4KV65KM4.js.map +1 -0
- package/dist/{chunk-OKWYDA7G.js → chunk-6FBYJ62K.js} +40 -12
- package/dist/chunk-6FBYJ62K.js.map +1 -0
- package/dist/cli.js +9 -4
- package/dist/cli.js.map +1 -1
- package/dist/commands.gen.d.ts +3 -1
- package/dist/commands.gen.js +1 -1
- package/dist/index.d.ts +8 -2
- package/dist/index.js +2 -2
- package/package.json +2 -2
- package/dist/chunk-OKWYDA7G.js.map +0 -1
- package/dist/chunk-QVT6JKM6.js.map +0 -1
package/README.md
CHANGED
|
@@ -48,6 +48,14 @@ describes one command, with its endpoint and its flags. Documentation:
|
|
|
48
48
|
- A nested object takes JSON: `--some_field '{"a":1}'`.
|
|
49
49
|
- `PIDGEON_BASE_URL` points it somewhere other than production.
|
|
50
50
|
|
|
51
|
+
## Retrying a send
|
|
52
|
+
|
|
53
|
+
Every command that sends takes `--idempotency-key`. Run it again with the
|
|
54
|
+
same key and the message goes out once; the second run prints the first
|
|
55
|
+
answer. Without one, each run makes up its own key. `--verbose` prints it
|
|
56
|
+
on stderr before the call, and a failure that may already have sent (no
|
|
57
|
+
answer, or a 5xx) prints it in the error, so a script can retry with it.
|
|
58
|
+
|
|
51
59
|
## When it fails
|
|
52
60
|
|
|
53
61
|
A refusal from the API exits 1 and prints the status, the API's code and
|
|
@@ -204,6 +204,14 @@ var COMMANDS = [
|
|
|
204
204
|
"required": true,
|
|
205
205
|
"where": "path"
|
|
206
206
|
},
|
|
207
|
+
{
|
|
208
|
+
"name": "idempotency-key",
|
|
209
|
+
"kind": "string",
|
|
210
|
+
"required": false,
|
|
211
|
+
"where": "header",
|
|
212
|
+
"describe": "Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing \u2014 no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.",
|
|
213
|
+
"header": "Idempotency-Key"
|
|
214
|
+
},
|
|
207
215
|
{
|
|
208
216
|
"name": "title",
|
|
209
217
|
"kind": "string",
|
|
@@ -313,6 +321,22 @@ var COMMANDS = [
|
|
|
313
321
|
],
|
|
314
322
|
"required": false,
|
|
315
323
|
"where": "query"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"name": "if-match",
|
|
327
|
+
"kind": "string",
|
|
328
|
+
"required": false,
|
|
329
|
+
"where": "header",
|
|
330
|
+
"describe": "The `etag` you last read. A stale one is a `409` naming the current version \u2014 two agents on one mailbox is the case this product is for, and last-write-wins loses a meeting.",
|
|
331
|
+
"header": "If-Match"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"name": "idempotency-key",
|
|
335
|
+
"kind": "string",
|
|
336
|
+
"required": false,
|
|
337
|
+
"where": "header",
|
|
338
|
+
"describe": "Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing \u2014 no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.",
|
|
339
|
+
"header": "Idempotency-Key"
|
|
316
340
|
}
|
|
317
341
|
]
|
|
318
342
|
},
|
|
@@ -487,6 +511,22 @@ var COMMANDS = [
|
|
|
487
511
|
"required": true,
|
|
488
512
|
"where": "path"
|
|
489
513
|
},
|
|
514
|
+
{
|
|
515
|
+
"name": "if-match",
|
|
516
|
+
"kind": "string",
|
|
517
|
+
"required": false,
|
|
518
|
+
"where": "header",
|
|
519
|
+
"describe": "The `etag` you last read. A stale one is a `409` naming the current version \u2014 two agents on one mailbox is the case this product is for, and last-write-wins loses a meeting.",
|
|
520
|
+
"header": "If-Match"
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"name": "idempotency-key",
|
|
524
|
+
"kind": "string",
|
|
525
|
+
"required": false,
|
|
526
|
+
"where": "header",
|
|
527
|
+
"describe": "Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing \u2014 no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.",
|
|
528
|
+
"header": "Idempotency-Key"
|
|
529
|
+
},
|
|
490
530
|
{
|
|
491
531
|
"name": "status",
|
|
492
532
|
"kind": "string",
|
|
@@ -526,6 +566,14 @@ var COMMANDS = [
|
|
|
526
566
|
"required": true,
|
|
527
567
|
"where": "path"
|
|
528
568
|
},
|
|
569
|
+
{
|
|
570
|
+
"name": "if-match",
|
|
571
|
+
"kind": "string",
|
|
572
|
+
"required": false,
|
|
573
|
+
"where": "header",
|
|
574
|
+
"describe": "The `etag` you last read. A stale one is a `409` naming the current version \u2014 two agents on one mailbox is the case this product is for, and last-write-wins loses a meeting.",
|
|
575
|
+
"header": "If-Match"
|
|
576
|
+
},
|
|
529
577
|
{
|
|
530
578
|
"name": "timezone",
|
|
531
579
|
"kind": "string",
|
|
@@ -565,6 +613,22 @@ var COMMANDS = [
|
|
|
565
613
|
"required": false,
|
|
566
614
|
"where": "query"
|
|
567
615
|
},
|
|
616
|
+
{
|
|
617
|
+
"name": "if-match",
|
|
618
|
+
"kind": "string",
|
|
619
|
+
"required": false,
|
|
620
|
+
"where": "header",
|
|
621
|
+
"describe": "The `etag` you last read. A stale one is a `409` naming the current version \u2014 two agents on one mailbox is the case this product is for, and last-write-wins loses a meeting.",
|
|
622
|
+
"header": "If-Match"
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
"name": "idempotency-key",
|
|
626
|
+
"kind": "string",
|
|
627
|
+
"required": false,
|
|
628
|
+
"where": "header",
|
|
629
|
+
"describe": "Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing \u2014 no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.",
|
|
630
|
+
"header": "Idempotency-Key"
|
|
631
|
+
},
|
|
568
632
|
{
|
|
569
633
|
"name": "title",
|
|
570
634
|
"kind": "string",
|
|
@@ -653,6 +717,14 @@ var COMMANDS = [
|
|
|
653
717
|
"path": "/domains",
|
|
654
718
|
"summary": "Connect a domain",
|
|
655
719
|
"flags": [
|
|
720
|
+
{
|
|
721
|
+
"name": "idempotency-key",
|
|
722
|
+
"kind": "string",
|
|
723
|
+
"required": false,
|
|
724
|
+
"where": "header",
|
|
725
|
+
"describe": "Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing \u2014 no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.",
|
|
726
|
+
"header": "Idempotency-Key"
|
|
727
|
+
},
|
|
656
728
|
{
|
|
657
729
|
"name": "domain",
|
|
658
730
|
"kind": "string",
|
|
@@ -827,6 +899,14 @@ var COMMANDS = [
|
|
|
827
899
|
"path": "/drafts",
|
|
828
900
|
"summary": "Write one without sending it",
|
|
829
901
|
"flags": [
|
|
902
|
+
{
|
|
903
|
+
"name": "idempotency-key",
|
|
904
|
+
"kind": "string",
|
|
905
|
+
"required": false,
|
|
906
|
+
"where": "header",
|
|
907
|
+
"describe": "Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing \u2014 no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.",
|
|
908
|
+
"header": "Idempotency-Key"
|
|
909
|
+
},
|
|
830
910
|
{
|
|
831
911
|
"name": "identity_id",
|
|
832
912
|
"kind": "string",
|
|
@@ -989,6 +1069,14 @@ var COMMANDS = [
|
|
|
989
1069
|
"required": true,
|
|
990
1070
|
"where": "path"
|
|
991
1071
|
},
|
|
1072
|
+
{
|
|
1073
|
+
"name": "idempotency-key",
|
|
1074
|
+
"kind": "string",
|
|
1075
|
+
"required": false,
|
|
1076
|
+
"where": "header",
|
|
1077
|
+
"describe": "Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing \u2014 no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.",
|
|
1078
|
+
"header": "Idempotency-Key"
|
|
1079
|
+
},
|
|
992
1080
|
{
|
|
993
1081
|
"name": "send_at",
|
|
994
1082
|
"kind": "string",
|
|
@@ -1010,6 +1098,14 @@ var COMMANDS = [
|
|
|
1010
1098
|
"kind": "string",
|
|
1011
1099
|
"required": true,
|
|
1012
1100
|
"where": "path"
|
|
1101
|
+
},
|
|
1102
|
+
{
|
|
1103
|
+
"name": "idempotency-key",
|
|
1104
|
+
"kind": "string",
|
|
1105
|
+
"required": false,
|
|
1106
|
+
"where": "header",
|
|
1107
|
+
"describe": "Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing \u2014 no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.",
|
|
1108
|
+
"header": "Idempotency-Key"
|
|
1013
1109
|
}
|
|
1014
1110
|
]
|
|
1015
1111
|
},
|
|
@@ -1325,6 +1421,14 @@ var COMMANDS = [
|
|
|
1325
1421
|
"path": "/identities",
|
|
1326
1422
|
"summary": "Create an address",
|
|
1327
1423
|
"flags": [
|
|
1424
|
+
{
|
|
1425
|
+
"name": "idempotency-key",
|
|
1426
|
+
"kind": "string",
|
|
1427
|
+
"required": false,
|
|
1428
|
+
"where": "header",
|
|
1429
|
+
"describe": "Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing \u2014 no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.",
|
|
1430
|
+
"header": "Idempotency-Key"
|
|
1431
|
+
},
|
|
1328
1432
|
{
|
|
1329
1433
|
"name": "domain_id",
|
|
1330
1434
|
"kind": "string",
|
|
@@ -1858,6 +1962,14 @@ var COMMANDS = [
|
|
|
1858
1962
|
"path": "/labels",
|
|
1859
1963
|
"summary": "Create a label",
|
|
1860
1964
|
"flags": [
|
|
1965
|
+
{
|
|
1966
|
+
"name": "idempotency-key",
|
|
1967
|
+
"kind": "string",
|
|
1968
|
+
"required": false,
|
|
1969
|
+
"where": "header",
|
|
1970
|
+
"describe": "Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing \u2014 no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.",
|
|
1971
|
+
"header": "Idempotency-Key"
|
|
1972
|
+
},
|
|
1861
1973
|
{
|
|
1862
1974
|
"name": "identity_id",
|
|
1863
1975
|
"kind": "string",
|
|
@@ -2172,7 +2284,8 @@ var COMMANDS = [
|
|
|
2172
2284
|
"name": "after",
|
|
2173
2285
|
"kind": "string",
|
|
2174
2286
|
"required": false,
|
|
2175
|
-
"where": "query"
|
|
2287
|
+
"where": "query",
|
|
2288
|
+
"describe": "Only messages that arrived after this: the `cursor` a previous call returned, or `now`. Without it, the wait first looks back 2 minutes and returns the newest matching message from then, so a code that beat you to the call is not missed."
|
|
2176
2289
|
},
|
|
2177
2290
|
{
|
|
2178
2291
|
"name": "timeout",
|
|
@@ -2196,6 +2309,14 @@ var COMMANDS = [
|
|
|
2196
2309
|
"required": true,
|
|
2197
2310
|
"where": "path"
|
|
2198
2311
|
},
|
|
2312
|
+
{
|
|
2313
|
+
"name": "idempotency-key",
|
|
2314
|
+
"kind": "string",
|
|
2315
|
+
"required": false,
|
|
2316
|
+
"where": "header",
|
|
2317
|
+
"describe": "Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing \u2014 no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.",
|
|
2318
|
+
"header": "Idempotency-Key"
|
|
2319
|
+
},
|
|
2199
2320
|
{
|
|
2200
2321
|
"name": "text",
|
|
2201
2322
|
"kind": "string",
|
|
@@ -2335,6 +2456,14 @@ var COMMANDS = [
|
|
|
2335
2456
|
"required": true,
|
|
2336
2457
|
"where": "path"
|
|
2337
2458
|
},
|
|
2459
|
+
{
|
|
2460
|
+
"name": "idempotency-key",
|
|
2461
|
+
"kind": "string",
|
|
2462
|
+
"required": false,
|
|
2463
|
+
"where": "header",
|
|
2464
|
+
"describe": "Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing \u2014 no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.",
|
|
2465
|
+
"header": "Idempotency-Key"
|
|
2466
|
+
},
|
|
2338
2467
|
{
|
|
2339
2468
|
"name": "text",
|
|
2340
2469
|
"kind": "string",
|
|
@@ -2393,6 +2522,14 @@ var COMMANDS = [
|
|
|
2393
2522
|
"required": true,
|
|
2394
2523
|
"where": "path"
|
|
2395
2524
|
},
|
|
2525
|
+
{
|
|
2526
|
+
"name": "idempotency-key",
|
|
2527
|
+
"kind": "string",
|
|
2528
|
+
"required": false,
|
|
2529
|
+
"where": "header",
|
|
2530
|
+
"describe": "Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing \u2014 no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.",
|
|
2531
|
+
"header": "Idempotency-Key"
|
|
2532
|
+
},
|
|
2396
2533
|
{
|
|
2397
2534
|
"name": "text",
|
|
2398
2535
|
"kind": "string",
|
|
@@ -2451,6 +2588,14 @@ var COMMANDS = [
|
|
|
2451
2588
|
"required": true,
|
|
2452
2589
|
"where": "path"
|
|
2453
2590
|
},
|
|
2591
|
+
{
|
|
2592
|
+
"name": "idempotency-key",
|
|
2593
|
+
"kind": "string",
|
|
2594
|
+
"required": false,
|
|
2595
|
+
"where": "header",
|
|
2596
|
+
"describe": "Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing \u2014 no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.",
|
|
2597
|
+
"header": "Idempotency-Key"
|
|
2598
|
+
},
|
|
2454
2599
|
{
|
|
2455
2600
|
"name": "status",
|
|
2456
2601
|
"kind": "string",
|
|
@@ -2560,6 +2705,14 @@ var COMMANDS = [
|
|
|
2560
2705
|
"path": "/messages",
|
|
2561
2706
|
"summary": "Send a message",
|
|
2562
2707
|
"flags": [
|
|
2708
|
+
{
|
|
2709
|
+
"name": "idempotency-key",
|
|
2710
|
+
"kind": "string",
|
|
2711
|
+
"required": false,
|
|
2712
|
+
"where": "header",
|
|
2713
|
+
"describe": "Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing \u2014 no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.",
|
|
2714
|
+
"header": "Idempotency-Key"
|
|
2715
|
+
},
|
|
2563
2716
|
{
|
|
2564
2717
|
"name": "from",
|
|
2565
2718
|
"kind": "string",
|
|
@@ -2725,6 +2878,14 @@ var COMMANDS = [
|
|
|
2725
2878
|
"path": "/pods",
|
|
2726
2879
|
"summary": "Create a pod",
|
|
2727
2880
|
"flags": [
|
|
2881
|
+
{
|
|
2882
|
+
"name": "idempotency-key",
|
|
2883
|
+
"kind": "string",
|
|
2884
|
+
"required": false,
|
|
2885
|
+
"where": "header",
|
|
2886
|
+
"describe": "Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing \u2014 no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.",
|
|
2887
|
+
"header": "Idempotency-Key"
|
|
2888
|
+
},
|
|
2728
2889
|
{
|
|
2729
2890
|
"name": "name",
|
|
2730
2891
|
"kind": "string",
|
|
@@ -2801,7 +2962,16 @@ var COMMANDS = [
|
|
|
2801
2962
|
"method": "POST",
|
|
2802
2963
|
"path": "/routing-rules",
|
|
2803
2964
|
"summary": "Route an address somewhere",
|
|
2804
|
-
"flags": [
|
|
2965
|
+
"flags": [
|
|
2966
|
+
{
|
|
2967
|
+
"name": "idempotency-key",
|
|
2968
|
+
"kind": "string",
|
|
2969
|
+
"required": false,
|
|
2970
|
+
"where": "header",
|
|
2971
|
+
"describe": "Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing \u2014 no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.",
|
|
2972
|
+
"header": "Idempotency-Key"
|
|
2973
|
+
}
|
|
2974
|
+
]
|
|
2805
2975
|
},
|
|
2806
2976
|
{
|
|
2807
2977
|
"group": "routing",
|
|
@@ -3055,6 +3225,14 @@ var COMMANDS = [
|
|
|
3055
3225
|
"path": "/webhooks",
|
|
3056
3226
|
"summary": "Create a webhook",
|
|
3057
3227
|
"flags": [
|
|
3228
|
+
{
|
|
3229
|
+
"name": "idempotency-key",
|
|
3230
|
+
"kind": "string",
|
|
3231
|
+
"required": false,
|
|
3232
|
+
"where": "header",
|
|
3233
|
+
"describe": "Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing \u2014 no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.",
|
|
3234
|
+
"header": "Idempotency-Key"
|
|
3235
|
+
},
|
|
3058
3236
|
{
|
|
3059
3237
|
"name": "url",
|
|
3060
3238
|
"kind": "string",
|
|
@@ -3258,4 +3436,4 @@ export {
|
|
|
3258
3436
|
__export,
|
|
3259
3437
|
COMMANDS
|
|
3260
3438
|
};
|
|
3261
|
-
//# sourceMappingURL=chunk-
|
|
3439
|
+
//# sourceMappingURL=chunk-4KV65KM4.js.map
|