@remit/api-openapi-spec 0.0.67 → 0.0.68
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/openapi.json +65 -6
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -2361,7 +2361,7 @@
|
|
|
2361
2361
|
},
|
|
2362
2362
|
"post": {
|
|
2363
2363
|
"operationId": "CalendarEventOperations_createCalendarEvent",
|
|
2364
|
-
"description": "Create an event. The server builds the VEVENT and writes it through the single calendar write path — the same one an accepted invitation and a later CalDAV PUT go through — so the object, its expanded occurrences and the collection's sync sequence land together or not at all.",
|
|
2364
|
+
"description": "Create an event. The server builds the VEVENT and writes it through the single calendar write path — the same one an accepted invitation and a later CalDAV PUT go through — so the object, its expanded occurrences and the collection's sync sequence land together or not at all. Refused with 400 `read_only_calendar` for a `Subscribed` collection, whose events belong to the feed.",
|
|
2365
2365
|
"parameters": [],
|
|
2366
2366
|
"responses": {
|
|
2367
2367
|
"200": {
|
|
@@ -2620,7 +2620,7 @@
|
|
|
2620
2620
|
},
|
|
2621
2621
|
"delete": {
|
|
2622
2622
|
"operationId": "CalendarEventDetailOperations_deleteCalendarEvent",
|
|
2623
|
-
"description": "Delete an event. `All` removes the resource and every occurrence it\nproduced; `This` writes an EXDATE for the named occurrence and keeps the\nrest of the series; `Following` truncates the series to end just before\nit.\n\nSame refusals and the same `If-Match` precondition as the update.",
|
|
2623
|
+
"description": "Delete an event. `All` removes the resource and every occurrence it\nproduced; `This` writes an EXDATE for the named occurrence and keeps the\nrest of the series; `Following` truncates the series to end just before\nit.\n\nSame refusals and the same `If-Match` precondition as the update.\nAn event in a `Subscribed` collection is refused with 400\n`read_only_calendar`, here and on the update.",
|
|
2624
2624
|
"parameters": [
|
|
2625
2625
|
{
|
|
2626
2626
|
"name": "calendarObjectId",
|
|
@@ -3126,7 +3126,7 @@
|
|
|
3126
3126
|
},
|
|
3127
3127
|
"post": {
|
|
3128
3128
|
"operationId": "CalendarOperations_createCalendar",
|
|
3129
|
-
"description": "Create a calendar collection. Refused with 400 when `urlSegment` is empty or already taken in this account config — the segment is the collection's identity, so a second create under the same one would otherwise silently return the collection that already exists.",
|
|
3129
|
+
"description": "Create a calendar collection. Refused with 400 when `urlSegment` is empty or already taken in this account config — the segment is the collection's identity, so a second create under the same one would otherwise silently return the collection that already exists. With `subscriptionUrl` the feed is fetched first and a fetch that fails is refused with 400 `subscription_unreachable`, naming why and never the URL.",
|
|
3130
3130
|
"parameters": [],
|
|
3131
3131
|
"responses": {
|
|
3132
3132
|
"200": {
|
|
@@ -3236,6 +3236,7 @@
|
|
|
3236
3236
|
},
|
|
3237
3237
|
"patch": {
|
|
3238
3238
|
"operationId": "CalendarDetailOperations_updateCalendar",
|
|
3239
|
+
"description": "Update a calendar collection. `subscriptionEnabled` is refused with 400 `not_subscribed` on a collection that is not `Subscribed`. Turning it off stops the refresh and removes nothing.",
|
|
3239
3240
|
"parameters": [
|
|
3240
3241
|
{
|
|
3241
3242
|
"name": "calendarId",
|
|
@@ -7693,6 +7694,11 @@
|
|
|
7693
7694
|
"source",
|
|
7694
7695
|
"timezone",
|
|
7695
7696
|
"syncSequence",
|
|
7697
|
+
"subscriptionUrl",
|
|
7698
|
+
"subscriptionEnabled",
|
|
7699
|
+
"subscriptionCheckedAt",
|
|
7700
|
+
"subscriptionFetchedAt",
|
|
7701
|
+
"subscriptionError",
|
|
7696
7702
|
"createdAt",
|
|
7697
7703
|
"updatedAt"
|
|
7698
7704
|
],
|
|
@@ -7777,6 +7783,45 @@
|
|
|
7777
7783
|
"default": 0,
|
|
7778
7784
|
"readOnly": true
|
|
7779
7785
|
},
|
|
7786
|
+
"subscriptionUrl": {
|
|
7787
|
+
"allOf": [
|
|
7788
|
+
{
|
|
7789
|
+
"$ref": "#/components/schemas/String2048"
|
|
7790
|
+
}
|
|
7791
|
+
],
|
|
7792
|
+
"description": "The read-only iCalendar URL a `Subscribed` collection is filled from, such as a Google Calendar secret address. For some providers the URL is the whole credential, so it never reaches a log line. `\"\"` for every other source.",
|
|
7793
|
+
"default": "",
|
|
7794
|
+
"readOnly": true
|
|
7795
|
+
},
|
|
7796
|
+
"subscriptionEnabled": {
|
|
7797
|
+
"type": "boolean",
|
|
7798
|
+
"description": "Whether the scheduled refresh re-reads `subscriptionUrl`. Turning it off stops the refresh and keeps every stored event. Always `false` on a collection that is not `Subscribed`.",
|
|
7799
|
+
"default": false
|
|
7800
|
+
},
|
|
7801
|
+
"subscriptionCheckedAt": {
|
|
7802
|
+
"type": "integer",
|
|
7803
|
+
"format": "int64",
|
|
7804
|
+
"description": "When the subscription was last fetched, whatever the outcome. `0` when it never was.",
|
|
7805
|
+
"default": 0,
|
|
7806
|
+
"readOnly": true
|
|
7807
|
+
},
|
|
7808
|
+
"subscriptionFetchedAt": {
|
|
7809
|
+
"type": "integer",
|
|
7810
|
+
"format": "int64",
|
|
7811
|
+
"description": "When the subscription was last fetched and written. `0` when it never was.",
|
|
7812
|
+
"default": 0,
|
|
7813
|
+
"readOnly": true
|
|
7814
|
+
},
|
|
7815
|
+
"subscriptionError": {
|
|
7816
|
+
"allOf": [
|
|
7817
|
+
{
|
|
7818
|
+
"$ref": "#/components/schemas/String512"
|
|
7819
|
+
}
|
|
7820
|
+
],
|
|
7821
|
+
"description": "Why the last fetch failed, or which events in it could not be stored. `\"\"` when the last fetch landed whole.",
|
|
7822
|
+
"default": "",
|
|
7823
|
+
"readOnly": true
|
|
7824
|
+
},
|
|
7780
7825
|
"createdAt": {
|
|
7781
7826
|
"type": "integer",
|
|
7782
7827
|
"format": "int64",
|
|
@@ -7795,9 +7840,10 @@
|
|
|
7795
7840
|
"enum": [
|
|
7796
7841
|
"Default",
|
|
7797
7842
|
"UserCreated",
|
|
7798
|
-
"MailDerived"
|
|
7843
|
+
"MailDerived",
|
|
7844
|
+
"Subscribed"
|
|
7799
7845
|
],
|
|
7800
|
-
"description": "Where a calendar collection came from. `Default` is the one provisioned per account config on first use and is never deleted; `UserCreated` is one a person made; `MailDerived` is one populated from mail rather than by a person."
|
|
7846
|
+
"description": "Where a calendar collection came from. `Default` is the one provisioned per account config on first use and is never deleted; `UserCreated` is one a person made; `MailDerived` is one populated from mail rather than by a person; `Subscribed` is filled from a read-only iCalendar URL and refuses every write except its own refresh."
|
|
7801
7847
|
},
|
|
7802
7848
|
"RemitImap.CalendarSuggestionResponse": {
|
|
7803
7849
|
"type": "object",
|
|
@@ -8505,6 +8551,14 @@
|
|
|
8505
8551
|
}
|
|
8506
8552
|
],
|
|
8507
8553
|
"description": "IANA time zone this collection's floating times are read in. Absent reads them as UTC."
|
|
8554
|
+
},
|
|
8555
|
+
"subscriptionUrl": {
|
|
8556
|
+
"allOf": [
|
|
8557
|
+
{
|
|
8558
|
+
"$ref": "#/components/schemas/String2048"
|
|
8559
|
+
}
|
|
8560
|
+
],
|
|
8561
|
+
"description": "A read-only iCalendar URL to subscribe the collection to. `http`, `https` and `webcal` are accepted. The server fetches it once before creating anything and refuses with 400 when the fetch fails, so a mistyped address leaves no empty calendar behind. The collection is then `Subscribed`: it refuses event writes, and the scheduled refresh keeps it in step with the feed."
|
|
8508
8562
|
}
|
|
8509
8563
|
},
|
|
8510
8564
|
"description": "Input for creating a calendar collection (issue #15).\n\n`urlSegment` is supplied rather than derived from the display name: it is the\ncollection's identity — `calendarId` is a hash of it — and the path a CalDAV\nclient will later bookmark. Slugging a name would make two calendars called\n\"Work\" one row, and a rename would either move a bookmarked path or leave a\nsegment that no longer matches anything a person recognises. The name is the\nmutable overlay; this is the address."
|
|
@@ -12159,9 +12213,14 @@
|
|
|
12159
12213
|
],
|
|
12160
12214
|
"description": "IANA time zone this collection's floating times are read in, e.g. \"Europe/Amsterdam\". `\"\"` when none is set, which reads as UTC.",
|
|
12161
12215
|
"default": ""
|
|
12216
|
+
},
|
|
12217
|
+
"subscriptionEnabled": {
|
|
12218
|
+
"type": "boolean",
|
|
12219
|
+
"description": "Whether the scheduled refresh re-reads `subscriptionUrl`. Turning it off stops the refresh and keeps every stored event. Always `false` on a collection that is not `Subscribed`.",
|
|
12220
|
+
"default": false
|
|
12162
12221
|
}
|
|
12163
12222
|
},
|
|
12164
|
-
"description": "Input for updating a calendar collection. The name, colour and timezone are the mutable overlay
|
|
12223
|
+
"description": "Input for updating a calendar collection. The name, colour and timezone are the mutable overlay, and `subscriptionEnabled` turns a subscribed collection's refresh off and on. `urlSegment` is not among them, because it is the collection's identity and the path a client has bookmarked."
|
|
12165
12224
|
},
|
|
12166
12225
|
"RemitImap.UpdateFilterInput": {
|
|
12167
12226
|
"type": "object",
|