mavenagi 1.0.3 → 1.0.4

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 (59) hide show
  1. package/api/resources/actions/client/Client.js +6 -6
  2. package/api/resources/actions/types/ActionParameter.d.ts +3 -0
  3. package/api/resources/appSettings/client/Client.js +2 -2
  4. package/api/resources/commons/types/ActionParameterType.d.ts +9 -0
  5. package/api/resources/commons/types/ActionParameterType.js +8 -0
  6. package/api/resources/commons/types/EntityType.d.ts +2 -2
  7. package/api/resources/commons/types/EntityType.js +1 -1
  8. package/api/resources/commons/types/index.d.ts +1 -0
  9. package/api/resources/commons/types/index.js +1 -0
  10. package/api/resources/conversation/client/Client.js +20 -20
  11. package/api/resources/conversation/types/ActionFormField.d.ts +3 -1
  12. package/api/resources/conversation/types/Capability.d.ts +1 -13
  13. package/api/resources/conversation/types/ResponseConfig.d.ts +11 -1
  14. package/api/resources/knowledge/client/Client.js +14 -14
  15. package/api/resources/translations/client/Client.js +2 -2
  16. package/api/resources/triggers/client/Client.js +6 -6
  17. package/api/resources/users/client/Client.js +4 -4
  18. package/dist/api/resources/actions/client/Client.js +6 -6
  19. package/dist/api/resources/actions/types/ActionParameter.d.ts +3 -0
  20. package/dist/api/resources/appSettings/client/Client.js +2 -2
  21. package/dist/api/resources/commons/types/ActionParameterType.d.ts +9 -0
  22. package/dist/api/resources/commons/types/ActionParameterType.js +8 -0
  23. package/dist/api/resources/commons/types/EntityType.d.ts +2 -2
  24. package/dist/api/resources/commons/types/EntityType.js +1 -1
  25. package/dist/api/resources/commons/types/index.d.ts +1 -0
  26. package/dist/api/resources/commons/types/index.js +1 -0
  27. package/dist/api/resources/conversation/client/Client.js +20 -20
  28. package/dist/api/resources/conversation/types/ActionFormField.d.ts +3 -1
  29. package/dist/api/resources/conversation/types/Capability.d.ts +1 -13
  30. package/dist/api/resources/conversation/types/ResponseConfig.d.ts +11 -1
  31. package/dist/api/resources/knowledge/client/Client.js +14 -14
  32. package/dist/api/resources/translations/client/Client.js +2 -2
  33. package/dist/api/resources/triggers/client/Client.js +6 -6
  34. package/dist/api/resources/users/client/Client.js +4 -4
  35. package/dist/serialization/resources/actions/types/ActionParameter.d.ts +2 -0
  36. package/dist/serialization/resources/actions/types/ActionParameter.js +2 -0
  37. package/dist/serialization/resources/commons/types/ActionParameterType.d.ts +10 -0
  38. package/dist/serialization/resources/commons/types/ActionParameterType.js +5 -0
  39. package/dist/serialization/resources/commons/types/EntityType.d.ts +1 -1
  40. package/dist/serialization/resources/commons/types/EntityType.js +1 -1
  41. package/dist/serialization/resources/commons/types/index.d.ts +1 -0
  42. package/dist/serialization/resources/commons/types/index.js +1 -0
  43. package/dist/serialization/resources/conversation/types/ActionFormField.d.ts +3 -1
  44. package/dist/serialization/resources/conversation/types/ActionFormField.js +3 -1
  45. package/dist/version.d.ts +1 -1
  46. package/dist/version.js +1 -1
  47. package/package.json +1 -1
  48. package/serialization/resources/actions/types/ActionParameter.d.ts +2 -0
  49. package/serialization/resources/actions/types/ActionParameter.js +2 -0
  50. package/serialization/resources/commons/types/ActionParameterType.d.ts +10 -0
  51. package/serialization/resources/commons/types/ActionParameterType.js +5 -0
  52. package/serialization/resources/commons/types/EntityType.d.ts +1 -1
  53. package/serialization/resources/commons/types/EntityType.js +1 -1
  54. package/serialization/resources/commons/types/index.d.ts +1 -0
  55. package/serialization/resources/commons/types/index.js +1 -0
  56. package/serialization/resources/conversation/types/ActionFormField.d.ts +3 -1
  57. package/serialization/resources/conversation/types/ActionFormField.js +3 -1
  58. package/version.d.ts +1 -1
  59. package/version.js +1 -1
@@ -64,8 +64,8 @@ export class Actions {
64
64
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
65
65
  "X-Fern-Language": "JavaScript",
66
66
  "X-Fern-SDK-Name": "mavenagi",
67
- "X-Fern-SDK-Version": "1.0.3",
68
- "User-Agent": "mavenagi/1.0.3",
67
+ "X-Fern-SDK-Version": "1.0.4",
68
+ "User-Agent": "mavenagi/1.0.4",
69
69
  "X-Fern-Runtime": core.RUNTIME.type,
70
70
  "X-Fern-Runtime-Version": core.RUNTIME.version,
71
71
  },
@@ -154,8 +154,8 @@ export class Actions {
154
154
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
155
155
  "X-Fern-Language": "JavaScript",
156
156
  "X-Fern-SDK-Name": "mavenagi",
157
- "X-Fern-SDK-Version": "1.0.3",
158
- "User-Agent": "mavenagi/1.0.3",
157
+ "X-Fern-SDK-Version": "1.0.4",
158
+ "User-Agent": "mavenagi/1.0.4",
159
159
  "X-Fern-Runtime": core.RUNTIME.type,
160
160
  "X-Fern-Runtime-Version": core.RUNTIME.version,
161
161
  },
@@ -243,8 +243,8 @@ export class Actions {
243
243
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
244
244
  "X-Fern-Language": "JavaScript",
245
245
  "X-Fern-SDK-Name": "mavenagi",
246
- "X-Fern-SDK-Version": "1.0.3",
247
- "User-Agent": "mavenagi/1.0.3",
246
+ "X-Fern-SDK-Version": "1.0.4",
247
+ "User-Agent": "mavenagi/1.0.4",
248
248
  "X-Fern-Runtime": core.RUNTIME.type,
249
249
  "X-Fern-Runtime-Version": core.RUNTIME.version,
250
250
  },
@@ -1,9 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as MavenAGI from "../../../index";
4
5
  export interface ActionParameter {
5
6
  id: string;
6
7
  label: string;
7
8
  description: string;
8
9
  required: boolean;
10
+ /** The parameter type. Values provided to executeAction will conform to this type. Defaults to STRING. */
11
+ type?: MavenAGI.ActionParameterType;
9
12
  }
