hume 0.15.6 → 0.15.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/Client.js +4 -1
  3. package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetChatGroupRequest.d.ts +2 -0
  4. package/dist/cjs/api/resources/empathicVoice/resources/chats/client/Client.js +4 -1
  5. package/dist/cjs/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +2 -0
  6. package/dist/cjs/api/resources/empathicVoice/types/AssistantEnd.d.ts +1 -1
  7. package/dist/cjs/api/resources/empathicVoice/types/AssistantInput.d.ts +3 -1
  8. package/dist/cjs/api/resources/empathicVoice/types/AssistantMessage.d.ts +3 -1
  9. package/dist/cjs/api/resources/empathicVoice/types/AssistantProsody.d.ts +1 -1
  10. package/dist/cjs/api/resources/empathicVoice/types/AudioInput.d.ts +4 -6
  11. package/dist/cjs/api/resources/empathicVoice/types/AudioOutput.d.ts +3 -1
  12. package/dist/cjs/api/resources/empathicVoice/types/ChatMetadata.d.ts +3 -1
  13. package/dist/cjs/api/resources/empathicVoice/types/ConnectSessionSettings.d.ts +4 -2
  14. package/dist/cjs/api/resources/empathicVoice/types/ControlPlanePublishEvent.d.ts +19 -7
  15. package/dist/cjs/api/resources/empathicVoice/types/JsonMessage.d.ts +30 -11
  16. package/dist/cjs/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +3 -1
  17. package/dist/cjs/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +3 -1
  18. package/dist/cjs/api/resources/empathicVoice/types/SessionSettings.d.ts +3 -1
  19. package/dist/cjs/api/resources/empathicVoice/types/SubscribeEvent.d.ts +33 -12
  20. package/dist/cjs/api/resources/empathicVoice/types/ToolCallMessage.d.ts +3 -1
  21. package/dist/cjs/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +3 -1
  22. package/dist/cjs/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +3 -1
  23. package/dist/cjs/api/resources/empathicVoice/types/UserInput.d.ts +2 -6
  24. package/dist/cjs/api/resources/empathicVoice/types/UserInterruption.d.ts +3 -1
  25. package/dist/cjs/api/resources/empathicVoice/types/UserMessage.d.ts +3 -1
  26. package/dist/cjs/api/resources/empathicVoice/types/WebSocketError.d.ts +3 -1
  27. package/dist/cjs/api/resources/tts/client/requests/ConvertVoiceFileRequest.d.ts +1 -1
  28. package/dist/cjs/api/resources/tts/client/requests/ConvertVoiceJsonRequest.d.ts +1 -1
  29. package/dist/cjs/api/resources/tts/resources/voices/client/Client.js +9 -1
  30. package/dist/cjs/api/resources/tts/resources/voices/client/requests/VoicesListRequest.d.ts +1 -0
  31. package/dist/cjs/serialization/resources/empathicVoice/types/AssistantMessage.d.ts +1 -0
  32. package/dist/cjs/serialization/resources/empathicVoice/types/AssistantMessage.js +1 -0
  33. package/dist/cjs/serialization/resources/empathicVoice/types/ConnectSessionSettings.d.ts +1 -1
  34. package/dist/cjs/serialization/resources/empathicVoice/types/ConnectSessionSettings.js +1 -1
  35. package/dist/cjs/serialization/resources/empathicVoice/types/JsonMessage.d.ts +2 -1
  36. package/dist/cjs/serialization/resources/empathicVoice/types/JsonMessage.js +2 -0
  37. package/dist/cjs/serialization/resources/empathicVoice/types/SubscribeEvent.d.ts +2 -1
  38. package/dist/cjs/serialization/resources/empathicVoice/types/SubscribeEvent.js +2 -0
  39. package/dist/cjs/version.d.ts +1 -1
  40. package/dist/cjs/version.js +1 -1
  41. package/dist/cjs/wrapper/expressionMeasurement/batch/BatchClient.d.ts +1 -0
  42. package/dist/cjs/wrapper/expressionMeasurement/batch/BatchClient.js +9 -1
  43. package/dist/esm/Client.mjs +2 -2
  44. package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/Client.mjs +4 -1
  45. package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetChatGroupRequest.d.mts +2 -0
  46. package/dist/esm/api/resources/empathicVoice/resources/chats/client/Client.mjs +4 -1
  47. package/dist/esm/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.mts +2 -0
  48. package/dist/esm/api/resources/empathicVoice/types/AssistantEnd.d.mts +1 -1
  49. package/dist/esm/api/resources/empathicVoice/types/AssistantInput.d.mts +3 -1
  50. package/dist/esm/api/resources/empathicVoice/types/AssistantMessage.d.mts +3 -1
  51. package/dist/esm/api/resources/empathicVoice/types/AssistantProsody.d.mts +1 -1
  52. package/dist/esm/api/resources/empathicVoice/types/AudioInput.d.mts +4 -6
  53. package/dist/esm/api/resources/empathicVoice/types/AudioOutput.d.mts +3 -1
  54. package/dist/esm/api/resources/empathicVoice/types/ChatMetadata.d.mts +3 -1
  55. package/dist/esm/api/resources/empathicVoice/types/ConnectSessionSettings.d.mts +4 -2
  56. package/dist/esm/api/resources/empathicVoice/types/ControlPlanePublishEvent.d.mts +19 -7
  57. package/dist/esm/api/resources/empathicVoice/types/JsonMessage.d.mts +30 -11
  58. package/dist/esm/api/resources/empathicVoice/types/PauseAssistantMessage.d.mts +3 -1
  59. package/dist/esm/api/resources/empathicVoice/types/ResumeAssistantMessage.d.mts +3 -1
  60. package/dist/esm/api/resources/empathicVoice/types/SessionSettings.d.mts +3 -1
  61. package/dist/esm/api/resources/empathicVoice/types/SubscribeEvent.d.mts +33 -12
  62. package/dist/esm/api/resources/empathicVoice/types/ToolCallMessage.d.mts +3 -1
  63. package/dist/esm/api/resources/empathicVoice/types/ToolErrorMessage.d.mts +3 -1
  64. package/dist/esm/api/resources/empathicVoice/types/ToolResponseMessage.d.mts +3 -1
  65. package/dist/esm/api/resources/empathicVoice/types/UserInput.d.mts +2 -6
  66. package/dist/esm/api/resources/empathicVoice/types/UserInterruption.d.mts +3 -1
  67. package/dist/esm/api/resources/empathicVoice/types/UserMessage.d.mts +3 -1
  68. package/dist/esm/api/resources/empathicVoice/types/WebSocketError.d.mts +3 -1
  69. package/dist/esm/api/resources/tts/client/requests/ConvertVoiceFileRequest.d.mts +1 -1
  70. package/dist/esm/api/resources/tts/client/requests/ConvertVoiceJsonRequest.d.mts +1 -1
  71. package/dist/esm/api/resources/tts/resources/voices/client/Client.mjs +9 -1
  72. package/dist/esm/api/resources/tts/resources/voices/client/requests/VoicesListRequest.d.mts +1 -0
  73. package/dist/esm/serialization/resources/empathicVoice/types/AssistantMessage.d.mts +1 -0
  74. package/dist/esm/serialization/resources/empathicVoice/types/AssistantMessage.mjs +1 -0
  75. package/dist/esm/serialization/resources/empathicVoice/types/ConnectSessionSettings.d.mts +1 -1
  76. package/dist/esm/serialization/resources/empathicVoice/types/ConnectSessionSettings.mjs +1 -1
  77. package/dist/esm/serialization/resources/empathicVoice/types/JsonMessage.d.mts +2 -1
  78. package/dist/esm/serialization/resources/empathicVoice/types/JsonMessage.mjs +2 -0
  79. package/dist/esm/serialization/resources/empathicVoice/types/SubscribeEvent.d.mts +2 -1
  80. package/dist/esm/serialization/resources/empathicVoice/types/SubscribeEvent.mjs +2 -0
  81. package/dist/esm/version.d.mts +1 -1
  82. package/dist/esm/version.mjs +1 -1
  83. package/dist/esm/wrapper/expressionMeasurement/batch/BatchClient.d.mts +1 -0
  84. package/dist/esm/wrapper/expressionMeasurement/batch/BatchClient.mjs +9 -1
  85. package/package.json +1 -1
