@remit/api-openapi-types 0.0.69 → 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 +63 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/api-openapi-types",
3
- "version": "0.0.69",
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.
@@ -6743,6 +6791,7 @@ declare namespace Paths {
6743
6791
  from: string;
6744
6792
  to: string;
6745
6793
  calendarId?: Components.Schemas.UUID[];
6794
+ calendarObjectId?: Components.Schemas.UUID;
6746
6795
  }
6747
6796
  namespace Responses {
6748
6797
  export type $200 = void;
@@ -6765,7 +6814,7 @@ declare namespace Paths {
6765
6814
  calendarObjectId: Components.Schemas.UUID;
6766
6815
  }
6767
6816
  export interface QueryParameters {
6768
- calendarId: Components.Schemas.UUID;
6817
+ calendarId?: Components.Schemas.UUID;
6769
6818
  }
6770
6819
  namespace Responses {
6771
6820
  export type $200 = void;
@@ -7521,7 +7570,7 @@ export interface OperationMethods {
7521
7570
  config?: AxiosRequestConfig
7522
7571
  ): OperationResponse<Paths.ListCalendars.Responses.$200>;
7523
7572
  /**
7524
- * 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.
7525
7574
  */
7526
7575
  'createCalendar'(
7527
7576
  parameters?: Parameters<UnknownParamsObject> | null,
@@ -7537,7 +7586,7 @@ export interface OperationMethods {
7537
7586
  config?: AxiosRequestConfig
7538
7587
  ): OperationResponse<Paths.GetCalendar.Responses.$200>;
7539
7588
  /**
7540
- * 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.
7541
7590
  */
7542
7591
  'updateCalendar'(
7543
7592
  parameters?: Parameters<Paths.UpdateCalendar.PathParameters> | null,
@@ -7621,7 +7670,7 @@ Refused with 400 when `from` and `to` are not ISO 8601 date-times, when
7621
7670
  config?: AxiosRequestConfig
7622
7671
  ): OperationResponse<Paths.ListCalendarEvents.Responses.$200>;
7623
7672
  /**
7624
- * 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.
7625
7674
  */
7626
7675
  'createCalendarEvent'(
7627
7676
  parameters?: Parameters<UnknownParamsObject> | null,
@@ -7663,6 +7712,8 @@ rest of the series; `Following` truncates the series to end just before
7663
7712
  it.
7664
7713
 
7665
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.
7666
7717
  */
7667
7718
  'deleteCalendarEvent'(
7668
7719
  parameters?: Parameters<Paths.DeleteCalendarEvent.PathParameters & Paths.DeleteCalendarEvent.QueryParameters & Paths.DeleteCalendarEvent.HeaderParameters> | null,
@@ -8325,7 +8376,7 @@ export interface PathsDictionary {
8325
8376
  config?: AxiosRequestConfig
8326
8377
  ): OperationResponse<Paths.ListCalendars.Responses.$200>;
8327
8378
  /**
8328
- * 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.
8329
8380
  */
8330
8381
  'post'(
8331
8382
  parameters?: Parameters<UnknownParamsObject> | null,
@@ -8343,7 +8394,7 @@ export interface PathsDictionary {
8343
8394
  config?: AxiosRequestConfig
8344
8395
  ): OperationResponse<Paths.GetCalendar.Responses.$200>;
8345
8396
  /**
8346
- * 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.
8347
8398
  */
8348
8399
  'patch'(
8349
8400
  parameters?: Parameters<Paths.UpdateCalendar.PathParameters> | null,
@@ -8433,7 +8484,7 @@ Refused with 400 when `from` and `to` are not ISO 8601 date-times, when
8433
8484
  config?: AxiosRequestConfig
8434
8485
  ): OperationResponse<Paths.ListCalendarEvents.Responses.$200>;
8435
8486
  /**
8436
- * 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.
8437
8488
  */
8438
8489
  'post'(
8439
8490
  parameters?: Parameters<UnknownParamsObject> | null,
@@ -8477,6 +8528,8 @@ rest of the series; `Following` truncates the series to end just before
8477
8528
  it.
8478
8529
 
8479
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.
8480
8533
  */
8481
8534
  'delete'(
8482
8535
  parameters?: Parameters<Paths.DeleteCalendarEvent.PathParameters & Paths.DeleteCalendarEvent.QueryParameters> | null,