mavenagi 1.0.2 → 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 (65) hide show
  1. package/README.md +13 -15
  2. package/api/resources/actions/client/Client.js +6 -6
  3. package/api/resources/actions/types/ActionParameter.d.ts +3 -0
  4. package/api/resources/appSettings/client/Client.js +2 -2
  5. package/api/resources/commons/types/ActionParameterType.d.ts +9 -0
  6. package/api/resources/commons/types/ActionParameterType.js +8 -0
  7. package/api/resources/commons/types/EntityType.d.ts +2 -2
  8. package/api/resources/commons/types/EntityType.js +1 -1
  9. package/api/resources/commons/types/index.d.ts +1 -0
  10. package/api/resources/commons/types/index.js +1 -0
  11. package/api/resources/conversation/client/Client.d.ts +27 -35
  12. package/api/resources/conversation/client/Client.js +47 -55
  13. package/api/resources/conversation/client/requests/ConversationGetRequest.d.ts +1 -3
  14. package/api/resources/conversation/types/ActionFormField.d.ts +3 -1
  15. package/api/resources/conversation/types/Capability.d.ts +1 -13
  16. package/api/resources/conversation/types/ResponseConfig.d.ts +11 -1
  17. package/api/resources/knowledge/client/Client.js +14 -14
  18. package/api/resources/translations/client/Client.js +2 -2
  19. package/api/resources/triggers/client/Client.js +6 -6
  20. package/api/resources/users/client/Client.js +4 -4
  21. package/dist/api/resources/actions/client/Client.js +6 -6
  22. package/dist/api/resources/actions/types/ActionParameter.d.ts +3 -0
  23. package/dist/api/resources/appSettings/client/Client.js +2 -2
  24. package/dist/api/resources/commons/types/ActionParameterType.d.ts +9 -0
  25. package/dist/api/resources/commons/types/ActionParameterType.js +8 -0
  26. package/dist/api/resources/commons/types/EntityType.d.ts +2 -2
  27. package/dist/api/resources/commons/types/EntityType.js +1 -1
  28. package/dist/api/resources/commons/types/index.d.ts +1 -0
  29. package/dist/api/resources/commons/types/index.js +1 -0
  30. package/dist/api/resources/conversation/client/Client.d.ts +27 -35
  31. package/dist/api/resources/conversation/client/Client.js +47 -55
  32. package/dist/api/resources/conversation/client/requests/ConversationGetRequest.d.ts +1 -3
  33. package/dist/api/resources/conversation/types/ActionFormField.d.ts +3 -1
  34. package/dist/api/resources/conversation/types/Capability.d.ts +1 -13
  35. package/dist/api/resources/conversation/types/ResponseConfig.d.ts +11 -1
  36. package/dist/api/resources/knowledge/client/Client.js +14 -14
  37. package/dist/api/resources/translations/client/Client.js +2 -2
  38. package/dist/api/resources/triggers/client/Client.js +6 -6
  39. package/dist/api/resources/users/client/Client.js +4 -4
  40. package/dist/serialization/resources/actions/types/ActionParameter.d.ts +2 -0
  41. package/dist/serialization/resources/actions/types/ActionParameter.js +2 -0
  42. package/dist/serialization/resources/commons/types/ActionParameterType.d.ts +10 -0
  43. package/dist/serialization/resources/commons/types/ActionParameterType.js +5 -0
  44. package/dist/serialization/resources/commons/types/EntityType.d.ts +1 -1
  45. package/dist/serialization/resources/commons/types/EntityType.js +1 -1
  46. package/dist/serialization/resources/commons/types/index.d.ts +1 -0
  47. package/dist/serialization/resources/commons/types/index.js +1 -0
  48. package/dist/serialization/resources/conversation/types/ActionFormField.d.ts +3 -1
  49. package/dist/serialization/resources/conversation/types/ActionFormField.js +3 -1
  50. package/dist/version.d.ts +1 -1
  51. package/dist/version.js +1 -1
  52. package/package.json +1 -1
  53. package/reference.md +30 -33
  54. package/serialization/resources/actions/types/ActionParameter.d.ts +2 -0
  55. package/serialization/resources/actions/types/ActionParameter.js +2 -0
  56. package/serialization/resources/commons/types/ActionParameterType.d.ts +10 -0
  57. package/serialization/resources/commons/types/ActionParameterType.js +5 -0
  58. package/serialization/resources/commons/types/EntityType.d.ts +1 -1
  59. package/serialization/resources/commons/types/EntityType.js +1 -1
  60. package/serialization/resources/commons/types/index.d.ts +1 -0
  61. package/serialization/resources/commons/types/index.js +1 -0
  62. package/serialization/resources/conversation/types/ActionFormField.d.ts +3 -1
  63. package/serialization/resources/conversation/types/ActionFormField.js +3 -1
  64. package/version.d.ts +1 -1
  65. package/version.js +1 -1
