primcli 1.21.0 → 1.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/oclif/index.js +73 -2
- package/package.json +1 -1
package/dist/oclif/index.js
CHANGED
|
@@ -9292,6 +9292,36 @@ const openapiDocument = {
|
|
|
9292
9292
|
"maxLength": 320,
|
|
9293
9293
|
"description": "Recipient address. Recipient eligibility depends on your account's outbound entitlements."
|
|
9294
9294
|
},
|
|
9295
|
+
"cc": {
|
|
9296
|
+
"description": "Carbon-copy recipients. Either a single address or an array of addresses. Each entry must be a single address; use the array form for multiple recipients. Cc recipients are visible to everyone who receives the message. The combined number of to, cc, and bcc recipients must not exceed 100.",
|
|
9297
|
+
"oneOf": [{
|
|
9298
|
+
"type": "string",
|
|
9299
|
+
"minLength": 1
|
|
9300
|
+
}, {
|
|
9301
|
+
"type": "array",
|
|
9302
|
+
"minItems": 1,
|
|
9303
|
+
"maxItems": 100,
|
|
9304
|
+
"items": {
|
|
9305
|
+
"type": "string",
|
|
9306
|
+
"minLength": 1
|
|
9307
|
+
}
|
|
9308
|
+
}]
|
|
9309
|
+
},
|
|
9310
|
+
"bcc": {
|
|
9311
|
+
"description": "Blind-carbon-copy recipients. Either a single address or an array of addresses. Each entry must be a single address; use the array form for multiple recipients. Bcc recipients receive the message but are not disclosed to the other recipients: no Bcc header is sent. The combined number of to, cc, and bcc recipients must not exceed 100.",
|
|
9312
|
+
"oneOf": [{
|
|
9313
|
+
"type": "string",
|
|
9314
|
+
"minLength": 1
|
|
9315
|
+
}, {
|
|
9316
|
+
"type": "array",
|
|
9317
|
+
"minItems": 1,
|
|
9318
|
+
"maxItems": 100,
|
|
9319
|
+
"items": {
|
|
9320
|
+
"type": "string",
|
|
9321
|
+
"minLength": 1
|
|
9322
|
+
}
|
|
9323
|
+
}]
|
|
9324
|
+
},
|
|
9295
9325
|
"subject": {
|
|
9296
9326
|
"type": "string",
|
|
9297
9327
|
"minLength": 1,
|
|
@@ -21811,6 +21841,36 @@ const operationManifest = [
|
|
|
21811
21841
|
"maxLength": 320,
|
|
21812
21842
|
"description": "Recipient address. Recipient eligibility depends on your account's outbound entitlements."
|
|
21813
21843
|
},
|
|
21844
|
+
"cc": {
|
|
21845
|
+
"description": "Carbon-copy recipients. Either a single address or an array of addresses. Each entry must be a single address; use the array form for multiple recipients. Cc recipients are visible to everyone who receives the message. The combined number of to, cc, and bcc recipients must not exceed 100.",
|
|
21846
|
+
"oneOf": [{
|
|
21847
|
+
"type": "string",
|
|
21848
|
+
"minLength": 1
|
|
21849
|
+
}, {
|
|
21850
|
+
"type": "array",
|
|
21851
|
+
"minItems": 1,
|
|
21852
|
+
"maxItems": 100,
|
|
21853
|
+
"items": {
|
|
21854
|
+
"type": "string",
|
|
21855
|
+
"minLength": 1
|
|
21856
|
+
}
|
|
21857
|
+
}]
|
|
21858
|
+
},
|
|
21859
|
+
"bcc": {
|
|
21860
|
+
"description": "Blind-carbon-copy recipients. Either a single address or an array of addresses. Each entry must be a single address; use the array form for multiple recipients. Bcc recipients receive the message but are not disclosed to the other recipients: no Bcc header is sent. The combined number of to, cc, and bcc recipients must not exceed 100.",
|
|
21861
|
+
"oneOf": [{
|
|
21862
|
+
"type": "string",
|
|
21863
|
+
"minLength": 1
|
|
21864
|
+
}, {
|
|
21865
|
+
"type": "array",
|
|
21866
|
+
"minItems": 1,
|
|
21867
|
+
"maxItems": 100,
|
|
21868
|
+
"items": {
|
|
21869
|
+
"type": "string",
|
|
21870
|
+
"minLength": 1
|
|
21871
|
+
}
|
|
21872
|
+
}]
|
|
21873
|
+
},
|
|
21814
21874
|
"subject": {
|
|
21815
21875
|
"type": "string",
|
|
21816
21876
|
"minLength": 1,
|
|
@@ -28016,8 +28076,8 @@ const PRIMITIVE_TEAM_AUTHOR = {
|
|
|
28016
28076
|
name: "Primitive Team",
|
|
28017
28077
|
url: "https://primitive.dev"
|
|
28018
28078
|
};
|
|
28019
|
-
const SDK_VERSION_RANGE = "^1.
|
|
28020
|
-
const CLI_VERSION_RANGE = "^1.
|
|
28079
|
+
const SDK_VERSION_RANGE = "^1.22.0";
|
|
28080
|
+
const CLI_VERSION_RANGE = "^1.22.0";
|
|
28021
28081
|
const ESBUILD_VERSION_RANGE = "^0.27.0";
|
|
28022
28082
|
function renderHandler() {
|
|
28023
28083
|
return `// env.PRIMITIVE_API_KEY, env.PRIMITIVE_WEBHOOK_SECRET, and
|
|
@@ -35077,6 +35137,7 @@ var SendCommand = class SendCommand extends Command {
|
|
|
35077
35137
|
"<%= config.bin %> send --to alice@example.com --body 'See attached.' --attachment ./report.pdf",
|
|
35078
35138
|
"<%= config.bin %> send --to alice@example.com --from support@yourcompany.com --subject 'Quick question' --body 'Are you free Thursday?'",
|
|
35079
35139
|
"<%= config.bin %> send --to alice@example.com --html '<p>Hello!</p>'",
|
|
35140
|
+
"<%= config.bin %> send --to alice@example.com --cc bob@example.com --bcc audit@example.com --body 'Loop bob in; audit copy stays hidden.'",
|
|
35080
35141
|
"<%= config.bin %> send --to alice@example.com --body 'Confirmed' --wait",
|
|
35081
35142
|
"<%= config.bin %> send --to inbox@your-managed-domain.primitive.email --body 'self-loop smoke test' --wait # any *.primitive.email address routes back to the sending account; useful for proving outbound + inbound work end-to-end"
|
|
35082
35143
|
];
|
|
@@ -35106,6 +35167,14 @@ var SendCommand = class SendCommand extends Command {
|
|
|
35106
35167
|
description: "Attach a file to the email. Repeatable. Sends file bytes as a MIME attachment; use --body-file only for message body text.",
|
|
35107
35168
|
multiple: true
|
|
35108
35169
|
}),
|
|
35170
|
+
cc: Flags.string({
|
|
35171
|
+
description: "Carbon-copy recipient. Repeatable for multiple. Cc recipients are visible to everyone who receives the message.",
|
|
35172
|
+
multiple: true
|
|
35173
|
+
}),
|
|
35174
|
+
bcc: Flags.string({
|
|
35175
|
+
description: "Blind-carbon-copy recipient. Repeatable for multiple. Bcc recipients receive the message but are not disclosed to the other recipients.",
|
|
35176
|
+
multiple: true
|
|
35177
|
+
}),
|
|
35109
35178
|
"in-reply-to": Flags.string({ description: "Message-Id of the parent email when threading a reply on the wire. For replying to an inbound message you received, prefer `primitive reply --id <inbound-id>`." }),
|
|
35110
35179
|
wait: Flags.boolean({ description: "Block until the receiving MTA returns an outcome. Without --wait, the call returns once Primitive has accepted the message for delivery." }),
|
|
35111
35180
|
"wait-timeout-ms": Flags.integer({ description: "Maximum time to wait when --wait is set. Defaults to 30000ms." }),
|
|
@@ -35140,6 +35209,8 @@ var SendCommand = class SendCommand extends Command {
|
|
|
35140
35209
|
body: {
|
|
35141
35210
|
from,
|
|
35142
35211
|
to: flags.to,
|
|
35212
|
+
...flags.cc !== void 0 ? { cc: flags.cc } : {},
|
|
35213
|
+
...flags.bcc !== void 0 ? { bcc: flags.bcc } : {},
|
|
35143
35214
|
subject,
|
|
35144
35215
|
...bodies.body !== void 0 ? { body_text: bodies.body } : {},
|
|
35145
35216
|
...bodies.html !== void 0 ? { body_html: bodies.html } : {},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "primcli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.22.0",
|
|
4
4
|
"description": "Official Primitive CLI: deploy Primitive Functions, send and inspect mail, manage endpoints, all from the terminal. Wraps the @primitivedotdev/sdk runtime client with one-shot commands.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|