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.
Files changed (82) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +5 -0
  3. package/api/resources/actions/client/Client.js +6 -6
  4. package/api/resources/appSettings/client/Client.js +2 -2
  5. package/api/resources/conversation/client/Client.js +20 -20
  6. package/api/resources/conversation/types/BotResponseMetadata.d.ts +2 -0
  7. package/api/resources/conversation/types/UserMessage.d.ts +2 -0
  8. package/api/resources/index.d.ts +2 -0
  9. package/api/resources/index.js +2 -0
  10. package/api/resources/knowledge/client/Client.js +14 -14
  11. package/api/resources/translations/client/Client.d.ts +52 -0
  12. package/api/resources/translations/client/Client.js +130 -0
  13. package/api/resources/translations/client/index.d.ts +1 -0
  14. package/api/resources/translations/client/index.js +1 -0
  15. package/api/resources/translations/index.d.ts +2 -0
  16. package/api/resources/translations/index.js +2 -0
  17. package/api/resources/translations/types/TranslationRequest.d.ts +16 -0
  18. package/api/resources/translations/types/TranslationRequest.js +4 -0
  19. package/api/resources/translations/types/TranslationResponse.d.ts +13 -0
  20. package/api/resources/translations/types/TranslationResponse.js +4 -0
  21. package/api/resources/translations/types/index.d.ts +2 -0
  22. package/api/resources/translations/types/index.js +2 -0
  23. package/api/resources/triggers/client/Client.js +6 -6
  24. package/api/resources/users/client/Client.js +4 -4
  25. package/dist/Client.d.ts +3 -0
  26. package/dist/Client.js +5 -0
  27. package/dist/api/resources/actions/client/Client.js +6 -6
  28. package/dist/api/resources/appSettings/client/Client.js +2 -2
  29. package/dist/api/resources/conversation/client/Client.js +20 -20
  30. package/dist/api/resources/conversation/types/BotResponseMetadata.d.ts +2 -0
  31. package/dist/api/resources/conversation/types/UserMessage.d.ts +2 -0
  32. package/dist/api/resources/index.d.ts +2 -0
  33. package/dist/api/resources/index.js +2 -0
  34. package/dist/api/resources/knowledge/client/Client.js +14 -14
  35. package/dist/api/resources/translations/client/Client.d.ts +52 -0
  36. package/dist/api/resources/translations/client/Client.js +130 -0
  37. package/dist/api/resources/translations/client/index.d.ts +1 -0
  38. package/dist/api/resources/translations/client/index.js +1 -0
  39. package/dist/api/resources/translations/index.d.ts +2 -0
  40. package/dist/api/resources/translations/index.js +2 -0
  41. package/dist/api/resources/translations/types/TranslationRequest.d.ts +16 -0
  42. package/dist/api/resources/translations/types/TranslationRequest.js +4 -0
  43. package/dist/api/resources/translations/types/TranslationResponse.d.ts +13 -0
  44. package/dist/api/resources/translations/types/TranslationResponse.js +4 -0
  45. package/dist/api/resources/translations/types/index.d.ts +2 -0
  46. package/dist/api/resources/translations/types/index.js +2 -0
  47. package/dist/api/resources/triggers/client/Client.js +6 -6
  48. package/dist/api/resources/users/client/Client.js +4 -4
  49. package/dist/serialization/resources/conversation/types/BotResponseMetadata.d.ts +1 -0
  50. package/dist/serialization/resources/conversation/types/BotResponseMetadata.js +1 -0
  51. package/dist/serialization/resources/conversation/types/UserMessage.d.ts +1 -0
  52. package/dist/serialization/resources/conversation/types/UserMessage.js +1 -0
  53. package/dist/serialization/resources/index.d.ts +2 -0
  54. package/dist/serialization/resources/index.js +2 -0
  55. package/dist/serialization/resources/translations/index.d.ts +1 -0
  56. package/dist/serialization/resources/translations/index.js +1 -0
  57. package/dist/serialization/resources/translations/types/TranslationRequest.d.ts +13 -0
  58. package/dist/serialization/resources/translations/types/TranslationRequest.js +8 -0
  59. package/dist/serialization/resources/translations/types/TranslationResponse.d.ts +12 -0
  60. package/dist/serialization/resources/translations/types/TranslationResponse.js +7 -0
  61. package/dist/serialization/resources/translations/types/index.d.ts +2 -0
  62. package/dist/serialization/resources/translations/types/index.js +2 -0
  63. package/dist/version.d.ts +1 -1
  64. package/dist/version.js +1 -1
  65. package/package.json +1 -1
  66. package/reference.md +68 -0
  67. package/serialization/resources/conversation/types/BotResponseMetadata.d.ts +1 -0
  68. package/serialization/resources/conversation/types/BotResponseMetadata.js +1 -0
  69. package/serialization/resources/conversation/types/UserMessage.d.ts +1 -0
  70. package/serialization/resources/conversation/types/UserMessage.js +1 -0
  71. package/serialization/resources/index.d.ts +2 -0
  72. package/serialization/resources/index.js +2 -0
  73. package/serialization/resources/translations/index.d.ts +1 -0
  74. package/serialization/resources/translations/index.js +1 -0
  75. package/serialization/resources/translations/types/TranslationRequest.d.ts +13 -0
  76. package/serialization/resources/translations/types/TranslationRequest.js +8 -0
  77. package/serialization/resources/translations/types/TranslationResponse.d.ts +12 -0
  78. package/serialization/resources/translations/types/TranslationResponse.js +7 -0
  79. package/serialization/resources/translations/types/index.d.ts +2 -0
  80. package/serialization/resources/translations/types/index.js +2 -0
  81. package/version.d.ts +1 -1
  82. 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
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as core from "../../../../core";
5
+ export const TranslationResponse = core.serialization.object({
6
+ translatedText: core.serialization.string(),
7
+ });
@@ -0,0 +1,2 @@
1
+ export * from "./TranslationRequest";
2
+ export * from "./TranslationResponse";
@@ -0,0 +1,2 @@
1
+ export * from "./TranslationRequest";
2
+ export * from "./TranslationResponse";
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.0-alpha.27";
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.27";
1
+ export const SDK_VERSION = "0.0.0-alpha.28";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mavenagi",
3
- "version": "0.0.0-alpha.27",
3
+ "version": "0.0.0-alpha.28",
4
4
  "private": false,