@@ -35,7 +35,7 @@ export class Voices {
35
35
  return __awaiter(this, void 0, void 0, function* () {
36
36
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
37
37
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
38
- const { provider, pageNumber, pageSize, ascendingOrder } = request;
38
+ const { provider, pageNumber, pageSize, ascendingOrder, filterTag } = request;
39
39
  const _queryParams = {};
40
40
  _queryParams.provider = serializers.tts.VoiceProvider.jsonOrThrow(provider, {
41
41
  unrecognizedObjectKeys: "strip",
@@ -50,6 +50,14 @@ export class Voices {
50
50
  if (ascendingOrder != null) {
51
51
  _queryParams.ascending_order = ascendingOrder.toString();
52
52
  }
53
+ if (filterTag != null) {
54
+ if (Array.isArray(filterTag)) {
55
+ _queryParams.filter_tag = filterTag.map((item) => item);
56
+ }
57
+ else {
58
+ _queryParams.filter_tag = filterTag;
59
+ }
60
+ }
53
61
  const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
54
62
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
55
63
  url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HumeEnvironment.Prod)
@@ -26,4 +26,5 @@ export interface VoicesListRequest {
26
26
  */
27
27
  pageSize?: number;
28
28
  ascendingOrder?: boolean;
29
+ filterTag?: string | string[];
29
30
  }
@@ -9,6 +9,7 @@ export declare namespace AssistantMessage {
9
9
  custom_session_id?: string | null;
10
10
  from_text: boolean;
11
11
  id?: string | null;
12
+ is_quick_response: boolean;
12
13
  language?: string | null;
13
14
  message: ChatMessage.Raw;
14
15
  models: Inference.Raw;
@@ -6,6 +6,7 @@ export const AssistantMessage = core.serialization.object({
6
6
  customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
7
7
  fromText: core.serialization.property("from_text", core.serialization.boolean()),
8
8
  id: core.serialization.string().optional(),
9
+ isQuickResponse: core.serialization.property("is_quick_response", core.serialization.boolean()),
9
10
  language: core.serialization.string().optional(),
10
11
  message: ChatMessage,
11
12
  models: Inference,
@@ -13,7 +13,7 @@ export declare namespace ConnectSessionSettings {
13
13
  event_limit?: number | null;
14
14
  language_model_api_key?: string | null;
15
15
  system_prompt?: string | null;
16
- variables?: Record<string, ConnectSessionSettingsVariablesValue.Raw> | null;
17
16
  voice_id?: string | null;
17
+ variables?: Record<string, ConnectSessionSettingsVariablesValue.Raw> | null;
18
18
  }
19
19
  }
@@ -10,6 +10,6 @@ export const ConnectSessionSettings = core.serialization.object({
10
10
  eventLimit: core.serialization.property("event_limit", core.serialization.number().optional()),
11
11
  languageModelApiKey: core.serialization.property("language_model_api_key", core.serialization.string().optional()),
12
12
  systemPrompt: core.serialization.property("system_prompt", core.serialization.string().optional()),
13
- variables: core.serialization.record(core.serialization.string(), ConnectSessionSettingsVariablesValue).optional(),
14
13
  voiceId: core.serialization.property("voice_id", core.serialization.string().optional()),
14
+ variables: core.serialization.record(core.serialization.string(), ConnectSessionSettingsVariablesValue).optional(),
15
15
  });
@@ -5,6 +5,7 @@ import { AssistantEnd } from "./AssistantEnd.mjs";
5
5
  import { AssistantMessage } from "./AssistantMessage.mjs";
6
6
  import { AssistantProsody } from "./AssistantProsody.mjs";
7
7
  import { ChatMetadata } from "./ChatMetadata.mjs";
8
+ import { SessionSettings } from "./SessionSettings.mjs";
8
9
  import { ToolCallMessage } from "./ToolCallMessage.mjs";
9
10
  import { ToolErrorMessage } from "./ToolErrorMessage.mjs";
10
11
  import { ToolResponseMessage } from "./ToolResponseMessage.mjs";
@@ -13,5 +14,5 @@ import { UserMessage } from "./UserMessage.mjs";
13
14
  import { WebSocketError } from "./WebSocketError.mjs";
14
15
  export declare const JsonMessage: core.serialization.Schema<serializers.empathicVoice.JsonMessage.Raw, Hume.empathicVoice.JsonMessage>;
15
16
  export declare namespace JsonMessage {
16
- type Raw = AssistantEnd.Raw | AssistantMessage.Raw | AssistantProsody.Raw | ChatMetadata.Raw | WebSocketError.Raw | UserInterruption.Raw | UserMessage.Raw | ToolCallMessage.Raw | ToolResponseMessage.Raw | ToolErrorMessage.Raw;
17
+ type Raw = AssistantEnd.Raw | AssistantMessage.Raw | AssistantProsody.Raw | ChatMetadata.Raw | WebSocketError.Raw | UserInterruption.Raw | UserMessage.Raw | ToolCallMessage.Raw | ToolResponseMessage.Raw | ToolErrorMessage.Raw | SessionSettings.Raw;
17
18
  }
@@ -4,6 +4,7 @@ import { AssistantEnd } from "./AssistantEnd.mjs";
4
4
  import { AssistantMessage } from "./AssistantMessage.mjs";
5
5
  import { AssistantProsody } from "./AssistantProsody.mjs";
6
6
  import { ChatMetadata } from "./ChatMetadata.mjs";
7
+ import { SessionSettings } from "./SessionSettings.mjs";
7
8
  import { ToolCallMessage } from "./ToolCallMessage.mjs";
8
9
  import { ToolErrorMessage } from "./ToolErrorMessage.mjs";
9
10
  import { ToolResponseMessage } from "./ToolResponseMessage.mjs";
@@ -21,4 +22,5 @@ export const JsonMessage = core.serialization.undiscriminatedUnion([
21
22
  ToolCallMessage,
22
23
  ToolResponseMessage,
23
24
  ToolErrorMessage,
25
+ SessionSettings,
24
26
  ]);
@@ -6,6 +6,7 @@ import { AssistantMessage } from "./AssistantMessage.mjs";
6
6
  import { AssistantProsody } from "./AssistantProsody.mjs";
7
7
  import { AudioOutput } from "./AudioOutput.mjs";
8
8
  import { ChatMetadata } from "./ChatMetadata.mjs";
9
+ import { SessionSettings } from "./SessionSettings.mjs";
9
10
  import { ToolCallMessage } from "./ToolCallMessage.mjs";
10
11
  import { ToolErrorMessage } from "./ToolErrorMessage.mjs";
11
12
  import { ToolResponseMessage } from "./ToolResponseMessage.mjs";
@@ -14,5 +15,5 @@ import { UserMessage } from "./UserMessage.mjs";
14
15
  import { WebSocketError } from "./WebSocketError.mjs";
15
16
  export declare const SubscribeEvent: core.serialization.Schema<serializers.empathicVoice.SubscribeEvent.Raw, Hume.empathicVoice.SubscribeEvent>;
16
17
  export declare namespace SubscribeEvent {
17
- type Raw = AssistantEnd.Raw | AssistantMessage.Raw | AssistantProsody.Raw | AudioOutput.Raw | ChatMetadata.Raw | WebSocketError.Raw | UserInterruption.Raw | UserMessage.Raw | ToolCallMessage.Raw | ToolResponseMessage.Raw | ToolErrorMessage.Raw;
18
+ type Raw = AssistantEnd.Raw | AssistantMessage.Raw | AssistantProsody.Raw | AudioOutput.Raw | ChatMetadata.Raw | WebSocketError.Raw | UserInterruption.Raw | UserMessage.Raw | ToolCallMessage.Raw | ToolResponseMessage.Raw | ToolErrorMessage.Raw | SessionSettings.Raw;
18
19
  }
@@ -5,6 +5,7 @@ import { AssistantMessage } from "./AssistantMessage.mjs";
5
5
  import { AssistantProsody } from "./AssistantProsody.mjs";
6
6
  import { AudioOutput } from "./AudioOutput.mjs";
7
7
  import { ChatMetadata } from "./ChatMetadata.mjs";
8
+ import { SessionSettings } from "./SessionSettings.mjs";
8
9
  import { ToolCallMessage } from "./ToolCallMessage.mjs";
9
10
  import { ToolErrorMessage } from "./ToolErrorMessage.mjs";
10
11
  import { ToolResponseMessage } from "./ToolResponseMessage.mjs";
@@ -23,4 +24,5 @@ export const SubscribeEvent = core.serialization.undiscriminatedUnion([
23
24
  ToolCallMessage,
24
25
  ToolResponseMessage,
25
26
  ToolErrorMessage,
27
+ SessionSettings,
26
28
  ]);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.15.6";
1
+ export declare const SDK_VERSION = "0.15.8";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.15.6";
1
+ export const SDK_VERSION = "0.15.8";
@@ -4,4 +4,5 @@ import { Job } from "./Job.mjs";
4
4
  import * as core from "../../../core/index.mjs";
5
5
  export declare class BatchClient extends FernClient {
6
6
  startInferenceJob(request?: Hume.expressionMeasurement.batch.InferenceBaseRequest, requestOptions?: FernClient.RequestOptions): core.HttpResponsePromise<Job>;
7
+ startInferenceJobFromLocalFile(request: Hume.expressionMeasurement.batch.BatchStartInferenceJobFromLocalFileRequest, requestOptions?: FernClient.RequestOptions): core.HttpResponsePromise<Job>;
7
8
  }
@@ -3,7 +3,7 @@ import * as Hume from "../../../api/index.mjs";
3
3
  import { Job } from "./Job.mjs";
4
4
  import * as core from "../../../core/index.mjs";
5
5
  export class BatchClient extends FernClient {
6
- // This just wraps the return value of the base class's `startInferenceJob` method
6
+ // This just wraps the return value of the base class's `startInferenceJob` and `startInferenceJobFromLocalFile` methods
7
7
  // and returns a `Job` instance (has helper functions to await the job's result) instead of a raw job ID.
8
8
  startInferenceJob(request = {}, requestOptions) {
9
9
  return core.HttpResponsePromise.fromPromise(super
@@ -13,4 +13,12 @@ export class BatchClient extends FernClient {
13
13
  return { data: new Job(result.data.jobId, this), rawResponse: result.rawResponse };
14
14
  }));
15
15
  }
16
+ startInferenceJobFromLocalFile(request, requestOptions) {
17
+ return core.HttpResponsePromise.fromPromise(super
18
+ .startInferenceJobFromLocalFile(request, requestOptions)
19
+ .withRawResponse()
20
+ .then((result) => {
21
+ return { data: new Job(result.data.jobId, this), rawResponse: result.rawResponse };
22
+ }));
23
+ }
16
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hume",
3
- "version": "0.15.6",
3
+ "version": "0.15.8",
4
4
  "private": false,
5
5
  "repository": "github:humeai/hume-typescript-sdk",
6
6
  "type": "commonjs",