Skip to content

Commit

Permalink
v1.16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriansaliou committed Dec 21, 2023
1 parent fc286fd commit 818cfdd
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,34 @@ client.Task.TranslateText({
}
```

#### ➡️ Fraud Spamicity

* **Method:** `client.Task.FraudSpamicity(data, { trace? })`
* **Reference:** [Fraud Spamicity](https://docs.mirage-ai.com/references/api/v1/#fraud-spamicity)

* **Request:**

```javascript
client.Task.FraudSpamicity({
"name": "Crisp",
"domain": "crisp.chat",
"email_domain": "mail.crisp.chat"
});
```

* **Response:**

```json
{
"reason": "processed",

"data": {
"fraud": false,
"score": 0.13
}
}
```

### Data API

#### ➡️ Context Ingest
Expand Down
12 changes: 12 additions & 0 deletions lib/resources/task.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,16 @@ Task.prototype.TranslateText = function(data, options) {
};


/**
* Task.prototype.FraudSpamicity
* @public
* @param {object} data
* @param {object} [options]
* @return {object} Promise object
*/
Task.prototype.FraudSpamicity = function(data, options) {
return this.parent._post("/task/fraud/spamicity", data, options);
};


exports.default = Task;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mirage-api",
"description": "Mirage API Node.",
"version": "1.15.0",
"version": "1.16.0",
"homepage": "https://github.com/mirage-ai-com/node-mirage-api",
"license": "MIT",
"author": {
Expand Down

0 comments on commit 818cfdd

Please sign in to comment.