@@ -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.2",
55
- "User-Agent": "mavenagi/1.0.2",
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.2",
145
- "User-Agent": "mavenagi/1.0.2",
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.2",
237
- "User-Agent": "mavenagi/1.0.2",
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.2",
327
- "User-Agent": "mavenagi/1.0.2",
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.2",
419
- "User-Agent": "mavenagi/1.0.2",
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.2",
517
- "User-Agent": "mavenagi/1.0.2",
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.2",
608
- "User-Agent": "mavenagi/1.0.2",
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.2",
52
- "User-Agent": "mavenagi/1.0.2",
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.2",
55
- "User-Agent": "mavenagi/1.0.2",
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.2",
145
- "User-Agent": "mavenagi/1.0.2",
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.2",
234
- "User-Agent": "mavenagi/1.0.2",
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.2",
63
- "User-Agent": "mavenagi/1.0.2",
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.2",
153
- "User-Agent": "mavenagi/1.0.2",
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.2";
1
+ export declare const SDK_VERSION = "1.0.4";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.0.2";
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.2",
3
+ "version": "1.0.4",
4
4
  "private": false,
5
5
  "repository": "https://github.com/mavenagi/mavenagi-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -302,22 +302,20 @@ Initialize a new conversation. Only required if the ask request wishes to supply
302
302
  ```typescript
303
303
  await client.conversation.initialize({
304
304
  conversationId: {
305
- referenceId: "string",
306
- },
307
- messages: [{}],
308
- responseConfig: {
309
- capabilities: ["MARKDOWN"],
310
- isCopilot: true,
311
- responseLength: "SHORT",
312
- },
313
- subject: "string",
314
- url: "string",
315
- createdAt: new Date("2024-01-15T09:30:00.000Z"),
316
- updatedAt: new Date("2024-01-15T09:30:00.000Z"),
317
- tags: new Set(["string"]),
318
- metadata: {
319
- string: "string",
305
+ referenceId: "referenceId",
320
306
  },
307
+ messages: [
308
+ {
309
+ conversationMessageId: {
310
+ referenceId: "referenceId",
311
+ },
312
+ },
313
+ {
314
+ conversationMessageId: {
315
+ referenceId: "referenceId",
316
+ },
317
+ },
318
+ ],
321
319
  });
322
320
  ```
323
321
 
@@ -381,9 +379,7 @@ Get a conversation
381
379
  <dd>
382
380
 
383
381
  ```typescript
384
- await client.conversation.get("string", {
385
- appId: "string",
386
- });
382
+ await client.conversation.get("conversationId");
387
383
  ```
388
384
 
389
385
  </dd>
@@ -454,18 +450,16 @@ Append messages to an existing conversation. The conversation must be initialize
454
450
  <dd>
455
451
 
456
452
  ```typescript
457
- await client.conversation.appendNewMessages("string", [
453
+ await client.conversation.appendNewMessages("conversationId", [
458
454
  {
459
455
  conversationMessageId: {
460
- referenceId: "string",
456
+ referenceId: "referenceId",
461
457
  },
462
- userId: {
463
- referenceId: "string",
458
+ },
459
+ {
460
+ conversationMessageId: {
461
+ referenceId: "referenceId",
464
462
  },
465
- text: "string",
466
- userMessageType: "USER",
467
- createdAt: new Date("2024-01-15T09:30:00.000Z"),
468
- updatedAt: new Date("2024-01-15T09:30:00.000Z"),
469
463
  },
470
464
  ]);
471
465
  ```
@@ -708,10 +702,13 @@ Generate a response suggestion for each requested message id in a conversation
708
702
  <dd>
709
703
 
710
704
  ```typescript
711
- await client.conversation.generateMavenSuggestions("string", {
705
+ await client.conversation.generateMavenSuggestions("conversationId", {
712
706
  conversationMessageIds: [
713
707
  {
714
- referenceId: "string",
708
+ referenceId: "referenceId",
709
+ },
710
+ {
711
+ referenceId: "referenceId",
715
712
  },
716
713
  ],
717
714
  });
@@ -785,7 +782,7 @@ Uses an LLM flow to categorize the conversation. Experimental.
785
782
  <dd>
786
783
 
787
784
  ```typescript
788
- await client.conversation.categorize("string");
785
+ await client.conversation.categorize("conversationId");
789
786
  ```
790
787
 
791
788
  </dd>
@@ -926,10 +923,10 @@ Submit a filled out action form
926
923
  <dd>
927
924
 
928
925
  ```typescript
929
- await client.conversation.submitActionForm("string", {
930
- actionFormId: "string",
926
+ await client.conversation.submitActionForm("conversationId", {
927
+ actionFormId: "actionFormId",
931
928
  parameters: {
932
- string: {
929
+ parameters: {
933
930
  key: "value",
934
931
  },
935
932
  },
@@ -1004,7 +1001,7 @@ Add metadata to an existing conversation. If a metadata field already exists, it
1004
1001
  <dd>
1005
1002
 
1006
1003
  ```typescript
1007
- await client.conversation.addConversationMetadata("string", {
1004
+ await client.conversation.addConversationMetadata("conversationId", {
1008
1005
  string: "string",
1009
1006
  });
1010
1007
  ```
@@ -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.2";
1
+ export declare const SDK_VERSION = "1.0.4";
package/version.js CHANGED
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.0.2";
1
+ export const SDK_VERSION = "1.0.4";