@corti/sdk 0.1.0-alpha → 0.1.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 (225) hide show
  1. package/README.md +10 -11
  2. package/dist/cjs/Client.js +2 -2
  3. package/dist/cjs/api/resources/recordings/client/Client.d.ts +2 -4
  4. package/dist/cjs/api/resources/recordings/client/Client.js +7 -6
  5. package/dist/cjs/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.ts +1 -1
  6. package/dist/cjs/api/resources/transcripts/types/index.d.ts +0 -1
  7. package/dist/cjs/api/resources/transcripts/types/index.js +0 -1
  8. package/dist/cjs/api/types/DocumentsContext.d.ts +11 -5
  9. package/dist/cjs/api/types/DocumentsContextWithFacts.d.ts +8 -0
  10. package/dist/cjs/api/types/DocumentsContextWithString.d.ts +7 -0
  11. package/dist/cjs/api/types/DocumentsContextWithString.js +5 -0
  12. package/dist/cjs/api/types/DocumentsContextWithTranscript.d.ts +8 -0
  13. package/dist/cjs/api/types/DocumentsContextWithTranscript.js +5 -0
  14. package/dist/cjs/api/types/DocumentsCreateRequestWithTemplate.d.ts +1 -1
  15. package/dist/cjs/api/types/DocumentsCreateRequestWithTemplateId.d.ts +1 -1
  16. package/dist/cjs/api/types/DocumentsCreateRequestWithTemplateKey.d.ts +1 -1
  17. package/dist/cjs/api/types/DocumentsTemplate.d.ts +1 -10
  18. package/dist/cjs/api/types/DocumentsTemplateWithSectionIds.d.ts +12 -0
  19. package/dist/cjs/api/types/DocumentsTemplateWithSectionIds.js +5 -0
  20. package/dist/cjs/api/types/DocumentsTemplateWithSectionKeys.d.ts +11 -0
  21. package/dist/cjs/api/types/DocumentsTemplateWithSectionKeys.js +5 -0
  22. package/dist/cjs/api/types/StreamSupportedLanguage.d.ts +1 -17
  23. package/dist/cjs/api/types/StreamSupportedLanguage.js +0 -17
  24. package/dist/cjs/api/types/TemplatesSection.d.ts +1 -1
  25. package/dist/cjs/api/types/TemplatesSectionTranslation.d.ts +11 -0
  26. package/dist/cjs/api/types/TemplatesSectionTranslation.js +5 -0
  27. package/dist/cjs/api/types/TemplatesTranslation.d.ts +2 -2
  28. package/dist/cjs/api/types/TranscribeSupportedLanguage.d.ts +1 -17
  29. package/dist/cjs/api/types/TranscribeSupportedLanguage.js +0 -17
  30. package/dist/cjs/api/types/index.d.ts +6 -2
  31. package/dist/cjs/api/types/index.js +6 -2
  32. package/dist/cjs/core/exports.d.ts +1 -0
  33. package/dist/cjs/core/exports.js +17 -0
  34. package/dist/cjs/core/fetcher/BinaryResponse.d.ts +7 -4
  35. package/dist/cjs/core/fetcher/BinaryResponse.js +5 -2
  36. package/dist/cjs/core/fetcher/Fetcher.js +3 -3
  37. package/dist/cjs/core/fetcher/getErrorResponseBody.d.ts +1 -0
  38. package/dist/cjs/core/fetcher/getErrorResponseBody.js +44 -0
  39. package/dist/cjs/core/fetcher/getResponseBody.js +2 -1
  40. package/dist/cjs/core/file/exports.d.ts +1 -0
  41. package/dist/cjs/core/file/exports.js +2 -0
  42. package/dist/cjs/core/file/file.d.ts +5 -0
  43. package/dist/cjs/core/file/file.js +203 -0
  44. package/dist/cjs/core/file/index.d.ts +2 -0
  45. package/dist/cjs/core/file/index.js +18 -0
  46. package/dist/cjs/core/file/types.d.ts +66 -0
  47. package/dist/cjs/core/file/types.js +2 -0
  48. package/dist/cjs/core/index.d.ts +1 -0
  49. package/dist/cjs/core/index.js +2 -1
  50. package/dist/cjs/core/schemas/utils/maybeSkipValidation.js +1 -1
  51. package/dist/cjs/core/url/join.js +23 -3
  52. package/dist/cjs/core/websocket/ws.js +1 -1
  53. package/dist/cjs/custom/CortiAuth.d.ts +8 -0
  54. package/dist/cjs/custom/CortiAuth.js +7 -0
  55. package/dist/cjs/custom/CortiClient.d.ts +4 -1
  56. package/dist/cjs/custom/CortiClient.js +2 -1
  57. package/dist/cjs/custom/CustomStream.d.ts +3 -1
  58. package/dist/cjs/custom/CustomStream.js +22 -2
  59. package/dist/cjs/custom/CustomStreamSocket.d.ts +5 -1
  60. package/dist/cjs/custom/CustomStreamSocket.js +8 -0
  61. package/dist/cjs/custom/CustomTranscribe.d.ts +3 -1
  62. package/dist/cjs/custom/CustomTranscribe.js +22 -2
  63. package/dist/cjs/custom/CustomTranscribeSocket.d.ts +5 -1
  64. package/dist/cjs/custom/CustomTranscribeSocket.js +8 -0
  65. package/dist/cjs/custom/utils/getEnvironmentFromString.d.ts +6 -0
  66. package/dist/cjs/custom/utils/getEnvironmentFromString.js +12 -0
  67. package/dist/cjs/environments.d.ts +1 -6
  68. package/dist/cjs/environments.js +0 -5
  69. package/dist/cjs/exports.d.ts +1 -0
  70. package/dist/cjs/exports.js +17 -0
  71. package/dist/cjs/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.d.ts +1 -2
  72. package/dist/cjs/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.js +1 -2
  73. package/dist/cjs/serialization/resources/transcripts/types/index.d.ts +0 -1
  74. package/dist/cjs/serialization/resources/transcripts/types/index.js +0 -1
  75. package/dist/cjs/serialization/types/DocumentsContext.d.ts +13 -6
  76. package/dist/cjs/serialization/types/DocumentsContext.js +12 -5
  77. package/dist/cjs/serialization/types/DocumentsContextWithFacts.d.ts +13 -0
  78. package/dist/cjs/serialization/{resources/transcripts/types/TranscriptsCreateRequestPrimaryLanguage.js → types/DocumentsContextWithFacts.js} +6 -3
  79. package/dist/cjs/serialization/types/DocumentsContextWithString.d.ts +12 -0
  80. package/dist/cjs/serialization/types/{DocumentsContextTypeEnum.js → DocumentsContextWithString.js} +4 -2
  81. package/dist/cjs/serialization/types/DocumentsContextWithTranscript.d.ts +13 -0
  82. package/dist/cjs/serialization/types/{DocumentsContextData.js → DocumentsContextWithTranscript.js} +4 -7
  83. package/dist/cjs/serialization/types/DocumentsTemplate.d.ts +4 -8
  84. package/dist/cjs/serialization/types/DocumentsTemplate.js +3 -7
  85. package/dist/cjs/serialization/types/DocumentsTemplateWithSectionIds.d.ts +15 -0
  86. package/dist/cjs/serialization/types/DocumentsTemplateWithSectionIds.js +46 -0
  87. package/dist/cjs/serialization/types/DocumentsTemplateWithSectionKeys.d.ts +14 -0
  88. package/dist/cjs/serialization/types/DocumentsTemplateWithSectionKeys.js +45 -0
  89. package/dist/cjs/serialization/types/StreamSupportedLanguage.d.ts +1 -1
  90. package/dist/cjs/serialization/types/StreamSupportedLanguage.js +1 -16
  91. package/dist/cjs/serialization/types/TemplatesSection.d.ts +2 -2
  92. package/dist/cjs/serialization/types/TemplatesSection.js +2 -2
  93. package/dist/cjs/serialization/types/TemplatesSectionTranslation.d.ts +14 -0
  94. package/dist/cjs/serialization/types/TemplatesSectionTranslation.js +45 -0
  95. package/dist/cjs/serialization/types/TemplatesTranslation.d.ts +2 -2
  96. package/dist/cjs/serialization/types/TemplatesTranslation.js +2 -2
  97. package/dist/cjs/serialization/types/TranscribeSupportedLanguage.d.ts +1 -1
  98. package/dist/cjs/serialization/types/TranscribeSupportedLanguage.js +1 -16
  99. package/dist/cjs/serialization/types/index.d.ts +6 -2
  100. package/dist/cjs/serialization/types/index.js +6 -2
  101. package/dist/cjs/version.d.ts +1 -1
  102. package/dist/cjs/version.js +1 -1
  103. package/dist/esm/Client.mjs +2 -2
  104. package/dist/esm/api/resources/recordings/client/Client.d.mts +2 -4
  105. package/dist/esm/api/resources/recordings/client/Client.mjs +7 -6
  106. package/dist/esm/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.mts +1 -1
  107. package/dist/esm/api/resources/transcripts/types/index.d.mts +0 -1
  108. package/dist/esm/api/resources/transcripts/types/index.mjs +0 -1
  109. package/dist/esm/api/types/DocumentsContext.d.mts +11 -5
  110. package/dist/esm/api/types/DocumentsContextWithFacts.d.mts +8 -0
  111. package/dist/esm/api/types/DocumentsContextWithString.d.mts +7 -0
  112. package/dist/esm/api/types/DocumentsContextWithString.mjs +4 -0
  113. package/dist/esm/api/types/DocumentsContextWithTranscript.d.mts +8 -0
  114. package/dist/esm/api/types/DocumentsContextWithTranscript.mjs +4 -0
  115. package/dist/esm/api/types/DocumentsCreateRequestWithTemplate.d.mts +1 -1
  116. package/dist/esm/api/types/DocumentsCreateRequestWithTemplateId.d.mts +1 -1
  117. package/dist/esm/api/types/DocumentsCreateRequestWithTemplateKey.d.mts +1 -1
  118. package/dist/esm/api/types/DocumentsTemplate.d.mts +1 -10
  119. package/dist/esm/api/types/DocumentsTemplateWithSectionIds.d.mts +12 -0
  120. package/dist/esm/api/types/DocumentsTemplateWithSectionIds.mjs +4 -0
  121. package/dist/esm/api/types/DocumentsTemplateWithSectionKeys.d.mts +11 -0
  122. package/dist/esm/api/types/DocumentsTemplateWithSectionKeys.mjs +4 -0
  123. package/dist/esm/api/types/StreamSupportedLanguage.d.mts +1 -17
  124. package/dist/esm/api/types/StreamSupportedLanguage.mjs +1 -16
  125. package/dist/esm/api/types/TemplatesSection.d.mts +1 -1
  126. package/dist/esm/api/types/TemplatesSectionTranslation.d.mts +11 -0
  127. package/dist/esm/api/types/TemplatesSectionTranslation.mjs +4 -0
  128. package/dist/esm/api/types/TemplatesTranslation.d.mts +2 -2
  129. package/dist/esm/api/types/TranscribeSupportedLanguage.d.mts +1 -17
  130. package/dist/esm/api/types/TranscribeSupportedLanguage.mjs +1 -16
  131. package/dist/esm/api/types/index.d.mts +6 -2
  132. package/dist/esm/api/types/index.mjs +6 -2
  133. package/dist/esm/core/exports.d.mts +1 -0
  134. package/dist/esm/core/exports.mjs +1 -0
  135. package/dist/esm/core/fetcher/BinaryResponse.d.mts +7 -4
  136. package/dist/esm/core/fetcher/BinaryResponse.mjs +5 -2
  137. package/dist/esm/core/fetcher/Fetcher.mjs +3 -3
  138. package/dist/esm/core/fetcher/getErrorResponseBody.d.mts +1 -0
  139. package/dist/esm/core/fetcher/getErrorResponseBody.mjs +41 -0
  140. package/dist/esm/core/fetcher/getResponseBody.mjs +2 -1
  141. package/dist/esm/core/file/exports.d.mts +1 -0
  142. package/dist/esm/core/file/exports.mjs +1 -0
  143. package/dist/esm/core/file/file.d.mts +5 -0
  144. package/dist/esm/core/file/file.mjs +167 -0
  145. package/dist/esm/core/file/index.d.mts +2 -0
  146. package/dist/esm/core/file/index.mjs +2 -0
  147. package/dist/esm/core/file/types.d.mts +66 -0
  148. package/dist/esm/core/file/types.mjs +1 -0
  149. package/dist/esm/core/index.d.mts +1 -0
  150. package/dist/esm/core/index.mjs +1 -0
  151. package/dist/esm/core/schemas/utils/maybeSkipValidation.mjs +1 -1
  152. package/dist/esm/core/url/join.mjs +23 -3
  153. package/dist/esm/core/websocket/ws.mjs +1 -1
  154. package/dist/esm/custom/CortiAuth.d.mts +8 -0
  155. package/dist/esm/custom/CortiAuth.mjs +7 -0
  156. package/dist/esm/custom/CortiClient.d.mts +4 -1
  157. package/dist/esm/custom/CortiClient.mjs +2 -1
  158. package/dist/esm/custom/CustomStream.d.mts +3 -1
  159. package/dist/esm/custom/CustomStream.mjs +22 -2
  160. package/dist/esm/custom/CustomStreamSocket.d.mts +5 -1
  161. package/dist/esm/custom/CustomStreamSocket.mjs +8 -0
  162. package/dist/esm/custom/CustomTranscribe.d.mts +3 -1
  163. package/dist/esm/custom/CustomTranscribe.mjs +22 -2
  164. package/dist/esm/custom/CustomTranscribeSocket.d.mts +5 -1
  165. package/dist/esm/custom/CustomTranscribeSocket.mjs +8 -0
  166. package/dist/esm/custom/utils/getEnvironmentFromString.d.mts +6 -0
  167. package/dist/esm/custom/utils/getEnvironmentFromString.mjs +9 -0
  168. package/dist/esm/environments.d.mts +1 -6
  169. package/dist/esm/environments.mjs +0 -5
  170. package/dist/esm/exports.d.mts +1 -0
  171. package/dist/esm/exports.mjs +1 -0
  172. package/dist/esm/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.d.mts +1 -2
  173. package/dist/esm/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.mjs +1 -2
  174. package/dist/esm/serialization/resources/transcripts/types/index.d.mts +0 -1
  175. package/dist/esm/serialization/resources/transcripts/types/index.mjs +0 -1
  176. package/dist/esm/serialization/types/DocumentsContext.d.mts +13 -6
  177. package/dist/esm/serialization/types/DocumentsContext.mjs +12 -5
  178. package/dist/esm/serialization/types/DocumentsContextWithFacts.d.mts +13 -0
  179. package/dist/esm/serialization/types/DocumentsContextWithFacts.mjs +8 -0
  180. package/dist/esm/serialization/types/DocumentsContextWithString.d.mts +12 -0
  181. package/dist/esm/serialization/types/{DocumentsContextTypeEnum.mjs → DocumentsContextWithString.mjs} +3 -1
  182. package/dist/esm/serialization/types/DocumentsContextWithTranscript.d.mts +13 -0
  183. package/dist/esm/serialization/types/DocumentsContextWithTranscript.mjs +8 -0
  184. package/dist/esm/serialization/types/DocumentsTemplate.d.mts +4 -8
  185. package/dist/esm/serialization/types/DocumentsTemplate.mjs +3 -7
  186. package/dist/esm/serialization/types/DocumentsTemplateWithSectionIds.d.mts +15 -0
  187. package/dist/esm/serialization/types/DocumentsTemplateWithSectionIds.mjs +10 -0
  188. package/dist/esm/serialization/types/DocumentsTemplateWithSectionKeys.d.mts +14 -0
  189. package/dist/esm/serialization/types/DocumentsTemplateWithSectionKeys.mjs +9 -0
  190. package/dist/esm/serialization/types/StreamSupportedLanguage.d.mts +1 -1
  191. package/dist/esm/serialization/types/StreamSupportedLanguage.mjs +1 -16
  192. package/dist/esm/serialization/types/TemplatesSection.d.mts +2 -2
  193. package/dist/esm/serialization/types/TemplatesSection.mjs +2 -2
  194. package/dist/esm/serialization/types/TemplatesSectionTranslation.d.mts +14 -0
  195. package/dist/esm/serialization/types/TemplatesSectionTranslation.mjs +9 -0
  196. package/dist/esm/serialization/types/TemplatesTranslation.d.mts +2 -2
  197. package/dist/esm/serialization/types/TemplatesTranslation.mjs +2 -2
  198. package/dist/esm/serialization/types/TranscribeSupportedLanguage.d.mts +1 -1
  199. package/dist/esm/serialization/types/TranscribeSupportedLanguage.mjs +1 -16
  200. package/dist/esm/serialization/types/index.d.mts +6 -2
  201. package/dist/esm/serialization/types/index.mjs +6 -2
  202. package/dist/esm/version.d.mts +1 -1
  203. package/dist/esm/version.mjs +1 -1
  204. package/package.json +4 -3
  205. package/reference.md +1 -1
  206. package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestPrimaryLanguage.d.ts +0 -21
  207. package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestPrimaryLanguage.js +0 -20
  208. package/dist/cjs/api/types/DocumentsContextData.d.ts +0 -14
  209. package/dist/cjs/api/types/DocumentsContextTypeEnum.d.ts +0 -9
  210. package/dist/cjs/api/types/DocumentsContextTypeEnum.js +0 -11
  211. package/dist/cjs/serialization/resources/transcripts/types/TranscriptsCreateRequestPrimaryLanguage.d.ts +0 -10
  212. package/dist/cjs/serialization/types/DocumentsContextData.d.ts +0 -12
  213. package/dist/cjs/serialization/types/DocumentsContextTypeEnum.d.ts +0 -10
  214. package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestPrimaryLanguage.d.mts +0 -21
  215. package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestPrimaryLanguage.mjs +0 -17
  216. package/dist/esm/api/types/DocumentsContextData.d.mts +0 -14
  217. package/dist/esm/api/types/DocumentsContextTypeEnum.d.mts +0 -9
  218. package/dist/esm/api/types/DocumentsContextTypeEnum.mjs +0 -8
  219. package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestPrimaryLanguage.d.mts +0 -10
  220. package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestPrimaryLanguage.mjs +0 -5
  221. package/dist/esm/serialization/types/DocumentsContextData.d.mts +0 -12
  222. package/dist/esm/serialization/types/DocumentsContextData.mjs +0 -11
  223. package/dist/esm/serialization/types/DocumentsContextTypeEnum.d.mts +0 -10
  224. /package/dist/cjs/api/types/{DocumentsContextData.js → DocumentsContextWithFacts.js} +0 -0
  225. /package/dist/esm/api/types/{DocumentsContextData.mjs → DocumentsContextWithFacts.mjs} +0 -0
