hume 0.9.8 → 0.9.9

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 (168) hide show
  1. package/.mock/definition/empathic-voice/__package__.yml +40 -51
  2. package/.mock/definition/empathic-voice/chatGroups.yml +16 -14
  3. package/.mock/definition/empathic-voice/chats.yml +5 -0
  4. package/.mock/definition/empathic-voice/configs.yml +6 -0
  5. package/Client.d.ts +1 -3
  6. package/Client.js +1 -3
  7. package/api/resources/empathicVoice/client/Client.d.ts +4 -3
  8. package/api/resources/empathicVoice/client/Client.js +14 -11
  9. package/api/resources/empathicVoice/resources/chat/client/Client.d.ts +1 -0
  10. package/api/resources/empathicVoice/resources/chat/client/Client.js +1 -0
  11. package/api/resources/empathicVoice/resources/chat/client/Socket.d.ts +1 -0
  12. package/api/resources/empathicVoice/resources/chat/client/Socket.js +1 -0
  13. package/api/resources/empathicVoice/resources/chat/client/index.d.ts +1 -0
  14. package/api/resources/empathicVoice/resources/chat/client/index.js +1 -0
  15. package/api/resources/empathicVoice/resources/chat/index.d.ts +1 -0
  16. package/api/resources/empathicVoice/resources/chat/index.js +1 -0
  17. package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +1 -1
  18. package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +5 -5
  19. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetAudioRequest.d.ts +5 -5
  20. package/api/resources/empathicVoice/resources/chats/client/Client.js +7 -4
  21. package/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +4 -0
  22. package/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
  23. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -0
  24. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -0
  25. package/api/resources/empathicVoice/resources/customVoices/client/Client.js +6 -6
  26. package/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
  27. package/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
  28. package/api/resources/empathicVoice/types/PostedWebhookEventType.d.ts +11 -0
  29. package/api/resources/empathicVoice/types/PostedWebhookEventType.js +10 -0
  30. package/api/resources/empathicVoice/types/PostedWebhookSpec.d.ts +13 -0
  31. package/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +2 -0
  32. package/api/resources/empathicVoice/types/ReturnConfig.d.ts +2 -0
  33. package/api/resources/empathicVoice/types/ReturnWebhookEventType.d.ts +11 -0
  34. package/api/resources/empathicVoice/types/ReturnWebhookEventType.js +10 -0
  35. package/api/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +13 -0
  36. package/api/resources/empathicVoice/types/index.d.ts +4 -3
  37. package/api/resources/empathicVoice/types/index.js +4 -3
  38. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  39. package/api/resources/index.d.ts +1 -1
  40. package/api/resources/index.js +2 -2
  41. package/core/fetcher/Supplier.d.ts +1 -0
  42. package/core/index.d.ts +1 -0
  43. package/core/index.js +1 -0
  44. package/core/websocket/events.d.ts +1 -0
  45. package/core/websocket/events.js +1 -0
  46. package/core/websocket/index.d.ts +1 -0
  47. package/core/websocket/index.js +1 -0
  48. package/core/websocket/ws.js +1 -0
  49. package/dist/Client.d.ts +1 -3
  50. package/dist/Client.js +1 -3
  51. package/dist/api/resources/empathicVoice/client/Client.d.ts +4 -3
  52. package/dist/api/resources/empathicVoice/client/Client.js +14 -11
  53. package/dist/api/resources/empathicVoice/resources/chat/client/Client.d.ts +1 -0
  54. package/dist/api/resources/empathicVoice/resources/chat/client/Client.js +1 -0
  55. package/dist/api/resources/empathicVoice/resources/chat/client/Socket.d.ts +1 -0
  56. package/dist/api/resources/empathicVoice/resources/chat/client/Socket.js +1 -0
  57. package/dist/api/resources/empathicVoice/resources/chat/client/index.d.ts +1 -0
  58. package/dist/api/resources/empathicVoice/resources/chat/client/index.js +1 -0
  59. package/dist/api/resources/empathicVoice/resources/chat/index.d.ts +1 -0
  60. package/dist/api/resources/empathicVoice/resources/chat/index.js +1 -0
  61. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +1 -1
  62. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +5 -5
  63. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetAudioRequest.d.ts +5 -5
  64. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +7 -4
  65. package/dist/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +4 -0
  66. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
  67. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -0
  68. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -0
  69. package/dist/api/resources/empathicVoice/resources/customVoices/client/Client.js +6 -6
  70. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
  71. package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
  72. package/dist/api/resources/empathicVoice/types/PostedWebhookEventType.d.ts +11 -0
  73. package/dist/api/resources/empathicVoice/types/PostedWebhookEventType.js +10 -0
  74. package/dist/api/resources/empathicVoice/types/PostedWebhookSpec.d.ts +13 -0
  75. package/dist/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +2 -0
  76. package/dist/api/resources/empathicVoice/types/ReturnConfig.d.ts +2 -0
  77. package/dist/api/resources/empathicVoice/types/ReturnWebhookEventType.d.ts +11 -0
  78. package/dist/api/resources/empathicVoice/types/ReturnWebhookEventType.js +10 -0
  79. package/dist/api/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +13 -0
  80. package/dist/api/resources/empathicVoice/types/index.d.ts +4 -3
  81. package/dist/api/resources/empathicVoice/types/index.js +4 -3
  82. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  83. package/dist/api/resources/index.d.ts +1 -1
  84. package/dist/api/resources/index.js +2 -2
  85. package/dist/core/fetcher/Supplier.d.ts +1 -0
  86. package/dist/core/index.d.ts +1 -0
  87. package/dist/core/index.js +1 -0
  88. package/dist/core/websocket/events.d.ts +1 -0
  89. package/dist/core/websocket/events.js +1 -0
  90. package/dist/core/websocket/index.d.ts +1 -0
  91. package/dist/core/websocket/index.js +1 -0
  92. package/dist/core/websocket/ws.js +1 -0
  93. package/dist/errors/HumeError.d.ts +1 -3
  94. package/dist/errors/HumeError.js +1 -3
  95. package/dist/index.d.ts +1 -0
  96. package/dist/index.js +1 -0
  97. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -0
  98. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +2 -0
  99. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -0
  100. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +2 -0
  101. package/dist/serialization/resources/empathicVoice/types/PostedWebhookEventType.d.ts +10 -0
  102. package/{serialization/resources/empathicVoice/types/ReturnActiveChatCountPerTag.js → dist/serialization/resources/empathicVoice/types/PostedWebhookEventType.js} +2 -5
  103. package/dist/serialization/resources/empathicVoice/types/PostedWebhookSpec.d.ts +14 -0
  104. package/dist/serialization/resources/empathicVoice/types/PostedWebhookSpec.js +35 -0
  105. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroup.d.ts +2 -0
  106. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroup.js +2 -0
  107. package/dist/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +2 -0
  108. package/dist/serialization/resources/empathicVoice/types/ReturnConfig.js +2 -0
  109. package/dist/serialization/resources/empathicVoice/types/ReturnWebhookEventType.d.ts +10 -0
  110. package/dist/serialization/resources/empathicVoice/types/{ReturnActiveChatCountPerTag.js → ReturnWebhookEventType.js} +2 -5
  111. package/dist/serialization/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +14 -0
  112. package/dist/serialization/resources/empathicVoice/types/ReturnWebhookSpec.js +35 -0
  113. package/dist/serialization/resources/empathicVoice/types/index.d.ts +4 -3
  114. package/dist/serialization/resources/empathicVoice/types/index.js +4 -3
  115. package/dist/serialization/resources/index.d.ts +1 -1
  116. package/dist/serialization/resources/index.js +2 -2
  117. package/dist/version.d.ts +1 -1
  118. package/dist/version.js +1 -1
  119. package/dist/wrapper/convertBase64ToBlob.d.ts +1 -1
  120. package/errors/HumeError.d.ts +1 -3
  121. package/errors/HumeError.js +1 -3
  122. package/index.d.ts +1 -0
  123. package/index.js +1 -0
  124. package/package.json +1 -1
  125. package/reference.md +538 -538
  126. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -0
  127. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +2 -0
  128. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -0
  129. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +2 -0
  130. package/serialization/resources/empathicVoice/types/PostedWebhookEventType.d.ts +10 -0
  131. package/serialization/resources/empathicVoice/types/{VoiceNameEnum.js → PostedWebhookEventType.js} +2 -17
  132. package/serialization/resources/empathicVoice/types/PostedWebhookSpec.d.ts +14 -0
  133. package/serialization/resources/empathicVoice/types/PostedWebhookSpec.js +35 -0
  134. package/serialization/resources/empathicVoice/types/ReturnChatGroup.d.ts +2 -0
  135. package/serialization/resources/empathicVoice/types/ReturnChatGroup.js +2 -0
  136. package/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +2 -0
  137. package/serialization/resources/empathicVoice/types/ReturnConfig.js +2 -0
  138. package/serialization/resources/empathicVoice/types/ReturnWebhookEventType.d.ts +10 -0
  139. package/{dist/serialization/resources/empathicVoice/types/VoiceNameEnum.js → serialization/resources/empathicVoice/types/ReturnWebhookEventType.js} +2 -17
  140. package/serialization/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +14 -0
  141. package/serialization/resources/empathicVoice/types/ReturnWebhookSpec.js +35 -0
  142. package/serialization/resources/empathicVoice/types/index.d.ts +4 -3
  143. package/serialization/resources/empathicVoice/types/index.js +4 -3
  144. package/serialization/resources/index.d.ts +1 -1
  145. package/serialization/resources/index.js +2 -2
  146. package/version.d.ts +1 -1
  147. package/version.js +1 -1
  148. package/wrapper/convertBase64ToBlob.d.ts +1 -1
  149. package/api/resources/empathicVoice/types/ReturnActiveChatCount.d.ts +0 -19
  150. package/api/resources/empathicVoice/types/ReturnActiveChatCountPerTag.d.ts +0 -12
  151. package/api/resources/empathicVoice/types/VoiceNameEnum.d.ts +0 -20
  152. package/api/resources/empathicVoice/types/VoiceNameEnum.js +0 -22
  153. package/dist/api/resources/empathicVoice/types/ReturnActiveChatCount.d.ts +0 -19
  154. package/dist/api/resources/empathicVoice/types/ReturnActiveChatCountPerTag.d.ts +0 -12
  155. package/dist/api/resources/empathicVoice/types/VoiceNameEnum.d.ts +0 -20
  156. package/dist/api/resources/empathicVoice/types/VoiceNameEnum.js +0 -22
  157. package/dist/serialization/resources/empathicVoice/types/ReturnActiveChatCount.d.ts +0 -17
  158. package/dist/serialization/resources/empathicVoice/types/ReturnActiveChatCount.js +0 -38
  159. package/dist/serialization/resources/empathicVoice/types/ReturnActiveChatCountPerTag.d.ts +0 -13
  160. package/dist/serialization/resources/empathicVoice/types/VoiceNameEnum.d.ts +0 -10
  161. package/serialization/resources/empathicVoice/types/ReturnActiveChatCount.d.ts +0 -17
  162. package/serialization/resources/empathicVoice/types/ReturnActiveChatCount.js +0 -38
  163. package/serialization/resources/empathicVoice/types/ReturnActiveChatCountPerTag.d.ts +0 -13
  164. package/serialization/resources/empathicVoice/types/VoiceNameEnum.d.ts +0 -10
  165. /package/api/resources/empathicVoice/types/{ReturnActiveChatCount.js → PostedWebhookSpec.js} +0 -0
  166. /package/api/resources/empathicVoice/types/{ReturnActiveChatCountPerTag.js → ReturnWebhookSpec.js} +0 -0
  167. /package/dist/api/resources/empathicVoice/types/{ReturnActiveChatCount.js → PostedWebhookSpec.js} +0 -0
  168. /package/dist/api/resources/empathicVoice/types/{ReturnActiveChatCountPerTag.js → ReturnWebhookSpec.js} +0 -0
