@remit/api-openapi-types 0.0.14 → 0.0.16
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/package.json +1 -1
- package/types.d.ts +31 -7
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -1360,6 +1360,10 @@ never from a raw content-type line — parameters carry `name=` and
|
|
|
1360
1360
|
* Timestamp of the last successful message sync
|
|
1361
1361
|
*/
|
|
1362
1362
|
lastMessageSyncAt: number;
|
|
1363
|
+
/**
|
|
1364
|
+
* Sync status for mailbox operations (create, rename, delete)
|
|
1365
|
+
*/
|
|
1366
|
+
syncStatus?: MailboxSyncStatus;
|
|
1363
1367
|
/**
|
|
1364
1368
|
* Denormalized list of IMAP SPECIAL-USE designations (RFC 6154). Populated from the same `\Sent`, `\Drafts`, etc. attributes the server reports during LIST. Stored on the row to avoid an N+1 join when listing mailboxes.
|
|
1365
1369
|
*/
|
|
@@ -1438,11 +1442,11 @@ data through `byAccountAndState`.
|
|
|
1438
1442
|
*/
|
|
1439
1443
|
name: String256;
|
|
1440
1444
|
/**
|
|
1441
|
-
* Standing (permanent) or Temporary (expires). Governs whether expiresAt/ttl are present (RFC 034 Decision 1).
|
|
1445
|
+
* Standing (permanent) or Temporary (expires). Governs whether expiresAt/ttl are present (RFC 034 Decision 1). Mutable on update (reader #266): switching scope re-derives ttl and re-evaluates state from expiresAt, and bumps ruleChangedAt so a lapsed filter's back-application can be offered again. The semantic anchor stays immutable regardless — repointing it would silently change what a saved filter matches with nothing visible changing, which deserves a new filter instead.
|
|
1442
1446
|
*/
|
|
1443
1447
|
scope: FilterScope;
|
|
1444
1448
|
/**
|
|
1445
|
-
* ISO 8601 date-time with zone offset, present only when scope is Temporary (RFC 034 Decision 1.1) — a business date, not an epoch instant. Every evaluation compares `now` against this value directly; it is the source of truth for whether a Temporary filter is still active, independent of `state` or row existence.
|
|
1449
|
+
* ISO 8601 date-time with zone offset, present only when scope is Temporary (RFC 034 Decision 1.1) — a business date, not an epoch instant. Every evaluation compares `now` against this value directly; it is the source of truth for whether a Temporary filter is still active, independent of `state` or row existence. Mutable on update (reader #266), alongside scope — moving the date bumps ruleChangedAt the same way a scope change does.
|
|
1446
1450
|
*/
|
|
1447
1451
|
expiresAt?: string;
|
|
1448
1452
|
/**
|
|
@@ -1510,11 +1514,11 @@ data through `byAccountAndState`.
|
|
|
1510
1514
|
*/
|
|
1511
1515
|
name: String256;
|
|
1512
1516
|
/**
|
|
1513
|
-
* Standing (permanent) or Temporary (expires). Governs whether expiresAt/ttl are present (RFC 034 Decision 1).
|
|
1517
|
+
* Standing (permanent) or Temporary (expires). Governs whether expiresAt/ttl are present (RFC 034 Decision 1). Mutable on update (reader #266): switching scope re-derives ttl and re-evaluates state from expiresAt, and bumps ruleChangedAt so a lapsed filter's back-application can be offered again. The semantic anchor stays immutable regardless — repointing it would silently change what a saved filter matches with nothing visible changing, which deserves a new filter instead.
|
|
1514
1518
|
*/
|
|
1515
1519
|
scope: FilterScope;
|
|
1516
1520
|
/**
|
|
1517
|
-
* ISO 8601 date-time with zone offset, present only when scope is Temporary (RFC 034 Decision 1.1) — a business date, not an epoch instant. Every evaluation compares `now` against this value directly; it is the source of truth for whether a Temporary filter is still active, independent of `state` or row existence.
|
|
1521
|
+
* ISO 8601 date-time with zone offset, present only when scope is Temporary (RFC 034 Decision 1.1) — a business date, not an epoch instant. Every evaluation compares `now` against this value directly; it is the source of truth for whether a Temporary filter is still active, independent of `state` or row existence. Mutable on update (reader #266), alongside scope — moving the date bumps ruleChangedAt the same way a scope change does.
|
|
1518
1522
|
*/
|
|
1519
1523
|
expiresAt?: string;
|
|
1520
1524
|
/**
|
|
@@ -1564,11 +1568,11 @@ sets `hasAnchor`. Absent for a purely-literal filter.
|
|
|
1564
1568
|
*/
|
|
1565
1569
|
name: String256;
|
|
1566
1570
|
/**
|
|
1567
|
-
* Standing (permanent) or Temporary (expires). Governs whether expiresAt/ttl are present (RFC 034 Decision 1).
|
|
1571
|
+
* Standing (permanent) or Temporary (expires). Governs whether expiresAt/ttl are present (RFC 034 Decision 1). Mutable on update (reader #266): switching scope re-derives ttl and re-evaluates state from expiresAt, and bumps ruleChangedAt so a lapsed filter's back-application can be offered again. The semantic anchor stays immutable regardless — repointing it would silently change what a saved filter matches with nothing visible changing, which deserves a new filter instead.
|
|
1568
1572
|
*/
|
|
1569
1573
|
scope: FilterScope;
|
|
1570
1574
|
/**
|
|
1571
|
-
* ISO 8601 date-time with zone offset, present only when scope is Temporary (RFC 034 Decision 1.1) — a business date, not an epoch instant. Every evaluation compares `now` against this value directly; it is the source of truth for whether a Temporary filter is still active, independent of `state` or row existence.
|
|
1575
|
+
* ISO 8601 date-time with zone offset, present only when scope is Temporary (RFC 034 Decision 1.1) — a business date, not an epoch instant. Every evaluation compares `now` against this value directly; it is the source of truth for whether a Temporary filter is still active, independent of `state` or row existence. Mutable on update (reader #266), alongside scope — moving the date bumps ruleChangedAt the same way a scope change does.
|
|
1572
1576
|
*/
|
|
1573
1577
|
expiresAt?: string;
|
|
1574
1578
|
/**
|
|
@@ -1593,13 +1597,33 @@ sets `hasAnchor`. Absent for a purely-literal filter.
|
|
|
1593
1597
|
anchorMessageId?: UUID;
|
|
1594
1598
|
}
|
|
1595
1599
|
/**
|
|
1596
|
-
* Input for updating a filter (RFC 034).
|
|
1600
|
+
* Input for updating a filter (RFC 034, reader #266). The name, predicate,
|
|
1601
|
+
action, scope, and expiresAt are all updatable; `ttl` is always
|
|
1602
|
+
server-derived from `scope`/`expiresAt`, never client-supplied, and
|
|
1603
|
+
`state`/`hasAnchor`/`ruleChangedAt`/`filterId` are server-derived too. A
|
|
1604
|
+
patch touching the predicate, the action, `scope`, or `expiresAt` bumps
|
|
1605
|
+
`ruleChangedAt`; a name-only rename never does (RFC 034 Decision 3.2, reader
|
|
1606
|
+
#266).
|
|
1607
|
+
|
|
1608
|
+
The semantic anchor has no field here at all — it is set once, from
|
|
1609
|
+
`anchorMessageId`, only on `CreateFilterInput`. Repointing an anchor would
|
|
1610
|
+
silently change what a saved filter matches with nothing visible changing;
|
|
1611
|
+
that deserves a new filter, so the server rejects any attempt to smuggle an
|
|
1612
|
+
anchor change through this body (reader #266).
|
|
1597
1613
|
*/
|
|
1598
1614
|
export interface UpdateFilterInput {
|
|
1599
1615
|
/**
|
|
1600
1616
|
* Plain-language name or editable label for this filter
|
|
1601
1617
|
*/
|
|
1602
1618
|
name: String256;
|
|
1619
|
+
/**
|
|
1620
|
+
* Standing (permanent) or Temporary (expires). Governs whether expiresAt/ttl are present (RFC 034 Decision 1). Mutable on update (reader #266): switching scope re-derives ttl and re-evaluates state from expiresAt, and bumps ruleChangedAt so a lapsed filter's back-application can be offered again. The semantic anchor stays immutable regardless — repointing it would silently change what a saved filter matches with nothing visible changing, which deserves a new filter instead.
|
|
1621
|
+
*/
|
|
1622
|
+
scope: FilterScope;
|
|
1623
|
+
/**
|
|
1624
|
+
* ISO 8601 date-time with zone offset, present only when scope is Temporary (RFC 034 Decision 1.1) — a business date, not an epoch instant. Every evaluation compares `now` against this value directly; it is the source of truth for whether a Temporary filter is still active, independent of `state` or row existence. Mutable on update (reader #266), alongside scope — moving the date bumps ruleChangedAt the same way a scope change does.
|
|
1625
|
+
*/
|
|
1626
|
+
expiresAt?: string;
|
|
1603
1627
|
/**
|
|
1604
1628
|
* How literalClauses combine. Meaningless when literalClauses is empty.
|
|
1605
1629
|
*/
|