@base44-preview/sdk 0.8.43-pr.261.f8cbcf8 → 0.8.44-pr.262.e72ee90

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.
@@ -134,12 +134,16 @@ export interface AuthModule {
134
134
  /**
135
135
  * Updates the current authenticated user's information.
136
136
  *
137
- * You can update `role` and any [custom fields](/developers/backend/resources/entities/user-schema#custom-fields) defined in your
138
- * User entity schema.
139
- * The `role` value must be either `'user'` or `'admin'`.
137
+ * You can update any [custom fields](/developers/backend/resources/entities/user-schema#custom-fields)
138
+ * defined in your User entity schema.
139
+ *
140
+ * Updating `role` requires editor access on the app. An app user without it
141
+ * gets a 403 response, and none of the other fields in the request are applied.
142
+ *
140
143
  * <Note>
141
- * The following fields are read-only and can't be changed with this method:
142
- * `id`, `email`, `full_name`, `created_date`, `updated_date`, and `created_by`.
144
+ * These fields can't be changed with this method:
145
+ * `id`, `email`, `full_name`, `created_date`, `updated_date`, `created_by`,
146
+ * and `collaborator_role`.
143
147
  * </Note>
144
148
  *
145
149
  * @param data - Object containing the fields to update.
@@ -147,9 +151,8 @@ export interface AuthModule {
147
151
  *
148
152
  * @example
149
153
  * ```typescript
150
- * // Update role and custom fields defined in your User entity
154
+ * // Update custom fields defined in your User entity
151
155
  * await base44.auth.updateMe({
152
- * role: 'admin',
153
156
  * bio: 'Software developer',
154
157
  * preferences: { theme: 'dark' }
155
158
  * });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/sdk",
3
- "version": "0.8.43-pr.261.f8cbcf8",
3
+ "version": "0.8.44-pr.262.e72ee90",
4
4
  "description": "JavaScript SDK for Base44 API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",