@remit/api-openapi-types 0.0.16 → 0.0.17
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 +284 -33
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -117,6 +117,10 @@ current enum emitter anyway, so the wire contract uses the bare form.
|
|
|
117
117
|
* 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.
|
|
118
118
|
*/
|
|
119
119
|
export type FilterClauseField = "From" | "Subject" | "HasWords" | "ListId" | "FromDomain";
|
|
120
|
+
/**
|
|
121
|
+
* Display color for a user-defined Label (RFC 030).
|
|
122
|
+
*/
|
|
123
|
+
export type LabelColor = "Default" | "Red" | "Orange" | "Yellow" | "Green" | "Teal" | "Blue" | "Purple" | "Gray";
|
|
120
124
|
/**
|
|
121
125
|
* Lifecycle state of a smart-organize back-apply job (RFC 034, #1278). Mirrors the account-export job's lifecycle: a Pending row the worker picks up, drives to Running, then to a terminal Complete or Failed.
|
|
122
126
|
*/
|
|
@@ -189,6 +193,10 @@ current enum emitter anyway, so the wire contract uses the bare form.
|
|
|
189
193
|
* Message reference types per RFC 2822 Section 3.6.4
|
|
190
194
|
*/
|
|
191
195
|
export type ReferenceType = "in_reply_to" | "references";
|
|
196
|
+
/**
|
|
197
|
+
* Manual bulk label action (issue #26) — apply or remove a label on a `just these` selection. Never sets `appliedByFilterId`: that field is reserved for filter-driven applies (RFC 034 Decision 3.3).
|
|
198
|
+
*/
|
|
199
|
+
export type LabelAction = "Apply" | "Remove";
|
|
192
200
|
/**
|
|
193
201
|
* System message flags defined in RFC 9051 Section 2.3.2 - MUST be supported by all servers
|
|
194
202
|
*/
|
|
@@ -213,10 +221,6 @@ current enum emitter anyway, so the wire contract uses the bare form.
|
|
|
213
221
|
* Known user-setting keys. Each maps, in the registry, to a required value kind and a zod schema. New keys are added deliberately by extending this enum and the registry — never as an ad-hoc column.
|
|
214
222
|
*/
|
|
215
223
|
export type AccountSettingName = "Theme" | "Density" | "DefaultComposerFormat" | "PinnedFolders" | "AccountSignaturePlainText" | "AccountSignatureHtml" | "AccountDisplayName" | "AccountMuted" | "MailboxDisplayName" | "MailboxMuted" | "FolderRoleAppointment" | "MailboxRole";
|
|
216
|
-
/**
|
|
217
|
-
* Display color for a user-defined Label (RFC 030).
|
|
218
|
-
*/
|
|
219
|
-
export type LabelColor = "Default" | "Red" | "Orange" | "Yellow" | "Green" | "Teal" | "Blue" | "Purple" | "Gray";
|
|
220
224
|
/**
|
|
221
225
|
* Explicit state engine for a pending placement-move marker (issue #1271, epic #1281). Recovery keys off this field, not control-flow inference: a redelivered/retried call drives a marker forward from whichever state it is actually in, rather than re-deriving intent by comparing the message's current location.
|
|
222
226
|
*/
|
|
@@ -1641,6 +1645,86 @@ anchor change through this body (reader #266).
|
|
|
1641
1645
|
*/
|
|
1642
1646
|
actionMailboxId: string;
|
|
1643
1647
|
}
|
|
1648
|
+
/**
|
|
1649
|
+
* A user-defined label definition, scoped to an account (RFC 030). labelId is a stable id; name is a separate mutable overlay, never the key.
|
|
1650
|
+
*/
|
|
1651
|
+
export interface Label {
|
|
1652
|
+
/**
|
|
1653
|
+
* Primary identifier
|
|
1654
|
+
*/
|
|
1655
|
+
labelId: UUID;
|
|
1656
|
+
/**
|
|
1657
|
+
* Owning account configuration
|
|
1658
|
+
*/
|
|
1659
|
+
accountConfigId: UUID;
|
|
1660
|
+
/**
|
|
1661
|
+
* Human-readable label name (display)
|
|
1662
|
+
*/
|
|
1663
|
+
name: String140;
|
|
1664
|
+
/**
|
|
1665
|
+
* Lowercased/trimmed form of name, used for dedupe via byNormalizedName
|
|
1666
|
+
*/
|
|
1667
|
+
normalizedName: String140;
|
|
1668
|
+
/**
|
|
1669
|
+
* Display color for this label
|
|
1670
|
+
*/
|
|
1671
|
+
color: LabelColor;
|
|
1672
|
+
createdAt: number;
|
|
1673
|
+
updatedAt: number;
|
|
1674
|
+
}
|
|
1675
|
+
/**
|
|
1676
|
+
* Label item returned by list/get/create/update operations (RFC 030). `filterCount` is computed at read time so a client can name the blast radius before confirming a delete — the delete itself never blocks on it (issue #26).
|
|
1677
|
+
*/
|
|
1678
|
+
export interface LabelResponse {
|
|
1679
|
+
/**
|
|
1680
|
+
* Primary identifier
|
|
1681
|
+
*/
|
|
1682
|
+
labelId: UUID;
|
|
1683
|
+
/**
|
|
1684
|
+
* Owning account configuration
|
|
1685
|
+
*/
|
|
1686
|
+
accountConfigId: UUID;
|
|
1687
|
+
/**
|
|
1688
|
+
* Human-readable label name (display)
|
|
1689
|
+
*/
|
|
1690
|
+
name: String140;
|
|
1691
|
+
/**
|
|
1692
|
+
* Display color for this label
|
|
1693
|
+
*/
|
|
1694
|
+
color: LabelColor;
|
|
1695
|
+
createdAt: number;
|
|
1696
|
+
updatedAt: number;
|
|
1697
|
+
/**
|
|
1698
|
+
* Number of the account's filters whose `actionLabelId` is this label. Deleting the label deletes every one of them (issue #26) — a client shows this count in its delete confirmation.
|
|
1699
|
+
*/
|
|
1700
|
+
filterCount: number;
|
|
1701
|
+
}
|
|
1702
|
+
/**
|
|
1703
|
+
* Input for creating a label (RFC 030). `normalizedName` is server-derived from `name` and excluded by its Read-only visibility.
|
|
1704
|
+
*/
|
|
1705
|
+
export interface CreateLabelInput {
|
|
1706
|
+
/**
|
|
1707
|
+
* Human-readable label name (display)
|
|
1708
|
+
*/
|
|
1709
|
+
name: String140;
|
|
1710
|
+
/**
|
|
1711
|
+
* Display color for this label
|
|
1712
|
+
*/
|
|
1713
|
+
color: LabelColor;
|
|
1714
|
+
}
|
|
1715
|
+
/**
|
|
1716
|
+
* Input for updating a label (RFC 030). Only `name` and `color` are mutable.
|
|
1717
|
+
*/
|
|
1718
|
+
export interface UpdateLabelInput {
|
|
1719
|
+
/**
|
|
1720
|
+
* Human-readable label name (display)
|
|
1721
|
+
*/
|
|
1722
|
+
name: String140;
|
|
1723
|
+
/**
|
|
1724
|
+
* Display color for this label
|
|
1725
|
+
*/
|
|
1726
|
+
color: LabelColor;
|
|
1727
|
+
}
|
|
1644
1728
|
/**
|
|
1645
1729
|
* The predicate + action for a one-time "all like these" back-apply (RFC 034
|
|
1646
1730
|
recap, #1278). A distinct model, deliberately NOT a Filter: it carries no
|
|
@@ -2348,6 +2432,10 @@ standing to persist.
|
|
|
2348
2432
|
* Present only when Remit auto-moved this message on body-sync. Absent means the message was not auto-moved by Remit.
|
|
2349
2433
|
*/
|
|
2350
2434
|
autoMoved?: AutoMovedInfo;
|
|
2435
|
+
/**
|
|
2436
|
+
* Labels applied to this message — filter-, organize-, and manually-applied alike (issue #26). Absent/empty means no label is applied.
|
|
2437
|
+
*/
|
|
2438
|
+
labels?: LabelSummaryResponse[];
|
|
2351
2439
|
}
|
|
2352
2440
|
/**
|
|
2353
2441
|
* Structured sender-authenticity signal, derived from headers at classification time. Absent for messages classified before this field was introduced — clients should treat absence as no-signal.
|
|
@@ -2391,6 +2479,14 @@ standing to persist.
|
|
|
2391
2479
|
*/
|
|
2392
2480
|
filterId?: UUID;
|
|
2393
2481
|
}
|
|
2482
|
+
/**
|
|
2483
|
+
* The id, name, and color of a label applied to a message — embedded on message/thread read responses (issue #26). Never the full LabelResponse: a read-time attachment carries no filterCount.
|
|
2484
|
+
*/
|
|
2485
|
+
export interface LabelSummaryResponse {
|
|
2486
|
+
labelId: UUID;
|
|
2487
|
+
name: String140;
|
|
2488
|
+
color: LabelColor;
|
|
2489
|
+
}
|
|
2394
2490
|
/**
|
|
2395
2491
|
* Aggregate response for `searchThreads`. Carries the matching rows (`items`), a
|
|
2396
2492
|
pagination `continuationToken`, and an optional `count` of matches within the
|
|
@@ -3236,6 +3332,10 @@ server-capped window. `items` is omitted when `results=false` (count-only);
|
|
|
3236
3332
|
* Present only when Remit auto-moved this message on body-sync. Absent means the message was not auto-moved by Remit.
|
|
3237
3333
|
*/
|
|
3238
3334
|
autoMoved?: AutoMovedInfo;
|
|
3335
|
+
/**
|
|
3336
|
+
* Labels applied to this message — filter-, organize-, and manually-applied alike (issue #26). Absent/empty means no label is applied.
|
|
3337
|
+
*/
|
|
3338
|
+
labels?: LabelSummaryResponse[];
|
|
3239
3339
|
}
|
|
3240
3340
|
/**
|
|
3241
3341
|
* Message envelope (header metadata)
|
|
@@ -3591,6 +3691,23 @@ server-capped window. `items` is omitted when `results=false` (count-only);
|
|
|
3591
3691
|
*/
|
|
3592
3692
|
destinationMailboxId: UUID;
|
|
3593
3693
|
}
|
|
3694
|
+
/**
|
|
3695
|
+
* Input for a manual bulk label action — the "just these" scope (RFC 034 recap). `appliedByFilterId` never gets set on the resulting `MessageLabel` rows; that provenance is reserved for filter/organize applies (RFC 034 Decision 3.3).
|
|
3696
|
+
*/
|
|
3697
|
+
export interface UpdateMessageLabelsInput {
|
|
3698
|
+
/**
|
|
3699
|
+
* List of message IDs to operate on
|
|
3700
|
+
*/
|
|
3701
|
+
messageIds: UUID[];
|
|
3702
|
+
/**
|
|
3703
|
+
* Label to apply or remove
|
|
3704
|
+
*/
|
|
3705
|
+
labelId: UUID;
|
|
3706
|
+
/**
|
|
3707
|
+
* Whether to apply or remove the label
|
|
3708
|
+
*/
|
|
3709
|
+
action: LabelAction;
|
|
3710
|
+
}
|
|
3594
3711
|
/**
|
|
3595
3712
|
* Junction table linking envelope addresses to normalized addresses. Stores per-message display name since it may vary.
|
|
3596
3713
|
*/
|
|
@@ -4088,33 +4205,6 @@ locally".
|
|
|
4088
4205
|
createdAt: number;
|
|
4089
4206
|
updatedAt: number;
|
|
4090
4207
|
}
|
|
4091
|
-
/**
|
|
4092
|
-
* A user-defined label definition, scoped to an account (RFC 030). labelId is a stable id; name is a separate mutable overlay, never the key.
|
|
4093
|
-
*/
|
|
4094
|
-
export interface Label {
|
|
4095
|
-
/**
|
|
4096
|
-
* Primary identifier
|
|
4097
|
-
*/
|
|
4098
|
-
labelId: UUID;
|
|
4099
|
-
/**
|
|
4100
|
-
* Owning account configuration
|
|
4101
|
-
*/
|
|
4102
|
-
accountConfigId: UUID;
|
|
4103
|
-
/**
|
|
4104
|
-
* Human-readable label name (display)
|
|
4105
|
-
*/
|
|
4106
|
-
name: String140;
|
|
4107
|
-
/**
|
|
4108
|
-
* Lowercased/trimmed form of name, used for dedupe via byNormalizedName
|
|
4109
|
-
*/
|
|
4110
|
-
normalizedName: String140;
|
|
4111
|
-
/**
|
|
4112
|
-
* Display color for this label
|
|
4113
|
-
*/
|
|
4114
|
-
color: LabelColor;
|
|
4115
|
-
createdAt: number;
|
|
4116
|
-
updatedAt: number;
|
|
4117
|
-
}
|
|
4118
4208
|
/**
|
|
4119
4209
|
* Junction whose existence *is* a label assignment (RFC 030). Holds only ids
|
|
4120
4210
|
and is hydrated with `batchGet`. Keyed by a deterministic UUID v5 derived
|
|
@@ -4354,6 +4444,53 @@ declare namespace Paths {
|
|
|
4354
4444
|
namespace Responses {
|
|
4355
4445
|
}
|
|
4356
4446
|
}
|
|
4447
|
+
namespace ListLabels {
|
|
4448
|
+
export interface PathParameters {
|
|
4449
|
+
accountId: Components.Schemas.UUID;
|
|
4450
|
+
}
|
|
4451
|
+
export interface QueryParameters {
|
|
4452
|
+
continuationToken?: string;
|
|
4453
|
+
}
|
|
4454
|
+
namespace Responses {
|
|
4455
|
+
export type $200 = void;
|
|
4456
|
+
}
|
|
4457
|
+
}
|
|
4458
|
+
namespace CreateLabel {
|
|
4459
|
+
export interface PathParameters {
|
|
4460
|
+
accountId: Components.Schemas.UUID;
|
|
4461
|
+
}
|
|
4462
|
+
export type RequestBody = Components.Schemas.CreateLabelInput;
|
|
4463
|
+
namespace Responses {
|
|
4464
|
+
export type $200 = void;
|
|
4465
|
+
}
|
|
4466
|
+
}
|
|
4467
|
+
namespace GetLabel {
|
|
4468
|
+
export interface PathParameters {
|
|
4469
|
+
accountId: Components.Schemas.UUID;
|
|
4470
|
+
labelId: Components.Schemas.UUID;
|
|
4471
|
+
}
|
|
4472
|
+
namespace Responses {
|
|
4473
|
+
export type $200 = void;
|
|
4474
|
+
}
|
|
4475
|
+
}
|
|
4476
|
+
namespace UpdateLabel {
|
|
4477
|
+
export interface PathParameters {
|
|
4478
|
+
accountId: Components.Schemas.UUID;
|
|
4479
|
+
labelId: Components.Schemas.UUID;
|
|
4480
|
+
}
|
|
4481
|
+
export type RequestBody = Components.Schemas.UpdateLabelInput;
|
|
4482
|
+
namespace Responses {
|
|
4483
|
+
export type $200 = void;
|
|
4484
|
+
}
|
|
4485
|
+
}
|
|
4486
|
+
namespace DeleteLabel {
|
|
4487
|
+
export interface PathParameters {
|
|
4488
|
+
accountId: Components.Schemas.UUID;
|
|
4489
|
+
labelId: Components.Schemas.UUID;
|
|
4490
|
+
}
|
|
4491
|
+
namespace Responses {
|
|
4492
|
+
}
|
|
4493
|
+
}
|
|
4357
4494
|
namespace CreateOrganizeJob {
|
|
4358
4495
|
export interface PathParameters {
|
|
4359
4496
|
accountId: Components.Schemas.UUID;
|
|
@@ -4638,6 +4775,12 @@ declare namespace Paths {
|
|
|
4638
4775
|
export type $200 = void;
|
|
4639
4776
|
}
|
|
4640
4777
|
}
|
|
4778
|
+
namespace UpdateMessageLabels {
|
|
4779
|
+
export type RequestBody = Components.Schemas.UpdateMessageLabelsInput;
|
|
4780
|
+
namespace Responses {
|
|
4781
|
+
export type $200 = void;
|
|
4782
|
+
}
|
|
4783
|
+
}
|
|
4641
4784
|
}
|
|
4642
4785
|
|
|
4643
4786
|
export interface OperationMethods {
|
|
@@ -4793,6 +4936,46 @@ export interface OperationMethods {
|
|
|
4793
4936
|
data?: any,
|
|
4794
4937
|
config?: AxiosRequestConfig
|
|
4795
4938
|
): OperationResponse<any>;
|
|
4939
|
+
/**
|
|
4940
|
+
* listLabels
|
|
4941
|
+
*/
|
|
4942
|
+
'listLabels'(
|
|
4943
|
+
parameters?: Parameters<Paths.ListLabels.PathParameters & Paths.ListLabels.QueryParameters> | null,
|
|
4944
|
+
data?: any,
|
|
4945
|
+
config?: AxiosRequestConfig
|
|
4946
|
+
): OperationResponse<Paths.ListLabels.Responses.$200>;
|
|
4947
|
+
/**
|
|
4948
|
+
* createLabel
|
|
4949
|
+
*/
|
|
4950
|
+
'createLabel'(
|
|
4951
|
+
parameters?: Parameters<Paths.CreateLabel.PathParameters> | null,
|
|
4952
|
+
data?: Paths.CreateLabel.RequestBody,
|
|
4953
|
+
config?: AxiosRequestConfig
|
|
4954
|
+
): OperationResponse<Paths.CreateLabel.Responses.$200>;
|
|
4955
|
+
/**
|
|
4956
|
+
* getLabel
|
|
4957
|
+
*/
|
|
4958
|
+
'getLabel'(
|
|
4959
|
+
parameters?: Parameters<Paths.GetLabel.PathParameters> | null,
|
|
4960
|
+
data?: any,
|
|
4961
|
+
config?: AxiosRequestConfig
|
|
4962
|
+
): OperationResponse<Paths.GetLabel.Responses.$200>;
|
|
4963
|
+
/**
|
|
4964
|
+
* updateLabel
|
|
4965
|
+
*/
|
|
4966
|
+
'updateLabel'(
|
|
4967
|
+
parameters?: Parameters<Paths.UpdateLabel.PathParameters> | null,
|
|
4968
|
+
data?: Paths.UpdateLabel.RequestBody,
|
|
4969
|
+
config?: AxiosRequestConfig
|
|
4970
|
+
): OperationResponse<Paths.UpdateLabel.Responses.$200>;
|
|
4971
|
+
/**
|
|
4972
|
+
* deleteLabel - Delete a label. Cascades in both directions (issue #26): every `MessageLabel` row for it is removed, and every filter whose `actionLabelId` is this label is deleted outright — never left dangling, never blocking the delete. The client is expected to confirm first, naming `LabelResponse.filterCount` as the number of filters that will go with it.
|
|
4973
|
+
*/
|
|
4974
|
+
'deleteLabel'(
|
|
4975
|
+
parameters?: Parameters<Paths.DeleteLabel.PathParameters> | null,
|
|
4976
|
+
data?: any,
|
|
4977
|
+
config?: AxiosRequestConfig
|
|
4978
|
+
): OperationResponse<any>;
|
|
4796
4979
|
/**
|
|
4797
4980
|
* createOrganizeJob - Start a one-time "all like these" back-apply: match the corpus against the given predicate and apply the action to every match, in one pass. Returns immediately with an organizeJobId; poll GET /accounts/{accountId}/organize/{organizeJobId} for state and counts. Never creates a Filter or FilterAnchor row (RFC 034 recap).
|
|
4798
4981
|
*/
|
|
@@ -5073,6 +5256,14 @@ Callers that omit `query` are unaffected: the INBOX (and starred) listings behav
|
|
|
5073
5256
|
data?: Paths.CopyMessages.RequestBody,
|
|
5074
5257
|
config?: AxiosRequestConfig
|
|
5075
5258
|
): OperationResponse<Paths.CopyMessages.Responses.$200>;
|
|
5259
|
+
/**
|
|
5260
|
+
* updateMessageLabels - Apply or remove a label on multiple messages — the manual "just these" scope (RFC 034 recap, issue #26). `appliedByFilterId` stays absent on the resulting `MessageLabel` rows; that provenance is reserved for filter/organize applies.
|
|
5261
|
+
*/
|
|
5262
|
+
'updateMessageLabels'(
|
|
5263
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
5264
|
+
data?: Paths.UpdateMessageLabels.RequestBody,
|
|
5265
|
+
config?: AxiosRequestConfig
|
|
5266
|
+
): OperationResponse<Paths.UpdateMessageLabels.Responses.$200>;
|
|
5076
5267
|
}
|
|
5077
5268
|
|
|
5078
5269
|
export interface PathsDictionary {
|
|
@@ -5252,6 +5443,50 @@ export interface PathsDictionary {
|
|
|
5252
5443
|
config?: AxiosRequestConfig
|
|
5253
5444
|
): OperationResponse<any>;
|
|
5254
5445
|
};
|
|
5446
|
+
['/accounts/{accountId}/labels']: {
|
|
5447
|
+
/**
|
|
5448
|
+
* listLabels
|
|
5449
|
+
*/
|
|
5450
|
+
'get'(
|
|
5451
|
+
parameters?: Parameters<Paths.ListLabels.PathParameters & Paths.ListLabels.QueryParameters> | null,
|
|
5452
|
+
data?: any,
|
|
5453
|
+
config?: AxiosRequestConfig
|
|
5454
|
+
): OperationResponse<Paths.ListLabels.Responses.$200>;
|
|
5455
|
+
/**
|
|
5456
|
+
* createLabel
|
|
5457
|
+
*/
|
|
5458
|
+
'post'(
|
|
5459
|
+
parameters?: Parameters<Paths.CreateLabel.PathParameters> | null,
|
|
5460
|
+
data?: Paths.CreateLabel.RequestBody,
|
|
5461
|
+
config?: AxiosRequestConfig
|
|
5462
|
+
): OperationResponse<Paths.CreateLabel.Responses.$200>;
|
|
5463
|
+
};
|
|
5464
|
+
['/accounts/{accountId}/labels/{labelId}']: {
|
|
5465
|
+
/**
|
|
5466
|
+
* getLabel
|
|
5467
|
+
*/
|
|
5468
|
+
'get'(
|
|
5469
|
+
parameters?: Parameters<Paths.GetLabel.PathParameters> | null,
|
|
5470
|
+
data?: any,
|
|
5471
|
+
config?: AxiosRequestConfig
|
|
5472
|
+
): OperationResponse<Paths.GetLabel.Responses.$200>;
|
|
5473
|
+
/**
|
|
5474
|
+
* updateLabel
|
|
5475
|
+
*/
|
|
5476
|
+
'patch'(
|
|
5477
|
+
parameters?: Parameters<Paths.UpdateLabel.PathParameters> | null,
|
|
5478
|
+
data?: Paths.UpdateLabel.RequestBody,
|
|
5479
|
+
config?: AxiosRequestConfig
|
|
5480
|
+
): OperationResponse<Paths.UpdateLabel.Responses.$200>;
|
|
5481
|
+
/**
|
|
5482
|
+
* deleteLabel - Delete a label. Cascades in both directions (issue #26): every `MessageLabel` row for it is removed, and every filter whose `actionLabelId` is this label is deleted outright — never left dangling, never blocking the delete. The client is expected to confirm first, naming `LabelResponse.filterCount` as the number of filters that will go with it.
|
|
5483
|
+
*/
|
|
5484
|
+
'delete'(
|
|
5485
|
+
parameters?: Parameters<Paths.DeleteLabel.PathParameters> | null,
|
|
5486
|
+
data?: any,
|
|
5487
|
+
config?: AxiosRequestConfig
|
|
5488
|
+
): OperationResponse<any>;
|
|
5489
|
+
};
|
|
5255
5490
|
['/accounts/{accountId}/organize']: {
|
|
5256
5491
|
/**
|
|
5257
5492
|
* createOrganizeJob - Start a one-time "all like these" back-apply: match the corpus against the given predicate and apply the action to every match, in one pass. Returns immediately with an organizeJobId; poll GET /accounts/{accountId}/organize/{organizeJobId} for state and counts. Never creates a Filter or FilterAnchor row (RFC 034 recap).
|
|
@@ -5588,6 +5823,16 @@ Callers that omit `query` are unaffected: the INBOX (and starred) listings behav
|
|
|
5588
5823
|
config?: AxiosRequestConfig
|
|
5589
5824
|
): OperationResponse<Paths.CopyMessages.Responses.$200>;
|
|
5590
5825
|
};
|
|
5826
|
+
['/messages/labels']: {
|
|
5827
|
+
/**
|
|
5828
|
+
* updateMessageLabels - Apply or remove a label on multiple messages — the manual "just these" scope (RFC 034 recap, issue #26). `appliedByFilterId` stays absent on the resulting `MessageLabel` rows; that provenance is reserved for filter/organize applies.
|
|
5829
|
+
*/
|
|
5830
|
+
'post'(
|
|
5831
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
5832
|
+
data?: Paths.UpdateMessageLabels.RequestBody,
|
|
5833
|
+
config?: AxiosRequestConfig
|
|
5834
|
+
): OperationResponse<Paths.UpdateMessageLabels.Responses.$200>;
|
|
5835
|
+
};
|
|
5591
5836
|
}
|
|
5592
5837
|
|
|
5593
5838
|
export type Client = OpenAPIClient<OperationMethods, PathsDictionary>;
|
|
@@ -5635,6 +5880,10 @@ export type FilterClause = Components.Schemas.FilterClause;
|
|
|
5635
5880
|
export type FilterResponse = Components.Schemas.FilterResponse;
|
|
5636
5881
|
export type CreateFilterInput = Components.Schemas.CreateFilterInput;
|
|
5637
5882
|
export type UpdateFilterInput = Components.Schemas.UpdateFilterInput;
|
|
5883
|
+
export type Label = Components.Schemas.Label;
|
|
5884
|
+
export type LabelResponse = Components.Schemas.LabelResponse;
|
|
5885
|
+
export type CreateLabelInput = Components.Schemas.CreateLabelInput;
|
|
5886
|
+
export type UpdateLabelInput = Components.Schemas.UpdateLabelInput;
|
|
5638
5887
|
export type OrganizeInput = Components.Schemas.OrganizeInput;
|
|
5639
5888
|
export type CreateOrganizeJobResponse = Components.Schemas.CreateOrganizeJobResponse;
|
|
5640
5889
|
export type OrganizePreviewResponse = Components.Schemas.OrganizePreviewResponse;
|
|
@@ -5653,6 +5902,7 @@ export type ThreadMessage = Components.Schemas.ThreadMessage;
|
|
|
5653
5902
|
export type ThreadMessageResponse = Components.Schemas.ThreadMessageResponse;
|
|
5654
5903
|
export type MessageAuthenticity = Components.Schemas.MessageAuthenticity;
|
|
5655
5904
|
export type AutoMovedInfo = Components.Schemas.AutoMovedInfo;
|
|
5905
|
+
export type LabelSummaryResponse = Components.Schemas.LabelSummaryResponse;
|
|
5656
5906
|
export type ThreadSearchResponse = Components.Schemas.ThreadSearchResponse;
|
|
5657
5907
|
export type SemanticSearchResult = Components.Schemas.SemanticSearchResult;
|
|
5658
5908
|
export type CreateOutboxMessageInput = Components.Schemas.CreateOutboxMessageInput;
|
|
@@ -5692,6 +5942,7 @@ export type DeleteMessagesInput = Components.Schemas.DeleteMessagesInput;
|
|
|
5692
5942
|
export type BulkMessageInput = Components.Schemas.BulkMessageInput;
|
|
5693
5943
|
export type MoveMessagesInput = Components.Schemas.MoveMessagesInput;
|
|
5694
5944
|
export type CopyMessagesInput = Components.Schemas.CopyMessagesInput;
|
|
5945
|
+
export type UpdateMessageLabelsInput = Components.Schemas.UpdateMessageLabelsInput;
|
|
5695
5946
|
export type EnvelopeAddress = Components.Schemas.EnvelopeAddress;
|
|
5696
5947
|
export type AccountSettingValue = Components.Schemas.AccountSettingValue;
|
|
5697
5948
|
export type BooleanSetting = Components.Schemas.BooleanSetting;
|
|
@@ -5713,7 +5964,6 @@ export type BodyPartParameter = Components.Schemas.BodyPartParameter;
|
|
|
5713
5964
|
export type RawMessageStorage = Components.Schemas.RawMessageStorage;
|
|
5714
5965
|
export type BodyPartStorage = Components.Schemas.BodyPartStorage;
|
|
5715
5966
|
export type BodyPartContent = Components.Schemas.BodyPartContent;
|
|
5716
|
-
export type Label = Components.Schemas.Label;
|
|
5717
5967
|
export type MessageLabel = Components.Schemas.MessageLabel;
|
|
5718
5968
|
export type FilterAnchor = Components.Schemas.FilterAnchor;
|
|
5719
5969
|
export type MicrosoftOAuthStartRequest = Components.Schemas.MicrosoftOAuthStartRequest;
|
|
@@ -5738,6 +5988,7 @@ export type FilterScope = Components.Schemas.FilterScope;
|
|
|
5738
5988
|
export type FilterState = Components.Schemas.FilterState;
|
|
5739
5989
|
export type FilterMatchOperator = Components.Schemas.FilterMatchOperator;
|
|
5740
5990
|
export type FilterClauseField = Components.Schemas.FilterClauseField;
|
|
5991
|
+
export type LabelColor = Components.Schemas.LabelColor;
|
|
5741
5992
|
export type OrganizeJobState = Components.Schemas.OrganizeJobState;
|
|
5742
5993
|
export type SortOrder = Components.Schemas.SortOrder;
|
|
5743
5994
|
export type StarColor = Components.Schemas.StarColor;
|
|
@@ -5756,13 +6007,13 @@ export type TransferEncoding = Components.Schemas.TransferEncoding;
|
|
|
5756
6007
|
export type ContentDisposition = Components.Schemas.ContentDisposition;
|
|
5757
6008
|
export type MultipartSubtype = Components.Schemas.MultipartSubtype;
|
|
5758
6009
|
export type ReferenceType = Components.Schemas.ReferenceType;
|
|
6010
|
+
export type LabelAction = Components.Schemas.LabelAction;
|
|
5759
6011
|
export type MessageSystemFlag = Components.Schemas.MessageSystemFlag;
|
|
5760
6012
|
export type MessageKeywordFlag = Components.Schemas.MessageKeywordFlag;
|
|
5761
6013
|
export type MailboxAttribute = Components.Schemas.MailboxAttribute;
|
|
5762
6014
|
export type StorageType = Components.Schemas.StorageType;
|
|
5763
6015
|
export type ContentEncoding = Components.Schemas.ContentEncoding;
|
|
5764
6016
|
export type AccountSettingName = Components.Schemas.AccountSettingName;
|
|
5765
|
-
export type LabelColor = Components.Schemas.LabelColor;
|
|
5766
6017
|
export type MessagePlacementMoveState = Components.Schemas.MessagePlacementMoveState;
|
|
5767
6018
|
export type FlagPushOperation = Components.Schemas.FlagPushOperation;
|
|
5768
6019
|
export type MessageFlagPushState = Components.Schemas.MessageFlagPushState;
|