@@ -44,8 +44,8 @@ export class AppSettings {
44
44
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
45
45
  "X-Fern-Language": "JavaScript",
46
46
  "X-Fern-SDK-Name": "mavenagi",
47
- "X-Fern-SDK-Version": "1.0.3",
48
- "User-Agent": "mavenagi/1.0.3",
47
+ "X-Fern-SDK-Version": "1.0.4",
48
+ "User-Agent": "mavenagi/1.0.4",
49
49
  "X-Fern-Runtime": core.RUNTIME.type,
50
50
  "X-Fern-Runtime-Version": core.RUNTIME.version,
51
51
  },
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type ActionParameterType = "STRING" | "BOOLEAN" | "NUMBER";
5
+ export declare const ActionParameterType: {
6
+ readonly String: "STRING";
7
+ readonly Boolean: "BOOLEAN";
8
+ readonly Number: "NUMBER";
9
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export const ActionParameterType = {
5
+ String: "STRING",
6
+ Boolean: "BOOLEAN",
7
+ Number: "NUMBER",
8
+ };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type EntityType = "CONVERSATION" | "CONVERSATION_MESSAGE" | "KNOWLEDGE_BASE" | "KNOWLEDGE_DOCUMENT" | "ACTION" | "USER" | "USER_EVENT" | "EVENT_TRIGGER" | "USER_PROFILE" | "FEEDBACK";
4
+ export declare type EntityType = "CONVERSATION" | "CONVERSATION_MESSAGE" | "KNOWLEDGE_BASE" | "KNOWLEDGE_DOCUMENT" | "ACTION" | "USER" | "EVENT" | "EVENT_TRIGGER" | "USER_PROFILE" | "FEEDBACK";
5
5
  export declare const EntityType: {
6
6
  readonly Conversation: "CONVERSATION";
7
7
  readonly ConversationMessage: "CONVERSATION_MESSAGE";
@@ -9,7 +9,7 @@ export declare const EntityType: {
9
9
  readonly KnowledgeDocument: "KNOWLEDGE_DOCUMENT";
10
10
  readonly Action: "ACTION";
11
11
  readonly User: "USER";
12
- readonly UserEvent: "USER_EVENT";
12
+ readonly Event: "EVENT";
13
13
  readonly EventTrigger: "EVENT_TRIGGER";
14
14
  readonly UserProfile: "USER_PROFILE";
15
15
  readonly Feedback: "FEEDBACK";
@@ -8,7 +8,7 @@ export const EntityType = {
8
8
  KnowledgeDocument: "KNOWLEDGE_DOCUMENT",
9
9
  Action: "ACTION",
10
10
  User: "USER",
11
- UserEvent: "USER_EVENT",
11
+ Event: "EVENT",
12
12
  EventTrigger: "EVENT_TRIGGER",
13
13
  UserProfile: "USER_PROFILE",
14
14
  Feedback: "FEEDBACK",
@@ -15,3 +15,4 @@ export * from "./AppUserResponse";
15
15
  export * from "./EventTriggerBase";
16
16
  export * from "./EventTriggerResponse";
17
17
  export * from "./EventTriggerType";
18
+ export * from "./ActionParameterType";
@@ -15,3 +15,4 @@ export * from "./AppUserResponse";
15
15
  export * from "./EventTriggerBase";
16
16
  export * from "./EventTriggerResponse";
17
17
  export * from "./EventTriggerType";
18
+ export * from "./ActionParameterType";
@@ -58,8 +58,8 @@ export class Conversation {
58
58
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
59
59
  "X-Fern-Language": "JavaScript",
60
60
  "X-Fern-SDK-Name": "mavenagi",
61
- "X-Fern-SDK-Version": "1.0.3",
62
- "User-Agent": "mavenagi/1.0.3",
61
+ "X-Fern-SDK-Version": "1.0.4",
62
+ "User-Agent": "mavenagi/1.0.4",
63
63
  "X-Fern-Runtime": core.RUNTIME.type,
64
64
  "X-Fern-Runtime-Version": core.RUNTIME.version,
65
65
  },
@@ -154,8 +154,8 @@ export class Conversation {
154
154
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
155
155
  "X-Fern-Language": "JavaScript",
156
156
  "X-Fern-SDK-Name": "mavenagi",
157
- "X-Fern-SDK-Version": "1.0.3",
158
- "User-Agent": "mavenagi/1.0.3",
157
+ "X-Fern-SDK-Version": "1.0.4",
158
+ "User-Agent": "mavenagi/1.0.4",
159
159
  "X-Fern-Runtime": core.RUNTIME.type,
160
160
  "X-Fern-Runtime-Version": core.RUNTIME.version,
161
161
  },
@@ -253,8 +253,8 @@ export class Conversation {
253
253
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
254
254
  "X-Fern-Language": "JavaScript",
255
255
  "X-Fern-SDK-Name": "mavenagi",
256
- "X-Fern-SDK-Version": "1.0.3",
257
- "User-Agent": "mavenagi/1.0.3",
256
+ "X-Fern-SDK-Version": "1.0.4",
257
+ "User-Agent": "mavenagi/1.0.4",
258
258
  "X-Fern-Runtime": core.RUNTIME.type,
259
259
  "X-Fern-Runtime-Version": core.RUNTIME.version,
260
260
  },
@@ -358,8 +358,8 @@ export class Conversation {
358
358
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
359
359
  "X-Fern-Language": "JavaScript",
360
360
  "X-Fern-SDK-Name": "mavenagi",
361
- "X-Fern-SDK-Version": "1.0.3",
362
- "User-Agent": "mavenagi/1.0.3",
361
+ "X-Fern-SDK-Version": "1.0.4",
362
+ "User-Agent": "mavenagi/1.0.4",
363
363
  "X-Fern-Runtime": core.RUNTIME.type,
364
364
  "X-Fern-Runtime-Version": core.RUNTIME.version,
365
365
  },
@@ -438,8 +438,8 @@ export class Conversation {
438
438
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
439
439
  "X-Fern-Language": "JavaScript",
440
440
  "X-Fern-SDK-Name": "mavenagi",
441
- "X-Fern-SDK-Version": "1.0.3",
442
- "User-Agent": "mavenagi/1.0.3",
441
+ "X-Fern-SDK-Version": "1.0.4",
442
+ "User-Agent": "mavenagi/1.0.4",
443
443
  "X-Fern-Runtime": core.RUNTIME.type,
444
444
  "X-Fern-Runtime-Version": core.RUNTIME.version,
445
445
  },
@@ -546,8 +546,8 @@ export class Conversation {
546
546
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
547
547
  "X-Fern-Language": "JavaScript",
548
548
  "X-Fern-SDK-Name": "mavenagi",
549
- "X-Fern-SDK-Version": "1.0.3",
550
- "User-Agent": "mavenagi/1.0.3",
549
+ "X-Fern-SDK-Version": "1.0.4",
550
+ "User-Agent": "mavenagi/1.0.4",
551
551
  "X-Fern-Runtime": core.RUNTIME.type,
552
552
  "X-Fern-Runtime-Version": core.RUNTIME.version,
553
553
  },
@@ -636,8 +636,8 @@ export class Conversation {
636
636
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
637
637
  "X-Fern-Language": "JavaScript",
638
638
  "X-Fern-SDK-Name": "mavenagi",
639
- "X-Fern-SDK-Version": "1.0.3",
640
- "User-Agent": "mavenagi/1.0.3",
639
+ "X-Fern-SDK-Version": "1.0.4",
640
+ "User-Agent": "mavenagi/1.0.4",
641
641
  "X-Fern-Runtime": core.RUNTIME.type,
642
642
  "X-Fern-Runtime-Version": core.RUNTIME.version,
643
643
  },
@@ -740,8 +740,8 @@ export class Conversation {
740
740
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
741
741
  "X-Fern-Language": "JavaScript",
742
742
  "X-Fern-SDK-Name": "mavenagi",
743
- "X-Fern-SDK-Version": "1.0.3",
744
- "User-Agent": "mavenagi/1.0.3",
743
+ "X-Fern-SDK-Version": "1.0.4",
744
+ "User-Agent": "mavenagi/1.0.4",
745
745
  "X-Fern-Runtime": core.RUNTIME.type,
746
746
  "X-Fern-Runtime-Version": core.RUNTIME.version,
747
747
  },
@@ -838,8 +838,8 @@ export class Conversation {
838
838
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
839
839
  "X-Fern-Language": "JavaScript",
840
840
  "X-Fern-SDK-Name": "mavenagi",
841
- "X-Fern-SDK-Version": "1.0.3",
842
- "User-Agent": "mavenagi/1.0.3",
841
+ "X-Fern-SDK-Version": "1.0.4",
842
+ "User-Agent": "mavenagi/1.0.4",
843
843
  "X-Fern-Runtime": core.RUNTIME.type,
844
844
  "X-Fern-Runtime-Version": core.RUNTIME.version,
845
845
  },
@@ -931,8 +931,8 @@ export class Conversation {
931
931
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
932
932
  "X-Fern-Language": "JavaScript",
933
933
  "X-Fern-SDK-Name": "mavenagi",
934
- "X-Fern-SDK-Version": "1.0.3",
935
- "User-Agent": "mavenagi/1.0.3",
934
+ "X-Fern-SDK-Version": "1.0.4",
935
+ "User-Agent": "mavenagi/1.0.4",
936
936
  "X-Fern-Runtime": core.RUNTIME.type,
937
937
  "X-Fern-Runtime-Version": core.RUNTIME.version,
938
938
  },
@@ -1,10 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as MavenAGI from "../../../index";
4
5
  export interface ActionFormField {
5
6
  id: string;
6
7
  label: string;
7
8
  description: string;
8
9
  required: boolean;
9
- suggestion?: string;
10
+ suggestion?: unknown;
11
+ type: MavenAGI.ActionParameterType;
10
12
  }
@@ -1,19 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type Capability =
5
- /**
6
- * Whether the response should include markdown formatting. If not provided, the response will be plain text. Not respected while streaming. */
7
- "MARKDOWN"
8
- /**
9
- * Whether the response should include forms. Not yet supported. */
10
- | "FORMS"
11
- /**
12
- * Whether the response should include images. Not yet supported. */
13
- | "IMAGES"
14
- /**
15
- * Whether the response should include a Highcharts typescript chart if applicable. */
16
- | "CHARTS_HIGHCHARTS_TS";
4
+ export declare type Capability = "MARKDOWN" | "FORMS" | "IMAGES" | "CHARTS_HIGHCHARTS_TS";
17
5
  export declare const Capability: {
18
6
  readonly Markdown: "MARKDOWN";
19
7
  readonly Forms: "FORMS";
@@ -3,7 +3,17 @@
3
3
  */
4
4
  import * as MavenAGI from "../../../index";
5
5
  export interface ResponseConfig {
6
- /** List of capabilities supported by the caller. Defaults to everything except charts_highcharts_ts. Note that the forms and images capabilities are not respected at this time. */
6
+ /**
7
+ * List of capabilities supported by the caller. Defaults to [MARKDOWN, FORMS, IMAGES].
8
+ *
9
+ * MARKDOWN: Whether the response should include markdown formatting. If not provided, the response will be plain text. Not respected while streaming.
10
+ *
11
+ * FORMS: Whether the response should include forms. If provided, the caller needs to render action forms when returned from the ask API and allow submission of the forms with the submitActionForm API. If not provided, then actions which require user interaction will not be considered by the LLM. Removing this capability is recommended for surfaces which can not display UI (e.g. SMS, voice).
12
+ *
13
+ * IMAGES: Whether the response should include images. Not yet supported.
14
+ *
15
+ * CHARTS_HIGHCHARTS_TS: Whether the response should include a Highcharts typescript chart if applicable.
16
+ */
7
17
  capabilities: MavenAGI.Capability[];
8
18
  /** Whether the response is for an human agent (true) or an end user (false). Defaults to false. */
9
19
  isCopilot: boolean;
@@ -51,8 +51,8 @@ export class Knowledge {
51
51
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
52
52
  "X-Fern-Language": "JavaScript",
53
53
  "X-Fern-SDK-Name": "mavenagi",
54
- "X-Fern-SDK-Version": "1.0.3",
55
- "User-Agent": "mavenagi/1.0.3",
54
+ "X-Fern-SDK-Version": "1.0.4",
55
+ "User-Agent": "mavenagi/1.0.4",
56
56
  "X-Fern-Runtime": core.RUNTIME.type,
57
57
  "X-Fern-Runtime-Version": core.RUNTIME.version,
58
58
  },
@@ -141,8 +141,8 @@ export class Knowledge {
141
141
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
142
142
  "X-Fern-Language": "JavaScript",
143
143
  "X-Fern-SDK-Name": "mavenagi",
144
- "X-Fern-SDK-Version": "1.0.3",
145
- "User-Agent": "mavenagi/1.0.3",
144
+ "X-Fern-SDK-Version": "1.0.4",
145
+ "User-Agent": "mavenagi/1.0.4",
146
146
  "X-Fern-Runtime": core.RUNTIME.type,
147
147
  "X-Fern-Runtime-Version": core.RUNTIME.version,
148
148
  },
@@ -233,8 +233,8 @@ export class Knowledge {
233
233
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
234
234
  "X-Fern-Language": "JavaScript",
235
235
  "X-Fern-SDK-Name": "mavenagi",
236
- "X-Fern-SDK-Version": "1.0.3",
237
- "User-Agent": "mavenagi/1.0.3",
236
+ "X-Fern-SDK-Version": "1.0.4",
237
+ "User-Agent": "mavenagi/1.0.4",
238
238
  "X-Fern-Runtime": core.RUNTIME.type,
239
239
  "X-Fern-Runtime-Version": core.RUNTIME.version,
240
240
  },
@@ -323,8 +323,8 @@ export class Knowledge {
323
323
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
324
324
  "X-Fern-Language": "JavaScript",
325
325
  "X-Fern-SDK-Name": "mavenagi",
326
- "X-Fern-SDK-Version": "1.0.3",
327
- "User-Agent": "mavenagi/1.0.3",
326
+ "X-Fern-SDK-Version": "1.0.4",
327
+ "User-Agent": "mavenagi/1.0.4",
328
328
  "X-Fern-Runtime": core.RUNTIME.type,
329
329
  "X-Fern-Runtime-Version": core.RUNTIME.version,
330
330
  },
@@ -415,8 +415,8 @@ export class Knowledge {
415
415
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
416
416
  "X-Fern-Language": "JavaScript",
417
417
  "X-Fern-SDK-Name": "mavenagi",
418
- "X-Fern-SDK-Version": "1.0.3",
419
- "User-Agent": "mavenagi/1.0.3",
418
+ "X-Fern-SDK-Version": "1.0.4",
419
+ "User-Agent": "mavenagi/1.0.4",
420
420
  "X-Fern-Runtime": core.RUNTIME.type,
421
421
  "X-Fern-Runtime-Version": core.RUNTIME.version,
422
422
  },
@@ -513,8 +513,8 @@ export class Knowledge {
513
513
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
514
514
  "X-Fern-Language": "JavaScript",
515
515
  "X-Fern-SDK-Name": "mavenagi",
516
- "X-Fern-SDK-Version": "1.0.3",
517
- "User-Agent": "mavenagi/1.0.3",
516
+ "X-Fern-SDK-Version": "1.0.4",
517
+ "User-Agent": "mavenagi/1.0.4",
518
518
  "X-Fern-Runtime": core.RUNTIME.type,
519
519
  "X-Fern-Runtime-Version": core.RUNTIME.version,
520
520
  },
@@ -604,8 +604,8 @@ export class Knowledge {
604
604
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
605
605
  "X-Fern-Language": "JavaScript",
606
606
  "X-Fern-SDK-Name": "mavenagi",
607
- "X-Fern-SDK-Version": "1.0.3",
608
- "User-Agent": "mavenagi/1.0.3",
607
+ "X-Fern-SDK-Version": "1.0.4",
608
+ "User-Agent": "mavenagi/1.0.4",
609
609
  "X-Fern-Runtime": core.RUNTIME.type,
610
610
  "X-Fern-Runtime-Version": core.RUNTIME.version,
611
611
  },
@@ -48,8 +48,8 @@ export class Translations {
48
48
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
49
49
  "X-Fern-Language": "JavaScript",
50
50
  "X-Fern-SDK-Name": "mavenagi",
51
- "X-Fern-SDK-Version": "1.0.3",
52
- "User-Agent": "mavenagi/1.0.3",
51
+ "X-Fern-SDK-Version": "1.0.4",
52
+ "User-Agent": "mavenagi/1.0.4",
53
53
  "X-Fern-Runtime": core.RUNTIME.type,
54
54
  "X-Fern-Runtime-Version": core.RUNTIME.version,
55
55
  },
@@ -51,8 +51,8 @@ export class Triggers {
51
51
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
52
52
  "X-Fern-Language": "JavaScript",
53
53
  "X-Fern-SDK-Name": "mavenagi",
54
- "X-Fern-SDK-Version": "1.0.3",
55
- "User-Agent": "mavenagi/1.0.3",
54
+ "X-Fern-SDK-Version": "1.0.4",
55
+ "User-Agent": "mavenagi/1.0.4",
56
56
  "X-Fern-Runtime": core.RUNTIME.type,
57
57
  "X-Fern-Runtime-Version": core.RUNTIME.version,
58
58
  },
@@ -141,8 +141,8 @@ export class Triggers {
141
141
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
142
142
  "X-Fern-Language": "JavaScript",
143
143
  "X-Fern-SDK-Name": "mavenagi",
144
- "X-Fern-SDK-Version": "1.0.3",
145
- "User-Agent": "mavenagi/1.0.3",
144
+ "X-Fern-SDK-Version": "1.0.4",
145
+ "User-Agent": "mavenagi/1.0.4",
146
146
  "X-Fern-Runtime": core.RUNTIME.type,
147
147
  "X-Fern-Runtime-Version": core.RUNTIME.version,
148
148
  },
@@ -230,8 +230,8 @@ export class Triggers {
230
230
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
231
231
  "X-Fern-Language": "JavaScript",
232
232
  "X-Fern-SDK-Name": "mavenagi",
233
- "X-Fern-SDK-Version": "1.0.3",
234
- "User-Agent": "mavenagi/1.0.3",
233
+ "X-Fern-SDK-Version": "1.0.4",
234
+ "User-Agent": "mavenagi/1.0.4",
235
235
  "X-Fern-Runtime": core.RUNTIME.type,
236
236
  "X-Fern-Runtime-Version": core.RUNTIME.version,
237
237
  },
@@ -59,8 +59,8 @@ export class Users {
59
59
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
60
60
  "X-Fern-Language": "JavaScript",
61
61
  "X-Fern-SDK-Name": "mavenagi",
62
- "X-Fern-SDK-Version": "1.0.3",
63
- "User-Agent": "mavenagi/1.0.3",
62
+ "X-Fern-SDK-Version": "1.0.4",
63
+ "User-Agent": "mavenagi/1.0.4",
64
64
  "X-Fern-Runtime": core.RUNTIME.type,
65
65
  "X-Fern-Runtime-Version": core.RUNTIME.version,
66
66
  },
@@ -149,8 +149,8 @@ export class Users {
149
149
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
150
150
  "X-Fern-Language": "JavaScript",
151
151
  "X-Fern-SDK-Name": "mavenagi",
152
- "X-Fern-SDK-Version": "1.0.3",
153
- "User-Agent": "mavenagi/1.0.3",
152
+ "X-Fern-SDK-Version": "1.0.4",
153
+ "User-Agent": "mavenagi/1.0.4",
154
154
  "X-Fern-Runtime": core.RUNTIME.type,
155
155
  "X-Fern-Runtime-Version": core.RUNTIME.version,
156
156
  },
@@ -64,8 +64,8 @@ export class Actions {
64
64
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
65
65
  "X-Fern-Language": "JavaScript",
66
66
  "X-Fern-SDK-Name": "mavenagi",
67
- "X-Fern-SDK-Version": "1.0.3",
68
- "User-Agent": "mavenagi/1.0.3",
67
+ "X-Fern-SDK-Version": "1.0.4",
68
+ "User-Agent": "mavenagi/1.0.4",
69
69
  "X-Fern-Runtime": core.RUNTIME.type,
70
70
  "X-Fern-Runtime-Version": core.RUNTIME.version,
71
71
  },
@@ -154,8 +154,8 @@ export class Actions {
154
154
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
155
155
  "X-Fern-Language": "JavaScript",
156
156
  "X-Fern-SDK-Name": "mavenagi",
157
- "X-Fern-SDK-Version": "1.0.3",
158
- "User-Agent": "mavenagi/1.0.3",
157
+ "X-Fern-SDK-Version": "1.0.4",
158
+ "User-Agent": "mavenagi/1.0.4",
159
159
  "X-Fern-Runtime": core.RUNTIME.type,
160
160
  "X-Fern-Runtime-Version": core.RUNTIME.version,
161
161
  },
@@ -243,8 +243,8 @@ export class Actions {
243
243
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
244
244
  "X-Fern-Language": "JavaScript",
245
245
  "X-Fern-SDK-Name": "mavenagi",
246
- "X-Fern-SDK-Version": "1.0.3",
247
- "User-Agent": "mavenagi/1.0.3",
246
+ "X-Fern-SDK-Version": "1.0.4",
247
+ "User-Agent": "mavenagi/1.0.4",
248
248
  "X-Fern-Runtime": core.RUNTIME.type,
249
249
  "X-Fern-Runtime-Version": core.RUNTIME.version,
250
250
  },
@@ -1,9 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as MavenAGI from "../../../index";
4
5
  export interface ActionParameter {
5
6
  id: string;
6
7
  label: string;
7
8
  description: string;
8
9
  required: boolean;
10
+ /** The parameter type. Values provided to executeAction will conform to this type. Defaults to STRING. */
11
+ type?: MavenAGI.ActionParameterType;
9
12
  }
@@ -44,8 +44,8 @@ export class AppSettings {
44
44
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
45
45
  "X-Fern-Language": "JavaScript",
46
46
  "X-Fern-SDK-Name": "mavenagi",
47
- "X-Fern-SDK-Version": "1.0.3",
48
- "User-Agent": "mavenagi/1.0.3",
47
+ "X-Fern-SDK-Version": "1.0.4",
48
+ "User-Agent": "mavenagi/1.0.4",
49
49
  "X-Fern-Runtime": core.RUNTIME.type,
50
50
  "X-Fern-Runtime-Version": core.RUNTIME.version,
51
51
  },
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type ActionParameterType = "STRING" | "BOOLEAN" | "NUMBER";
5
+ export declare const ActionParameterType: {
6
+ readonly String: "STRING";
7
+ readonly Boolean: "BOOLEAN";
8
+ readonly Number: "NUMBER";
9
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export const ActionParameterType = {
5
+ String: "STRING",
6
+ Boolean: "BOOLEAN",
7
+ Number: "NUMBER",
8
+ };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type EntityType = "CONVERSATION" | "CONVERSATION_MESSAGE" | "KNOWLEDGE_BASE" | "KNOWLEDGE_DOCUMENT" | "ACTION" | "USER" | "USER_EVENT" | "EVENT_TRIGGER" | "USER_PROFILE" | "FEEDBACK";
4
+ export declare type EntityType = "CONVERSATION" | "CONVERSATION_MESSAGE" | "KNOWLEDGE_BASE" | "KNOWLEDGE_DOCUMENT" | "ACTION" | "USER" | "EVENT" | "EVENT_TRIGGER" | "USER_PROFILE" | "FEEDBACK";
5
5
  export declare const EntityType: {
6
6
  readonly Conversation: "CONVERSATION";
7
7
  readonly ConversationMessage: "CONVERSATION_MESSAGE";
@@ -9,7 +9,7 @@ export declare const EntityType: {
9
9
  readonly KnowledgeDocument: "KNOWLEDGE_DOCUMENT";
10
10
  readonly Action: "ACTION";
11
11
  readonly User: "USER";
12
- readonly UserEvent: "USER_EVENT";
12
+ readonly Event: "EVENT";
13
13
  readonly EventTrigger: "EVENT_TRIGGER";
14
14
  readonly UserProfile: "USER_PROFILE";
15
15
  readonly Feedback: "FEEDBACK";
@@ -8,7 +8,7 @@ export const EntityType = {
8
8
  KnowledgeDocument: "KNOWLEDGE_DOCUMENT",
9
9
  Action: "ACTION",
10
10
  User: "USER",
11
- UserEvent: "USER_EVENT",
11
+ Event: "EVENT",
12
12
  EventTrigger: "EVENT_TRIGGER",
13
13
  UserProfile: "USER_PROFILE",
14
14
  Feedback: "FEEDBACK",
@@ -15,3 +15,4 @@ export * from "./AppUserResponse";
15
15
  export * from "./EventTriggerBase";
16
16
  export * from "./EventTriggerResponse";
17
17
  export * from "./EventTriggerType";
18
+ export * from "./ActionParameterType";
@@ -15,3 +15,4 @@ export * from "./AppUserResponse";
15
15
  export * from "./EventTriggerBase";
16
16
  export * from "./EventTriggerResponse";
17
17
  export * from "./EventTriggerType";
18
+ export * from "./ActionParameterType";
@@ -58,8 +58,8 @@ export class Conversation {
58
58
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
59
59
  "X-Fern-Language": "JavaScript",
60
60
  "X-Fern-SDK-Name": "mavenagi",
61
- "X-Fern-SDK-Version": "1.0.3",
62
- "User-Agent": "mavenagi/1.0.3",
61
+ "X-Fern-SDK-Version": "1.0.4",
62
+ "User-Agent": "mavenagi/1.0.4",
63
63
  "X-Fern-Runtime": core.RUNTIME.type,
64
64
  "X-Fern-Runtime-Version": core.RUNTIME.version,
65
65
  },
@@ -154,8 +154,8 @@ export class Conversation {
154
154
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
155
155
  "X-Fern-Language": "JavaScript",
156
156
  "X-Fern-SDK-Name": "mavenagi",
157
- "X-Fern-SDK-Version": "1.0.3",
158
- "User-Agent": "mavenagi/1.0.3",
157
+ "X-Fern-SDK-Version": "1.0.4",
158
+ "User-Agent": "mavenagi/1.0.4",
159
159
  "X-Fern-Runtime": core.RUNTIME.type,
160
160
  "X-Fern-Runtime-Version": core.RUNTIME.version,
161
161
  },
@@ -253,8 +253,8 @@ export class Conversation {
253
253
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
254
254
  "X-Fern-Language": "JavaScript",
255
255
  "X-Fern-SDK-Name": "mavenagi",
256
- "X-Fern-SDK-Version": "1.0.3",
257
- "User-Agent": "mavenagi/1.0.3",
256
+ "X-Fern-SDK-Version": "1.0.4",
257
+ "User-Agent": "mavenagi/1.0.4",
258
258
  "X-Fern-Runtime": core.RUNTIME.type,
259
259
  "X-Fern-Runtime-Version": core.RUNTIME.version,
260
260
  },
@@ -358,8 +358,8 @@ export class Conversation {
358
358
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
359
359
  "X-Fern-Language": "JavaScript",
360
360
  "X-Fern-SDK-Name": "mavenagi",
361
- "X-Fern-SDK-Version": "1.0.3",
362
- "User-Agent": "mavenagi/1.0.3",
361
+ "X-Fern-SDK-Version": "1.0.4",
362
+ "User-Agent": "mavenagi/1.0.4",
363
363
  "X-Fern-Runtime": core.RUNTIME.type,
364
364
  "X-Fern-Runtime-Version": core.RUNTIME.version,
365
365
  },
@@ -438,8 +438,8 @@ export class Conversation {
438
438
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
439
439
  "X-Fern-Language": "JavaScript",
440
440
  "X-Fern-SDK-Name": "mavenagi",
441
- "X-Fern-SDK-Version": "1.0.3",
442
- "User-Agent": "mavenagi/1.0.3",
441
+ "X-Fern-SDK-Version": "1.0.4",
442
+ "User-Agent": "mavenagi/1.0.4",
443
443
  "X-Fern-Runtime": core.RUNTIME.type,
444
444
  "X-Fern-Runtime-Version": core.RUNTIME.version,
445
445
  },
@@ -546,8 +546,8 @@ export class Conversation {
546
546
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
547
547
  "X-Fern-Language": "JavaScript",
548
548
  "X-Fern-SDK-Name": "mavenagi",
549
- "X-Fern-SDK-Version": "1.0.3",
550
- "User-Agent": "mavenagi/1.0.3",
549
+ "X-Fern-SDK-Version": "1.0.4",
550
+ "User-Agent": "mavenagi/1.0.4",
551
551
  "X-Fern-Runtime": core.RUNTIME.type,
552
552
  "X-Fern-Runtime-Version": core.RUNTIME.version,
553
553
  },
@@ -636,8 +636,8 @@ export class Conversation {
636
636
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
637
637
  "X-Fern-Language": "JavaScript",
638
638
  "X-Fern-SDK-Name": "mavenagi",
639
- "X-Fern-SDK-Version": "1.0.3",
640
- "User-Agent": "mavenagi/1.0.3",
639
+ "X-Fern-SDK-Version": "1.0.4",
640
+ "User-Agent": "mavenagi/1.0.4",
641
641
  "X-Fern-Runtime": core.RUNTIME.type,
642
642
  "X-Fern-Runtime-Version": core.RUNTIME.version,
643
643
  },
@@ -740,8 +740,8 @@ export class Conversation {
740
740
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
741
741
  "X-Fern-Language": "JavaScript",
742
742
  "X-Fern-SDK-Name": "mavenagi",
743
- "X-Fern-SDK-Version": "1.0.3",
744
- "User-Agent": "mavenagi/1.0.3",
743
+ "X-Fern-SDK-Version": "1.0.4",
744
+ "User-Agent": "mavenagi/1.0.4",
745
745
  "X-Fern-Runtime": core.RUNTIME.type,
746
746
  "X-Fern-Runtime-Version": core.RUNTIME.version,
747
747
  },
@@ -838,8 +838,8 @@ export class Conversation {
838
838
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
839
839
  "X-Fern-Language": "JavaScript",
840
840
  "X-Fern-SDK-Name": "mavenagi",
841
- "X-Fern-SDK-Version": "1.0.3",
842
- "User-Agent": "mavenagi/1.0.3",
841
+ "X-Fern-SDK-Version": "1.0.4",
842
+ "User-Agent": "mavenagi/1.0.4",
843
843
  "X-Fern-Runtime": core.RUNTIME.type,
844
844
  "X-Fern-Runtime-Version": core.RUNTIME.version,
845
845
  },
@@ -931,8 +931,8 @@ export class Conversation {
931
931
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
932
932
  "X-Fern-Language": "JavaScript",
933
933
  "X-Fern-SDK-Name": "mavenagi",
934
- "X-Fern-SDK-Version": "1.0.3",
935
- "User-Agent": "mavenagi/1.0.3",
934
+ "X-Fern-SDK-Version": "1.0.4",
935
+ "User-Agent": "mavenagi/1.0.4",
936
936
  "X-Fern-Runtime": core.RUNTIME.type,
937
937
  "X-Fern-Runtime-Version": core.RUNTIME.version,
938
938
  },
@@ -1,10 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as MavenAGI from "../../../index";
4
5
  export interface ActionFormField {
5
6
  id: string;
6
7
  label: string;
7
8
  description: string;
8
9
  required: boolean;
9
- suggestion?: string;
10
+ suggestion?: unknown;
11
+ type: MavenAGI.ActionParameterType;
10
12
  }
@@ -1,19 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type Capability =
5
- /**
6
- * Whether the response should include markdown formatting. If not provided, the response will be plain text. Not respected while streaming. */
7
- "MARKDOWN"
8
- /**
9
- * Whether the response should include forms. Not yet supported. */
10
- | "FORMS"
11
- /**
12
- * Whether the response should include images. Not yet supported. */
13
- | "IMAGES"
14
- /**
15
- * Whether the response should include a Highcharts typescript chart if applicable. */
16
- | "CHARTS_HIGHCHARTS_TS";
4
+ export declare type Capability = "MARKDOWN" | "FORMS" | "IMAGES" | "CHARTS_HIGHCHARTS_TS";
17
5
  export declare const Capability: {
18
6
  readonly Markdown: "MARKDOWN";
19
7
  readonly Forms: "FORMS";
@@ -3,7 +3,17 @@
3
3
  */
4
4
  import * as MavenAGI from "../../../index";
5
5
  export interface ResponseConfig {
6
- /** List of capabilities supported by the caller. Defaults to everything except charts_highcharts_ts. Note that the forms and images capabilities are not respected at this time. */
6
+ /**
7
+ * List of capabilities supported by the caller. Defaults to [MARKDOWN, FORMS, IMAGES].
8
+ *
9
+ * MARKDOWN: Whether the response should include markdown formatting. If not provided, the response will be plain text. Not respected while streaming.
10
+ *
11
+ * FORMS: Whether the response should include forms. If provided, the caller needs to render action forms when returned from the ask API and allow submission of the forms with the submitActionForm API. If not provided, then actions which require user interaction will not be considered by the LLM. Removing this capability is recommended for surfaces which can not display UI (e.g. SMS, voice).
12
+ *
13
+ * IMAGES: Whether the response should include images. Not yet supported.
14
+ *
15
+ * CHARTS_HIGHCHARTS_TS: Whether the response should include a Highcharts typescript chart if applicable.
16
+ */
7
17
  capabilities: MavenAGI.Capability[];
8
18
  /** Whether the response is for an human agent (true) or an end user (false). Defaults to false. */
9
19
  isCopilot: boolean;
@@ -51,8 +51,8 @@ export class Knowledge {
51
51
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
52
52
  "X-Fern-Language": "JavaScript",
53
53
  "X-Fern-SDK-Name": "mavenagi",
54
- "X-Fern-SDK-Version": "1.0.3",
55
- "User-Agent": "mavenagi/1.0.3",
54
+ "X-Fern-SDK-Version": "1.0.4",
55
+ "User-Agent": "mavenagi/1.0.4",
56
56
  "X-Fern-Runtime": core.RUNTIME.type,
57
57
  "X-Fern-Runtime-Version": core.RUNTIME.version,
58
58
  },
@@ -141,8 +141,8 @@ export class Knowledge {
141
141
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
142
142
  "X-Fern-Language": "JavaScript",
143
143
  "X-Fern-SDK-Name": "mavenagi",
144
- "X-Fern-SDK-Version": "1.0.3",
145
- "User-Agent": "mavenagi/1.0.3",
144
+ "X-Fern-SDK-Version": "1.0.4",
145
+ "User-Agent": "mavenagi/1.0.4",
146
146
  "X-Fern-Runtime": core.RUNTIME.type,
147
147
  "X-Fern-Runtime-Version": core.RUNTIME.version,
148
148
  },
@@ -233,8 +233,8 @@ export class Knowledge {
233
233
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
234
234
  "X-Fern-Language": "JavaScript",
235
235
  "X-Fern-SDK-Name": "mavenagi",
236
- "X-Fern-SDK-Version": "1.0.3",
237
- "User-Agent": "mavenagi/1.0.3",
236
+ "X-Fern-SDK-Version": "1.0.4",
237
+ "User-Agent": "mavenagi/1.0.4",
238
238
  "X-Fern-Runtime": core.RUNTIME.type,
239
239
  "X-Fern-Runtime-Version": core.RUNTIME.version,
240
240
  },
@@ -323,8 +323,8 @@ export class Knowledge {
323
323
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
324
324
  "X-Fern-Language": "JavaScript",
325
325
  "X-Fern-SDK-Name": "mavenagi",
326
- "X-Fern-SDK-Version": "1.0.3",
327
- "User-Agent": "mavenagi/1.0.3",
326
+ "X-Fern-SDK-Version": "1.0.4",
327
+ "User-Agent": "mavenagi/1.0.4",
328
328
  "X-Fern-Runtime": core.RUNTIME.type,
329
329
  "X-Fern-Runtime-Version": core.RUNTIME.version,
330
330
  },
@@ -415,8 +415,8 @@ export class Knowledge {
415
415
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
416
416
  "X-Fern-Language": "JavaScript",
417
417
  "X-Fern-SDK-Name": "mavenagi",
418
- "X-Fern-SDK-Version": "1.0.3",
419
- "User-Agent": "mavenagi/1.0.3",
418
+ "X-Fern-SDK-Version": "1.0.4",
419
+ "User-Agent": "mavenagi/1.0.4",
420
420
  "X-Fern-Runtime": core.RUNTIME.type,
421
421
  "X-Fern-Runtime-Version": core.RUNTIME.version,
422
422
  },
@@ -513,8 +513,8 @@ export class Knowledge {
513
513
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
514
514
  "X-Fern-Language": "JavaScript",
515
515
  "X-Fern-SDK-Name": "mavenagi",
516
- "X-Fern-SDK-Version": "1.0.3",
517
- "User-Agent": "mavenagi/1.0.3",
516
+ "X-Fern-SDK-Version": "1.0.4",
517
+ "User-Agent": "mavenagi/1.0.4",
518
518
  "X-Fern-Runtime": core.RUNTIME.type,
519
519
  "X-Fern-Runtime-Version": core.RUNTIME.version,
520
520
  },
@@ -604,8 +604,8 @@ export class Knowledge {
604
604
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
605
605
  "X-Fern-Language": "JavaScript",
606
606
  "X-Fern-SDK-Name": "mavenagi",
607
- "X-Fern-SDK-Version": "1.0.3",
608
- "User-Agent": "mavenagi/1.0.3",
607
+ "X-Fern-SDK-Version": "1.0.4",
608
+ "User-Agent": "mavenagi/1.0.4",
609
609
  "X-Fern-Runtime": core.RUNTIME.type,
610
610
  "X-Fern-Runtime-Version": core.RUNTIME.version,
611
611
  },
@@ -48,8 +48,8 @@ export class Translations {
48
48
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
49
49
  "X-Fern-Language": "JavaScript",
50
50
  "X-Fern-SDK-Name": "mavenagi",
51
- "X-Fern-SDK-Version": "1.0.3",
52
- "User-Agent": "mavenagi/1.0.3",
51
+ "X-Fern-SDK-Version": "1.0.4",
52
+ "User-Agent": "mavenagi/1.0.4",
53
53
  "X-Fern-Runtime": core.RUNTIME.type,
54
54
  "X-Fern-Runtime-Version": core.RUNTIME.version,
55
55
  },
@@ -51,8 +51,8 @@ export class Triggers {
51
51
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
52
52
  "X-Fern-Language": "JavaScript",
53
53
  "X-Fern-SDK-Name": "mavenagi",
54
- "X-Fern-SDK-Version": "1.0.3",
55
- "User-Agent": "mavenagi/1.0.3",
54
+ "X-Fern-SDK-Version": "1.0.4",
55
+ "User-Agent": "mavenagi/1.0.4",
56
56
  "X-Fern-Runtime": core.RUNTIME.type,
57
57
  "X-Fern-Runtime-Version": core.RUNTIME.version,
58
58
  },
@@ -141,8 +141,8 @@ export class Triggers {
141
141
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
142
142
  "X-Fern-Language": "JavaScript",
143
143
  "X-Fern-SDK-Name": "mavenagi",
144
- "X-Fern-SDK-Version": "1.0.3",
145
- "User-Agent": "mavenagi/1.0.3",
144
+ "X-Fern-SDK-Version": "1.0.4",
145
+ "User-Agent": "mavenagi/1.0.4",
146
146
  "X-Fern-Runtime": core.RUNTIME.type,
147
147
  "X-Fern-Runtime-Version": core.RUNTIME.version,
148
148
  },
@@ -230,8 +230,8 @@ export class Triggers {
230
230
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
231
231
  "X-Fern-Language": "JavaScript",
232
232
  "X-Fern-SDK-Name": "mavenagi",
233
- "X-Fern-SDK-Version": "1.0.3",
234
- "User-Agent": "mavenagi/1.0.3",
233
+ "X-Fern-SDK-Version": "1.0.4",
234
+ "User-Agent": "mavenagi/1.0.4",
235
235
  "X-Fern-Runtime": core.RUNTIME.type,
236
236
  "X-Fern-Runtime-Version": core.RUNTIME.version,
237
237
  },
@@ -59,8 +59,8 @@ export class Users {
59
59
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
60
60
  "X-Fern-Language": "JavaScript",
61
61
  "X-Fern-SDK-Name": "mavenagi",
62
- "X-Fern-SDK-Version": "1.0.3",
63
- "User-Agent": "mavenagi/1.0.3",
62
+ "X-Fern-SDK-Version": "1.0.4",
63
+ "User-Agent": "mavenagi/1.0.4",
64
64
  "X-Fern-Runtime": core.RUNTIME.type,
65
65
  "X-Fern-Runtime-Version": core.RUNTIME.version,
66
66
  },
@@ -149,8 +149,8 @@ export class Users {
149
149
  "X-Agent-Id": yield core.Supplier.get(this._options.agentId),
150
150
  "X-Fern-Language": "JavaScript",
151
151
  "X-Fern-SDK-Name": "mavenagi",
152
- "X-Fern-SDK-Version": "1.0.3",
153
- "User-Agent": "mavenagi/1.0.3",
152
+ "X-Fern-SDK-Version": "1.0.4",
153
+ "User-Agent": "mavenagi/1.0.4",
154
154
  "X-Fern-Runtime": core.RUNTIME.type,
155
155
  "X-Fern-Runtime-Version": core.RUNTIME.version,
156
156
  },
@@ -4,6 +4,7 @@
4
4
  import * as serializers from "../../../index";
5
5
  import * as MavenAGI from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
+ import { ActionParameterType } from "../../commons/types/ActionParameterType";
7
8
  export declare const ActionParameter: core.serialization.ObjectSchema<serializers.ActionParameter.Raw, MavenAGI.ActionParameter>;
8
9
  export declare namespace ActionParameter {
9
10
  interface Raw {
@@ -11,5 +12,6 @@ export declare namespace ActionParameter {
11
12
  label: string;
12
13
  description: string;
13
14
  required: boolean;
15
+ type?: ActionParameterType.Raw | null;
14
16
  }
15
17
  }
@@ -2,9 +2,11 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as core from "../../../../core";
5
+ import { ActionParameterType } from "../../commons/types/ActionParameterType";
5
6
  export const ActionParameter = core.serialization.object({
6
7
  id: core.serialization.string(),
7
8
  label: core.serialization.string(),
8
9
  description: core.serialization.string(),
9
10
  required: core.serialization.boolean(),
11
+ type: ActionParameterType.optional(),
10
12
  });
@@ -0,0 +1,10 @@
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 ActionParameterType: core.serialization.Schema<serializers.ActionParameterType.Raw, MavenAGI.ActionParameterType>;
8
+ export declare namespace ActionParameterType {
9
+ type Raw = "STRING" | "BOOLEAN" | "NUMBER";
10
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as core from "../../../../core";
5
+ export const ActionParameterType = core.serialization.enum_(["STRING", "BOOLEAN", "NUMBER"]);
@@ -6,5 +6,5 @@ import * as MavenAGI from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  export declare const EntityType: core.serialization.Schema<serializers.EntityType.Raw, MavenAGI.EntityType>;
8
8
  export declare namespace EntityType {
9
- type Raw = "CONVERSATION" | "CONVERSATION_MESSAGE" | "KNOWLEDGE_BASE" | "KNOWLEDGE_DOCUMENT" | "ACTION" | "USER" | "USER_EVENT" | "EVENT_TRIGGER" | "USER_PROFILE" | "FEEDBACK";
9
+ type Raw = "CONVERSATION" | "CONVERSATION_MESSAGE" | "KNOWLEDGE_BASE" | "KNOWLEDGE_DOCUMENT" | "ACTION" | "USER" | "EVENT" | "EVENT_TRIGGER" | "USER_PROFILE" | "FEEDBACK";
10
10
  }
@@ -9,7 +9,7 @@ export const EntityType = core.serialization.enum_([
9
9
  "KNOWLEDGE_DOCUMENT",
10
10
  "ACTION",
11
11
  "USER",
12
- "USER_EVENT",
12
+ "EVENT",
13
13
  "EVENT_TRIGGER",
14
14
  "USER_PROFILE",
15
15
  "FEEDBACK",
@@ -15,3 +15,4 @@ export * from "./AppUserResponse";
15
15
  export * from "./EventTriggerBase";
16
16
  export * from "./EventTriggerResponse";
17
17
  export * from "./EventTriggerType";
18
+ export * from "./ActionParameterType";
@@ -15,3 +15,4 @@ export * from "./AppUserResponse";
15
15
  export * from "./EventTriggerBase";
16
16
  export * from "./EventTriggerResponse";
17
17
  export * from "./EventTriggerType";
18
+ export * from "./ActionParameterType";
@@ -4,6 +4,7 @@
4
4
  import * as serializers from "../../../index";
5
5
  import * as MavenAGI from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
+ import { ActionParameterType } from "../../commons/types/ActionParameterType";
7
8
  export declare const ActionFormField: core.serialization.ObjectSchema<serializers.ActionFormField.Raw, MavenAGI.ActionFormField>;
8
9
  export declare namespace ActionFormField {
9
10
  interface Raw {
@@ -11,6 +12,7 @@ export declare namespace ActionFormField {
11
12
  label: string;
12
13
  description: string;
13
14
  required: boolean;
14
- suggestion?: string | null;
15
+ suggestion?: unknown | null;
16
+ type: ActionParameterType.Raw;
15
17
  }
16
18
  }
@@ -2,10 +2,12 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as core from "../../../../core";
5
+ import { ActionParameterType } from "../../commons/types/ActionParameterType";
5
6
  export const ActionFormField = core.serialization.object({
6
7
  id: core.serialization.string(),
7
8
  label: core.serialization.string(),
8
9
  description: core.serialization.string(),
9
10
  required: core.serialization.boolean(),
10
- suggestion: core.serialization.string().optional(),
11
+ suggestion: core.serialization.unknown().optional(),
12
+ type: ActionParameterType,
11
13
  });
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.0.3";
1
+ export declare const SDK_VERSION = "1.0.4";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.0.3";
1
+ export const SDK_VERSION = "1.0.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mavenagi",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "private": false,
5
5
  "repository": "https://github.com/mavenagi/mavenagi-node",
6
6
  "main": "./index.js",
@@ -4,6 +4,7 @@
4
4
  import * as serializers from "../../../index";
5
5
  import * as MavenAGI from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
+ import { ActionParameterType } from "../../commons/types/ActionParameterType";
7
8
  export declare const ActionParameter: core.serialization.ObjectSchema<serializers.ActionParameter.Raw, MavenAGI.ActionParameter>;
8
9
  export declare namespace ActionParameter {
9
10
  interface Raw {
@@ -11,5 +12,6 @@ export declare namespace ActionParameter {
11
12
  label: string;
12
13
  description: string;
13
14
  required: boolean;
15
+ type?: ActionParameterType.Raw | null;
14
16
  }
15
17
  }
@@ -2,9 +2,11 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as core from "../../../../core";
5
+ import { ActionParameterType } from "../../commons/types/ActionParameterType";
5
6
  export const ActionParameter = core.serialization.object({
6
7
  id: core.serialization.string(),
7
8
  label: core.serialization.string(),
8
9
  description: core.serialization.string(),
9
10
  required: core.serialization.boolean(),
11
+ type: ActionParameterType.optional(),
10
12
  });
@@ -0,0 +1,10 @@
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 ActionParameterType: core.serialization.Schema<serializers.ActionParameterType.Raw, MavenAGI.ActionParameterType>;
8
+ export declare namespace ActionParameterType {
9
+ type Raw = "STRING" | "BOOLEAN" | "NUMBER";
10
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as core from "../../../../core";
5
+ export const ActionParameterType = core.serialization.enum_(["STRING", "BOOLEAN", "NUMBER"]);
@@ -6,5 +6,5 @@ import * as MavenAGI from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  export declare const EntityType: core.serialization.Schema<serializers.EntityType.Raw, MavenAGI.EntityType>;
8
8
  export declare namespace EntityType {
9
- type Raw = "CONVERSATION" | "CONVERSATION_MESSAGE" | "KNOWLEDGE_BASE" | "KNOWLEDGE_DOCUMENT" | "ACTION" | "USER" | "USER_EVENT" | "EVENT_TRIGGER" | "USER_PROFILE" | "FEEDBACK";
9
+ type Raw = "CONVERSATION" | "CONVERSATION_MESSAGE" | "KNOWLEDGE_BASE" | "KNOWLEDGE_DOCUMENT" | "ACTION" | "USER" | "EVENT" | "EVENT_TRIGGER" | "USER_PROFILE" | "FEEDBACK";
10
10
  }
@@ -9,7 +9,7 @@ export const EntityType = core.serialization.enum_([
9
9
  "KNOWLEDGE_DOCUMENT",
10
10
  "ACTION",
11
11
  "USER",
12
- "USER_EVENT",
12
+ "EVENT",
13
13
  "EVENT_TRIGGER",
14
14
  "USER_PROFILE",
15
15
  "FEEDBACK",
@@ -15,3 +15,4 @@ export * from "./AppUserResponse";
15
15
  export * from "./EventTriggerBase";
16
16
  export * from "./EventTriggerResponse";
17
17
  export * from "./EventTriggerType";
18
+ export * from "./ActionParameterType";
@@ -15,3 +15,4 @@ export * from "./AppUserResponse";
15
15
  export * from "./EventTriggerBase";
16
16
  export * from "./EventTriggerResponse";
17
17
  export * from "./EventTriggerType";
18
+ export * from "./ActionParameterType";
@@ -4,6 +4,7 @@
4
4
  import * as serializers from "../../../index";
5
5
  import * as MavenAGI from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
+ import { ActionParameterType } from "../../commons/types/ActionParameterType";
7
8
  export declare const ActionFormField: core.serialization.ObjectSchema<serializers.ActionFormField.Raw, MavenAGI.ActionFormField>;
8
9
  export declare namespace ActionFormField {
9
10
  interface Raw {
@@ -11,6 +12,7 @@ export declare namespace ActionFormField {
11
12
  label: string;
12
13
  description: string;
13
14
  required: boolean;
14
- suggestion?: string | null;
15
+ suggestion?: unknown | null;
16
+ type: ActionParameterType.Raw;
15
17
  }
16
18
  }
@@ -2,10 +2,12 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as core from "../../../../core";
5
+ import { ActionParameterType } from "../../commons/types/ActionParameterType";
5
6
  export const ActionFormField = core.serialization.object({
6
7
  id: core.serialization.string(),
7
8
  label: core.serialization.string(),
8
9
  description: core.serialization.string(),
9
10
  required: core.serialization.boolean(),
10
- suggestion: core.serialization.string().optional(),
11
+ suggestion: core.serialization.unknown().optional(),
12
+ type: ActionParameterType,
11
13
  });
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.0.3";
1
+ export declare const SDK_VERSION = "1.0.4";
package/version.js CHANGED
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.0.3";
1
+ export const SDK_VERSION = "1.0.4";