@@ -41,6 +41,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
41
41
  step((generator = generator.apply(thisArg, _arguments || [])).next());
42
42
  });
43
43
  };
44
+ var __rest = (this && this.__rest) || function (s, e) {
45
+ var t = {};
46
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
47
+ t[p] = s[p];
48
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
49
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
50
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
51
+ t[p[i]] = s[p[i]];
52
+ }
53
+ return t;
54
+ };
44
55
  Object.defineProperty(exports, "__esModule", { value: true });
45
56
  exports.Transcribe = void 0;
46
57
  /**
@@ -63,7 +74,8 @@ class Transcribe extends Client_js_1.Transcribe {
63
74
  const _super = Object.create(null, {
64
75
  connect: { get: () => super.connect }
65
76
  });
66
- return __awaiter(this, arguments, void 0, function* (args = {}, configuration) {
77
+ return __awaiter(this, arguments, void 0, function* (_a = {}) {
78
+ var { configuration } = _a, args = __rest(_a, ["configuration"]);
67
79
  const fernWs = yield _super.connect.call(this, Object.assign(Object.assign({}, args), { token: (yield this._getAuthorizationHeader()) || '', tenantName: yield core.Supplier.get(this._options.tenantName) }));
68
80
  const ws = new CustomTranscribeSocket_js_1.TranscribeSocket({ socket: fernWs.socket });
69
81
  if (!configuration) {
@@ -91,7 +103,15 @@ class Transcribe extends Client_js_1.Transcribe {
91
103
  || parsedResponse.value.type === 'CONFIG_TIMEOUT')) {
92
104
  ws.socket.dispatchEvent(new events_js_1.ErrorEvent({
93
105
  name: parsedResponse.value.type,
94
- message: `Configuration error "${parsedResponse.value.type}" : ${parsedResponse.value.reason || 'No reason provided'}`,
106
+ message: JSON.stringify(parsedResponse.value),
107
+ }, ''));
108
+ ws.close();
109
+ return;
110
+ }
111
+ if (parsedResponse.ok && parsedResponse.value.type === 'error') {
112
+ ws.socket.dispatchEvent(new events_js_1.ErrorEvent({
113
+ name: 'error',
114
+ message: JSON.stringify(parsedResponse.value),
95
115
  }, ''));
96
116
  ws.close();
97
117
  return;
@@ -3,9 +3,13 @@
3
3
  */
