hume 0.8.5 → 0.8.6

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 (185) hide show
  1. package/.mock/definition/empathic-voice/__package__.yml +35 -34
  2. package/.mock/definition/empathic-voice/chatGroups.yml +338 -27
  3. package/.mock/definition/empathic-voice/chats.yml +353 -36
  4. package/.mock/definition/empathic-voice/configs.yml +282 -210
  5. package/.mock/definition/empathic-voice/prompts.yml +140 -64
  6. package/.mock/definition/empathic-voice/tools.yml +11 -8
  7. package/.mock/definition/expression-measurement/__package__.yml +203 -59
  8. package/.mock/definition/expression-measurement/batch.yml +64 -35
  9. package/.mock/fern.config.json +1 -1
  10. package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +11 -2
  11. package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +13 -4
  12. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +7 -3
  13. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +8 -3
  14. package/api/resources/empathicVoice/resources/chats/client/Client.d.ts +12 -4
  15. package/api/resources/empathicVoice/resources/chats/client/Client.js +128 -96
  16. package/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts +7 -3
  17. package/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +7 -3
  18. package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +74 -10
  19. package/api/resources/empathicVoice/resources/configs/client/Client.js +83 -19
  20. package/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigVersionsRequest.d.ts +2 -2
  21. package/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.ts +6 -3
  22. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +28 -1
  23. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.d.ts +1 -1
  24. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +33 -1
  25. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.ts +3 -1
  26. package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +19 -13
  27. package/api/resources/empathicVoice/resources/prompts/client/Client.js +89 -70
  28. package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +2 -2
  29. package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.d.ts +1 -1
  30. package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +2 -1
  31. package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.d.ts +3 -1
  32. package/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptVersionsRequest.d.ts +2 -2
  33. package/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.ts +6 -3
  34. package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +1 -1
  35. package/api/resources/empathicVoice/resources/tools/client/Client.js +71 -58
  36. package/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolVersionsRequest.d.ts +2 -2
  37. package/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolsRequest.d.ts +2 -2
  38. package/api/resources/empathicVoice/types/AudioInput.d.ts +4 -2
  39. package/api/resources/empathicVoice/types/JsonMessage.d.ts +1 -1
  40. package/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +4 -4
  41. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +11 -19
  42. package/api/resources/expressionMeasurement/resources/batch/client/requests/BatchListJobsRequest.d.ts +25 -9
  43. package/api/resources/expressionMeasurement/resources/batch/client/requests/BatchStartInferenceJobFromLocalFileRequest.d.ts +1 -0
  44. package/api/resources/expressionMeasurement/types/{UnionJobJobInference.d.ts → CustomModelsInferenceJob.d.ts} +2 -1
  45. package/api/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.d.ts → CustomModelsTrainingJob.d.ts} +2 -1
  46. package/api/resources/expressionMeasurement/types/EmbeddingGenerationJob.d.ts +7 -0
  47. package/api/resources/expressionMeasurement/types/Face.d.ts +5 -0
  48. package/api/resources/expressionMeasurement/types/File_.d.ts +3 -0
  49. package/api/resources/expressionMeasurement/types/Granularity.d.ts +9 -1
  50. package/api/resources/expressionMeasurement/types/InferenceBaseRequest.d.ts +6 -1
  51. package/api/resources/expressionMeasurement/types/InferenceJob.d.ts +12 -0
  52. package/api/resources/expressionMeasurement/types/JobInference.d.ts +3 -0
  53. package/api/resources/expressionMeasurement/types/Language.d.ts +5 -0
  54. package/api/resources/expressionMeasurement/types/Models.d.ts +3 -0
  55. package/api/resources/expressionMeasurement/types/Ner.d.ts +5 -0
  56. package/api/resources/expressionMeasurement/types/Prosody.d.ts +5 -0
  57. package/api/resources/expressionMeasurement/types/Transcription.d.ts +40 -0
  58. package/api/resources/expressionMeasurement/types/UnionJob.d.ts +1 -15
  59. package/api/resources/expressionMeasurement/types/UnionPredictResult.d.ts +1 -1
  60. package/api/resources/expressionMeasurement/types/Window.d.ts +5 -0
  61. package/api/resources/expressionMeasurement/types/index.d.ts +4 -4
  62. package/api/resources/expressionMeasurement/types/index.js +4 -4
  63. package/api/resources/index.d.ts +1 -1
  64. package/api/resources/index.js +2 -2
  65. package/core/index.d.ts +1 -0
  66. package/core/index.js +1 -0
  67. package/core/pagination/Page.d.ts +29 -0
  68. package/core/pagination/Page.js +94 -0
  69. package/core/pagination/Pageable.d.ts +12 -0
  70. package/core/pagination/Pageable.js +10 -0
  71. package/core/pagination/index.d.ts +2 -0
  72. package/core/pagination/index.js +7 -0
  73. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +11 -2
  74. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +13 -4
  75. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +7 -3
  76. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +8 -3
  77. package/dist/api/resources/empathicVoice/resources/chats/client/Client.d.ts +12 -4
  78. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +128 -96
  79. package/dist/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts +7 -3
  80. package/dist/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +7 -3
  81. package/dist/api/resources/empathicVoice/resources/configs/client/Client.d.ts +74 -10
  82. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +83 -19
  83. package/dist/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigVersionsRequest.d.ts +2 -2
  84. package/dist/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.ts +6 -3
  85. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +28 -1
  86. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.d.ts +1 -1
  87. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +33 -1
  88. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.ts +3 -1
  89. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +19 -13
  90. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +89 -70
  91. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +2 -2
  92. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.d.ts +1 -1
  93. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +2 -1
  94. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.d.ts +3 -1
  95. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptVersionsRequest.d.ts +2 -2
  96. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.ts +6 -3
  97. package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +1 -1
  98. package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +71 -58
  99. package/dist/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolVersionsRequest.d.ts +2 -2
  100. package/dist/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolsRequest.d.ts +2 -2
  101. package/dist/api/resources/empathicVoice/types/AudioInput.d.ts +4 -2
  102. package/dist/api/resources/empathicVoice/types/JsonMessage.d.ts +1 -1
  103. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +4 -4
  104. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +11 -19
  105. package/dist/api/resources/expressionMeasurement/resources/batch/client/requests/BatchListJobsRequest.d.ts +25 -9
  106. package/dist/api/resources/expressionMeasurement/resources/batch/client/requests/BatchStartInferenceJobFromLocalFileRequest.d.ts +1 -0
  107. package/{api/resources/expressionMeasurement/types/UnionJobJobTraining.d.ts → dist/api/resources/expressionMeasurement/types/CustomModelsInferenceJob.d.ts} +2 -1
  108. package/{api/resources/expressionMeasurement/types/UnionJobJobTlInference.d.ts → dist/api/resources/expressionMeasurement/types/CustomModelsTrainingJob.d.ts} +2 -1
  109. package/dist/api/resources/expressionMeasurement/types/EmbeddingGenerationJob.d.ts +7 -0
  110. package/dist/api/resources/expressionMeasurement/types/Face.d.ts +5 -0
  111. package/dist/api/resources/expressionMeasurement/types/File_.d.ts +3 -0
  112. package/dist/api/resources/expressionMeasurement/types/Granularity.d.ts +9 -1
  113. package/dist/api/resources/expressionMeasurement/types/InferenceBaseRequest.d.ts +6 -1
  114. package/dist/api/resources/expressionMeasurement/types/InferenceJob.d.ts +12 -0
  115. package/dist/api/resources/expressionMeasurement/types/JobInference.d.ts +3 -0
  116. package/dist/api/resources/expressionMeasurement/types/Language.d.ts +5 -0
  117. package/dist/api/resources/expressionMeasurement/types/Models.d.ts +3 -0
  118. package/dist/api/resources/expressionMeasurement/types/Ner.d.ts +5 -0
  119. package/dist/api/resources/expressionMeasurement/types/Prosody.d.ts +5 -0
  120. package/dist/api/resources/expressionMeasurement/types/Transcription.d.ts +40 -0
  121. package/dist/api/resources/expressionMeasurement/types/UnionJob.d.ts +1 -15
  122. package/dist/api/resources/expressionMeasurement/types/UnionPredictResult.d.ts +1 -1
  123. package/dist/api/resources/expressionMeasurement/types/Window.d.ts +5 -0
  124. package/dist/api/resources/expressionMeasurement/types/index.d.ts +4 -4
  125. package/dist/api/resources/expressionMeasurement/types/index.js +4 -4
  126. package/dist/api/resources/index.d.ts +1 -1
  127. package/dist/api/resources/index.js +2 -2
  128. package/dist/core/index.d.ts +1 -0
  129. package/dist/core/index.js +1 -0
  130. package/dist/core/pagination/Page.d.ts +29 -0
  131. package/dist/core/pagination/Page.js +94 -0
  132. package/dist/core/pagination/Pageable.d.ts +12 -0
  133. package/dist/core/pagination/Pageable.js +10 -0
  134. package/dist/core/pagination/index.d.ts +2 -0
  135. package/dist/core/pagination/index.js +7 -0
  136. package/dist/serialization/resources/empathicVoice/types/JsonMessage.d.ts +2 -1
  137. package/dist/serialization/resources/empathicVoice/types/JsonMessage.js +2 -0
  138. package/{serialization/resources/expressionMeasurement/types/UnionJobJobTlInference.d.ts → dist/serialization/resources/expressionMeasurement/types/CustomModelsInferenceJob.d.ts} +3 -2
  139. package/{serialization/resources/expressionMeasurement/types/UnionJobJobTlInference.js → dist/serialization/resources/expressionMeasurement/types/CustomModelsInferenceJob.js} +6 -2
  140. package/{serialization/resources/expressionMeasurement/types/UnionJobJobTraining.d.ts → dist/serialization/resources/expressionMeasurement/types/CustomModelsTrainingJob.d.ts} +3 -2
  141. package/{serialization/resources/expressionMeasurement/types/UnionJobJobTraining.js → dist/serialization/resources/expressionMeasurement/types/CustomModelsTrainingJob.js} +6 -2
  142. package/dist/serialization/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.d.ts → EmbeddingGenerationJob.d.ts} +3 -2
  143. package/dist/serialization/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.js → EmbeddingGenerationJob.js} +6 -2
  144. package/{serialization/resources/expressionMeasurement/types/UnionJobJobInference.d.ts → dist/serialization/resources/expressionMeasurement/types/InferenceJob.d.ts} +3 -2
  145. package/{serialization/resources/expressionMeasurement/types/UnionJobJobInference.js → dist/serialization/resources/expressionMeasurement/types/InferenceJob.js} +6 -2
  146. package/dist/serialization/resources/expressionMeasurement/types/UnionJob.d.ts +3 -18
  147. package/dist/serialization/resources/expressionMeasurement/types/UnionJob.js +2 -39
  148. package/dist/serialization/resources/expressionMeasurement/types/UnionPredictResult.d.ts +2 -3
  149. package/dist/serialization/resources/expressionMeasurement/types/UnionPredictResult.js +1 -29
  150. package/dist/serialization/resources/expressionMeasurement/types/index.d.ts +4 -4
  151. package/dist/serialization/resources/expressionMeasurement/types/index.js +4 -4
  152. package/dist/serialization/resources/index.d.ts +1 -1
  153. package/dist/serialization/resources/index.js +2 -2
  154. package/package.json +1 -1
  155. package/reference.md +596 -544
  156. package/serialization/resources/empathicVoice/types/JsonMessage.d.ts +2 -1
  157. package/serialization/resources/empathicVoice/types/JsonMessage.js +2 -0
  158. package/{dist/serialization/resources/expressionMeasurement/types/UnionJobJobTlInference.d.ts → serialization/resources/expressionMeasurement/types/CustomModelsInferenceJob.d.ts} +3 -2
  159. package/{dist/serialization/resources/expressionMeasurement/types/UnionJobJobTlInference.js → serialization/resources/expressionMeasurement/types/CustomModelsInferenceJob.js} +6 -2
  160. package/{dist/serialization/resources/expressionMeasurement/types/UnionJobJobTraining.d.ts → serialization/resources/expressionMeasurement/types/CustomModelsTrainingJob.d.ts} +3 -2
  161. package/{dist/serialization/resources/expressionMeasurement/types/UnionJobJobTraining.js → serialization/resources/expressionMeasurement/types/CustomModelsTrainingJob.js} +6 -2
  162. package/serialization/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.d.ts → EmbeddingGenerationJob.d.ts} +3 -2
  163. package/serialization/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.js → EmbeddingGenerationJob.js} +6 -2
  164. package/{dist/serialization/resources/expressionMeasurement/types/UnionJobJobInference.d.ts → serialization/resources/expressionMeasurement/types/InferenceJob.d.ts} +3 -2
  165. package/{dist/serialization/resources/expressionMeasurement/types/UnionJobJobInference.js → serialization/resources/expressionMeasurement/types/InferenceJob.js} +6 -2
  166. package/serialization/resources/expressionMeasurement/types/UnionJob.d.ts +3 -18
  167. package/serialization/resources/expressionMeasurement/types/UnionJob.js +2 -39
  168. package/serialization/resources/expressionMeasurement/types/UnionPredictResult.d.ts +2 -3
  169. package/serialization/resources/expressionMeasurement/types/UnionPredictResult.js +1 -29
  170. package/serialization/resources/expressionMeasurement/types/index.d.ts +4 -4
  171. package/serialization/resources/expressionMeasurement/types/index.js +4 -4
  172. package/serialization/resources/index.d.ts +1 -1
  173. package/serialization/resources/index.js +2 -2
  174. package/dist/api/resources/expressionMeasurement/types/UnionJobJobEmbeddingGeneration.d.ts +0 -6
  175. package/dist/api/resources/expressionMeasurement/types/UnionJobJobInference.d.ts +0 -6
  176. package/dist/api/resources/expressionMeasurement/types/UnionJobJobTlInference.d.ts +0 -6
  177. package/dist/api/resources/expressionMeasurement/types/UnionJobJobTraining.d.ts +0 -6
  178. /package/api/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.js → CustomModelsInferenceJob.js} +0 -0
  179. /package/api/resources/expressionMeasurement/types/{UnionJobJobInference.js → CustomModelsTrainingJob.js} +0 -0
  180. /package/api/resources/expressionMeasurement/types/{UnionJobJobTlInference.js → EmbeddingGenerationJob.js} +0 -0
  181. /package/api/resources/expressionMeasurement/types/{UnionJobJobTraining.js → InferenceJob.js} +0 -0
  182. /package/dist/api/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.js → CustomModelsInferenceJob.js} +0 -0
  183. /package/dist/api/resources/expressionMeasurement/types/{UnionJobJobInference.js → CustomModelsTrainingJob.js} +0 -0
  184. /package/dist/api/resources/expressionMeasurement/types/{UnionJobJobTlInference.js → EmbeddingGenerationJob.js} +0 -0
  185. /package/dist/api/resources/expressionMeasurement/types/{UnionJobJobTraining.js → InferenceJob.js} +0 -0
