@remit/api-openapi-types 0.0.15 → 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 +288 -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
|
*/
|
|
@@ -1360,6 +1364,10 @@ never from a raw content-type line — parameters carry `name=` and
|
|
|
1360
1364
|
* Timestamp of the last successful message sync
|
|
1361
1365
|
*/
|
|
1362
1366
|
lastMessageSyncAt: number;
|
|
1367
|
+
/**
|
|
1368
|
+
* Sync status for mailbox operations (create, rename, delete)
|
|
1369
|
+
*/
|
|
1370
|
+
syncStatus?: MailboxSyncStatus;
|
|
1363
1371
|
/**
|
|
1364
1372
|
* 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
1373
|
*/
|
|
@@ -1637,6 +1645,86 @@ anchor change through this body (reader #266).
|
|
|
1637
1645
|
*/
|
|
1638
1646
|
actionMailboxId: string;
|
|
1639
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
|
+
}
|
|
1640
1728
|
/**
|
|
1641
1729
|
* The predicate + action for a one-time "all like these" back-apply (RFC 034
|
|
1642
1730
|
recap, #1278). A distinct model, deliberately NOT a Filter: it carries no
|
|
@@ -2344,6 +2432,10 @@ standing to persist.
|
|
|
2344
2432
|
* Present only when Remit auto-moved this message on body-sync. Absent means the message was not auto-moved by Remit.
|
|
2345
2433
|
*/
|
|
2346
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[];
|
|
2347
2439
|
}
|
|
2348
2440
|
/**
|
|
2349
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.
|
|
@@ -2387,6 +2479,14 @@ standing to persist.
|
|
|
2387
2479
|
*/
|
|
2388
2480
|
filterId?: UUID;
|
|
2389
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
|
+
}
|
|
2390
2490
|
/**
|
|
2391
2491
|
* Aggregate response for `searchThreads`. Carries the matching rows (`items`), a
|
|
2392
2492
|
pagination `continuationToken`, and an optional `count` of matches within the
|
|
@@ -3232,6 +3332,10 @@ server-capped window. `items` is omitted when `results=false` (count-only);
|
|
|
3232
3332
|
* Present only when Remit auto-moved this message on body-sync. Absent means the message was not auto-moved by Remit.
|
|
3233
3333
|
*/
|
|
3234
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[];
|
|
3235
3339
|
}
|
|
3236
3340
|
/**
|
|
3237
3341
|
* Message envelope (header metadata)
|
|
@@ -3587,6 +3691,23 @@ server-capped window. `items` is omitted when `results=false` (count-only);
|
|
|
3587
3691
|
*/
|
|
3588
3692
|
destinationMailboxId: UUID;
|
|
3589
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
|
+
}
|
|
3590
3711
|
/**
|
|
3591
3712
|
* Junction table linking envelope addresses to normalized addresses. Stores per-message display name since it may vary.
|
|
3592
3713
|
*/
|
|
@@ -4084,33 +4205,6 @@ locally".
|
|
|
4084
4205
|
createdAt: number;
|
|
4085
4206
|
updatedAt: number;
|
|
4086
4207
|
}
|
|
4087
|
-
/**
|
|
4088
|
-
* 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.
|
|
4089
|
-
*/
|
|
4090
|
-
export interface Label {
|
|
4091
|
-
/**
|
|
4092
|
-
* Primary identifier
|
|
4093
|
-
*/
|
|
4094
|
-
labelId: UUID;
|
|
4095
|
-
/**
|
|
4096
|
-
* Owning account configuration
|
|
4097
|
-
*/
|
|
4098
|
-
accountConfigId: UUID;
|
|
4099
|
-
/**
|
|
4100
|
-
* Human-readable label name (display)
|
|
4101
|
-
*/
|
|
4102
|
-
name: String140;
|
|
4103
|
-
/**
|
|
4104
|
-
* Lowercased/trimmed form of name, used for dedupe via byNormalizedName
|
|
4105
|
-
*/
|
|
4106
|
-
normalizedName: String140;
|
|
4107
|
-
/**
|
|
4108
|
-
* Display color for this label
|
|
4109
|
-
*/
|
|
4110
|
-
color: LabelColor;
|
|
4111
|
-
createdAt: number;
|
|
4112
|
-
updatedAt: number;
|
|
4113
|
-
}
|
|
4114
4208
|
/**
|
|
4115
4209
|
* Junction whose existence *is* a label assignment (RFC 030). Holds only ids
|
|
4116
4210
|
and is hydrated with `batchGet`. Keyed by a deterministic UUID v5 derived
|
|
@@ -4350,6 +4444,53 @@ declare namespace Paths {
|
|
|
4350
4444
|
namespace Responses {
|
|
4351
4445
|
}
|
|
4352
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
|
+
}
|
|
4353
4494
|
namespace CreateOrganizeJob {
|
|
4354
4495
|
export interface PathParameters {
|
|
4355
4496
|
accountId: Components.Schemas.UUID;
|
|
@@ -4634,6 +4775,12 @@ declare namespace Paths {
|
|
|
4634
4775
|
export type $200 = void;
|
|
4635
4776
|
}
|
|
4636
4777
|
}
|
|
4778
|
+
namespace UpdateMessageLabels {
|
|
4779
|
+
export type RequestBody = Components.Schemas.UpdateMessageLabelsInput;
|
|
4780
|
+
namespace Responses {
|
|
4781
|
+
export type $200 = void;
|
|
4782
|
+
}
|
|
4783
|
+
}
|
|
4637
4784
|
}
|
|
4638
4785
|
|
|
4639
4786
|
export interface OperationMethods {
|
|
@@ -4789,6 +4936,46 @@ export interface OperationMethods {
|
|
|
4789
4936
|
data?: any,
|
|
4790
4937
|
config?: AxiosRequestConfig
|
|
4791
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>;
|
|
4792
4979
|
/**
|
|
4793
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).
|
|
4794
4981
|
*/
|
|
@@ -5069,6 +5256,14 @@ Callers that omit `query` are unaffected: the INBOX (and starred) listings behav
|
|
|
5069
5256
|
data?: Paths.CopyMessages.RequestBody,
|
|
5070
5257
|
config?: AxiosRequestConfig
|
|
5071
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>;
|
|
5072
5267
|
}
|
|
5073
5268
|
|
|
5074
5269
|
export interface PathsDictionary {
|
|
@@ -5248,6 +5443,50 @@ export interface PathsDictionary {
|
|
|
5248
5443
|
config?: AxiosRequestConfig
|
|
5249
5444
|
): OperationResponse<any>;
|
|
5250
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
|
+
};
|
|
5251
5490
|
['/accounts/{accountId}/organize']: {
|
|
5252
5491
|
/**
|
|
5253
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).
|
|
@@ -5584,6 +5823,16 @@ Callers that omit `query` are unaffected: the INBOX (and starred) listings behav
|
|
|
5584
5823
|
config?: AxiosRequestConfig
|
|
5585
5824
|
): OperationResponse<Paths.CopyMessages.Responses.$200>;
|
|
5586
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
|
+
};
|
|
5587
5836
|
}
|
|
5588
5837
|
|
|
5589
5838
|
export type Client = OpenAPIClient<OperationMethods, PathsDictionary>;
|
|
@@ -5631,6 +5880,10 @@ export type FilterClause = Components.Schemas.FilterClause;
|
|
|
5631
5880
|
export type FilterResponse = Components.Schemas.FilterResponse;
|
|
5632
5881
|
export type CreateFilterInput = Components.Schemas.CreateFilterInput;
|
|
5633
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;
|
|
5634
5887
|
export type OrganizeInput = Components.Schemas.OrganizeInput;
|
|
5635
5888
|
export type CreateOrganizeJobResponse = Components.Schemas.CreateOrganizeJobResponse;
|
|
5636
5889
|
export type OrganizePreviewResponse = Components.Schemas.OrganizePreviewResponse;
|
|
@@ -5649,6 +5902,7 @@ export type ThreadMessage = Components.Schemas.ThreadMessage;
|
|
|
5649
5902
|
export type ThreadMessageResponse = Components.Schemas.ThreadMessageResponse;
|
|
5650
5903
|
export type MessageAuthenticity = Components.Schemas.MessageAuthenticity;
|
|
5651
5904
|
export type AutoMovedInfo = Components.Schemas.AutoMovedInfo;
|
|
5905
|
+
export type LabelSummaryResponse = Components.Schemas.LabelSummaryResponse;
|
|
5652
5906
|
export type ThreadSearchResponse = Components.Schemas.ThreadSearchResponse;
|
|
5653
5907
|
export type SemanticSearchResult = Components.Schemas.SemanticSearchResult;
|
|
5654
5908
|
export type CreateOutboxMessageInput = Components.Schemas.CreateOutboxMessageInput;
|
|
@@ -5688,6 +5942,7 @@ export type DeleteMessagesInput = Components.Schemas.DeleteMessagesInput;
|
|
|
5688
5942
|
export type BulkMessageInput = Components.Schemas.BulkMessageInput;
|
|
5689
5943
|
export type MoveMessagesInput = Components.Schemas.MoveMessagesInput;
|
|
5690
5944
|
export type CopyMessagesInput = Components.Schemas.CopyMessagesInput;
|
|
5945
|
+
export type UpdateMessageLabelsInput = Components.Schemas.UpdateMessageLabelsInput;
|
|
5691
5946
|
export type EnvelopeAddress = Components.Schemas.EnvelopeAddress;
|
|
5692
5947
|
export type AccountSettingValue = Components.Schemas.AccountSettingValue;
|
|
5693
5948
|
export type BooleanSetting = Components.Schemas.BooleanSetting;
|
|
@@ -5709,7 +5964,6 @@ export type BodyPartParameter = Components.Schemas.BodyPartParameter;
|
|
|
5709
5964
|
export type RawMessageStorage = Components.Schemas.RawMessageStorage;
|
|
5710
5965
|
export type BodyPartStorage = Components.Schemas.BodyPartStorage;
|
|
5711
5966
|
export type BodyPartContent = Components.Schemas.BodyPartContent;
|
|
5712
|
-
export type Label = Components.Schemas.Label;
|
|
5713
5967
|
export type MessageLabel = Components.Schemas.MessageLabel;
|
|
5714
5968
|
export type FilterAnchor = Components.Schemas.FilterAnchor;
|
|
5715
5969
|
export type MicrosoftOAuthStartRequest = Components.Schemas.MicrosoftOAuthStartRequest;
|
|
@@ -5734,6 +5988,7 @@ export type FilterScope = Components.Schemas.FilterScope;
|
|
|
5734
5988
|
export type FilterState = Components.Schemas.FilterState;
|
|
5735
5989
|
export type FilterMatchOperator = Components.Schemas.FilterMatchOperator;
|
|
5736
5990
|
export type FilterClauseField = Components.Schemas.FilterClauseField;
|
|
5991
|
+
export type LabelColor = Components.Schemas.LabelColor;
|
|
5737
5992
|
export type OrganizeJobState = Components.Schemas.OrganizeJobState;
|
|
5738
5993
|
export type SortOrder = Components.Schemas.SortOrder;
|
|
5739
5994
|
export type StarColor = Components.Schemas.StarColor;
|
|
@@ -5752,13 +6007,13 @@ export type TransferEncoding = Components.Schemas.TransferEncoding;
|
|
|
5752
6007
|
export type ContentDisposition = Components.Schemas.ContentDisposition;
|
|
5753
6008
|
export type MultipartSubtype = Components.Schemas.MultipartSubtype;
|
|
5754
6009
|
export type ReferenceType = Components.Schemas.ReferenceType;
|
|
6010
|
+
export type LabelAction = Components.Schemas.LabelAction;
|
|
5755
6011
|
export type MessageSystemFlag = Components.Schemas.MessageSystemFlag;
|
|
5756
6012
|
export type MessageKeywordFlag = Components.Schemas.MessageKeywordFlag;
|
|
5757
6013
|
export type MailboxAttribute = Components.Schemas.MailboxAttribute;
|
|
5758
6014
|
export type StorageType = Components.Schemas.StorageType;
|
|
5759
6015
|
export type ContentEncoding = Components.Schemas.ContentEncoding;
|
|
5760
6016
|
export type AccountSettingName = Components.Schemas.AccountSettingName;
|
|
5761
|
-
export type LabelColor = Components.Schemas.LabelColor;
|
|
5762
6017
|
export type MessagePlacementMoveState = Components.Schemas.MessagePlacementMoveState;
|
|
5763
6018
|
export type FlagPushOperation = Components.Schemas.FlagPushOperation;
|
|
5764
6019
|
export type MessageFlagPushState = Components.Schemas.MessageFlagPushState;
|