@mitumba/sdk 3.1.0 → 4.0.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/index.d.mts +33 -3
- package/dist/index.d.ts +33 -3
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1826,6 +1826,13 @@ var SettingsModule = class {
|
|
|
1826
1826
|
async getProfile(options) {
|
|
1827
1827
|
return this.client.get("/auth/me", void 0, options);
|
|
1828
1828
|
}
|
|
1829
|
+
/**
|
|
1830
|
+
* Update the current user's profile. Only the provided fields change. Returns the updated
|
|
1831
|
+
* {@link UserProfile}. See {@link UpdateProfileInput} for the server-enforced contract.
|
|
1832
|
+
*
|
|
1833
|
+
* @throws {APIError} `invalid_input` (400) when a field violates the contract, and
|
|
1834
|
+
* `phone_taken` (409) when the phone number already belongs to another account.
|
|
1835
|
+
*/
|
|
1829
1836
|
async updateProfile(input, options) {
|
|
1830
1837
|
return this.client.put("/auth/me", input, options);
|
|
1831
1838
|
}
|