@base44-preview/sdk 0.8.28-pr.174.7df2520 → 0.8.28-pr.174.afebde4

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,22 +126,25 @@ export interface AuthModule {
126
126
  */
127
127
  me(): Promise<User>;
128
128
  /**
129
- * Updates the current authenticated user's custom profile fields.
129
+ * Updates the current authenticated user's information.
130
130
  *
131
- * Only custom fields defined in your [User entity schema](https://docs.base44.com/developers/backend/resources/entities/user-schema) can be updated.
132
- * The following platform-managed fields are read-only and cannot be changed
133
- * with this method: `id`, `email`, `full_name`, `created_date`, `updated_date`,
134
- * `app_id`, `is_verified`, `is_service`, `disabled`, and `role`.
131
+ * You can update `role` and any custom fields defined in your
132
+ * [User entity schema](https://docs.base44.com/developers/backend/resources/entities/user-schema).
133
+ * The `role` value must match one of the defined options.
134
+ * <Note>
135
+ * The following fields are read-only and can't be changed with this method:
136
+ * `id`, `email`, `full_name`, `created_date`, `updated_date`, and `created_by`.
137
+ * </Note>
135
138
  *
136
- * @param data - Object containing the custom fields to update.
139
+ * @param data - Object containing the fields to update.
137
140
  * @returns Promise resolving to the updated user data.
138
141
  *
139
142
  * @example
140
143
  * ```typescript
141
- * // Update custom fields defined in your User entity
144
+ * // Update role and custom fields defined in your User entity
142
145
  * await base44.auth.updateMe({
146
+ * role: 'admin',
143
147
  * bio: 'Software developer',
144
- * phone: '+1234567890',
145
148
  * preferences: { theme: 'dark' }
146
149
  * });
147
150
  * ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/sdk",
3
- "version": "0.8.28-pr.174.7df2520",
3
+ "version": "0.8.28-pr.174.afebde4",
4
4
  "description": "JavaScript SDK for Base44 API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",