@daocloud-proto/zestu 0.6.0-dev-b70a07d5 → 0.6.0-dev-3bb47fd2
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/package.json
CHANGED
|
@@ -116,4 +116,13 @@ export type DeleteArtifactRequest = {
|
|
|
116
116
|
export type UpdateUserPasswordRequest = {
|
|
117
117
|
regionId?: string
|
|
118
118
|
password?: string
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export type CheckUserNameExistsRequest = {
|
|
122
|
+
regionId?: string
|
|
123
|
+
username?: string
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export type CheckUserNameExistsResponse = {
|
|
127
|
+
exists?: boolean
|
|
119
128
|
}
|
|
@@ -172,4 +172,7 @@ export class Registry {
|
|
|
172
172
|
static UpdateUserPassword(req: ZestuIoApiRegistryV1alpha1Registry.UpdateUserPasswordRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
173
173
|
return fm.fetchReq<ZestuIoApiRegistryV1alpha1Registry.UpdateUserPasswordRequest, GoogleProtobufEmpty.Empty>(`/apis/zestu.io/v1/region/${req["regionId"]}/registries/password`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
174
174
|
}
|
|
175
|
+
static CheckUserNameExists(req: ZestuIoApiRegistryV1alpha1Registry.CheckUserNameExistsRequest, initReq?: fm.InitReq): Promise<ZestuIoApiRegistryV1alpha1Registry.CheckUserNameExistsResponse> {
|
|
176
|
+
return fm.fetchReq<ZestuIoApiRegistryV1alpha1Registry.CheckUserNameExistsRequest, ZestuIoApiRegistryV1alpha1Registry.CheckUserNameExistsResponse>(`/apis/zestu.io/v1/region/${req["regionId"]}/registries/checkusername`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
177
|
+
}
|
|
175
178
|
}
|