account_connect.py 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906
  1. # -*- coding: utf-8 -*-
  2. # Generated by https://github.com/connectrpc/connect-python. DO NOT EDIT!
  3. # source: chatto/api/v1/account.proto
  4. from collections.abc import AsyncGenerator, AsyncIterator, Iterable, Iterator, Mapping
  5. from typing import Protocol
  6. from connectrpc.client import ConnectClient, ConnectClientSync
  7. from connectrpc.code import Code
  8. from connectrpc.compression import Compression
  9. from connectrpc.errors import ConnectError
  10. from connectrpc.interceptor import Interceptor, InterceptorSync
  11. from connectrpc.method import IdempotencyLevel, MethodInfo
  12. from connectrpc.request import Headers, RequestContext
  13. from connectrpc.server import ConnectASGIApplication, ConnectWSGIApplication, Endpoint, EndpointSync
  14. import chatto.api.v1.account_pb2 as chatto_dot_api_dot_v1_dot_account__pb2
  15. import chatto.api.v1.external_identities_pb2 as chatto_dot_api_dot_v1_dot_external__identities__pb2
  16. import chatto.api.v1.presence_pb2 as chatto_dot_api_dot_v1_dot_presence__pb2
  17. import chatto.api.v1.user_status_pb2 as chatto_dot_api_dot_v1_dot_user__status__pb2
  18. class MyAccountService(Protocol):
  19. async def update_profile(self, request: chatto_dot_api_dot_v1_dot_account__pb2.UpdateProfileRequest, ctx: RequestContext) -> chatto_dot_api_dot_v1_dot_account__pb2.UpdateProfileResponse:
  20. raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
  21. async def upload_avatar(self, request: chatto_dot_api_dot_v1_dot_account__pb2.UploadAvatarRequest, ctx: RequestContext) -> chatto_dot_api_dot_v1_dot_account__pb2.UploadAvatarResponse:
  22. raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
  23. async def delete_avatar(self, request: chatto_dot_api_dot_v1_dot_account__pb2.DeleteAvatarRequest, ctx: RequestContext) -> chatto_dot_api_dot_v1_dot_account__pb2.DeleteAvatarResponse:
  24. raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
  25. async def update_password(self, request: chatto_dot_api_dot_v1_dot_account__pb2.UpdatePasswordRequest, ctx: RequestContext) -> chatto_dot_api_dot_v1_dot_account__pb2.UpdatePasswordResponse:
  26. raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
  27. async def update_settings(self, request: chatto_dot_api_dot_v1_dot_account__pb2.UpdateSettingsRequest, ctx: RequestContext) -> chatto_dot_api_dot_v1_dot_account__pb2.UpdateSettingsResponse:
  28. raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
  29. async def list_external_identities(self, request: chatto_dot_api_dot_v1_dot_external__identities__pb2.ListExternalIdentitiesRequest, ctx: RequestContext) -> chatto_dot_api_dot_v1_dot_external__identities__pb2.ListExternalIdentitiesResponse:
  30. raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
  31. async def start_external_identity_link(self, request: chatto_dot_api_dot_v1_dot_external__identities__pb2.StartExternalIdentityLinkRequest, ctx: RequestContext) -> chatto_dot_api_dot_v1_dot_external__identities__pb2.StartExternalIdentityLinkResponse:
  32. raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
  33. async def disconnect_external_identity(self, request: chatto_dot_api_dot_v1_dot_external__identities__pb2.DisconnectExternalIdentityRequest, ctx: RequestContext) -> chatto_dot_api_dot_v1_dot_external__identities__pb2.DisconnectExternalIdentityResponse:
  34. raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
  35. async def update_presence(self, request: chatto_dot_api_dot_v1_dot_presence__pb2.UpdatePresenceRequest, ctx: RequestContext) -> chatto_dot_api_dot_v1_dot_presence__pb2.UpdatePresenceResponse:
  36. raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
  37. async def update_custom_status(self, request: chatto_dot_api_dot_v1_dot_user__status__pb2.UpdateCustomStatusRequest, ctx: RequestContext) -> chatto_dot_api_dot_v1_dot_user__status__pb2.UpdateCustomStatusResponse:
  38. raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
  39. async def delete_custom_status(self, request: chatto_dot_api_dot_v1_dot_user__status__pb2.DeleteCustomStatusRequest, ctx: RequestContext) -> chatto_dot_api_dot_v1_dot_user__status__pb2.DeleteCustomStatusResponse:
  40. raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
  41. async def request_account_deletion(self, request: chatto_dot_api_dot_v1_dot_account__pb2.RequestAccountDeletionRequest, ctx: RequestContext) -> chatto_dot_api_dot_v1_dot_account__pb2.RequestAccountDeletionResponse:
  42. raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
  43. async def delete_my_account(self, request: chatto_dot_api_dot_v1_dot_account__pb2.DeleteMyAccountRequest, ctx: RequestContext) -> chatto_dot_api_dot_v1_dot_account__pb2.DeleteMyAccountResponse:
  44. raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
  45. class MyAccountServiceASGIApplication(ConnectASGIApplication[MyAccountService]):
  46. def __init__(self, service: MyAccountService | AsyncGenerator[MyAccountService], *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None, compressions: Iterable[Compression] | None = None) -> None:
  47. super().__init__(
  48. service=service,
  49. endpoints=lambda svc: {
  50. "/chatto.api.v1.MyAccountService/UpdateProfile": Endpoint.unary(
  51. method=MethodInfo(
  52. name="UpdateProfile",
  53. service_name="chatto.api.v1.MyAccountService",
  54. input=chatto_dot_api_dot_v1_dot_account__pb2.UpdateProfileRequest,
  55. output=chatto_dot_api_dot_v1_dot_account__pb2.UpdateProfileResponse,
  56. idempotency_level=IdempotencyLevel.UNKNOWN,
  57. ),
  58. function=svc.update_profile,
  59. ),
  60. "/chatto.api.v1.MyAccountService/UploadAvatar": Endpoint.unary(
  61. method=MethodInfo(
  62. name="UploadAvatar",
  63. service_name="chatto.api.v1.MyAccountService",
  64. input=chatto_dot_api_dot_v1_dot_account__pb2.UploadAvatarRequest,
  65. output=chatto_dot_api_dot_v1_dot_account__pb2.UploadAvatarResponse,
  66. idempotency_level=IdempotencyLevel.UNKNOWN,
  67. ),
  68. function=svc.upload_avatar,
  69. ),
  70. "/chatto.api.v1.MyAccountService/DeleteAvatar": Endpoint.unary(
  71. method=MethodInfo(
  72. name="DeleteAvatar",
  73. service_name="chatto.api.v1.MyAccountService",
  74. input=chatto_dot_api_dot_v1_dot_account__pb2.DeleteAvatarRequest,
  75. output=chatto_dot_api_dot_v1_dot_account__pb2.DeleteAvatarResponse,
  76. idempotency_level=IdempotencyLevel.UNKNOWN,
  77. ),
  78. function=svc.delete_avatar,
  79. ),
  80. "/chatto.api.v1.MyAccountService/UpdatePassword": Endpoint.unary(
  81. method=MethodInfo(
  82. name="UpdatePassword",
  83. service_name="chatto.api.v1.MyAccountService",
  84. input=chatto_dot_api_dot_v1_dot_account__pb2.UpdatePasswordRequest,
  85. output=chatto_dot_api_dot_v1_dot_account__pb2.UpdatePasswordResponse,
  86. idempotency_level=IdempotencyLevel.UNKNOWN,
  87. ),
  88. function=svc.update_password,
  89. ),
  90. "/chatto.api.v1.MyAccountService/UpdateSettings": Endpoint.unary(
  91. method=MethodInfo(
  92. name="UpdateSettings",
  93. service_name="chatto.api.v1.MyAccountService",
  94. input=chatto_dot_api_dot_v1_dot_account__pb2.UpdateSettingsRequest,
  95. output=chatto_dot_api_dot_v1_dot_account__pb2.UpdateSettingsResponse,
  96. idempotency_level=IdempotencyLevel.UNKNOWN,
  97. ),
  98. function=svc.update_settings,
  99. ),
  100. "/chatto.api.v1.MyAccountService/ListExternalIdentities": Endpoint.unary(
  101. method=MethodInfo(
  102. name="ListExternalIdentities",
  103. service_name="chatto.api.v1.MyAccountService",
  104. input=chatto_dot_api_dot_v1_dot_external__identities__pb2.ListExternalIdentitiesRequest,
  105. output=chatto_dot_api_dot_v1_dot_external__identities__pb2.ListExternalIdentitiesResponse,
  106. idempotency_level=IdempotencyLevel.UNKNOWN,
  107. ),
  108. function=svc.list_external_identities,
  109. ),
  110. "/chatto.api.v1.MyAccountService/StartExternalIdentityLink": Endpoint.unary(
  111. method=MethodInfo(
  112. name="StartExternalIdentityLink",
  113. service_name="chatto.api.v1.MyAccountService",
  114. input=chatto_dot_api_dot_v1_dot_external__identities__pb2.StartExternalIdentityLinkRequest,
  115. output=chatto_dot_api_dot_v1_dot_external__identities__pb2.StartExternalIdentityLinkResponse,
  116. idempotency_level=IdempotencyLevel.UNKNOWN,
  117. ),
  118. function=svc.start_external_identity_link,
  119. ),
  120. "/chatto.api.v1.MyAccountService/DisconnectExternalIdentity": Endpoint.unary(
  121. method=MethodInfo(
  122. name="DisconnectExternalIdentity",
  123. service_name="chatto.api.v1.MyAccountService",
  124. input=chatto_dot_api_dot_v1_dot_external__identities__pb2.DisconnectExternalIdentityRequest,
  125. output=chatto_dot_api_dot_v1_dot_external__identities__pb2.DisconnectExternalIdentityResponse,
  126. idempotency_level=IdempotencyLevel.UNKNOWN,
  127. ),
  128. function=svc.disconnect_external_identity,
  129. ),
  130. "/chatto.api.v1.MyAccountService/UpdatePresence": Endpoint.unary(
  131. method=MethodInfo(
  132. name="UpdatePresence",
  133. service_name="chatto.api.v1.MyAccountService",
  134. input=chatto_dot_api_dot_v1_dot_presence__pb2.UpdatePresenceRequest,
  135. output=chatto_dot_api_dot_v1_dot_presence__pb2.UpdatePresenceResponse,
  136. idempotency_level=IdempotencyLevel.UNKNOWN,
  137. ),
  138. function=svc.update_presence,
  139. ),
  140. "/chatto.api.v1.MyAccountService/UpdateCustomStatus": Endpoint.unary(
  141. method=MethodInfo(
  142. name="UpdateCustomStatus",
  143. service_name="chatto.api.v1.MyAccountService",
  144. input=chatto_dot_api_dot_v1_dot_user__status__pb2.UpdateCustomStatusRequest,
  145. output=chatto_dot_api_dot_v1_dot_user__status__pb2.UpdateCustomStatusResponse,
  146. idempotency_level=IdempotencyLevel.UNKNOWN,
  147. ),
  148. function=svc.update_custom_status,
  149. ),
  150. "/chatto.api.v1.MyAccountService/DeleteCustomStatus": Endpoint.unary(
  151. method=MethodInfo(
  152. name="DeleteCustomStatus",
  153. service_name="chatto.api.v1.MyAccountService",
  154. input=chatto_dot_api_dot_v1_dot_user__status__pb2.DeleteCustomStatusRequest,
  155. output=chatto_dot_api_dot_v1_dot_user__status__pb2.DeleteCustomStatusResponse,
  156. idempotency_level=IdempotencyLevel.UNKNOWN,
  157. ),
  158. function=svc.delete_custom_status,
  159. ),
  160. "/chatto.api.v1.MyAccountService/RequestAccountDeletion": Endpoint.unary(
  161. method=MethodInfo(
  162. name="RequestAccountDeletion",
  163. service_name="chatto.api.v1.MyAccountService",
  164. input=chatto_dot_api_dot_v1_dot_account__pb2.RequestAccountDeletionRequest,
  165. output=chatto_dot_api_dot_v1_dot_account__pb2.RequestAccountDeletionResponse,
  166. idempotency_level=IdempotencyLevel.UNKNOWN,
  167. ),
  168. function=svc.request_account_deletion,
  169. ),
  170. "/chatto.api.v1.MyAccountService/DeleteMyAccount": Endpoint.unary(
  171. method=MethodInfo(
  172. name="DeleteMyAccount",
  173. service_name="chatto.api.v1.MyAccountService",
  174. input=chatto_dot_api_dot_v1_dot_account__pb2.DeleteMyAccountRequest,
  175. output=chatto_dot_api_dot_v1_dot_account__pb2.DeleteMyAccountResponse,
  176. idempotency_level=IdempotencyLevel.UNKNOWN,
  177. ),
  178. function=svc.delete_my_account,
  179. ),
  180. },
  181. interceptors=interceptors,
  182. read_max_bytes=read_max_bytes,
  183. compressions=compressions,
  184. )
  185. @property
  186. def path(self) -> str:
  187. """Returns the URL path to mount the application to when serving multiple applications."""
  188. return "/chatto.api.v1.MyAccountService"
  189. class MyAccountServiceClient(ConnectClient):
  190. async def update_profile(
  191. self,
  192. request: chatto_dot_api_dot_v1_dot_account__pb2.UpdateProfileRequest,
  193. *,
  194. headers: Headers | Mapping[str, str] | None = None,
  195. timeout_ms: int | None = None,
  196. ) -> chatto_dot_api_dot_v1_dot_account__pb2.UpdateProfileResponse:
  197. return await self.execute_unary(
  198. request=request,
  199. method=MethodInfo(
  200. name="UpdateProfile",
  201. service_name="chatto.api.v1.MyAccountService",
  202. input=chatto_dot_api_dot_v1_dot_account__pb2.UpdateProfileRequest,
  203. output=chatto_dot_api_dot_v1_dot_account__pb2.UpdateProfileResponse,
  204. idempotency_level=IdempotencyLevel.UNKNOWN,
  205. ),
  206. headers=headers,
  207. timeout_ms=timeout_ms,
  208. )
  209. async def upload_avatar(
  210. self,
  211. request: chatto_dot_api_dot_v1_dot_account__pb2.UploadAvatarRequest,
  212. *,
  213. headers: Headers | Mapping[str, str] | None = None,
  214. timeout_ms: int | None = None,
  215. ) -> chatto_dot_api_dot_v1_dot_account__pb2.UploadAvatarResponse:
  216. return await self.execute_unary(
  217. request=request,
  218. method=MethodInfo(
  219. name="UploadAvatar",
  220. service_name="chatto.api.v1.MyAccountService",
  221. input=chatto_dot_api_dot_v1_dot_account__pb2.UploadAvatarRequest,
  222. output=chatto_dot_api_dot_v1_dot_account__pb2.UploadAvatarResponse,
  223. idempotency_level=IdempotencyLevel.UNKNOWN,
  224. ),
  225. headers=headers,
  226. timeout_ms=timeout_ms,
  227. )
  228. async def delete_avatar(
  229. self,
  230. request: chatto_dot_api_dot_v1_dot_account__pb2.DeleteAvatarRequest,
  231. *,
  232. headers: Headers | Mapping[str, str] | None = None,
  233. timeout_ms: int | None = None,
  234. ) -> chatto_dot_api_dot_v1_dot_account__pb2.DeleteAvatarResponse:
  235. return await self.execute_unary(
  236. request=request,
  237. method=MethodInfo(
  238. name="DeleteAvatar",
  239. service_name="chatto.api.v1.MyAccountService",
  240. input=chatto_dot_api_dot_v1_dot_account__pb2.DeleteAvatarRequest,
  241. output=chatto_dot_api_dot_v1_dot_account__pb2.DeleteAvatarResponse,
  242. idempotency_level=IdempotencyLevel.UNKNOWN,
  243. ),
  244. headers=headers,
  245. timeout_ms=timeout_ms,
  246. )
  247. async def update_password(
  248. self,
  249. request: chatto_dot_api_dot_v1_dot_account__pb2.UpdatePasswordRequest,
  250. *,
  251. headers: Headers | Mapping[str, str] | None = None,
  252. timeout_ms: int | None = None,
  253. ) -> chatto_dot_api_dot_v1_dot_account__pb2.UpdatePasswordResponse:
  254. return await self.execute_unary(
  255. request=request,
  256. method=MethodInfo(
  257. name="UpdatePassword",
  258. service_name="chatto.api.v1.MyAccountService",
  259. input=chatto_dot_api_dot_v1_dot_account__pb2.UpdatePasswordRequest,
  260. output=chatto_dot_api_dot_v1_dot_account__pb2.UpdatePasswordResponse,
  261. idempotency_level=IdempotencyLevel.UNKNOWN,
  262. ),
  263. headers=headers,
  264. timeout_ms=timeout_ms,
  265. )
  266. async def update_settings(
  267. self,
  268. request: chatto_dot_api_dot_v1_dot_account__pb2.UpdateSettingsRequest,
  269. *,
  270. headers: Headers | Mapping[str, str] | None = None,
  271. timeout_ms: int | None = None,
  272. ) -> chatto_dot_api_dot_v1_dot_account__pb2.UpdateSettingsResponse:
  273. return await self.execute_unary(
  274. request=request,
  275. method=MethodInfo(
  276. name="UpdateSettings",
  277. service_name="chatto.api.v1.MyAccountService",
  278. input=chatto_dot_api_dot_v1_dot_account__pb2.UpdateSettingsRequest,
  279. output=chatto_dot_api_dot_v1_dot_account__pb2.UpdateSettingsResponse,
  280. idempotency_level=IdempotencyLevel.UNKNOWN,
  281. ),
  282. headers=headers,
  283. timeout_ms=timeout_ms,
  284. )
  285. async def list_external_identities(
  286. self,
  287. request: chatto_dot_api_dot_v1_dot_external__identities__pb2.ListExternalIdentitiesRequest,
  288. *,
  289. headers: Headers | Mapping[str, str] | None = None,
  290. timeout_ms: int | None = None,
  291. ) -> chatto_dot_api_dot_v1_dot_external__identities__pb2.ListExternalIdentitiesResponse:
  292. return await self.execute_unary(
  293. request=request,
  294. method=MethodInfo(
  295. name="ListExternalIdentities",
  296. service_name="chatto.api.v1.MyAccountService",
  297. input=chatto_dot_api_dot_v1_dot_external__identities__pb2.ListExternalIdentitiesRequest,
  298. output=chatto_dot_api_dot_v1_dot_external__identities__pb2.ListExternalIdentitiesResponse,
  299. idempotency_level=IdempotencyLevel.UNKNOWN,
  300. ),
  301. headers=headers,
  302. timeout_ms=timeout_ms,
  303. )
  304. async def start_external_identity_link(
  305. self,
  306. request: chatto_dot_api_dot_v1_dot_external__identities__pb2.StartExternalIdentityLinkRequest,
  307. *,
  308. headers: Headers | Mapping[str, str] | None = None,
  309. timeout_ms: int | None = None,
  310. ) -> chatto_dot_api_dot_v1_dot_external__identities__pb2.StartExternalIdentityLinkResponse:
  311. return await self.execute_unary(
  312. request=request,
  313. method=MethodInfo(
  314. name="StartExternalIdentityLink",
  315. service_name="chatto.api.v1.MyAccountService",
  316. input=chatto_dot_api_dot_v1_dot_external__identities__pb2.StartExternalIdentityLinkRequest,
  317. output=chatto_dot_api_dot_v1_dot_external__identities__pb2.StartExternalIdentityLinkResponse,
  318. idempotency_level=IdempotencyLevel.UNKNOWN,
  319. ),
  320. headers=headers,
  321. timeout_ms=timeout_ms,
  322. )
  323. async def disconnect_external_identity(
  324. self,
  325. request: chatto_dot_api_dot_v1_dot_external__identities__pb2.DisconnectExternalIdentityRequest,
  326. *,
  327. headers: Headers | Mapping[str, str] | None = None,
  328. timeout_ms: int | None = None,
  329. ) -> chatto_dot_api_dot_v1_dot_external__identities__pb2.DisconnectExternalIdentityResponse:
  330. return await self.execute_unary(
  331. request=request,
  332. method=MethodInfo(
  333. name="DisconnectExternalIdentity",
  334. service_name="chatto.api.v1.MyAccountService",
  335. input=chatto_dot_api_dot_v1_dot_external__identities__pb2.DisconnectExternalIdentityRequest,
  336. output=chatto_dot_api_dot_v1_dot_external__identities__pb2.DisconnectExternalIdentityResponse,
  337. idempotency_level=IdempotencyLevel.UNKNOWN,
  338. ),
  339. headers=headers,
  340. timeout_ms=timeout_ms,
  341. )
  342. async def update_presence(
  343. self,
  344. request: chatto_dot_api_dot_v1_dot_presence__pb2.UpdatePresenceRequest,
  345. *,
  346. headers: Headers | Mapping[str, str] | None = None,
  347. timeout_ms: int | None = None,
  348. ) -> chatto_dot_api_dot_v1_dot_presence__pb2.UpdatePresenceResponse:
  349. return await self.execute_unary(
  350. request=request,
  351. method=MethodInfo(
  352. name="UpdatePresence",
  353. service_name="chatto.api.v1.MyAccountService",
  354. input=chatto_dot_api_dot_v1_dot_presence__pb2.UpdatePresenceRequest,
  355. output=chatto_dot_api_dot_v1_dot_presence__pb2.UpdatePresenceResponse,
  356. idempotency_level=IdempotencyLevel.UNKNOWN,
  357. ),
  358. headers=headers,
  359. timeout_ms=timeout_ms,
  360. )
  361. async def update_custom_status(
  362. self,
  363. request: chatto_dot_api_dot_v1_dot_user__status__pb2.UpdateCustomStatusRequest,
  364. *,
  365. headers: Headers | Mapping[str, str] | None = None,
  366. timeout_ms: int | None = None,
  367. ) -> chatto_dot_api_dot_v1_dot_user__status__pb2.UpdateCustomStatusResponse:
  368. return await self.execute_unary(
  369. request=request,
  370. method=MethodInfo(
  371. name="UpdateCustomStatus",
  372. service_name="chatto.api.v1.MyAccountService",
  373. input=chatto_dot_api_dot_v1_dot_user__status__pb2.UpdateCustomStatusRequest,
  374. output=chatto_dot_api_dot_v1_dot_user__status__pb2.UpdateCustomStatusResponse,
  375. idempotency_level=IdempotencyLevel.UNKNOWN,
  376. ),
  377. headers=headers,
  378. timeout_ms=timeout_ms,
  379. )
  380. async def delete_custom_status(
  381. self,
  382. request: chatto_dot_api_dot_v1_dot_user__status__pb2.DeleteCustomStatusRequest,
  383. *,
  384. headers: Headers | Mapping[str, str] | None = None,
  385. timeout_ms: int | None = None,
  386. ) -> chatto_dot_api_dot_v1_dot_user__status__pb2.DeleteCustomStatusResponse:
  387. return await self.execute_unary(
  388. request=request,
  389. method=MethodInfo(
  390. name="DeleteCustomStatus",
  391. service_name="chatto.api.v1.MyAccountService",
  392. input=chatto_dot_api_dot_v1_dot_user__status__pb2.DeleteCustomStatusRequest,
  393. output=chatto_dot_api_dot_v1_dot_user__status__pb2.DeleteCustomStatusResponse,
  394. idempotency_level=IdempotencyLevel.UNKNOWN,
  395. ),
  396. headers=headers,
  397. timeout_ms=timeout_ms,
  398. )
  399. async def request_account_deletion(
  400. self,
  401. request: chatto_dot_api_dot_v1_dot_account__pb2.RequestAccountDeletionRequest,
  402. *,
  403. headers: Headers | Mapping[str, str] | None = None,
  404. timeout_ms: int | None = None,
  405. ) -> chatto_dot_api_dot_v1_dot_account__pb2.RequestAccountDeletionResponse:
  406. return await self.execute_unary(
  407. request=request,
  408. method=MethodInfo(
  409. name="RequestAccountDeletion",
  410. service_name="chatto.api.v1.MyAccountService",
  411. input=chatto_dot_api_dot_v1_dot_account__pb2.RequestAccountDeletionRequest,
  412. output=chatto_dot_api_dot_v1_dot_account__pb2.RequestAccountDeletionResponse,
  413. idempotency_level=IdempotencyLevel.UNKNOWN,
  414. ),
  415. headers=headers,
  416. timeout_ms=timeout_ms,
  417. )
  418. async def delete_my_account(
  419. self,
  420. request: chatto_dot_api_dot_v1_dot_account__pb2.DeleteMyAccountRequest,
  421. *,
  422. headers: Headers | Mapping[str, str] | None = None,
  423. timeout_ms: int | None = None,
  424. ) -> chatto_dot_api_dot_v1_dot_account__pb2.DeleteMyAccountResponse:
  425. return await self.execute_unary(
  426. request=request,
  427. method=MethodInfo(
  428. name="DeleteMyAccount",
  429. service_name="chatto.api.v1.MyAccountService",
  430. input=chatto_dot_api_dot_v1_dot_account__pb2.DeleteMyAccountRequest,
  431. output=chatto_dot_api_dot_v1_dot_account__pb2.DeleteMyAccountResponse,
  432. idempotency_level=IdempotencyLevel.UNKNOWN,
  433. ),
  434. headers=headers,
  435. timeout_ms=timeout_ms,
  436. )
  437. class MyAccountServiceSync(Protocol):
  438. def update_profile(self, request: chatto_dot_api_dot_v1_dot_account__pb2.UpdateProfileRequest, ctx: RequestContext) -> chatto_dot_api_dot_v1_dot_account__pb2.UpdateProfileResponse:
  439. raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
  440. def upload_avatar(self, request: chatto_dot_api_dot_v1_dot_account__pb2.UploadAvatarRequest, ctx: RequestContext) -> chatto_dot_api_dot_v1_dot_account__pb2.UploadAvatarResponse:
  441. raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
  442. def delete_avatar(self, request: chatto_dot_api_dot_v1_dot_account__pb2.DeleteAvatarRequest, ctx: RequestContext) -> chatto_dot_api_dot_v1_dot_account__pb2.DeleteAvatarResponse:
  443. raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
  444. def update_password(self, request: chatto_dot_api_dot_v1_dot_account__pb2.UpdatePasswordRequest, ctx: RequestContext) -> chatto_dot_api_dot_v1_dot_account__pb2.UpdatePasswordResponse:
  445. raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
  446. def update_settings(self, request: chatto_dot_api_dot_v1_dot_account__pb2.UpdateSettingsRequest, ctx: RequestContext) -> chatto_dot_api_dot_v1_dot_account__pb2.UpdateSettingsResponse:
  447. raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
  448. def list_external_identities(self, request: chatto_dot_api_dot_v1_dot_external__identities__pb2.ListExternalIdentitiesRequest, ctx: RequestContext) -> chatto_dot_api_dot_v1_dot_external__identities__pb2.ListExternalIdentitiesResponse:
  449. raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
  450. def start_external_identity_link(self, request: chatto_dot_api_dot_v1_dot_external__identities__pb2.StartExternalIdentityLinkRequest, ctx: RequestContext) -> chatto_dot_api_dot_v1_dot_external__identities__pb2.StartExternalIdentityLinkResponse:
  451. raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
  452. def disconnect_external_identity(self, request: chatto_dot_api_dot_v1_dot_external__identities__pb2.DisconnectExternalIdentityRequest, ctx: RequestContext) -> chatto_dot_api_dot_v1_dot_external__identities__pb2.DisconnectExternalIdentityResponse:
  453. raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
  454. def update_presence(self, request: chatto_dot_api_dot_v1_dot_presence__pb2.UpdatePresenceRequest, ctx: RequestContext) -> chatto_dot_api_dot_v1_dot_presence__pb2.UpdatePresenceResponse:
  455. raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
  456. def update_custom_status(self, request: chatto_dot_api_dot_v1_dot_user__status__pb2.UpdateCustomStatusRequest, ctx: RequestContext) -> chatto_dot_api_dot_v1_dot_user__status__pb2.UpdateCustomStatusResponse:
  457. raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
  458. def delete_custom_status(self, request: chatto_dot_api_dot_v1_dot_user__status__pb2.DeleteCustomStatusRequest, ctx: RequestContext) -> chatto_dot_api_dot_v1_dot_user__status__pb2.DeleteCustomStatusResponse:
  459. raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
  460. def request_account_deletion(self, request: chatto_dot_api_dot_v1_dot_account__pb2.RequestAccountDeletionRequest, ctx: RequestContext) -> chatto_dot_api_dot_v1_dot_account__pb2.RequestAccountDeletionResponse:
  461. raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
  462. def delete_my_account(self, request: chatto_dot_api_dot_v1_dot_account__pb2.DeleteMyAccountRequest, ctx: RequestContext) -> chatto_dot_api_dot_v1_dot_account__pb2.DeleteMyAccountResponse:
  463. raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
  464. class MyAccountServiceWSGIApplication(ConnectWSGIApplication):
  465. def __init__(self, service: MyAccountServiceSync, interceptors: Iterable[InterceptorSync]=(), read_max_bytes: int | None = None, compressions: Iterable[Compression] | None = None) -> None:
  466. super().__init__(
  467. endpoints={
  468. "/chatto.api.v1.MyAccountService/UpdateProfile": EndpointSync.unary(
  469. method=MethodInfo(
  470. name="UpdateProfile",
  471. service_name="chatto.api.v1.MyAccountService",
  472. input=chatto_dot_api_dot_v1_dot_account__pb2.UpdateProfileRequest,
  473. output=chatto_dot_api_dot_v1_dot_account__pb2.UpdateProfileResponse,
  474. idempotency_level=IdempotencyLevel.UNKNOWN,
  475. ),
  476. function=service.update_profile,
  477. ),
  478. "/chatto.api.v1.MyAccountService/UploadAvatar": EndpointSync.unary(
  479. method=MethodInfo(
  480. name="UploadAvatar",
  481. service_name="chatto.api.v1.MyAccountService",
  482. input=chatto_dot_api_dot_v1_dot_account__pb2.UploadAvatarRequest,
  483. output=chatto_dot_api_dot_v1_dot_account__pb2.UploadAvatarResponse,
  484. idempotency_level=IdempotencyLevel.UNKNOWN,
  485. ),
  486. function=service.upload_avatar,
  487. ),
  488. "/chatto.api.v1.MyAccountService/DeleteAvatar": EndpointSync.unary(
  489. method=MethodInfo(
  490. name="DeleteAvatar",
  491. service_name="chatto.api.v1.MyAccountService",
  492. input=chatto_dot_api_dot_v1_dot_account__pb2.DeleteAvatarRequest,
  493. output=chatto_dot_api_dot_v1_dot_account__pb2.DeleteAvatarResponse,
  494. idempotency_level=IdempotencyLevel.UNKNOWN,
  495. ),
  496. function=service.delete_avatar,
  497. ),
  498. "/chatto.api.v1.MyAccountService/UpdatePassword": EndpointSync.unary(
  499. method=MethodInfo(
  500. name="UpdatePassword",
  501. service_name="chatto.api.v1.MyAccountService",
  502. input=chatto_dot_api_dot_v1_dot_account__pb2.UpdatePasswordRequest,
  503. output=chatto_dot_api_dot_v1_dot_account__pb2.UpdatePasswordResponse,
  504. idempotency_level=IdempotencyLevel.UNKNOWN,
  505. ),
  506. function=service.update_password,
  507. ),
  508. "/chatto.api.v1.MyAccountService/UpdateSettings": EndpointSync.unary(
  509. method=MethodInfo(
  510. name="UpdateSettings",
  511. service_name="chatto.api.v1.MyAccountService",
  512. input=chatto_dot_api_dot_v1_dot_account__pb2.UpdateSettingsRequest,
  513. output=chatto_dot_api_dot_v1_dot_account__pb2.UpdateSettingsResponse,
  514. idempotency_level=IdempotencyLevel.UNKNOWN,
  515. ),
  516. function=service.update_settings,
  517. ),
  518. "/chatto.api.v1.MyAccountService/ListExternalIdentities": EndpointSync.unary(
  519. method=MethodInfo(
  520. name="ListExternalIdentities",
  521. service_name="chatto.api.v1.MyAccountService",
  522. input=chatto_dot_api_dot_v1_dot_external__identities__pb2.ListExternalIdentitiesRequest,
  523. output=chatto_dot_api_dot_v1_dot_external__identities__pb2.ListExternalIdentitiesResponse,
  524. idempotency_level=IdempotencyLevel.UNKNOWN,
  525. ),
  526. function=service.list_external_identities,
  527. ),
  528. "/chatto.api.v1.MyAccountService/StartExternalIdentityLink": EndpointSync.unary(
  529. method=MethodInfo(
  530. name="StartExternalIdentityLink",
  531. service_name="chatto.api.v1.MyAccountService",
  532. input=chatto_dot_api_dot_v1_dot_external__identities__pb2.StartExternalIdentityLinkRequest,
  533. output=chatto_dot_api_dot_v1_dot_external__identities__pb2.StartExternalIdentityLinkResponse,
  534. idempotency_level=IdempotencyLevel.UNKNOWN,
  535. ),
  536. function=service.start_external_identity_link,
  537. ),
  538. "/chatto.api.v1.MyAccountService/DisconnectExternalIdentity": EndpointSync.unary(
  539. method=MethodInfo(
  540. name="DisconnectExternalIdentity",
  541. service_name="chatto.api.v1.MyAccountService",
  542. input=chatto_dot_api_dot_v1_dot_external__identities__pb2.DisconnectExternalIdentityRequest,
  543. output=chatto_dot_api_dot_v1_dot_external__identities__pb2.DisconnectExternalIdentityResponse,
  544. idempotency_level=IdempotencyLevel.UNKNOWN,
  545. ),
  546. function=service.disconnect_external_identity,
  547. ),
  548. "/chatto.api.v1.MyAccountService/UpdatePresence": EndpointSync.unary(
  549. method=MethodInfo(
  550. name="UpdatePresence",
  551. service_name="chatto.api.v1.MyAccountService",
  552. input=chatto_dot_api_dot_v1_dot_presence__pb2.UpdatePresenceRequest,
  553. output=chatto_dot_api_dot_v1_dot_presence__pb2.UpdatePresenceResponse,
  554. idempotency_level=IdempotencyLevel.UNKNOWN,
  555. ),
  556. function=service.update_presence,
  557. ),
  558. "/chatto.api.v1.MyAccountService/UpdateCustomStatus": EndpointSync.unary(
  559. method=MethodInfo(
  560. name="UpdateCustomStatus",
  561. service_name="chatto.api.v1.MyAccountService",
  562. input=chatto_dot_api_dot_v1_dot_user__status__pb2.UpdateCustomStatusRequest,
  563. output=chatto_dot_api_dot_v1_dot_user__status__pb2.UpdateCustomStatusResponse,
  564. idempotency_level=IdempotencyLevel.UNKNOWN,
  565. ),
  566. function=service.update_custom_status,
  567. ),
  568. "/chatto.api.v1.MyAccountService/DeleteCustomStatus": EndpointSync.unary(
  569. method=MethodInfo(
  570. name="DeleteCustomStatus",
  571. service_name="chatto.api.v1.MyAccountService",
  572. input=chatto_dot_api_dot_v1_dot_user__status__pb2.DeleteCustomStatusRequest,
  573. output=chatto_dot_api_dot_v1_dot_user__status__pb2.DeleteCustomStatusResponse,
  574. idempotency_level=IdempotencyLevel.UNKNOWN,
  575. ),
  576. function=service.delete_custom_status,
  577. ),
  578. "/chatto.api.v1.MyAccountService/RequestAccountDeletion": EndpointSync.unary(
  579. method=MethodInfo(
  580. name="RequestAccountDeletion",
  581. service_name="chatto.api.v1.MyAccountService",
  582. input=chatto_dot_api_dot_v1_dot_account__pb2.RequestAccountDeletionRequest,
  583. output=chatto_dot_api_dot_v1_dot_account__pb2.RequestAccountDeletionResponse,
  584. idempotency_level=IdempotencyLevel.UNKNOWN,
  585. ),
  586. function=service.request_account_deletion,
  587. ),
  588. "/chatto.api.v1.MyAccountService/DeleteMyAccount": EndpointSync.unary(
  589. method=MethodInfo(
  590. name="DeleteMyAccount",
  591. service_name="chatto.api.v1.MyAccountService",
  592. input=chatto_dot_api_dot_v1_dot_account__pb2.DeleteMyAccountRequest,
  593. output=chatto_dot_api_dot_v1_dot_account__pb2.DeleteMyAccountResponse,
  594. idempotency_level=IdempotencyLevel.UNKNOWN,
  595. ),
  596. function=service.delete_my_account,
  597. ),
  598. },
  599. interceptors=interceptors,
  600. read_max_bytes=read_max_bytes,
  601. compressions=compressions,
  602. )
  603. @property
  604. def path(self) -> str:
  605. """Returns the URL path to mount the application to when serving multiple applications."""
  606. return "/chatto.api.v1.MyAccountService"
  607. class MyAccountServiceClientSync(ConnectClientSync):
  608. def update_profile(
  609. self,
  610. request: chatto_dot_api_dot_v1_dot_account__pb2.UpdateProfileRequest,
  611. *,
  612. headers: Headers | Mapping[str, str] | None = None,
  613. timeout_ms: int | None = None,
  614. ) -> chatto_dot_api_dot_v1_dot_account__pb2.UpdateProfileResponse:
  615. return self.execute_unary(
  616. request=request,
  617. method=MethodInfo(
  618. name="UpdateProfile",
  619. service_name="chatto.api.v1.MyAccountService",
  620. input=chatto_dot_api_dot_v1_dot_account__pb2.UpdateProfileRequest,
  621. output=chatto_dot_api_dot_v1_dot_account__pb2.UpdateProfileResponse,
  622. idempotency_level=IdempotencyLevel.UNKNOWN,
  623. ),
  624. headers=headers,
  625. timeout_ms=timeout_ms,
  626. )
  627. def upload_avatar(
  628. self,
  629. request: chatto_dot_api_dot_v1_dot_account__pb2.UploadAvatarRequest,
  630. *,
  631. headers: Headers | Mapping[str, str] | None = None,
  632. timeout_ms: int | None = None,
  633. ) -> chatto_dot_api_dot_v1_dot_account__pb2.UploadAvatarResponse:
  634. return self.execute_unary(
  635. request=request,
  636. method=MethodInfo(
  637. name="UploadAvatar",
  638. service_name="chatto.api.v1.MyAccountService",
  639. input=chatto_dot_api_dot_v1_dot_account__pb2.UploadAvatarRequest,
  640. output=chatto_dot_api_dot_v1_dot_account__pb2.UploadAvatarResponse,
  641. idempotency_level=IdempotencyLevel.UNKNOWN,
  642. ),
  643. headers=headers,
  644. timeout_ms=timeout_ms,
  645. )
  646. def delete_avatar(
  647. self,
  648. request: chatto_dot_api_dot_v1_dot_account__pb2.DeleteAvatarRequest,
  649. *,
  650. headers: Headers | Mapping[str, str] | None = None,
  651. timeout_ms: int | None = None,
  652. ) -> chatto_dot_api_dot_v1_dot_account__pb2.DeleteAvatarResponse:
  653. return self.execute_unary(
  654. request=request,
  655. method=MethodInfo(
  656. name="DeleteAvatar",
  657. service_name="chatto.api.v1.MyAccountService",
  658. input=chatto_dot_api_dot_v1_dot_account__pb2.DeleteAvatarRequest,
  659. output=chatto_dot_api_dot_v1_dot_account__pb2.DeleteAvatarResponse,
  660. idempotency_level=IdempotencyLevel.UNKNOWN,
  661. ),
  662. headers=headers,
  663. timeout_ms=timeout_ms,
  664. )
  665. def update_password(
  666. self,
  667. request: chatto_dot_api_dot_v1_dot_account__pb2.UpdatePasswordRequest,
  668. *,
  669. headers: Headers | Mapping[str, str] | None = None,
  670. timeout_ms: int | None = None,
  671. ) -> chatto_dot_api_dot_v1_dot_account__pb2.UpdatePasswordResponse:
  672. return self.execute_unary(
  673. request=request,
  674. method=MethodInfo(
  675. name="UpdatePassword",
  676. service_name="chatto.api.v1.MyAccountService",
  677. input=chatto_dot_api_dot_v1_dot_account__pb2.UpdatePasswordRequest,
  678. output=chatto_dot_api_dot_v1_dot_account__pb2.UpdatePasswordResponse,
  679. idempotency_level=IdempotencyLevel.UNKNOWN,
  680. ),
  681. headers=headers,
  682. timeout_ms=timeout_ms,
  683. )
  684. def update_settings(
  685. self,
  686. request: chatto_dot_api_dot_v1_dot_account__pb2.UpdateSettingsRequest,
  687. *,
  688. headers: Headers | Mapping[str, str] | None = None,
  689. timeout_ms: int | None = None,
  690. ) -> chatto_dot_api_dot_v1_dot_account__pb2.UpdateSettingsResponse:
  691. return self.execute_unary(
  692. request=request,
  693. method=MethodInfo(
  694. name="UpdateSettings",
  695. service_name="chatto.api.v1.MyAccountService",
  696. input=chatto_dot_api_dot_v1_dot_account__pb2.UpdateSettingsRequest,
  697. output=chatto_dot_api_dot_v1_dot_account__pb2.UpdateSettingsResponse,
  698. idempotency_level=IdempotencyLevel.UNKNOWN,
  699. ),
  700. headers=headers,
  701. timeout_ms=timeout_ms,
  702. )
  703. def list_external_identities(
  704. self,
  705. request: chatto_dot_api_dot_v1_dot_external__identities__pb2.ListExternalIdentitiesRequest,
  706. *,
  707. headers: Headers | Mapping[str, str] | None = None,
  708. timeout_ms: int | None = None,
  709. ) -> chatto_dot_api_dot_v1_dot_external__identities__pb2.ListExternalIdentitiesResponse:
  710. return self.execute_unary(
  711. request=request,
  712. method=MethodInfo(
  713. name="ListExternalIdentities",
  714. service_name="chatto.api.v1.MyAccountService",
  715. input=chatto_dot_api_dot_v1_dot_external__identities__pb2.ListExternalIdentitiesRequest,
  716. output=chatto_dot_api_dot_v1_dot_external__identities__pb2.ListExternalIdentitiesResponse,
  717. idempotency_level=IdempotencyLevel.UNKNOWN,
  718. ),
  719. headers=headers,
  720. timeout_ms=timeout_ms,
  721. )
  722. def start_external_identity_link(
  723. self,
  724. request: chatto_dot_api_dot_v1_dot_external__identities__pb2.StartExternalIdentityLinkRequest,
  725. *,
  726. headers: Headers | Mapping[str, str] | None = None,
  727. timeout_ms: int | None = None,
  728. ) -> chatto_dot_api_dot_v1_dot_external__identities__pb2.StartExternalIdentityLinkResponse:
  729. return self.execute_unary(
  730. request=request,
  731. method=MethodInfo(
  732. name="StartExternalIdentityLink",
  733. service_name="chatto.api.v1.MyAccountService",
  734. input=chatto_dot_api_dot_v1_dot_external__identities__pb2.StartExternalIdentityLinkRequest,
  735. output=chatto_dot_api_dot_v1_dot_external__identities__pb2.StartExternalIdentityLinkResponse,
  736. idempotency_level=IdempotencyLevel.UNKNOWN,
  737. ),
  738. headers=headers,
  739. timeout_ms=timeout_ms,
  740. )
  741. def disconnect_external_identity(
  742. self,
  743. request: chatto_dot_api_dot_v1_dot_external__identities__pb2.DisconnectExternalIdentityRequest,
  744. *,
  745. headers: Headers | Mapping[str, str] | None = None,
  746. timeout_ms: int | None = None,
  747. ) -> chatto_dot_api_dot_v1_dot_external__identities__pb2.DisconnectExternalIdentityResponse:
  748. return self.execute_unary(
  749. request=request,
  750. method=MethodInfo(
  751. name="DisconnectExternalIdentity",
  752. service_name="chatto.api.v1.MyAccountService",
  753. input=chatto_dot_api_dot_v1_dot_external__identities__pb2.DisconnectExternalIdentityRequest,
  754. output=chatto_dot_api_dot_v1_dot_external__identities__pb2.DisconnectExternalIdentityResponse,
  755. idempotency_level=IdempotencyLevel.UNKNOWN,
  756. ),
  757. headers=headers,
  758. timeout_ms=timeout_ms,
  759. )
  760. def update_presence(
  761. self,
  762. request: chatto_dot_api_dot_v1_dot_presence__pb2.UpdatePresenceRequest,
  763. *,
  764. headers: Headers | Mapping[str, str] | None = None,
  765. timeout_ms: int | None = None,
  766. ) -> chatto_dot_api_dot_v1_dot_presence__pb2.UpdatePresenceResponse:
  767. return self.execute_unary(
  768. request=request,
  769. method=MethodInfo(
  770. name="UpdatePresence",
  771. service_name="chatto.api.v1.MyAccountService",
  772. input=chatto_dot_api_dot_v1_dot_presence__pb2.UpdatePresenceRequest,
  773. output=chatto_dot_api_dot_v1_dot_presence__pb2.UpdatePresenceResponse,
  774. idempotency_level=IdempotencyLevel.UNKNOWN,
  775. ),
  776. headers=headers,
  777. timeout_ms=timeout_ms,
  778. )
  779. def update_custom_status(
  780. self,
  781. request: chatto_dot_api_dot_v1_dot_user__status__pb2.UpdateCustomStatusRequest,
  782. *,
  783. headers: Headers | Mapping[str, str] | None = None,
  784. timeout_ms: int | None = None,
  785. ) -> chatto_dot_api_dot_v1_dot_user__status__pb2.UpdateCustomStatusResponse:
  786. return self.execute_unary(
  787. request=request,
  788. method=MethodInfo(
  789. name="UpdateCustomStatus",
  790. service_name="chatto.api.v1.MyAccountService",
  791. input=chatto_dot_api_dot_v1_dot_user__status__pb2.UpdateCustomStatusRequest,
  792. output=chatto_dot_api_dot_v1_dot_user__status__pb2.UpdateCustomStatusResponse,
  793. idempotency_level=IdempotencyLevel.UNKNOWN,
  794. ),
  795. headers=headers,
  796. timeout_ms=timeout_ms,
  797. )
  798. def delete_custom_status(
  799. self,
  800. request: chatto_dot_api_dot_v1_dot_user__status__pb2.DeleteCustomStatusRequest,
  801. *,
  802. headers: Headers | Mapping[str, str] | None = None,
  803. timeout_ms: int | None = None,
  804. ) -> chatto_dot_api_dot_v1_dot_user__status__pb2.DeleteCustomStatusResponse:
  805. return self.execute_unary(
  806. request=request,
  807. method=MethodInfo(
  808. name="DeleteCustomStatus",
  809. service_name="chatto.api.v1.MyAccountService",
  810. input=chatto_dot_api_dot_v1_dot_user__status__pb2.DeleteCustomStatusRequest,
  811. output=chatto_dot_api_dot_v1_dot_user__status__pb2.DeleteCustomStatusResponse,
  812. idempotency_level=IdempotencyLevel.UNKNOWN,
  813. ),
  814. headers=headers,
  815. timeout_ms=timeout_ms,
  816. )
  817. def request_account_deletion(
  818. self,
  819. request: chatto_dot_api_dot_v1_dot_account__pb2.RequestAccountDeletionRequest,
  820. *,
  821. headers: Headers | Mapping[str, str] | None = None,
  822. timeout_ms: int | None = None,
  823. ) -> chatto_dot_api_dot_v1_dot_account__pb2.RequestAccountDeletionResponse:
  824. return self.execute_unary(
  825. request=request,
  826. method=MethodInfo(
  827. name="RequestAccountDeletion",
  828. service_name="chatto.api.v1.MyAccountService",
  829. input=chatto_dot_api_dot_v1_dot_account__pb2.RequestAccountDeletionRequest,
  830. output=chatto_dot_api_dot_v1_dot_account__pb2.RequestAccountDeletionResponse,
  831. idempotency_level=IdempotencyLevel.UNKNOWN,
  832. ),
  833. headers=headers,
  834. timeout_ms=timeout_ms,
  835. )
  836. def delete_my_account(
  837. self,
  838. request: chatto_dot_api_dot_v1_dot_account__pb2.DeleteMyAccountRequest,
  839. *,
  840. headers: Headers | Mapping[str, str] | None = None,
  841. timeout_ms: int | None = None,
  842. ) -> chatto_dot_api_dot_v1_dot_account__pb2.DeleteMyAccountResponse:
  843. return self.execute_unary(
  844. request=request,
  845. method=MethodInfo(
  846. name="DeleteMyAccount",
  847. service_name="chatto.api.v1.MyAccountService",
  848. input=chatto_dot_api_dot_v1_dot_account__pb2.DeleteMyAccountRequest,
  849. output=chatto_dot_api_dot_v1_dot_account__pb2.DeleteMyAccountResponse,
  850. idempotency_level=IdempotencyLevel.UNKNOWN,
  851. ),
  852. headers=headers,
  853. timeout_ms=timeout_ms,
  854. )