@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/dist/main/GoTrueApi.d.ts +114 -76
- package/dist/main/GoTrueApi.d.ts.map +1 -1
- package/dist/main/GoTrueApi.js +204 -144
- package/dist/main/GoTrueApi.js.map +1 -1
- package/dist/main/GoTrueClient.d.ts +2 -0
- package/dist/main/GoTrueClient.d.ts.map +1 -1
- package/dist/main/GoTrueClient.js +6 -1
- package/dist/main/GoTrueClient.js.map +1 -1
- package/dist/main/lib/types.d.ts +36 -1
- package/dist/main/lib/types.d.ts.map +1 -1
- package/dist/main/lib/version.d.ts +1 -1
- package/dist/main/lib/version.js +1 -1
- package/dist/module/GoTrueApi.d.ts +114 -76
- package/dist/module/GoTrueApi.d.ts.map +1 -1
- package/dist/module/GoTrueApi.js +204 -144
- package/dist/module/GoTrueApi.js.map +1 -1
- package/dist/module/GoTrueClient.d.ts +2 -0
- package/dist/module/GoTrueClient.d.ts.map +1 -1
- package/dist/module/GoTrueClient.js +6 -1
- package/dist/module/GoTrueClient.js.map +1 -1
- package/dist/module/lib/types.d.ts +36 -1
- package/dist/module/lib/types.d.ts.map +1 -1
- package/dist/module/lib/version.d.ts +1 -1
- package/dist/module/lib/version.js +1 -1
- package/package.json +7 -5
- package/src/GoTrueApi.ts +264 -177
- package/src/GoTrueClient.ts +8 -1
- package/src/lib/types.ts +42 -1
- package/src/lib/version.ts +1 -1
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.
|
package/src/lib/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// generated by genversion
|
|
2
|
-
export const version = '1.
|
|
2
|
+
export const version = '1.22.0'
|