@remit/api-openapi-types 0.0.42 → 0.0.44
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 +383 -0
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -261,6 +261,18 @@ distinguishable from a network failure without parsing prose.
|
|
|
261
261
|
* 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).
|
|
262
262
|
*/
|
|
263
263
|
export type LabelAction = "Apply" | "Remove";
|
|
264
|
+
/**
|
|
265
|
+
* What has become of a suggestion. `Pending` is the only state that asks a person for anything; every other value is a decision already taken, and nothing but an explicit act moves a suggestion out of `Pending`.
|
|
266
|
+
*/
|
|
267
|
+
export type CalendarSuggestionState = "Pending" | "Accepted" | "Declined" | "Tentative" | "Dismissed" | "Superseded";
|
|
268
|
+
/**
|
|
269
|
+
* The iTIP method a scheduling message carries (RFC 5546 3.2), read from the VCALENDAR's METHOD property. It says what the sender is asking for, which is not derivable from the VEVENT: a cancellation and an invitation differ by this property alone.
|
|
270
|
+
*/
|
|
271
|
+
export type CalendarInviteMethod = "Request" | "Reply" | "Cancel" | "Counter" | "Publish" | "None";
|
|
272
|
+
/**
|
|
273
|
+
* Where in a message a suggestion was read from. It is what a card says to explain itself, and it is what separates a suggestion carrying real iCalendar from one inferred out of prose.
|
|
274
|
+
*/
|
|
275
|
+
export type CalendarSuggestionSource = "IcalendarPart" | "IcalendarAttachment" | "TextHeuristic";
|
|
264
276
|
/**
|
|
265
277
|
* System message flags defined in RFC 9051 Section 2.3.2 - MUST be supported by all servers
|
|
266
278
|
*/
|
|
@@ -919,6 +931,10 @@ never from a raw content-type line — parameters carry `name=` and
|
|
|
919
931
|
* Absent unless a configuration import is still waiting on folders IMAP has not produced yet (#1021). Nothing polls a separate route for it.
|
|
920
932
|
*/
|
|
921
933
|
pendingImport?: PendingConfigImport;
|
|
934
|
+
/**
|
|
935
|
+
* Whether this instance stores a vector for every message — SEARCH_EMBEDDING_PROVIDER is anything but `off`. False is a setting an operator turns on (`remit semantic on`), not a failure: the Organize semantic widen and semantic (anchor) filters read stored vectors and have none, so they render an off state rather than an empty result. It rides the config read because it is a property of the deployment, not of a query (#1068).
|
|
936
|
+
*/
|
|
937
|
+
semanticSearchEnabled: boolean;
|
|
922
938
|
}
|
|
923
939
|
/**
|
|
924
940
|
* Configuration container for user accounts. Groups multiple IMAP accounts under a single user.
|
|
@@ -4844,6 +4860,198 @@ either way and cannot tell which it received.
|
|
|
4844
4860
|
*/
|
|
4845
4861
|
reason: string;
|
|
4846
4862
|
}
|
|
4863
|
+
/**
|
|
4864
|
+
* An event a message offers, waiting on a person (issue #1033).
|
|
4865
|
+
|
|
4866
|
+
A suggestion is not a calendar entry and never becomes one on its own. It is
|
|
4867
|
+
derived from a message, lives beside it, and belongs to no collection: it has
|
|
4868
|
+
no etag, no sync sequence, and a DAV client never sees one. Nothing reaches a
|
|
4869
|
+
calendar until someone presses the button, which is what separates this
|
|
4870
|
+
entity from `CalendarObject` — the two are distinct models rather than one
|
|
4871
|
+
model with a kind field, because everything that makes a stored resource a
|
|
4872
|
+
resource is exactly what a suggestion does not have.
|
|
4873
|
+
|
|
4874
|
+
`suggestionId` is derived from `(messageId, bodyPartId, icalUid)`, so a
|
|
4875
|
+
re-sync of the same message converges on the one row it wrote the first time
|
|
4876
|
+
instead of stacking a fresh card on the message every pass.
|
|
4877
|
+
|
|
4878
|
+
Revisions are a chain, not an edit. A later message carrying the same
|
|
4879
|
+
`icalUid` with a higher `SEQUENCE` leaves the earlier suggestion in place as
|
|
4880
|
+
`Superseded` and writes a new `Pending` one, so the message the older card
|
|
4881
|
+
came from still has its card and the user can see which revision they are
|
|
4882
|
+
being asked about. `METHOD:CANCEL` is a suggestion of its own for the same
|
|
4883
|
+
reason: withdrawing an event the user accepted is a change to their calendar,
|
|
4884
|
+
and no message may make that change without them.
|
|
4885
|
+
*/
|
|
4886
|
+
export interface CalendarSuggestion {
|
|
4887
|
+
/**
|
|
4888
|
+
* Primary identifier, derived from messageId + bodyPartId + icalUid
|
|
4889
|
+
*/
|
|
4890
|
+
suggestionId: UUID;
|
|
4891
|
+
/**
|
|
4892
|
+
* Owning account configuration
|
|
4893
|
+
*/
|
|
4894
|
+
accountConfigId: UUID;
|
|
4895
|
+
/**
|
|
4896
|
+
* Message this suggestion was read out of. The card is offered beside this message and nowhere else.
|
|
4897
|
+
*/
|
|
4898
|
+
messageId: UUID;
|
|
4899
|
+
/**
|
|
4900
|
+
* MIME part the iCalendar bytes came from. Part of the identity, so two invitations in one message stay two suggestions rather than overwriting each other.
|
|
4901
|
+
*/
|
|
4902
|
+
bodyPartId: UUID;
|
|
4903
|
+
/**
|
|
4904
|
+
* The VEVENT's UID property (RFC 5545 3.8.4.7). What ties a revision, a cancellation and the original invitation together across three separate messages.
|
|
4905
|
+
*/
|
|
4906
|
+
icalUid: String512;
|
|
4907
|
+
/**
|
|
4908
|
+
* The VEVENT's SEQUENCE property (RFC 5545 3.8.7.4) — the organizer's revision counter. A later message carrying the same `icalUid` with a higher value supersedes this one. `0` when the event declares none, which is the RFC default.
|
|
4909
|
+
*/
|
|
4910
|
+
sequence: number;
|
|
4911
|
+
/**
|
|
4912
|
+
* The iTIP method the VCALENDAR declared. `None` when it declared no METHOD.
|
|
4913
|
+
*/
|
|
4914
|
+
method: CalendarInviteMethod;
|
|
4915
|
+
/**
|
|
4916
|
+
* Where in the message this was read from
|
|
4917
|
+
*/
|
|
4918
|
+
source: CalendarSuggestionSource;
|
|
4919
|
+
/**
|
|
4920
|
+
* What has become of this suggestion. Only `Pending` asks the user for anything.
|
|
4921
|
+
*/
|
|
4922
|
+
state: CalendarSuggestionState;
|
|
4923
|
+
/**
|
|
4924
|
+
* Projection of the VEVENT's SUMMARY. `""` when the event carries none.
|
|
4925
|
+
*/
|
|
4926
|
+
summary: String512;
|
|
4927
|
+
/**
|
|
4928
|
+
* Projection of the VEVENT's DTSTART as an ISO 8601 date-time with zone offset — a business date, not an epoch instant. An all-day event carries midnight in the event's own zone.
|
|
4929
|
+
*/
|
|
4930
|
+
dtStart: String64;
|
|
4931
|
+
/**
|
|
4932
|
+
* Projection of the VEVENT's effective end as an ISO 8601 date-time with zone offset, resolved from DTEND or from DTSTART + DURATION. An event with neither ends when it starts (RFC 5545 3.6.1).
|
|
4933
|
+
*/
|
|
4934
|
+
dtEnd: String64;
|
|
4935
|
+
/**
|
|
4936
|
+
* Whether DTSTART is a DATE rather than a DATE-TIME (RFC 5545 3.3.4) — an all-day or multi-day event, whose end is exclusive.
|
|
4937
|
+
*/
|
|
4938
|
+
allDay: boolean;
|
|
4939
|
+
/**
|
|
4940
|
+
* Projection of the VEVENT's LOCATION. `""` when the event carries none.
|
|
4941
|
+
*/
|
|
4942
|
+
location: String512;
|
|
4943
|
+
/**
|
|
4944
|
+
* Mail address of the VEVENT's ORGANIZER, without the `mailto:` scheme. `""` when the event names none — which is what a `PUBLISH` typically looks like, and why dismissing with `muteSender` mutes the message's sender rather than this field.
|
|
4945
|
+
*/
|
|
4946
|
+
organizer: String256;
|
|
4947
|
+
/**
|
|
4948
|
+
* How the DTSTART above was placed on the clock. `Ambiguous` means the invitation named a zone nothing could resolve, so the time shown may be hours out — a card says so rather than presenting a guess as a fact.
|
|
4949
|
+
*/
|
|
4950
|
+
zoneCertainty: ZoneCertainty;
|
|
4951
|
+
/**
|
|
4952
|
+
* The VCALENDAR text as it arrived in the message, byte for byte — CANONICAL when present. Accepting builds the stored resource out of these bytes, so an X- property nobody modelled survives into the calendar. `""` for a `TextHeuristic` suggestion, which was read out of prose and has no iCalendar behind it.
|
|
4953
|
+
*/
|
|
4954
|
+
icalData: string;
|
|
4955
|
+
/**
|
|
4956
|
+
* The `CalendarObject` that accepting this suggestion wrote. `""` until it is accepted — the named absent state, never a missing attribute — and the resource's id afterwards, so the card can link to the event it produced.
|
|
4957
|
+
*/
|
|
4958
|
+
acceptedCalendarObjectId: string;
|
|
4959
|
+
createdAt: number;
|
|
4960
|
+
updatedAt: number;
|
|
4961
|
+
}
|
|
4962
|
+
/**
|
|
4963
|
+
* A suggestion as the API returns it. The raw `icalData` is not surfaced: a client renders the projected fields, and the bytes exist so that accepting can write them into a calendar unchanged.
|
|
4964
|
+
*/
|
|
4965
|
+
export interface CalendarSuggestionResponse {
|
|
4966
|
+
/**
|
|
4967
|
+
* Primary identifier, derived from messageId + bodyPartId + icalUid
|
|
4968
|
+
*/
|
|
4969
|
+
suggestionId: UUID;
|
|
4970
|
+
/**
|
|
4971
|
+
* Owning account configuration
|
|
4972
|
+
*/
|
|
4973
|
+
accountConfigId: UUID;
|
|
4974
|
+
/**
|
|
4975
|
+
* Message this suggestion was read out of. The card is offered beside this message and nowhere else.
|
|
4976
|
+
*/
|
|
4977
|
+
messageId: UUID;
|
|
4978
|
+
/**
|
|
4979
|
+
* MIME part the iCalendar bytes came from. Part of the identity, so two invitations in one message stay two suggestions rather than overwriting each other.
|
|
4980
|
+
*/
|
|
4981
|
+
bodyPartId: UUID;
|
|
4982
|
+
/**
|
|
4983
|
+
* The VEVENT's UID property (RFC 5545 3.8.4.7). What ties a revision, a cancellation and the original invitation together across three separate messages.
|
|
4984
|
+
*/
|
|
4985
|
+
icalUid: String512;
|
|
4986
|
+
/**
|
|
4987
|
+
* The VEVENT's SEQUENCE property (RFC 5545 3.8.7.4) — the organizer's revision counter. A later message carrying the same `icalUid` with a higher value supersedes this one. `0` when the event declares none, which is the RFC default.
|
|
4988
|
+
*/
|
|
4989
|
+
sequence: number;
|
|
4990
|
+
/**
|
|
4991
|
+
* The iTIP method the VCALENDAR declared. `None` when it declared no METHOD.
|
|
4992
|
+
*/
|
|
4993
|
+
method: CalendarInviteMethod;
|
|
4994
|
+
/**
|
|
4995
|
+
* Where in the message this was read from
|
|
4996
|
+
*/
|
|
4997
|
+
source: CalendarSuggestionSource;
|
|
4998
|
+
/**
|
|
4999
|
+
* What has become of this suggestion. Only `Pending` asks the user for anything.
|
|
5000
|
+
*/
|
|
5001
|
+
state: CalendarSuggestionState;
|
|
5002
|
+
/**
|
|
5003
|
+
* Projection of the VEVENT's SUMMARY. `""` when the event carries none.
|
|
5004
|
+
*/
|
|
5005
|
+
summary: String512;
|
|
5006
|
+
/**
|
|
5007
|
+
* Projection of the VEVENT's DTSTART as an ISO 8601 date-time with zone offset — a business date, not an epoch instant. An all-day event carries midnight in the event's own zone.
|
|
5008
|
+
*/
|
|
5009
|
+
dtStart: String64;
|
|
5010
|
+
/**
|
|
5011
|
+
* Projection of the VEVENT's effective end as an ISO 8601 date-time with zone offset, resolved from DTEND or from DTSTART + DURATION. An event with neither ends when it starts (RFC 5545 3.6.1).
|
|
5012
|
+
*/
|
|
5013
|
+
dtEnd: String64;
|
|
5014
|
+
/**
|
|
5015
|
+
* Whether DTSTART is a DATE rather than a DATE-TIME (RFC 5545 3.3.4) — an all-day or multi-day event, whose end is exclusive.
|
|
5016
|
+
*/
|
|
5017
|
+
allDay: boolean;
|
|
5018
|
+
/**
|
|
5019
|
+
* Projection of the VEVENT's LOCATION. `""` when the event carries none.
|
|
5020
|
+
*/
|
|
5021
|
+
location: String512;
|
|
5022
|
+
/**
|
|
5023
|
+
* Mail address of the VEVENT's ORGANIZER, without the `mailto:` scheme. `""` when the event names none — which is what a `PUBLISH` typically looks like, and why dismissing with `muteSender` mutes the message's sender rather than this field.
|
|
5024
|
+
*/
|
|
5025
|
+
organizer: String256;
|
|
5026
|
+
/**
|
|
5027
|
+
* How the DTSTART above was placed on the clock. `Ambiguous` means the invitation named a zone nothing could resolve, so the time shown may be hours out — a card says so rather than presenting a guess as a fact.
|
|
5028
|
+
*/
|
|
5029
|
+
zoneCertainty: ZoneCertainty;
|
|
5030
|
+
/**
|
|
5031
|
+
* The `CalendarObject` that accepting this suggestion wrote. `""` until it is accepted — the named absent state, never a missing attribute — and the resource's id afterwards, so the card can link to the event it produced.
|
|
5032
|
+
*/
|
|
5033
|
+
acceptedCalendarObjectId: string;
|
|
5034
|
+
createdAt: number;
|
|
5035
|
+
updatedAt: number;
|
|
5036
|
+
}
|
|
5037
|
+
/**
|
|
5038
|
+
* Body of `POST /calendar-suggestions/{suggestionId}/accept`. Names the collection the event is written into; there is no default, because filing someone else's invitation into a calendar the user did not pick is a decision the server does not get to make.
|
|
5039
|
+
*/
|
|
5040
|
+
export interface AcceptCalendarSuggestionInput {
|
|
5041
|
+
/**
|
|
5042
|
+
* Collection the accepted event is written into.
|
|
5043
|
+
*/
|
|
5044
|
+
calendarId: UUID;
|
|
5045
|
+
}
|
|
5046
|
+
/**
|
|
5047
|
+
* Body of `POST /calendar-suggestions/{suggestionId}/dismiss`.
|
|
5048
|
+
*/
|
|
5049
|
+
export interface DismissCalendarSuggestionInput {
|
|
5050
|
+
/**
|
|
5051
|
+
* Also stop offering invitations from this message's sender, by writing a standing `Filter` rule. `false` dismisses this one card and nothing else.
|
|
5052
|
+
*/
|
|
5053
|
+
muteSender: boolean;
|
|
5054
|
+
}
|
|
4847
5055
|
/**
|
|
4848
5056
|
* Junction table linking envelope addresses to normalized addresses. Stores per-message display name since it may vary.
|
|
4849
5057
|
*/
|
|
@@ -6279,6 +6487,54 @@ declare namespace Paths {
|
|
|
6279
6487
|
export type $200 = void;
|
|
6280
6488
|
}
|
|
6281
6489
|
}
|
|
6490
|
+
namespace ListCalendarSuggestions {
|
|
6491
|
+
export interface QueryParameters {
|
|
6492
|
+
state: Components.Schemas.CalendarSuggestionState;
|
|
6493
|
+
continuationToken?: string;
|
|
6494
|
+
}
|
|
6495
|
+
namespace Responses {
|
|
6496
|
+
export type $200 = void;
|
|
6497
|
+
export type $400 = void;
|
|
6498
|
+
}
|
|
6499
|
+
}
|
|
6500
|
+
namespace ListMessageCalendarSuggestions {
|
|
6501
|
+
export interface PathParameters {
|
|
6502
|
+
messageId: Components.Schemas.UUID;
|
|
6503
|
+
}
|
|
6504
|
+
namespace Responses {
|
|
6505
|
+
export type $200 = void;
|
|
6506
|
+
export type $400 = void;
|
|
6507
|
+
}
|
|
6508
|
+
}
|
|
6509
|
+
namespace AcceptCalendarSuggestion {
|
|
6510
|
+
export interface PathParameters {
|
|
6511
|
+
suggestionId: Components.Schemas.UUID;
|
|
6512
|
+
}
|
|
6513
|
+
export type RequestBody = Components.Schemas.AcceptCalendarSuggestionInput;
|
|
6514
|
+
namespace Responses {
|
|
6515
|
+
export type $200 = void;
|
|
6516
|
+
export type $400 = void;
|
|
6517
|
+
}
|
|
6518
|
+
}
|
|
6519
|
+
namespace DeclineCalendarSuggestion {
|
|
6520
|
+
export interface PathParameters {
|
|
6521
|
+
suggestionId: Components.Schemas.UUID;
|
|
6522
|
+
}
|
|
6523
|
+
namespace Responses {
|
|
6524
|
+
export type $200 = void;
|
|
6525
|
+
export type $400 = void;
|
|
6526
|
+
}
|
|
6527
|
+
}
|
|
6528
|
+
namespace DismissCalendarSuggestion {
|
|
6529
|
+
export interface PathParameters {
|
|
6530
|
+
suggestionId: Components.Schemas.UUID;
|
|
6531
|
+
}
|
|
6532
|
+
export type RequestBody = Components.Schemas.DismissCalendarSuggestionInput;
|
|
6533
|
+
namespace Responses {
|
|
6534
|
+
export type $200 = void;
|
|
6535
|
+
export type $400 = void;
|
|
6536
|
+
}
|
|
6537
|
+
}
|
|
6282
6538
|
}
|
|
6283
6539
|
|
|
6284
6540
|
export interface OperationMethods {
|
|
@@ -6926,6 +7182,61 @@ Callers that omit `query` are unaffected: the INBOX (and starred) listings behav
|
|
|
6926
7182
|
data?: Paths.NotSpam.RequestBody,
|
|
6927
7183
|
config?: AxiosRequestConfig
|
|
6928
7184
|
): OperationResponse<Paths.NotSpam.Responses.$200>;
|
|
7185
|
+
/**
|
|
7186
|
+
* listCalendarSuggestions - List the caller's suggestions in one state, newest first. `Pending` is the set that is waiting on a person and the one a client normally asks for.
|
|
7187
|
+
*/
|
|
7188
|
+
'listCalendarSuggestions'(
|
|
7189
|
+
parameters?: Parameters<Paths.ListCalendarSuggestions.QueryParameters> | null,
|
|
7190
|
+
data?: any,
|
|
7191
|
+
config?: AxiosRequestConfig
|
|
7192
|
+
): OperationResponse<Paths.ListCalendarSuggestions.Responses.$200>;
|
|
7193
|
+
/**
|
|
7194
|
+
* listMessageCalendarSuggestions - Every suggestion read out of one message, in whatever state each has reached — a superseded revision included, so the card can say which revision replaced it.
|
|
7195
|
+
*/
|
|
7196
|
+
'listMessageCalendarSuggestions'(
|
|
7197
|
+
parameters?: Parameters<Paths.ListMessageCalendarSuggestions.PathParameters> | null,
|
|
7198
|
+
data?: any,
|
|
7199
|
+
config?: AxiosRequestConfig
|
|
7200
|
+
): OperationResponse<Paths.ListMessageCalendarSuggestions.Responses.$200>;
|
|
7201
|
+
/**
|
|
7202
|
+
* acceptCalendarSuggestion - Add the suggested event to a calendar. One transaction: a VCALENDAR is
|
|
7203
|
+
built from the invitation's own bytes, keeping its UID and SEQUENCE and
|
|
7204
|
+
marking the user `ATTENDEE;PARTSTAT=ACCEPTED`, and written through the
|
|
7205
|
+
same service function every other calendar write goes through — so a web
|
|
7206
|
+
edit and a native edit of that event cannot diverge. Accepting a `Cancel`
|
|
7207
|
+
suggestion writes `STATUS:CANCELLED` on the resource the same way.
|
|
7208
|
+
|
|
7209
|
+
No reply is sent to the organizer. This endpoint sends no mail at all,
|
|
7210
|
+
and the card says so.
|
|
7211
|
+
|
|
7212
|
+
Idempotent: accepting an already-accepted suggestion rewrites the same
|
|
7213
|
+
resource and returns the same suggestion, because both the resource id
|
|
7214
|
+
and the suggestion id are derived rather than minted.
|
|
7215
|
+
|
|
7216
|
+
400 when the suggestion is not one that can be accepted — already
|
|
7217
|
+
declined, dismissed or superseded — or when its iCalendar will not parse.
|
|
7218
|
+
*/
|
|
7219
|
+
'acceptCalendarSuggestion'(
|
|
7220
|
+
parameters?: Parameters<Paths.AcceptCalendarSuggestion.PathParameters> | null,
|
|
7221
|
+
data?: Paths.AcceptCalendarSuggestion.RequestBody,
|
|
7222
|
+
config?: AxiosRequestConfig
|
|
7223
|
+
): OperationResponse<Paths.AcceptCalendarSuggestion.Responses.$200>;
|
|
7224
|
+
/**
|
|
7225
|
+
* declineCalendarSuggestion - Say no. Writes no calendar object and sends no reply to the organizer. Idempotent; 400 when the suggestion was already accepted, since a resource exists and declining would not remove it.
|
|
7226
|
+
*/
|
|
7227
|
+
'declineCalendarSuggestion'(
|
|
7228
|
+
parameters?: Parameters<Paths.DeclineCalendarSuggestion.PathParameters> | null,
|
|
7229
|
+
data?: any,
|
|
7230
|
+
config?: AxiosRequestConfig
|
|
7231
|
+
): OperationResponse<Paths.DeclineCalendarSuggestion.Responses.$200>;
|
|
7232
|
+
/**
|
|
7233
|
+
* dismissCalendarSuggestion - Wave the card away. Writes no calendar object. With `muteSender`, also writes a standing `Filter` rule on the message's sender so their invitations stop being offered. Idempotent; 400 when the suggestion was already accepted.
|
|
7234
|
+
*/
|
|
7235
|
+
'dismissCalendarSuggestion'(
|
|
7236
|
+
parameters?: Parameters<Paths.DismissCalendarSuggestion.PathParameters> | null,
|
|
7237
|
+
data?: Paths.DismissCalendarSuggestion.RequestBody,
|
|
7238
|
+
config?: AxiosRequestConfig
|
|
7239
|
+
): OperationResponse<Paths.DismissCalendarSuggestion.Responses.$200>;
|
|
6929
7240
|
}
|
|
6930
7241
|
|
|
6931
7242
|
export interface PathsDictionary {
|
|
@@ -7681,6 +7992,71 @@ Callers that omit `query` are unaffected: the INBOX (and starred) listings behav
|
|
|
7681
7992
|
config?: AxiosRequestConfig
|
|
7682
7993
|
): OperationResponse<Paths.NotSpam.Responses.$200>;
|
|
7683
7994
|
};
|
|
7995
|
+
['/calendar-suggestions']: {
|
|
7996
|
+
/**
|
|
7997
|
+
* listCalendarSuggestions - List the caller's suggestions in one state, newest first. `Pending` is the set that is waiting on a person and the one a client normally asks for.
|
|
7998
|
+
*/
|
|
7999
|
+
'get'(
|
|
8000
|
+
parameters?: Parameters<Paths.ListCalendarSuggestions.QueryParameters> | null,
|
|
8001
|
+
data?: any,
|
|
8002
|
+
config?: AxiosRequestConfig
|
|
8003
|
+
): OperationResponse<Paths.ListCalendarSuggestions.Responses.$200>;
|
|
8004
|
+
};
|
|
8005
|
+
['/messages/{messageId}/calendar-suggestions']: {
|
|
8006
|
+
/**
|
|
8007
|
+
* listMessageCalendarSuggestions - Every suggestion read out of one message, in whatever state each has reached — a superseded revision included, so the card can say which revision replaced it.
|
|
8008
|
+
*/
|
|
8009
|
+
'get'(
|
|
8010
|
+
parameters?: Parameters<Paths.ListMessageCalendarSuggestions.PathParameters> | null,
|
|
8011
|
+
data?: any,
|
|
8012
|
+
config?: AxiosRequestConfig
|
|
8013
|
+
): OperationResponse<Paths.ListMessageCalendarSuggestions.Responses.$200>;
|
|
8014
|
+
};
|
|
8015
|
+
['/calendar-suggestions/{suggestionId}/accept']: {
|
|
8016
|
+
/**
|
|
8017
|
+
* acceptCalendarSuggestion - Add the suggested event to a calendar. One transaction: a VCALENDAR is
|
|
8018
|
+
built from the invitation's own bytes, keeping its UID and SEQUENCE and
|
|
8019
|
+
marking the user `ATTENDEE;PARTSTAT=ACCEPTED`, and written through the
|
|
8020
|
+
same service function every other calendar write goes through — so a web
|
|
8021
|
+
edit and a native edit of that event cannot diverge. Accepting a `Cancel`
|
|
8022
|
+
suggestion writes `STATUS:CANCELLED` on the resource the same way.
|
|
8023
|
+
|
|
8024
|
+
No reply is sent to the organizer. This endpoint sends no mail at all,
|
|
8025
|
+
and the card says so.
|
|
8026
|
+
|
|
8027
|
+
Idempotent: accepting an already-accepted suggestion rewrites the same
|
|
8028
|
+
resource and returns the same suggestion, because both the resource id
|
|
8029
|
+
and the suggestion id are derived rather than minted.
|
|
8030
|
+
|
|
8031
|
+
400 when the suggestion is not one that can be accepted — already
|
|
8032
|
+
declined, dismissed or superseded — or when its iCalendar will not parse.
|
|
8033
|
+
*/
|
|
8034
|
+
'post'(
|
|
8035
|
+
parameters?: Parameters<Paths.AcceptCalendarSuggestion.PathParameters> | null,
|
|
8036
|
+
data?: Paths.AcceptCalendarSuggestion.RequestBody,
|
|
8037
|
+
config?: AxiosRequestConfig
|
|
8038
|
+
): OperationResponse<Paths.AcceptCalendarSuggestion.Responses.$200>;
|
|
8039
|
+
};
|
|
8040
|
+
['/calendar-suggestions/{suggestionId}/decline']: {
|
|
8041
|
+
/**
|
|
8042
|
+
* declineCalendarSuggestion - Say no. Writes no calendar object and sends no reply to the organizer. Idempotent; 400 when the suggestion was already accepted, since a resource exists and declining would not remove it.
|
|
8043
|
+
*/
|
|
8044
|
+
'post'(
|
|
8045
|
+
parameters?: Parameters<Paths.DeclineCalendarSuggestion.PathParameters> | null,
|
|
8046
|
+
data?: any,
|
|
8047
|
+
config?: AxiosRequestConfig
|
|
8048
|
+
): OperationResponse<Paths.DeclineCalendarSuggestion.Responses.$200>;
|
|
8049
|
+
};
|
|
8050
|
+
['/calendar-suggestions/{suggestionId}/dismiss']: {
|
|
8051
|
+
/**
|
|
8052
|
+
* dismissCalendarSuggestion - Wave the card away. Writes no calendar object. With `muteSender`, also writes a standing `Filter` rule on the message's sender so their invitations stop being offered. Idempotent; 400 when the suggestion was already accepted.
|
|
8053
|
+
*/
|
|
8054
|
+
'post'(
|
|
8055
|
+
parameters?: Parameters<Paths.DismissCalendarSuggestion.PathParameters> | null,
|
|
8056
|
+
data?: Paths.DismissCalendarSuggestion.RequestBody,
|
|
8057
|
+
config?: AxiosRequestConfig
|
|
8058
|
+
): OperationResponse<Paths.DismissCalendarSuggestion.Responses.$200>;
|
|
8059
|
+
};
|
|
7684
8060
|
}
|
|
7685
8061
|
|
|
7686
8062
|
export type Client = OpenAPIClient<OperationMethods, PathsDictionary>;
|
|
@@ -7826,6 +8202,10 @@ export type CopyMessagesInput = Components.Schemas.CopyMessagesInput;
|
|
|
7826
8202
|
export type UpdateMessageLabelsInput = Components.Schemas.UpdateMessageLabelsInput;
|
|
7827
8203
|
export type SpamReportBulkResult = Components.Schemas.SpamReportBulkResult;
|
|
7828
8204
|
export type SpamReportFailure = Components.Schemas.SpamReportFailure;
|
|
8205
|
+
export type CalendarSuggestion = Components.Schemas.CalendarSuggestion;
|
|
8206
|
+
export type CalendarSuggestionResponse = Components.Schemas.CalendarSuggestionResponse;
|
|
8207
|
+
export type AcceptCalendarSuggestionInput = Components.Schemas.AcceptCalendarSuggestionInput;
|
|
8208
|
+
export type DismissCalendarSuggestionInput = Components.Schemas.DismissCalendarSuggestionInput;
|
|
7829
8209
|
export type EnvelopeAddress = Components.Schemas.EnvelopeAddress;
|
|
7830
8210
|
export type ConfigImportUnresolvedRef = Components.Schemas.ConfigImportUnresolvedRef;
|
|
7831
8211
|
export type ConfigImport = Components.Schemas.ConfigImport;
|
|
@@ -7909,6 +8289,9 @@ export type ContentDisposition = Components.Schemas.ContentDisposition;
|
|
|
7909
8289
|
export type MultipartSubtype = Components.Schemas.MultipartSubtype;
|
|
7910
8290
|
export type ReferenceType = Components.Schemas.ReferenceType;
|
|
7911
8291
|
export type LabelAction = Components.Schemas.LabelAction;
|
|
8292
|
+
export type CalendarSuggestionState = Components.Schemas.CalendarSuggestionState;
|
|
8293
|
+
export type CalendarInviteMethod = Components.Schemas.CalendarInviteMethod;
|
|
8294
|
+
export type CalendarSuggestionSource = Components.Schemas.CalendarSuggestionSource;
|
|
7912
8295
|
export type MessageSystemFlag = Components.Schemas.MessageSystemFlag;
|
|
7913
8296
|
export type MessageKeywordFlag = Components.Schemas.MessageKeywordFlag;
|
|
7914
8297
|
export type MailboxAttribute = Components.Schemas.MailboxAttribute;
|