@remit/api-openapi-types 0.0.70 → 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/package.json +1 -1
  2. package/types.d.ts +61 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/api-openapi-types",
3
- "version": "0.0.70",
3
+ "version": "0.0.71",
4
4
  "type": "module",
5
5
  "main": "types.d.ts",
6
6
  "types": "types.d.ts",
package/types.d.ts CHANGED
@@ -150,9 +150,9 @@ current enum emitter anyway, so the wire contract uses the bare form.
150
150
  */
151
151
  export type CalendarComponentSet = "VeventOnly";
152
152
  /**
153
- * 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.
153
+ * 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.
154
154
  */
155
- export type CalendarSource = "Default" | "UserCreated" | "MailDerived";
155
+ export type CalendarSource = "Default" | "UserCreated" | "MailDerived" | "Subscribed";
156
156
  /**
157
157
  * Projection of a VEVENT's STATUS property (RFC 5545 3.8.1.11). A VEVENT with no STATUS projects as `Confirmed`, which is the value RFC 5545 gives an event whose status is unstated.
158
158
  */
@@ -2583,6 +2583,26 @@ and what `CalendarObject.bySyncSequence` pages by.
2583
2583
  * Monotonic change counter for this collection. Bumped by every write to one of its objects; the value stamped on `CalendarObject.syncSequence` is the value this counter held after that write.
2584
2584
  */
2585
2585
  syncSequence: number;
2586
+ /**
2587
+ * 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.
2588
+ */
2589
+ subscriptionUrl: String2048;
2590
+ /**
2591
+ * 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`.
2592
+ */
2593
+ subscriptionEnabled: boolean;
2594
+ /**
2595
+ * When the subscription was last fetched, whatever the outcome. `0` when it never was.
2596
+ */
2597
+ subscriptionCheckedAt: number;
2598
+ /**
2599
+ * When the subscription was last fetched and written. `0` when it never was.
2600
+ */
2601
+ subscriptionFetchedAt: number;
2602
+ /**
2603
+ * Why the last fetch failed, or which events in it could not be stored. `""` when the last fetch landed whole.
2604
+ */
2605
+ subscriptionError: String512;
2586
2606
  createdAt: number;
2587
2607
  updatedAt: number;
2588
2608
  }
@@ -2626,6 +2646,26 @@ and what `CalendarObject.bySyncSequence` pages by.
2626
2646
  * Monotonic change counter for this collection. Bumped by every write to one of its objects; the value stamped on `CalendarObject.syncSequence` is the value this counter held after that write.
2627
2647
  */
2628
2648
  syncSequence: number;
2649
+ /**
2650
+ * 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.
2651
+ */
2652
+ subscriptionUrl: String2048;
2653
+ /**
2654
+ * 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`.
2655
+ */
2656
+ subscriptionEnabled: boolean;
2657
+ /**
2658
+ * When the subscription was last fetched, whatever the outcome. `0` when it never was.
2659
+ */
2660
+ subscriptionCheckedAt: number;
2661
+ /**
2662
+ * When the subscription was last fetched and written. `0` when it never was.
2663
+ */
2664
+ subscriptionFetchedAt: number;
2665
+ /**
2666
+ * Why the last fetch failed, or which events in it could not be stored. `""` when the last fetch landed whole.
2667
+ */
2668
+ subscriptionError: String512;
2629
2669
  createdAt: number;
2630
2670
  updatedAt: number;
2631
2671
  }
@@ -2656,9 +2696,13 @@ mutable overlay; this is the address.
2656
2696
  * IANA time zone this collection's floating times are read in. Absent reads them as UTC.
2657
2697
  */
2658
2698
  timezone?: String64;
2699
+ /**
2700
+ * 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.
2701
+ */
2702
+ subscriptionUrl?: String2048;
2659
2703
  }
2660
2704
  /**
2661
- * Input for updating a calendar collection. The name, colour and timezone are the mutable overlay; `urlSegment` is not among them, because it is the collection's identity and the path a client has bookmarked.
2705
+ * 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.
2662
2706
  */
2663
2707
  export interface UpdateCalendarInput {
2664
2708
  /**
@@ -2673,6 +2717,10 @@ mutable overlay; this is the address.
2673
2717
  * IANA time zone this collection's floating times are read in, e.g. "Europe/Amsterdam". `""` when none is set, which reads as UTC.
2674
2718
  */
2675
2719
  timezone: String64;
2720
+ /**
2721
+ * 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`.
2722
+ */
2723
+ subscriptionEnabled: boolean;
2676
2724
  }
