@base44-preview/sdk 0.8.27-pr.171.bb56537 → 0.8.28-pr.174.7916e18

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.
@@ -126,25 +126,18 @@ export interface AuthModule {
126
126
  */
127
127
  me(): Promise<User>;
128
128
  /**
129
- * Updates the current authenticated user's information.
129
+ * Updates the current authenticated user's custom profile fields.
130
130
  *
131
- * Only the fields included in the data object will be updated.
132
- * Commonly updated fields include `full_name` and custom profile fields.
131
+ * Only custom fields defined in your User entity schema can be updated.
132
+ * Platform-managed fields (`id`, `email`, `full_name`, `created_date`,
133
+ * `updated_date`, `app_id`, `is_verified`, `is_service`, `disabled`, and `role`)
134
+ * are read-only and cannot be changed with this method.
133
135
  *
134
- * @param data - Object containing the fields to update.
136
+ * @param data - Object containing the custom fields to update.
135
137
  * @returns Promise resolving to the updated user data.
136
138
  *
137
139
  * @example
138
140
  * ```typescript
139
- * // Update specific fields
140
- * const updatedUser = await base44.auth.updateMe({
141
- * full_name: 'John Doe'
142
- * });
143
- * console.log(`Updated user: ${updatedUser.full_name}`);
144
- * ```
145
- *
146
- * @example
147
- * ```typescript
148
141
  * // Update custom fields defined in your User entity
149
142
  * await base44.auth.updateMe({
150
143
  * bio: 'Software developer',
@@ -153,7 +146,7 @@ export interface AuthModule {
153
146
  * });
154
147
  * ```
155
148
  */
156
- updateMe(data: Partial<Omit<User, "id" | "created_date" | "updated_date">>): Promise<User>;
149
+ updateMe(data: Record<string, any>): Promise<User>;
157
150
  /**
158
151
  * Redirects the user to the app's login page.
159
152
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/sdk",
3
- "version": "0.8.27-pr.171.bb56537",
3
+ "version": "0.8.28-pr.174.7916e18",
4
4
  "description": "JavaScript SDK for Base44 API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",