@remit/api-openapi-spec 0.0.66 → 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 +76 -8
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -2297,6 +2297,15 @@
|
|
|
2297
2297
|
"$ref": "#/components/schemas/UUID"
|
|
2298
2298
|
}
|
|
2299
2299
|
}
|
|
2300
|
+
},
|
|
2301
|
+
{
|
|
2302
|
+
"name": "calendarObjectId",
|
|
2303
|
+
"in": "query",
|
|
2304
|
+
"required": false,
|
|
2305
|
+
"description": "Restrict to the occurrences of this one resource, read from it alone rather than from its collection. A resource none of the listed collections holds lists nothing.",
|
|
2306
|
+
"schema": {
|
|
2307
|
+
"$ref": "#/components/schemas/UUID"
|
|
2308
|
+
}
|
|
2300
2309
|
}
|
|
2301
2310
|
],
|
|
2302
2311
|
"responses": {
|
|
@@ -2352,7 +2361,7 @@
|
|
|
2352
2361
|
},
|
|
2353
2362
|
"post": {
|
|
2354
2363
|
"operationId": "CalendarEventOperations_createCalendarEvent",
|
|
2355
|
-
"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.",
|
|
2356
2365
|
"parameters": [],
|
|
2357
2366
|
"responses": {
|
|
2358
2367
|
"200": {
|
|
@@ -2432,8 +2441,8 @@
|
|
|
2432
2441
|
{
|
|
2433
2442
|
"name": "calendarId",
|
|
2434
2443
|
"in": "query",
|
|
2435
|
-
"required":
|
|
2436
|
-
"description": "Collection the resource lives in. A resource is addressed by its collection and its own id, which is what a client holds: every occurrence a listing returns carries both.",
|
|
2444
|
+
"required": false,
|
|
2445
|
+
"description": "Collection the resource lives in. A resource is addressed by its collection and its own id, which is what a client holds: every occurrence a listing returns carries both. Omitted, the resource is looked for in every collection the caller holds.",
|
|
2437
2446
|
"schema": {
|
|
2438
2447
|
"$ref": "#/components/schemas/UUID"
|
|
2439
2448
|
}
|
|
@@ -2611,7 +2620,7 @@
|
|
|
2611
2620
|
},
|
|
2612
2621
|
"delete": {
|
|
2613
2622
|
"operationId": "CalendarEventDetailOperations_deleteCalendarEvent",
|
|
2614
|
-
"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.",
|
|
2615
2624
|
"parameters": [
|
|
2616
2625
|
{
|
|
2617
2626
|
"name": "calendarObjectId",
|
|
@@ -3117,7 +3126,7 @@
|
|
|
3117
3126
|
},
|
|
3118
3127
|
"post": {
|
|
3119
3128
|
"operationId": "CalendarOperations_createCalendar",
|
|
3120
|
-
"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.",
|
|
3121
3130
|
"parameters": [],
|
|
3122
3131
|
"responses": {
|
|
3123
3132
|
"200": {
|
|
@@ -3227,6 +3236,7 @@
|
|
|
3227
3236
|
},
|
|
3228
3237
|
"patch": {
|
|
3229
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.",
|
|
3230
3240
|
"parameters": [
|
|
3231
3241
|
{
|
|
3232
3242
|
"name": "calendarId",
|
|
@@ -7684,6 +7694,11 @@
|
|
|
7684
7694
|
"source",
|
|
7685
7695
|
"timezone",
|
|
7686
7696
|
"syncSequence",
|
|
7697
|
+
"subscriptionUrl",
|
|
7698
|
+
"subscriptionEnabled",
|
|
7699
|
+
"subscriptionCheckedAt",
|
|
7700
|
+
"subscriptionFetchedAt",
|
|
7701
|
+
"subscriptionError",
|
|
7687
7702
|
"createdAt",
|
|
7688
7703
|
"updatedAt"
|
|
7689
7704
|
],
|
|
@@ -7768,6 +7783,45 @@
|
|
|
7768
7783
|
"default": 0,
|
|
7769
7784
|
"readOnly": true
|
|
7770
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
|
+
},
|
|
7771
7825
|
"createdAt": {
|
|
7772
7826
|
"type": "integer",
|
|
7773
7827
|
"format": "int64",
|
|
@@ -7786,9 +7840,10 @@
|
|
|
7786
7840
|
"enum": [
|
|
7787
7841
|
"Default",
|
|
7788
7842
|
"UserCreated",
|
|
7789
|
-
"MailDerived"
|
|
7843
|
+
"MailDerived",
|
|
7844
|
+
"Subscribed"
|
|
7790
7845
|
],
|
|
7791
|
-
"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."
|
|
7792
7847
|
},
|
|
7793
7848
|
"RemitImap.CalendarSuggestionResponse": {
|
|
7794
7849
|
"type": "object",
|
|
@@ -8496,6 +8551,14 @@
|
|
|
8496
8551
|
}
|
|
8497
8552
|
],
|
|
8498
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."
|
|
8499
8562
|
}
|
|
8500
8563
|
},
|
|
8501
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."
|
|
@@ -12150,9 +12213,14 @@
|
|
|
12150
12213
|
],
|
|
12151
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.",
|
|
12152
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
|
|
12153
12221
|
}
|
|
12154
12222
|
},
|
|
12155
|
-
"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."
|
|
12156
12224
|
},
|
|
12157
12225
|
"RemitImap.UpdateFilterInput": {
|
|
12158
12226
|
"type": "object",
|