5
5
  "repository": "https://github.com/mavenagi/mavenagi-node",
6
6
  "main": "./index.js",
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>
@@ -10,5 +10,6 @@ export declare namespace BotResponseMetadata {
10
10
  interface Raw {
11
11
  followupQuestions: string[];
12
12
  sources: Source.Raw[];
13
+ language?: string | null;
13
14
  }
14
15
  }
@@ -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
  });
@@ -10,5 +10,6 @@ export declare const UserMessage: core.serialization.ObjectSchema<serializers.Us
10
10
  export declare namespace UserMessage {
11
11
  interface Raw extends UserMessageBase.Raw {
12
12
  conversationMessageId: EntityId.Raw;
13
+ language?: string | null;
13
14
  }
14
15
  }
@@ -7,5 +7,6 @@ import { UserMessageBase } from "./UserMessageBase";
7
7
  export const UserMessage = core.serialization
8
8
  .object({
9
9
  conversationMessageId: EntityId,
10
+ language: core.serialization.string().optional(),
10
11
  })
11
12
  .extend(UserMessageBase);
@@ -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
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as core from "../../../../core";
5
+ export const TranslationResponse = core.serialization.object({
6
+ translatedText: core.serialization.string(),
7
+ });
@@ -0,0 +1,2 @@
1
+ export * from "./TranslationRequest";
2
+ export * from "./TranslationResponse";
@@ -0,0 +1,2 @@
1
+ export * from "./TranslationRequest";
2
+ export * from "./TranslationResponse";
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.0-alpha.27";
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.27";
1
+ export const SDK_VERSION = "0.0.0-alpha.28";