@rebasepro/types 0.9.1-canary.ff338b5 → 0.10.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.
@@ -131,7 +131,7 @@ export interface AdminAPI {
131
131
  limit: number;
132
132
  offset: number;
133
133
  }>;
134
- getUser(userId: string): Promise<{
134
+ getUser(uid: string): Promise<{
135
135
  user: AdminUser;
136
136
  }>;
137
137
  createUser(data: {
@@ -143,7 +143,7 @@ export interface AdminAPI {
143
143
  }): Promise<{
144
144
  user: AdminUser;
145
145
  }>;
146
- updateUser(userId: string, data: {
146
+ updateUser(uid: string, data: {
147
147
  email?: string;
148
148
  displayName?: string;
149
149
  password?: string;
@@ -152,10 +152,10 @@ export interface AdminAPI {
152
152
  }): Promise<{
153
153
  user: AdminUser;
154
154
  }>;
155
- deleteUser(userId: string): Promise<{
155
+ deleteUser(uid: string): Promise<{
156
156
  success: boolean;
157
157
  }>;
158
- resetPassword(userId: string, options?: {
158
+ resetPassword(uid: string, options?: {
159
159
  password?: string;
160
160
  }): Promise<{
161
161
  user: AdminUser;
package/dist/index.es.js CHANGED
@@ -315,7 +315,7 @@ function getDeclaredSubcollections(collection) {
315
315
  /**
316
316
  * The id a request without a logged-in user reports as `auth.uid()`.
317
317
  *
318
- * A user-context request always sets `app.user_id`: blank would read back as
318
+ * A user-context request always sets `app.uid`: blank would read back as
319
319
  * `NULL`, and `NULL` is how the trusted server context is recognised, so an
320
320
  * anonymous visitor would be promoted to server privileges. The driver
321
321
  * therefore substitutes this sentinel at the single chokepoint where the GUC