4
4
  import { TranscribeSocket as FernTranscribeSocket } from '../api/resources/transcribe/client/Socket.js';
5
5
  export declare class TranscribeSocket extends FernTranscribeSocket {
6
- sendAudio(message: ArrayBuffer | string): void;
6
+ sendAudio(message: ArrayBufferLike | Blob | ArrayBufferView | string): void;
7
7
  /**
8
8
  * Patch: have to repeat this method, because it is private in the base class
9
9
  */
10
10
  private __assertSocketIsOpen;
11
+ /**
12
+ * Patch: added ability to remove event handlers
13
+ */
14
+ off<T extends keyof FernTranscribeSocket.EventHandlers>(event: T, callback?: FernTranscribeSocket.EventHandlers[T]): void;
11
15
  }
@@ -58,5 +58,13 @@ class TranscribeSocket extends Socket_js_1.TranscribeSocket {
58
58
  throw new Error("Socket is not open.");
59
59
  }
60
60
  }
61
+ /**
62
+ * Patch: added ability to remove event handlers
63
+ */
64
+ off(event, callback) {
65
+ if (!callback || callback === this.eventHandlers[event]) {
66
+ delete this.eventHandlers[event];
67
+ }
68
+ }
61
69
  }
62
70
  exports.TranscribeSocket = TranscribeSocket;
