@rebasepro/types 0.22.0 → 0.23.0

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.
@@ -98,6 +98,19 @@ export interface AuthClient {
98
98
  * supply it; treat a missing implementation as "unknown, go ahead and ask".
99
99
  */
100
100
  canRestoreSession?: () => boolean;
101
+ /**
102
+ * Resolves once the client has finished restoring a session on its own —
103
+ * from storage, or by a silent refresh on boot.
104
+ *
105
+ * Until then {@link getSession} is provisional: a stored session whose
106
+ * access token has expired is held while its refresh runs, and dropped
107
+ * when that refresh is rejected. A caller that renders from the session
108
+ * waits for this and reads it again.
109
+ *
110
+ * Optional so that alternative {@link AuthClient} implementations need not
111
+ * supply it; without it the first `getSession()` is taken as final.
112
+ */
113
+ isInitialized?: () => Promise<void>;
101
114
  }
102
115
  /**
103
116
  * User record as returned by the Admin API (`GET /admin/users`, etc.).
@@ -641,7 +641,17 @@ export interface RestFetchService {
641
641
  filter?: FilterValues<string>;
642
642
  logical?: LogicalCondition;
643
643
  searchString?: string;
644
+ /** Groups to return. Applies to a grouped aggregate; one without `groupBy` is one row. */
644
645
  limit?: number;
646
+ /** Groups to skip, for paging past `limit`. Grouped aggregates only. */
647
+ offset?: number;
648
+ /**
649
+ * Sort for the groups, by a `groupBy` field or an aggregate's alias
650
+ * (`count`, `sum_total`). Whatever it leaves tied is ordered by the
651
+ * group keys, so the order is total and a page boundary falls in
652
+ * the same place every time. Grouped aggregates only.
653
+ */
654
+ orderBy?: OrderByTuple[];
645
655
  /** See {@link FetchCollectionProps.withDeleted}. */
646
656
  withDeleted?: boolean | "only";
647
657
  }): Promise<Record<string, unknown>[]>;