oro-sdk-apis 6.0.0 → 6.0.1
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/oro-sdk-apis.cjs.development.js +39 -14
- package/dist/oro-sdk-apis.cjs.development.js.map +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js.map +1 -1
- package/dist/oro-sdk-apis.esm.js +39 -14
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/guard.d.ts +6 -0
- package/package.json +1 -1
- package/src/services/guard.ts +9 -0
package/dist/services/guard.d.ts
CHANGED
@@ -104,6 +104,12 @@ export declare class GuardService {
|
|
104
104
|
* @return void
|
105
105
|
*/
|
106
106
|
identitySendConfirmEmail(req: IdentityResendConfirmEmailRequest): Promise<void>;
|
107
|
+
/**
|
108
|
+
* Notifies the guard and confirms the phishing attempt
|
109
|
+
* @param attemptUuid the guard logged attempt id
|
110
|
+
* @returns void
|
111
|
+
*/
|
112
|
+
authConfirmPhishingAttempts(attemptUuid: Uuid): Promise<void>;
|
107
113
|
/**
|
108
114
|
* Get an identity using a customer email (format: customer+[b64Hash]@orohealth.me)
|
109
115
|
*
|
package/package.json
CHANGED
package/src/services/guard.ts
CHANGED
@@ -273,6 +273,15 @@ export class GuardService {
|
|
273
273
|
return this.api.post<void>(`${this.baseURL}/v1/identity/confirm`, req)
|
274
274
|
}
|
275
275
|
|
276
|
+
/**
|
277
|
+
* Notifies the guard and confirms the phishing attempt
|
278
|
+
* @param attemptUuid the guard logged attempt id
|
279
|
+
* @returns void
|
280
|
+
*/
|
281
|
+
public async authConfirmPhishingAttempts(attemptUuid: Uuid): Promise<void> {
|
282
|
+
return this.api.put<void>(`${this.baseURL}/v1/auth/attempts/${attemptUuid}`, {})
|
283
|
+
}
|
284
|
+
|
276
285
|
/**
|
277
286
|
* Get an identity using a customer email (format: customer+[b64Hash]@orohealth.me)
|
278
287
|
*
|