hume 0.8.5 → 0.8.6

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 (185) hide show
  1. package/.mock/definition/empathic-voice/__package__.yml +35 -34
  2. package/.mock/definition/empathic-voice/chatGroups.yml +338 -27
  3. package/.mock/definition/empathic-voice/chats.yml +353 -36
  4. package/.mock/definition/empathic-voice/configs.yml +282 -210
  5. package/.mock/definition/empathic-voice/prompts.yml +140 -64
  6. package/.mock/definition/empathic-voice/tools.yml +11 -8
  7. package/.mock/definition/expression-measurement/__package__.yml +203 -59
  8. package/.mock/definition/expression-measurement/batch.yml +64 -35
  9. package/.mock/fern.config.json +1 -1
  10. package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +11 -2
  11. package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +13 -4
  12. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +7 -3
  13. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +8 -3
  14. package/api/resources/empathicVoice/resources/chats/client/Client.d.ts +12 -4
  15. package/api/resources/empathicVoice/resources/chats/client/Client.js +128 -96
  16. package/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts +7 -3
  17. package/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +7 -3
  18. package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +74 -10
  19. package/api/resources/empathicVoice/resources/configs/client/Client.js +83 -19
  20. package/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigVersionsRequest.d.ts +2 -2
  21. package/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.ts +6 -3
  22. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +28 -1
  23. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.d.ts +1 -1
  24. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +33 -1
  25. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.ts +3 -1
  26. package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +19 -13
  27. package/api/resources/empathicVoice/resources/prompts/client/Client.js +89 -70
  28. package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +2 -2
  29. package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.d.ts +1 -1
  30. package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +2 -1
  31. package/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.d.ts +3 -1
  32. package/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptVersionsRequest.d.ts +2 -2
  33. package/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.ts +6 -3
  34. package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +1 -1
  35. package/api/resources/empathicVoice/resources/tools/client/Client.js +71 -58
  36. package/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolVersionsRequest.d.ts +2 -2
  37. package/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolsRequest.d.ts +2 -2
  38. package/api/resources/empathicVoice/types/AudioInput.d.ts +4 -2
  39. package/api/resources/empathicVoice/types/JsonMessage.d.ts +1 -1
  40. package/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +4 -4
  41. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +11 -19
  42. package/api/resources/expressionMeasurement/resources/batch/client/requests/BatchListJobsRequest.d.ts +25 -9
  43. package/api/resources/expressionMeasurement/resources/batch/client/requests/BatchStartInferenceJobFromLocalFileRequest.d.ts +1 -0
  44. package/api/resources/expressionMeasurement/types/{UnionJobJobInference.d.ts → CustomModelsInferenceJob.d.ts} +2 -1
  45. package/api/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.d.ts → CustomModelsTrainingJob.d.ts} +2 -1
  46. package/api/resources/expressionMeasurement/types/EmbeddingGenerationJob.d.ts +7 -0
  47. package/api/resources/expressionMeasurement/types/Face.d.ts +5 -0
  48. package/api/resources/expressionMeasurement/types/File_.d.ts +3 -0
  49. package/api/resources/expressionMeasurement/types/Granularity.d.ts +9 -1
  50. package/api/resources/expressionMeasurement/types/InferenceBaseRequest.d.ts +6 -1
  51. package/api/resources/expressionMeasurement/types/InferenceJob.d.ts +12 -0
  52. package/api/resources/expressionMeasurement/types/JobInference.d.ts +3 -0
  53. package/api/resources/expressionMeasurement/types/Language.d.ts +5 -0
  54. package/api/resources/expressionMeasurement/types/Models.d.ts +3 -0
  55. package/api/resources/expressionMeasurement/types/Ner.d.ts +5 -0
  56. package/api/resources/expressionMeasurement/types/Prosody.d.ts +5 -0
  57. package/api/resources/expressionMeasurement/types/Transcription.d.ts +40 -0
  58. package/api/resources/expressionMeasurement/types/UnionJob.d.ts +1 -15
  59. package/api/resources/expressionMeasurement/types/UnionPredictResult.d.ts +1 -1
  60. package/api/resources/expressionMeasurement/types/Window.d.ts +5 -0
  61. package/api/resources/expressionMeasurement/types/index.d.ts +4 -4
  62. package/api/resources/expressionMeasurement/types/index.js +4 -4
  63. package/api/resources/index.d.ts +1 -1
  64. package/api/resources/index.js +2 -2
  65. package/core/index.d.ts +1 -0
  66. package/core/index.js +1 -0
  67. package/core/pagination/Page.d.ts +29 -0
  68. package/core/pagination/Page.js +94 -0
  69. package/core/pagination/Pageable.d.ts +12 -0
  70. package/core/pagination/Pageable.js +10 -0
  71. package/core/pagination/index.d.ts +2 -0
  72. package/core/pagination/index.js +7 -0
  73. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +11 -2
  74. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +13 -4
  75. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +7 -3
  76. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +8 -3
  77. package/dist/api/resources/empathicVoice/resources/chats/client/Client.d.ts +12 -4
  78. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +128 -96
  79. package/dist/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatEventsRequest.d.ts +7 -3
  80. package/dist/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +7 -3
  81. package/dist/api/resources/empathicVoice/resources/configs/client/Client.d.ts +74 -10
  82. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +83 -19
  83. package/dist/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigVersionsRequest.d.ts +2 -2
  84. package/dist/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.ts +6 -3
  85. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +28 -1
  86. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigName.d.ts +1 -1
  87. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +33 -1
  88. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersionDescription.d.ts +3 -1
  89. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +19 -13
  90. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +89 -70
  91. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPrompt.d.ts +2 -2
  92. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptName.d.ts +1 -1
  93. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersion.d.ts +2 -1
  94. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PostedPromptVersionDescription.d.ts +3 -1
  95. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptVersionsRequest.d.ts +2 -2
  96. package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.ts +6 -3
  97. package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +1 -1
  98. package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +71 -58
  99. package/dist/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolVersionsRequest.d.ts +2 -2
  100. package/dist/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolsRequest.d.ts +2 -2
  101. package/dist/api/resources/empathicVoice/types/AudioInput.d.ts +4 -2
  102. package/dist/api/resources/empathicVoice/types/JsonMessage.d.ts +1 -1
  103. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.d.ts +4 -4
  104. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +11 -19
  105. package/dist/api/resources/expressionMeasurement/resources/batch/client/requests/BatchListJobsRequest.d.ts +25 -9
  106. package/dist/api/resources/expressionMeasurement/resources/batch/client/requests/BatchStartInferenceJobFromLocalFileRequest.d.ts +1 -0
  107. package/{api/resources/expressionMeasurement/types/UnionJobJobTraining.d.ts → dist/api/resources/expressionMeasurement/types/CustomModelsInferenceJob.d.ts} +2 -1
  108. package/{api/resources/expressionMeasurement/types/UnionJobJobTlInference.d.ts → dist/api/resources/expressionMeasurement/types/CustomModelsTrainingJob.d.ts} +2 -1
  109. package/dist/api/resources/expressionMeasurement/types/EmbeddingGenerationJob.d.ts +7 -0
  110. package/dist/api/resources/expressionMeasurement/types/Face.d.ts +5 -0
  111. package/dist/api/resources/expressionMeasurement/types/File_.d.ts +3 -0
  112. package/dist/api/resources/expressionMeasurement/types/Granularity.d.ts +9 -1
  113. package/dist/api/resources/expressionMeasurement/types/InferenceBaseRequest.d.ts +6 -1
  114. package/dist/api/resources/expressionMeasurement/types/InferenceJob.d.ts +12 -0
  115. package/dist/api/resources/expressionMeasurement/types/JobInference.d.ts +3 -0
  116. package/dist/api/resources/expressionMeasurement/types/Language.d.ts +5 -0
  117. package/dist/api/resources/expressionMeasurement/types/Models.d.ts +3 -0
  118. package/dist/api/resources/expressionMeasurement/types/Ner.d.ts +5 -0
  119. package/dist/api/resources/expressionMeasurement/types/Prosody.d.ts +5 -0
  120. package/dist/api/resources/expressionMeasurement/types/Transcription.d.ts +40 -0
  121. package/dist/api/resources/expressionMeasurement/types/UnionJob.d.ts +1 -15
  122. package/dist/api/resources/expressionMeasurement/types/UnionPredictResult.d.ts +1 -1
  123. package/dist/api/resources/expressionMeasurement/types/Window.d.ts +5 -0
  124. package/dist/api/resources/expressionMeasurement/types/index.d.ts +4 -4
  125. package/dist/api/resources/expressionMeasurement/types/index.js +4 -4
  126. package/dist/api/resources/index.d.ts +1 -1
  127. package/dist/api/resources/index.js +2 -2
  128. package/dist/core/index.d.ts +1 -0
  129. package/dist/core/index.js +1 -0
  130. package/dist/core/pagination/Page.d.ts +29 -0
  131. package/dist/core/pagination/Page.js +94 -0
  132. package/dist/core/pagination/Pageable.d.ts +12 -0
  133. package/dist/core/pagination/Pageable.js +10 -0
  134. package/dist/core/pagination/index.d.ts +2 -0
  135. package/dist/core/pagination/index.js +7 -0
  136. package/dist/serialization/resources/empathicVoice/types/JsonMessage.d.ts +2 -1
  137. package/dist/serialization/resources/empathicVoice/types/JsonMessage.js +2 -0
  138. package/{serialization/resources/expressionMeasurement/types/UnionJobJobTlInference.d.ts → dist/serialization/resources/expressionMeasurement/types/CustomModelsInferenceJob.d.ts} +3 -2
  139. package/{serialization/resources/expressionMeasurement/types/UnionJobJobTlInference.js → dist/serialization/resources/expressionMeasurement/types/CustomModelsInferenceJob.js} +6 -2
  140. package/{serialization/resources/expressionMeasurement/types/UnionJobJobTraining.d.ts → dist/serialization/resources/expressionMeasurement/types/CustomModelsTrainingJob.d.ts} +3 -2
  141. package/{serialization/resources/expressionMeasurement/types/UnionJobJobTraining.js → dist/serialization/resources/expressionMeasurement/types/CustomModelsTrainingJob.js} +6 -2
  142. package/dist/serialization/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.d.ts → EmbeddingGenerationJob.d.ts} +3 -2
  143. package/dist/serialization/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.js → EmbeddingGenerationJob.js} +6 -2
  144. package/{serialization/resources/expressionMeasurement/types/UnionJobJobInference.d.ts → dist/serialization/resources/expressionMeasurement/types/InferenceJob.d.ts} +3 -2
  145. package/{serialization/resources/expressionMeasurement/types/UnionJobJobInference.js → dist/serialization/resources/expressionMeasurement/types/InferenceJob.js} +6 -2
  146. package/dist/serialization/resources/expressionMeasurement/types/UnionJob.d.ts +3 -18
  147. package/dist/serialization/resources/expressionMeasurement/types/UnionJob.js +2 -39
  148. package/dist/serialization/resources/expressionMeasurement/types/UnionPredictResult.d.ts +2 -3
  149. package/dist/serialization/resources/expressionMeasurement/types/UnionPredictResult.js +1 -29
  150. package/dist/serialization/resources/expressionMeasurement/types/index.d.ts +4 -4
  151. package/dist/serialization/resources/expressionMeasurement/types/index.js +4 -4
  152. package/dist/serialization/resources/index.d.ts +1 -1
  153. package/dist/serialization/resources/index.js +2 -2
  154. package/package.json +1 -1
  155. package/reference.md +596 -544
  156. package/serialization/resources/empathicVoice/types/JsonMessage.d.ts +2 -1
  157. package/serialization/resources/empathicVoice/types/JsonMessage.js +2 -0
  158. package/{dist/serialization/resources/expressionMeasurement/types/UnionJobJobTlInference.d.ts → serialization/resources/expressionMeasurement/types/CustomModelsInferenceJob.d.ts} +3 -2
  159. package/{dist/serialization/resources/expressionMeasurement/types/UnionJobJobTlInference.js → serialization/resources/expressionMeasurement/types/CustomModelsInferenceJob.js} +6 -2
  160. package/{dist/serialization/resources/expressionMeasurement/types/UnionJobJobTraining.d.ts → serialization/resources/expressionMeasurement/types/CustomModelsTrainingJob.d.ts} +3 -2
  161. package/{dist/serialization/resources/expressionMeasurement/types/UnionJobJobTraining.js → serialization/resources/expressionMeasurement/types/CustomModelsTrainingJob.js} +6 -2
  162. package/serialization/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.d.ts → EmbeddingGenerationJob.d.ts} +3 -2
  163. package/serialization/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.js → EmbeddingGenerationJob.js} +6 -2
  164. package/{dist/serialization/resources/expressionMeasurement/types/UnionJobJobInference.d.ts → serialization/resources/expressionMeasurement/types/InferenceJob.d.ts} +3 -2
  165. package/{dist/serialization/resources/expressionMeasurement/types/UnionJobJobInference.js → serialization/resources/expressionMeasurement/types/InferenceJob.js} +6 -2
  166. package/serialization/resources/expressionMeasurement/types/UnionJob.d.ts +3 -18
  167. package/serialization/resources/expressionMeasurement/types/UnionJob.js +2 -39
  168. package/serialization/resources/expressionMeasurement/types/UnionPredictResult.d.ts +2 -3
  169. package/serialization/resources/expressionMeasurement/types/UnionPredictResult.js +1 -29
  170. package/serialization/resources/expressionMeasurement/types/index.d.ts +4 -4
  171. package/serialization/resources/expressionMeasurement/types/index.js +4 -4
  172. package/serialization/resources/index.d.ts +1 -1
  173. package/serialization/resources/index.js +2 -2
  174. package/dist/api/resources/expressionMeasurement/types/UnionJobJobEmbeddingGeneration.d.ts +0 -6
  175. package/dist/api/resources/expressionMeasurement/types/UnionJobJobInference.d.ts +0 -6
  176. package/dist/api/resources/expressionMeasurement/types/UnionJobJobTlInference.d.ts +0 -6
  177. package/dist/api/resources/expressionMeasurement/types/UnionJobJobTraining.d.ts +0 -6
  178. /package/api/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.js → CustomModelsInferenceJob.js} +0 -0
  179. /package/api/resources/expressionMeasurement/types/{UnionJobJobInference.js → CustomModelsTrainingJob.js} +0 -0
  180. /package/api/resources/expressionMeasurement/types/{UnionJobJobTlInference.js → EmbeddingGenerationJob.js} +0 -0
  181. /package/api/resources/expressionMeasurement/types/{UnionJobJobTraining.js → InferenceJob.js} +0 -0
  182. /package/dist/api/resources/expressionMeasurement/types/{UnionJobJobEmbeddingGeneration.js → CustomModelsInferenceJob.js} +0 -0
  183. /package/dist/api/resources/expressionMeasurement/types/{UnionJobJobInference.js → CustomModelsTrainingJob.js} +0 -0
  184. /package/dist/api/resources/expressionMeasurement/types/{UnionJobJobTlInference.js → EmbeddingGenerationJob.js} +0 -0
  185. /package/dist/api/resources/expressionMeasurement/types/{UnionJobJobTraining.js → InferenceJob.js} +0 -0
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
12
+ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
13
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
14
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
15
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
16
+ function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
17
+ function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
18
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
19
+ function fulfill(value) { resume("next", value); }
20
+ function reject(value) { resume("throw", value); }
21
+ function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
22
+ };
23
+ var __asyncValues = (this && this.__asyncValues) || function (o) {
24
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
25
+ var m = o[Symbol.asyncIterator], i;
26
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
27
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
28
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
29
+ };
30
+ Object.defineProperty(exports, "__esModule", { value: true });
31
+ exports.Page = void 0;
32
+ /**
33
+ * A page of results from a paginated API.
34
+ *
35
+ * @template T The type of the items in the page.
36
+ */
37
+ class Page {
38
+ constructor({ response, hasNextPage, getItems, loadPage, }) {
39
+ this.response = response;
40
+ this.data = getItems(response);
41
+ this._hasNextPage = hasNextPage;
42
+ this.getItems = getItems;
43
+ this.loadNextPage = loadPage;
44
+ }
45
+ /**
46
+ * Retrieves the next page
47
+ * @returns this
48
+ */
49
+ getNextPage() {
50
+ return __awaiter(this, void 0, void 0, function* () {
51
+ this.response = yield this.loadNextPage(this.response);
52
+ this.data = this.getItems(this.response);
53
+ return this;
54
+ });
55
+ }
56
+ /**
57
+ * @returns whether there is a next page to load
58
+ */
59
+ hasNextPage() {
60
+ return this._hasNextPage(this.response);
61
+ }
62
+ iterMessages() {
63
+ return __asyncGenerator(this, arguments, function* iterMessages_1() {
64
+ for (const item of this.data) {
65
+ yield yield __await(item);
66
+ }
67
+ while (this.hasNextPage()) {
68
+ yield __await(this.getNextPage());
69
+ for (const item of this.data) {
70
+ yield yield __await(item);
71
+ }
72
+ }
73
+ });
74
+ }
75
+ [Symbol.asyncIterator]() {
76
+ return __asyncGenerator(this, arguments, function* _a() {
77
+ var e_1, _b;
78
+ try {
79
+ for (var _c = __asyncValues(this.iterMessages()), _d; _d = yield __await(_c.next()), !_d.done;) {
80
+ const message = _d.value;
81
+ yield yield __await(message);
82
+ }
83
+ }
84
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
85
+ finally {
86
+ try {
87
+ if (_d && !_d.done && (_b = _c.return)) yield __await(_b.call(_c));
88
+ }
89
+ finally { if (e_1) throw e_1.error; }
90
+ }
91
+ });
92
+ }
93
+ }
94
+ exports.Page = Page;
@@ -0,0 +1,12 @@
1
+ import { Page } from './Page';
2
+ export declare namespace Pageable {
3
+ interface Args<Response, Item> {
4
+ response: Response;
5
+ hasNextPage: (response: Response) => boolean;
6
+ getItems: (response: Response) => Item[];
7
+ loadPage: (response: Response) => Promise<Response>;
8
+ }
9
+ }
10
+ export declare class Pageable<R, T> extends Page<T> {
11
+ constructor(args: Pageable.Args<R, T>);
12
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Pageable = void 0;
4
+ const Page_1 = require("./Page");
5
+ class Pageable extends Page_1.Page {
6
+ constructor(args) {
7
+ super(args);
8
+ }
9
+ }
10
+ exports.Pageable = Pageable;
@@ -0,0 +1,2 @@
1
+ export { Page } from './Page';
2
+ export { Pageable } from './Pageable';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Pageable = exports.Page = void 0;
4
+ var Page_1 = require("./Page");
5
+ Object.defineProperty(exports, "Page", { enumerable: true, get: function () { return Page_1.Page; } });
6
+ var Pageable_1 = require("./Pageable");
7
+ Object.defineProperty(exports, "Pageable", { enumerable: true, get: function () { return Pageable_1.Pageable; } });
@@ -4,6 +4,7 @@
4
4
  import * as serializers from '../../../index';
5
5
  import * as Hume from '../../../../api/index';
6
6
  import * as core from '../../../../core';
7
+ import { AssistantEnd } from './AssistantEnd';
7
8
  import { AssistantMessage } from './AssistantMessage';
8
9
  import { ChatMetadata } from './ChatMetadata';
9
10
  import { WebSocketError } from './WebSocketError';
@@ -14,5 +15,5 @@ import { ToolResponseMessage } from './ToolResponseMessage';
14
15
  import { ToolErrorMessage } from './ToolErrorMessage';
15
16
  export declare const JsonMessage: core.serialization.Schema<serializers.empathicVoice.JsonMessage.Raw, Hume.empathicVoice.JsonMessage>;
16
17
  export declare namespace JsonMessage {
17
- type Raw = AssistantMessage.Raw | ChatMetadata.Raw | WebSocketError.Raw | UserInterruption.Raw | UserMessage.Raw | ToolCallMessage.Raw | ToolResponseMessage.Raw | ToolErrorMessage.Raw;
18
+ type Raw = AssistantEnd.Raw | AssistantMessage.Raw | ChatMetadata.Raw | WebSocketError.Raw | UserInterruption.Raw | UserMessage.Raw | ToolCallMessage.Raw | ToolResponseMessage.Raw | ToolErrorMessage.Raw;
18
19
  }
@@ -28,6 +28,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.JsonMessage = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
+ const AssistantEnd_1 = require("./AssistantEnd");
31
32
  const AssistantMessage_1 = require("./AssistantMessage");
32
33
  const ChatMetadata_1 = require("./ChatMetadata");
33
34
  const WebSocketError_1 = require("./WebSocketError");
@@ -37,6 +38,7 @@ const ToolCallMessage_1 = require("./ToolCallMessage");
37
38
  const ToolResponseMessage_1 = require("./ToolResponseMessage");
38
39
  const ToolErrorMessage_1 = require("./ToolErrorMessage");
39
40
  exports.JsonMessage = core.serialization.undiscriminatedUnion([
41
+ AssistantEnd_1.AssistantEnd,
40
42
  AssistantMessage_1.AssistantMessage,
41
43
  ChatMetadata_1.ChatMetadata,
42
44
  WebSocketError_1.WebSocketError,
@@ -5,8 +5,9 @@ import * as serializers from '../../../index';
5
5
  import * as Hume from '../../../../api/index';
6
6
  import * as core from '../../../../core';
7
7
  import { JobTlInference } from './JobTlInference';
8
- export declare const UnionJobJobTlInference: core.serialization.ObjectSchema<serializers.expressionMeasurement.UnionJobJobTlInference.Raw, Hume.expressionMeasurement.UnionJobJobTlInference>;
9
- export declare namespace UnionJobJobTlInference {
8
+ export declare const CustomModelsInferenceJob: core.serialization.ObjectSchema<serializers.expressionMeasurement.CustomModelsInferenceJob.Raw, Hume.expressionMeasurement.CustomModelsInferenceJob>;
9
+ export declare namespace CustomModelsInferenceJob {
10
10
  interface Raw extends JobTlInference.Raw {
11
+ type: string;
11
12
  }
12
13
  }
@@ -26,7 +26,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.UnionJobJobTlInference = void 0;
29
+ exports.CustomModelsInferenceJob = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  const JobTlInference_1 = require("./JobTlInference");
32
- exports.UnionJobJobTlInference = core.serialization.object({}).extend(JobTlInference_1.JobTlInference);
32
+ exports.CustomModelsInferenceJob = core.serialization
33
+ .object({
34
+ type: core.serialization.string(),
35
+ })
36
+ .extend(JobTlInference_1.JobTlInference);
@@ -5,8 +5,9 @@ import * as serializers from '../../../index';
5
5
  import * as Hume from '../../../../api/index';
6
6
  import * as core from '../../../../core';
7
7
  import { JobTraining } from './JobTraining';
8
- export declare const UnionJobJobTraining: core.serialization.ObjectSchema<serializers.expressionMeasurement.UnionJobJobTraining.Raw, Hume.expressionMeasurement.UnionJobJobTraining>;
9
- export declare namespace UnionJobJobTraining {
8
+ export declare const CustomModelsTrainingJob: core.serialization.ObjectSchema<serializers.expressionMeasurement.CustomModelsTrainingJob.Raw, Hume.expressionMeasurement.CustomModelsTrainingJob>;
9
+ export declare namespace CustomModelsTrainingJob {
10
10
  interface Raw extends JobTraining.Raw {
11
+ type: string;
11
12
  }
12
13
  }
@@ -26,7 +26,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.UnionJobJobTraining = void 0;
29
+ exports.CustomModelsTrainingJob = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  const JobTraining_1 = require("./JobTraining");
32
- exports.UnionJobJobTraining = core.serialization.object({}).extend(JobTraining_1.JobTraining);
32
+ exports.CustomModelsTrainingJob = core.serialization
33
+ .object({
34
+ type: core.serialization.string(),
35
+ })
36
+ .extend(JobTraining_1.JobTraining);
@@ -5,8 +5,9 @@ import * as serializers from '../../../index';
5
5
  import * as Hume from '../../../../api/index';
6
6
  import * as core from '../../../../core';
7
7
  import { JobEmbeddingGeneration } from './JobEmbeddingGeneration';
8
- export declare const UnionJobJobEmbeddingGeneration: core.serialization.ObjectSchema<serializers.expressionMeasurement.UnionJobJobEmbeddingGeneration.Raw, Hume.expressionMeasurement.UnionJobJobEmbeddingGeneration>;
9
- export declare namespace UnionJobJobEmbeddingGeneration {
8
+ export declare const EmbeddingGenerationJob: core.serialization.ObjectSchema<serializers.expressionMeasurement.EmbeddingGenerationJob.Raw, Hume.expressionMeasurement.EmbeddingGenerationJob>;
9
+ export declare namespace EmbeddingGenerationJob {
10
10
  interface Raw extends JobEmbeddingGeneration.Raw {
11
+ type: string;
11
12
  }
12
13
  }
@@ -26,7 +26,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.UnionJobJobEmbeddingGeneration = void 0;
29
+ exports.EmbeddingGenerationJob = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  const JobEmbeddingGeneration_1 = require("./JobEmbeddingGeneration");
32
- exports.UnionJobJobEmbeddingGeneration = core.serialization.object({}).extend(JobEmbeddingGeneration_1.JobEmbeddingGeneration);
32
+ exports.EmbeddingGenerationJob = core.serialization
33
+ .object({
34
+ type: core.serialization.string(),
35
+ })
36
+ .extend(JobEmbeddingGeneration_1.JobEmbeddingGeneration);
@@ -5,8 +5,9 @@ import * as serializers from '../../../index';
5
5
  import * as Hume from '../../../../api/index';
6
6
  import * as core from '../../../../core';
7
7
  import { JobInference } from './JobInference';
8
- export declare const UnionJobJobInference: core.serialization.ObjectSchema<serializers.expressionMeasurement.UnionJobJobInference.Raw, Hume.expressionMeasurement.UnionJobJobInference>;
9
- export declare namespace UnionJobJobInference {
8
+ export declare const InferenceJob: core.serialization.ObjectSchema<serializers.expressionMeasurement.InferenceJob.Raw, Hume.expressionMeasurement.InferenceJob>;
9
+ export declare namespace InferenceJob {
10
10
  interface Raw extends JobInference.Raw {
11
+ type: string;
11
12
  }
12
13
  }
@@ -26,7 +26,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.UnionJobJobInference = void 0;
29
+ exports.InferenceJob = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  const JobInference_1 = require("./JobInference");
32
- exports.UnionJobJobInference = core.serialization.object({}).extend(JobInference_1.JobInference);
32
+ exports.InferenceJob = core.serialization
33
+ .object({
34
+ type: core.serialization.string(),
35
+ })
36
+ .extend(JobInference_1.JobInference);
@@ -4,23 +4,8 @@
4
4
  import * as serializers from '../../../index';
5
5
  import * as Hume from '../../../../api/index';
6
6
  import * as core from '../../../../core';
7
- import { UnionJobJobEmbeddingGeneration } from './UnionJobJobEmbeddingGeneration';
8
- import { UnionJobJobInference } from './UnionJobJobInference';
9
- import { UnionJobJobTlInference } from './UnionJobJobTlInference';
10
- import { UnionJobJobTraining } from './UnionJobJobTraining';
11
- export declare const UnionJob: core.serialization.Schema<serializers.expressionMeasurement.UnionJob.Raw, Hume.expressionMeasurement.UnionJob>;
7
+ import { InferenceJob } from './InferenceJob';
8
+ export declare const UnionJob: core.serialization.ObjectSchema<serializers.expressionMeasurement.UnionJob.Raw, Hume.expressionMeasurement.UnionJob>;
12
9
  export declare namespace UnionJob {
13
- type Raw = UnionJob.EmbeddingGeneration | UnionJob.Inference | UnionJob.TlInference | UnionJob.Training;
14
- interface EmbeddingGeneration extends UnionJobJobEmbeddingGeneration.Raw {
15
- type: 'EMBEDDING_GENERATION';
16
- }
17
- interface Inference extends UnionJobJobInference.Raw {
18
- type: 'INFERENCE';
19
- }
20
- interface TlInference extends UnionJobJobTlInference.Raw {
21
- type: 'TL_INFERENCE';
22
- }
23
- interface Training extends UnionJobJobTraining.Raw {
24
- type: 'TRAINING';
25
- }
10
+ type Raw = InferenceJob.Raw;
26
11
  }
@@ -2,44 +2,7 @@
2
2
  /**
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
5
  Object.defineProperty(exports, "__esModule", { value: true });
29
6
  exports.UnionJob = void 0;
30
- const core = __importStar(require("../../../../core"));
31
- const UnionJobJobEmbeddingGeneration_1 = require("./UnionJobJobEmbeddingGeneration");
32
- const UnionJobJobInference_1 = require("./UnionJobJobInference");
33
- const UnionJobJobTlInference_1 = require("./UnionJobJobTlInference");
34
- const UnionJobJobTraining_1 = require("./UnionJobJobTraining");
35
- exports.UnionJob = core.serialization
36
- .union('type', {
37
- EMBEDDING_GENERATION: UnionJobJobEmbeddingGeneration_1.UnionJobJobEmbeddingGeneration,
38
- INFERENCE: UnionJobJobInference_1.UnionJobJobInference,
39
- TL_INFERENCE: UnionJobJobTlInference_1.UnionJobJobTlInference,
40
- TRAINING: UnionJobJobTraining_1.UnionJobJobTraining,
41
- })
42
- .transform({
43
- transform: (value) => value,
44
- untransform: (value) => value,
45
- });
7
+ const InferenceJob_1 = require("./InferenceJob");
8
+ exports.UnionJob = InferenceJob_1.InferenceJob;
@@ -5,8 +5,7 @@ import * as serializers from '../../../index';
5
5
  import * as Hume from '../../../../api/index';
6
6
  import * as core from '../../../../core';
7
7
  import { InferenceSourcePredictResult } from './InferenceSourcePredictResult';
8
- import { TlInferenceSourcePredictResult } from './TlInferenceSourcePredictResult';
9
- export declare const UnionPredictResult: core.serialization.Schema<serializers.expressionMeasurement.UnionPredictResult.Raw, Hume.expressionMeasurement.UnionPredictResult>;
8
+ export declare const UnionPredictResult: core.serialization.ObjectSchema<serializers.expressionMeasurement.UnionPredictResult.Raw, Hume.expressionMeasurement.UnionPredictResult>;
10
9
  export declare namespace UnionPredictResult {
11
- type Raw = InferenceSourcePredictResult.Raw | TlInferenceSourcePredictResult.Raw;
10
+ type Raw = InferenceSourcePredictResult.Raw;
12
11
  }
@@ -2,35 +2,7 @@
2
2
  /**
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
5
  Object.defineProperty(exports, "__esModule", { value: true });
29
6
  exports.UnionPredictResult = void 0;
30
- const core = __importStar(require("../../../../core"));
31
7
  const InferenceSourcePredictResult_1 = require("./InferenceSourcePredictResult");
32
- const TlInferenceSourcePredictResult_1 = require("./TlInferenceSourcePredictResult");
33
- exports.UnionPredictResult = core.serialization.undiscriminatedUnion([
34
- InferenceSourcePredictResult_1.InferenceSourcePredictResult,
35
- TlInferenceSourcePredictResult_1.TlInferenceSourcePredictResult,
36
- ]);
8
+ exports.UnionPredictResult = InferenceSourcePredictResult_1.InferenceSourcePredictResult;
@@ -111,10 +111,10 @@ export * from './TranscriptionMetadata';
111
111
  export * from './Type';
112
112
  export * from './Unconfigurable';
113
113
  export * from './UnionJob';
114
- export * from './UnionJobJobEmbeddingGeneration';
115
- export * from './UnionJobJobInference';
116
- export * from './UnionJobJobTlInference';
117
- export * from './UnionJobJobTraining';
114
+ export * from './EmbeddingGenerationJob';
115
+ export * from './InferenceJob';
116
+ export * from './CustomModelsInferenceJob';
117
+ export * from './CustomModelsTrainingJob';
118
118
  export * from './UnionPredictResult';
119
119
  export * from './ValidationArgs';
120
120
  export * from './When';
@@ -127,10 +127,10 @@ __exportStar(require("./TranscriptionMetadata"), exports);
127
127
  __exportStar(require("./Type"), exports);
128
128
  __exportStar(require("./Unconfigurable"), exports);
129
129
  __exportStar(require("./UnionJob"), exports);
130
- __exportStar(require("./UnionJobJobEmbeddingGeneration"), exports);
131
- __exportStar(require("./UnionJobJobInference"), exports);
132
- __exportStar(require("./UnionJobJobTlInference"), exports);
133
- __exportStar(require("./UnionJobJobTraining"), exports);
130
+ __exportStar(require("./EmbeddingGenerationJob"), exports);
131
+ __exportStar(require("./InferenceJob"), exports);
132
+ __exportStar(require("./CustomModelsInferenceJob"), exports);
133
+ __exportStar(require("./CustomModelsTrainingJob"), exports);
134
134
  __exportStar(require("./UnionPredictResult"), exports);
135
135
  __exportStar(require("./ValidationArgs"), exports);
136
136
  __exportStar(require("./When"), exports);
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hume",
3
- "version": "0.8.5",
3
+ "version": "0.8.6",
4
4
  "private": false,
5
5
  "repository": "https://github.com/HumeAI/hume-typescript-sdk",
6
6
  "main": "./index.js",