@@ -0,0 +1,6 @@
1
+ import * as core from "../../core/index.js";
2
+ import * as environments from "../../environments.js";
3
+ type Environment = core.Supplier<environments.CortiEnvironment | environments.CortiEnvironmentUrls> | string;
4
+ type CortiEnvironment = core.Supplier<environments.CortiEnvironment | environments.CortiEnvironmentUrls>;
5
+ export declare function getEnvironment(environment: Environment): CortiEnvironment;
6
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getEnvironment = getEnvironment;
4
+ function getEnvironment(environment) {
5
+ return typeof environment === "string"
6
+ ? {
7
+ base: `https://api.${environment}.corti.app/v2`,
8
+ wss: `wss://api.${environment}.corti.app`,
9
+ login: `https://auth.${environment}.corti.app/realms`,
10
+ }
11
+ : environment;
12
+ }
@@ -7,11 +7,6 @@ export interface CortiEnvironmentUrls {
7
7
  login: string;
8
8
  }
9
9
  export declare const CortiEnvironment: {
10
- readonly BetaEu: {
11
- readonly base: "https://api.beta-eu.corti.app/v2";
12
- readonly wss: "wss://api.beta-eu.corti.app";
13
- readonly login: "https://auth.beta-eu.corti.app/realms";
14
- };
15
10
  readonly Eu: {
16
11
  readonly base: "https://api.eu.corti.app/v2";
17
12
  readonly wss: "wss://api.eu.corti.app";
@@ -23,4 +18,4 @@ export declare const CortiEnvironment: {
23
18
  readonly login: "https://auth.us.corti.app/realms";
24
19
  };
25
20
  };
26
- export type CortiEnvironment = typeof CortiEnvironment.BetaEu | typeof CortiEnvironment.Eu | typeof CortiEnvironment.Us;
21
+ export type CortiEnvironment = typeof CortiEnvironment.Eu | typeof CortiEnvironment.Us;
@@ -5,11 +5,6 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.CortiEnvironment = void 0;
7
7
  exports.CortiEnvironment = {
8
- BetaEu: {
9
- base: "https://api.beta-eu.corti.app/v2",
10
- wss: "wss://api.beta-eu.corti.app",
11
- login: "https://auth.beta-eu.corti.app/realms",
12
- },
13
8
  Eu: {
14
9
  base: "https://api.eu.corti.app/v2",
15
10
  wss: "wss://api.eu.corti.app",
@@ -0,0 +1 @@
1
+ export * from "./core/exports.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./core/exports.js"), exports);
@@ -5,14 +5,13 @@ import * as serializers from "../../../../index.js";
5
5
  import * as Corti from "../../../../../api/index.js";
6
6
  import * as core from "../../../../../core/index.js";
7
7
  import { Uuid } from "../../../../types/Uuid.js";
8
- import { TranscriptsCreateRequestPrimaryLanguage } from "../../types/TranscriptsCreateRequestPrimaryLanguage.js";
9
8
  import { TranscriptsParticipant } from "../../../../types/TranscriptsParticipant.js";
10
9
  import { TranscriptsCreateRequestModelName } from "../../types/TranscriptsCreateRequestModelName.js";
11
10
  export declare const TranscriptsCreateRequest: core.serialization.Schema<serializers.TranscriptsCreateRequest.Raw, Corti.TranscriptsCreateRequest>;
12
11
  export declare namespace TranscriptsCreateRequest {
13
12
  interface Raw {
14
13
  recordingId: Uuid.Raw;
15
- primaryLanguage: TranscriptsCreateRequestPrimaryLanguage.Raw;
14
+ primaryLanguage: string;
16
15
  isDictation?: boolean | null;
17
16
  isMultichannel?: boolean | null;
18
17
  diarize?: boolean | null;
@@ -39,12 +39,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.TranscriptsCreateRequest = void 0;
40
40
  const core = __importStar(require("../../../../../core/index.js"));
41
41
  const Uuid_js_1 = require("../../../../types/Uuid.js");
42
- const TranscriptsCreateRequestPrimaryLanguage_js_1 = require("../../types/TranscriptsCreateRequestPrimaryLanguage.js");
43
42
  const TranscriptsParticipant_js_1 = require("../../../../types/TranscriptsParticipant.js");
44
43
  const TranscriptsCreateRequestModelName_js_1 = require("../../types/TranscriptsCreateRequestModelName.js");
45
44
  exports.TranscriptsCreateRequest = core.serialization.object({
46
45
  recordingId: Uuid_js_1.Uuid,
47
- primaryLanguage: TranscriptsCreateRequestPrimaryLanguage_js_1.TranscriptsCreateRequestPrimaryLanguage,
46
+ primaryLanguage: core.serialization.string(),
48
47
  isDictation: core.serialization.boolean().optional(),
49
48
  isMultichannel: core.serialization.boolean().optional(),
50
49
  diarize: core.serialization.boolean().optional(),
@@ -1,2 +1 @@
1
- export * from "./TranscriptsCreateRequestPrimaryLanguage.js";
2
1
  export * from "./TranscriptsCreateRequestModelName.js";
@@ -14,5 +14,4 @@ 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("./TranscriptsCreateRequestPrimaryLanguage.js"), exports);
18
17
  __exportStar(require("./TranscriptsCreateRequestModelName.js"), exports);
@@ -4,12 +4,19 @@
4
4
  import * as serializers from "../index.js";
5
5
  import * as Corti from "../../api/index.js";
6
6
  import * as core from "../../core/index.js";
7
- import { DocumentsContextTypeEnum } from "./DocumentsContextTypeEnum.js";
8
- import { DocumentsContextData } from "./DocumentsContextData.js";
9
- export declare const DocumentsContext: core.serialization.ObjectSchema<serializers.DocumentsContext.Raw, Corti.DocumentsContext>;
7
+ import { DocumentsContextWithFacts } from "./DocumentsContextWithFacts.js";
8
+ import { DocumentsContextWithTranscript } from "./DocumentsContextWithTranscript.js";
9
+ import { DocumentsContextWithString } from "./DocumentsContextWithString.js";
10
+ export declare const DocumentsContext: core.serialization.Schema<serializers.DocumentsContext.Raw, Corti.DocumentsContext>;
10
11
  export declare namespace DocumentsContext {
11
- interface Raw {
12
- type: DocumentsContextTypeEnum.Raw;
13
- data: DocumentsContextData.Raw;
12
+ type Raw = DocumentsContext.Facts | DocumentsContext.Transcript | DocumentsContext.String;
13
+ interface Facts extends DocumentsContextWithFacts.Raw {
14
+ type: "facts";
15
+ }
16
+ interface Transcript extends DocumentsContextWithTranscript.Raw {
17
+ type: "transcript";
18
+ }
19
+ interface String extends DocumentsContextWithString.Raw {
20
+ type: "string";
14
21
  }
15
22
  }
@@ -38,9 +38,16 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.DocumentsContext = void 0;
40
40
  const core = __importStar(require("../../core/index.js"));
41
- const DocumentsContextTypeEnum_js_1 = require("./DocumentsContextTypeEnum.js");
42
- const DocumentsContextData_js_1 = require("./DocumentsContextData.js");
43
- exports.DocumentsContext = core.serialization.object({
44
- type: DocumentsContextTypeEnum_js_1.DocumentsContextTypeEnum,
45
- data: DocumentsContextData_js_1.DocumentsContextData,
41
+ const DocumentsContextWithFacts_js_1 = require("./DocumentsContextWithFacts.js");
42
+ const DocumentsContextWithTranscript_js_1 = require("./DocumentsContextWithTranscript.js");
43
+ const DocumentsContextWithString_js_1 = require("./DocumentsContextWithString.js");
44
+ exports.DocumentsContext = core.serialization
45
+ .union("type", {
46
+ facts: DocumentsContextWithFacts_js_1.DocumentsContextWithFacts,
47
+ transcript: DocumentsContextWithTranscript_js_1.DocumentsContextWithTranscript,
48
+ string: DocumentsContextWithString_js_1.DocumentsContextWithString,
49
+ })
50
+ .transform({
51
+ transform: (value) => value,
52
+ untransform: (value) => value,
46
53
  });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index.js";
5
+ import * as Corti from "../../api/index.js";
6
+ import * as core from "../../core/index.js";
7
+ import { FactsContext } from "./FactsContext.js";
8
+ export declare const DocumentsContextWithFacts: core.serialization.ObjectSchema<serializers.DocumentsContextWithFacts.Raw, Corti.DocumentsContextWithFacts>;
9
+ export declare namespace DocumentsContextWithFacts {
10
+ interface Raw {
11
+ data: FactsContext.Raw[];
12
+ }
13
+ }
@@ -36,6 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.TranscriptsCreateRequestPrimaryLanguage = void 0;
40
- const core = __importStar(require("../../../../core/index.js"));
41
- exports.TranscriptsCreateRequestPrimaryLanguage = core.serialization.enum_(["en", "en-GB", "da", "de", "fr", "sv", "de-CH", "no", "es", "it", "nl", "pt"]);
39
+ exports.DocumentsContextWithFacts = void 0;
40
+ const core = __importStar(require("../../core/index.js"));
41
+ const FactsContext_js_1 = require("./FactsContext.js");
42
+ exports.DocumentsContextWithFacts = core.serialization.object({
43
+ data: core.serialization.list(FactsContext_js_1.FactsContext),
44
+ });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index.js";
5
+ import * as Corti from "../../api/index.js";
6
+ import * as core from "../../core/index.js";
7
+ export declare const DocumentsContextWithString: core.serialization.ObjectSchema<serializers.DocumentsContextWithString.Raw, Corti.DocumentsContextWithString>;
8
+ export declare namespace DocumentsContextWithString {
9
+ interface Raw {
10
+ data: string;
11
+ }
12
+ }
@@ -36,6 +36,8 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.DocumentsContextTypeEnum = void 0;
39
+ exports.DocumentsContextWithString = void 0;
40
40
  const core = __importStar(require("../../core/index.js"));
41
- exports.DocumentsContextTypeEnum = core.serialization.enum_(["facts", "transcript", "string"]);
41
+ exports.DocumentsContextWithString = core.serialization.object({
42
+ data: core.serialization.string(),
43
+ });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index.js";
5
+ import * as Corti from "../../api/index.js";
6
+ import * as core from "../../core/index.js";
7
+ import { CommonTranscript } from "./CommonTranscript.js";
8
+ export declare const DocumentsContextWithTranscript: core.serialization.ObjectSchema<serializers.DocumentsContextWithTranscript.Raw, Corti.DocumentsContextWithTranscript>;
9
+ export declare namespace DocumentsContextWithTranscript {
10
+ interface Raw {
11
+ data: CommonTranscript.Raw;
12
+ }
13
+ }
@@ -36,12 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.DocumentsContextData = void 0;
39
+ exports.DocumentsContextWithTranscript = void 0;
40
40
  const core = __importStar(require("../../core/index.js"));
41
- const FactsContext_js_1 = require("./FactsContext.js");
42
41
  const CommonTranscript_js_1 = require("./CommonTranscript.js");
43
- exports.DocumentsContextData = core.serialization.undiscriminatedUnion([
44
- core.serialization.list(FactsContext_js_1.FactsContext),
45
- CommonTranscript_js_1.CommonTranscript,
46
- core.serialization.string(),
47
- ]);
42
+ exports.DocumentsContextWithTranscript = core.serialization.object({
43
+ data: CommonTranscript_js_1.CommonTranscript,
44
+ });
@@ -4,13 +4,9 @@
4
4
  import * as serializers from "../index.js";
5
5
  import * as Corti from "../../api/index.js";
6
6
  import * as core from "../../core/index.js";
7
- import { Uuid } from "./Uuid.js";
8
- export declare const DocumentsTemplate: core.serialization.ObjectSchema<serializers.DocumentsTemplate.Raw, Corti.DocumentsTemplate>;
7
+ import { DocumentsTemplateWithSectionKeys } from "./DocumentsTemplateWithSectionKeys.js";
8
+ import { DocumentsTemplateWithSectionIds } from "./DocumentsTemplateWithSectionIds.js";
9
+ export declare const DocumentsTemplate: core.serialization.Schema<serializers.DocumentsTemplate.Raw, Corti.DocumentsTemplate>;
9
10
  export declare namespace DocumentsTemplate {
10
- interface Raw {
11
- sectionIds?: Uuid.Raw[] | null;
12
- sectionKeys?: string[] | null;
13
- documentName?: string | null;
14
- additionalInstructions?: string | null;
15
- }
11
+ type Raw = DocumentsTemplateWithSectionKeys.Raw | DocumentsTemplateWithSectionIds.Raw;
16
12
  }
@@ -38,10 +38,6 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.DocumentsTemplate = void 0;
40
40
  const core = __importStar(require("../../core/index.js"));
41
- const Uuid_js_1 = require("./Uuid.js");
42
- exports.DocumentsTemplate = core.serialization.object({
43
- sectionIds: core.serialization.list(Uuid_js_1.Uuid).optional(),
44
- sectionKeys: core.serialization.list(core.serialization.string()).optional(),
45
- documentName: core.serialization.string().optional(),
46
- additionalInstructions: core.serialization.string().optional(),
47
- });
41
+ const DocumentsTemplateWithSectionKeys_js_1 = require("./DocumentsTemplateWithSectionKeys.js");
42
+ const DocumentsTemplateWithSectionIds_js_1 = require("./DocumentsTemplateWithSectionIds.js");
43
+ exports.DocumentsTemplate = core.serialization.undiscriminatedUnion([DocumentsTemplateWithSectionKeys_js_1.DocumentsTemplateWithSectionKeys, DocumentsTemplateWithSectionIds_js_1.DocumentsTemplateWithSectionIds]);
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index.js";
5
+ import * as Corti from "../../api/index.js";
6
+ import * as core from "../../core/index.js";
7
+ import { Uuid } from "./Uuid.js";
8
+ export declare const DocumentsTemplateWithSectionIds: core.serialization.ObjectSchema<serializers.DocumentsTemplateWithSectionIds.Raw, Corti.DocumentsTemplateWithSectionIds>;
9
+ export declare namespace DocumentsTemplateWithSectionIds {
10
+ interface Raw {
11
+ sectionIds: Uuid.Raw[];
12
+ documentName?: string | null;
13
+ additionalInstructions?: string | null;
14
+ }
15
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.DocumentsTemplateWithSectionIds = void 0;
40
+ const core = __importStar(require("../../core/index.js"));
41
+ const Uuid_js_1 = require("./Uuid.js");
42
+ exports.DocumentsTemplateWithSectionIds = core.serialization.object({
43
+ sectionIds: core.serialization.list(Uuid_js_1.Uuid),
44
+ documentName: core.serialization.string().optional(),
45
+ additionalInstructions: core.serialization.string().optional(),
46
+ });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index.js";
5
+ import * as Corti from "../../api/index.js";
6
+ import * as core from "../../core/index.js";
7
+ export declare const DocumentsTemplateWithSectionKeys: core.serialization.ObjectSchema<serializers.DocumentsTemplateWithSectionKeys.Raw, Corti.DocumentsTemplateWithSectionKeys>;
8
+ export declare namespace DocumentsTemplateWithSectionKeys {
9
+ interface Raw {
10
+ sectionKeys: string[];
11
+ documentName?: string | null;
12
+ additionalInstructions?: string | null;
13
+ }
14
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.DocumentsTemplateWithSectionKeys = void 0;
40
+ const core = __importStar(require("../../core/index.js"));
41
+ exports.DocumentsTemplateWithSectionKeys = core.serialization.object({
42
+ sectionKeys: core.serialization.list(core.serialization.string()),
43
+ documentName: core.serialization.string().optional(),
44
+ additionalInstructions: core.serialization.string().optional(),
45
+ });
@@ -6,5 +6,5 @@ import * as Corti from "../../api/index.js";
6
6
  import * as core from "../../core/index.js";
7
7
  export declare const StreamSupportedLanguage: core.serialization.Schema<serializers.StreamSupportedLanguage.Raw, Corti.StreamSupportedLanguage>;
8
8
  export declare namespace StreamSupportedLanguage {
9
- type Raw = "en" | "en-us" | "en-gb" | "da" | "se" | "no" | "de" | "nl" | "es" | "it" | "fr" | "pt" | "de-ch" | "sv";
9
+ type Raw = string;
10
10
  }
@@ -38,19 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.StreamSupportedLanguage = void 0;
40
40
  const core = __importStar(require("../../core/index.js"));
41
- exports.StreamSupportedLanguage = core.serialization.enum_([
42
- "en",
43
- "en-us",
44
- "en-gb",
45
- "da",
46
- "se",
47
- "no",
48
- "de",
49
- "nl",
50
- "es",
51
- "it",
52
- "fr",
53
- "pt",
54
- "de-ch",
55
- "sv",
56
- ]);
41
+ exports.StreamSupportedLanguage = core.serialization.string();
@@ -5,7 +5,7 @@ import * as serializers from "../index.js";
5
5
  import * as Corti from "../../api/index.js";
6
6
  import * as core from "../../core/index.js";
7
7
  import { TemplatesWritingStyle } from "./TemplatesWritingStyle.js";
8
- import { TemplatesTranslation } from "./TemplatesTranslation.js";
8
+ import { TemplatesSectionTranslation } from "./TemplatesSectionTranslation.js";
9
9
  export declare const TemplatesSection: core.serialization.ObjectSchema<serializers.TemplatesSection.Raw, Corti.TemplatesSection>;
10
10
  export declare namespace TemplatesSection {
11
11
  interface Raw {
@@ -16,6 +16,6 @@ export declare namespace TemplatesSection {
16
16
  description: string;
17
17
  default_writing_style: TemplatesWritingStyle.Raw;
18
18
  section_type: string;
19
- translations: TemplatesTranslation.Raw[];
19
+ translations: TemplatesSectionTranslation.Raw[];
20
20
  }
21
21
  }
@@ -39,7 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.TemplatesSection = void 0;
40
40
  const core = __importStar(require("../../core/index.js"));
41
41
  const TemplatesWritingStyle_js_1 = require("./TemplatesWritingStyle.js");
42
- const TemplatesTranslation_js_1 = require("./TemplatesTranslation.js");
42
+ const TemplatesSectionTranslation_js_1 = require("./TemplatesSectionTranslation.js");
43
43
  exports.TemplatesSection = core.serialization.object({
44
44
  dateUpdated: core.serialization.property("date_updated", core.serialization.date().optionalNullable()),
45
45
  name: core.serialization.string(),
@@ -48,5 +48,5 @@ exports.TemplatesSection = core.serialization.object({
48
48
  description: core.serialization.string(),
49
49
  defaultWritingStyle: core.serialization.property("default_writing_style", TemplatesWritingStyle_js_1.TemplatesWritingStyle),
50
50
  sectionType: core.serialization.property("section_type", core.serialization.string()),
51
- translations: core.serialization.list(TemplatesTranslation_js_1.TemplatesTranslation),
51
+ translations: core.serialization.list(TemplatesSectionTranslation_js_1.TemplatesSectionTranslation),
52
52
  });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index.js";
5
+ import * as Corti from "../../api/index.js";
6
+ import * as core from "../../core/index.js";
7
+ export declare const TemplatesSectionTranslation: core.serialization.ObjectSchema<serializers.TemplatesSectionTranslation.Raw, Corti.TemplatesSectionTranslation>;
8
+ export declare namespace TemplatesSectionTranslation {
9
+ interface Raw {
10
+ languages_id: string;
11
+ name?: (string | null) | null;
12
+ description?: (string | null) | null;
13
+ }
14
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.TemplatesSectionTranslation = void 0;
40
+ const core = __importStar(require("../../core/index.js"));
41
+ exports.TemplatesSectionTranslation = core.serialization.object({
42
+ languagesId: core.serialization.property("languages_id", core.serialization.string()),
43
+ name: core.serialization.string().optionalNullable(),
44
+ description: core.serialization.string().optionalNullable(),
45
+ });
@@ -8,7 +8,7 @@ export declare const TemplatesTranslation: core.serialization.ObjectSchema<seria
8
8
  export declare namespace TemplatesTranslation {
9
9
  interface Raw {
10
10
  languages_id: string;
11
- name?: (string | null) | null;
12
- description?: (string | null) | null;
11
+ name?: string | null;
12
+ description?: string | null;
13
13
  }
14
14
  }