hume 0.9.7 → 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.
- package/.mock/definition/empathic-voice/__package__.yml +40 -51
- package/.mock/definition/empathic-voice/chatGroups.yml +16 -14
- 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 +8 -5
- 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/index.d.ts +4 -3
- package/api/resources/empathicVoice/types/index.js +4 -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 +8 -5
- 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/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/index.d.ts +4 -3
- package/dist/api/resources/empathicVoice/types/index.js +4 -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/index.d.ts +4 -3
- package/dist/serialization/resources/empathicVoice/types/index.js +4 -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/{VoiceNameEnum.js → PostedWebhookEventType.js} +2 -17
- 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/{dist/serialization/resources/empathicVoice/types/VoiceNameEnum.js → serialization/resources/empathicVoice/types/ReturnWebhookEventType.js} +2 -17
- package/serialization/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +14 -0
- package/serialization/resources/empathicVoice/types/ReturnWebhookSpec.js +35 -0
- package/serialization/resources/empathicVoice/types/index.d.ts +4 -3
- package/serialization/resources/empathicVoice/types/index.js +4 -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/ReturnActiveChatCount.js +0 -38
- package/dist/serialization/resources/empathicVoice/types/ReturnActiveChatCountPerTag.d.ts +0 -13
- package/dist/serialization/resources/empathicVoice/types/VoiceNameEnum.d.ts +0 -10
- package/serialization/resources/empathicVoice/types/ReturnActiveChatCount.d.ts +0 -17
- package/serialization/resources/empathicVoice/types/ReturnActiveChatCount.js +0 -38
- package/serialization/resources/empathicVoice/types/ReturnActiveChatCountPerTag.d.ts +0 -13
- package/serialization/resources/empathicVoice/types/VoiceNameEnum.d.ts +0 -10
- /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 → PostedWebhookSpec.js} +0 -0
- /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
|
|
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
|
|
@@ -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"));
|
|
@@ -47,19 +48,21 @@ class Chat {
|
|
|
47
48
|
else if (this._options.apiKey != null) {
|
|
48
49
|
queryParams["apiKey"] = this._options.apiKey;
|
|
49
50
|
}
|
|
50
|
-
if (args.configId
|
|
51
|
+
if (args.configId !== null && args.configId !== undefined && args.configId !== "") {
|
|
51
52
|
queryParams["config_id"] = args.configId;
|
|
52
53
|
}
|
|
53
|
-
if (args.configVersion
|
|
54
|
+
if (args.configVersion !== null && args.configVersion !== undefined && args.configVersion !== "") {
|
|
54
55
|
queryParams["config_version"] = args.configVersion;
|
|
55
56
|
}
|
|
56
|
-
if (args.resumedChatGroupId
|
|
57
|
+
if (args.resumedChatGroupId !== null &&
|
|
58
|
+
args.resumedChatGroupId !== undefined &&
|
|
59
|
+
args.resumedChatGroupId !== "") {
|
|
57
60
|
queryParams["resumed_chat_group_id"] = args.resumedChatGroupId;
|
|
58
61
|
}
|
|
59
|
-
if (args.verboseTranscription
|
|
62
|
+
if (args.verboseTranscription !== null) {
|
|
60
63
|
queryParams["verbose_transcription"] = args.verboseTranscription ? "true" : "false";
|
|
61
64
|
}
|
|
62
|
-
if (args.queryParams
|
|
65
|
+
if (args.queryParams !== null && args.queryParams !== undefined) {
|
|
63
66
|
for (const [name, value] of Object.entries(args.queryParams)) {
|
|
64
67
|
queryParams[name] = value;
|
|
65
68
|
}
|
|
@@ -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.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.
|
|
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.
|
|
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
|
|
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.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
|
|
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.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.
|
|
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.
|
|
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,
|
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
|
}
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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, {
|