@remit/api-openapi-types 0.0.52 → 0.0.54
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 +19 -6
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -236,6 +236,10 @@ member (naming the file, the size and the cap), so a refusal must be
|
|
|
236
236
|
distinguishable from a network failure without parsing prose.
|
|
237
237
|
*/
|
|
238
238
|
export type OutboxAttachmentRejectionReason = "EmptyFile" | "UnusableFilename" | "FileTooLarge" | "MessageTooLarge" | "TooManyAttachments" | "ReservationExpired" | "UploadMissing" | "SizeMismatch";
|
|
239
|
+
/**
|
|
240
|
+
* Names a key of `AddressFlags` that a client may address in `PATCH /addresses/{addressId}`. `wellknown` is deliberately absent: it is server-owned, derived from engagement counters, and is never written or removed by a client.
|
|
241
|
+
*/
|
|
242
|
+
export type AddressFlagKey = "trusted" | "blocked" | "muted" | "vip" | "junkOnly" | "category" | "autoArchive" | "unsubscribed";
|
|
239
243
|
/**
|
|
240
244
|
* Whether the header classifier has examined a message's body (issue #331). Persistence-level state on `Message`, deliberately off the wire: no response model carries it. It exists because `category` cannot answer this question — `uncategorized` is both the value a metadata-synced row starts at and the answer the classifier gives when it has nothing to say, so a guard reading `category` alone cannot tell "never examined" from "examined and declined" and re-reads the stored body on every sync pass forever.
|
|
241
245
|
*/
|
|
@@ -2958,6 +2962,10 @@ asking "is this slot free" never has to do the merging itself.
|
|
|
2958
2962
|
* Approximate number of messages synced. Computed as highWaterMarkUid − lastSyncUid (UID-range approximation; UIDs are sparse so this may undercount). Clamped to messagesTotal.
|
|
2959
2963
|
*/
|
|
2960
2964
|
messagesSynced: number;
|
|
2965
|
+
/**
|
|
2966
|
+
* The highest UID ever seen in this mailbox. An arrival is a UID above the highest one seen; a total is not, because one message in and one out nets to zero. A mailbox that has never synced carries the sentinel 0 rather than an absent field.
|
|
2967
|
+
*/
|
|
2968
|
+
highWaterMarkUid: number;
|
|
2961
2969
|
/**
|
|
2962
2970
|
* Timestamp of the last successful message sync for this mailbox
|
|
2963
2971
|
*/
|
|
@@ -4171,7 +4179,7 @@ either way and cannot tell which it received.
|
|
|
4171
4179
|
value: boolean;
|
|
4172
4180
|
}
|
|
4173
4181
|
/**
|
|
4174
|
-
* Address was only ever seen on mail in a Junk folder: withheld from autocomplete suggestions until the account corresponds with it, flags it, or meets it on live mail. Written by sync and by the boot-time repair; clear it by
|
|
4182
|
+
* Address was only ever seen on mail in a Junk folder: withheld from autocomplete suggestions until the account corresponds with it, flags it, or meets it on live mail. Written by sync and by the boot-time repair; clear it by naming this key in `UpdateAddressInput.clearFlags`.
|
|
4175
4183
|
*/
|
|
4176
4184
|
export interface JunkOnlyFlag {
|
|
4177
4185
|
/**
|
|
@@ -4318,12 +4326,16 @@ either way and cannot tell which it received.
|
|
|
4318
4326
|
*/
|
|
4319
4327
|
export interface UpdateAddressInput {
|
|
4320
4328
|
/**
|
|
4321
|
-
* Per-flag merge update; omitted flags are untouched
|
|
4329
|
+
* Per-flag merge update; omitted flags are untouched
|
|
4322
4330
|
*/
|
|
4323
4331
|
flags?: UpdateAddressFlagsInput;
|
|
4332
|
+
/**
|
|
4333
|
+
* Flag keys to remove from the sparse map, leaving the rest untouched. This is the removal form for every flag, whatever its value type — clearing `category` reverts the sender to automatic classification. Applied after `flags`, so a key named in both ends up removed. Removing an absent flag succeeds and changes nothing.
|
|
4334
|
+
*/
|
|
4335
|
+
clearFlags?: AddressFlagKey[];
|
|
4324
4336
|
}
|
|
4325
4337
|
/**
|
|
4326
|
-
* Patch payload for
|
|
4338
|
+
* Patch payload for AddressFlags entries. Sets the flags named here and leaves the others untouched. Removal travels in `UpdateAddressInput.clearFlags`, not here: the `null` alternative below is unreachable over OAS 3.0, where a nullable `$ref` emits as `allOf` and the request validator drops the `nullable` — and no `null` form exists at all for `category`, whose value is an enum with no false-equivalent member.
|
|
4327
4339
|
*/
|
|
4328
4340
|
export interface UpdateAddressFlagsInput {
|
|
4329
4341
|
trusted?: TrustedFlag | any;
|
|
@@ -4332,7 +4344,7 @@ either way and cannot tell which it received.
|
|
|
4332
4344
|
vip?: VipFlag | any;
|
|
4333
4345
|
wellknown?: WellknownFlag | any;
|
|
4334
4346
|
/**
|
|
4335
|
-
*
|
|
4347
|
+
* Name this key in `clearFlags` to offer the address in autocomplete again
|
|
4336
4348
|
*/
|
|
4337
4349
|
junkOnly?: JunkOnlyFlag | any;
|
|
4338
4350
|
category?: CategoryFlag | any;
|
|
@@ -7402,7 +7414,7 @@ Counting: `count=true` answers how many CONVERSATIONS match, over the whole scop
|
|
|
7402
7414
|
config?: AxiosRequestConfig
|
|
7403
7415
|
): OperationResponse<Paths.SearchAddresses.Responses.$200>;
|
|
7404
7416
|
/**
|
|
7405
|
-
* updateAddress - Update an address (currently: per-sender flags). Pass `flags
|
|
7417
|
+
* updateAddress - Update an address (currently: per-sender flags). Pass `flags` to set flags and `clearFlags: ["<name>"]` to remove them. Other flags are untouched.
|
|
7406
7418
|
*/
|
|
7407
7419
|
'updateAddress'(
|
|
7408
7420
|
parameters?: Parameters<Paths.UpdateAddress.PathParameters> | null,
|
|
@@ -8248,7 +8260,7 @@ Counting: `count=true` answers how many CONVERSATIONS match, over the whole scop
|
|
|
8248
8260
|
};
|
|
8249
8261
|
['/addresses/{addressId}']: {
|
|
8250
8262
|
/**
|
|
8251
|
-
* updateAddress - Update an address (currently: per-sender flags). Pass `flags
|
|
8263
|
+
* updateAddress - Update an address (currently: per-sender flags). Pass `flags` to set flags and `clearFlags: ["<name>"]` to remove them. Other flags are untouched.
|
|
8252
8264
|
*/
|
|
8253
8265
|
'patch'(
|
|
8254
8266
|
parameters?: Parameters<Paths.UpdateAddress.PathParameters> | null,
|
|
@@ -8650,6 +8662,7 @@ export type SemanticSearchChunkType = Components.Schemas.SemanticSearchChunkType
|
|
|
8650
8662
|
export type OutboxMessageStatus = Components.Schemas.OutboxMessageStatus;
|
|
8651
8663
|
export type OutboxAttachmentState = Components.Schemas.OutboxAttachmentState;
|
|
8652
8664
|
export type OutboxAttachmentRejectionReason = Components.Schemas.OutboxAttachmentRejectionReason;
|
|
8665
|
+
export type AddressFlagKey = Components.Schemas.AddressFlagKey;
|
|
8653
8666
|
export type MessageClassificationState = Components.Schemas.MessageClassificationState;
|
|
8654
8667
|
export type AuthenticityVerdict = Components.Schemas.AuthenticityVerdict;
|
|
8655
8668
|
export type AuthResultVerdict = Components.Schemas.AuthResultVerdict;
|