@remit/api-openapi-spec 0.0.69 → 0.0.71

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/openapi.json +44 -3
  2. package/package.json +1 -1
package/openapi.json CHANGED
@@ -2873,7 +2873,7 @@
2873
2873
  "/calendar-suggestions/{suggestionId}/accept": {
2874
2874
  "post": {
2875
2875
  "operationId": "CalendarSuggestionActionOperations_acceptCalendarSuggestion",
2876
- "description": "Add the suggested event to a calendar. One transaction: a VCALENDAR is\nbuilt from the invitation's own bytes, keeping its UID and SEQUENCE and\nmarking the user `ATTENDEE;PARTSTAT=ACCEPTED`, and written through the\nsame service function every other calendar write goes through — so a web\nedit and a native edit of that event cannot diverge. Accepting a `Cancel`\nsuggestion writes `STATUS:CANCELLED` on the resource the same way.\n\nNo reply is sent to the organizer. This endpoint sends no mail at all,\nand the card says so.\n\nIdempotent: accepting an already-accepted suggestion rewrites the same\nresource and returns the same suggestion, because both the resource id\nand the suggestion id are derived rather than minted.\n\n400 when the suggestion is not one that can be accepted — already\ndeclined, dismissed or superseded — or when its iCalendar will not parse.",
2876
+ "description": "Add the suggested event to a calendar. One transaction: a VCALENDAR is\nbuilt from the invitation's own bytes, keeping its UID and SEQUENCE and\nmarking the user `ATTENDEE;PARTSTAT=ACCEPTED`, and written through the\nsame service function every other calendar write goes through — so a web\nedit and a native edit of that event cannot diverge. Accepting a `Cancel`\nsuggestion writes `STATUS:CANCELLED` on the resource the same way.\n\n`answer: Tentative` writes the same resource with `PARTSTAT=TENTATIVE`\nand moves the suggestion to `Tentative` instead of `Accepted`.\n\nNo reply is sent to the organizer. This endpoint sends no mail at all,\nand the card says so.\n\nIdempotent: accepting an already-accepted suggestion rewrites the same\nresource and returns the same suggestion, because both the resource id\nand the suggestion id are derived rather than minted.\n\n400 when the suggestion is not one that can be accepted — already\nanswered otherwise, dismissed or superseded — when a `Cancel` suggestion\nis answered `Tentative`, or when its iCalendar will not parse.",
2877
2877
  "parameters": [
2878
2878
  {
2879
2879
  "name": "suggestionId",
@@ -6236,6 +6236,15 @@
6236
6236
  }
6237
6237
  ],
6238
6238
  "description": "Collection the accepted event is written into."
6239
+ },
6240
+ "answer": {
6241
+ "allOf": [
6242
+ {
6243
+ "$ref": "#/components/schemas/RemitImap.CalendarInviteAnswer"
6244
+ }
6245
+ ],
6246
+ "description": "How the user answers. `Tentative` adds the event as a maybe. Refused with 400 on a `Cancel` suggestion, which has nothing to answer tentatively.",
6247
+ "default": "Accepted"
6239
6248
  }
6240
6249
  },
6241
6250
  "description": "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."
@@ -7655,6 +7664,14 @@
7655
7664
  },
7656
7665
  "description": "One stretch of time the caller is busy in. Merged across every calendar they\nhold, so two overlapping meetings in two calendars are one span and a caller\nasking \"is this slot free\" never has to do the merging itself."
7657
7666
  },
7667
+ "RemitImap.CalendarInviteAnswer": {
7668
+ "type": "string",
7669
+ "enum": [
7670
+ "Accepted",
7671
+ "Tentative"
7672
+ ],
7673
+ "description": "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."
7674
+ },
7658
7675
  "RemitImap.CalendarInviteMethod": {
7659
7676
  "type": "string",
7660
7677
  "enum": [
@@ -8016,7 +8033,7 @@
8016
8033
  },
8017
8034
  "acceptedCalendarObjectId": {
8018
8035
  "type": "string",
8019
- "description": "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.",
8036
+ "description": "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.",
8020
8037
  "default": "",
8021
8038
  "readOnly": true
8022
8039
  },
@@ -10116,6 +10133,7 @@
10116
10133
  "filename",
10117
10134
  "contentType",
10118
10135
  "sizeBytes",
10136
+ "contentId",
10119
10137
  "uploadUrl",
10120
10138
  "uploadExpiresAt"
10121
10139
  ],
@@ -10158,6 +10176,14 @@
10158
10176
  "minimum": 1,
10159
10177
  "description": "Reserved size. The upload must carry exactly this many bytes."
10160
10178
  },
10179
+ "contentId": {
10180
+ "allOf": [
10181
+ {
10182
+ "$ref": "#/components/schemas/String256"
10183
+ }
10184
+ ],
10185
+ "description": "Content-ID the body refers to this file by, as `cid:<contentId>`. A file the HTML body refers to goes out inline."
10186
+ },
10161
10187
  "uploadUrl": {
10162
10188
  "allOf": [
10163
10189
  {
@@ -10571,7 +10597,9 @@
10571
10597
  "filename",
10572
10598
  "contentType",
10573
10599
  "sizeBytes",
10574
- "state"
10600
+ "state",
10601
+ "contentId",
10602
+ "contentUrl"
10575
10603
  ],
10576
10604
  "properties": {
10577
10605
  "outboxAttachmentId": {
@@ -10625,6 +10653,19 @@
10625
10653
  ],
10626
10654
  "description": "Whether the bytes have arrived",
10627
10655
  "readOnly": true
10656
+ },
10657
+ "contentId": {
10658
+ "allOf": [
10659
+ {
10660
+ "$ref": "#/components/schemas/String256"
10661
+ }
10662
+ ],
10663
+ "description": "Content-ID the body refers to this file by, as `cid:<contentId>`"
10664
+ },
10665
+ "contentUrl": {
10666
+ "type": "string",
10667
+ "format": "uri",
10668
+ "description": "URL the composer fetches the stored bytes from, the same /content route a received part is read through"
10628
10669
  }
10629
10670
  },
10630
10671
  "description": "A file on a draft, as the composer sees it"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/api-openapi-spec",
3
- "version": "0.0.69",
3
+ "version": "0.0.71",
4
4
  "description": "Remit API OpenAPI 3 document, generated from TypeSpec.",
5
5
  "exports": {
6
6
  ".": "./openapi.json",