@@ -875,6 +875,24 @@ types:
875
875
  custom_voice: optional<PostedCustomVoice>
876
876
  source:
877
877
  openapi: stenographer-openapi.json
878
+ PostedWebhookEventType:
879
+ enum:
880
+ - chat_started
881
+ - chat_ended
882
+ docs: Events this URL is subscribed to
883
+ source:
884
+ openapi: stenographer-openapi.json
885
+ PostedWebhookSpec:
886
+ docs: URL and settings for a specific webhook to be posted to the server
887
+ properties:
888
+ url:
889
+ type: string
890
+ docs: URL to send the webhook to
891
+ events:
892
+ docs: Events this URL is subscribed to
893
+ type: list<PostedWebhookEventType>
894
+ source:
895
+ openapi: stenographer-openapi.json
878
896
  ReturnBuiltinToolToolType:
879
897
  enum:
880
898
  - BUILTIN
@@ -978,6 +996,9 @@ types:
978
996
  docs: List of built-in tools associated with this Config.
979
997
  event_messages: optional<ReturnEventMessageSpecs>
980
998
  timeouts: optional<ReturnTimeoutSpecs>
999
+ webhooks:
1000
+ type: optional<list<optional<ReturnWebhookSpec>>>
1001
+ docs: Map of webhooks associated with this config.
981
1002
  source:
