@remit/api-http-client 0.0.12 → 0.0.14
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.gen.ts +29 -9
package/package.json
CHANGED
package/types.gen.ts
CHANGED
|
@@ -687,11 +687,11 @@ export type RemitImapCreateFilterInput = {
|
|
|
687
687
|
*/
|
|
688
688
|
name: String256;
|
|
689
689
|
/**
|
|
690
|
-
* Standing (permanent) or Temporary (expires). Governs whether expiresAt/ttl are present (RFC 034 Decision 1).
|
|
690
|
+
* 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.
|
|
691
691
|
*/
|
|
692
692
|
scope: RemitImapFilterScope;
|
|
693
693
|
/**
|
|
694
|
-
* 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.
|
|
694
|
+
* 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.
|
|
695
695
|
*/
|
|
696
696
|
expiresAt?: string;
|
|
697
697
|
/**
|
|
@@ -973,9 +973,9 @@ export type RemitImapFilterClause = {
|
|
|
973
973
|
};
|
|
974
974
|
|
|
975
975
|
/**
|
|
976
|
-
* Message attribute a FilterClause matches against — RFC 031's Tier 0 literal predicates (
|
|
976
|
+
* Message attribute a FilterClause matches against — RFC 031's Tier 0 literal predicates plus the RFC 038 D2 additions (list membership and sender domain). Every member is matched vector-free at index time and in the back-apply corpus projection.
|
|
977
977
|
*/
|
|
978
|
-
export type RemitImapFilterClauseField = 'From' | 'Subject' | 'HasWords';
|
|
978
|
+
export type RemitImapFilterClauseField = 'From' | 'Subject' | 'HasWords' | 'ListId' | 'FromDomain';
|
|
979
979
|
|
|
980
980
|
/**
|
|
981
981
|
* How a Filter's literalClauses combine (RFC 031 "literal predicates, AND/OR"). Ignored when literalClauses is empty.
|
|
@@ -999,11 +999,11 @@ export type RemitImapFilterResponse = {
|
|
|
999
999
|
*/
|
|
1000
1000
|
name: String256;
|
|
1001
1001
|
/**
|
|
1002
|
-
* Standing (permanent) or Temporary (expires). Governs whether expiresAt/ttl are present (RFC 034 Decision 1).
|
|
1002
|
+
* 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.
|
|
1003
1003
|
*/
|
|
1004
1004
|
scope: RemitImapFilterScope;
|
|
1005
1005
|
/**
|
|
1006
|
-
* 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.
|
|
1006
|
+
* 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.
|
|
1007
1007
|
*/
|
|
1008
1008
|
expiresAt?: string;
|
|
1009
1009
|
/**
|
|
@@ -2222,13 +2222,33 @@ export type RemitImapUpdateAddressInput = {
|
|
|
2222
2222
|
};
|
|
2223
2223
|
|
|
2224
2224
|
/**
|
|
2225
|
-
* Input for updating a filter (RFC 034).
|
|
2225
|
+
* Input for updating a filter (RFC 034, reader #266). The name, predicate,
|
|
2226
|
+
* action, scope, and expiresAt are all updatable; `ttl` is always
|
|
2227
|
+
* server-derived from `scope`/`expiresAt`, never client-supplied, and
|
|
2228
|
+
* `state`/`hasAnchor`/`ruleChangedAt`/`filterId` are server-derived too. A
|
|
2229
|
+
* patch touching the predicate, the action, `scope`, or `expiresAt` bumps
|
|
2230
|
+
* `ruleChangedAt`; a name-only rename never does (RFC 034 Decision 3.2, reader
|
|
2231
|
+
* #266).
|
|
2232
|
+
*
|
|
2233
|
+
* The semantic anchor has no field here at all — it is set once, from
|
|
2234
|
+
* `anchorMessageId`, only on `CreateFilterInput`. Repointing an anchor would
|
|
2235
|
+
* silently change what a saved filter matches with nothing visible changing;
|
|
2236
|
+
* that deserves a new filter, so the server rejects any attempt to smuggle an
|
|
2237
|
+
* anchor change through this body (reader #266).
|
|
2226
2238
|
*/
|
|
2227
2239
|
export type RemitImapUpdateFilterInput = {
|
|
2228
2240
|
/**
|
|
2229
2241
|
* Plain-language name or editable label for this filter
|
|
2230
2242
|
*/
|
|
2231
2243
|
name?: String256;
|
|
2244
|
+
/**
|
|
2245
|
+
* 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.
|
|
2246
|
+
*/
|
|
2247
|
+
scope?: RemitImapFilterScope;
|
|
2248
|
+
/**
|
|
2249
|
+
* 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.
|
|
2250
|
+
*/
|
|
2251
|
+
expiresAt?: string;
|
|
2232
2252
|
/**
|
|
2233
2253
|
* How literalClauses combine. Meaningless when literalClauses is empty.
|
|
2234
2254
|
*/
|
|
@@ -2483,11 +2503,11 @@ export type RemitImapFilterResponseWritable = {
|
|
|
2483
2503
|
*/
|
|
2484
2504
|
name: String256;
|
|
2485
2505
|
/**
|
|
2486
|
-
* Standing (permanent) or Temporary (expires). Governs whether expiresAt/ttl are present (RFC 034 Decision 1).
|
|
2506
|
+
* 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.
|
|
2487
2507
|
*/
|
|
2488
2508
|
scope: RemitImapFilterScope;
|
|
2489
2509
|
/**
|
|
2490
|
-
* 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.
|
|
2510
|
+
* 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.
|
|
2491
2511
|
*/
|
|
2492
2512
|
expiresAt?: string;
|
|
2493
2513
|
/**
|