primcli 3.0.0-preview.5 → 3.0.0-preview.7

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.
@@ -1,15 +1,15 @@
1
- import { Gn as sendEmail, _ as describeApiFailure, h as sendPreparedSignal, ht as createEndpoint, p as prepareSignalEmail, wn as listSentEmails, zt as getEmail } from "./repeats-Dj_o6c-X-Ix28GRRc.js";
2
- import { A as bareAddress, Et as successfulSendOutcome, s as extractErrorPayload, ut as classifySendError } from "./api-command-DIo8Rg0w.js";
1
+ import { Dn as listSentEmails, Ht as getEmail, Jn as sendEmail, _ as describeApiFailure, h as sendPreparedSignal, p as prepareSignalEmail, vt as createEndpoint } from "./repeats-Dj_o6c-X-C6tOKAqk.js";
2
+ import { Dt as successfulSendOutcome, dt as classifySendError, j as bareAddress, s as extractErrorPayload } from "./api-command-BXYpylbG.js";
3
3
  import { recordSentSignal } from "./oclif/auto-signals.js";
4
4
  import { _ as acquireListenLock, c as mailTime, d as readMailJson, f as removeMailFile, h as writeMailJson, i as mailId, l as privateMailDirectory, m as withMailLock, n as invalidSharedMail, o as mailObject, p as syncMailDirectory, r as mailAddress, s as mailString, t as SharedMailStateError, v as compareListenProcessIdentity, x as listenProcessIdentity, y as listenIdentity } from "./shared-mail-files-BAQSGxxz.js";
5
- import { i as readApiBeforeDeadline, n as isPlainChatReply, o as scopedChatSenderTrust } from "./scoped-chat-DcymzGgB.js";
5
+ import { i as readApiBeforeDeadline, n as isPlainChatReply, o as scopedChatSenderTrust } from "./scoped-chat-GItY2PvL.js";
6
6
  import { n as tryOwnSharedMail, r as waitForSharedMailChange, t as readSharedMailOwner } from "./shared-mail-watch-BAPMsFNv.js";
7
7
  import { Errors } from "@oclif/core";
8
8
  import { opendirSync } from "node:fs";
9
9
  import { createHash, randomUUID, scryptSync } from "node:crypto";
10
10
  import { dirname, join } from "node:path";
11
11
  import { setTimeout as setTimeout$1 } from "node:timers/promises";
12
- // ../sdk-node/dist/api-N3Qu4JMc.js
12
+ // ../sdk-node/dist/api-DYBF9r3I.js
13
13
  const jsonBodySerializer = { bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value) };
14
14
  function createSseClient({ onRequest, onSseError, onSseEvent, responseTransformer, responseValidator, sseDefaultRetryDelay, sseMaxRetryAttempts, sseMaxRetryDelay, sseSleepFn, url, ...options }) {
15
15
  let lastEventId;
package/man/primitive.1 CHANGED
@@ -218,6 +218,11 @@ run directly. If your organization requires approval, the command prints the
218
218
  approval link and waits for the one-time token the page shows, or takes it with
219
219
  .BR --step-up-token .
220
220
  A new secret is printed once and never saved.
221
+ .B primitive keys update ID --expires-at TIME
222
+ extends a key before it expires; rotating keeps its expiry unless
223
+ .B rotate
224
+ is given
225
+ .BR --expires-at .
221
226
  .B primitive keys revoke ID
222
227
  revokes a key.
223
228
  .B primitive whoami --check PERMISSION
@@ -232,7 +237,8 @@ signed in with
232
237
  can leave; API keys are refused. The only owner of an organization cannot leave
233
238
  it. If the server asks for a dashboard confirmation, open the page it names and
234
239
  paste the token at the prompt, or pass it with --step-up-token. Refusals from
235
- the server are printed as returned.
240
+ the server are printed as returned. Without a terminal and without --yes, it
241
+ exits 2 before anything is sent.
236
242
  .PP
237
243
  Run
238
244
  .B primitive whoami
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primcli",
3
- "version": "3.0.0-preview.5",
3
+ "version": "3.0.0-preview.7",
4
4
  "publishConfig": {
5
5
  "tag": "preview"
6
6
  },
@@ -105,10 +105,10 @@
105
105
  "description": "Send outbound emails. Prefer `primitive send` for fresh sends and `primitive reply --id <inbound-id>` for replies. Use `primitive domains list` or `primitive inbox status` to find usable sender domains for --from; `primitive sending permissions` lists recipient-scope destinations you may send to."
106
106
  },
107
107
  "signin": {
108
- "description": "Sign in to an existing Primitive account"
108
+ "description": "Sign in with browser approval or an emailed code"
109
109
  },
110
110
  "login": {
111
- "description": "Log in to an existing Primitive account"
111
+ "description": "Log in with browser approval or an emailed code"
112
112
  },
113
113
  "otp": {
114
114
  "description": "Authenticate with an emailed one-time code"
@@ -186,7 +186,7 @@
186
186
  "description": "Received and sent mail per hour, and how webhook deliveries ended"
187
187
  },
188
188
  "activity": {
189
- "description": "What you created, and where each object stands now (ids, names and states only)"
189
+ "description": "What you created, and what other members asked of you, with where each stands now (ids, names and states only)"
190
190
  },
191
191
  "email-rules": {
192
192
  "description": "Rules written in plain English that pick out received mail"