@remit/api-openapi-types 0.0.72 → 0.0.74

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types.d.ts +33 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/api-openapi-types",
3
- "version": "0.0.72",
3
+ "version": "0.0.74",
4
4
  "type": "module",
5
5
  "main": "types.d.ts",
6
6
  "types": "types.d.ts",
package/types.d.ts CHANGED
@@ -304,6 +304,10 @@ distinguishable from a network failure without parsing prose.
304
304
  * 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.
305
305
  */
306
306
  export type CalendarSuggestionSource = "IcalendarPart" | "IcalendarAttachment" | "TextHeuristic";
307
+ /**
308
+ * The answer an invitation is added to a calendar with. It is written as the user's `ATTENDEE;PARTSTAT` on the stored event (RFC 5545 3.2.12) and becomes the suggestion's state.
309
+ */
310
+ export type CalendarInviteAnswer = "Accepted" | "Tentative";
307
311
  /**
308
312
  * System message flags defined in RFC 9051 Section 2.3.2 - MUST be supported by all servers
309
313
  */
@@ -4185,6 +4189,14 @@ garbage, which is the only thing the sweep needs to know.
4185
4189
  * Whether the bytes have arrived
4186
4190
  */
4187
4191
  state: OutboxAttachmentState;
4192
+ /**
4193
+ * Content-ID the body refers to this file by, as `cid:<contentId>`
4194
+ */
4195
+ contentId: String256;
4196
+ /**
4197
+ * URL the composer fetches the stored bytes from, the same /content route a received part is read through
4198
+ */
4199
+ contentUrl: string;
4188
4200
  }
4189
4201
  /**
4190
4202
  * Input for updating a draft outbox message
@@ -4273,6 +4285,10 @@ either way and cannot tell which it received.
4273
4285
  * Reserved size. The upload must carry exactly this many bytes.
4274
4286
  */
4275
4287
  sizeBytes: number;
4288
+ /**
4289
+ * Content-ID the body refers to this file by, as `cid:<contentId>`. A file the HTML body refers to goes out inline.
4290
+ */
4291
+ contentId: String256;
4276
4292
  /**
4277
4293
  * Where to PUT the raw bytes. Single use, one attachment, expires.
4278
4294
  */
@@ -5473,7 +5489,7 @@ and no message may make that change without them.
5473
5489
  */
5474
5490
  icalData: string;
5475
5491
  /**
5476
- * 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.
5492
+ * The `CalendarObject` that accepting this suggestion wrote. `""` until it is accepted or answered tentatively — the named absent state, never a missing attribute — and the resource's id afterwards, so the card can link to the event it produced.
5477
5493
  */
5478
5494
  acceptedCalendarObjectId: string;
5479
5495
  createdAt: number;
@@ -5548,7 +5564,7 @@ and no message may make that change without them.
5548
5564
  */
5549
5565
  zoneCertainty: ZoneCertainty;
5550
5566
  /**
5551
- * 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.
5567
+ * The `CalendarObject` that accepting this suggestion wrote. `""` until it is accepted or answered tentatively — the named absent state, never a missing attribute — and the resource's id afterwards, so the card can link to the event it produced.
5552
5568
  */
5553
5569
  acceptedCalendarObjectId: string;
5554
5570
  createdAt: number;
@@ -5562,6 +5578,10 @@ and no message may make that change without them.
5562
5578
  * Collection the accepted event is written into.
5563
5579
  */
5564
5580
  calendarId: UUID;
5581
+ /**
5582
+ * How the user answers. `Tentative` adds the event as a maybe. Refused with 400 on a `Cancel` suggestion, which has nothing to answer tentatively.
5583
+ */
5584
+ answer?: CalendarInviteAnswer;
5565
5585
  }
5566
5586
  /**
5567
5587
  * Body of `POST /calendar-suggestions/{suggestionId}/dismiss`.
@@ -8084,6 +8104,9 @@ same service function every other calendar write goes through — so a web
8084
8104
  edit and a native edit of that event cannot diverge. Accepting a `Cancel`
8085
8105
  suggestion writes `STATUS:CANCELLED` on the resource the same way.
8086
8106
 
8107
+ `answer: Tentative` writes the same resource with `PARTSTAT=TENTATIVE`
8108
+ and moves the suggestion to `Tentative` instead of `Accepted`.
8109
+
8087
8110
  No reply is sent to the organizer. This endpoint sends no mail at all,
8088
8111
  and the card says so.
8089
8112
 
@@ -8092,7 +8115,8 @@ resource and returns the same suggestion, because both the resource id
8092
8115
  and the suggestion id are derived rather than minted.
8093
8116
 
8094
8117
  400 when the suggestion is not one that can be accepted — already
8095
- declined, dismissed or superseded — or when its iCalendar will not parse.
8118
+ answered otherwise, dismissed or superseded — when a `Cancel` suggestion
8119
+ is answered `Tentative`, or when its iCalendar will not parse.
8096
8120
  */
8097
8121
  'acceptCalendarSuggestion'(
8098
8122
  parameters?: Parameters<Paths.AcceptCalendarSuggestion.PathParameters> | null,
@@ -8968,6 +8992,9 @@ same service function every other calendar write goes through — so a web
8968
8992
  edit and a native edit of that event cannot diverge. Accepting a `Cancel`
8969
8993
  suggestion writes `STATUS:CANCELLED` on the resource the same way.
8970
8994
 
8995
+ `answer: Tentative` writes the same resource with `PARTSTAT=TENTATIVE`
8996
+ and moves the suggestion to `Tentative` instead of `Accepted`.
8997
+
8971
8998
  No reply is sent to the organizer. This endpoint sends no mail at all,
8972
8999
  and the card says so.
8973
9000
 
@@ -8976,7 +9003,8 @@ resource and returns the same suggestion, because both the resource id
8976
9003
  and the suggestion id are derived rather than minted.
8977
9004
 
8978
9005
  400 when the suggestion is not one that can be accepted — already
8979
- declined, dismissed or superseded — or when its iCalendar will not parse.
9006
+ answered otherwise, dismissed or superseded — when a `Cancel` suggestion
9007
+ is answered `Tentative`, or when its iCalendar will not parse.
8980
9008
  */
8981
9009
  'post'(
8982
9010
  parameters?: Parameters<Paths.AcceptCalendarSuggestion.PathParameters> | null,
@@ -9256,6 +9284,7 @@ export type LabelAction = Components.Schemas.LabelAction;
9256
9284
  export type CalendarSuggestionState = Components.Schemas.CalendarSuggestionState;
9257
9285
  export type CalendarInviteMethod = Components.Schemas.CalendarInviteMethod;
9258
9286
  export type CalendarSuggestionSource = Components.Schemas.CalendarSuggestionSource;
9287
+ export type CalendarInviteAnswer = Components.Schemas.CalendarInviteAnswer;
9259
9288
  export type MessageSystemFlag = Components.Schemas.MessageSystemFlag;
9260
9289
  export type MessageKeywordFlag = Components.Schemas.MessageKeywordFlag;
9261
9290
  export type MailboxAttribute = Components.Schemas.MailboxAttribute;