@remit/api-http-client 0.0.19 → 0.0.20

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types.gen.ts +16 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/api-http-client",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./index.ts",
package/types.gen.ts CHANGED
@@ -707,7 +707,7 @@ export type RemitImapCreateFilterInput = {
707
707
  */
708
708
  actionLabelId: string;
709
709
  /**
710
- * Mailbox matched messages are moved into — exclusive action, since a message lives in exactly one mailbox (RFC 034 Decision 3.1). On conflict between filters, the one with the latest ruleChangedAt wins. `"None"` means no move action.
710
+ * Mailbox matched messages are moved into — exclusive action, since a message lives in exactly one mailbox (RFC 034 Decision 3.1). On conflict between filters, the one with the latest actionChangedAt wins. `"None"` means no move action.
711
711
  */
712
712
  actionMailboxId: string;
713
713
  /**
@@ -1029,9 +1029,13 @@ export type RemitImapFilterResponse = {
1029
1029
  */
1030
1030
  readonly hasAnchor: boolean;
1031
1031
  /**
1032
- * Epoch seconds, written only when the predicate (literalClauses, hasAnchor) or the action (actionLabelId, actionMailboxId) changes — never on a cosmetic rename. Backs most-recently-changed-filter-wins precedence for the exclusive move action (RFC 034 Decision 3.2). Distinct from ElectroDB's own updatedAt, which bumps on any write.
1032
+ * Epoch seconds, written whenever the predicate, the action, the scope, or the expiry changes (reader #266) — never on a cosmetic rename. This is the broad "the user asserted something new about this rule" signal the settings UI uses to decide whether to re-offer a lapsed filter's back-application. It is deliberately NOT the precedence signal for the exclusive move action — see actionChangedAt for that (RFC 034 Decision 3.2, reader #384). Distinct from ElectroDB's own updatedAt, which bumps on any write.
1033
1033
  */
1034
1034
  readonly ruleChangedAt: number;
1035
+ /**
1036
+ * Epoch seconds, written only when the predicate (literalClauses, hasAnchor) or the action (actionLabelId, actionMailboxId) changes — never on scope, expiresAt, or a cosmetic rename. Backs most-recently-changed-filter-wins precedence for the exclusive move action (RFC 034 Decision 3.2). Split out from ruleChangedAt (reader #384): extending a filter's expiry or flipping its scope changes its lifecycle, not what it matches or does, so it must not promote the filter to move-winner.
1037
+ */
1038
+ readonly actionChangedAt: number;
1035
1039
  /**
1036
1040
  * How literalClauses combine. Meaningless when literalClauses is empty.
1037
1041
  */
@@ -1045,7 +1049,7 @@ export type RemitImapFilterResponse = {
1045
1049
  */
1046
1050
  actionLabelId: string;
1047
1051
  /**
1048
- * Mailbox matched messages are moved into — exclusive action, since a message lives in exactly one mailbox (RFC 034 Decision 3.1). On conflict between filters, the one with the latest ruleChangedAt wins. `"None"` means no move action.
1052
+ * Mailbox matched messages are moved into — exclusive action, since a message lives in exactly one mailbox (RFC 034 Decision 3.1). On conflict between filters, the one with the latest actionChangedAt wins. `"None"` means no move action.
1049
1053
  */
1050
1054
  actionMailboxId: string;
1051
1055
  readonly createdAt: number;
@@ -2307,10 +2311,13 @@ export type RemitImapUpdateAddressInput = {
2307
2311
  * Input for updating a filter (RFC 034, reader #266). The name, predicate,
2308
2312
  * action, scope, and expiresAt are all updatable; `ttl` is always
2309
2313
  * server-derived from `scope`/`expiresAt`, never client-supplied, and
2310
- * `state`/`hasAnchor`/`ruleChangedAt`/`filterId` are server-derived too. A
2311
- * patch touching the predicate, the action, `scope`, or `expiresAt` bumps
2312
- * `ruleChangedAt`; a name-only rename never does (RFC 034 Decision 3.2, reader
2313
- * #266).
2314
+ * `state`/`hasAnchor`/`ruleChangedAt`/`actionChangedAt`/`filterId` are
2315
+ * server-derived too. A patch touching the predicate, the action, `scope`, or
2316
+ * `expiresAt` bumps `ruleChangedAt`; a name-only rename never does (RFC 034
2317
+ * Decision 3.2, reader #266). Only a patch touching the predicate or the
2318
+ * action bumps `actionChangedAt`, the narrower signal exclusive-move
2319
+ * precedence reads (reader #384) — a scope/expiresAt-only edit leaves it
2320
+ * untouched.
2314
2321
  *
2315
2322
  * The semantic anchor has no field here at all — it is set once, from
2316
2323
  * `anchorMessageId`, only on `CreateFilterInput`. Repointing an anchor would
@@ -2344,7 +2351,7 @@ export type RemitImapUpdateFilterInput = {
2344
2351
  */
2345
2352
  actionLabelId?: string;
2346
2353
  /**
2347
- * Mailbox matched messages are moved into — exclusive action, since a message lives in exactly one mailbox (RFC 034 Decision 3.1). On conflict between filters, the one with the latest ruleChangedAt wins. `"None"` means no move action.
2354
+ * Mailbox matched messages are moved into — exclusive action, since a message lives in exactly one mailbox (RFC 034 Decision 3.1). On conflict between filters, the one with the latest actionChangedAt wins. `"None"` means no move action.
2348
2355
  */
2349
2356
  actionMailboxId?: string;
2350
2357
  };
@@ -2637,7 +2644,7 @@ export type RemitImapFilterResponseWritable = {
2637
2644
  */
2638
2645
  actionLabelId: string;
2639
2646
  /**
2640
- * Mailbox matched messages are moved into — exclusive action, since a message lives in exactly one mailbox (RFC 034 Decision 3.1). On conflict between filters, the one with the latest ruleChangedAt wins. `"None"` means no move action.
2647
+ * Mailbox matched messages are moved into — exclusive action, since a message lives in exactly one mailbox (RFC 034 Decision 3.1). On conflict between filters, the one with the latest actionChangedAt wins. `"None"` means no move action.
2641
2648
  */
2642
2649
  actionMailboxId: string;
2643
2650
  };