@corti/sdk 6.0.0-rc.2 → 7.0.0-rc

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 (204) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/codes/client/Client.d.ts +11 -8
  3. package/dist/cjs/api/resources/codes/client/Client.js +11 -8
  4. package/dist/cjs/api/resources/codes/client/requests/CodesGeneralPredictRequest.d.ts +13 -8
  5. package/dist/cjs/api/resources/index.d.ts +1 -0
  6. package/dist/cjs/api/resources/index.js +1 -0
  7. package/dist/cjs/api/resources/recordings/client/Client.d.ts +3 -2
  8. package/dist/cjs/api/resources/recordings/client/Client.js +16 -6
  9. package/dist/cjs/api/resources/recordings/client/index.d.ts +1 -1
  10. package/dist/cjs/api/resources/recordings/client/index.js +15 -0
  11. package/dist/cjs/api/resources/recordings/client/requests/RecordingsListRequest.d.ts +9 -0
  12. package/dist/cjs/api/resources/recordings/client/requests/RecordingsListRequest.js +3 -0
  13. package/dist/cjs/api/resources/recordings/client/requests/index.d.ts +1 -0
  14. package/dist/cjs/api/resources/recordings/client/requests/index.js +2 -0
  15. package/dist/cjs/api/types/A2AsseEvent.d.ts +16 -0
  16. package/dist/cjs/api/types/A2AsseEvent.js +3 -0
  17. package/dist/cjs/api/types/AgenticAgentsSendMessageResponse.d.ts +5 -1
  18. package/dist/cjs/api/types/AgenticAgentsStreamEventResponse.d.ts +2 -12
  19. package/dist/cjs/api/types/CodesConditionGroup.d.ts +10 -0
  20. package/dist/cjs/api/types/CodesConditionGroup.js +3 -0
  21. package/dist/cjs/api/types/CodesConditionGroupConditionsItem.d.ts +2 -0
  22. package/dist/cjs/api/types/CodesConditionGroupConditionsItem.js +3 -0
  23. package/dist/cjs/api/types/CodesConditionGroupMatch.d.ts +6 -0
  24. package/dist/cjs/api/types/CodesConditionGroupMatch.js +9 -0
  25. package/dist/cjs/api/types/CodesFilter.d.ts +1 -1
  26. package/dist/cjs/api/types/CodesSystemFilter.d.ts +12 -0
  27. package/dist/cjs/api/types/CodesSystemFilter.js +3 -0
  28. package/dist/cjs/api/types/CommonA2AConnector.d.ts +2 -0
  29. package/dist/cjs/api/types/CommonAgentConnector.d.ts +2 -0
  30. package/dist/cjs/api/types/CommonCodingSystemEnum.d.ts +6 -0
  31. package/dist/cjs/api/types/CommonCodingSystemEnum.js +6 -0
  32. package/dist/cjs/api/types/CommonMcpConnector.d.ts +2 -1
  33. package/dist/cjs/api/types/CommonRegistryConnectorProvisioned.d.ts +2 -0
  34. package/dist/cjs/api/types/CommonSchemaConnector.d.ts +3 -1
  35. package/dist/cjs/api/types/CommonSchemaConnectorCreate.d.ts +1 -1
  36. package/dist/cjs/api/types/CommonSchemaConnectorCreateTransition.d.ts +2 -1
  37. package/dist/cjs/api/types/CommonSchemaConnectorCreateTransition.js +2 -1
  38. package/dist/cjs/api/types/CommonSchemaConnectorTransition.d.ts +2 -1
  39. package/dist/cjs/api/types/CommonSchemaConnectorTransition.js +2 -1
  40. package/dist/cjs/api/types/StreamConfigTranscription.d.ts +2 -0
  41. package/dist/cjs/api/types/StreamConfigTranscriptionWordLevel.d.ts +6 -0
  42. package/dist/cjs/api/types/StreamConfigTranscriptionWordLevel.js +3 -0
  43. package/dist/cjs/api/types/TranscribeConfig.d.ts +2 -0
  44. package/dist/cjs/api/types/TranscribeConfigWordLevel.d.ts +6 -0
  45. package/dist/cjs/api/types/TranscribeConfigWordLevel.js +3 -0
  46. package/dist/cjs/api/types/TranscribeTranscriptMessage.d.ts +2 -1
  47. package/dist/cjs/api/types/TranscribeTranscriptMessageData.d.ts +5 -0
  48. package/dist/cjs/api/types/TranscribeTranscriptMessageData.js +3 -0
  49. package/dist/cjs/api/types/TranscriptsListItem.d.ts +4 -0
  50. package/dist/cjs/api/types/index.d.ts +8 -0
  51. package/dist/cjs/api/types/index.js +8 -0
  52. package/dist/cjs/serialization/resources/codes/client/requests/CodesGeneralPredictRequest.d.ts +2 -0
  53. package/dist/cjs/serialization/resources/codes/client/requests/CodesGeneralPredictRequest.js +2 -0
  54. package/dist/cjs/serialization/types/A2AsseEvent.d.ts +12 -0
  55. package/dist/cjs/serialization/types/A2AsseEvent.js +44 -0
  56. package/dist/cjs/serialization/types/AgenticAgentsSendMessageResponse.d.ts +7 -2
  57. package/dist/cjs/serialization/types/AgenticAgentsSendMessageResponse.js +6 -1
  58. package/dist/cjs/serialization/types/AgenticAgentsStreamEventResponse.d.ts +2 -5
  59. package/dist/cjs/serialization/types/AgenticAgentsStreamEventResponse.js +2 -6
  60. package/dist/cjs/serialization/types/CodesConditionGroup.d.ts +11 -0
  61. package/dist/cjs/serialization/types/CodesConditionGroup.js +46 -0
  62. package/dist/cjs/serialization/types/CodesConditionGroupConditionsItem.d.ts +8 -0
  63. package/dist/cjs/serialization/types/CodesConditionGroupConditionsItem.js +44 -0
  64. package/dist/cjs/serialization/types/CodesConditionGroupMatch.d.ts +7 -0
  65. package/dist/cjs/serialization/types/CodesConditionGroupMatch.js +39 -0
  66. package/dist/cjs/serialization/types/CodesSystemFilter.d.ts +11 -0
  67. package/dist/cjs/serialization/types/CodesSystemFilter.js +44 -0
  68. package/dist/cjs/serialization/types/CommonA2AConnector.d.ts +2 -0
  69. package/dist/cjs/serialization/types/CommonA2AConnector.js +2 -0
  70. package/dist/cjs/serialization/types/CommonAgentConnector.d.ts +2 -0
  71. package/dist/cjs/serialization/types/CommonAgentConnector.js +2 -0
  72. package/dist/cjs/serialization/types/CommonCodingSystemEnum.d.ts +1 -1
  73. package/dist/cjs/serialization/types/CommonCodingSystemEnum.js +6 -0
  74. package/dist/cjs/serialization/types/CommonMcpConnector.d.ts +1 -1
  75. package/dist/cjs/serialization/types/CommonMcpConnector.js +1 -1
  76. package/dist/cjs/serialization/types/CommonRegistryConnectorProvisioned.d.ts +2 -0
  77. package/dist/cjs/serialization/types/CommonRegistryConnectorProvisioned.js +2 -0
  78. package/dist/cjs/serialization/types/CommonSchemaConnector.d.ts +2 -0
  79. package/dist/cjs/serialization/types/CommonSchemaConnector.js +2 -0
  80. package/dist/cjs/serialization/types/CommonSchemaConnectorCreateTransition.d.ts +1 -1
  81. package/dist/cjs/serialization/types/CommonSchemaConnectorCreateTransition.js +1 -1
  82. package/dist/cjs/serialization/types/CommonSchemaConnectorTransition.d.ts +1 -1
  83. package/dist/cjs/serialization/types/CommonSchemaConnectorTransition.js +1 -1
  84. package/dist/cjs/serialization/types/StreamConfigTranscription.d.ts +2 -0
  85. package/dist/cjs/serialization/types/StreamConfigTranscription.js +2 -0
  86. package/dist/cjs/serialization/types/StreamConfigTranscriptionWordLevel.d.ts +9 -0
  87. package/dist/cjs/serialization/types/StreamConfigTranscriptionWordLevel.js +41 -0
  88. package/dist/cjs/serialization/types/TranscribeConfig.d.ts +2 -0
  89. package/dist/cjs/serialization/types/TranscribeConfig.js +2 -0
  90. package/dist/cjs/serialization/types/TranscribeConfigWordLevel.d.ts +9 -0
  91. package/dist/cjs/serialization/types/TranscribeConfigWordLevel.js +41 -0
  92. package/dist/cjs/serialization/types/TranscribeTranscriptMessage.d.ts +2 -2
  93. package/dist/cjs/serialization/types/TranscribeTranscriptMessage.js +2 -2
  94. package/dist/cjs/serialization/types/TranscribeTranscriptMessageData.d.ts +8 -0
  95. package/dist/cjs/serialization/types/TranscribeTranscriptMessageData.js +43 -0
  96. package/dist/cjs/serialization/types/TranscriptsListItem.d.ts +2 -0
  97. package/dist/cjs/serialization/types/TranscriptsListItem.js +2 -0
  98. package/dist/cjs/serialization/types/index.d.ts +8 -0
  99. package/dist/cjs/serialization/types/index.js +8 -0
  100. package/dist/cjs/version.d.ts +1 -1
  101. package/dist/cjs/version.js +1 -1
  102. package/dist/esm/BaseClient.mjs +2 -2
  103. package/dist/esm/api/resources/codes/client/Client.d.mts +11 -8
  104. package/dist/esm/api/resources/codes/client/Client.mjs +11 -8
  105. package/dist/esm/api/resources/codes/client/requests/CodesGeneralPredictRequest.d.mts +13 -8
  106. package/dist/esm/api/resources/index.d.mts +1 -0
  107. package/dist/esm/api/resources/index.mjs +1 -0
  108. package/dist/esm/api/resources/recordings/client/Client.d.mts +3 -2
  109. package/dist/esm/api/resources/recordings/client/Client.mjs +16 -6
  110. package/dist/esm/api/resources/recordings/client/index.d.mts +1 -1
  111. package/dist/esm/api/resources/recordings/client/index.mjs +1 -1
  112. package/dist/esm/api/resources/recordings/client/requests/RecordingsListRequest.d.mts +9 -0
  113. package/dist/esm/api/resources/recordings/client/requests/RecordingsListRequest.mjs +2 -0
  114. package/dist/esm/api/resources/recordings/client/requests/index.d.mts +1 -0
  115. package/dist/esm/api/resources/recordings/client/requests/index.mjs +1 -0
  116. package/dist/esm/api/types/A2AsseEvent.d.mts +16 -0
  117. package/dist/esm/api/types/A2AsseEvent.mjs +2 -0
  118. package/dist/esm/api/types/AgenticAgentsSendMessageResponse.d.mts +5 -1
  119. package/dist/esm/api/types/AgenticAgentsStreamEventResponse.d.mts +2 -12
  120. package/dist/esm/api/types/CodesConditionGroup.d.mts +10 -0
  121. package/dist/esm/api/types/CodesConditionGroup.mjs +2 -0
  122. package/dist/esm/api/types/CodesConditionGroupConditionsItem.d.mts +2 -0
  123. package/dist/esm/api/types/CodesConditionGroupConditionsItem.mjs +2 -0
  124. package/dist/esm/api/types/CodesConditionGroupMatch.d.mts +6 -0
  125. package/dist/esm/api/types/CodesConditionGroupMatch.mjs +6 -0
  126. package/dist/esm/api/types/CodesFilter.d.mts +1 -1
  127. package/dist/esm/api/types/CodesSystemFilter.d.mts +12 -0
  128. package/dist/esm/api/types/CodesSystemFilter.mjs +2 -0
  129. package/dist/esm/api/types/CommonA2AConnector.d.mts +2 -0
  130. package/dist/esm/api/types/CommonAgentConnector.d.mts +2 -0
  131. package/dist/esm/api/types/CommonCodingSystemEnum.d.mts +6 -0
  132. package/dist/esm/api/types/CommonCodingSystemEnum.mjs +6 -0
  133. package/dist/esm/api/types/CommonMcpConnector.d.mts +2 -1
  134. package/dist/esm/api/types/CommonRegistryConnectorProvisioned.d.mts +2 -0
  135. package/dist/esm/api/types/CommonSchemaConnector.d.mts +3 -1
  136. package/dist/esm/api/types/CommonSchemaConnectorCreate.d.mts +1 -1
  137. package/dist/esm/api/types/CommonSchemaConnectorCreateTransition.d.mts +2 -1
  138. package/dist/esm/api/types/CommonSchemaConnectorCreateTransition.mjs +2 -1
  139. package/dist/esm/api/types/CommonSchemaConnectorTransition.d.mts +2 -1
  140. package/dist/esm/api/types/CommonSchemaConnectorTransition.mjs +2 -1
  141. package/dist/esm/api/types/StreamConfigTranscription.d.mts +2 -0
  142. package/dist/esm/api/types/StreamConfigTranscriptionWordLevel.d.mts +6 -0
  143. package/dist/esm/api/types/StreamConfigTranscriptionWordLevel.mjs +2 -0
  144. package/dist/esm/api/types/TranscribeConfig.d.mts +2 -0
  145. package/dist/esm/api/types/TranscribeConfigWordLevel.d.mts +6 -0
  146. package/dist/esm/api/types/TranscribeConfigWordLevel.mjs +2 -0
  147. package/dist/esm/api/types/TranscribeTranscriptMessage.d.mts +2 -1
  148. package/dist/esm/api/types/TranscribeTranscriptMessageData.d.mts +5 -0
  149. package/dist/esm/api/types/TranscribeTranscriptMessageData.mjs +2 -0
  150. package/dist/esm/api/types/TranscriptsListItem.d.mts +4 -0
  151. package/dist/esm/api/types/index.d.mts +8 -0
  152. package/dist/esm/api/types/index.mjs +8 -0
  153. package/dist/esm/serialization/resources/codes/client/requests/CodesGeneralPredictRequest.d.mts +2 -0
  154. package/dist/esm/serialization/resources/codes/client/requests/CodesGeneralPredictRequest.mjs +2 -0
  155. package/dist/esm/serialization/types/A2AsseEvent.d.mts +12 -0
  156. package/dist/esm/serialization/types/A2AsseEvent.mjs +8 -0
  157. package/dist/esm/serialization/types/AgenticAgentsSendMessageResponse.d.mts +7 -2
  158. package/dist/esm/serialization/types/AgenticAgentsSendMessageResponse.mjs +6 -1
  159. package/dist/esm/serialization/types/AgenticAgentsStreamEventResponse.d.mts +2 -5
  160. package/dist/esm/serialization/types/AgenticAgentsStreamEventResponse.mjs +2 -6
  161. package/dist/esm/serialization/types/CodesConditionGroup.d.mts +11 -0
  162. package/dist/esm/serialization/types/CodesConditionGroup.mjs +10 -0
  163. package/dist/esm/serialization/types/CodesConditionGroupConditionsItem.d.mts +8 -0
  164. package/dist/esm/serialization/types/CodesConditionGroupConditionsItem.mjs +8 -0
  165. package/dist/esm/serialization/types/CodesConditionGroupMatch.d.mts +7 -0
  166. package/dist/esm/serialization/types/CodesConditionGroupMatch.mjs +3 -0
  167. package/dist/esm/serialization/types/CodesSystemFilter.d.mts +11 -0
  168. package/dist/esm/serialization/types/CodesSystemFilter.mjs +8 -0
  169. package/dist/esm/serialization/types/CommonA2AConnector.d.mts +2 -0
  170. package/dist/esm/serialization/types/CommonA2AConnector.mjs +2 -0
  171. package/dist/esm/serialization/types/CommonAgentConnector.d.mts +2 -0
  172. package/dist/esm/serialization/types/CommonAgentConnector.mjs +2 -0
  173. package/dist/esm/serialization/types/CommonCodingSystemEnum.d.mts +1 -1
  174. package/dist/esm/serialization/types/CommonCodingSystemEnum.mjs +6 -0
  175. package/dist/esm/serialization/types/CommonMcpConnector.d.mts +1 -1
  176. package/dist/esm/serialization/types/CommonMcpConnector.mjs +1 -1
  177. package/dist/esm/serialization/types/CommonRegistryConnectorProvisioned.d.mts +2 -0
  178. package/dist/esm/serialization/types/CommonRegistryConnectorProvisioned.mjs +2 -0
  179. package/dist/esm/serialization/types/CommonSchemaConnector.d.mts +2 -0
  180. package/dist/esm/serialization/types/CommonSchemaConnector.mjs +2 -0
  181. package/dist/esm/serialization/types/CommonSchemaConnectorCreateTransition.d.mts +1 -1
  182. package/dist/esm/serialization/types/CommonSchemaConnectorCreateTransition.mjs +1 -1
  183. package/dist/esm/serialization/types/CommonSchemaConnectorTransition.d.mts +1 -1
  184. package/dist/esm/serialization/types/CommonSchemaConnectorTransition.mjs +1 -1
  185. package/dist/esm/serialization/types/StreamConfigTranscription.d.mts +2 -0
  186. package/dist/esm/serialization/types/StreamConfigTranscription.mjs +2 -0
  187. package/dist/esm/serialization/types/StreamConfigTranscriptionWordLevel.d.mts +9 -0
  188. package/dist/esm/serialization/types/StreamConfigTranscriptionWordLevel.mjs +5 -0
  189. package/dist/esm/serialization/types/TranscribeConfig.d.mts +2 -0
  190. package/dist/esm/serialization/types/TranscribeConfig.mjs +2 -0
  191. package/dist/esm/serialization/types/TranscribeConfigWordLevel.d.mts +9 -0
  192. package/dist/esm/serialization/types/TranscribeConfigWordLevel.mjs +5 -0
  193. package/dist/esm/serialization/types/TranscribeTranscriptMessage.d.mts +2 -2
  194. package/dist/esm/serialization/types/TranscribeTranscriptMessage.mjs +2 -2
  195. package/dist/esm/serialization/types/TranscribeTranscriptMessageData.d.mts +8 -0
  196. package/dist/esm/serialization/types/TranscribeTranscriptMessageData.mjs +7 -0
  197. package/dist/esm/serialization/types/TranscriptsListItem.d.mts +2 -0
  198. package/dist/esm/serialization/types/TranscriptsListItem.mjs +2 -0
  199. package/dist/esm/serialization/types/index.d.mts +8 -0
  200. package/dist/esm/serialization/types/index.mjs +8 -0
  201. package/dist/esm/version.d.mts +1 -1
  202. package/dist/esm/version.mjs +1 -1
  203. package/package.json +1 -1
  204. package/LICENSE +0 -21