982
1003
  openapi: stenographer-openapi.json
983
1004
  ReturnEllmModel:
@@ -1225,6 +1246,24 @@ types:
1225
1246
  custom_voice: optional<ReturnCustomVoice>
1226
1247
  source:
1227
1248
  openapi: stenographer-openapi.json
1249
+ ReturnWebhookEventType:
1250
+ enum:
1251
+ - chat_started
1252
+ - chat_ended
1253
+ docs: Events this URL is subscribed to
1254
+ source:
1255
+ openapi: stenographer-openapi.json
1256
+ ReturnWebhookSpec:
1257
+ docs: Collection of webhook URL endpoints to be returned from the server
1258
+ properties:
1259
+ url:
1260
+ type: string
1261
+ docs: Webhook URL to send the event updates to
1262
+ events:
1263
+ docs: Events this URL is subscribed to
1264
+ type: list<ReturnWebhookEventType>
1265
+ source:
1266
+ openapi: stenographer-openapi.json
1228
1267
  ReturnPagedUserDefinedTools:
1229
1268
  docs: A paginated list of user defined tool versions returned from the server
1230
1269
  properties:
@@ -1843,39 +1882,6 @@ types:
1843
1882
  epoch milliseconds.
1844
1883
  source:
1845
1884
  openapi: stenographer-openapi.json
