mavenagi 0.0.0-alpha.27 → 0.0.0-alpha.28
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/Client.d.ts +3 -0
- package/Client.js +5 -0
- package/api/resources/actions/client/Client.js +6 -6
- package/api/resources/appSettings/client/Client.js +2 -2
- package/api/resources/conversation/client/Client.js +20 -20
- package/api/resources/conversation/types/BotResponseMetadata.d.ts +2 -0
- package/api/resources/conversation/types/UserMessage.d.ts +2 -0
- package/api/resources/index.d.ts +2 -0
- package/api/resources/index.js +2 -0
- package/api/resources/knowledge/client/Client.js +14 -14
- package/api/resources/translations/client/Client.d.ts +52 -0
- package/api/resources/translations/client/Client.js +130 -0
- package/api/resources/translations/client/index.d.ts +1 -0
- package/api/resources/translations/client/index.js +1 -0
- package/api/resources/translations/index.d.ts +2 -0
- package/api/resources/translations/index.js +2 -0
- package/api/resources/translations/types/TranslationRequest.d.ts +16 -0
- package/api/resources/translations/types/TranslationRequest.js +4 -0
- package/api/resources/translations/types/TranslationResponse.d.ts +13 -0
- package/api/resources/translations/types/TranslationResponse.js +4 -0
- package/api/resources/translations/types/index.d.ts +2 -0
- package/api/resources/translations/types/index.js +2 -0
- package/api/resources/triggers/client/Client.js +6 -6
- package/api/resources/users/client/Client.js +4 -4
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +5 -0
- package/dist/api/resources/actions/client/Client.js +6 -6
- package/dist/api/resources/appSettings/client/Client.js +2 -2
- package/dist/api/resources/conversation/client/Client.js +20 -20
- package/dist/api/resources/conversation/types/BotResponseMetadata.d.ts +2 -0
- package/dist/api/resources/conversation/types/UserMessage.d.ts +2 -0
- package/dist/api/resources/index.d.ts +2 -0
- package/dist/api/resources/index.js +2 -0
- package/dist/api/resources/knowledge/client/Client.js +14 -14
- package/dist/api/resources/translations/client/Client.d.ts +52 -0
- package/dist/api/resources/translations/client/Client.js +130 -0
- package/dist/api/resources/translations/client/index.d.ts +1 -0
- package/dist/api/resources/translations/client/index.js +1 -0
- package/dist/api/resources/translations/index.d.ts +2 -0
- package/dist/api/resources/translations/index.js +2 -0
- package/dist/api/resources/translations/types/TranslationRequest.d.ts +16 -0
- package/dist/api/resources/translations/types/TranslationRequest.js +4 -0
- package/dist/api/resources/translations/types/TranslationResponse.d.ts +13 -0
- package/dist/api/resources/translations/types/TranslationResponse.js +4 -0
- package/dist/api/resources/translations/types/index.d.ts +2 -0
- package/dist/api/resources/translations/types/index.js +2 -0
- package/dist/api/resources/triggers/client/Client.js +6 -6
- package/dist/api/resources/users/client/Client.js +4 -4
- package/dist/serialization/resources/conversation/types/BotResponseMetadata.d.ts +1 -0
- package/dist/serialization/resources/conversation/types/BotResponseMetadata.js +1 -0
- package/dist/serialization/resources/conversation/types/UserMessage.d.ts +1 -0
- package/dist/serialization/resources/conversation/types/UserMessage.js +1 -0
- package/dist/serialization/resources/index.d.ts +2 -0
- package/dist/serialization/resources/index.js +2 -0
- package/dist/serialization/resources/translations/index.d.ts +1 -0
- package/dist/serialization/resources/translations/index.js +1 -0
- package/dist/serialization/resources/translations/types/TranslationRequest.d.ts +13 -0
- package/dist/serialization/resources/translations/types/TranslationRequest.js +8 -0
- package/dist/serialization/resources/translations/types/TranslationResponse.d.ts +12 -0
- package/dist/serialization/resources/translations/types/TranslationResponse.js +7 -0
- package/dist/serialization/resources/translations/types/index.d.ts +2 -0
- package/dist/serialization/resources/translations/types/index.js +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +68 -0
- package/serialization/resources/conversation/types/BotResponseMetadata.d.ts +1 -0
- package/serialization/resources/conversation/types/BotResponseMetadata.js +1 -0
- package/serialization/resources/conversation/types/UserMessage.d.ts +1 -0
- package/serialization/resources/conversation/types/UserMessage.js +1 -0
- package/serialization/resources/index.d.ts +2 -0
- package/serialization/resources/index.js +2 -0
- package/serialization/resources/translations/index.d.ts +1 -0
- package/serialization/resources/translations/index.js +1 -0
- package/serialization/resources/translations/types/TranslationRequest.d.ts +13 -0
- package/serialization/resources/translations/types/TranslationRequest.js +8 -0
- package/serialization/resources/translations/types/TranslationResponse.d.ts +12 -0
- package/serialization/resources/translations/types/TranslationResponse.js +7 -0
- package/serialization/resources/translations/types/index.d.ts +2 -0
- package/serialization/resources/translations/types/index.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -6,6 +6,8 @@ export * as conversation from "./conversation";
|
|
|
6
6
|
export * from "./conversation/types";
|
|
7
7
|
export * as knowledge from "./knowledge";
|
|
8
8
|
export * from "./knowledge/types";
|
|
9
|
+
export * as translations from "./translations";
|
|
10
|
+
export * from "./translations/types";
|
|
9
11
|
export * as triggers from "./triggers";
|
|
10
12
|
export * from "./triggers/types";
|
|
11
13
|
export * as appSettings from "./appSettings";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./types";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./types";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const TranslationRequest: core.serialization.ObjectSchema<serializers.TranslationRequest.Raw, MavenAGI.TranslationRequest>;
|
|
8
|
+
export declare namespace TranslationRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
text: string;
|
|
11
|
+
targetLanguage: string;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../core";
|
|
5
|
+
export const TranslationRequest = core.serialization.object({
|
|
6
|
+
text: core.serialization.string(),
|
|
7
|
+
targetLanguage: core.serialization.string(),
|
|
8
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const TranslationResponse: core.serialization.ObjectSchema<serializers.TranslationResponse.Raw, MavenAGI.TranslationResponse>;
|
|
8
|
+
export declare namespace TranslationResponse {
|
|
9
|
+
interface Raw {
|
|
10
|
+
translatedText: string;
|
|
11
|
+
}
|
|
12
|
+
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.0-alpha.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.0-alpha.28";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.0.0-alpha.
|
|
1
|
+
export const SDK_VERSION = "0.0.0-alpha.28";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -1556,6 +1556,74 @@ await client.knowledge.deleteKnowledgeDocument("help-center", "getting-started")
|
|
|
1556
1556
|
</dl>
|
|
1557
1557
|
</details>
|
|
1558
1558
|
|
|
1559
|
+
## Translations
|
|
1560
|
+
|
|
1561
|
+
<details><summary><code>client.translations.<a href="/src/api/resources/translations/client/Client.ts">translate</a>({ ...params }) -> MavenAGI.TranslationResponse</code></summary>
|
|
1562
|
+
<dl>
|
|
1563
|
+
<dd>
|
|
1564
|
+
|
|
1565
|
+
#### 📝 Description
|
|
1566
|
+
|
|
1567
|
+
<dl>
|
|
1568
|
+
<dd>
|
|
1569
|
+
|
|
1570
|
+
<dl>
|
|
1571
|
+
<dd>
|
|
1572
|
+
|
|
1573
|
+
Translate text from one language to another
|
|
1574
|
+
|
|
1575
|
+
</dd>
|
|
1576
|
+
</dl>
|
|
1577
|
+
</dd>
|
|
1578
|
+
</dl>
|
|
1579
|
+
|
|
1580
|
+
#### 🔌 Usage
|
|
1581
|
+
|
|
1582
|
+
<dl>
|
|
1583
|
+
<dd>
|
|
1584
|
+
|
|
1585
|
+
<dl>
|
|
1586
|
+
<dd>
|
|
1587
|
+
|
|
1588
|
+
```typescript
|
|
1589
|
+
await client.translations.translate({
|
|
1590
|
+
text: "Hello world",
|
|
1591
|
+
targetLanguage: "es",
|
|
1592
|
+
});
|
|
1593
|
+
```
|
|
1594
|
+
|
|
1595
|
+
</dd>
|
|
1596
|
+
</dl>
|
|
1597
|
+
</dd>
|
|
1598
|
+
</dl>
|
|
1599
|
+
|
|
1600
|
+
#### ⚙️ Parameters
|
|
1601
|
+
|
|
1602
|
+
<dl>
|
|
1603
|
+
<dd>
|
|
1604
|
+
|
|
1605
|
+
<dl>
|
|
1606
|
+
<dd>
|
|
1607
|
+
|
|
1608
|
+
**request:** `MavenAGI.TranslationRequest`
|
|
1609
|
+
|
|
1610
|
+
</dd>
|
|
1611
|
+
</dl>
|
|
1612
|
+
|
|
1613
|
+
<dl>
|
|
1614
|
+
<dd>
|
|
1615
|
+
|
|
1616
|
+
**requestOptions:** `Translations.RequestOptions`
|
|
1617
|
+
|
|
1618
|
+
</dd>
|
|
1619
|
+
</dl>
|
|
1620
|
+
</dd>
|
|
1621
|
+
</dl>
|
|
1622
|
+
|
|
1623
|
+
</dd>
|
|
1624
|
+
</dl>
|
|
1625
|
+
</details>
|
|
1626
|
+
|
|
1559
1627
|
## Triggers
|
|
1560
1628
|
|
|
1561
1629
|
<details><summary><code>client.triggers.<a href="/src/api/resources/triggers/client/Client.ts">createOrUpdate</a>({ ...params }) -> MavenAGI.EventTriggerResponse</code></summary>
|
|
@@ -6,4 +6,5 @@ import { Source } from "./Source";
|
|
|
6
6
|
export const BotResponseMetadata = core.serialization.object({
|
|
7
7
|
followupQuestions: core.serialization.list(core.serialization.string()),
|
|
8
8
|
sources: core.serialization.list(Source),
|
|
9
|
+
language: core.serialization.string().optional(),
|
|
9
10
|
});
|
|
@@ -6,6 +6,8 @@ export * as conversation from "./conversation";
|
|
|
6
6
|
export * from "./conversation/types";
|
|
7
7
|
export * as knowledge from "./knowledge";
|
|
8
8
|
export * from "./knowledge/types";
|
|
9
|
+
export * as translations from "./translations";
|
|
10
|
+
export * from "./translations/types";
|
|
9
11
|
export * as triggers from "./triggers";
|
|
10
12
|
export * from "./triggers/types";
|
|
11
13
|
export * as appSettings from "./appSettings";
|
|
@@ -6,6 +6,8 @@ export * as conversation from "./conversation";
|
|
|
6
6
|
export * from "./conversation/types";
|
|
7
7
|
export * as knowledge from "./knowledge";
|
|
8
8
|
export * from "./knowledge/types";
|
|
9
|
+
export * as translations from "./translations";
|
|
10
|
+
export * from "./translations/types";
|
|
9
11
|
export * as triggers from "./triggers";
|
|
10
12
|
export * from "./triggers/types";
|
|
11
13
|
export * as appSettings from "./appSettings";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./types";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./types";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const TranslationRequest: core.serialization.ObjectSchema<serializers.TranslationRequest.Raw, MavenAGI.TranslationRequest>;
|
|
8
|
+
export declare namespace TranslationRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
text: string;
|
|
11
|
+
targetLanguage: string;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../core";
|
|
5
|
+
export const TranslationRequest = core.serialization.object({
|
|
6
|
+
text: core.serialization.string(),
|
|
7
|
+
targetLanguage: core.serialization.string(),
|
|
8
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as MavenAGI from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const TranslationResponse: core.serialization.ObjectSchema<serializers.TranslationResponse.Raw, MavenAGI.TranslationResponse>;
|
|
8
|
+
export declare namespace TranslationResponse {
|
|
9
|
+
interface Raw {
|
|
10
|
+
translatedText: string;
|
|
11
|
+
}
|
|
12
|
+
}
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.0-alpha.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.0-alpha.28";
|
package/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.0.0-alpha.
|
|
1
|
+
export const SDK_VERSION = "0.0.0-alpha.28";
|