@@ -3,5 +3,5 @@ import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
4
  export declare const CommonSchemaConnectorCreateTransition: core.serialization.Schema<serializers.CommonSchemaConnectorCreateTransition.Raw, Corti.CommonSchemaConnectorCreateTransition>;
5
5
  export declare namespace CommonSchemaConnectorCreateTransition {
6
- type Raw = "complete" | "input_required";
6
+ type Raw = "complete" | "input_required" | "send";
7
7
  }
@@ -36,4 +36,4 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.CommonSchemaConnectorCreateTransition = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
- exports.CommonSchemaConnectorCreateTransition = core.serialization.enum_(["complete", "input_required"]);
39
+ exports.CommonSchemaConnectorCreateTransition = core.serialization.enum_(["complete", "input_required", "send"]);
@@ -3,5 +3,5 @@ import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
4
  export declare const CommonSchemaConnectorTransition: core.serialization.Schema<serializers.CommonSchemaConnectorTransition.Raw, Corti.CommonSchemaConnectorTransition>;
5
5
  export declare namespace CommonSchemaConnectorTransition {
6
- type Raw = "complete" | "input_required";
6
+ type Raw = "complete" | "input_required" | "send";
7
7
  }
@@ -36,4 +36,4 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.CommonSchemaConnectorTransition = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
- exports.CommonSchemaConnectorTransition = core.serialization.enum_(["complete", "input_required"]);
39
+ exports.CommonSchemaConnectorTransition = core.serialization.enum_(["complete", "input_required", "send"]);
@@ -2,12 +2,14 @@ import type * as Corti from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
4
  import { StreamConfigParticipant } from "./StreamConfigParticipant.js";