1846
- ReturnActiveChatCount:
1847
- docs: A description of current chat chat sessions for a user
1848
- properties:
1849
- timestamp:
1850
- type: long
1851
- docs: >-
1852
- The timestamp for when chat status was measured. Formatted as a Unix
1853
- epoch milliseconds.
1854
- total_user_active_chats:
1855
- type: integer
1856
- docs: The total number of active chats for this user.
1857
- max_allowed_active_chats:
1858
- type: optional<integer>
1859
- docs: The maximum number of concurrent active chats for this user.
1860
- more_active_chats_allowed:
1861
- type: boolean
1862
- docs: Boolean indicating if the user is allowed to start more chats.
1863
- per_tag:
1864
- type: optional<list<optional<ReturnActiveChatCountPerTag>>>
1865
- docs: Optional List of chat counts per tag.
1866
- source:
1867
- openapi: stenographer-openapi.json
1868
- ReturnActiveChatCountPerTag:
1869
- docs: A description of current chat chat sessions per tag
1870
- properties:
1871
- tag:
1872
- type: string
1873
- docs: User tag applied to a chat.
1874
- total_tag_active_chats:
1875
- type: integer
1876
- docs: The total number of active chats for this user with the specified tag.
1877
- source:
1878
- openapi: stenographer-openapi.json
1879
1885
  ReturnChatGroup:
1880
1886
  docs: A description of chat_group and its status
1881
1887
  properties:
@@ -1899,6 +1905,7 @@ types:
1899
1905
  docs: >-
1900
1906
  The `chat_id` of the most recent Chat in this Chat Group. Formatted as
1901
1907
  a UUID.
1908
+ most_recent_config: optional<ReturnConfigSpec>
1902
1909
  num_chats:
1903
1910
  type: integer
1904
1911
  docs: The total number of Chats in this Chat Group.
@@ -3183,21 +3190,3 @@ types:
3183
3190
  type: string
3184
3191
  source:
3185
3192
  openapi: assistant-openapi.json
3186
- VoiceNameEnum:
3187
- enum:
3188
- - ITO
3189
- - KORA
3190
- - DACHER
3191
- - AURA
3192
- - FINN
3193
- - SIENNA
3194
- - WILLOW
3195
- - SCOUT
3196
- - WHIMSY
3197
- - ACE
3198
- - JUNO
3199
- - STELLA
3200
- - HIRO
3201
- - SUNNY
3202
- source:
3203
- openapi: assistant-openapi.json
@@ -543,12 +543,22 @@ service:
543
543
  path-parameters:
544
544
  id:
545
545
  type: string
546
- docs: Identifier for a chat. Formatted as a UUID.
546
+ docs: Identifier for a Chat Group. Formatted as a UUID.
547
547
  display-name: Get chat group audio
548
548
  request:
549
549
  name: ChatGroupsGetAudioRequest
550
550
  query-parameters:
551
551
  page_number:
552
+ type: optional<integer>
553
+ docs: >-
554
+ Specifies the maximum number of results to include per page,
555
+ enabling pagination. The value must be between 1 and 100,
556
+ inclusive.
557
+
558
+
559
+ For example, if `page_size` is set to 10, each page will include
560
+ up to 10 items. Defaults to 10.
561
+ page_size:
552
562
  type: optional<integer>
553
563
  docs: >-
554
564
  Specifies the page number to retrieve, enabling pagination.
@@ -559,22 +569,14 @@ service:
559
569
  if `page_size` is 10), setting `page_number` to 1 retrieves the
560
570
  second page (items 10-19), and so on. Defaults to 0, which
561
571
  retrieves the first page.
562
- page_size:
563
- type: optional<integer>
564
- docs: >-
565
- Specifies the maximum number of results to include per page,
566
- enabling pagination. The value must be between 1 and 100,
567
- inclusive.
568
-
569
-
570
- For example, if `page_size` is set to 10, each page will include
571
- up to 10 items. Defaults to 10.
572
572
  ascending_order:
573
573
  type: optional<boolean>
574
574
  docs: >-
575
- Boolean to indicate if the results should be paginated in
576
- chronological order or reverse-chronological order. Defaults to
577
- true.
575
+ Specifies the sorting order of the results based on their creation
576
+ date. Set to true for ascending order (chronological, with the
577
+ oldest records first) and false for descending order
578
+ (reverse-chronological, with the newest records first). Defaults
579
+ to true.
578
580
  response:
579
581
  docs: Success
580
582
  type: root.ReturnChatGroupPagedAudioReconstructions
@@ -47,6 +47,11 @@ service:
47
47
  oldest records first) and false for descending order
48
48
  (reverse-chronological, with the newest records first). Defaults
