@remit/api-openapi-types 0.0.53 → 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 +15 -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
|
*/
|
|
@@ -4175,7 +4179,7 @@ either way and cannot tell which it received.
|
|
|
4175
4179
|
value: boolean;
|
|
4176
4180
|
}
|
|
4177
4181
|
/**
|
|
4178
|
-
* 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`.
|
|
4179
4183
|
*/
|
|
4180
4184
|
export interface JunkOnlyFlag {
|
|
4181
4185
|
/**
|
|
@@ -4322,12 +4326,16 @@ either way and cannot tell which it received.
|
|
|
4322
4326
|
*/
|
|
4323
4327
|
export interface UpdateAddressInput {
|
|
4324
4328
|
/**
|
|
4325
|
-
* Per-flag merge update; omitted flags are untouched
|
|
4329
|
+
* Per-flag merge update; omitted flags are untouched
|
|
4326
4330
|
*/
|
|
4327
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[];
|
|
4328
4336
|
}
|
|
4329
4337
|
/**
|
|
4330
|
-
* 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.
|
|
4331
4339
|
*/
|
|
4332
4340
|
export interface UpdateAddressFlagsInput {
|
|
4333
4341
|
trusted?: TrustedFlag | any;
|
|
@@ -4336,7 +4344,7 @@ either way and cannot tell which it received.
|
|
|
4336
4344
|
vip?: VipFlag | any;
|
|
4337
4345
|
wellknown?: WellknownFlag | any;
|
|
4338
4346
|
/**
|
|
4339
|
-
*
|
|
4347
|
+
* Name this key in `clearFlags` to offer the address in autocomplete again
|
|
4340
4348
|
*/
|
|
4341
4349
|
junkOnly?: JunkOnlyFlag | any;
|
|
4342
4350
|
category?: CategoryFlag | any;
|
|
@@ -7406,7 +7414,7 @@ Counting: `count=true` answers how many CONVERSATIONS match, over the whole scop
|
|
|
7406
7414
|
config?: AxiosRequestConfig
|
|
7407
7415
|
): OperationResponse<Paths.SearchAddresses.Responses.$200>;
|
|
7408
7416
|
/**
|
|
7409
|
-
* 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.
|
|
7410
7418
|
*/
|
|
7411
7419
|
'updateAddress'(
|
|
7412
7420
|
parameters?: Parameters<Paths.UpdateAddress.PathParameters> | null,
|
|
@@ -8252,7 +8260,7 @@ Counting: `count=true` answers how many CONVERSATIONS match, over the whole scop
|
|
|
8252
8260
|
};
|
|
8253
8261
|
['/addresses/{addressId}']: {
|
|
8254
8262
|
/**
|
|
8255
|
-
* 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.
|
|
8256
8264
|
*/
|
|
8257
8265
|
'patch'(
|
|
8258
8266
|
parameters?: Parameters<Paths.UpdateAddress.PathParameters> | null,
|
|
@@ -8654,6 +8662,7 @@ export type SemanticSearchChunkType = Components.Schemas.SemanticSearchChunkType
|
|
|
8654
8662
|
export type OutboxMessageStatus = Components.Schemas.OutboxMessageStatus;
|
|
8655
8663
|
export type OutboxAttachmentState = Components.Schemas.OutboxAttachmentState;
|
|
8656
8664
|
export type OutboxAttachmentRejectionReason = Components.Schemas.OutboxAttachmentRejectionReason;
|
|
8665
|
+
export type AddressFlagKey = Components.Schemas.AddressFlagKey;
|
|
8657
8666
|
export type MessageClassificationState = Components.Schemas.MessageClassificationState;
|
|
8658
8667
|
export type AuthenticityVerdict = Components.Schemas.AuthenticityVerdict;
|
|
8659
8668
|
export type AuthResultVerdict = Components.Schemas.AuthResultVerdict;
|