@@ -27,7 +27,10 @@ export declare class Configs {
27
27
  * @param {Configs.RequestOptions} requestOptions - Request-specific configuration.
28
28
  *
29
29
  * @example
30
- * await client.empathicVoice.configs.listConfigs()
30
+ * await client.empathicVoice.configs.listConfigs({
31
+ * pageNumber: 0,
32
+ * pageSize: 1
33
+ * })
31
34
  */
32
35
  listConfigs(request?: Hume.empathicVoice.ConfigsListConfigsRequest, requestOptions?: Configs.RequestOptions): Promise<Hume.empathicVoice.ReturnPagedConfigs>;
33
36
  /**
@@ -36,7 +39,34 @@ export declare class Configs {
36
39
  *
37
40
  * @example
38
41
  * await client.empathicVoice.configs.createConfig({
39
- * name: "name"
42
+ * name: "Weather Assistant Config",
43
+ * prompt: {
44
+ * id: "af699d45-2985-42cc-91b9-af9e5da3bac5",
45
+ * version: 0
46
+ * },
47
+ * voice: {
48
+ * provider: "HUME_AI",
49
+ * name: Hume.empathicVoice.PostedVoiceName.Kora
50
+ * },
51
+ * languageModel: {
52
+ * modelProvider: Hume.empathicVoice.PostedLanguageModelModelProvider.Anthropic,
53
+ * modelResource: "claude-3-5-sonnet-20240620",
54
+ * temperature: 1
55
+ * },
56
+ * eventMessages: {
57
+ * onNewChat: {
58
+ * enabled: false,
59
+ * text: ""
60
+ * },
61
+ * onInactivityTimeout: {
62
+ * enabled: false,
63
+ * text: ""
64
+ * },
65
+ * onMaxDurationTimeout: {
66
+ * enabled: false,
67
+ * text: ""
68
+ * }
69
+ * }
40
70
  * })
41
71
  */
42
72
  createConfig(request: Hume.empathicVoice.PostedConfig, requestOptions?: Configs.RequestOptions): Promise<Hume.empathicVoice.ReturnConfig>;
@@ -46,7 +76,7 @@ export declare class Configs {
46
76
  * @param {Configs.RequestOptions} requestOptions - Request-specific configuration.
47
77
  *
48
78
  * @example
49
- * await client.empathicVoice.configs.listConfigVersions("id")
79
+ * await client.empathicVoice.configs.listConfigVersions("1b60e1a0-cc59-424a-8d2c-189d354db3f3")
50
80
  */
51
81
  listConfigVersions(id: string, request?: Hume.empathicVoice.ConfigsListConfigVersionsRequest, requestOptions?: Configs.RequestOptions): Promise<Hume.empathicVoice.ReturnPagedConfigs>;
52
82
  /**
@@ -55,7 +85,39 @@ export declare class Configs {
55
85
  * @param {Configs.RequestOptions} requestOptions - Request-specific configuration.
56
86
  *
57
87
  * @example
58
- * await client.empathicVoice.configs.createConfigVersion("id")
88
+ * await client.empathicVoice.configs.createConfigVersion("1b60e1a0-cc59-424a-8d2c-189d354db3f3", {
89
+ * versionDescription: "This is an updated version of the Weather Assistant Config.",
90
+ * prompt: {
91
+ * id: "af699d45-2985-42cc-91b9-af9e5da3bac5",
92
+ * version: 0
93
+ * },
94
+ * voice: {
95
+ * provider: "HUME_AI",
96
+ * name: Hume.empathicVoice.PostedVoiceName.Ito
97
+ * },
98
+ * languageModel: {
99
+ * modelProvider: Hume.empathicVoice.PostedLanguageModelModelProvider.Anthropic,
100
+ * modelResource: "claude-3-5-sonnet-20240620",
101
+ * temperature: 1
102
+ * },
103
+ * ellmModel: {
104
+ * allowShortResponses: true
105
+ * },
106
+ * eventMessages: {
107
+ * onNewChat: {
108
+ * enabled: false,
109
+ * text: ""
110
+ * },
111
+ * onInactivityTimeout: {
112
+ * enabled: false,
113
+ * text: ""
114
+ * },
115
+ * onMaxDurationTimeout: {
116
+ * enabled: false,
117
+ * text: ""
118
+ * }
119
+ * }
120
+ * })
59
121
  */
60
122
  createConfigVersion(id: string, request?: Hume.empathicVoice.PostedConfigVersion, requestOptions?: Configs.RequestOptions): Promise<Hume.empathicVoice.ReturnConfig>;
61
123
  /**
@@ -63,7 +125,7 @@ export declare class Configs {
63
125
  * @param {Configs.RequestOptions} requestOptions - Request-specific configuration.
64
126
  *
65
127
  * @example
66
- * await client.empathicVoice.configs.deleteConfig("id")
128
+ * await client.empathicVoice.configs.deleteConfig("1b60e1a0-cc59-424a-8d2c-189d354db3f3")
67
129
  */
68
130
  deleteConfig(id: string, requestOptions?: Configs.RequestOptions): Promise<void>;
69
131
  /**
@@ -72,8 +134,8 @@ export declare class Configs {
72
134
  * @param {Configs.RequestOptions} requestOptions - Request-specific configuration.
73
135
  *
74
136
  * @example
75
- * await client.empathicVoice.configs.updateConfigName("string", {
76
- * name: "string"
137
+ * await client.empathicVoice.configs.updateConfigName("1b60e1a0-cc59-424a-8d2c-189d354db3f3", {
138
+ * name: "Updated Weather Assistant Config Name"
77
139
  * })
78
140
  */
79
141
  updateConfigName(id: string, request: Hume.empathicVoice.PostedConfigName, requestOptions?: Configs.RequestOptions): Promise<string>;
@@ -87,7 +149,7 @@ export declare class Configs {
87
149
  * @param {Configs.RequestOptions} requestOptions - Request-specific configuration.
88
150
  *
89
151
  * @example
90
- * await client.empathicVoice.configs.getConfigVersion("id", 1)
152
+ * await client.empathicVoice.configs.getConfigVersion("1b60e1a0-cc59-424a-8d2c-189d354db3f3", 1)
91
153
  */
92
154
  getConfigVersion(id: string, version: number, requestOptions?: Configs.RequestOptions): Promise<Hume.empathicVoice.ReturnConfig>;
93
155
  /**
@@ -100,7 +162,7 @@ export declare class Configs {
100
162
  * @param {Configs.RequestOptions} requestOptions - Request-specific configuration.
101
163
  *
102
164
  * @example
103
- * await client.empathicVoice.configs.deleteConfigVersion("id", 1)
165
+ * await client.empathicVoice.configs.deleteConfigVersion("1b60e1a0-cc59-424a-8d2c-189d354db3f3", 1)
104
166
  */
105
167
  deleteConfigVersion(id: string, version: number, requestOptions?: Configs.RequestOptions): Promise<void>;
106
168
  /**
@@ -114,7 +176,9 @@ export declare class Configs {
114
176
  * @param {Configs.RequestOptions} requestOptions - Request-specific configuration.
115
177
  *
116
178
  * @example
117
- * await client.empathicVoice.configs.updateConfigDescription("id", 1)
179
+ * await client.empathicVoice.configs.updateConfigDescription("1b60e1a0-cc59-424a-8d2c-189d354db3f3", 1, {
180
+ * versionDescription: "This is an updated version_description."
181
+ * })
118
182
  */
119
183
  updateConfigDescription(id: string, version: number, request?: Hume.empathicVoice.PostedConfigVersionDescription, requestOptions?: Configs.RequestOptions): Promise<Hume.empathicVoice.ReturnConfig>;
120
184
  protected _getCustomAuthorizationHeaders(): Promise<{
@@ -53,7 +53,10 @@ class Configs {
53
53
  * @param {Configs.RequestOptions} requestOptions - Request-specific configuration.
54
54
  *
55
55
  * @example
56
- * await client.empathicVoice.configs.listConfigs()
56
+ * await client.empathicVoice.configs.listConfigs({
57
+ * pageNumber: 0,
58
+ * pageSize: 1
59
+ * })
57
60
  */
58
61
  listConfigs(request = {}, requestOptions) {
59
62
  var _a, _b;
@@ -75,7 +78,7 @@ class Configs {
75
78
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
76
79
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, 'v0/evi/configs'),
77
80
  method: 'GET',
78
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
81
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.6', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
79
82
  contentType: 'application/json',
80
83
  queryParameters: _queryParams,
81
84
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
@@ -119,7 +122,34 @@ class Configs {
119
122
  *
120
123
  * @example
121
124
  * await client.empathicVoice.configs.createConfig({
122
- * name: "name"
125
+ * name: "Weather Assistant Config",
126
+ * prompt: {
127
+ * id: "af699d45-2985-42cc-91b9-af9e5da3bac5",
128
+ * version: 0
129
+ * },
130
+ * voice: {
131
+ * provider: "HUME_AI",
132
+ * name: Hume.empathicVoice.PostedVoiceName.Kora
133
+ * },
134
+ * languageModel: {
135
+ * modelProvider: Hume.empathicVoice.PostedLanguageModelModelProvider.Anthropic,
136
+ * modelResource: "claude-3-5-sonnet-20240620",
137
+ * temperature: 1
138
+ * },
139
+ * eventMessages: {
140
+ * onNewChat: {
141
+ * enabled: false,
142
+ * text: ""
143
+ * },
144
+ * onInactivityTimeout: {
145
+ * enabled: false,
146
+ * text: ""
147
+ * },
148
+ * onMaxDurationTimeout: {
149
+ * enabled: false,
150
+ * text: ""
151
+ * }
152
+ * }
123
153
  * })
124
154
  */
125
155
  createConfig(request, requestOptions) {
@@ -128,7 +158,7 @@ class Configs {
128
158
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
129
159
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, 'v0/evi/configs'),
130
160
  method: 'POST',
131
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
161
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.6', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
132
162
  contentType: 'application/json',
133
163
  body: serializers.empathicVoice.PostedConfig.jsonOrThrow(request, {
134
164
  unrecognizedObjectKeys: 'strip',
@@ -174,7 +204,7 @@ class Configs {
174
204
  * @param {Configs.RequestOptions} requestOptions - Request-specific configuration.
175
205
  *
176
206
  * @example
177
- * await client.empathicVoice.configs.listConfigVersions("id")
207
+ * await client.empathicVoice.configs.listConfigVersions("1b60e1a0-cc59-424a-8d2c-189d354db3f3")
178
208
  */
179
209
  listConfigVersions(id, request = {}, requestOptions) {
180
210
  var _a, _b;
@@ -193,7 +223,7 @@ class Configs {
193
223
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
194
224
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
195
225
  method: 'GET',
196
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
226
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.6', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
197
227
  contentType: 'application/json',
198
228
  queryParameters: _queryParams,
199
229
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
@@ -237,7 +267,39 @@ class Configs {
237
267
  * @param {Configs.RequestOptions} requestOptions - Request-specific configuration.
238
268
  *
239
269
  * @example
240
- * await client.empathicVoice.configs.createConfigVersion("id")
270
+ * await client.empathicVoice.configs.createConfigVersion("1b60e1a0-cc59-424a-8d2c-189d354db3f3", {
271
+ * versionDescription: "This is an updated version of the Weather Assistant Config.",
272
+ * prompt: {
273
+ * id: "af699d45-2985-42cc-91b9-af9e5da3bac5",
274
+ * version: 0
275
+ * },
276
+ * voice: {
277
+ * provider: "HUME_AI",
278
+ * name: Hume.empathicVoice.PostedVoiceName.Ito
279
+ * },
280
+ * languageModel: {
281
+ * modelProvider: Hume.empathicVoice.PostedLanguageModelModelProvider.Anthropic,
282
+ * modelResource: "claude-3-5-sonnet-20240620",
283
+ * temperature: 1
284
+ * },
285
+ * ellmModel: {
286
+ * allowShortResponses: true
287
+ * },
288
+ * eventMessages: {
289
+ * onNewChat: {
290
+ * enabled: false,
291
+ * text: ""
292
+ * },
293
+ * onInactivityTimeout: {
294
+ * enabled: false,
295
+ * text: ""
296
+ * },
297
+ * onMaxDurationTimeout: {
298
+ * enabled: false,
299
+ * text: ""
300
+ * }
301
+ * }
302
+ * })
241
303
  */
242
304
  createConfigVersion(id, request = {}, requestOptions) {
243
305
  var _a, _b;
@@ -245,7 +307,7 @@ class Configs {
245
307
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
246
308
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
247
309
  method: 'POST',
248
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
310
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.6', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
249
311
  contentType: 'application/json',
250
312
  body: serializers.empathicVoice.PostedConfigVersion.jsonOrThrow(request, {
251
313
  unrecognizedObjectKeys: 'strip',
@@ -290,7 +352,7 @@ class Configs {
290
352
  * @param {Configs.RequestOptions} requestOptions - Request-specific configuration.
291
353
  *
292
354
  * @example
293
- * await client.empathicVoice.configs.deleteConfig("id")
355
+ * await client.empathicVoice.configs.deleteConfig("1b60e1a0-cc59-424a-8d2c-189d354db3f3")
294
356
  */
295
357
  deleteConfig(id, requestOptions) {
296
358
  var _a, _b;
@@ -298,7 +360,7 @@ class Configs {
298
360
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
299
361
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
300
362
  method: 'DELETE',
301
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
363
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.6', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
302
364
  contentType: 'application/json',
303
365
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
304
366
  ? requestOptions.timeoutInSeconds * 1000
@@ -336,8 +398,8 @@ class Configs {
336
398
  * @param {Configs.RequestOptions} requestOptions - Request-specific configuration.
337
399
  *
338
400
  * @example
339
- * await client.empathicVoice.configs.updateConfigName("string", {
340
- * name: "string"
401
+ * await client.empathicVoice.configs.updateConfigName("1b60e1a0-cc59-424a-8d2c-189d354db3f3", {
402
+ * name: "Updated Weather Assistant Config Name"
341
403
  * })
342
404
  */
343
405
  updateConfigName(id, request, requestOptions) {
@@ -346,7 +408,7 @@ class Configs {
346
408
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
347
409
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
348
410
  method: 'PATCH',
349
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
411
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.6', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
350
412
  contentType: 'application/json',
351
413
  body: serializers.empathicVoice.PostedConfigName.jsonOrThrow(request, {
352
414
  unrecognizedObjectKeys: 'strip',
@@ -392,7 +454,7 @@ class Configs {
392
454
  * @param {Configs.RequestOptions} requestOptions - Request-specific configuration.
393
455
  *
394
456
  * @example
395
- * await client.empathicVoice.configs.getConfigVersion("id", 1)
457
+ * await client.empathicVoice.configs.getConfigVersion("1b60e1a0-cc59-424a-8d2c-189d354db3f3", 1)
396
458
  */
397
459
  getConfigVersion(id, version, requestOptions) {
398
460
  var _a, _b;
@@ -400,7 +462,7 @@ class Configs {
400
462
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
401
463
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
402
464
  method: 'GET',
403
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
465
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.6', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
404
466
  contentType: 'application/json',
405
467
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
406
468
  ? requestOptions.timeoutInSeconds * 1000
@@ -447,7 +509,7 @@ class Configs {
447
509
  * @param {Configs.RequestOptions} requestOptions - Request-specific configuration.
448
510
  *
449
511
  * @example
450
- * await client.empathicVoice.configs.deleteConfigVersion("id", 1)
512
+ * await client.empathicVoice.configs.deleteConfigVersion("1b60e1a0-cc59-424a-8d2c-189d354db3f3", 1)
451
513
  */
452
514
  deleteConfigVersion(id, version, requestOptions) {
453
515
  var _a, _b;
@@ -455,7 +517,7 @@ class Configs {
455
517
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
456
518
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
457
519
  method: 'DELETE',
458
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
520
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.6', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
459
521
  contentType: 'application/json',
460
522
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null
461
523
  ? requestOptions.timeoutInSeconds * 1000
@@ -498,7 +560,9 @@ class Configs {
498
560
  * @param {Configs.RequestOptions} requestOptions - Request-specific configuration.
499
561
  *
500
562
  * @example
501
- * await client.empathicVoice.configs.updateConfigDescription("id", 1)
563
+ * await client.empathicVoice.configs.updateConfigDescription("1b60e1a0-cc59-424a-8d2c-189d354db3f3", 1, {
564
+ * versionDescription: "This is an updated version_description."
565
+ * })
502
566
  */
503
567
  updateConfigDescription(id, version, request = {}, requestOptions) {
504
568
  var _a, _b;
@@ -506,7 +570,7 @@ class Configs {
506
570
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
507
571
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
508
572
  method: 'PATCH',
509
- headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.5', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
573
+ headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': 'hume', 'X-Fern-SDK-Version': '0.8.6', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
510
574
  contentType: 'application/json',
511
575
  body: serializers.empathicVoice.PostedConfigVersionDescription.jsonOrThrow(request, {
512
576
  unrecognizedObjectKeys: 'strip',
@@ -13,9 +13,9 @@ export interface ConfigsListConfigVersionsRequest {
13
13
  */
14
14
  pageNumber?: number;
15
15
  /**
16
- * Specifies the maximum number of results to include per page, enabling pagination.
16
+ * Specifies the maximum number of results to include per page, enabling pagination. The value must be between 1 and 100, inclusive.
17
17
  *
18
- * The value must be greater than or equal to 1. For example, if `page_size` is set to 10, each page will include up to 10 items. Defaults to 10.
18
+ * For example, if `page_size` is set to 10, each page will include up to 10 items. Defaults to 10.
19
19
  */
20
20
  pageSize?: number;
21
21
  /**
@@ -3,7 +3,10 @@
3
3
  */
4
4
  /**
5
5
  * @example
6
- * {}
6
+ * {
7
+ * pageNumber: 0,
8
+ * pageSize: 1
9
+ * }
7
10
  */
8
11
  export interface ConfigsListConfigsRequest {
9
12
  /**
@@ -13,9 +16,9 @@ export interface ConfigsListConfigsRequest {
13
16
  */
14
17
  pageNumber?: number;
15
18
  /**
16
- * Specifies the maximum number of results to include per page, enabling pagination.
19
+ * Specifies the maximum number of results to include per page, enabling pagination. The value must be between 1 and 100, inclusive.
17
20
  *
18
- * The value must be greater than or equal to 1. For example, if `page_size` is set to 10, each page will include up to 10 items. Defaults to 10.
21
+ * For example, if `page_size` is set to 10, each page will include up to 10 items. Defaults to 10.
19
22
  */
20
23
  pageSize?: number;
21
24
  /**
@@ -5,7 +5,34 @@ import * as Hume from '../../../../../../index';
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * name: "name"
8
+ * name: "Weather Assistant Config",
9
+ * prompt: {
10
+ * id: "af699d45-2985-42cc-91b9-af9e5da3bac5",
11
+ * version: 0
12
+ * },
13
+ * voice: {
14
+ * provider: "HUME_AI",
15
+ * name: Hume.empathicVoice.PostedVoiceName.Kora
16
+ * },
17
+ * languageModel: {
18
+ * modelProvider: Hume.empathicVoice.PostedLanguageModelModelProvider.Anthropic,
19
+ * modelResource: "claude-3-5-sonnet-20240620",
20
+ * temperature: 1
21
+ * },
22
+ * eventMessages: {
23
+ * onNewChat: {
24
+ * enabled: false,
25
+ * text: ""
26
+ * },
27
+ * onInactivityTimeout: {
28
+ * enabled: false,
29
+ * text: ""
30
+ * },
31
+ * onMaxDurationTimeout: {
32
+ * enabled: false,
33
+ * text: ""
34
+ * }
35
+ * }
9
36
  * }
10
37
  */
11
38
  export interface PostedConfig {
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * name: "string"
7
+ * name: "Updated Weather Assistant Config Name"
8
8
  * }
9
9
  */
10
10
  export interface PostedConfigName {
@@ -4,7 +4,39 @@
4
4
  import * as Hume from '../../../../../../index';
5
5
  /**
6
6
  * @example
7
- * {}
7
+ * {
8
+ * versionDescription: "This is an updated version of the Weather Assistant Config.",
9
+ * prompt: {
10
+ * id: "af699d45-2985-42cc-91b9-af9e5da3bac5",
11
+ * version: 0
12
+ * },
13
+ * voice: {
14
+ * provider: "HUME_AI",
15
+ * name: Hume.empathicVoice.PostedVoiceName.Ito
16
+ * },
17
+ * languageModel: {
18
+ * modelProvider: Hume.empathicVoice.PostedLanguageModelModelProvider.Anthropic,
19
+ * modelResource: "claude-3-5-sonnet-20240620",
20
+ * temperature: 1
21
+ * },
22
+ * ellmModel: {
23
+ * allowShortResponses: true
24
+ * },
25
+ * eventMessages: {
26
+ * onNewChat: {
27
+ * enabled: false,
28
+ * text: ""
29
+ * },
30
+ * onInactivityTimeout: {
31
+ * enabled: false,
32
+ * text: ""
33
+ * },
34
+ * onMaxDurationTimeout: {
35
+ * enabled: false,
36
+ * text: ""
37
+ * }
38
+ * }
39
+ * }
8
40
  */
9
41
  export interface PostedConfigVersion {
10
42
  /** An optional description of the Config version. */
@@ -3,7 +3,9 @@
3
3
  */
4
4
  /**
5
5
  * @example
6
- * {}
6
+ * {
7
+ * versionDescription: "This is an updated version_description."
8
+ * }
7
9
  */
8
10
  export interface PostedConfigVersionDescription {
9
11
  /** An optional description of the Config version. */
@@ -27,17 +27,20 @@ export declare class Prompts {
27
27
  * @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
28
28
  *
29
29
  * @example
30
- * await client.empathicVoice.prompts.listPrompts()
30
+ * await client.empathicVoice.prompts.listPrompts({
31
+ * pageNumber: 0,
32
+ * pageSize: 2
33
+ * })
31
34
  */
32
- listPrompts(request?: Hume.empathicVoice.PromptsListPromptsRequest, requestOptions?: Prompts.RequestOptions): Promise<Hume.empathicVoice.ReturnPagedPrompts>;
35
+ listPrompts(request?: Hume.empathicVoice.PromptsListPromptsRequest, requestOptions?: Prompts.RequestOptions): Promise<core.Page<Hume.empathicVoice.ReturnPrompt | undefined>>;
33
36
  /**
34
37
  * @param {Hume.empathicVoice.PostedPrompt} request
35
38
  * @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
36
39
  *
37
40
  * @example
38
41
  * await client.empathicVoice.prompts.createPrompt({
39
- * name: "name",
40
- * text: "text"
42
+ * name: "Weather Assistant Prompt",
43
+ * text: "<role>You are an AI weather assistant providing users with accurate and up-to-date weather information. Respond to user queries concisely and clearly. Use simple language and avoid technical jargon. Provide temperature, precipitation, wind conditions, and any weather alerts. Include helpful tips if severe weather is expected.</role>"
41
44
  * })
42
45
  */
43
46
  createPrompt(request: Hume.empathicVoice.PostedPrompt, requestOptions?: Prompts.RequestOptions): Promise<Hume.empathicVoice.ReturnPrompt | undefined>;
@@ -47,7 +50,7 @@ export declare class Prompts {
47
50
  * @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
48
51
  *
49
52
  * @example
50
- * await client.empathicVoice.prompts.listPromptVersions("id")
53
+ * await client.empathicVoice.prompts.listPromptVersions("af699d45-2985-42cc-91b9-af9e5da3bac5")
51
54
  */
52
55
  listPromptVersions(id: string, request?: Hume.empathicVoice.PromptsListPromptVersionsRequest, requestOptions?: Prompts.RequestOptions): Promise<Hume.empathicVoice.ReturnPagedPrompts>;
53
56
  /**
@@ -56,8 +59,9 @@ export declare class Prompts {
56
59
  * @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
57
60
  *
58
61
  * @example
59
- * await client.empathicVoice.prompts.createPromptVerison("id", {
60
- * text: "text"
62
+ * await client.empathicVoice.prompts.createPromptVerison("af699d45-2985-42cc-91b9-af9e5da3bac5", {
63
+ * text: "<role>You are an updated version of an AI weather assistant providing users with accurate and up-to-date weather information. Respond to user queries concisely and clearly. Use simple language and avoid technical jargon. Provide temperature, precipitation, wind conditions, and any weather alerts. Include helpful tips if severe weather is expected.</role>",
64
+ * versionDescription: "This is an updated version of the Weather Assistant Prompt."
61
65
  * })
62
66
  */
63
67
  createPromptVerison(id: string, request: Hume.empathicVoice.PostedPromptVersion, requestOptions?: Prompts.RequestOptions): Promise<Hume.empathicVoice.ReturnPrompt | undefined>;
@@ -66,7 +70,7 @@ export declare class Prompts {
66
70
  * @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
67
71
  *
68
72
  * @example
69
- * await client.empathicVoice.prompts.deletePrompt("id")
73
+ * await client.empathicVoice.prompts.deletePrompt("af699d45-2985-42cc-91b9-af9e5da3bac5")
70
74
  */
71
75
  deletePrompt(id: string, requestOptions?: Prompts.RequestOptions): Promise<void>;
72
76
  /**
@@ -75,8 +79,8 @@ export declare class Prompts {
75
79
  * @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
76
80
  *
77
81
  * @example
78
- * await client.empathicVoice.prompts.updatePromptName("string", {
79
- * name: "string"
82
+ * await client.empathicVoice.prompts.updatePromptName("af699d45-2985-42cc-91b9-af9e5da3bac5", {
83
+ * name: "Updated Weather Assistant Prompt Name"
80
84
  * })
81
85
  */
82
86
  updatePromptName(id: string, request: Hume.empathicVoice.PostedPromptName, requestOptions?: Prompts.RequestOptions): Promise<string>;
@@ -90,7 +94,7 @@ export declare class Prompts {
90
94
  * @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
91
95
  *
92
96
  * @example
93
- * await client.empathicVoice.prompts.getPromptVersion("id", 1)
97
+ * await client.empathicVoice.prompts.getPromptVersion("af699d45-2985-42cc-91b9-af9e5da3bac5", 0)
94
98
  */
95
99
  getPromptVersion(id: string, version: number, requestOptions?: Prompts.RequestOptions): Promise<Hume.empathicVoice.ReturnPrompt | undefined>;
96
100
  /**
@@ -103,7 +107,7 @@ export declare class Prompts {
103
107
  * @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
104
108
  *
105
109
  * @example
106
- * await client.empathicVoice.prompts.deletePromptVersion("id", 1)
110
+ * await client.empathicVoice.prompts.deletePromptVersion("af699d45-2985-42cc-91b9-af9e5da3bac5", 1)
107
111
  */
108
112
  deletePromptVersion(id: string, version: number, requestOptions?: Prompts.RequestOptions): Promise<void>;
109
113
  /**
@@ -117,7 +121,9 @@ export declare class Prompts {
117
121
  * @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
118
122
  *
119
123
  * @example
120
- * await client.empathicVoice.prompts.updatePromptDescription("id", 1)
124
+ * await client.empathicVoice.prompts.updatePromptDescription("af699d45-2985-42cc-91b9-af9e5da3bac5", 1, {
125
+ * versionDescription: "This is an updated version_description."
126
+ * })
121
127
  */
122
128
  updatePromptDescription(id: string, version: number, request?: Hume.empathicVoice.PostedPromptVersionDescription, requestOptions?: Prompts.RequestOptions): Promise<Hume.empathicVoice.ReturnPrompt | undefined>;
123
129
  protected _getCustomAuthorizationHeaders(): Promise<{