@remit/api-openapi-spec 0.0.69 → 0.0.70

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 +19 -2
  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
  },
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.70",
4
4
  "description": "Remit API OpenAPI 3 document, generated from TypeSpec.",
5
5
  "exports": {
6
6
  ".": "./openapi.json",