@primitivedotdev/sdk 0.20.0 → 0.22.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/dist/api/generated/index.js +1 -1
- package/dist/api/generated/sdk.gen.js +30 -0
- package/dist/api/index.d.ts +2 -2
- package/dist/api/index.js +40 -5
- package/dist/{api-DNF21MDo.js → api-BjzvA2Fy.js} +63 -6
- package/dist/{index-C6ObsYjq.d.ts → index-QTYQpSFt.d.ts} +215 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/oclif/api-command.js +98 -14
- package/dist/oclif/auth.js +65 -10
- package/dist/oclif/commands/emails-latest.js +23 -12
- package/dist/oclif/commands/emails-poll.js +121 -0
- package/dist/oclif/commands/emails-wait.js +171 -0
- package/dist/oclif/commands/emails-watch.js +165 -0
- package/dist/oclif/commands/functions-deploy.js +15 -6
- package/dist/oclif/commands/functions-redeploy.js +15 -6
- package/dist/oclif/commands/functions-set-secret.js +213 -0
- package/dist/oclif/commands/login.js +18 -14
- package/dist/oclif/commands/logout.js +9 -8
- package/dist/oclif/commands/send.js +21 -7
- package/dist/oclif/commands/whoami.js +15 -6
- package/dist/oclif/fish-completion.js +1 -1
- package/dist/oclif/index.js +14 -0
- package/dist/openapi/openapi.generated.js +397 -2
- package/dist/openapi/operations.generated.js +305 -1
- package/oclif.manifest.json +1413 -285
- package/package.json +2 -2
package/oclif.manifest.json
CHANGED
|
@@ -87,10 +87,20 @@
|
|
|
87
87
|
"multiple": false,
|
|
88
88
|
"type": "option"
|
|
89
89
|
},
|
|
90
|
-
"base-url": {
|
|
91
|
-
"description": "API base URL
|
|
92
|
-
"env": "
|
|
93
|
-
"
|
|
90
|
+
"api-base-url-1": {
|
|
91
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
92
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
93
|
+
"hidden": true,
|
|
94
|
+
"name": "api-base-url-1",
|
|
95
|
+
"hasDynamicHelp": false,
|
|
96
|
+
"multiple": false,
|
|
97
|
+
"type": "option"
|
|
98
|
+
},
|
|
99
|
+
"api-base-url-2": {
|
|
100
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
101
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
102
|
+
"hidden": true,
|
|
103
|
+
"name": "api-base-url-2",
|
|
94
104
|
"hasDynamicHelp": false,
|
|
95
105
|
"multiple": false,
|
|
96
106
|
"type": "option"
|
|
@@ -178,10 +188,11 @@
|
|
|
178
188
|
"<%= config.bin %> login --force"
|
|
179
189
|
],
|
|
180
190
|
"flags": {
|
|
181
|
-
"base-url": {
|
|
182
|
-
"description": "API base URL
|
|
183
|
-
"env": "
|
|
184
|
-
"
|
|
191
|
+
"api-base-url-1": {
|
|
192
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
193
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
194
|
+
"hidden": true,
|
|
195
|
+
"name": "api-base-url-1",
|
|
185
196
|
"hasDynamicHelp": false,
|
|
186
197
|
"multiple": false,
|
|
187
198
|
"type": "option"
|
|
@@ -225,10 +236,11 @@
|
|
|
225
236
|
"<%= config.bin %> logout"
|
|
226
237
|
],
|
|
227
238
|
"flags": {
|
|
228
|
-
"base-url": {
|
|
229
|
-
"description": "Override the API base URL
|
|
230
|
-
"env": "
|
|
231
|
-
"
|
|
239
|
+
"api-base-url-1": {
|
|
240
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
241
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
242
|
+
"hidden": true,
|
|
243
|
+
"name": "api-base-url-1",
|
|
232
244
|
"hasDynamicHelp": false,
|
|
233
245
|
"multiple": false,
|
|
234
246
|
"type": "option"
|
|
@@ -261,10 +273,20 @@
|
|
|
261
273
|
"multiple": false,
|
|
262
274
|
"type": "option"
|
|
263
275
|
},
|
|
264
|
-
"base-url": {
|
|
265
|
-
"description": "API base URL
|
|
266
|
-
"env": "
|
|
267
|
-
"
|
|
276
|
+
"api-base-url-1": {
|
|
277
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
278
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
279
|
+
"hidden": true,
|
|
280
|
+
"name": "api-base-url-1",
|
|
281
|
+
"hasDynamicHelp": false,
|
|
282
|
+
"multiple": false,
|
|
283
|
+
"type": "option"
|
|
284
|
+
},
|
|
285
|
+
"api-base-url-2": {
|
|
286
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
287
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
288
|
+
"hidden": true,
|
|
289
|
+
"name": "api-base-url-2",
|
|
268
290
|
"hasDynamicHelp": false,
|
|
269
291
|
"multiple": false,
|
|
270
292
|
"type": "option"
|
|
@@ -291,10 +313,10 @@
|
|
|
291
313
|
"args": {},
|
|
292
314
|
"description": "Print the N most recent inbound emails as a one-line-per-row text table. Designed for quick triage and visual scanning. For programmatic access, use `primitive emails:list-emails` (full JSON envelope, cursor pagination, filters) or pass `--json` here for the same raw shape without pagination/filters.\n\n ID display is TTY-aware. When STDOUT is a terminal, the table truncates each row's id to the first 8 characters for readability. When STDOUT is piped or redirected (the row stream is being consumed by another command), the full UUID is printed so the id can be fed straight back into `emails:get-email`, `emails:delete-email`, etc. without a separate `--json` round-trip.\n\n Output streams: the column header line is written to STDERR so the row data on STDOUT stays grep/awk-friendly. `--json` writes everything (including the envelope) to STDOUT and is equivalent to running `emails:list-emails --limit N` for the same N.",
|
|
293
315
|
"examples": [
|
|
294
|
-
"<%= config.bin %> emails
|
|
295
|
-
"<%= config.bin %> emails
|
|
296
|
-
"<%= config.bin %> emails
|
|
297
|
-
"<%= config.bin %> emails
|
|
316
|
+
"<%= config.bin %> emails latest",
|
|
317
|
+
"<%= config.bin %> emails latest --limit 25",
|
|
318
|
+
"<%= config.bin %> emails latest | head -1 | awk '{print $1}' # full UUID since piped",
|
|
319
|
+
"<%= config.bin %> emails latest --json | jq '.data[0].id'"
|
|
298
320
|
],
|
|
299
321
|
"flags": {
|
|
300
322
|
"api-key": {
|
|
@@ -305,10 +327,20 @@
|
|
|
305
327
|
"multiple": false,
|
|
306
328
|
"type": "option"
|
|
307
329
|
},
|
|
308
|
-
"base-url": {
|
|
309
|
-
"description": "API base URL
|
|
310
|
-
"env": "
|
|
311
|
-
"
|
|
330
|
+
"api-base-url-1": {
|
|
331
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
332
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
333
|
+
"hidden": true,
|
|
334
|
+
"name": "api-base-url-1",
|
|
335
|
+
"hasDynamicHelp": false,
|
|
336
|
+
"multiple": false,
|
|
337
|
+
"type": "option"
|
|
338
|
+
},
|
|
339
|
+
"api-base-url-2": {
|
|
340
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
341
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
342
|
+
"hidden": true,
|
|
343
|
+
"name": "api-base-url-2",
|
|
312
344
|
"hasDynamicHelp": false,
|
|
313
345
|
"multiple": false,
|
|
314
346
|
"type": "option"
|
|
@@ -344,6 +376,339 @@
|
|
|
344
376
|
"summary": "Show the most recent inbound emails as a compact table",
|
|
345
377
|
"enableJsonFlag": false
|
|
346
378
|
},
|
|
379
|
+
"emails:watch": {
|
|
380
|
+
"aliases": [],
|
|
381
|
+
"args": {},
|
|
382
|
+
"description": "Poll for new inbound emails and print matching messages as they arrive.",
|
|
383
|
+
"examples": [
|
|
384
|
+
"<%= config.bin %> emails watch --to support@example.com",
|
|
385
|
+
"<%= config.bin %> emails watch --subject verify --seconds 300",
|
|
386
|
+
"<%= config.bin %> emails watch --number 20 --jsonl"
|
|
387
|
+
],
|
|
388
|
+
"flags": {
|
|
389
|
+
"api-key": {
|
|
390
|
+
"description": "Primitive API key (defaults to PRIMITIVE_API_KEY or saved `primitive login` credentials)",
|
|
391
|
+
"env": "PRIMITIVE_API_KEY",
|
|
392
|
+
"name": "api-key",
|
|
393
|
+
"hasDynamicHelp": false,
|
|
394
|
+
"multiple": false,
|
|
395
|
+
"type": "option"
|
|
396
|
+
},
|
|
397
|
+
"api-base-url-1": {
|
|
398
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
399
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
400
|
+
"hidden": true,
|
|
401
|
+
"name": "api-base-url-1",
|
|
402
|
+
"hasDynamicHelp": false,
|
|
403
|
+
"multiple": false,
|
|
404
|
+
"type": "option"
|
|
405
|
+
},
|
|
406
|
+
"api-base-url-2": {
|
|
407
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
408
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
409
|
+
"hidden": true,
|
|
410
|
+
"name": "api-base-url-2",
|
|
411
|
+
"hasDynamicHelp": false,
|
|
412
|
+
"multiple": false,
|
|
413
|
+
"type": "option"
|
|
414
|
+
},
|
|
415
|
+
"body": {
|
|
416
|
+
"description": "Full-text body filter",
|
|
417
|
+
"name": "body",
|
|
418
|
+
"hasDynamicHelp": false,
|
|
419
|
+
"multiple": false,
|
|
420
|
+
"type": "option"
|
|
421
|
+
},
|
|
422
|
+
"domain": {
|
|
423
|
+
"description": "Filter by inbound email domain",
|
|
424
|
+
"name": "domain",
|
|
425
|
+
"hasDynamicHelp": false,
|
|
426
|
+
"multiple": false,
|
|
427
|
+
"type": "option"
|
|
428
|
+
},
|
|
429
|
+
"domain-id": {
|
|
430
|
+
"description": "Filter by domain UUID",
|
|
431
|
+
"name": "domain-id",
|
|
432
|
+
"hasDynamicHelp": false,
|
|
433
|
+
"multiple": false,
|
|
434
|
+
"type": "option"
|
|
435
|
+
},
|
|
436
|
+
"from": {
|
|
437
|
+
"description": "Filter by sender address or domain",
|
|
438
|
+
"name": "from",
|
|
439
|
+
"hasDynamicHelp": false,
|
|
440
|
+
"multiple": false,
|
|
441
|
+
"type": "option"
|
|
442
|
+
},
|
|
443
|
+
"has-attachment": {
|
|
444
|
+
"description": "Only show emails with one or more attachments",
|
|
445
|
+
"name": "has-attachment",
|
|
446
|
+
"allowNo": false,
|
|
447
|
+
"type": "boolean"
|
|
448
|
+
},
|
|
449
|
+
"include-existing": {
|
|
450
|
+
"description": "Start from existing matching emails instead of only new arrivals",
|
|
451
|
+
"name": "include-existing",
|
|
452
|
+
"allowNo": false,
|
|
453
|
+
"type": "boolean"
|
|
454
|
+
},
|
|
455
|
+
"interval": {
|
|
456
|
+
"description": "Seconds to wait between empty polls",
|
|
457
|
+
"name": "interval",
|
|
458
|
+
"default": 2,
|
|
459
|
+
"hasDynamicHelp": false,
|
|
460
|
+
"multiple": false,
|
|
461
|
+
"type": "option"
|
|
462
|
+
},
|
|
463
|
+
"jsonl": {
|
|
464
|
+
"description": "Print each email as one JSON object per line",
|
|
465
|
+
"name": "jsonl",
|
|
466
|
+
"allowNo": false,
|
|
467
|
+
"type": "boolean"
|
|
468
|
+
},
|
|
469
|
+
"number": {
|
|
470
|
+
"description": "Exit after printing this many matching emails",
|
|
471
|
+
"name": "number",
|
|
472
|
+
"hasDynamicHelp": false,
|
|
473
|
+
"multiple": false,
|
|
474
|
+
"type": "option"
|
|
475
|
+
},
|
|
476
|
+
"page-size": {
|
|
477
|
+
"description": "Emails to fetch per poll (1-100)",
|
|
478
|
+
"name": "page-size",
|
|
479
|
+
"default": 50,
|
|
480
|
+
"hasDynamicHelp": false,
|
|
481
|
+
"multiple": false,
|
|
482
|
+
"type": "option"
|
|
483
|
+
},
|
|
484
|
+
"q": {
|
|
485
|
+
"description": "Full-text search DSL query",
|
|
486
|
+
"name": "q",
|
|
487
|
+
"hasDynamicHelp": false,
|
|
488
|
+
"multiple": false,
|
|
489
|
+
"type": "option"
|
|
490
|
+
},
|
|
491
|
+
"seconds": {
|
|
492
|
+
"description": "Exit after this many seconds",
|
|
493
|
+
"name": "seconds",
|
|
494
|
+
"hasDynamicHelp": false,
|
|
495
|
+
"multiple": false,
|
|
496
|
+
"type": "option"
|
|
497
|
+
},
|
|
498
|
+
"since": {
|
|
499
|
+
"description": "Only show emails received on or after this date/time",
|
|
500
|
+
"name": "since",
|
|
501
|
+
"hasDynamicHelp": false,
|
|
502
|
+
"multiple": false,
|
|
503
|
+
"type": "option"
|
|
504
|
+
},
|
|
505
|
+
"spam-score-gte": {
|
|
506
|
+
"description": "Only show emails with spam score greater than or equal to this value",
|
|
507
|
+
"name": "spam-score-gte",
|
|
508
|
+
"hasDynamicHelp": false,
|
|
509
|
+
"multiple": false,
|
|
510
|
+
"type": "option"
|
|
511
|
+
},
|
|
512
|
+
"spam-score-lt": {
|
|
513
|
+
"description": "Only show emails with spam score below this value",
|
|
514
|
+
"name": "spam-score-lt",
|
|
515
|
+
"hasDynamicHelp": false,
|
|
516
|
+
"multiple": false,
|
|
517
|
+
"type": "option"
|
|
518
|
+
},
|
|
519
|
+
"subject": {
|
|
520
|
+
"description": "Full-text subject filter",
|
|
521
|
+
"name": "subject",
|
|
522
|
+
"hasDynamicHelp": false,
|
|
523
|
+
"multiple": false,
|
|
524
|
+
"type": "option"
|
|
525
|
+
},
|
|
526
|
+
"to": {
|
|
527
|
+
"description": "Filter by recipient address or domain",
|
|
528
|
+
"name": "to",
|
|
529
|
+
"hasDynamicHelp": false,
|
|
530
|
+
"multiple": false,
|
|
531
|
+
"type": "option"
|
|
532
|
+
}
|
|
533
|
+
},
|
|
534
|
+
"hasDynamicHelp": false,
|
|
535
|
+
"hiddenAliases": [],
|
|
536
|
+
"id": "emails:watch",
|
|
537
|
+
"pluginAlias": "@primitivedotdev/sdk",
|
|
538
|
+
"pluginName": "@primitivedotdev/sdk",
|
|
539
|
+
"pluginType": "core",
|
|
540
|
+
"strict": true,
|
|
541
|
+
"summary": "Watch inbound emails with filters",
|
|
542
|
+
"enableJsonFlag": false
|
|
543
|
+
},
|
|
544
|
+
"emails:wait": {
|
|
545
|
+
"aliases": [],
|
|
546
|
+
"args": {},
|
|
547
|
+
"description": "Poll until matching inbound emails arrive, printing each match as it is found.",
|
|
548
|
+
"examples": [
|
|
549
|
+
"<%= config.bin %> emails wait --to test@example.com",
|
|
550
|
+
"<%= config.bin %> emails wait --subject verify --number 5 --timeout 120",
|
|
551
|
+
"<%= config.bin %> emails wait --q 'domain:example.com' --table"
|
|
552
|
+
],
|
|
553
|
+
"flags": {
|
|
554
|
+
"api-key": {
|
|
555
|
+
"description": "Primitive API key (defaults to PRIMITIVE_API_KEY or saved `primitive login` credentials)",
|
|
556
|
+
"env": "PRIMITIVE_API_KEY",
|
|
557
|
+
"name": "api-key",
|
|
558
|
+
"hasDynamicHelp": false,
|
|
559
|
+
"multiple": false,
|
|
560
|
+
"type": "option"
|
|
561
|
+
},
|
|
562
|
+
"api-base-url-1": {
|
|
563
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
564
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
565
|
+
"hidden": true,
|
|
566
|
+
"name": "api-base-url-1",
|
|
567
|
+
"hasDynamicHelp": false,
|
|
568
|
+
"multiple": false,
|
|
569
|
+
"type": "option"
|
|
570
|
+
},
|
|
571
|
+
"api-base-url-2": {
|
|
572
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
573
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
574
|
+
"hidden": true,
|
|
575
|
+
"name": "api-base-url-2",
|
|
576
|
+
"hasDynamicHelp": false,
|
|
577
|
+
"multiple": false,
|
|
578
|
+
"type": "option"
|
|
579
|
+
},
|
|
580
|
+
"body": {
|
|
581
|
+
"description": "Full-text body filter",
|
|
582
|
+
"name": "body",
|
|
583
|
+
"hasDynamicHelp": false,
|
|
584
|
+
"multiple": false,
|
|
585
|
+
"type": "option"
|
|
586
|
+
},
|
|
587
|
+
"domain": {
|
|
588
|
+
"description": "Filter by inbound email domain",
|
|
589
|
+
"name": "domain",
|
|
590
|
+
"hasDynamicHelp": false,
|
|
591
|
+
"multiple": false,
|
|
592
|
+
"type": "option"
|
|
593
|
+
},
|
|
594
|
+
"domain-id": {
|
|
595
|
+
"description": "Filter by domain UUID",
|
|
596
|
+
"name": "domain-id",
|
|
597
|
+
"hasDynamicHelp": false,
|
|
598
|
+
"multiple": false,
|
|
599
|
+
"type": "option"
|
|
600
|
+
},
|
|
601
|
+
"from": {
|
|
602
|
+
"description": "Filter by sender address or domain",
|
|
603
|
+
"name": "from",
|
|
604
|
+
"hasDynamicHelp": false,
|
|
605
|
+
"multiple": false,
|
|
606
|
+
"type": "option"
|
|
607
|
+
},
|
|
608
|
+
"has-attachment": {
|
|
609
|
+
"description": "Only match emails with one or more attachments",
|
|
610
|
+
"name": "has-attachment",
|
|
611
|
+
"allowNo": false,
|
|
612
|
+
"type": "boolean"
|
|
613
|
+
},
|
|
614
|
+
"include-existing": {
|
|
615
|
+
"description": "Start from existing matching emails instead of only new arrivals",
|
|
616
|
+
"name": "include-existing",
|
|
617
|
+
"allowNo": false,
|
|
618
|
+
"type": "boolean"
|
|
619
|
+
},
|
|
620
|
+
"interval": {
|
|
621
|
+
"description": "Seconds to wait between empty polls",
|
|
622
|
+
"name": "interval",
|
|
623
|
+
"default": 2,
|
|
624
|
+
"hasDynamicHelp": false,
|
|
625
|
+
"multiple": false,
|
|
626
|
+
"type": "option"
|
|
627
|
+
},
|
|
628
|
+
"number": {
|
|
629
|
+
"char": "n",
|
|
630
|
+
"description": "Exit successfully after this many matching emails",
|
|
631
|
+
"name": "number",
|
|
632
|
+
"default": 1,
|
|
633
|
+
"hasDynamicHelp": false,
|
|
634
|
+
"multiple": false,
|
|
635
|
+
"type": "option"
|
|
636
|
+
},
|
|
637
|
+
"page-size": {
|
|
638
|
+
"description": "Emails to fetch per poll (1-100)",
|
|
639
|
+
"name": "page-size",
|
|
640
|
+
"default": 50,
|
|
641
|
+
"hasDynamicHelp": false,
|
|
642
|
+
"multiple": false,
|
|
643
|
+
"type": "option"
|
|
644
|
+
},
|
|
645
|
+
"q": {
|
|
646
|
+
"description": "Full-text search DSL query",
|
|
647
|
+
"name": "q",
|
|
648
|
+
"hasDynamicHelp": false,
|
|
649
|
+
"multiple": false,
|
|
650
|
+
"type": "option"
|
|
651
|
+
},
|
|
652
|
+
"since": {
|
|
653
|
+
"description": "Only match emails received on or after this date/time",
|
|
654
|
+
"name": "since",
|
|
655
|
+
"hasDynamicHelp": false,
|
|
656
|
+
"multiple": false,
|
|
657
|
+
"type": "option"
|
|
658
|
+
},
|
|
659
|
+
"spam-score-gte": {
|
|
660
|
+
"description": "Only match emails with spam score greater than or equal to this value",
|
|
661
|
+
"name": "spam-score-gte",
|
|
662
|
+
"hasDynamicHelp": false,
|
|
663
|
+
"multiple": false,
|
|
664
|
+
"type": "option"
|
|
665
|
+
},
|
|
666
|
+
"spam-score-lt": {
|
|
667
|
+
"description": "Only match emails with spam score below this value",
|
|
668
|
+
"name": "spam-score-lt",
|
|
669
|
+
"hasDynamicHelp": false,
|
|
670
|
+
"multiple": false,
|
|
671
|
+
"type": "option"
|
|
672
|
+
},
|
|
673
|
+
"subject": {
|
|
674
|
+
"description": "Full-text subject filter",
|
|
675
|
+
"name": "subject",
|
|
676
|
+
"hasDynamicHelp": false,
|
|
677
|
+
"multiple": false,
|
|
678
|
+
"type": "option"
|
|
679
|
+
},
|
|
680
|
+
"table": {
|
|
681
|
+
"description": "Print a human-readable table instead of JSONL",
|
|
682
|
+
"name": "table",
|
|
683
|
+
"allowNo": false,
|
|
684
|
+
"type": "boolean"
|
|
685
|
+
},
|
|
686
|
+
"timeout": {
|
|
687
|
+
"description": "Seconds to wait before exiting nonzero; 0 waits forever",
|
|
688
|
+
"name": "timeout",
|
|
689
|
+
"default": 300,
|
|
690
|
+
"hasDynamicHelp": false,
|
|
691
|
+
"multiple": false,
|
|
692
|
+
"type": "option"
|
|
693
|
+
},
|
|
694
|
+
"to": {
|
|
695
|
+
"description": "Filter by recipient address or domain",
|
|
696
|
+
"name": "to",
|
|
697
|
+
"hasDynamicHelp": false,
|
|
698
|
+
"multiple": false,
|
|
699
|
+
"type": "option"
|
|
700
|
+
}
|
|
701
|
+
},
|
|
702
|
+
"hasDynamicHelp": false,
|
|
703
|
+
"hiddenAliases": [],
|
|
704
|
+
"id": "emails:wait",
|
|
705
|
+
"pluginAlias": "@primitivedotdev/sdk",
|
|
706
|
+
"pluginName": "@primitivedotdev/sdk",
|
|
707
|
+
"pluginType": "core",
|
|
708
|
+
"strict": true,
|
|
709
|
+
"summary": "Wait for matching inbound emails",
|
|
710
|
+
"enableJsonFlag": false
|
|
711
|
+
},
|
|
347
712
|
"functions:deploy": {
|
|
348
713
|
"aliases": [],
|
|
349
714
|
"args": {},
|
|
@@ -361,10 +726,20 @@
|
|
|
361
726
|
"multiple": false,
|
|
362
727
|
"type": "option"
|
|
363
728
|
},
|
|
364
|
-
"base-url": {
|
|
365
|
-
"description": "API base URL
|
|
366
|
-
"env": "
|
|
367
|
-
"
|
|
729
|
+
"api-base-url-1": {
|
|
730
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
731
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
732
|
+
"hidden": true,
|
|
733
|
+
"name": "api-base-url-1",
|
|
734
|
+
"hasDynamicHelp": false,
|
|
735
|
+
"multiple": false,
|
|
736
|
+
"type": "option"
|
|
737
|
+
},
|
|
738
|
+
"api-base-url-2": {
|
|
739
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
740
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
741
|
+
"hidden": true,
|
|
742
|
+
"name": "api-base-url-2",
|
|
368
743
|
"hasDynamicHelp": false,
|
|
369
744
|
"multiple": false,
|
|
370
745
|
"type": "option"
|
|
@@ -426,10 +801,20 @@
|
|
|
426
801
|
"multiple": false,
|
|
427
802
|
"type": "option"
|
|
428
803
|
},
|
|
429
|
-
"base-url": {
|
|
430
|
-
"description": "API base URL
|
|
431
|
-
"env": "
|
|
432
|
-
"
|
|
804
|
+
"api-base-url-1": {
|
|
805
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
806
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
807
|
+
"hidden": true,
|
|
808
|
+
"name": "api-base-url-1",
|
|
809
|
+
"hasDynamicHelp": false,
|
|
810
|
+
"multiple": false,
|
|
811
|
+
"type": "option"
|
|
812
|
+
},
|
|
813
|
+
"api-base-url-2": {
|
|
814
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
815
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
816
|
+
"hidden": true,
|
|
817
|
+
"name": "api-base-url-2",
|
|
433
818
|
"hasDynamicHelp": false,
|
|
434
819
|
"multiple": false,
|
|
435
820
|
"type": "option"
|
|
@@ -474,6 +859,88 @@
|
|
|
474
859
|
"summary": "Redeploy a function from a bundled handler file",
|
|
475
860
|
"enableJsonFlag": false
|
|
476
861
|
},
|
|
862
|
+
"functions:set-secret": {
|
|
863
|
+
"aliases": [],
|
|
864
|
+
"args": {},
|
|
865
|
+
"description": "Write a function secret and optionally redeploy so the new value lands in the running handler. Agent-grade shortcut for functions:set-function-secret + functions:redeploy.\n\n Without --redeploy this is a plain secret upsert: the value is\n encrypted at rest but is NOT visible to the running handler until\n the next deploy. Pass --redeploy to re-run the deploy with the\n function's current code in the same call, which refreshes the\n binding set with the value you just wrote.\n\n Keys must match `^[A-Z_][A-Z0-9_]*$` (uppercase letters, digits,\n underscores; first character is a letter or underscore). System-\n managed keys are reserved and rejected.",
|
|
866
|
+
"examples": [
|
|
867
|
+
"<%= config.bin %> functions:set-secret --id <fn-id> --key API_TOKEN --value abc123",
|
|
868
|
+
"<%= config.bin %> functions:set-secret --id <fn-id> --key API_TOKEN --value abc123 --redeploy"
|
|
869
|
+
],
|
|
870
|
+
"flags": {
|
|
871
|
+
"api-key": {
|
|
872
|
+
"description": "Primitive API key (defaults to PRIMITIVE_API_KEY or saved `primitive login` credentials)",
|
|
873
|
+
"env": "PRIMITIVE_API_KEY",
|
|
874
|
+
"name": "api-key",
|
|
875
|
+
"hasDynamicHelp": false,
|
|
876
|
+
"multiple": false,
|
|
877
|
+
"type": "option"
|
|
878
|
+
},
|
|
879
|
+
"api-base-url-1": {
|
|
880
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
881
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
882
|
+
"hidden": true,
|
|
883
|
+
"name": "api-base-url-1",
|
|
884
|
+
"hasDynamicHelp": false,
|
|
885
|
+
"multiple": false,
|
|
886
|
+
"type": "option"
|
|
887
|
+
},
|
|
888
|
+
"api-base-url-2": {
|
|
889
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
890
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
891
|
+
"hidden": true,
|
|
892
|
+
"name": "api-base-url-2",
|
|
893
|
+
"hasDynamicHelp": false,
|
|
894
|
+
"multiple": false,
|
|
895
|
+
"type": "option"
|
|
896
|
+
},
|
|
897
|
+
"id": {
|
|
898
|
+
"description": "Function id (UUID). The function must already exist.",
|
|
899
|
+
"name": "id",
|
|
900
|
+
"required": true,
|
|
901
|
+
"hasDynamicHelp": false,
|
|
902
|
+
"multiple": false,
|
|
903
|
+
"type": "option"
|
|
904
|
+
},
|
|
905
|
+
"key": {
|
|
906
|
+
"description": "Secret key. Uppercase letters, digits, underscores; must start with a letter or underscore. System-managed keys are reserved.",
|
|
907
|
+
"name": "key",
|
|
908
|
+
"required": true,
|
|
909
|
+
"hasDynamicHelp": false,
|
|
910
|
+
"multiple": false,
|
|
911
|
+
"type": "option"
|
|
912
|
+
},
|
|
913
|
+
"value": {
|
|
914
|
+
"description": "Secret value (up to 4096 UTF-8 bytes). Encrypted at rest.",
|
|
915
|
+
"name": "value",
|
|
916
|
+
"required": true,
|
|
917
|
+
"hasDynamicHelp": false,
|
|
918
|
+
"multiple": false,
|
|
919
|
+
"type": "option"
|
|
920
|
+
},
|
|
921
|
+
"redeploy": {
|
|
922
|
+
"description": "Also redeploy the function with its current code so the new value lands in the running handler. Without this, the secret is written but not visible to the handler until the next deploy. Note: source maps are stored only on the runtime side and getFunction does not return them, so this redeploy drops any previously-uploaded source map. If preserving stack-trace symbolication matters, use `functions:redeploy --file <bundle.js> --source-map-file <bundle.js.map>` instead.",
|
|
923
|
+
"name": "redeploy",
|
|
924
|
+
"allowNo": false,
|
|
925
|
+
"type": "boolean"
|
|
926
|
+
},
|
|
927
|
+
"time": {
|
|
928
|
+
"description": "Print the wall-clock duration of this command to stderr after it completes (e.g. `[time: 1.34s]`). Useful for measuring `--wait` send latency, comparing CLI overhead, or capturing timing in scripts.",
|
|
929
|
+
"name": "time",
|
|
930
|
+
"allowNo": false,
|
|
931
|
+
"type": "boolean"
|
|
932
|
+
}
|
|
933
|
+
},
|
|
934
|
+
"hasDynamicHelp": false,
|
|
935
|
+
"hiddenAliases": [],
|
|
936
|
+
"id": "functions:set-secret",
|
|
937
|
+
"pluginAlias": "@primitivedotdev/sdk",
|
|
938
|
+
"pluginName": "@primitivedotdev/sdk",
|
|
939
|
+
"pluginType": "core",
|
|
940
|
+
"strict": true,
|
|
941
|
+
"summary": "Write a function secret (optionally redeploying to push it live)",
|
|
942
|
+
"enableJsonFlag": false
|
|
943
|
+
},
|
|
477
944
|
"account:get-account": {
|
|
478
945
|
"aliases": [],
|
|
479
946
|
"args": {},
|
|
@@ -487,10 +954,20 @@
|
|
|
487
954
|
"multiple": false,
|
|
488
955
|
"type": "option"
|
|
489
956
|
},
|
|
490
|
-
"base-url": {
|
|
491
|
-
"description": "API base URL
|
|
492
|
-
"env": "
|
|
493
|
-
"
|
|
957
|
+
"api-base-url-1": {
|
|
958
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
959
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
960
|
+
"hidden": true,
|
|
961
|
+
"name": "api-base-url-1",
|
|
962
|
+
"hasDynamicHelp": false,
|
|
963
|
+
"multiple": false,
|
|
964
|
+
"type": "option"
|
|
965
|
+
},
|
|
966
|
+
"api-base-url-2": {
|
|
967
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
968
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
969
|
+
"hidden": true,
|
|
970
|
+
"name": "api-base-url-2",
|
|
494
971
|
"hasDynamicHelp": false,
|
|
495
972
|
"multiple": false,
|
|
496
973
|
"type": "option"
|
|
@@ -525,10 +1002,20 @@
|
|
|
525
1002
|
"multiple": false,
|
|
526
1003
|
"type": "option"
|
|
527
1004
|
},
|
|
528
|
-
"base-url": {
|
|
529
|
-
"description": "API base URL
|
|
530
|
-
"env": "
|
|
531
|
-
"
|
|
1005
|
+
"api-base-url-1": {
|
|
1006
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
1007
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
1008
|
+
"hidden": true,
|
|
1009
|
+
"name": "api-base-url-1",
|
|
1010
|
+
"hasDynamicHelp": false,
|
|
1011
|
+
"multiple": false,
|
|
1012
|
+
"type": "option"
|
|
1013
|
+
},
|
|
1014
|
+
"api-base-url-2": {
|
|
1015
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
1016
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
1017
|
+
"hidden": true,
|
|
1018
|
+
"name": "api-base-url-2",
|
|
532
1019
|
"hasDynamicHelp": false,
|
|
533
1020
|
"multiple": false,
|
|
534
1021
|
"type": "option"
|
|
@@ -563,10 +1050,20 @@
|
|
|
563
1050
|
"multiple": false,
|
|
564
1051
|
"type": "option"
|
|
565
1052
|
},
|
|
566
|
-
"base-url": {
|
|
567
|
-
"description": "API base URL
|
|
568
|
-
"env": "
|
|
569
|
-
"
|
|
1053
|
+
"api-base-url-1": {
|
|
1054
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
1055
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
1056
|
+
"hidden": true,
|
|
1057
|
+
"name": "api-base-url-1",
|
|
1058
|
+
"hasDynamicHelp": false,
|
|
1059
|
+
"multiple": false,
|
|
1060
|
+
"type": "option"
|
|
1061
|
+
},
|
|
1062
|
+
"api-base-url-2": {
|
|
1063
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
1064
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
1065
|
+
"hidden": true,
|
|
1066
|
+
"name": "api-base-url-2",
|
|
570
1067
|
"hasDynamicHelp": false,
|
|
571
1068
|
"multiple": false,
|
|
572
1069
|
"type": "option"
|
|
@@ -601,10 +1098,20 @@
|
|
|
601
1098
|
"multiple": false,
|
|
602
1099
|
"type": "option"
|
|
603
1100
|
},
|
|
604
|
-
"base-url": {
|
|
605
|
-
"description": "API base URL
|
|
606
|
-
"env": "
|
|
607
|
-
"
|
|
1101
|
+
"api-base-url-1": {
|
|
1102
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
1103
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
1104
|
+
"hidden": true,
|
|
1105
|
+
"name": "api-base-url-1",
|
|
1106
|
+
"hasDynamicHelp": false,
|
|
1107
|
+
"multiple": false,
|
|
1108
|
+
"type": "option"
|
|
1109
|
+
},
|
|
1110
|
+
"api-base-url-2": {
|
|
1111
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
1112
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
1113
|
+
"hidden": true,
|
|
1114
|
+
"name": "api-base-url-2",
|
|
608
1115
|
"hasDynamicHelp": false,
|
|
609
1116
|
"multiple": false,
|
|
610
1117
|
"type": "option"
|
|
@@ -639,10 +1146,20 @@
|
|
|
639
1146
|
"multiple": false,
|
|
640
1147
|
"type": "option"
|
|
641
1148
|
},
|
|
642
|
-
"base-url": {
|
|
643
|
-
"description": "API base URL
|
|
644
|
-
"env": "
|
|
645
|
-
"
|
|
1149
|
+
"api-base-url-1": {
|
|
1150
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
1151
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
1152
|
+
"hidden": true,
|
|
1153
|
+
"name": "api-base-url-1",
|
|
1154
|
+
"hasDynamicHelp": false,
|
|
1155
|
+
"multiple": false,
|
|
1156
|
+
"type": "option"
|
|
1157
|
+
},
|
|
1158
|
+
"api-base-url-2": {
|
|
1159
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
1160
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
1161
|
+
"hidden": true,
|
|
1162
|
+
"name": "api-base-url-2",
|
|
646
1163
|
"hasDynamicHelp": false,
|
|
647
1164
|
"multiple": false,
|
|
648
1165
|
"type": "option"
|
|
@@ -704,10 +1221,20 @@
|
|
|
704
1221
|
"multiple": false,
|
|
705
1222
|
"type": "option"
|
|
706
1223
|
},
|
|
707
|
-
"base-url": {
|
|
708
|
-
"description": "API base URL
|
|
709
|
-
"env": "
|
|
710
|
-
"
|
|
1224
|
+
"api-base-url-1": {
|
|
1225
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
1226
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
1227
|
+
"hidden": true,
|
|
1228
|
+
"name": "api-base-url-1",
|
|
1229
|
+
"hasDynamicHelp": false,
|
|
1230
|
+
"multiple": false,
|
|
1231
|
+
"type": "option"
|
|
1232
|
+
},
|
|
1233
|
+
"api-base-url-2": {
|
|
1234
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
1235
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
1236
|
+
"hidden": true,
|
|
1237
|
+
"name": "api-base-url-2",
|
|
711
1238
|
"hasDynamicHelp": false,
|
|
712
1239
|
"multiple": false,
|
|
713
1240
|
"type": "option"
|
|
@@ -763,10 +1290,20 @@
|
|
|
763
1290
|
"multiple": false,
|
|
764
1291
|
"type": "option"
|
|
765
1292
|
},
|
|
766
|
-
"base-url": {
|
|
767
|
-
"description": "API base URL
|
|
768
|
-
"env": "
|
|
769
|
-
"
|
|
1293
|
+
"api-base-url-1": {
|
|
1294
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
1295
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
1296
|
+
"hidden": true,
|
|
1297
|
+
"name": "api-base-url-1",
|
|
1298
|
+
"hasDynamicHelp": false,
|
|
1299
|
+
"multiple": false,
|
|
1300
|
+
"type": "option"
|
|
1301
|
+
},
|
|
1302
|
+
"api-base-url-2": {
|
|
1303
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
1304
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
1305
|
+
"hidden": true,
|
|
1306
|
+
"name": "api-base-url-2",
|
|
770
1307
|
"hasDynamicHelp": false,
|
|
771
1308
|
"multiple": false,
|
|
772
1309
|
"type": "option"
|
|
@@ -822,10 +1359,20 @@
|
|
|
822
1359
|
"multiple": false,
|
|
823
1360
|
"type": "option"
|
|
824
1361
|
},
|
|
825
|
-
"base-url": {
|
|
826
|
-
"description": "API base URL
|
|
827
|
-
"env": "
|
|
828
|
-
"
|
|
1362
|
+
"api-base-url-1": {
|
|
1363
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
1364
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
1365
|
+
"hidden": true,
|
|
1366
|
+
"name": "api-base-url-1",
|
|
1367
|
+
"hasDynamicHelp": false,
|
|
1368
|
+
"multiple": false,
|
|
1369
|
+
"type": "option"
|
|
1370
|
+
},
|
|
1371
|
+
"api-base-url-2": {
|
|
1372
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
1373
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
1374
|
+
"hidden": true,
|
|
1375
|
+
"name": "api-base-url-2",
|
|
829
1376
|
"hasDynamicHelp": false,
|
|
830
1377
|
"multiple": false,
|
|
831
1378
|
"type": "option"
|
|
@@ -881,10 +1428,20 @@
|
|
|
881
1428
|
"multiple": false,
|
|
882
1429
|
"type": "option"
|
|
883
1430
|
},
|
|
884
|
-
"base-url": {
|
|
885
|
-
"description": "API base URL
|
|
886
|
-
"env": "
|
|
887
|
-
"
|
|
1431
|
+
"api-base-url-1": {
|
|
1432
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
1433
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
1434
|
+
"hidden": true,
|
|
1435
|
+
"name": "api-base-url-1",
|
|
1436
|
+
"hasDynamicHelp": false,
|
|
1437
|
+
"multiple": false,
|
|
1438
|
+
"type": "option"
|
|
1439
|
+
},
|
|
1440
|
+
"api-base-url-2": {
|
|
1441
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
1442
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
1443
|
+
"hidden": true,
|
|
1444
|
+
"name": "api-base-url-2",
|
|
888
1445
|
"hasDynamicHelp": false,
|
|
889
1446
|
"multiple": false,
|
|
890
1447
|
"type": "option"
|
|
@@ -940,10 +1497,20 @@
|
|
|
940
1497
|
"multiple": false,
|
|
941
1498
|
"type": "option"
|
|
942
1499
|
},
|
|
943
|
-
"base-url": {
|
|
944
|
-
"description": "API base URL
|
|
945
|
-
"env": "
|
|
946
|
-
"
|
|
1500
|
+
"api-base-url-1": {
|
|
1501
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
1502
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
1503
|
+
"hidden": true,
|
|
1504
|
+
"name": "api-base-url-1",
|
|
1505
|
+
"hasDynamicHelp": false,
|
|
1506
|
+
"multiple": false,
|
|
1507
|
+
"type": "option"
|
|
1508
|
+
},
|
|
1509
|
+
"api-base-url-2": {
|
|
1510
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
1511
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
1512
|
+
"hidden": true,
|
|
1513
|
+
"name": "api-base-url-2",
|
|
947
1514
|
"hasDynamicHelp": false,
|
|
948
1515
|
"multiple": false,
|
|
949
1516
|
"type": "option"
|
|
@@ -986,10 +1553,20 @@
|
|
|
986
1553
|
"multiple": false,
|
|
987
1554
|
"type": "option"
|
|
988
1555
|
},
|
|
989
|
-
"base-url": {
|
|
990
|
-
"description": "API base URL
|
|
991
|
-
"env": "
|
|
992
|
-
"
|
|
1556
|
+
"api-base-url-1": {
|
|
1557
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
1558
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
1559
|
+
"hidden": true,
|
|
1560
|
+
"name": "api-base-url-1",
|
|
1561
|
+
"hasDynamicHelp": false,
|
|
1562
|
+
"multiple": false,
|
|
1563
|
+
"type": "option"
|
|
1564
|
+
},
|
|
1565
|
+
"api-base-url-2": {
|
|
1566
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
1567
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
1568
|
+
"hidden": true,
|
|
1569
|
+
"name": "api-base-url-2",
|
|
993
1570
|
"hasDynamicHelp": false,
|
|
994
1571
|
"multiple": false,
|
|
995
1572
|
"type": "option"
|
|
@@ -1024,10 +1601,20 @@
|
|
|
1024
1601
|
"multiple": false,
|
|
1025
1602
|
"type": "option"
|
|
1026
1603
|
},
|
|
1027
|
-
"base-url": {
|
|
1028
|
-
"description": "API base URL
|
|
1029
|
-
"env": "
|
|
1030
|
-
"
|
|
1604
|
+
"api-base-url-1": {
|
|
1605
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
1606
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
1607
|
+
"hidden": true,
|
|
1608
|
+
"name": "api-base-url-1",
|
|
1609
|
+
"hasDynamicHelp": false,
|
|
1610
|
+
"multiple": false,
|
|
1611
|
+
"type": "option"
|
|
1612
|
+
},
|
|
1613
|
+
"api-base-url-2": {
|
|
1614
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
1615
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
1616
|
+
"hidden": true,
|
|
1617
|
+
"name": "api-base-url-2",
|
|
1031
1618
|
"hasDynamicHelp": false,
|
|
1032
1619
|
"multiple": false,
|
|
1033
1620
|
"type": "option"
|
|
@@ -1097,10 +1684,20 @@
|
|
|
1097
1684
|
"multiple": false,
|
|
1098
1685
|
"type": "option"
|
|
1099
1686
|
},
|
|
1100
|
-
"base-url": {
|
|
1101
|
-
"description": "API base URL
|
|
1102
|
-
"env": "
|
|
1103
|
-
"
|
|
1687
|
+
"api-base-url-1": {
|
|
1688
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
1689
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
1690
|
+
"hidden": true,
|
|
1691
|
+
"name": "api-base-url-1",
|
|
1692
|
+
"hasDynamicHelp": false,
|
|
1693
|
+
"multiple": false,
|
|
1694
|
+
"type": "option"
|
|
1695
|
+
},
|
|
1696
|
+
"api-base-url-2": {
|
|
1697
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
1698
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
1699
|
+
"hidden": true,
|
|
1700
|
+
"name": "api-base-url-2",
|
|
1104
1701
|
"hasDynamicHelp": false,
|
|
1105
1702
|
"multiple": false,
|
|
1106
1703
|
"type": "option"
|
|
@@ -1143,10 +1740,20 @@
|
|
|
1143
1740
|
"multiple": false,
|
|
1144
1741
|
"type": "option"
|
|
1145
1742
|
},
|
|
1146
|
-
"base-url": {
|
|
1147
|
-
"description": "API base URL
|
|
1148
|
-
"env": "
|
|
1149
|
-
"
|
|
1743
|
+
"api-base-url-1": {
|
|
1744
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
1745
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
1746
|
+
"hidden": true,
|
|
1747
|
+
"name": "api-base-url-1",
|
|
1748
|
+
"hasDynamicHelp": false,
|
|
1749
|
+
"multiple": false,
|
|
1750
|
+
"type": "option"
|
|
1751
|
+
},
|
|
1752
|
+
"api-base-url-2": {
|
|
1753
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
1754
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
1755
|
+
"hidden": true,
|
|
1756
|
+
"name": "api-base-url-2",
|
|
1150
1757
|
"hasDynamicHelp": false,
|
|
1151
1758
|
"multiple": false,
|
|
1152
1759
|
"type": "option"
|
|
@@ -1189,10 +1796,20 @@
|
|
|
1189
1796
|
"multiple": false,
|
|
1190
1797
|
"type": "option"
|
|
1191
1798
|
},
|
|
1192
|
-
"base-url": {
|
|
1193
|
-
"description": "API base URL
|
|
1194
|
-
"env": "
|
|
1195
|
-
"
|
|
1799
|
+
"api-base-url-1": {
|
|
1800
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
1801
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
1802
|
+
"hidden": true,
|
|
1803
|
+
"name": "api-base-url-1",
|
|
1804
|
+
"hasDynamicHelp": false,
|
|
1805
|
+
"multiple": false,
|
|
1806
|
+
"type": "option"
|
|
1807
|
+
},
|
|
1808
|
+
"api-base-url-2": {
|
|
1809
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
1810
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
1811
|
+
"hidden": true,
|
|
1812
|
+
"name": "api-base-url-2",
|
|
1196
1813
|
"hasDynamicHelp": false,
|
|
1197
1814
|
"multiple": false,
|
|
1198
1815
|
"type": "option"
|
|
@@ -1235,10 +1852,20 @@
|
|
|
1235
1852
|
"multiple": false,
|
|
1236
1853
|
"type": "option"
|
|
1237
1854
|
},
|
|
1238
|
-
"base-url": {
|
|
1239
|
-
"description": "API base URL
|
|
1240
|
-
"env": "
|
|
1241
|
-
"
|
|
1855
|
+
"api-base-url-1": {
|
|
1856
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
1857
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
1858
|
+
"hidden": true,
|
|
1859
|
+
"name": "api-base-url-1",
|
|
1860
|
+
"hasDynamicHelp": false,
|
|
1861
|
+
"multiple": false,
|
|
1862
|
+
"type": "option"
|
|
1863
|
+
},
|
|
1864
|
+
"api-base-url-2": {
|
|
1865
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
1866
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
1867
|
+
"hidden": true,
|
|
1868
|
+
"name": "api-base-url-2",
|
|
1242
1869
|
"hasDynamicHelp": false,
|
|
1243
1870
|
"multiple": false,
|
|
1244
1871
|
"type": "option"
|
|
@@ -1296,10 +1923,91 @@
|
|
|
1296
1923
|
"multiple": false,
|
|
1297
1924
|
"type": "option"
|
|
1298
1925
|
},
|
|
1299
|
-
"base-url": {
|
|
1300
|
-
"description": "API base URL
|
|
1301
|
-
"env": "
|
|
1302
|
-
"
|
|
1926
|
+
"api-base-url-1": {
|
|
1927
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
1928
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
1929
|
+
"hidden": true,
|
|
1930
|
+
"name": "api-base-url-1",
|
|
1931
|
+
"hasDynamicHelp": false,
|
|
1932
|
+
"multiple": false,
|
|
1933
|
+
"type": "option"
|
|
1934
|
+
},
|
|
1935
|
+
"api-base-url-2": {
|
|
1936
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
1937
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
1938
|
+
"hidden": true,
|
|
1939
|
+
"name": "api-base-url-2",
|
|
1940
|
+
"hasDynamicHelp": false,
|
|
1941
|
+
"multiple": false,
|
|
1942
|
+
"type": "option"
|
|
1943
|
+
},
|
|
1944
|
+
"time": {
|
|
1945
|
+
"description": "Print the wall-clock duration of this command to stderr after it completes (e.g. `[time: 1.34s]`). Useful for measuring `--wait` send latency, comparing CLI overhead, or capturing timing in scripts.",
|
|
1946
|
+
"name": "time",
|
|
1947
|
+
"allowNo": false,
|
|
1948
|
+
"type": "boolean"
|
|
1949
|
+
},
|
|
1950
|
+
"id": {
|
|
1951
|
+
"description": "Resource UUID",
|
|
1952
|
+
"name": "id",
|
|
1953
|
+
"required": true,
|
|
1954
|
+
"hasDynamicHelp": false,
|
|
1955
|
+
"multiple": false,
|
|
1956
|
+
"type": "option"
|
|
1957
|
+
},
|
|
1958
|
+
"token": {
|
|
1959
|
+
"description": "Signed download token from webhook payload",
|
|
1960
|
+
"name": "token",
|
|
1961
|
+
"required": false,
|
|
1962
|
+
"hasDynamicHelp": false,
|
|
1963
|
+
"multiple": false,
|
|
1964
|
+
"type": "option"
|
|
1965
|
+
},
|
|
1966
|
+
"output": {
|
|
1967
|
+
"description": "Write binary response bytes to a file",
|
|
1968
|
+
"name": "output",
|
|
1969
|
+
"hasDynamicHelp": false,
|
|
1970
|
+
"multiple": false,
|
|
1971
|
+
"type": "option"
|
|
1972
|
+
}
|
|
1973
|
+
},
|
|
1974
|
+
"hasDynamicHelp": false,
|
|
1975
|
+
"hiddenAliases": [],
|
|
1976
|
+
"id": "emails:download-raw-email",
|
|
1977
|
+
"pluginAlias": "@primitivedotdev/sdk",
|
|
1978
|
+
"pluginName": "@primitivedotdev/sdk",
|
|
1979
|
+
"pluginType": "core",
|
|
1980
|
+
"strict": true,
|
|
1981
|
+
"summary": "Download raw email",
|
|
1982
|
+
"enableJsonFlag": false
|
|
1983
|
+
},
|
|
1984
|
+
"emails:get-email": {
|
|
1985
|
+
"aliases": [],
|
|
1986
|
+
"args": {},
|
|
1987
|
+
"description": "Returns the full record for an inbound email received at one\nof your verified domains, including the parsed text and HTML\nbodies, threading metadata, SMTP envelope detail, webhook\ndelivery state, and a `replies` array for any outbound sends\nrecorded as replies to this inbound.\n\nFor listing inbound emails (with cursor pagination, status\nand date filters, and free-text search), use\n`/emails`. Outbound (sent) email records are NOT returned\nhere; use `/sent-emails/{id}` for those.\n\nThe response carries four sender-shaped fields whose\nmeanings overlap. `from_email` is the canonical \"who sent\nthis\" field for most use cases (parsed bare address from\nthe `From:` header, with a `sender` fallback). `from_header`\nis the raw header including any display name. `sender` and\n`smtp_mail_from` both carry the SMTP envelope MAIL FROM\n(return-path) and are equal by construction; `sender` is\nthe older field name retained for compatibility. See\n`primitive describe emails:get-email | jq '.responseSchema.properties'`\nfor per-field detail.\n",
|
|
1988
|
+
"flags": {
|
|
1989
|
+
"api-key": {
|
|
1990
|
+
"description": "Primitive API key (defaults to PRIMITIVE_API_KEY or saved `primitive login` credentials)",
|
|
1991
|
+
"env": "PRIMITIVE_API_KEY",
|
|
1992
|
+
"name": "api-key",
|
|
1993
|
+
"hasDynamicHelp": false,
|
|
1994
|
+
"multiple": false,
|
|
1995
|
+
"type": "option"
|
|
1996
|
+
},
|
|
1997
|
+
"api-base-url-1": {
|
|
1998
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
1999
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
2000
|
+
"hidden": true,
|
|
2001
|
+
"name": "api-base-url-1",
|
|
2002
|
+
"hasDynamicHelp": false,
|
|
2003
|
+
"multiple": false,
|
|
2004
|
+
"type": "option"
|
|
2005
|
+
},
|
|
2006
|
+
"api-base-url-2": {
|
|
2007
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
2008
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
2009
|
+
"hidden": true,
|
|
2010
|
+
"name": "api-base-url-2",
|
|
1303
2011
|
"hasDynamicHelp": false,
|
|
1304
2012
|
"multiple": false,
|
|
1305
2013
|
"type": "option"
|
|
@@ -1317,18 +2025,107 @@
|
|
|
1317
2025
|
"hasDynamicHelp": false,
|
|
1318
2026
|
"multiple": false,
|
|
1319
2027
|
"type": "option"
|
|
2028
|
+
}
|
|
2029
|
+
},
|
|
2030
|
+
"hasDynamicHelp": false,
|
|
2031
|
+
"hiddenAliases": [],
|
|
2032
|
+
"id": "emails:get-email",
|
|
2033
|
+
"pluginAlias": "@primitivedotdev/sdk",
|
|
2034
|
+
"pluginName": "@primitivedotdev/sdk",
|
|
2035
|
+
"pluginType": "core",
|
|
2036
|
+
"strict": true,
|
|
2037
|
+
"summary": "Get inbound email by id",
|
|
2038
|
+
"enableJsonFlag": false
|
|
2039
|
+
},
|
|
2040
|
+
"emails:list-emails": {
|
|
2041
|
+
"aliases": [],
|
|
2042
|
+
"args": {},
|
|
2043
|
+
"description": "Returns a paginated list of INBOUND emails received at your\nverified domains. Outbound messages sent via /send-mail are\nnot included; this endpoint is the inbox view, not a\nunified send/receive history.\n\nSupports filtering by domain, status, date range, and\nfree-text search across subject, sender, and recipient\nfields.\n\nFor a compact text-table summary of the most recent N\ninbounds (no filters, no cursor pagination), the CLI ships\n`primitive emails:latest` as a one-line-per-email shortcut.\nIt's TTY-aware so id columns are full UUIDs when piped, and\na `--json` flag returns the same envelope this endpoint\ndoes. Use whichever fits the call site.\n",
|
|
2044
|
+
"flags": {
|
|
2045
|
+
"api-key": {
|
|
2046
|
+
"description": "Primitive API key (defaults to PRIMITIVE_API_KEY or saved `primitive login` credentials)",
|
|
2047
|
+
"env": "PRIMITIVE_API_KEY",
|
|
2048
|
+
"name": "api-key",
|
|
2049
|
+
"hasDynamicHelp": false,
|
|
2050
|
+
"multiple": false,
|
|
2051
|
+
"type": "option"
|
|
2052
|
+
},
|
|
2053
|
+
"api-base-url-1": {
|
|
2054
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
2055
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
2056
|
+
"hidden": true,
|
|
2057
|
+
"name": "api-base-url-1",
|
|
2058
|
+
"hasDynamicHelp": false,
|
|
2059
|
+
"multiple": false,
|
|
2060
|
+
"type": "option"
|
|
2061
|
+
},
|
|
2062
|
+
"api-base-url-2": {
|
|
2063
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
2064
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
2065
|
+
"hidden": true,
|
|
2066
|
+
"name": "api-base-url-2",
|
|
2067
|
+
"hasDynamicHelp": false,
|
|
2068
|
+
"multiple": false,
|
|
2069
|
+
"type": "option"
|
|
2070
|
+
},
|
|
2071
|
+
"time": {
|
|
2072
|
+
"description": "Print the wall-clock duration of this command to stderr after it completes (e.g. `[time: 1.34s]`). Useful for measuring `--wait` send latency, comparing CLI overhead, or capturing timing in scripts.",
|
|
2073
|
+
"name": "time",
|
|
2074
|
+
"allowNo": false,
|
|
2075
|
+
"type": "boolean"
|
|
2076
|
+
},
|
|
2077
|
+
"cursor": {
|
|
2078
|
+
"description": "Pagination cursor from a previous response's `meta.cursor` field.\nFormat: `{ISO-datetime}|{id}`\n",
|
|
2079
|
+
"name": "cursor",
|
|
2080
|
+
"required": false,
|
|
2081
|
+
"hasDynamicHelp": false,
|
|
2082
|
+
"multiple": false,
|
|
2083
|
+
"type": "option"
|
|
2084
|
+
},
|
|
2085
|
+
"limit": {
|
|
2086
|
+
"description": "Number of results per page",
|
|
2087
|
+
"name": "limit",
|
|
2088
|
+
"required": false,
|
|
2089
|
+
"hasDynamicHelp": false,
|
|
2090
|
+
"multiple": false,
|
|
2091
|
+
"type": "option"
|
|
2092
|
+
},
|
|
2093
|
+
"domain-id": {
|
|
2094
|
+
"description": "Filter by domain ID",
|
|
2095
|
+
"name": "domain-id",
|
|
2096
|
+
"required": false,
|
|
2097
|
+
"hasDynamicHelp": false,
|
|
2098
|
+
"multiple": false,
|
|
2099
|
+
"type": "option"
|
|
2100
|
+
},
|
|
2101
|
+
"status": {
|
|
2102
|
+
"description": "Filter inbound rows by lifecycle status. See `EmailStatus`\nfor what each value means. Note that the webhook delivery\nstate is a SEPARATE lifecycle on the same row; filter by\n`webhook_status` semantics is not currently supported on\nthis endpoint.\n",
|
|
2103
|
+
"name": "status",
|
|
2104
|
+
"required": false,
|
|
2105
|
+
"hasDynamicHelp": false,
|
|
2106
|
+
"multiple": false,
|
|
2107
|
+
"type": "option"
|
|
2108
|
+
},
|
|
2109
|
+
"search": {
|
|
2110
|
+
"description": "Search subject, sender, and recipient (case-insensitive)",
|
|
2111
|
+
"name": "search",
|
|
2112
|
+
"required": false,
|
|
2113
|
+
"hasDynamicHelp": false,
|
|
2114
|
+
"multiple": false,
|
|
2115
|
+
"type": "option"
|
|
1320
2116
|
},
|
|
1321
|
-
"
|
|
1322
|
-
"description": "
|
|
1323
|
-
"name": "
|
|
2117
|
+
"date-from": {
|
|
2118
|
+
"description": "Filter emails created on or after this timestamp",
|
|
2119
|
+
"name": "date-from",
|
|
1324
2120
|
"required": false,
|
|
1325
2121
|
"hasDynamicHelp": false,
|
|
1326
2122
|
"multiple": false,
|
|
1327
2123
|
"type": "option"
|
|
1328
2124
|
},
|
|
1329
|
-
"
|
|
1330
|
-
"description": "
|
|
1331
|
-
"name": "
|
|
2125
|
+
"date-to": {
|
|
2126
|
+
"description": "Filter emails created on or before this timestamp",
|
|
2127
|
+
"name": "date-to",
|
|
2128
|
+
"required": false,
|
|
1332
2129
|
"hasDynamicHelp": false,
|
|
1333
2130
|
"multiple": false,
|
|
1334
2131
|
"type": "option"
|
|
@@ -1336,18 +2133,18 @@
|
|
|
1336
2133
|
},
|
|
1337
2134
|
"hasDynamicHelp": false,
|
|
1338
2135
|
"hiddenAliases": [],
|
|
1339
|
-
"id": "emails:
|
|
2136
|
+
"id": "emails:list-emails",
|
|
1340
2137
|
"pluginAlias": "@primitivedotdev/sdk",
|
|
1341
2138
|
"pluginName": "@primitivedotdev/sdk",
|
|
1342
2139
|
"pluginType": "core",
|
|
1343
2140
|
"strict": true,
|
|
1344
|
-
"summary": "
|
|
2141
|
+
"summary": "List inbound emails",
|
|
1345
2142
|
"enableJsonFlag": false
|
|
1346
2143
|
},
|
|
1347
|
-
"emails:
|
|
2144
|
+
"emails:replay-email-webhooks": {
|
|
1348
2145
|
"aliases": [],
|
|
1349
2146
|
"args": {},
|
|
1350
|
-
"description": "
|
|
2147
|
+
"description": "Re-delivers the webhook payload for this email to all active\nendpoints matching the email's domain. Rate limited per-email\n(short cooldown between successive replays of the same email)\nand per-org (burst + sustained windows), sharing an org-wide\nbudget with delivery replays.\n",
|
|
1351
2148
|
"flags": {
|
|
1352
2149
|
"api-key": {
|
|
1353
2150
|
"description": "Primitive API key (defaults to PRIMITIVE_API_KEY or saved `primitive login` credentials)",
|
|
@@ -1357,10 +2154,20 @@
|
|
|
1357
2154
|
"multiple": false,
|
|
1358
2155
|
"type": "option"
|
|
1359
2156
|
},
|
|
1360
|
-
"base-url": {
|
|
1361
|
-
"description": "API base URL
|
|
1362
|
-
"env": "
|
|
1363
|
-
"
|
|
2157
|
+
"api-base-url-1": {
|
|
2158
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
2159
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
2160
|
+
"hidden": true,
|
|
2161
|
+
"name": "api-base-url-1",
|
|
2162
|
+
"hasDynamicHelp": false,
|
|
2163
|
+
"multiple": false,
|
|
2164
|
+
"type": "option"
|
|
2165
|
+
},
|
|
2166
|
+
"api-base-url-2": {
|
|
2167
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
2168
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
2169
|
+
"hidden": true,
|
|
2170
|
+
"name": "api-base-url-2",
|
|
1364
2171
|
"hasDynamicHelp": false,
|
|
1365
2172
|
"multiple": false,
|
|
1366
2173
|
"type": "option"
|
|
@@ -1382,18 +2189,18 @@
|
|
|
1382
2189
|
},
|
|
1383
2190
|
"hasDynamicHelp": false,
|
|
1384
2191
|
"hiddenAliases": [],
|
|
1385
|
-
"id": "emails:
|
|
2192
|
+
"id": "emails:replay-email-webhooks",
|
|
1386
2193
|
"pluginAlias": "@primitivedotdev/sdk",
|
|
1387
2194
|
"pluginName": "@primitivedotdev/sdk",
|
|
1388
2195
|
"pluginType": "core",
|
|
1389
2196
|
"strict": true,
|
|
1390
|
-
"summary": "
|
|
2197
|
+
"summary": "Replay email webhooks",
|
|
1391
2198
|
"enableJsonFlag": false
|
|
1392
2199
|
},
|
|
1393
|
-
"emails:
|
|
2200
|
+
"emails:search-emails": {
|
|
1394
2201
|
"aliases": [],
|
|
1395
2202
|
"args": {},
|
|
1396
|
-
"description": "
|
|
2203
|
+
"description": "Searches inbound emails with structured filters and optional\nfull-text matching across parsed email fields. This endpoint is\noptimized for filtered inbox views and CLI polling workflows:\ncallers that only need new accepted mail can pass\n`sort=received_at_asc`, `snippet=false`, `include_facets=false`,\nand a `date_from` timestamp.\n\n`q`, `subject`, and `body` use the same English full-text index\nas the web inbox search. Structured filters such as `from`, `to`,\n`domain_id`, status, attachment presence, and spam score bounds\nare combined with the text query.\n",
|
|
1397
2204
|
"flags": {
|
|
1398
2205
|
"api-key": {
|
|
1399
2206
|
"description": "Primitive API key (defaults to PRIMITIVE_API_KEY or saved `primitive login` credentials)",
|
|
@@ -1403,10 +2210,20 @@
|
|
|
1403
2210
|
"multiple": false,
|
|
1404
2211
|
"type": "option"
|
|
1405
2212
|
},
|
|
1406
|
-
"base-url": {
|
|
1407
|
-
"description": "API base URL
|
|
1408
|
-
"env": "
|
|
1409
|
-
"
|
|
2213
|
+
"api-base-url-1": {
|
|
2214
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
2215
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
2216
|
+
"hidden": true,
|
|
2217
|
+
"name": "api-base-url-1",
|
|
2218
|
+
"hasDynamicHelp": false,
|
|
2219
|
+
"multiple": false,
|
|
2220
|
+
"type": "option"
|
|
2221
|
+
},
|
|
2222
|
+
"api-base-url-2": {
|
|
2223
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
2224
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
2225
|
+
"hidden": true,
|
|
2226
|
+
"name": "api-base-url-2",
|
|
1410
2227
|
"hasDynamicHelp": false,
|
|
1411
2228
|
"multiple": false,
|
|
1412
2229
|
"type": "option"
|
|
@@ -1417,48 +2234,64 @@
|
|
|
1417
2234
|
"allowNo": false,
|
|
1418
2235
|
"type": "boolean"
|
|
1419
2236
|
},
|
|
1420
|
-
"
|
|
1421
|
-
"description": "
|
|
1422
|
-
"name": "
|
|
2237
|
+
"q": {
|
|
2238
|
+
"description": "Full-text search DSL query.",
|
|
2239
|
+
"name": "q",
|
|
1423
2240
|
"required": false,
|
|
1424
2241
|
"hasDynamicHelp": false,
|
|
1425
2242
|
"multiple": false,
|
|
1426
2243
|
"type": "option"
|
|
1427
2244
|
},
|
|
1428
|
-
"
|
|
1429
|
-
"description": "
|
|
1430
|
-
"name": "
|
|
2245
|
+
"from": {
|
|
2246
|
+
"description": "Filter by sender address or sender domain.",
|
|
2247
|
+
"name": "from",
|
|
1431
2248
|
"required": false,
|
|
1432
2249
|
"hasDynamicHelp": false,
|
|
1433
2250
|
"multiple": false,
|
|
1434
2251
|
"type": "option"
|
|
1435
2252
|
},
|
|
1436
|
-
"
|
|
1437
|
-
"description": "Filter by domain
|
|
1438
|
-
"name": "
|
|
2253
|
+
"to": {
|
|
2254
|
+
"description": "Filter by recipient address or recipient domain.",
|
|
2255
|
+
"name": "to",
|
|
1439
2256
|
"required": false,
|
|
1440
2257
|
"hasDynamicHelp": false,
|
|
1441
2258
|
"multiple": false,
|
|
1442
2259
|
"type": "option"
|
|
1443
2260
|
},
|
|
1444
|
-
"
|
|
1445
|
-
"description": "
|
|
1446
|
-
"name": "
|
|
2261
|
+
"subject": {
|
|
2262
|
+
"description": "Full-text search restricted to the subject field.",
|
|
2263
|
+
"name": "subject",
|
|
1447
2264
|
"required": false,
|
|
1448
2265
|
"hasDynamicHelp": false,
|
|
1449
2266
|
"multiple": false,
|
|
1450
2267
|
"type": "option"
|
|
1451
2268
|
},
|
|
1452
|
-
"
|
|
1453
|
-
"description": "
|
|
1454
|
-
"name": "
|
|
2269
|
+
"body": {
|
|
2270
|
+
"description": "Full-text search restricted to the parsed text body.",
|
|
2271
|
+
"name": "body",
|
|
2272
|
+
"required": false,
|
|
2273
|
+
"hasDynamicHelp": false,
|
|
2274
|
+
"multiple": false,
|
|
2275
|
+
"type": "option"
|
|
2276
|
+
},
|
|
2277
|
+
"domain-id": {
|
|
2278
|
+
"description": "Filter by domain ID.",
|
|
2279
|
+
"name": "domain-id",
|
|
2280
|
+
"required": false,
|
|
2281
|
+
"hasDynamicHelp": false,
|
|
2282
|
+
"multiple": false,
|
|
2283
|
+
"type": "option"
|
|
2284
|
+
},
|
|
2285
|
+
"status": {
|
|
2286
|
+
"description": "Filter by inbound email lifecycle status.",
|
|
2287
|
+
"name": "status",
|
|
1455
2288
|
"required": false,
|
|
1456
2289
|
"hasDynamicHelp": false,
|
|
1457
2290
|
"multiple": false,
|
|
1458
2291
|
"type": "option"
|
|
1459
2292
|
},
|
|
1460
2293
|
"date-from": {
|
|
1461
|
-
"description": "Filter emails
|
|
2294
|
+
"description": "Filter emails received on or after this timestamp.",
|
|
1462
2295
|
"name": "date-from",
|
|
1463
2296
|
"required": false,
|
|
1464
2297
|
"hasDynamicHelp": false,
|
|
@@ -1466,68 +2299,103 @@
|
|
|
1466
2299
|
"type": "option"
|
|
1467
2300
|
},
|
|
1468
2301
|
"date-to": {
|
|
1469
|
-
"description": "Filter emails
|
|
2302
|
+
"description": "Filter emails received on or before this timestamp.",
|
|
1470
2303
|
"name": "date-to",
|
|
1471
2304
|
"required": false,
|
|
1472
2305
|
"hasDynamicHelp": false,
|
|
1473
2306
|
"multiple": false,
|
|
1474
2307
|
"type": "option"
|
|
1475
|
-
}
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
"pluginAlias": "@primitivedotdev/sdk",
|
|
1481
|
-
"pluginName": "@primitivedotdev/sdk",
|
|
1482
|
-
"pluginType": "core",
|
|
1483
|
-
"strict": true,
|
|
1484
|
-
"summary": "List inbound emails",
|
|
1485
|
-
"enableJsonFlag": false
|
|
1486
|
-
},
|
|
1487
|
-
"emails:replay-email-webhooks": {
|
|
1488
|
-
"aliases": [],
|
|
1489
|
-
"args": {},
|
|
1490
|
-
"description": "Re-delivers the webhook payload for this email to all active\nendpoints matching the email's domain. Rate limited per-email\n(short cooldown between successive replays of the same email)\nand per-org (burst + sustained windows), sharing an org-wide\nbudget with delivery replays.\n",
|
|
1491
|
-
"flags": {
|
|
1492
|
-
"api-key": {
|
|
1493
|
-
"description": "Primitive API key (defaults to PRIMITIVE_API_KEY or saved `primitive login` credentials)",
|
|
1494
|
-
"env": "PRIMITIVE_API_KEY",
|
|
1495
|
-
"name": "api-key",
|
|
2308
|
+
},
|
|
2309
|
+
"has-attachment": {
|
|
2310
|
+
"description": "Filter by whether the email has one or more attachments.",
|
|
2311
|
+
"name": "has-attachment",
|
|
2312
|
+
"required": false,
|
|
1496
2313
|
"hasDynamicHelp": false,
|
|
1497
2314
|
"multiple": false,
|
|
2315
|
+
"options": [
|
|
2316
|
+
"true",
|
|
2317
|
+
"false"
|
|
2318
|
+
],
|
|
1498
2319
|
"type": "option"
|
|
1499
2320
|
},
|
|
1500
|
-
"
|
|
1501
|
-
"description": "
|
|
1502
|
-
"
|
|
1503
|
-
"
|
|
2321
|
+
"spam-score-lt": {
|
|
2322
|
+
"description": "Filter to emails with spam score below this value.",
|
|
2323
|
+
"name": "spam-score-lt",
|
|
2324
|
+
"required": false,
|
|
1504
2325
|
"hasDynamicHelp": false,
|
|
1505
2326
|
"multiple": false,
|
|
1506
2327
|
"type": "option"
|
|
1507
2328
|
},
|
|
1508
|
-
"
|
|
1509
|
-
"description": "
|
|
1510
|
-
"name": "
|
|
1511
|
-
"
|
|
1512
|
-
"
|
|
2329
|
+
"spam-score-gte": {
|
|
2330
|
+
"description": "Filter to emails with spam score greater than or equal to this value.",
|
|
2331
|
+
"name": "spam-score-gte",
|
|
2332
|
+
"required": false,
|
|
2333
|
+
"hasDynamicHelp": false,
|
|
2334
|
+
"multiple": false,
|
|
2335
|
+
"type": "option"
|
|
1513
2336
|
},
|
|
1514
|
-
"
|
|
1515
|
-
"description": "
|
|
1516
|
-
"name": "
|
|
1517
|
-
"required":
|
|
2337
|
+
"sort": {
|
|
2338
|
+
"description": "Sort mode. Defaults to relevance when a text query is present,\notherwise `received_at_desc`.\n",
|
|
2339
|
+
"name": "sort",
|
|
2340
|
+
"required": false,
|
|
2341
|
+
"hasDynamicHelp": false,
|
|
2342
|
+
"multiple": false,
|
|
2343
|
+
"options": [
|
|
2344
|
+
"relevance",
|
|
2345
|
+
"received_at_desc",
|
|
2346
|
+
"received_at_asc"
|
|
2347
|
+
],
|
|
2348
|
+
"type": "option"
|
|
2349
|
+
},
|
|
2350
|
+
"cursor": {
|
|
2351
|
+
"description": "Opaque pagination cursor from a previous search response.",
|
|
2352
|
+
"name": "cursor",
|
|
2353
|
+
"required": false,
|
|
1518
2354
|
"hasDynamicHelp": false,
|
|
1519
2355
|
"multiple": false,
|
|
1520
2356
|
"type": "option"
|
|
2357
|
+
},
|
|
2358
|
+
"limit": {
|
|
2359
|
+
"description": "Number of results per page",
|
|
2360
|
+
"name": "limit",
|
|
2361
|
+
"required": false,
|
|
2362
|
+
"hasDynamicHelp": false,
|
|
2363
|
+
"multiple": false,
|
|
2364
|
+
"type": "option"
|
|
2365
|
+
},
|
|
2366
|
+
"snippet": {
|
|
2367
|
+
"description": "Include subject/body highlight snippets when text search is active.",
|
|
2368
|
+
"name": "snippet",
|
|
2369
|
+
"required": false,
|
|
2370
|
+
"hasDynamicHelp": false,
|
|
2371
|
+
"multiple": false,
|
|
2372
|
+
"options": [
|
|
2373
|
+
"true",
|
|
2374
|
+
"false"
|
|
2375
|
+
],
|
|
2376
|
+
"type": "option"
|
|
2377
|
+
},
|
|
2378
|
+
"include-facets": {
|
|
2379
|
+
"description": "Include facet counts for sender, domain, status, and attachment presence.",
|
|
2380
|
+
"name": "include-facets",
|
|
2381
|
+
"required": false,
|
|
2382
|
+
"hasDynamicHelp": false,
|
|
2383
|
+
"multiple": false,
|
|
2384
|
+
"options": [
|
|
2385
|
+
"true",
|
|
2386
|
+
"false"
|
|
2387
|
+
],
|
|
2388
|
+
"type": "option"
|
|
1521
2389
|
}
|
|
1522
2390
|
},
|
|
1523
2391
|
"hasDynamicHelp": false,
|
|
1524
2392
|
"hiddenAliases": [],
|
|
1525
|
-
"id": "emails:
|
|
2393
|
+
"id": "emails:search-emails",
|
|
1526
2394
|
"pluginAlias": "@primitivedotdev/sdk",
|
|
1527
2395
|
"pluginName": "@primitivedotdev/sdk",
|
|
1528
2396
|
"pluginType": "core",
|
|
1529
2397
|
"strict": true,
|
|
1530
|
-
"summary": "
|
|
2398
|
+
"summary": "Search inbound emails",
|
|
1531
2399
|
"enableJsonFlag": false
|
|
1532
2400
|
},
|
|
1533
2401
|
"endpoints:create-endpoint": {
|
|
@@ -1543,10 +2411,20 @@
|
|
|
1543
2411
|
"multiple": false,
|
|
1544
2412
|
"type": "option"
|
|
1545
2413
|
},
|
|
1546
|
-
"base-url": {
|
|
1547
|
-
"description": "API base URL
|
|
1548
|
-
"env": "
|
|
1549
|
-
"
|
|
2414
|
+
"api-base-url-1": {
|
|
2415
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
2416
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
2417
|
+
"hidden": true,
|
|
2418
|
+
"name": "api-base-url-1",
|
|
2419
|
+
"hasDynamicHelp": false,
|
|
2420
|
+
"multiple": false,
|
|
2421
|
+
"type": "option"
|
|
2422
|
+
},
|
|
2423
|
+
"api-base-url-2": {
|
|
2424
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
2425
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
2426
|
+
"hidden": true,
|
|
2427
|
+
"name": "api-base-url-2",
|
|
1550
2428
|
"hasDynamicHelp": false,
|
|
1551
2429
|
"multiple": false,
|
|
1552
2430
|
"type": "option"
|
|
@@ -1615,10 +2493,20 @@
|
|
|
1615
2493
|
"multiple": false,
|
|
1616
2494
|
"type": "option"
|
|
1617
2495
|
},
|
|
1618
|
-
"base-url": {
|
|
1619
|
-
"description": "API base URL
|
|
1620
|
-
"env": "
|
|
1621
|
-
"
|
|
2496
|
+
"api-base-url-1": {
|
|
2497
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
2498
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
2499
|
+
"hidden": true,
|
|
2500
|
+
"name": "api-base-url-1",
|
|
2501
|
+
"hasDynamicHelp": false,
|
|
2502
|
+
"multiple": false,
|
|
2503
|
+
"type": "option"
|
|
2504
|
+
},
|
|
2505
|
+
"api-base-url-2": {
|
|
2506
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
2507
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
2508
|
+
"hidden": true,
|
|
2509
|
+
"name": "api-base-url-2",
|
|
1622
2510
|
"hasDynamicHelp": false,
|
|
1623
2511
|
"multiple": false,
|
|
1624
2512
|
"type": "option"
|
|
@@ -1661,10 +2549,20 @@
|
|
|
1661
2549
|
"multiple": false,
|
|
1662
2550
|
"type": "option"
|
|
1663
2551
|
},
|
|
1664
|
-
"base-url": {
|
|
1665
|
-
"description": "API base URL
|
|
1666
|
-
"env": "
|
|
1667
|
-
"
|
|
2552
|
+
"api-base-url-1": {
|
|
2553
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
2554
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
2555
|
+
"hidden": true,
|
|
2556
|
+
"name": "api-base-url-1",
|
|
2557
|
+
"hasDynamicHelp": false,
|
|
2558
|
+
"multiple": false,
|
|
2559
|
+
"type": "option"
|
|
2560
|
+
},
|
|
2561
|
+
"api-base-url-2": {
|
|
2562
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
2563
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
2564
|
+
"hidden": true,
|
|
2565
|
+
"name": "api-base-url-2",
|
|
1668
2566
|
"hasDynamicHelp": false,
|
|
1669
2567
|
"multiple": false,
|
|
1670
2568
|
"type": "option"
|
|
@@ -1699,10 +2597,20 @@
|
|
|
1699
2597
|
"multiple": false,
|
|
1700
2598
|
"type": "option"
|
|
1701
2599
|
},
|
|
1702
|
-
"base-url": {
|
|
1703
|
-
"description": "API base URL
|
|
1704
|
-
"env": "
|
|
1705
|
-
"
|
|
2600
|
+
"api-base-url-1": {
|
|
2601
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
2602
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
2603
|
+
"hidden": true,
|
|
2604
|
+
"name": "api-base-url-1",
|
|
2605
|
+
"hasDynamicHelp": false,
|
|
2606
|
+
"multiple": false,
|
|
2607
|
+
"type": "option"
|
|
2608
|
+
},
|
|
2609
|
+
"api-base-url-2": {
|
|
2610
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
2611
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
2612
|
+
"hidden": true,
|
|
2613
|
+
"name": "api-base-url-2",
|
|
1706
2614
|
"hasDynamicHelp": false,
|
|
1707
2615
|
"multiple": false,
|
|
1708
2616
|
"type": "option"
|
|
@@ -1745,10 +2653,20 @@
|
|
|
1745
2653
|
"multiple": false,
|
|
1746
2654
|
"type": "option"
|
|
1747
2655
|
},
|
|
1748
|
-
"base-url": {
|
|
1749
|
-
"description": "API base URL
|
|
1750
|
-
"env": "
|
|
1751
|
-
"
|
|
2656
|
+
"api-base-url-1": {
|
|
2657
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
2658
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
2659
|
+
"hidden": true,
|
|
2660
|
+
"name": "api-base-url-1",
|
|
2661
|
+
"hasDynamicHelp": false,
|
|
2662
|
+
"multiple": false,
|
|
2663
|
+
"type": "option"
|
|
2664
|
+
},
|
|
2665
|
+
"api-base-url-2": {
|
|
2666
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
2667
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
2668
|
+
"hidden": true,
|
|
2669
|
+
"name": "api-base-url-2",
|
|
1752
2670
|
"hasDynamicHelp": false,
|
|
1753
2671
|
"multiple": false,
|
|
1754
2672
|
"type": "option"
|
|
@@ -1825,10 +2743,20 @@
|
|
|
1825
2743
|
"multiple": false,
|
|
1826
2744
|
"type": "option"
|
|
1827
2745
|
},
|
|
1828
|
-
"base-url": {
|
|
1829
|
-
"description": "API base URL
|
|
1830
|
-
"env": "
|
|
1831
|
-
"
|
|
2746
|
+
"api-base-url-1": {
|
|
2747
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
2748
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
2749
|
+
"hidden": true,
|
|
2750
|
+
"name": "api-base-url-1",
|
|
2751
|
+
"hasDynamicHelp": false,
|
|
2752
|
+
"multiple": false,
|
|
2753
|
+
"type": "option"
|
|
2754
|
+
},
|
|
2755
|
+
"api-base-url-2": {
|
|
2756
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
2757
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
2758
|
+
"hidden": true,
|
|
2759
|
+
"name": "api-base-url-2",
|
|
1832
2760
|
"hasDynamicHelp": false,
|
|
1833
2761
|
"multiple": false,
|
|
1834
2762
|
"type": "option"
|
|
@@ -1902,10 +2830,20 @@
|
|
|
1902
2830
|
"multiple": false,
|
|
1903
2831
|
"type": "option"
|
|
1904
2832
|
},
|
|
1905
|
-
"base-url": {
|
|
1906
|
-
"description": "API base URL
|
|
1907
|
-
"env": "
|
|
1908
|
-
"
|
|
2833
|
+
"api-base-url-1": {
|
|
2834
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
2835
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
2836
|
+
"hidden": true,
|
|
2837
|
+
"name": "api-base-url-1",
|
|
2838
|
+
"hasDynamicHelp": false,
|
|
2839
|
+
"multiple": false,
|
|
2840
|
+
"type": "option"
|
|
2841
|
+
},
|
|
2842
|
+
"api-base-url-2": {
|
|
2843
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
2844
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
2845
|
+
"hidden": true,
|
|
2846
|
+
"name": "api-base-url-2",
|
|
1909
2847
|
"hasDynamicHelp": false,
|
|
1910
2848
|
"multiple": false,
|
|
1911
2849
|
"type": "option"
|
|
@@ -1948,10 +2886,20 @@
|
|
|
1948
2886
|
"multiple": false,
|
|
1949
2887
|
"type": "option"
|
|
1950
2888
|
},
|
|
1951
|
-
"base-url": {
|
|
1952
|
-
"description": "API base URL
|
|
1953
|
-
"env": "
|
|
1954
|
-
"
|
|
2889
|
+
"api-base-url-1": {
|
|
2890
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
2891
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
2892
|
+
"hidden": true,
|
|
2893
|
+
"name": "api-base-url-1",
|
|
2894
|
+
"hasDynamicHelp": false,
|
|
2895
|
+
"multiple": false,
|
|
2896
|
+
"type": "option"
|
|
2897
|
+
},
|
|
2898
|
+
"api-base-url-2": {
|
|
2899
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
2900
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
2901
|
+
"hidden": true,
|
|
2902
|
+
"name": "api-base-url-2",
|
|
1955
2903
|
"hasDynamicHelp": false,
|
|
1956
2904
|
"multiple": false,
|
|
1957
2905
|
"type": "option"
|
|
@@ -1986,10 +2934,20 @@
|
|
|
1986
2934
|
"multiple": false,
|
|
1987
2935
|
"type": "option"
|
|
1988
2936
|
},
|
|
1989
|
-
"base-url": {
|
|
1990
|
-
"description": "API base URL
|
|
1991
|
-
"env": "
|
|
1992
|
-
"
|
|
2937
|
+
"api-base-url-1": {
|
|
2938
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
2939
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
2940
|
+
"hidden": true,
|
|
2941
|
+
"name": "api-base-url-1",
|
|
2942
|
+
"hasDynamicHelp": false,
|
|
2943
|
+
"multiple": false,
|
|
2944
|
+
"type": "option"
|
|
2945
|
+
},
|
|
2946
|
+
"api-base-url-2": {
|
|
2947
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
2948
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
2949
|
+
"hidden": true,
|
|
2950
|
+
"name": "api-base-url-2",
|
|
1993
2951
|
"hasDynamicHelp": false,
|
|
1994
2952
|
"multiple": false,
|
|
1995
2953
|
"type": "option"
|
|
@@ -2042,7 +3000,7 @@
|
|
|
2042
3000
|
"functions:create-function": {
|
|
2043
3001
|
"aliases": [],
|
|
2044
3002
|
"args": {},
|
|
2045
|
-
"description": "Creates and deploys a new function. The handler must be a single\nESM module that exports a default async function receiving the\n`email.received` event (see the Webhook payload section for the\nfull schema). Code is bundled before being uploaded; ship a\nsingle self-contained file rather than relying on external\nimports.\n\n**Code limits.** `code` is capped at 1 MiB UTF-8. `sourceMap`\n(optional) is capped at 5 MiB UTF-8 and is stored only on the\nedge runtime side; it is not persisted in Primitive's database.\n\n**Auto-wiring.** On successful deploy, Primitive automatically\ncreates a webhook endpoint that delivers inbound mail to the\nfunction. There is nothing to configure on the Endpoints API\nfor this to work; the gateway URL returned here is for\nreference only and is not directly callable from outside.\n\n**Secrets.** New functions ship with the managed secrets\n(`PRIMITIVE_WEBHOOK_SECRET`, `PRIMITIVE_API_KEY`) already\nbound. Add user-set secrets via\n`POST /functions/{id}/secrets`; secret writes only land in the\nrunning handler on the next redeploy.\n",
|
|
3003
|
+
"description": "Creates and deploys a new function. The handler must be a single\nESM module that exports a default async function receiving the\n`email.received` event (see the Webhook payload section for the\nfull schema). Code is bundled before being uploaded; ship a\nsingle self-contained file rather than relying on external\nimports.\n\n**Code limits.** `code` is capped at 1 MiB UTF-8. `sourceMap`\n(optional) is capped at 5 MiB UTF-8 and is stored only on the\nedge runtime side; it is not persisted in Primitive's database.\n\n**Auto-wiring.** On successful deploy, Primitive automatically\ncreates a webhook endpoint that delivers inbound mail to the\nfunction. There is nothing to configure on the Endpoints API\nfor this to work; the gateway URL returned here is for\nreference only and is not directly callable from outside.\n\n**Secrets.** New functions ship with the managed secrets\n(`PRIMITIVE_WEBHOOK_SECRET`, `PRIMITIVE_API_KEY`) already\nbound. Add user-set secrets via\n`POST /functions/{id}/secrets`; secret writes only land in the\nrunning handler on the next redeploy.\n\n\nTip: prefer `primitive functions:deploy --name <name> --file <bundle>` for file-input ergonomics. This raw command exists for callers passing JSON.",
|
|
2046
3004
|
"flags": {
|
|
2047
3005
|
"api-key": {
|
|
2048
3006
|
"description": "Primitive API key (defaults to PRIMITIVE_API_KEY or saved `primitive login` credentials)",
|
|
@@ -2052,10 +3010,20 @@
|
|
|
2052
3010
|
"multiple": false,
|
|
2053
3011
|
"type": "option"
|
|
2054
3012
|
},
|
|
2055
|
-
"base-url": {
|
|
2056
|
-
"description": "API base URL
|
|
2057
|
-
"env": "
|
|
2058
|
-
"
|
|
3013
|
+
"api-base-url-1": {
|
|
3014
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
3015
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
3016
|
+
"hidden": true,
|
|
3017
|
+
"name": "api-base-url-1",
|
|
3018
|
+
"hasDynamicHelp": false,
|
|
3019
|
+
"multiple": false,
|
|
3020
|
+
"type": "option"
|
|
3021
|
+
},
|
|
3022
|
+
"api-base-url-2": {
|
|
3023
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
3024
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
3025
|
+
"hidden": true,
|
|
3026
|
+
"name": "api-base-url-2",
|
|
2059
3027
|
"hasDynamicHelp": false,
|
|
2060
3028
|
"multiple": false,
|
|
2061
3029
|
"type": "option"
|
|
@@ -2115,7 +3083,7 @@
|
|
|
2115
3083
|
"functions:create-function-secret": {
|
|
2116
3084
|
"aliases": [],
|
|
2117
3085
|
"args": {},
|
|
2118
|
-
"description": "Idempotent insert-or-update keyed on `(function_id, key)`.\nReturns 201 the first time the key is set, 200 on subsequent\nupdates. Values are encrypted at rest and only become visible\nto the running handler on the next deploy (`PUT /functions/{id}`\nwith the existing code is sufficient to refresh bindings).\n\nKeys must match `^[A-Z_][A-Z0-9_]*$` (uppercase letters,\ndigits, underscores; first character is a letter or\nunderscore). Values are at most 4096 UTF-8 bytes. System-\nmanaged keys are reserved and rejected.\n",
|
|
3086
|
+
"description": "Idempotent insert-or-update keyed on `(function_id, key)`.\nReturns 201 the first time the key is set, 200 on subsequent\nupdates. Values are encrypted at rest and only become visible\nto the running handler on the next deploy (`PUT /functions/{id}`\nwith the existing code is sufficient to refresh bindings).\n\nKeys must match `^[A-Z_][A-Z0-9_]*$` (uppercase letters,\ndigits, underscores; first character is a letter or\nunderscore). Values are at most 4096 UTF-8 bytes. System-\nmanaged keys are reserved and rejected.\n\n\nTip: prefer `primitive functions:set-secret --id <id> --key <KEY> --value <value> [--redeploy]` for secret writes that also push the binding live. This raw command exists for callers passing JSON.",
|
|
2119
3087
|
"flags": {
|
|
2120
3088
|
"api-key": {
|
|
2121
3089
|
"description": "Primitive API key (defaults to PRIMITIVE_API_KEY or saved `primitive login` credentials)",
|
|
@@ -2125,10 +3093,20 @@
|
|
|
2125
3093
|
"multiple": false,
|
|
2126
3094
|
"type": "option"
|
|
2127
3095
|
},
|
|
2128
|
-
"base-url": {
|
|
2129
|
-
"description": "API base URL
|
|
2130
|
-
"env": "
|
|
2131
|
-
"
|
|
3096
|
+
"api-base-url-1": {
|
|
3097
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
3098
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
3099
|
+
"hidden": true,
|
|
3100
|
+
"name": "api-base-url-1",
|
|
3101
|
+
"hasDynamicHelp": false,
|
|
3102
|
+
"multiple": false,
|
|
3103
|
+
"type": "option"
|
|
3104
|
+
},
|
|
3105
|
+
"api-base-url-2": {
|
|
3106
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
3107
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
3108
|
+
"hidden": true,
|
|
3109
|
+
"name": "api-base-url-2",
|
|
2132
3110
|
"hasDynamicHelp": false,
|
|
2133
3111
|
"multiple": false,
|
|
2134
3112
|
"type": "option"
|
|
@@ -2199,10 +3177,20 @@
|
|
|
2199
3177
|
"multiple": false,
|
|
2200
3178
|
"type": "option"
|
|
2201
3179
|
},
|
|
2202
|
-
"base-url": {
|
|
2203
|
-
"description": "API base URL
|
|
2204
|
-
"env": "
|
|
2205
|
-
"
|
|
3180
|
+
"api-base-url-1": {
|
|
3181
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
3182
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
3183
|
+
"hidden": true,
|
|
3184
|
+
"name": "api-base-url-1",
|
|
3185
|
+
"hasDynamicHelp": false,
|
|
3186
|
+
"multiple": false,
|
|
3187
|
+
"type": "option"
|
|
3188
|
+
},
|
|
3189
|
+
"api-base-url-2": {
|
|
3190
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
3191
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
3192
|
+
"hidden": true,
|
|
3193
|
+
"name": "api-base-url-2",
|
|
2206
3194
|
"hasDynamicHelp": false,
|
|
2207
3195
|
"multiple": false,
|
|
2208
3196
|
"type": "option"
|
|
@@ -2245,10 +3233,20 @@
|
|
|
2245
3233
|
"multiple": false,
|
|
2246
3234
|
"type": "option"
|
|
2247
3235
|
},
|
|
2248
|
-
"base-url": {
|
|
2249
|
-
"description": "API base URL
|
|
2250
|
-
"env": "
|
|
2251
|
-
"
|
|
3236
|
+
"api-base-url-1": {
|
|
3237
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
3238
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
3239
|
+
"hidden": true,
|
|
3240
|
+
"name": "api-base-url-1",
|
|
3241
|
+
"hasDynamicHelp": false,
|
|
3242
|
+
"multiple": false,
|
|
3243
|
+
"type": "option"
|
|
3244
|
+
},
|
|
3245
|
+
"api-base-url-2": {
|
|
3246
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
3247
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
3248
|
+
"hidden": true,
|
|
3249
|
+
"name": "api-base-url-2",
|
|
2252
3250
|
"hasDynamicHelp": false,
|
|
2253
3251
|
"multiple": false,
|
|
2254
3252
|
"type": "option"
|
|
@@ -2299,10 +3297,20 @@
|
|
|
2299
3297
|
"multiple": false,
|
|
2300
3298
|
"type": "option"
|
|
2301
3299
|
},
|
|
2302
|
-
"base-url": {
|
|
2303
|
-
"description": "API base URL
|
|
2304
|
-
"env": "
|
|
2305
|
-
"
|
|
3300
|
+
"api-base-url-1": {
|
|
3301
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
3302
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
3303
|
+
"hidden": true,
|
|
3304
|
+
"name": "api-base-url-1",
|
|
3305
|
+
"hasDynamicHelp": false,
|
|
3306
|
+
"multiple": false,
|
|
3307
|
+
"type": "option"
|
|
3308
|
+
},
|
|
3309
|
+
"api-base-url-2": {
|
|
3310
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
3311
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
3312
|
+
"hidden": true,
|
|
3313
|
+
"name": "api-base-url-2",
|
|
2306
3314
|
"hasDynamicHelp": false,
|
|
2307
3315
|
"multiple": false,
|
|
2308
3316
|
"type": "option"
|
|
@@ -2345,10 +3353,20 @@
|
|
|
2345
3353
|
"multiple": false,
|
|
2346
3354
|
"type": "option"
|
|
2347
3355
|
},
|
|
2348
|
-
"base-url": {
|
|
2349
|
-
"description": "API base URL
|
|
2350
|
-
"env": "
|
|
2351
|
-
"
|
|
3356
|
+
"api-base-url-1": {
|
|
3357
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
3358
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
3359
|
+
"hidden": true,
|
|
3360
|
+
"name": "api-base-url-1",
|
|
3361
|
+
"hasDynamicHelp": false,
|
|
3362
|
+
"multiple": false,
|
|
3363
|
+
"type": "option"
|
|
3364
|
+
},
|
|
3365
|
+
"api-base-url-2": {
|
|
3366
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
3367
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
3368
|
+
"hidden": true,
|
|
3369
|
+
"name": "api-base-url-2",
|
|
2352
3370
|
"hasDynamicHelp": false,
|
|
2353
3371
|
"multiple": false,
|
|
2354
3372
|
"type": "option"
|
|
@@ -2391,10 +3409,20 @@
|
|
|
2391
3409
|
"multiple": false,
|
|
2392
3410
|
"type": "option"
|
|
2393
3411
|
},
|
|
2394
|
-
"base-url": {
|
|
2395
|
-
"description": "API base URL
|
|
2396
|
-
"env": "
|
|
2397
|
-
"
|
|
3412
|
+
"api-base-url-1": {
|
|
3413
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
3414
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
3415
|
+
"hidden": true,
|
|
3416
|
+
"name": "api-base-url-1",
|
|
3417
|
+
"hasDynamicHelp": false,
|
|
3418
|
+
"multiple": false,
|
|
3419
|
+
"type": "option"
|
|
3420
|
+
},
|
|
3421
|
+
"api-base-url-2": {
|
|
3422
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
3423
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
3424
|
+
"hidden": true,
|
|
3425
|
+
"name": "api-base-url-2",
|
|
2398
3426
|
"hasDynamicHelp": false,
|
|
2399
3427
|
"multiple": false,
|
|
2400
3428
|
"type": "option"
|
|
@@ -2419,7 +3447,7 @@
|
|
|
2419
3447
|
"functions:set-function-secret": {
|
|
2420
3448
|
"aliases": [],
|
|
2421
3449
|
"args": {},
|
|
2422
|
-
"description": "Path-keyed companion to `POST /functions/{id}/secrets`.\nIdempotent: returns 201 the first time the key is set, 200 on\nsubsequent updates. Same validation rules and same write-only\nguarantees as the POST verb; the new value lands in the running\nhandler on the next deploy.\n",
|
|
3450
|
+
"description": "Path-keyed companion to `POST /functions/{id}/secrets`.\nIdempotent: returns 201 the first time the key is set, 200 on\nsubsequent updates. Same validation rules and same write-only\nguarantees as the POST verb; the new value lands in the running\nhandler on the next deploy.\n\n\nTip: prefer `primitive functions:set-secret --id <id> --key <KEY> --value <value> [--redeploy]` for secret writes that also push the binding live. This raw command exists for callers passing JSON.",
|
|
2423
3451
|
"flags": {
|
|
2424
3452
|
"api-key": {
|
|
2425
3453
|
"description": "Primitive API key (defaults to PRIMITIVE_API_KEY or saved `primitive login` credentials)",
|
|
@@ -2429,10 +3457,20 @@
|
|
|
2429
3457
|
"multiple": false,
|
|
2430
3458
|
"type": "option"
|
|
2431
3459
|
},
|
|
2432
|
-
"base-url": {
|
|
2433
|
-
"description": "API base URL
|
|
2434
|
-
"env": "
|
|
2435
|
-
"
|
|
3460
|
+
"api-base-url-1": {
|
|
3461
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
3462
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
3463
|
+
"hidden": true,
|
|
3464
|
+
"name": "api-base-url-1",
|
|
3465
|
+
"hasDynamicHelp": false,
|
|
3466
|
+
"multiple": false,
|
|
3467
|
+
"type": "option"
|
|
3468
|
+
},
|
|
3469
|
+
"api-base-url-2": {
|
|
3470
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
3471
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
3472
|
+
"hidden": true,
|
|
3473
|
+
"name": "api-base-url-2",
|
|
2436
3474
|
"hasDynamicHelp": false,
|
|
2437
3475
|
"multiple": false,
|
|
2438
3476
|
"type": "option"
|
|
@@ -2504,10 +3542,20 @@
|
|
|
2504
3542
|
"multiple": false,
|
|
2505
3543
|
"type": "option"
|
|
2506
3544
|
},
|
|
2507
|
-
"base-url": {
|
|
2508
|
-
"description": "API base URL
|
|
2509
|
-
"env": "
|
|
2510
|
-
"
|
|
3545
|
+
"api-base-url-1": {
|
|
3546
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
3547
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
3548
|
+
"hidden": true,
|
|
3549
|
+
"name": "api-base-url-1",
|
|
3550
|
+
"hasDynamicHelp": false,
|
|
3551
|
+
"multiple": false,
|
|
3552
|
+
"type": "option"
|
|
3553
|
+
},
|
|
3554
|
+
"api-base-url-2": {
|
|
3555
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
3556
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
3557
|
+
"hidden": true,
|
|
3558
|
+
"name": "api-base-url-2",
|
|
2511
3559
|
"hasDynamicHelp": false,
|
|
2512
3560
|
"multiple": false,
|
|
2513
3561
|
"type": "option"
|
|
@@ -2540,7 +3588,7 @@
|
|
|
2540
3588
|
"functions:update-function": {
|
|
2541
3589
|
"aliases": [],
|
|
2542
3590
|
"args": {},
|
|
2543
|
-
"description": "Replaces the function's source code with the body's `code` and\ntriggers a redeploy. Same size limits as `POST /functions`.\nUse this verb to push secret writes into the running handler:\npassing the same `code` re-runs the deploy and refreshes the\nbinding set with the latest values from the secrets table.\n\nOn a 502 deploy failure, the previously-deployed code stays\nlive; the runtime never serves a half-built bundle. The\n`deploy_error` field on the returned record carries the error\nthat came back from the runtime so you can surface it to users\nwithout polling.\n",
|
|
3591
|
+
"description": "Replaces the function's source code with the body's `code` and\ntriggers a redeploy. Same size limits as `POST /functions`.\nUse this verb to push secret writes into the running handler:\npassing the same `code` re-runs the deploy and refreshes the\nbinding set with the latest values from the secrets table.\n\nOn a 502 deploy failure, the previously-deployed code stays\nlive; the runtime never serves a half-built bundle. The\n`deploy_error` field on the returned record carries the error\nthat came back from the runtime so you can surface it to users\nwithout polling.\n\n\nTip: prefer `primitive functions:redeploy --id <id> --file <bundle>` for file-input ergonomics. This raw command exists for callers passing JSON.",
|
|
2544
3592
|
"flags": {
|
|
2545
3593
|
"api-key": {
|
|
2546
3594
|
"description": "Primitive API key (defaults to PRIMITIVE_API_KEY or saved `primitive login` credentials)",
|
|
@@ -2550,10 +3598,20 @@
|
|
|
2550
3598
|
"multiple": false,
|
|
2551
3599
|
"type": "option"
|
|
2552
3600
|
},
|
|
2553
|
-
"base-url": {
|
|
2554
|
-
"description": "API base URL
|
|
2555
|
-
"env": "
|
|
2556
|
-
"
|
|
3601
|
+
"api-base-url-1": {
|
|
3602
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
3603
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
3604
|
+
"hidden": true,
|
|
3605
|
+
"name": "api-base-url-1",
|
|
3606
|
+
"hasDynamicHelp": false,
|
|
3607
|
+
"multiple": false,
|
|
3608
|
+
"type": "option"
|
|
3609
|
+
},
|
|
3610
|
+
"api-base-url-2": {
|
|
3611
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
3612
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
3613
|
+
"hidden": true,
|
|
3614
|
+
"name": "api-base-url-2",
|
|
2557
3615
|
"hasDynamicHelp": false,
|
|
2558
3616
|
"multiple": false,
|
|
2559
3617
|
"type": "option"
|
|
@@ -2624,10 +3682,20 @@
|
|
|
2624
3682
|
"multiple": false,
|
|
2625
3683
|
"type": "option"
|
|
2626
3684
|
},
|
|
2627
|
-
"base-url": {
|
|
2628
|
-
"description": "API base URL
|
|
2629
|
-
"env": "
|
|
2630
|
-
"
|
|
3685
|
+
"api-base-url-1": {
|
|
3686
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
3687
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
3688
|
+
"hidden": true,
|
|
3689
|
+
"name": "api-base-url-1",
|
|
3690
|
+
"hasDynamicHelp": false,
|
|
3691
|
+
"multiple": false,
|
|
3692
|
+
"type": "option"
|
|
3693
|
+
},
|
|
3694
|
+
"api-base-url-2": {
|
|
3695
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
3696
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
3697
|
+
"hidden": true,
|
|
3698
|
+
"name": "api-base-url-2",
|
|
2631
3699
|
"hasDynamicHelp": false,
|
|
2632
3700
|
"multiple": false,
|
|
2633
3701
|
"type": "option"
|
|
@@ -2662,10 +3730,20 @@
|
|
|
2662
3730
|
"multiple": false,
|
|
2663
3731
|
"type": "option"
|
|
2664
3732
|
},
|
|
2665
|
-
"base-url": {
|
|
2666
|
-
"description": "API base URL
|
|
2667
|
-
"env": "
|
|
2668
|
-
"
|
|
3733
|
+
"api-base-url-1": {
|
|
3734
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
3735
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
3736
|
+
"hidden": true,
|
|
3737
|
+
"name": "api-base-url-1",
|
|
3738
|
+
"hasDynamicHelp": false,
|
|
3739
|
+
"multiple": false,
|
|
3740
|
+
"type": "option"
|
|
3741
|
+
},
|
|
3742
|
+
"api-base-url-2": {
|
|
3743
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
3744
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
3745
|
+
"hidden": true,
|
|
3746
|
+
"name": "api-base-url-2",
|
|
2669
3747
|
"hasDynamicHelp": false,
|
|
2670
3748
|
"multiple": false,
|
|
2671
3749
|
"type": "option"
|
|
@@ -2708,10 +3786,20 @@
|
|
|
2708
3786
|
"multiple": false,
|
|
2709
3787
|
"type": "option"
|
|
2710
3788
|
},
|
|
2711
|
-
"base-url": {
|
|
2712
|
-
"description": "API base URL
|
|
2713
|
-
"env": "
|
|
2714
|
-
"
|
|
3789
|
+
"api-base-url-1": {
|
|
3790
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
3791
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
3792
|
+
"hidden": true,
|
|
3793
|
+
"name": "api-base-url-1",
|
|
3794
|
+
"hasDynamicHelp": false,
|
|
3795
|
+
"multiple": false,
|
|
3796
|
+
"type": "option"
|
|
3797
|
+
},
|
|
3798
|
+
"api-base-url-2": {
|
|
3799
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
3800
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
3801
|
+
"hidden": true,
|
|
3802
|
+
"name": "api-base-url-2",
|
|
2715
3803
|
"hasDynamicHelp": false,
|
|
2716
3804
|
"multiple": false,
|
|
2717
3805
|
"type": "option"
|
|
@@ -2802,10 +3890,20 @@
|
|
|
2802
3890
|
"multiple": false,
|
|
2803
3891
|
"type": "option"
|
|
2804
3892
|
},
|
|
2805
|
-
"base-url": {
|
|
2806
|
-
"description": "API base URL
|
|
2807
|
-
"env": "
|
|
2808
|
-
"
|
|
3893
|
+
"api-base-url-1": {
|
|
3894
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
3895
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
3896
|
+
"hidden": true,
|
|
3897
|
+
"name": "api-base-url-1",
|
|
3898
|
+
"hasDynamicHelp": false,
|
|
3899
|
+
"multiple": false,
|
|
3900
|
+
"type": "option"
|
|
3901
|
+
},
|
|
3902
|
+
"api-base-url-2": {
|
|
3903
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
3904
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
3905
|
+
"hidden": true,
|
|
3906
|
+
"name": "api-base-url-2",
|
|
2809
3907
|
"hasDynamicHelp": false,
|
|
2810
3908
|
"multiple": false,
|
|
2811
3909
|
"type": "option"
|
|
@@ -2879,7 +3977,7 @@
|
|
|
2879
3977
|
"sending:send-email": {
|
|
2880
3978
|
"aliases": [],
|
|
2881
3979
|
"args": {},
|
|
2882
|
-
"description": "Sends an outbound email through Primitive's outbound relay. By default\nthe request returns once the relay accepts the message for delivery.\nSet `wait: true` to wait for the first downstream SMTP delivery outcome.\n\n\nBody fields requiring --raw-body JSON (these are not exposed as flags):\n references array<string> Full ordered message-id chain for the thread.\n(* = required. Scalar body fields are exposed as individual --flag-name flags; see FLAGS above.)",
|
|
3980
|
+
"description": "Sends an outbound email through Primitive's outbound relay. By default\nthe request returns once the relay accepts the message for delivery.\nSet `wait: true` to wait for the first downstream SMTP delivery outcome.\n\n**Host routing.** /send-mail is served by the attachments-\nsupporting host (`https://api.primitive.dev/v1`) so the\nrequest body can carry inline attachments up to ~30 MiB raw.\nThe primary host (`https://www.primitive.dev/api/v1`) also\naccepts /send-mail for attachment-free sends; sends WITH\nattachments to the primary host return 413\n`attachments_unsupported_on_this_endpoint`. The typed SDKs\nroute /send-mail to the attachments host automatically.\n\n\nBody fields requiring --raw-body JSON (these are not exposed as flags):\n references array<string> Full ordered message-id chain for the thread.\n(* = required. Scalar body fields are exposed as individual --flag-name flags; see FLAGS above.)",
|
|
2883
3981
|
"flags": {
|
|
2884
3982
|
"api-key": {
|
|
2885
3983
|
"description": "Primitive API key (defaults to PRIMITIVE_API_KEY or saved `primitive login` credentials)",
|
|
@@ -2889,10 +3987,20 @@
|
|
|
2889
3987
|
"multiple": false,
|
|
2890
3988
|
"type": "option"
|
|
2891
3989
|
},
|
|
2892
|
-
"base-url": {
|
|
2893
|
-
"description": "API base URL
|
|
2894
|
-
"env": "
|
|
2895
|
-
"
|
|
3990
|
+
"api-base-url-1": {
|
|
3991
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
3992
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
3993
|
+
"hidden": true,
|
|
3994
|
+
"name": "api-base-url-1",
|
|
3995
|
+
"hasDynamicHelp": false,
|
|
3996
|
+
"multiple": false,
|
|
3997
|
+
"type": "option"
|
|
3998
|
+
},
|
|
3999
|
+
"api-base-url-2": {
|
|
4000
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
4001
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
4002
|
+
"hidden": true,
|
|
4003
|
+
"name": "api-base-url-2",
|
|
2896
4004
|
"hasDynamicHelp": false,
|
|
2897
4005
|
"multiple": false,
|
|
2898
4006
|
"type": "option"
|
|
@@ -2996,10 +4104,20 @@
|
|
|
2996
4104
|
"multiple": false,
|
|
2997
4105
|
"type": "option"
|
|
2998
4106
|
},
|
|
2999
|
-
"base-url": {
|
|
3000
|
-
"description": "API base URL
|
|
3001
|
-
"env": "
|
|
3002
|
-
"
|
|
4107
|
+
"api-base-url-1": {
|
|
4108
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
4109
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
4110
|
+
"hidden": true,
|
|
4111
|
+
"name": "api-base-url-1",
|
|
4112
|
+
"hasDynamicHelp": false,
|
|
4113
|
+
"multiple": false,
|
|
4114
|
+
"type": "option"
|
|
4115
|
+
},
|
|
4116
|
+
"api-base-url-2": {
|
|
4117
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
4118
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
4119
|
+
"hidden": true,
|
|
4120
|
+
"name": "api-base-url-2",
|
|
3003
4121
|
"hasDynamicHelp": false,
|
|
3004
4122
|
"multiple": false,
|
|
3005
4123
|
"type": "option"
|
|
@@ -3088,10 +4206,20 @@
|
|
|
3088
4206
|
"multiple": false,
|
|
3089
4207
|
"type": "option"
|
|
3090
4208
|
},
|
|
3091
|
-
"base-url": {
|
|
3092
|
-
"description": "API base URL
|
|
3093
|
-
"env": "
|
|
3094
|
-
"
|
|
4209
|
+
"api-base-url-1": {
|
|
4210
|
+
"description": "Override the primary API base URL. Internal testing only; not documented to customers.",
|
|
4211
|
+
"env": "PRIMITIVE_API_BASE_URL_1",
|
|
4212
|
+
"hidden": true,
|
|
4213
|
+
"name": "api-base-url-1",
|
|
4214
|
+
"hasDynamicHelp": false,
|
|
4215
|
+
"multiple": false,
|
|
4216
|
+
"type": "option"
|
|
4217
|
+
},
|
|
4218
|
+
"api-base-url-2": {
|
|
4219
|
+
"description": "Override the attachments-supporting send host base URL. Internal testing only; not documented to customers.",
|
|
4220
|
+
"env": "PRIMITIVE_API_BASE_URL_2",
|
|
4221
|
+
"hidden": true,
|
|
4222
|
+
"name": "api-base-url-2",
|
|
3095
4223
|
"hasDynamicHelp": false,
|
|
3096
4224
|
"multiple": false,
|
|
3097
4225
|
"type": "option"
|
|
@@ -3122,5 +4250,5 @@
|
|
|
3122
4250
|
"enableJsonFlag": false
|
|
3123
4251
|
}
|
|
3124
4252
|
},
|
|
3125
|
-
"version": "0.
|
|
4253
|
+
"version": "0.22.0"
|
|
3126
4254
|
}
|