hume 0.9.8 → 0.9.10
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.
- package/.mock/definition/empathic-voice/__package__.yml +121 -48
- package/.mock/definition/empathic-voice/chatGroups.yml +16 -14
- package/.mock/definition/empathic-voice/chatWebhooks.yml +21 -0
- package/.mock/definition/empathic-voice/chats.yml +5 -0
- package/.mock/definition/empathic-voice/configs.yml +6 -0
- package/Client.d.ts +1 -3
- package/Client.js +1 -3
- package/api/resources/empathicVoice/client/Client.d.ts +4 -3
- package/api/resources/empathicVoice/client/Client.js +14 -11
- package/api/resources/empathicVoice/resources/chat/client/Client.d.ts +1 -0
- package/api/resources/empathicVoice/resources/chat/client/Client.js +1 -0
- package/api/resources/empathicVoice/resources/chat/client/Socket.d.ts +1 -0
- package/api/resources/empathicVoice/resources/chat/client/Socket.js +1 -0
- package/api/resources/empathicVoice/resources/chat/client/index.d.ts +1 -0
- package/api/resources/empathicVoice/resources/chat/client/index.js +1 -0
- package/api/resources/empathicVoice/resources/chat/index.d.ts +1 -0
- package/api/resources/empathicVoice/resources/chat/index.js +1 -0
- package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +1 -1
- package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +5 -5
- package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetAudioRequest.d.ts +5 -5
- package/api/resources/empathicVoice/resources/chats/client/Client.js +7 -4
- package/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +4 -0
- package/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -0
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -0
- package/api/resources/empathicVoice/resources/customVoices/client/Client.js +6 -6
- package/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
- package/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
- package/api/resources/empathicVoice/types/PostedWebhookEventType.d.ts +11 -0
- package/api/resources/empathicVoice/types/PostedWebhookEventType.js +10 -0
- package/api/resources/empathicVoice/types/PostedWebhookSpec.d.ts +13 -0
- package/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +2 -0
- package/api/resources/empathicVoice/types/ReturnConfig.d.ts +2 -0
- package/api/resources/empathicVoice/types/ReturnWebhookEventType.d.ts +11 -0
- package/api/resources/empathicVoice/types/ReturnWebhookEventType.js +10 -0
- package/api/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +13 -0
- package/api/resources/empathicVoice/types/WebhookEvent.d.ts +5 -0
- package/api/resources/empathicVoice/types/WebhookEventBase.d.ts +14 -0
- package/api/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +13 -0
- package/api/resources/empathicVoice/types/WebhookEventChatEnded.js +5 -0
- package/api/resources/empathicVoice/types/WebhookEventChatStartType.d.ts +8 -0
- package/api/resources/empathicVoice/types/WebhookEventChatStartType.js +10 -0
- package/api/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +16 -0
- package/api/resources/empathicVoice/types/WebhookEventChatStarted.js +5 -0
- package/api/resources/empathicVoice/types/WebhookEventChatStatus.d.ts +12 -0
- package/api/resources/empathicVoice/types/WebhookEventChatStatus.js +14 -0
- package/api/resources/empathicVoice/types/index.d.ts +10 -3
- package/api/resources/empathicVoice/types/index.js +10 -3
- package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
- package/api/resources/index.d.ts +1 -1
- package/api/resources/index.js +2 -2
- package/core/fetcher/Supplier.d.ts +1 -0
- package/core/index.d.ts +1 -0
- package/core/index.js +1 -0
- package/core/websocket/events.d.ts +1 -0
- package/core/websocket/events.js +1 -0
- package/core/websocket/index.d.ts +1 -0
- package/core/websocket/index.js +1 -0
- package/core/websocket/ws.js +1 -0
- package/dist/Client.d.ts +1 -3
- package/dist/Client.js +1 -3
- package/dist/api/resources/empathicVoice/client/Client.d.ts +4 -3
- package/dist/api/resources/empathicVoice/client/Client.js +14 -11
- package/dist/api/resources/empathicVoice/resources/chat/client/Client.d.ts +1 -0
- package/dist/api/resources/empathicVoice/resources/chat/client/Client.js +1 -0
- package/dist/api/resources/empathicVoice/resources/chat/client/Socket.d.ts +1 -0
- package/dist/api/resources/empathicVoice/resources/chat/client/Socket.js +1 -0
- package/dist/api/resources/empathicVoice/resources/chat/client/index.d.ts +1 -0
- package/dist/api/resources/empathicVoice/resources/chat/client/index.js +1 -0
- package/dist/api/resources/empathicVoice/resources/chat/index.d.ts +1 -0
- package/dist/api/resources/empathicVoice/resources/chat/index.js +1 -0
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +5 -5
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetAudioRequest.d.ts +5 -5
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +7 -4
- package/dist/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +4 -0
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -0
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -0
- package/dist/api/resources/empathicVoice/resources/customVoices/client/Client.js +6 -6
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
- package/dist/api/resources/empathicVoice/types/PostedWebhookEventType.d.ts +11 -0
- package/dist/api/resources/empathicVoice/types/PostedWebhookEventType.js +10 -0
- package/dist/api/resources/empathicVoice/types/PostedWebhookSpec.d.ts +13 -0
- package/dist/api/resources/empathicVoice/types/PostedWebhookSpec.js +5 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +2 -0
- package/dist/api/resources/empathicVoice/types/ReturnConfig.d.ts +2 -0
- package/dist/api/resources/empathicVoice/types/ReturnWebhookEventType.d.ts +11 -0
- package/dist/api/resources/empathicVoice/types/ReturnWebhookEventType.js +10 -0
- package/dist/api/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +13 -0
- package/dist/api/resources/empathicVoice/types/ReturnWebhookSpec.js +5 -0
- package/dist/api/resources/empathicVoice/types/WebhookEvent.d.ts +5 -0
- package/dist/api/resources/empathicVoice/types/WebhookEvent.js +5 -0
- package/dist/api/resources/empathicVoice/types/WebhookEventBase.d.ts +14 -0
- package/dist/api/resources/empathicVoice/types/WebhookEventBase.js +5 -0
- package/dist/api/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +13 -0
- package/dist/api/resources/empathicVoice/types/WebhookEventChatEnded.js +5 -0
- package/dist/api/resources/empathicVoice/types/WebhookEventChatStartType.d.ts +8 -0
- package/dist/api/resources/empathicVoice/types/WebhookEventChatStartType.js +10 -0
- package/dist/api/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +16 -0
- package/dist/api/resources/empathicVoice/types/WebhookEventChatStarted.js +5 -0
- package/dist/api/resources/empathicVoice/types/WebhookEventChatStatus.d.ts +12 -0
- package/dist/api/resources/empathicVoice/types/WebhookEventChatStatus.js +14 -0
- package/dist/api/resources/empathicVoice/types/index.d.ts +10 -3
- package/dist/api/resources/empathicVoice/types/index.js +10 -3
- package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
- package/dist/api/resources/index.d.ts +1 -1
- package/dist/api/resources/index.js +2 -2
- package/dist/core/fetcher/Supplier.d.ts +1 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.js +1 -0
- package/dist/core/websocket/events.d.ts +1 -0
- package/dist/core/websocket/events.js +1 -0
- package/dist/core/websocket/index.d.ts +1 -0
- package/dist/core/websocket/index.js +1 -0
- package/dist/core/websocket/ws.js +1 -0
- package/dist/errors/HumeError.d.ts +1 -3
- package/dist/errors/HumeError.js +1 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -0
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +2 -0
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -0
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +2 -0
- package/dist/serialization/resources/empathicVoice/types/PostedWebhookEventType.d.ts +10 -0
- package/{serialization/resources/empathicVoice/types/ReturnActiveChatCountPerTag.js → dist/serialization/resources/empathicVoice/types/PostedWebhookEventType.js} +2 -5
- package/dist/serialization/resources/empathicVoice/types/PostedWebhookSpec.d.ts +14 -0
- package/dist/serialization/resources/empathicVoice/types/PostedWebhookSpec.js +35 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatGroup.d.ts +2 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatGroup.js +2 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +2 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnConfig.js +2 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnWebhookEventType.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/{ReturnActiveChatCountPerTag.js → ReturnWebhookEventType.js} +2 -5
- package/dist/serialization/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +14 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnWebhookSpec.js +35 -0
- package/dist/serialization/resources/empathicVoice/types/WebhookEvent.d.ts +12 -0
- package/dist/serialization/resources/empathicVoice/types/WebhookEvent.js +33 -0
- package/dist/serialization/resources/empathicVoice/types/WebhookEventBase.d.ts +14 -0
- package/dist/serialization/resources/empathicVoice/types/WebhookEventBase.js +35 -0
- package/dist/serialization/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +19 -0
- package/dist/serialization/resources/empathicVoice/types/WebhookEventChatEnded.js +42 -0
- package/dist/serialization/resources/empathicVoice/types/{VoiceNameEnum.d.ts → WebhookEventChatStartType.d.ts} +3 -3
- package/dist/serialization/resources/empathicVoice/types/WebhookEventChatStartType.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +18 -0
- package/dist/serialization/resources/empathicVoice/types/{ReturnActiveChatCount.js → WebhookEventChatStarted.js} +12 -9
- package/dist/serialization/resources/empathicVoice/types/WebhookEventChatStatus.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/{VoiceNameEnum.js → WebhookEventChatStatus.js} +8 -16
- package/dist/serialization/resources/empathicVoice/types/index.d.ts +10 -3
- package/dist/serialization/resources/empathicVoice/types/index.js +10 -3
- package/dist/serialization/resources/index.d.ts +1 -1
- package/dist/serialization/resources/index.js +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/convertBase64ToBlob.d.ts +1 -1
- package/errors/HumeError.d.ts +1 -3
- package/errors/HumeError.js +1 -3
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +1 -1
- package/reference.md +538 -538
- package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -0
- package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +2 -0
- package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -0
- package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +2 -0
- package/serialization/resources/empathicVoice/types/PostedWebhookEventType.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/PostedWebhookEventType.js +31 -0
- package/serialization/resources/empathicVoice/types/PostedWebhookSpec.d.ts +14 -0
- package/serialization/resources/empathicVoice/types/PostedWebhookSpec.js +35 -0
- package/serialization/resources/empathicVoice/types/ReturnChatGroup.d.ts +2 -0
- package/serialization/resources/empathicVoice/types/ReturnChatGroup.js +2 -0
- package/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +2 -0
- package/serialization/resources/empathicVoice/types/ReturnConfig.js +2 -0
- package/serialization/resources/empathicVoice/types/ReturnWebhookEventType.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnWebhookEventType.js +31 -0
- package/serialization/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +14 -0
- package/serialization/resources/empathicVoice/types/ReturnWebhookSpec.js +35 -0
- package/serialization/resources/empathicVoice/types/WebhookEvent.d.ts +12 -0
- package/serialization/resources/empathicVoice/types/WebhookEvent.js +33 -0
- package/serialization/resources/empathicVoice/types/WebhookEventBase.d.ts +14 -0
- package/serialization/resources/empathicVoice/types/WebhookEventBase.js +35 -0
- package/serialization/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +19 -0
- package/serialization/resources/empathicVoice/types/WebhookEventChatEnded.js +42 -0
- package/serialization/resources/empathicVoice/types/{VoiceNameEnum.d.ts → WebhookEventChatStartType.d.ts} +3 -3
- package/serialization/resources/empathicVoice/types/WebhookEventChatStartType.js +31 -0
- package/serialization/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +18 -0
- package/serialization/resources/empathicVoice/types/{ReturnActiveChatCount.js → WebhookEventChatStarted.js} +12 -9
- package/serialization/resources/empathicVoice/types/WebhookEventChatStatus.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/{VoiceNameEnum.js → WebhookEventChatStatus.js} +8 -16
- package/serialization/resources/empathicVoice/types/index.d.ts +10 -3
- package/serialization/resources/empathicVoice/types/index.js +10 -3
- package/serialization/resources/index.d.ts +1 -1
- package/serialization/resources/index.js +2 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/convertBase64ToBlob.d.ts +1 -1
- package/api/resources/empathicVoice/types/ReturnActiveChatCount.d.ts +0 -19
- package/api/resources/empathicVoice/types/ReturnActiveChatCountPerTag.d.ts +0 -12
- package/api/resources/empathicVoice/types/VoiceNameEnum.d.ts +0 -20
- package/api/resources/empathicVoice/types/VoiceNameEnum.js +0 -22
- package/dist/api/resources/empathicVoice/types/ReturnActiveChatCount.d.ts +0 -19
- package/dist/api/resources/empathicVoice/types/ReturnActiveChatCountPerTag.d.ts +0 -12
- package/dist/api/resources/empathicVoice/types/VoiceNameEnum.d.ts +0 -20
- package/dist/api/resources/empathicVoice/types/VoiceNameEnum.js +0 -22
- package/dist/serialization/resources/empathicVoice/types/ReturnActiveChatCount.d.ts +0 -17
- package/dist/serialization/resources/empathicVoice/types/ReturnActiveChatCountPerTag.d.ts +0 -13
- package/serialization/resources/empathicVoice/types/ReturnActiveChatCount.d.ts +0 -17
- package/serialization/resources/empathicVoice/types/ReturnActiveChatCountPerTag.d.ts +0 -13
- /package/api/resources/empathicVoice/types/{ReturnActiveChatCount.js → PostedWebhookSpec.js} +0 -0
- /package/api/resources/empathicVoice/types/{ReturnActiveChatCountPerTag.js → ReturnWebhookSpec.js} +0 -0
- /package/{dist/api/resources/empathicVoice/types/ReturnActiveChatCount.js → api/resources/empathicVoice/types/WebhookEvent.js} +0 -0
- /package/{dist/api/resources/empathicVoice/types/ReturnActiveChatCountPerTag.js → api/resources/empathicVoice/types/WebhookEventBase.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,87 @@ types:
|
|
|
3183
3190
|
type: string
|
|
3184
3191
|
source:
|
|
3185
3192
|
openapi: assistant-openapi.json
|
|
3186
|
-
|
|
3193
|
+
WebhookEventChatEnded:
|
|
3194
|
+
properties:
|
|
3195
|
+
event_name:
|
|
3196
|
+
type: optional<literal<"chat_ended">>
|
|
3197
|
+
docs: Always `chat_ended`.
|
|
3198
|
+
end_time: integer
|
|
3199
|
+
duration_seconds: integer
|
|
3200
|
+
end_reason:
|
|
3201
|
+
type: WebhookEventChatStatus
|
|
3202
|
+
caller_number: optional<string>
|
|
3203
|
+
custom_session_id: optional<string>
|
|
3204
|
+
extends:
|
|
3205
|
+
- WebhookEventBase
|
|
3206
|
+
source:
|
|
3207
|
+
openapi: assistant-openapi.json
|
|
3208
|
+
WebhookEventChatStartType:
|
|
3187
3209
|
enum:
|
|
3188
|
-
-
|
|
3189
|
-
-
|
|
3190
|
-
|
|
3191
|
-
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3210
|
+
- new_chat_group
|
|
3211
|
+
- resumed_chat_group
|
|
3212
|
+
source:
|
|
3213
|
+
openapi: assistant-openapi.json
|
|
3214
|
+
WebhookEventChatStarted:
|
|
3215
|
+
properties:
|
|
3216
|
+
event_name:
|
|
3217
|
+
type: optional<literal<"chat_started">>
|
|
3218
|
+
docs: Always `chat_started`.
|
|
3219
|
+
start_time:
|
|
3220
|
+
type: integer
|
|
3221
|
+
docs: Unix timestamp (in milliseconds) indicating when the session started.
|
|
3222
|
+
chat_start_type:
|
|
3223
|
+
type: WebhookEventChatStartType
|
|
3224
|
+
docs: >-
|
|
3225
|
+
Indicates whether the chat is the first in a new Chat Group
|
|
3226
|
+
(`new_chat_group`) or the continuation of an existing chat group
|
|
3227
|
+
(`resumed_chat_group`).
|
|
3228
|
+
caller_number:
|
|
3229
|
+
type: optional<string>
|
|
3230
|
+
docs: >-
|
|
3231
|
+
Phone number of the caller in E.164 format (e.g., `+12223333333`).
|
|
3232
|
+
This field is included only if the Chat was created via the [Twilio
|
|
3233
|
+
phone calling](/docs/empathic-voice-interface-evi/phone-calling)
|
|
3234
|
+
integration.
|
|
3235
|
+
custom_session_id:
|
|
3236
|
+
type: optional<string>
|
|
3237
|
+
docs: >-
|
|
3238
|
+
User-defined session ID. Relevant only when employing a [custom
|
|
3239
|
+
language
|
|
3240
|
+
model](/docs/empathic-voice-interface-evi/custom-language-model) in
|
|
3241
|
+
the EVI Config.
|
|
3242
|
+
extends:
|
|
3243
|
+
- WebhookEventBase
|
|
3244
|
+
source:
|
|
3245
|
+
openapi: assistant-openapi.json
|
|
3246
|
+
WebhookEventChatStatus:
|
|
3247
|
+
enum:
|
|
3248
|
+
- ACTIVE
|
|
3249
|
+
- USER_ENDED
|
|
3250
|
+
- USER_TIMEOUT
|
|
3251
|
+
- INACTIVITY_TIMEOUT
|
|
3252
|
+
- MAX_DURATION_TIMEOUT
|
|
3253
|
+
- ERROR
|
|
3254
|
+
source:
|
|
3255
|
+
openapi: assistant-openapi.json
|
|
3256
|
+
WebhookEvent:
|
|
3257
|
+
discriminated: false
|
|
3258
|
+
union:
|
|
3259
|
+
- WebhookEventChatStarted
|
|
3260
|
+
- WebhookEventChatEnded
|
|
3261
|
+
source:
|
|
3262
|
+
openapi: assistant-openapi.json
|
|
3263
|
+
WebhookEventBase:
|
|
3264
|
+
docs: Represents the fields common to all webhook events.
|
|
3265
|
+
properties:
|
|
3266
|
+
chat_group_id:
|
|
3267
|
+
type: string
|
|
3268
|
+
docs: Unique ID of the **Chat Group** associated with the **Chat** session.
|
|
3269
|
+
chat_id:
|
|
3270
|
+
type: string
|
|
3271
|
+
docs: Unique ID of the **Chat** session.
|
|
3272
|
+
config_id:
|
|
3273
|
+
type: optional<string>
|
|
3274
|
+
docs: Unique ID of the EVI **Config** used for the session.
|
|
3202
3275
|
source:
|
|
3203
3276
|
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
|
|
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
|
-
|
|
576
|
-
|
|
577
|
-
|
|
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
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
imports:
|
|
2
|
+
root: __package__.yml
|
|
3
|
+
webhooks:
|
|
4
|
+
chatWebhook:
|
|
5
|
+
method: POST
|
|
6
|
+
display-name: Chat Webhook
|
|
7
|
+
headers: {}
|
|
8
|
+
payload: root.WebhookEvent
|
|
9
|
+
examples:
|
|
10
|
+
- payload:
|
|
11
|
+
chat_group_id: chat_group_id
|
|
12
|
+
chat_id: chat_id
|
|
13
|
+
start_time: 1
|
|
14
|
+
chat_start_type: new_chat_group
|
|
15
|
+
docs: >-
|
|
16
|
+
Webhook events are JSON payloads to your server during an EVI chat. You
|
|
17
|
+
can subscribe to specific events, and set which URLs should be notified in
|
|
18
|
+
the
|
|
19
|
+
[Config](/reference/empathic-voice-interface-evi/configs/create-config#request.body.webhooks)
|
|
20
|
+
resource. Read the [Webhook
|
|
21
|
+
Guide](/docs/empathic-voice-interface-evi/webhooks) for more information.
|
|
@@ -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/
|
|
10
|
-
const Client_4 = require("../resources/
|
|
11
|
-
const Client_5 = require("../resources/
|
|
12
|
-
const Client_6 = require("../resources/
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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;
|
|
@@ -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"));
|
|
@@ -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,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");
|
|
@@ -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
|
|
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.
|
|
88
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.10", "User-Agent": "hume/0.9.10", "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.
|
|
168
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.10", "User-Agent": "hume/0.9.10", "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.
|
|
248
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.10", "User-Agent": "hume/0.9.10", "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
|
|
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.
|
|
328
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.10", "User-Agent": "hume/0.9.10", "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
|
|
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
|
-
*
|
|
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
|
|
20
|
+
* Specifies the page number to retrieve, enabling pagination.
|
|
21
21
|
*
|
|
22
|
-
* For example, if `page_size` is
|
|
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
|
-
*
|
|
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.
|
|
88
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.10", "User-Agent": "hume/0.9.10", "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.
|
|
180
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.10", "User-Agent": "hume/0.9.10", "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.
|
|
255
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.10", "User-Agent": "hume/0.9.10", "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,
|
package/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts
CHANGED
|
@@ -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
|
}
|