@remit/api-openapi-spec 0.0.73 → 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/openapi.json +84 -1
  2. package/package.json +1 -1
package/openapi.json CHANGED
@@ -3088,6 +3088,72 @@
3088
3088
  }
3089
3089
  }
3090
3090
  },
3091
+ "/calendar-suggestions/{suggestionId}/reopen": {
3092
+ "post": {
3093
+ "operationId": "CalendarSuggestionActionOperations_reopenCalendarSuggestion",
3094
+ "description": "Take an answer back. An accepted, tentative, declined or dismissed\nsuggestion returns to `Pending`, so the card asks again. One\ntransaction: the suggestion is settled `Pending` with\n`acceptedCalendarObjectId: \"\"`, and the calendar object an accept or a\nmaybe wrote is removed with its occurrences and every remainder a\nthis-and-following edit split off it in that calendar, unless another\nsuggestion is still answered into that object; then the object stays with\nthat answer. A sender rule written by\n`dismiss{muteSender}` stays; it is a rule of its own, edited where rules\nare.\n\nNo mail is sent. Idempotent: a `Pending` suggestion is returned as it is.\n\n400 when the suggestion is `Superseded`, which a later revision retired,\na `Cancel`, whose answer rewrote an event it cannot restore, or its\n`answerOvertakenBy` is `Cancellation`, because a cancellation is terminal.",
3095
+ "parameters": [
3096
+ {
3097
+ "name": "suggestionId",
3098
+ "in": "path",
3099
+ "required": true,
3100
+ "schema": {
3101
+ "$ref": "#/components/schemas/UUID"
3102
+ }
3103
+ }
3104
+ ],
3105
+ "responses": {
3106
+ "200": {
3107
+ "description": "The request has succeeded.",
3108
+ "content": {
3109
+ "application/json": {
3110
+ "schema": {
3111
+ "$ref": "#/components/schemas/RemitImap.CalendarSuggestionResponse"
3112
+ }
3113
+ }
3114
+ }
3115
+ },
3116
+ "400": {
3117
+ "description": "The request was refused as malformed or contradictory. `code` is\n`invalid_request` where nothing more specific is known, and the refusal's own\ntoken where there is one.\n\nThe calendar surface answers with the reason it read the request by:\n`invalid_window`, `invalid_scope`, `invalid_url_segment`, `url_segment_taken`,\n`unknown_time_zone` and `default_calendar_undeletable` on the collection and\nthe query, and, for a VCALENDAR it could not accept,\n`malformed_icalendar`, `not_a_calendar`, `unsupported_component`, `no_event`,\n`no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,\n`missing_dt_start`, `backwards_end`, `invalid_date_time`,\n`invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,\n`unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a\nsend from an account whose `syncedServices` leave out `Mail`, with the\naccount in `details.accountId`.\n\n`errors` is present only when the request failed schema validation before any\nhandler ran, and names every field that was refused.",
3118
+ "content": {
3119
+ "application/json": {
3120
+ "schema": {
3121
+ "$ref": "#/components/schemas/ValidationError"
3122
+ }
3123
+ }
3124
+ }
3125
+ },
3126
+ "401": {
3127
+ "description": "The request carried no usable credential. `code` is `unauthorized`.",
3128
+ "content": {
3129
+ "application/json": {
3130
+ "schema": {
3131
+ "$ref": "#/components/schemas/ApiError"
3132
+ }
3133
+ }
3134
+ }
3135
+ },
3136
+ "404": {
3137
+ "description": "Nothing answers to this address, or the caller may not learn that something does. `code` is `not_found`.",
3138
+ "content": {
3139
+ "application/json": {
3140
+ "schema": {
3141
+ "$ref": "#/components/schemas/ApiError"
3142
+ }
3143
+ }
3144
+ }
3145
+ }
3146
+ },
3147
+ "x-amazon-apigateway-integration": {
3148
+ "type": "aws_proxy",
3149
+ "httpMethod": "POST",
3150
+ "passthroughBehavior": "when_no_match",
3151
+ "uri": {
3152
+ "Fn::Sub": "arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:{{HandlerFunctionName}}/invocations"
3153
+ }
3154
+ }
3155
+ }
3156
+ },
3091
3157
  "/calendars": {
3092
3158
  "get": {
3093
3159
  "operationId": "CalendarOperations_listCalendars",
@@ -7224,6 +7290,14 @@
7224
7290
  },
7225
7291
  "description": "Input for bulk flag update operations"
7226
7292
  },
7293
+ "RemitImap.CalendarAnswerOvertaken": {
7294
+ "type": "string",
7295
+ "enum": [
7296
+ "None",
7297
+ "Cancellation"
7298
+ ],
7299
+ "description": "Whether an answered cancellation holds the calendar object this suggestion's answer wrote. A cancellation is terminal, so such an answer cannot be taken back."
7300
+ },
7227
7301
  "RemitImap.CalendarColor": {
7228
7302
  "type": "string",
7229
7303
  "enum": [
@@ -7893,7 +7967,8 @@
7893
7967
  "supersededByMessageId",
7894
7968
  "createdAt",
7895
7969
  "updatedAt",
7896
- "supersededByThreadId"
7970
+ "supersededByThreadId",
7971
+ "answerOvertakenBy"
7897
7972
  ],
7898
7973
  "properties": {
7899
7974
  "suggestionId": {
@@ -8066,6 +8141,14 @@
8066
8141
  "supersededByThreadId": {
8067
8142
  "type": "string",
8068
8143
  "description": "The conversation holding `supersededByMessageId`, which is what the reading pane opens. `\"\"` when this revision was not superseded, or when that message sits in no conversation any more."
8144
+ },
8145
+ "answerOvertakenBy": {
8146
+ "allOf": [
8147
+ {
8148
+ "$ref": "#/components/schemas/RemitImap.CalendarAnswerOvertaken"
8149
+ }
8150
+ ],
8151
+ "description": "Whether an answered cancellation holds the event this answer wrote. `Cancellation` means `reopen` answers 400."
8069
8152
  }
8070
8153
  },
8071
8154
  "description": "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."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/api-openapi-spec",
3
- "version": "0.0.73",
3
+ "version": "0.0.74",
4
4
  "description": "Remit API OpenAPI 3 document, generated from TypeSpec.",
5
5
  "exports": {
6
6
  ".": "./openapi.json",