@base44-preview/sdk 0.8.43-pr.261.f8cbcf8 → 0.8.44-pr.262.1f0f5a7

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,15 @@ 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.
141
+ *
140
142
  * <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`.
143
+ * These fields can't be changed with this method:
144
+ * `id`, `email`, `full_name`, `created_date`, `updated_date`, `created_by`,
145
+ * and `collaborator_role`.
143
146
  * </Note>
144
147
  *
145
148
  * @param data - Object containing the fields to update.
@@ -147,9 +150,8 @@ export interface AuthModule {
147
150
  *
148
151
  * @example
149
152
  * ```typescript
150
- * // Update role and custom fields defined in your User entity
153
+ * // Update custom fields defined in your User entity
151
154
  * await base44.auth.updateMe({
152
- * role: 'admin',
153
155
  * bio: 'Software developer',
154
156
  * preferences: { theme: 'dark' }
155
157
  * });
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.1f0f5a7",
4
4
  "description": "JavaScript SDK for Base44 API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",