49
49
  to true.
50
+ config_id:
51
+ type: optional<string>
52
+ docs: Filter to only include chats that used this config.
53
+ validation:
54
+ format: uuid
50
55
  response:
51
56
  docs: Success
52
57
  type: root.ReturnPagedChats
@@ -198,6 +198,9 @@ service:
198
198
  docs: List of built-in tools associated with this Config.
199
199
  event_messages: optional<root.PostedEventMessageSpecs>
200
200
  timeouts: optional<root.PostedTimeoutSpecs>
201
+ webhooks:
202
+ type: optional<list<optional<root.PostedWebhookSpec>>>
203
+ docs: Webhook config specifications for each subscriber.
201
204
  content-type: application/json
202
205
  response:
203
206
  docs: Created
@@ -491,6 +494,9 @@ service:
491
494
  docs: List of built-in tools associated with this Config version.
492
495
  event_messages: optional<root.PostedEventMessageSpecs>
493
496
  timeouts: optional<root.PostedTimeoutSpecs>
497
+ webhooks:
498
+ type: optional<list<optional<root.PostedWebhookSpec>>>
499
+ docs: Webhook config specifications for each subscriber.
494
500
  content-type: application/json
495
501
  response:
496
502
  docs: Created
package/Client.d.ts CHANGED
@@ -1,6 +1,4 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
1
+ /** THIS FILE IS MANUALLY MAINAINED: see .fernignore */
4
2
  import * as environments from "./environments";
5
3
  import * as core from "./core";
6
4
  import { ExpressionMeasurement } from "./api/resources/expressionMeasurement/client/Client";
package/Client.js CHANGED
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ /** THIS FILE IS MANUALLY MAINAINED: see .fernignore */
5
3
  Object.defineProperty(exports, "__esModule", { value: true });
6
4
  exports.HumeClient = void 0;
7
5
  const Client_1 = require("./api/resources/expressionMeasurement/client/Client");
@@ -1,10 +1,9 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
1
+ /** THIS FILE IS MANUALLY MAINAINED: see .fernignore */
4
2
  import * as environments from "../../../../environments";
5
3
  import * as core from "../../../../core";
6
4
  import { Tools } from "../resources/tools/client/Client";
7
5
  import { Prompts } from "../resources/prompts/client/Client";
6
+ import { CustomVoices } from "../resources/customVoices/client/Client";
8
7
  import { Configs } from "../resources/configs/client/Client";
9
8
  import { Chats } from "../resources/chats/client/Client";
10
9
  import { ChatGroups } from "../resources/chatGroups/client/Client";
