@primitivedotdev/cli 0.34.0 → 0.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -12,6 +12,8 @@ Or with npm:
|
|
|
12
12
|
```bash
|
|
13
13
|
npm install -g @primitivedotdev/cli
|
|
14
14
|
primitive whoami
|
|
15
|
+
# `prim` is installed as a short alias for the same CLI.
|
|
16
|
+
prim whoami
|
|
15
17
|
```
|
|
16
18
|
|
|
17
19
|
Or with no install:
|
|
@@ -55,6 +57,8 @@ Use task-oriented commands for normal workflows:
|
|
|
55
57
|
```bash
|
|
56
58
|
primitive send --to alice@example.com --body "Hello"
|
|
57
59
|
primitive reply --id <inbound-email-id> --body "Thanks"
|
|
60
|
+
primitive reply --id <inbound-email-id> --body "See attached" --attachment ./report.pdf
|
|
61
|
+
primitive chat reply "See attached" --attachment ./report.pdf
|
|
58
62
|
primitive emails list
|
|
59
63
|
primitive emails get --id <inbound-email-id>
|
|
60
64
|
primitive sent list
|
|
@@ -631,18 +631,19 @@ var PrimitiveApiClient = class {
|
|
|
631
631
|
/**
|
|
632
632
|
* Generated client targeting the primary API host (apiBaseUrl1). Use
|
|
633
633
|
* this when passing `client: ...` to a generated operation function
|
|
634
|
-
* for every endpoint EXCEPT
|
|
635
|
-
* PrimitiveClient.send / .reply / .forward methods on
|
|
636
|
-
* route
|
|
634
|
+
* for every endpoint EXCEPT attachment-capable message sends. The
|
|
635
|
+
* hand-written PrimitiveClient.send / .reply / .forward methods on
|
|
636
|
+
* the subclass route those sends to the host-2 client internally.
|
|
637
637
|
*/
|
|
638
638
|
client;
|
|
639
639
|
/**
|
|
640
640
|
* @internal Generated client targeting the attachments-supporting
|
|
641
|
-
* send host (apiBaseUrl2). Used by PrimitiveClient.send()
|
|
642
|
-
* hood. Exposed for the CLI's
|
|
643
|
-
*
|
|
644
|
-
*
|
|
645
|
-
*
|
|
641
|
+
* send host (apiBaseUrl2). Used by PrimitiveClient.send() and
|
|
642
|
+
* PrimitiveClient.reply() under the hood. Exposed for the CLI's
|
|
643
|
+
* hand-rolled send/reply commands, which call generated operations
|
|
644
|
+
* directly; not part of the publicly-documented SDK surface.
|
|
645
|
+
* Customer code should call .send() / .reply() on the subclass
|
|
646
|
+
* instead.
|
|
646
647
|
*/
|
|
647
648
|
_sendClient;
|
|
648
649
|
constructor(options = {}) {
|