2677
2725
  /**
2678
2726
  * Nothing to return. The resource, or the occurrence, is gone.
@@ -7522,7 +7570,7 @@ export interface OperationMethods {
7522
7570
  config?: AxiosRequestConfig
7523
7571
  ): OperationResponse<Paths.ListCalendars.Responses.$200>;
7524
7572
  /**
7525
- * createCalendar - 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.
7573
+ * createCalendar - 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.
7526
7574
  */
7527
7575
  'createCalendar'(
7528
7576
  parameters?: Parameters<UnknownParamsObject> | null,
@@ -7538,7 +7586,7 @@ export interface OperationMethods {
7538
7586
  config?: AxiosRequestConfig
7539
7587
  ): OperationResponse<Paths.GetCalendar.Responses.$200>;
7540
7588
  /**
7541
- * updateCalendar
7589
+ * updateCalendar - 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.
7542
7590
  */
7543
7591
  'updateCalendar'(
7544
7592
  parameters?: Parameters<Paths.UpdateCalendar.PathParameters> | null,
@@ -7622,7 +7670,7 @@ Refused with 400 when `from` and `to` are not ISO 8601 date-times, when
7622
7670
  config?: AxiosRequestConfig
7623
7671
  ): OperationResponse<Paths.ListCalendarEvents.Responses.$200>;
7624
7672
  /**
7625
- * createCalendarEvent - 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.
7673
+ * createCalendarEvent - 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.
7626
7674
  */
7627
7675
  'createCalendarEvent'(
7628
7676
  parameters?: Parameters<UnknownParamsObject> | null,
@@ -7664,6 +7712,8 @@ rest of the series; `Following` truncates the series to end just before
7664
7712
  it.
7665
7713
 
7666
7714
  Same refusals and the same `If-Match` precondition as the update.
7715
+ An event in a `Subscribed` collection is refused with 400
7716
+ `read_only_calendar`, here and on the update.
7667
7717
  */
7668
7718
  'deleteCalendarEvent'(
7669
7719
  parameters?: Parameters<Paths.DeleteCalendarEvent.PathParameters & Paths.DeleteCalendarEvent.QueryParameters & Paths.DeleteCalendarEvent.HeaderParameters> | null,
@@ -8326,7 +8376,7 @@ export interface PathsDictionary {
8326
8376
  config?: AxiosRequestConfig
8327
8377
  ): OperationResponse<Paths.ListCalendars.Responses.$200>;
8328
8378
  /**
8329
- * createCalendar - 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.
8379
+ * createCalendar - 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.
8330
8380
  */
8331
8381
  'post'(
8332
8382
  parameters?: Parameters<UnknownParamsObject> | null,
@@ -8344,7 +8394,7 @@ export interface PathsDictionary {
8344
8394
  config?: AxiosRequestConfig
8345
8395
  ): OperationResponse<Paths.GetCalendar.Responses.$200>;
8346
8396
  /**
8347
- * updateCalendar
8397
+ * updateCalendar - 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.
8348
8398
  */
8349
8399
  'patch'(
8350
8400
  parameters?: Parameters<Paths.UpdateCalendar.PathParameters> | null,
@@ -8434,7 +8484,7 @@ Refused with 400 when `from` and `to` are not ISO 8601 date-times, when
8434
8484
  config?: AxiosRequestConfig
8435
8485
  ): OperationResponse<Paths.ListCalendarEvents.Responses.$200>;
8436
8486
  /**
8437
- * createCalendarEvent - 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.
8487
+ * createCalendarEvent - 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.
8438
8488
  */
8439
8489
  'post'(
8440
8490
  parameters?: Parameters<UnknownParamsObject> | null,
@@ -8478,6 +8528,8 @@ rest of the series; `Following` truncates the series to end just before
8478
8528
  it.
8479
8529
 
8480
8530
  Same refusals and the same `If-Match` precondition as the update.
8531
+ An event in a `Subscribed` collection is refused with 400
8532
+ `read_only_calendar`, here and on the update.
8481
8533
  */
8482
8534
  'delete'(
8483
8535
  parameters?: Parameters<Paths.DeleteCalendarEvent.PathParameters & Paths.DeleteCalendarEvent.QueryParameters> | null,