@@ -32,6 +31,8 @@ export declare class EmpathicVoice {
32
31
  get tools(): Tools;
33
32
  protected _prompts: Prompts | undefined;
34
33
  get prompts(): Prompts;
34
+ protected _customVoices: CustomVoices | undefined;
35
+ get customVoices(): CustomVoices;
35
36
  protected _configs: Configs | undefined;
36
37
  get configs(): Configs;
37
38
  protected _chats: Chats | undefined;
@@ -1,15 +1,14 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ /** THIS FILE IS MANUALLY MAINAINED: see .fernignore */
5
3
  Object.defineProperty(exports, "__esModule", { value: true });
6
4
  exports.EmpathicVoice = void 0;
7
5
  const Client_1 = require("../resources/tools/client/Client");
8
6
  const Client_2 = require("../resources/prompts/client/Client");
9
- const Client_3 = require("../resources/configs/client/Client");
10
- const Client_4 = require("../resources/chats/client/Client");
11
- const Client_5 = require("../resources/chatGroups/client/Client");
12
- const Client_6 = require("../resources/chat/client/Client");
7
+ const Client_3 = require("../resources/customVoices/client/Client");
8
+ const Client_4 = require("../resources/configs/client/Client");
9
+ const Client_5 = require("../resources/chats/client/Client");
10
+ const Client_6 = require("../resources/chatGroups/client/Client");
11
+ const Client_7 = require("../resources/chat/client/Client");
13
12
  class EmpathicVoice {
14
13
  constructor(_options = {}) {
15
14
  this._options = _options;
@@ -22,21 +21,25 @@ class EmpathicVoice {
22
21
  var _a;
23
22
  return ((_a = this._prompts) !== null && _a !== void 0 ? _a : (this._prompts = new Client_2.Prompts(this._options)));
24
23
  }
24
+ get customVoices() {
25
+ var _a;
26
+ return ((_a = this._customVoices) !== null && _a !== void 0 ? _a : (this._customVoices = new Client_3.CustomVoices(this._options)));
27
+ }
25
28
  get configs() {
26
29
  var _a;
27
- return ((_a = this._configs) !== null && _a !== void 0 ? _a : (this._configs = new Client_3.Configs(this._options)));
30
+ return ((_a = this._configs) !== null && _a !== void 0 ? _a : (this._configs = new Client_4.Configs(this._options)));
28
31
  }
29
32
  get chats() {
30
33
  var _a;
31
- return ((_a = this._chats) !== null && _a !== void 0 ? _a : (this._chats = new Client_4.Chats(this._options)));
34
+ return ((_a = this._chats) !== null && _a !== void 0 ? _a : (this._chats = new Client_5.Chats(this._options)));
32
35
  }
33
36
  get chatGroups() {
34
37
  var _a;
35
- return ((_a = this._chatGroups) !== null && _a !== void 0 ? _a : (this._chatGroups = new Client_5.ChatGroups(this._options)));
38
+ return ((_a = this._chatGroups) !== null && _a !== void 0 ? _a : (this._chatGroups = new Client_6.ChatGroups(this._options)));
36
39
  }
37
40
  get chat() {
38
41
  var _a;
39
- return ((_a = this._chat) !== null && _a !== void 0 ? _a : (this._chat = new Client_6.Chat(this._options)));
42
+ return ((_a = this._chat) !== null && _a !== void 0 ? _a : (this._chat = new Client_7.Chat(this._options)));
40
43
  }
41
44
  }
42
45
  exports.EmpathicVoice = EmpathicVoice;
@@ -1,3 +1,4 @@
1
+ /** THIS FILE IS MANUALLY MAINAINED: see .fernignore */
1
2
  import * as environments from "../../../../../../environments";
2
3
  import * as core from "../../../../../../core";
3
4
  import { ChatSocket } from "./Socket";
@@ -27,6 +27,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.Chat = void 0;
30
+ /** THIS FILE IS MANUALLY MAINAINED: see .fernignore */
30
31
  const environments = __importStar(require("../../../../../../environments"));
31
32
  const core = __importStar(require("../../../../../../core"));
32
33
  const qs_1 = __importDefault(require("qs"));
@@ -1,3 +1,4 @@
1
+ /** THIS FILE IS MANUALLY MAINAINED: see .fernignore */
1
2
  import * as core from "../../../../../../core";
2
3
  import * as Hume from "../../../../../index";
3
4
  export declare namespace ChatSocket {
@@ -33,6 +33,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
33
33
  };
34
34
  Object.defineProperty(exports, "__esModule", { value: true });
35
35
  exports.ChatSocket = void 0;
36
+ /** THIS FILE IS MANUALLY MAINAINED: see .fernignore */
36
37
  const core = __importStar(require("../../../../../../core"));
37
38
  const errors = __importStar(require("../../../../../../errors"));
38
39
  const serializers = __importStar(require("../../../../../../serialization/index"));
@@ -1,2 +1,3 @@
1
+ /** THIS FILE IS MANUALLY MAINAINED: see .fernignore */
1
2
  export { ChatSocket } from "./Socket";
2
3
  export { Chat } from "./Client";
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Chat = exports.ChatSocket = void 0;
4
+ /** THIS FILE IS MANUALLY MAINAINED: see .fernignore */
4
5
  var Socket_1 = require("./Socket");
5
6
  Object.defineProperty(exports, "ChatSocket", { enumerable: true, get: function () { return Socket_1.ChatSocket; } });
6
7
  var Client_1 = require("./Client");
@@ -1,2 +1,3 @@
1
+ /** THIS FILE IS MANUALLY MAINAINED: see .fernignore */
1
2
  export * from "./types";
2
3
  export * from "./client";
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ /** THIS FILE IS MANUALLY MAINAINED: see .fernignore */
17
18
  __exportStar(require("./types"), exports);
18
19
  __exportStar(require("./client"), exports);
@@ -76,7 +76,7 @@ export declare class ChatGroups {
76
76
  /**
77
77
  * Fetches a paginated list of audio for each **Chat** within the specified **Chat Group**. For more details, see our guide on audio reconstruction [here](/docs/empathic-voice-interface-evi/faq#can-i-access-the-audio-of-previous-conversations-with-evi).
78
78
  *
79
- * @param {string} id - Identifier for a chat. Formatted as a UUID.
79
+ * @param {string} id - Identifier for a Chat Group. Formatted as a UUID.
80
80
  * @param {Hume.empathicVoice.ChatGroupsGetAudioRequest} request
81
81
  * @param {ChatGroups.RequestOptions} requestOptions - Request-specific configuration.
82
82
  *
@@ -85,7 +85,7 @@ class ChatGroups {
85
85
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
86
86
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/chat_groups"),
87
87
  method: "GET",
88
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.8", "User-Agent": "hume/0.9.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
88
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "hume/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
89
89
  contentType: "application/json",
90
90
  queryParameters: _queryParams,
91
91
  requestType: "json",
@@ -165,7 +165,7 @@ class ChatGroups {
165
165
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
166
166
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/chat_groups/${encodeURIComponent(id)}`),
167
167
  method: "GET",
168
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.8", "User-Agent": "hume/0.9.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
168
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "hume/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
169
169
  contentType: "application/json",
170
170
  queryParameters: _queryParams,
171
171
  requestType: "json",
@@ -245,7 +245,7 @@ class ChatGroups {
245
245
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
246
246
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/chat_groups/${encodeURIComponent(id)}/events`),
247
247
  method: "GET",
248
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.8", "User-Agent": "hume/0.9.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
248
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "hume/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
249
249
  contentType: "application/json",
250
250
  queryParameters: _queryParams,
251
251
  requestType: "json",
@@ -295,7 +295,7 @@ class ChatGroups {
295
295
  /**
296
296
  * Fetches a paginated list of audio for each **Chat** within the specified **Chat Group**. For more details, see our guide on audio reconstruction [here](/docs/empathic-voice-interface-evi/faq#can-i-access-the-audio-of-previous-conversations-with-evi).
297
297
  *
298
- * @param {string} id - Identifier for a chat. Formatted as a UUID.
298
+ * @param {string} id - Identifier for a Chat Group. Formatted as a UUID.
299
299
  * @param {Hume.empathicVoice.ChatGroupsGetAudioRequest} request
300
300
  * @param {ChatGroups.RequestOptions} requestOptions - Request-specific configuration.
301
301
  *
@@ -325,7 +325,7 @@ class ChatGroups {
325
325
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
326
326
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/chat_groups/${encodeURIComponent(id)}/audio`),
327
327
  method: "GET",
328
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.8", "User-Agent": "hume/0.9.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
328
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "hume/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
329
329
  contentType: "application/json",
330
330
  queryParameters: _queryParams,
331
331
  requestType: "json",
@@ -11,19 +11,19 @@
11
11
  */
12
12
  export interface ChatGroupsGetAudioRequest {
13
13
  /**
14
- * Specifies the page number to retrieve, enabling pagination.
14
+ * Specifies the maximum number of results to include per page, enabling pagination. The value must be between 1 and 100, inclusive.
15
15
  *
16
- * This parameter uses zero-based indexing. For example, setting `page_number` to 0 retrieves the first page of results (items 0-9 if `page_size` is 10), setting `page_number` to 1 retrieves the second page (items 10-19), and so on. Defaults to 0, which retrieves the first page.
16
+ * For example, if `page_size` is set to 10, each page will include up to 10 items. Defaults to 10.
17
17
  */
18
18
  pageNumber?: number;
19
19
  /**
20
- * Specifies the maximum number of results to include per page, enabling pagination. The value must be between 1 and 100, inclusive.
20
+ * Specifies the page number to retrieve, enabling pagination.
21
21
  *
22
- * For example, if `page_size` is set to 10, each page will include up to 10 items. Defaults to 10.
22
+ * This parameter uses zero-based indexing. For example, setting `page_number` to 0 retrieves the first page of results (items 0-9 if `page_size` is 10), setting `page_number` to 1 retrieves the second page (items 10-19), and so on. Defaults to 0, which retrieves the first page.
23
23
  */
24
24
  pageSize?: number;
25
25
  /**
26
- * Boolean to indicate if the results should be paginated in chronological order or reverse-chronological order. Defaults to true.
26
+ * Specifies the sorting order of the results based on their creation date. Set to true for ascending order (chronological, with the oldest records first) and false for descending order (reverse-chronological, with the newest records first). Defaults to true.
27
27
  */
28
28
  ascendingOrder?: boolean;
29
29
  }
@@ -68,7 +68,7 @@ class Chats {
68
68
  return __awaiter(this, void 0, void 0, function* () {
69
69
  const list = (request) => __awaiter(this, void 0, void 0, function* () {
70
70
  var _a, _b;
71
- const { pageNumber, pageSize, ascendingOrder } = request;
71
+ const { pageNumber, pageSize, ascendingOrder, configId } = request;
72
72
  const _queryParams = {};
73
73
  if (pageNumber != null) {
74
74
  _queryParams["page_number"] = pageNumber.toString();
@@ -79,10 +79,13 @@ class Chats {
79
79
  if (ascendingOrder != null) {
80
80
  _queryParams["ascending_order"] = ascendingOrder.toString();
81
81
  }
82
+ if (configId != null) {
83
+ _queryParams["config_id"] = configId;
84
+ }
82
85
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
83
86
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/chats"),
84
87
  method: "GET",
85
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.8", "User-Agent": "hume/0.9.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
88
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "hume/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
86
89
  contentType: "application/json",
87
90
  queryParameters: _queryParams,
88
91
  requestType: "json",
@@ -174,7 +177,7 @@ class Chats {
174
177
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
175
178
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/chats/${encodeURIComponent(id)}`),
176
179
  method: "GET",
177
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.8", "User-Agent": "hume/0.9.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
180
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "hume/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
178
181
  contentType: "application/json",
179
182
  queryParameters: _queryParams,
180
183
  requestType: "json",
@@ -249,7 +252,7 @@ class Chats {
249
252
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
250
253
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/chats/${encodeURIComponent(id)}/audio`),
251
254
  method: "GET",
252
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.8", "User-Agent": "hume/0.9.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
255
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "hume/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
253
256
  contentType: "application/json",
254
257
  requestType: "json",
255
258
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -26,4 +26,8 @@ export interface ChatsListChatsRequest {
26
26
  * Specifies the sorting order of the results based on their creation date. Set to true for ascending order (chronological, with the oldest records first) and false for descending order (reverse-chronological, with the newest records first). Defaults to true.
27
27
  */
28
28
  ascendingOrder?: boolean;
29
+ /**
30
+ * Filter to only include chats that used this config.
31
+ */
32
+ configId?: string;
29
33
  }
@@ -85,7 +85,7 @@ class Configs {
85
85
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
86
86
  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"),
87
87
  method: "GET",
88
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.8", "User-Agent": "hume/0.9.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
88
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "hume/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
89
89
  contentType: "application/json",
90
90
  queryParameters: _queryParams,
91
91
  requestType: "json",
@@ -181,7 +181,7 @@ class Configs {
181
181
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
182
182
  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"),
183
183
  method: "POST",
184
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.8", "User-Agent": "hume/0.9.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
184
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "hume/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
185
185
  contentType: "application/json",
186
186
  requestType: "json",
187
187
  body: serializers.empathicVoice.PostedConfig.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -259,7 +259,7 @@ class Configs {
259
259
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
260
260
  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)}`),
261
261
  method: "GET",
262
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.8", "User-Agent": "hume/0.9.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
262
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "hume/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
263
263
  contentType: "application/json",
264
264
  queryParameters: _queryParams,
265
265
  requestType: "json",
@@ -359,7 +359,7 @@ class Configs {
359
359
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
360
360
  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)}`),
361
361
  method: "POST",
362
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.8", "User-Agent": "hume/0.9.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
362
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "hume/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
363
363
  contentType: "application/json",
364
364
  requestType: "json",
365
365
  body: serializers.empathicVoice.PostedConfigVersion.jsonOrThrow(request, {
@@ -427,7 +427,7 @@ class Configs {
427
427
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
428
428
  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)}`),
429
429
  method: "DELETE",
430
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.8", "User-Agent": "hume/0.9.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
430
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "hume/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
431
431
  contentType: "application/json",
432
432
  requestType: "json",
433
433
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -490,7 +490,7 @@ class Configs {
490
490
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
491
491
  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)}`),
492
492
  method: "PATCH",
493
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.8", "User-Agent": "hume/0.9.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
493
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "hume/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
494
494
  contentType: "application/json",
495
495
  requestType: "json",
496
496
  body: serializers.empathicVoice.PostedConfigName.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -557,7 +557,7 @@ class Configs {
557
557
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
558
558
  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)}`),
559
559
  method: "GET",
560
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.8", "User-Agent": "hume/0.9.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
560
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "hume/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
561
561
  contentType: "application/json",
562
562
  requestType: "json",
563
563
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -627,7 +627,7 @@ class Configs {
627
627
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
628
628
  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)}`),
629
629
  method: "DELETE",
630
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.8", "User-Agent": "hume/0.9.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
630
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "hume/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
631
631
  contentType: "application/json",
632
632
  requestType: "json",
633
633
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -695,7 +695,7 @@ class Configs {
695
695
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
696
696
  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)}`),
697
697
  method: "PATCH",
698
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.8", "User-Agent": "hume/0.9.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
698
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "hume/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
699
699
  contentType: "application/json",
700
700
  requestType: "json",
701
701
  body: serializers.empathicVoice.PostedConfigVersionDescription.jsonOrThrow(request, {
@@ -64,4 +64,6 @@ export interface PostedConfig {
64
64
  builtinTools?: (Hume.empathicVoice.PostedBuiltinTool | undefined)[];
65
65
  eventMessages?: Hume.empathicVoice.PostedEventMessageSpecs;
66
66
  timeouts?: Hume.empathicVoice.PostedTimeoutSpecs;
67
+ /** Webhook config specifications for each subscriber. */
68
+ webhooks?: (Hume.empathicVoice.PostedWebhookSpec | undefined)[];
67
69
  }
@@ -65,4 +65,6 @@ export interface PostedConfigVersion {
65
65
  builtinTools?: (Hume.empathicVoice.PostedBuiltinTool | undefined)[];
66
66
  eventMessages?: Hume.empathicVoice.PostedEventMessageSpecs;
67
67
  timeouts?: Hume.empathicVoice.PostedTimeoutSpecs;
68
+ /** Webhook config specifications for each subscriber. */
69
+ webhooks?: (Hume.empathicVoice.PostedWebhookSpec | undefined)[];
68
70
  }