5
+ import { StreamConfigTranscriptionWordLevel } from "./StreamConfigTranscriptionWordLevel.js";
5
6
  import { StreamSupportedLanguage } from "./StreamSupportedLanguage.js";
6
7
  export declare const StreamConfigTranscription: core.serialization.ObjectSchema<serializers.StreamConfigTranscription.Raw, Corti.StreamConfigTranscription>;
7
8
  export declare namespace StreamConfigTranscription {
8
9
  interface Raw {
9
10
  primaryLanguage: StreamSupportedLanguage.Raw;
10
11
  diarize?: boolean | null;
12
+ wordLevel?: StreamConfigTranscriptionWordLevel.Raw | null;
11
13
  isDiarization?: boolean | null;
12
14
  isMultichannel?: boolean | null;
13
15
  participants: StreamConfigParticipant.Raw[];
@@ -37,10 +37,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.StreamConfigTranscription = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
39
  const StreamConfigParticipant_js_1 = require("./StreamConfigParticipant.js");
40
+ const StreamConfigTranscriptionWordLevel_js_1 = require("./StreamConfigTranscriptionWordLevel.js");
40
41
  const StreamSupportedLanguage_js_1 = require("./StreamSupportedLanguage.js");
41
42
  exports.StreamConfigTranscription = core.serialization.object({
42
43
  primaryLanguage: StreamSupportedLanguage_js_1.StreamSupportedLanguage,
43
44
  diarize: core.serialization.boolean().optional(),
45
+ wordLevel: StreamConfigTranscriptionWordLevel_js_1.StreamConfigTranscriptionWordLevel.optional(),
44
46
  isDiarization: core.serialization.boolean().optional(),
45
47
  isMultichannel: core.serialization.boolean().optional(),
46
48
  participants: core.serialization.list(StreamConfigParticipant_js_1.StreamConfigParticipant),
@@ -0,0 +1,9 @@
1
+ import type * as Corti from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ export declare const StreamConfigTranscriptionWordLevel: core.serialization.ObjectSchema<serializers.StreamConfigTranscriptionWordLevel.Raw, Corti.StreamConfigTranscriptionWordLevel>;
5
+ export declare namespace StreamConfigTranscriptionWordLevel {
6
+ interface Raw {
7
+ enabled?: boolean | null;
8
+ }
9
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.StreamConfigTranscriptionWordLevel = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ exports.StreamConfigTranscriptionWordLevel = core.serialization.object({
40
+ enabled: core.serialization.boolean().optional(),
41
+ });
@@ -5,6 +5,7 @@ import { TranscribeAudioEventsConfig } from "./TranscribeAudioEventsConfig.js";
5
5
  import { TranscribeCommand } from "./TranscribeCommand.js";
6
6
  import { TranscribeConfigKeyterms } from "./TranscribeConfigKeyterms.js";
7
7
  import { TranscribeConfigReplacementsItem } from "./TranscribeConfigReplacementsItem.js";
8
+ import { TranscribeConfigWordLevel } from "./TranscribeConfigWordLevel.js";
8
9
  import { TranscribeFormatting } from "./TranscribeFormatting.js";
9
10
  import { TranscribeSupportedLanguage } from "./TranscribeSupportedLanguage.js";
10
11
  export declare const TranscribeConfig: core.serialization.ObjectSchema<serializers.TranscribeConfig.Raw, Corti.TranscribeConfig>;
@@ -20,5 +21,6 @@ export declare namespace TranscribeConfig {
20
21
  audioFormat?: string | null;
21
22
  replacements?: TranscribeConfigReplacementsItem.Raw[] | null;
22
23
  keyterms?: TranscribeConfigKeyterms.Raw | null;
24
+ wordLevel?: TranscribeConfigWordLevel.Raw | null;
23
25
  }
24
26
  }
@@ -40,6 +40,7 @@ const TranscribeAudioEventsConfig_js_1 = require("./TranscribeAudioEventsConfig.
40
40
  const TranscribeCommand_js_1 = require("./TranscribeCommand.js");
41
41
  const TranscribeConfigKeyterms_js_1 = require("./TranscribeConfigKeyterms.js");
42
42
  const TranscribeConfigReplacementsItem_js_1 = require("./TranscribeConfigReplacementsItem.js");
43
+ const TranscribeConfigWordLevel_js_1 = require("./TranscribeConfigWordLevel.js");
43
44
  const TranscribeFormatting_js_1 = require("./TranscribeFormatting.js");
44
45
  const TranscribeSupportedLanguage_js_1 = require("./TranscribeSupportedLanguage.js");
45
46
  exports.TranscribeConfig = core.serialization.object({
@@ -53,4 +54,5 @@ exports.TranscribeConfig = core.serialization.object({
53
54
  audioFormat: core.serialization.string().optional(),
54
55
  replacements: core.serialization.list(TranscribeConfigReplacementsItem_js_1.TranscribeConfigReplacementsItem).optional(),
55
56
  keyterms: TranscribeConfigKeyterms_js_1.TranscribeConfigKeyterms.optional(),
57
+ wordLevel: TranscribeConfigWordLevel_js_1.TranscribeConfigWordLevel.optional(),
56
58
  });
@@ -0,0 +1,9 @@
1
+ import type * as Corti from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ export declare const TranscribeConfigWordLevel: core.serialization.ObjectSchema<serializers.TranscribeConfigWordLevel.Raw, Corti.TranscribeConfigWordLevel>;
5
+ export declare namespace TranscribeConfigWordLevel {
6
+ interface Raw {
7
+ enabled?: boolean | null;
8
+ }
9
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.TranscribeConfigWordLevel = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ exports.TranscribeConfigWordLevel = core.serialization.object({
40
+ enabled: core.serialization.boolean().optional(),
41
+ });
@@ -1,11 +1,11 @@
1
1
  import type * as Corti from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
- import { TranscribeTranscriptData } from "./TranscribeTranscriptData.js";
4
+ import { TranscribeTranscriptMessageData } from "./TranscribeTranscriptMessageData.js";
5
5
  export declare const TranscribeTranscriptMessage: core.serialization.ObjectSchema<serializers.TranscribeTranscriptMessage.Raw, Corti.TranscribeTranscriptMessage>;
6
6
  export declare namespace TranscribeTranscriptMessage {
7
7
  interface Raw {
8
8
  type: "transcript";
9
- data: TranscribeTranscriptData.Raw;
9
+ data: TranscribeTranscriptMessageData.Raw;
10
10
  }
11
11
  }
@@ -36,8 +36,8 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.TranscribeTranscriptMessage = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
- const TranscribeTranscriptData_js_1 = require("./TranscribeTranscriptData.js");
39
+ const TranscribeTranscriptMessageData_js_1 = require("./TranscribeTranscriptMessageData.js");
40
40
  exports.TranscribeTranscriptMessage = core.serialization.object({
41
41
  type: core.serialization.stringLiteral("transcript"),
42
- data: TranscribeTranscriptData_js_1.TranscribeTranscriptData,
42
+ data: TranscribeTranscriptMessageData_js_1.TranscribeTranscriptMessageData,
43
43
  });
@@ -0,0 +1,8 @@
1
+ import type * as Corti from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ import { TranscribeTranscriptData } from "./TranscribeTranscriptData.js";
5
+ export declare const TranscribeTranscriptMessageData: core.serialization.Schema<serializers.TranscribeTranscriptMessageData.Raw, Corti.TranscribeTranscriptMessageData>;
6
+ export declare namespace TranscribeTranscriptMessageData {
7
+ type Raw = TranscribeTranscriptData.Raw | TranscribeTranscriptData.Raw[];
8
+ }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.TranscribeTranscriptMessageData = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ const TranscribeTranscriptData_js_1 = require("./TranscribeTranscriptData.js");
40
+ exports.TranscribeTranscriptMessageData = core.serialization.undiscriminatedUnion([
41
+ TranscribeTranscriptData_js_1.TranscribeTranscriptData,
42
+ core.serialization.list(TranscribeTranscriptData_js_1.TranscribeTranscriptData),
43
+ ]);
@@ -7,7 +7,9 @@ export declare const TranscriptsListItem: core.serialization.ObjectSchema<serial
7
7
  export declare namespace TranscriptsListItem {
8
8
  interface Raw {
9
9
  id: Uuid.Raw;
10
+ recordingId: Uuid.Raw;
10
11
  transcriptSample: string;
12
+ createdAt: string;
11
13
  transcript?: (TranscriptsData.Raw | null | undefined) | null;
12
14
  }
13
15
  }
@@ -40,6 +40,8 @@ const TranscriptsData_js_1 = require("./TranscriptsData.js");
40
40
  const Uuid_js_1 = require("./Uuid.js");
41
41
  exports.TranscriptsListItem = core.serialization.object({
42
42
  id: Uuid_js_1.Uuid,
43
+ recordingId: Uuid_js_1.Uuid,
43
44
  transcriptSample: core.serialization.string(),
45
+ createdAt: core.serialization.date(),
44
46
  transcript: TranscriptsData_js_1.TranscriptsData.optionalNullable(),
45
47
  });
@@ -1,3 +1,4 @@
1
+ export * from "./A2AsseEvent.js";
1
2
  export * from "./AgenticAgentCardResponse.js";
2
3
  export * from "./AgenticAgentCardResponseCapabilities.js";
3
4
  export * from "./AgenticAgentCardResponseProvider.js";
@@ -104,6 +105,9 @@ export * from "./AuthTokenRequestClientCredentials.js";
104
105
  export * from "./AuthTokenRequestRefresh.js";
105
106
  export * from "./AuthTokenRequestRopc.js";
106
107
  export * from "./AuthTokenResponse.js";
108
+ export * from "./CodesConditionGroup.js";
109
+ export * from "./CodesConditionGroupConditionsItem.js";
110
+ export * from "./CodesConditionGroupMatch.js";
107
111
  export * from "./CodesFilter.js";
108
112
  export * from "./CodesFilterCondition.js";
109
113
  export * from "./CodesFilterConditionOp.js";
@@ -112,6 +116,7 @@ export * from "./CodesGeneralReadResponse.js";
112
116
  export * from "./CodesGeneralReadResponseAlternativesItem.js";
113
117
  export * from "./CodesGeneralReadResponseEvidencesItem.js";
114
118
  export * from "./CodesGeneralResponse.js";
119
+ export * from "./CodesSystemFilter.js";
115
120
  export * from "./CommonA2AConnector.js";
116
121
  export * from "./CommonA2AConnectorCreate.js";
117
122
  export * from "./CommonAgentConnector.js";
@@ -298,6 +303,7 @@ export * from "./StreamConfigRetentionPolicy.js";
298
303
  export * from "./StreamConfigStatusMessage.js";
299
304
  export * from "./StreamConfigStatusMessageType.js";
300
305
  export * from "./StreamConfigTranscription.js";
306
+ export * from "./StreamConfigTranscriptionWordLevel.js";
301
307
  export * from "./StreamDeltaUsageMessage.js";
302
308
  export * from "./StreamEndedMessage.js";
303
309
  export * from "./StreamEndMessage.js";
@@ -350,6 +356,7 @@ export * from "./TranscribeConfigMessage.js";
350
356
  export * from "./TranscribeConfigReplacementsItem.js";
351
357
  export * from "./TranscribeConfigStatusMessage.js";
352
358
  export * from "./TranscribeConfigStatusMessageType.js";
359
+ export * from "./TranscribeConfigWordLevel.js";
353
360
  export * from "./TranscribeDeltaUsageMessage.js";
354
361
  export * from "./TranscribeEndedMessage.js";
355
362
  export * from "./TranscribeEndMessage.js";
@@ -367,6 +374,7 @@ export * from "./TranscribeFormattingTimes.js";
367
374
  export * from "./TranscribeSupportedLanguage.js";
368
375
  export * from "./TranscribeTranscriptData.js";
369
376
  export * from "./TranscribeTranscriptMessage.js";
377
+ export * from "./TranscribeTranscriptMessageData.js";
370
378
  export * from "./TranscribeUsageMessage.js";
371
379
  export * from "./TranscriptsData.js";
372
380
  export * from "./TranscriptsFormatting.js";
@@ -14,6 +14,7 @@ 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
+ __exportStar(require("./A2AsseEvent.js"), exports);
17
18
  __exportStar(require("./AgenticAgentCardResponse.js"), exports);
18
19
  __exportStar(require("./AgenticAgentCardResponseCapabilities.js"), exports);
19
20
  __exportStar(require("./AgenticAgentCardResponseProvider.js"), exports);
@@ -120,6 +121,9 @@ __exportStar(require("./AuthTokenRequestClientCredentials.js"), exports);
120
121
  __exportStar(require("./AuthTokenRequestRefresh.js"), exports);
121
122
  __exportStar(require("./AuthTokenRequestRopc.js"), exports);
122
123
  __exportStar(require("./AuthTokenResponse.js"), exports);
124
+ __exportStar(require("./CodesConditionGroup.js"), exports);
125
+ __exportStar(require("./CodesConditionGroupConditionsItem.js"), exports);
126
+ __exportStar(require("./CodesConditionGroupMatch.js"), exports);
123
127
  __exportStar(require("./CodesFilter.js"), exports);
124
128
  __exportStar(require("./CodesFilterCondition.js"), exports);
125
129
  __exportStar(require("./CodesFilterConditionOp.js"), exports);
@@ -128,6 +132,7 @@ __exportStar(require("./CodesGeneralReadResponse.js"), exports);
128
132
  __exportStar(require("./CodesGeneralReadResponseAlternativesItem.js"), exports);
129
133
  __exportStar(require("./CodesGeneralReadResponseEvidencesItem.js"), exports);
130
134
  __exportStar(require("./CodesGeneralResponse.js"), exports);
135
+ __exportStar(require("./CodesSystemFilter.js"), exports);
131
136
  __exportStar(require("./CommonA2AConnector.js"), exports);
132
137
  __exportStar(require("./CommonA2AConnectorCreate.js"), exports);
133
138
  __exportStar(require("./CommonAgentConnector.js"), exports);
@@ -314,6 +319,7 @@ __exportStar(require("./StreamConfigRetentionPolicy.js"), exports);
314
319
  __exportStar(require("./StreamConfigStatusMessage.js"), exports);
315
320
  __exportStar(require("./StreamConfigStatusMessageType.js"), exports);
316
321
  __exportStar(require("./StreamConfigTranscription.js"), exports);
322
+ __exportStar(require("./StreamConfigTranscriptionWordLevel.js"), exports);
317
323
  __exportStar(require("./StreamDeltaUsageMessage.js"), exports);
318
324
  __exportStar(require("./StreamEndedMessage.js"), exports);
319
325
  __exportStar(require("./StreamEndMessage.js"), exports);
@@ -366,6 +372,7 @@ __exportStar(require("./TranscribeConfigMessage.js"), exports);
366
372
  __exportStar(require("./TranscribeConfigReplacementsItem.js"), exports);
367
373
  __exportStar(require("./TranscribeConfigStatusMessage.js"), exports);
368
374
  __exportStar(require("./TranscribeConfigStatusMessageType.js"), exports);
375
+ __exportStar(require("./TranscribeConfigWordLevel.js"), exports);
369
376
  __exportStar(require("./TranscribeDeltaUsageMessage.js"), exports);
370
377
  __exportStar(require("./TranscribeEndedMessage.js"), exports);
371
378
  __exportStar(require("./TranscribeEndMessage.js"), exports);
@@ -383,6 +390,7 @@ __exportStar(require("./TranscribeFormattingTimes.js"), exports);
383
390
  __exportStar(require("./TranscribeSupportedLanguage.js"), exports);
384
391
  __exportStar(require("./TranscribeTranscriptData.js"), exports);
385
392
  __exportStar(require("./TranscribeTranscriptMessage.js"), exports);
393
+ __exportStar(require("./TranscribeTranscriptMessageData.js"), exports);
386
394
  __exportStar(require("./TranscribeUsageMessage.js"), exports);
387
395
  __exportStar(require("./TranscriptsData.js"), exports);
388
396
  __exportStar(require("./TranscriptsFormatting.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "6.0.0-rc.2";
1
+ export declare const SDK_VERSION = "7.0.0-rc";
@@ -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 = "6.0.0-rc.2";
4
+ exports.SDK_VERSION = "7.0.0-rc";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "@corti/sdk",
9
- "X-Fern-SDK-Version": "6.0.0-rc.2",
10
- "User-Agent": "@corti/sdk/6.0.0-rc.2",
9
+ "X-Fern-SDK-Version": "7.0.0-rc",
10
+ "User-Agent": "@corti/sdk/7.0.0-rc",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  "Tenant-Name": options === null || options === void 0 ? void 0 : options.tenantName,
@@ -11,7 +11,7 @@ export declare class CodesClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<CodesClient.Options>;
12
12
  constructor(options: CodesClient.Options);
13
13
  /**
14
- * Predict medical codes from provided context.<br/><Note>This is a stateless endpoint, designed to predict ICD-10-CM, ICD-10-PCS, ICD-10 (international), ICD-10-UK, CIM-10-FR, ICD-10-GM, OPCS-4, OPS, CCAM, CPT, SNOMED CT, MedDRA, SKS and KVÅ codes based on input text string or documentId.<br/><br/>More than one code system may be defined in a single request.<br/><br/>Code prediction requests have two possible values for context:<br/>- `text`: One set of code prediction results will be returned based on all input text defined.<br/>- `documentId`: Code prediction will be based on that defined document only.<br/><br/>The response includes two sets of results:<br/>- `Codes`: Codes predicted by the model.<br/>- `Candidates`: Lower-confidence codes the model considered potentially relevant but excluded from the predicted set.<br/><br/>All predicted code results are based on input context defined in the request only (not other external data or assets associated with an interaction).</Note>
14
+ * Predict medical codes from provided context.<br/><Note>This is a stateless endpoint, designed to predict ICD-10-CM, ICD-10-PCS, ICD-10 (international), ICD-10-UK, CIM-10-FR, ICD-10-GM, OPCS-4, OPS, CCAM, CPT, SNOMED CT, MedDRA, SKS, KVÅ and ICD-O-3 codes based on input text string or documentId.<br/><br/>More than one code system may be defined in a single request.<br/><br/>Code prediction requests have two possible values for context:<br/>- `text`: One set of code prediction results will be returned based on all input text defined.<br/>- `documentId`: Code prediction will be based on that defined document only.<br/><br/>The response includes two sets of results:<br/>- `Codes`: Codes predicted by the model.<br/>- `Candidates`: Lower-confidence codes the model considered potentially relevant but excluded from the predicted set.<br/><br/>All predicted code results are based on input context defined in the request only (not other external data or assets associated with an interaction).</Note>
15
15
  *
16
16
  * @param {Corti.CodesGeneralPredictRequest} request
17
17
  * @param {CodesClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -38,13 +38,16 @@ export declare class CodesClient {
38
38
  * type: "text",
39
39
  * text: "Patient presents with uncontrolled type 2 diabetes."
40
40
  * }],
41
- * filter: {
42
- * include: [{
43
- * property: "code",
44
- * op: "is-a",
45
- * value: ["E11"]
46
- * }]
47
- * }
41
+ * filters: [{
42
+ * systemId: "icd10cm-outpatient",
43
+ * include: {
44
+ * conditions: [{
45
+ * property: "code",
46
+ * op: "is-a",
47
+ * value: ["E11"]
48
+ * }]
49
+ * }
50
+ * }]
48
51
  * })
49
52
  */
50
53
  predict(request: Corti.CodesGeneralPredictRequest, requestOptions?: CodesClient.RequestOptions): core.HttpResponsePromise<Corti.CodesGeneralResponse>;
@@ -20,7 +20,7 @@ export class CodesClient {
20
20
  this._options = normalizeClientOptionsWithAuth(options);
21
21
  }
22
22
  /**
23
- * Predict medical codes from provided context.<br/><Note>This is a stateless endpoint, designed to predict ICD-10-CM, ICD-10-PCS, ICD-10 (international), ICD-10-UK, CIM-10-FR, ICD-10-GM, OPCS-4, OPS, CCAM, CPT, SNOMED CT, MedDRA, SKS and KVÅ codes based on input text string or documentId.<br/><br/>More than one code system may be defined in a single request.<br/><br/>Code prediction requests have two possible values for context:<br/>- `text`: One set of code prediction results will be returned based on all input text defined.<br/>- `documentId`: Code prediction will be based on that defined document only.<br/><br/>The response includes two sets of results:<br/>- `Codes`: Codes predicted by the model.<br/>- `Candidates`: Lower-confidence codes the model considered potentially relevant but excluded from the predicted set.<br/><br/>All predicted code results are based on input context defined in the request only (not other external data or assets associated with an interaction).</Note>
23
+ * Predict medical codes from provided context.<br/><Note>This is a stateless endpoint, designed to predict ICD-10-CM, ICD-10-PCS, ICD-10 (international), ICD-10-UK, CIM-10-FR, ICD-10-GM, OPCS-4, OPS, CCAM, CPT, SNOMED CT, MedDRA, SKS, KVÅ and ICD-O-3 codes based on input text string or documentId.<br/><br/>More than one code system may be defined in a single request.<br/><br/>Code prediction requests have two possible values for context:<br/>- `text`: One set of code prediction results will be returned based on all input text defined.<br/>- `documentId`: Code prediction will be based on that defined document only.<br/><br/>The response includes two sets of results:<br/>- `Codes`: Codes predicted by the model.<br/>- `Candidates`: Lower-confidence codes the model considered potentially relevant but excluded from the predicted set.<br/><br/>All predicted code results are based on input context defined in the request only (not other external data or assets associated with an interaction).</Note>
24
24
  *
25
25
  * @param {Corti.CodesGeneralPredictRequest} request
26
26
  * @param {CodesClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -47,13 +47,16 @@ export class CodesClient {
47
47
  * type: "text",
48
48
  * text: "Patient presents with uncontrolled type 2 diabetes."
49
49
  * }],
50
- * filter: {
51
- * include: [{
52
- * property: "code",
53
- * op: "is-a",
54
- * value: ["E11"]
55
- * }]
56
- * }
50
+ * filters: [{
51
+ * systemId: "icd10cm-outpatient",
52
+ * include: {
53
+ * conditions: [{
54
+ * property: "code",
55
+ * op: "is-a",
56
+ * value: ["E11"]
57
+ * }]
58
+ * }
59
+ * }]
57
60
  * })
58
61
  */
59
62
  predict(request, requestOptions) {
@@ -16,13 +16,16 @@ import type * as Corti from "../../../../index.mjs";
16
16
  * type: "text",
17
17
  * text: "Patient presents with uncontrolled type 2 diabetes."
18
18
  * }],
19
- * filter: {
20
- * include: [{
21
- * property: "code",
22
- * op: "is-a",
23
- * value: ["E11"]
24
- * }]
25
- * }
19
+ * filters: [{
20
+ * systemId: "icd10cm-outpatient",
21
+ * include: {
22
+ * conditions: [{
23
+ * property: "code",
24
+ * op: "is-a",
25
+ * value: ["E11"]
26
+ * }]
27
+ * }
28
+ * }]
26
29
  * }
27
30
  */
28
31
  export interface CodesGeneralPredictRequest {
@@ -30,6 +33,8 @@ export interface CodesGeneralPredictRequest {
30
33
  system: Corti.CommonCodingSystemEnum[];
31
34
  /** Select either `text` or `documentId` as input context to the model for code prediction. Evidence indices in the response map to this array. */
32
35
  context: Corti.CommonAiContext[];
33
- /** Optional filter to restrict predicted codes. */
36
+ /** Deprecated: use `filters` instead. */
34
37
  filter?: Corti.CodesFilter;
38
+ /** Optional list of system-scoped filters to restrict predicted codes, one per coding system. */
39
+ filters?: Corti.CodesSystemFilter[];
35
40
  }
@@ -15,6 +15,7 @@ export * from "./interactions/types/index.mjs";
15
15
  export * from "./languages/client/requests/index.mjs";
16
16
  export * as languages from "./languages/index.mjs";
17
17
  export * from "./languages/types/index.mjs";
18
+ export * from "./recordings/client/requests/index.mjs";
18
19
  export * as recordings from "./recordings/index.mjs";
19
20
  export * as stream from "./stream/index.mjs";
20
21
  export * from "./templates/client/requests/index.mjs";
@@ -15,6 +15,7 @@ export * from "./interactions/types/index.mjs";
15
15
  export * from "./languages/client/requests/index.mjs";
16
16
  export * as languages from "./languages/index.mjs";
17
17
  export * from "./languages/types/index.mjs";
18
+ export * from "./recordings/client/requests/index.mjs";
18
19
  export * as recordings from "./recordings/index.mjs";
19
20
  export * as stream from "./stream/index.mjs";
20
21
  export * from "./templates/client/requests/index.mjs";
@@ -11,9 +11,10 @@ export declare class RecordingsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<RecordingsClient.Options>;
12
12
  constructor(options: RecordingsClient.Options);
13
13
  /**
14
- * Retrieve a list of recordings for a given interaction.
14
+ * Retrieve a list of recordings for a given interaction. Recordings are ordered based on their creation time. Default ordering (desc) will return the most recent recording first in the list. Use query parameter `direction` to define the order of the list (`asc` for ascending and `desc` for descending).
15
15
  *
16
16
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
17
+ * @param {Corti.RecordingsListRequest} request
17
18
  * @param {RecordingsClient.RequestOptions} requestOptions - Request-specific configuration.
18
19
  *
19
20
  * @throws {@link Corti.BadRequestError}
@@ -24,7 +25,7 @@ export declare class RecordingsClient {
24
25
  * @example
25
26
  * await client.recordings.list("f47ac10b-58cc-4372-a567-0e02b2c3d479")
26
27
  */
27
- list(id: Corti.Uuid, requestOptions?: RecordingsClient.RequestOptions): core.HttpResponsePromise<Corti.RecordingsListResponse>;
28
+ list(id: Corti.Uuid, request?: Corti.RecordingsListRequest, requestOptions?: RecordingsClient.RequestOptions): core.HttpResponsePromise<Corti.RecordingsListResponse>;
28
29
  private __list;
29
30
  /**
30
31
  * Upload a recording for a given interaction. There is a maximum limit of 120 minutes in audio duration and 150 MB in file size.
@@ -20,9 +20,10 @@ export class RecordingsClient {
20
20
  this._options = normalizeClientOptionsWithAuth(options);
21
21
  }
22
22
  /**
23
- * Retrieve a list of recordings for a given interaction.
23
+ * Retrieve a list of recordings for a given interaction. Recordings are ordered based on their creation time. Default ordering (desc) will return the most recent recording first in the list. Use query parameter `direction` to define the order of the list (`asc` for ascending and `desc` for descending).
24
24
  *
25
25
  * @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
26
+ * @param {Corti.RecordingsListRequest} request
26
27
  * @param {RecordingsClient.RequestOptions} requestOptions - Request-specific configuration.
27
28
  *
28
29
  * @throws {@link Corti.BadRequestError}
@@ -33,19 +34,28 @@ export class RecordingsClient {
33
34
  * @example
34
35
  * await client.recordings.list("f47ac10b-58cc-4372-a567-0e02b2c3d479")
35
36
  */
36
- list(id, requestOptions) {
37
- return core.HttpResponsePromise.fromPromise(this.__list(id, requestOptions));
37
+ list(id, request = {}, requestOptions) {
38
+ return core.HttpResponsePromise.fromPromise(this.__list(id, request, requestOptions));
38
39
  }
39
- __list(id, requestOptions) {
40
- return __awaiter(this, void 0, void 0, function* () {
40
+ __list(id_1) {
41
+ return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
41
42
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
43
+ const { direction } = request;
44
+ const _queryParams = {
45
+ direction: direction != null
46
+ ? serializers.CommonSortingDirectionEnum.jsonOrThrow(direction, {
47
+ unrecognizedObjectKeys: "strip",
48
+ omitUndefined: true,
49
+ })
50
+ : undefined,
51
+ };
42
52
  const _authRequest = yield this._options.authProvider.getAuthRequest();
43
53
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "Tenant-Name": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantName) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.tenantName }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
44
54
  const _response = yield core.fetcher({
45
55
  url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment)).base, `interactions/${core.url.encodePathParam(serializers.Uuid.jsonOrThrow(id, { omitUndefined: true }))}/recordings/`),
46
56
  method: "GET",
47
57
  headers: _headers,
48
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
58
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
49
59
  timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
50
60
  maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
51
61
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -1 +1 @@
1
- export {};
1
+ export * from "./requests/index.mjs";