@supabase/gotrue-js 1.21.7 → 1.22.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.
package/src/lib/types.ts CHANGED
@@ -84,21 +84,62 @@ export interface UserAttributes {
84
84
  * The user's email.
85
85
  */
86
86
  email?: string
87
+
87
88
  /**
88
89
  * The user's password.
89
90
  */
90
91
  password?: string
92
+
91
93
  /**
92
94
  * An email change token.
93
95
  */
94
96
  email_change_token?: string
95
97
 
96
98
  /**
97
- * A custom data object. Can be any JSON.
99
+ * A custom data object for user_metadata that a user can modify. Can be any JSON.
98
100
  */
99
101
  data?: object
100
102
  }
101
103
 
104
+ export interface AdminUserAttributes extends UserAttributes {
105
+ /**
106
+ * A custom data object for user_metadata.
107
+ *
108
+ * Can be any JSON.
109
+ *
110
+ * Only a service role can modify.
111
+ *
112
+ * Note: When using the GoTrueAdminApi and wanting to modify a user's user_metadata,
113
+ * this attribute is used instead of UserAttributes data.
114
+ *
115
+ */
116
+ user_metadata?: object
117
+
118
+ /**
119
+ * A custom data object for app_metadata that.
120
+ *
121
+ * Only a service role can modify.
122
+ *
123
+ * Can be any JSON that includes app-specific info, such as identity providers, roles, and other
124
+ * access control information.
125
+ */
126
+ app_metadata?: object
127
+
128
+ /**
129
+ * Sets if a user has confirmed their email address.
130
+ *
131
+ * Only a service role can modify.
132
+ */
133
+ email_confirm?: boolean
134
+
135
+ /**
136
+ * Sets if a user has confirmed their phone number.
137
+ *
138
+ * Only a service role can modify.
139
+ */
140
+ phone_confirm?: boolean
141
+ }
142
+
102
143
  export interface Subscription {
103
144
  /**
104
145
  * The subscriber UUID. This will be set by the client.
@@ -1,2 +1,2 @@
1
1
  // generated by genversion
2
- export const version = '1.21.7'
2
+ export const version = '1.22.0'