@camstack/sdk 0.1.45 → 0.1.47
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.cjs +28 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -1
- package/dist/system.d.ts +22 -0
- package/package.json +1 -1
package/dist/system.d.ts
CHANGED
|
@@ -197,6 +197,28 @@ export declare class System {
|
|
|
197
197
|
}>;
|
|
198
198
|
logout(): Promise<void>;
|
|
199
199
|
getMe(): Promise<UserInfo>;
|
|
200
|
+
changeOwnPassword(input: {
|
|
201
|
+
currentPassword: string;
|
|
202
|
+
newPassword: string;
|
|
203
|
+
}): Promise<{
|
|
204
|
+
success: true;
|
|
205
|
+
}>;
|
|
206
|
+
setupOwnTotp(): Promise<{
|
|
207
|
+
secret: string;
|
|
208
|
+
otpauthUrl: string;
|
|
209
|
+
}>;
|
|
210
|
+
confirmOwnTotp(input: {
|
|
211
|
+
code: string;
|
|
212
|
+
}): Promise<{
|
|
213
|
+
success: true;
|
|
214
|
+
}>;
|
|
215
|
+
disableOwnTotp(): Promise<{
|
|
216
|
+
success: true;
|
|
217
|
+
}>;
|
|
218
|
+
getOwnTotpStatus(): Promise<{
|
|
219
|
+
enabled: boolean;
|
|
220
|
+
confirmedAt: number | null;
|
|
221
|
+
}>;
|
|
200
222
|
/** Update the auth token (e.g. after login or token refresh). */
|
|
201
223
|
setToken(token: string): void;
|
|
202
224
|
/**
|