hume 0.9.0 → 0.9.2

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 (44) hide show
  1. package/.mock/definition/empathic-voice/__package__.yml +1 -1
  2. package/.prettierignore +1 -0
  3. package/api/resources/empathicVoice/resources/chat/client/Socket.d.ts +4 -1
  4. package/api/resources/empathicVoice/resources/chat/client/Socket.js +6 -1
  5. package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +3 -3
  6. package/api/resources/empathicVoice/resources/chats/client/Client.js +2 -2
  7. package/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
  8. package/api/resources/empathicVoice/resources/customVoices/client/Client.js +6 -6
  9. package/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
  10. package/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
  11. package/api/resources/empathicVoice/types/ReturnVoice.d.ts +1 -1
  12. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  13. package/api/resources/index.d.ts +1 -1
  14. package/api/resources/index.js +2 -2
  15. package/dist/api/resources/empathicVoice/resources/chat/client/Socket.d.ts +4 -1
  16. package/dist/api/resources/empathicVoice/resources/chat/client/Socket.js +6 -1
  17. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +3 -3
  18. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +2 -2
  19. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
  20. package/dist/api/resources/empathicVoice/resources/customVoices/client/Client.js +6 -6
  21. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
  22. package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
  23. package/dist/api/resources/empathicVoice/types/ReturnVoice.d.ts +1 -1
  24. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  25. package/dist/api/resources/index.d.ts +1 -1
  26. package/dist/api/resources/index.js +2 -2
  27. package/dist/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +1 -1
  28. package/dist/serialization/resources/empathicVoice/types/ReturnVoice.js +1 -1
  29. package/dist/serialization/resources/index.d.ts +1 -1
  30. package/dist/serialization/resources/index.js +2 -2
  31. package/dist/version.d.ts +1 -1
  32. package/dist/version.js +1 -1
  33. package/dist/wrapper/HumeClient.d.ts +7 -3
  34. package/dist/wrapper/HumeClient.js +2 -2
  35. package/package.json +1 -1
  36. package/reference.md +566 -566
  37. package/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +1 -1
  38. package/serialization/resources/empathicVoice/types/ReturnVoice.js +1 -1
  39. package/serialization/resources/index.d.ts +1 -1
  40. package/serialization/resources/index.js +2 -2
  41. package/version.d.ts +1 -1
  42. package/version.js +1 -1
  43. package/wrapper/HumeClient.d.ts +7 -3
  44. package/wrapper/HumeClient.js +2 -2
@@ -10,6 +10,6 @@ export declare namespace ReturnVoice {
10
10
  interface Raw {
11
11
  provider: "HUME_AI";
12
12
  name?: string | null;
13
- custom_voice: ReturnCustomVoice.Raw;
13
+ custom_voice?: ReturnCustomVoice.Raw | null;
14
14
  }
15
15
  }
@@ -32,5 +32,5 @@ const ReturnCustomVoice_1 = require("./ReturnCustomVoice");
32
32
  exports.ReturnVoice = core.serialization.object({
33
33
  provider: core.serialization.stringLiteral("HUME_AI"),
34
34
  name: core.serialization.string().optional(),
35
- customVoice: core.serialization.property("custom_voice", ReturnCustomVoice_1.ReturnCustomVoice),
35
+ customVoice: core.serialization.property("custom_voice", ReturnCustomVoice_1.ReturnCustomVoice.optional()),
36
36
  });
@@ -1,2 +1,2 @@
1
- export * as empathicVoice from "./empathicVoice";
2
1
  export * as expressionMeasurement from "./expressionMeasurement";
2
+ export * as empathicVoice from "./empathicVoice";
@@ -23,6 +23,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.expressionMeasurement = exports.empathicVoice = void 0;
27
- exports.empathicVoice = __importStar(require("./empathicVoice"));
26
+ exports.empathicVoice = exports.expressionMeasurement = void 0;
28
27
  exports.expressionMeasurement = __importStar(require("./expressionMeasurement"));
28
+ exports.empathicVoice = __importStar(require("./empathicVoice"));
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.8.11";
1
+ export declare const SDK_VERSION = "0.9.1";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.8.11";
4
+ exports.SDK_VERSION = "0.9.1";
@@ -1,13 +1,17 @@
1
1
  import { HumeClient as FernClient } from "../Client";
2
2
  import { ExpressionMeasurement } from "./expressionMeasurement/ExpressionMeasurementClient";
3
3
  export declare namespace HumeClient {
4
- interface Options extends FernClient.Options {
4
+ type Options = FernClient.Options & {
5
5
  secretKey?: string;
6
- }
6
+ } & ({
7
+ accessToken: NonNullable<FernClient.Options["accessToken"]>;
8
+ } | {
9
+ apiKey: NonNullable<FernClient.Options["apiKey"]>;
10
+ });
7
11
  }
8
12
  export declare class HumeClient extends FernClient {
9
13
  protected readonly _options: HumeClient.Options;
10
- constructor(_options?: HumeClient.Options);
14
+ constructor(_options: HumeClient.Options);
11
15
  protected _expressionMeasurement: ExpressionMeasurement | undefined;
12
16
  get expressionMeasurement(): ExpressionMeasurement;
13
17
  }
@@ -4,8 +4,8 @@ exports.HumeClient = void 0;
4
4
  const Client_1 = require("../Client");
5
5
  const ExpressionMeasurementClient_1 = require("./expressionMeasurement/ExpressionMeasurementClient");
6
6
  class HumeClient extends Client_1.HumeClient {
7
- constructor(_options = {}) {
8
- super(_options);
7
+ constructor(_options) {
8
+ super(_options || {});
9
9
  this._options = _options;
10
10
  }
11
11
  get expressionMeasurement() {