@corti/sdk 1.2.0-rc → 1.2.0-templates-beta

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 (144) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/api/resources/agents/client/requests/AgentsCreateAgent.d.ts +0 -2
  4. package/dist/cjs/api/resources/agents/client/requests/AgentsUpdateAgent.d.ts +0 -2
  5. package/dist/cjs/api/resources/agents/types/AgentsUpdateAgentExpertsItem.d.ts +1 -1
  6. package/dist/cjs/api/resources/codes/client/Client.d.ts +1 -1
  7. package/dist/cjs/api/resources/codes/client/Client.js +1 -1
  8. package/dist/cjs/api/resources/stream/client/Socket.d.ts +1 -1
  9. package/dist/cjs/api/resources/transcribe/client/Socket.d.ts +1 -1
  10. package/dist/cjs/api/types/AgentsAgent.d.ts +0 -2
  11. package/dist/cjs/api/types/AgentsMcpServerTransportType.d.ts +0 -1
  12. package/dist/cjs/api/types/AgentsMcpServerTransportType.js +0 -1
  13. package/dist/cjs/api/types/AgentsRegistryExpert.d.ts +0 -4
  14. package/dist/cjs/api/types/CommonCodingSystemEnum.d.ts +0 -7
  15. package/dist/cjs/api/types/CommonCodingSystemEnum.js +0 -7
  16. package/dist/cjs/api/types/StreamConfigStatusMessageType.d.ts +1 -0
  17. package/dist/cjs/api/types/StreamConfigStatusMessageType.js +1 -0
  18. package/dist/cjs/api/types/TranscribeConfigStatusMessageType.d.ts +0 -2
  19. package/dist/cjs/api/types/TranscribeConfigStatusMessageType.js +0 -2
  20. package/dist/cjs/api/types/index.d.ts +0 -3
  21. package/dist/cjs/api/types/index.js +0 -3
  22. package/dist/cjs/custom/CortiClient.d.ts +69 -25
  23. package/dist/cjs/custom/CortiClient.js +0 -69
  24. package/dist/cjs/custom/auth/CortiAuth.d.ts +0 -27
  25. package/dist/cjs/custom/auth/CortiAuth.js +4 -10
  26. package/dist/cjs/custom/stream/CustomStream.js +3 -5
  27. package/dist/cjs/custom/transcribe/CustomTranscribe.js +2 -6
  28. package/dist/cjs/custom/utils/encodeHeadersAsWsProtocols.js +11 -2
  29. package/dist/cjs/serialization/resources/agents/client/requests/AgentsCreateAgent.d.ts +0 -2
  30. package/dist/cjs/serialization/resources/agents/client/requests/AgentsCreateAgent.js +0 -2
  31. package/dist/cjs/serialization/resources/agents/client/requests/AgentsUpdateAgent.d.ts +0 -2
  32. package/dist/cjs/serialization/resources/agents/client/requests/AgentsUpdateAgent.js +0 -2
  33. package/dist/cjs/serialization/resources/agents/types/AgentsUpdateAgentExpertsItem.d.ts +2 -2
  34. package/dist/cjs/serialization/resources/agents/types/AgentsUpdateAgentExpertsItem.js +2 -2
  35. package/dist/cjs/serialization/resources/stream/client/socket/StreamSocketResponse.d.ts +2 -3
  36. package/dist/cjs/serialization/resources/stream/client/socket/StreamSocketResponse.js +0 -2
  37. package/dist/cjs/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.d.ts +2 -3
  38. package/dist/cjs/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.js +0 -2
  39. package/dist/cjs/serialization/types/AgentsAgent.d.ts +0 -2
  40. package/dist/cjs/serialization/types/AgentsAgent.js +0 -2
  41. package/dist/cjs/serialization/types/AgentsMcpServerTransportType.d.ts +1 -1
  42. package/dist/cjs/serialization/types/AgentsMcpServerTransportType.js +1 -1
  43. package/dist/cjs/serialization/types/AgentsRegistryExpert.d.ts +0 -2
  44. package/dist/cjs/serialization/types/AgentsRegistryExpert.js +0 -2
  45. package/dist/cjs/serialization/types/CommonCodingSystemEnum.d.ts +1 -1
  46. package/dist/cjs/serialization/types/CommonCodingSystemEnum.js +0 -7
  47. package/dist/cjs/serialization/types/StreamConfigStatusMessageType.d.ts +1 -1
  48. package/dist/cjs/serialization/types/StreamConfigStatusMessageType.js +1 -0
  49. package/dist/cjs/serialization/types/TranscribeConfigStatusMessageType.d.ts +1 -1
  50. package/dist/cjs/serialization/types/TranscribeConfigStatusMessageType.js +1 -7
  51. package/dist/cjs/serialization/types/index.d.ts +0 -3
  52. package/dist/cjs/serialization/types/index.js +0 -3
  53. package/dist/cjs/version.d.ts +1 -1
  54. package/dist/cjs/version.js +1 -1
  55. package/dist/esm/BaseClient.mjs +2 -2
  56. package/dist/esm/api/resources/agents/client/requests/AgentsCreateAgent.d.mts +0 -2
  57. package/dist/esm/api/resources/agents/client/requests/AgentsUpdateAgent.d.mts +0 -2
  58. package/dist/esm/api/resources/agents/types/AgentsUpdateAgentExpertsItem.d.mts +1 -1
  59. package/dist/esm/api/resources/codes/client/Client.d.mts +1 -1
  60. package/dist/esm/api/resources/codes/client/Client.mjs +1 -1
  61. package/dist/esm/api/resources/stream/client/Socket.d.mts +1 -1
  62. package/dist/esm/api/resources/transcribe/client/Socket.d.mts +1 -1
  63. package/dist/esm/api/types/AgentsAgent.d.mts +0 -2
  64. package/dist/esm/api/types/AgentsMcpServerTransportType.d.mts +0 -1
  65. package/dist/esm/api/types/AgentsMcpServerTransportType.mjs +0 -1
  66. package/dist/esm/api/types/AgentsRegistryExpert.d.mts +0 -4
  67. package/dist/esm/api/types/CommonCodingSystemEnum.d.mts +0 -7
  68. package/dist/esm/api/types/CommonCodingSystemEnum.mjs +0 -7
  69. package/dist/esm/api/types/StreamConfigStatusMessageType.d.mts +1 -0
  70. package/dist/esm/api/types/StreamConfigStatusMessageType.mjs +1 -0
  71. package/dist/esm/api/types/TranscribeConfigStatusMessageType.d.mts +0 -2
  72. package/dist/esm/api/types/TranscribeConfigStatusMessageType.mjs +0 -2
  73. package/dist/esm/api/types/index.d.mts +0 -3
  74. package/dist/esm/api/types/index.mjs +0 -3
  75. package/dist/esm/custom/CortiClient.d.mts +69 -25
  76. package/dist/esm/custom/CortiClient.mjs +0 -36
  77. package/dist/esm/custom/auth/CortiAuth.d.mts +0 -27
  78. package/dist/esm/custom/auth/CortiAuth.mjs +4 -10
  79. package/dist/esm/custom/stream/CustomStream.mjs +3 -5
  80. package/dist/esm/custom/transcribe/CustomTranscribe.mjs +2 -6
  81. package/dist/esm/custom/utils/encodeHeadersAsWsProtocols.mjs +10 -1
  82. package/dist/esm/serialization/resources/agents/client/requests/AgentsCreateAgent.d.mts +0 -2
  83. package/dist/esm/serialization/resources/agents/client/requests/AgentsCreateAgent.mjs +0 -2
  84. package/dist/esm/serialization/resources/agents/client/requests/AgentsUpdateAgent.d.mts +0 -2
  85. package/dist/esm/serialization/resources/agents/client/requests/AgentsUpdateAgent.mjs +0 -2
  86. package/dist/esm/serialization/resources/agents/types/AgentsUpdateAgentExpertsItem.d.mts +2 -2
  87. package/dist/esm/serialization/resources/agents/types/AgentsUpdateAgentExpertsItem.mjs +2 -2
  88. package/dist/esm/serialization/resources/stream/client/socket/StreamSocketResponse.d.mts +2 -3
  89. package/dist/esm/serialization/resources/stream/client/socket/StreamSocketResponse.mjs +0 -2
  90. package/dist/esm/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.d.mts +2 -3
  91. package/dist/esm/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.mjs +0 -2
  92. package/dist/esm/serialization/types/AgentsAgent.d.mts +0 -2
  93. package/dist/esm/serialization/types/AgentsAgent.mjs +0 -2
  94. package/dist/esm/serialization/types/AgentsMcpServerTransportType.d.mts +1 -1
  95. package/dist/esm/serialization/types/AgentsMcpServerTransportType.mjs +1 -1
  96. package/dist/esm/serialization/types/AgentsRegistryExpert.d.mts +0 -2
  97. package/dist/esm/serialization/types/AgentsRegistryExpert.mjs +0 -2
  98. package/dist/esm/serialization/types/CommonCodingSystemEnum.d.mts +1 -1
  99. package/dist/esm/serialization/types/CommonCodingSystemEnum.mjs +0 -7
  100. package/dist/esm/serialization/types/StreamConfigStatusMessageType.d.mts +1 -1
  101. package/dist/esm/serialization/types/StreamConfigStatusMessageType.mjs +1 -0
  102. package/dist/esm/serialization/types/TranscribeConfigStatusMessageType.d.mts +1 -1
  103. package/dist/esm/serialization/types/TranscribeConfigStatusMessageType.mjs +1 -7
  104. package/dist/esm/serialization/types/index.d.mts +0 -3
  105. package/dist/esm/serialization/types/index.mjs +0 -3
  106. package/dist/esm/version.d.mts +1 -1
  107. package/dist/esm/version.mjs +1 -1
  108. package/package.json +1 -1
  109. package/dist/cjs/api/types/AgentsUpdateExpertReference.d.ts +0 -5
  110. package/dist/cjs/api/types/AgentsUpdateExpertReference.js +0 -3
  111. package/dist/cjs/api/types/StreamDeltaUsageMessage.d.ts +0 -5
  112. package/dist/cjs/api/types/StreamDeltaUsageMessage.js +0 -3
  113. package/dist/cjs/api/types/TranscribeDeltaUsageMessage.d.ts +0 -5
  114. package/dist/cjs/api/types/TranscribeDeltaUsageMessage.js +0 -3
  115. package/dist/cjs/custom/agents/CustomAgents.d.ts +0 -20
  116. package/dist/cjs/custom/agents/CustomAgents.js +0 -73
  117. package/dist/cjs/custom/utils/sdkHeaderNames.d.ts +0 -1
  118. package/dist/cjs/custom/utils/sdkHeaderNames.js +0 -12
  119. package/dist/cjs/custom/utils/stripFernNormalizedHeaders.d.ts +0 -5
  120. package/dist/cjs/custom/utils/stripFernNormalizedHeaders.js +0 -27
  121. package/dist/cjs/serialization/types/AgentsUpdateExpertReference.d.ts +0 -8
  122. package/dist/cjs/serialization/types/AgentsUpdateExpertReference.js +0 -6
  123. package/dist/cjs/serialization/types/StreamDeltaUsageMessage.d.ts +0 -10
  124. package/dist/cjs/serialization/types/StreamDeltaUsageMessage.js +0 -42
  125. package/dist/cjs/serialization/types/TranscribeDeltaUsageMessage.d.ts +0 -10
  126. package/dist/cjs/serialization/types/TranscribeDeltaUsageMessage.js +0 -42
  127. package/dist/esm/api/types/AgentsUpdateExpertReference.d.mts +0 -5
  128. package/dist/esm/api/types/AgentsUpdateExpertReference.mjs +0 -2
  129. package/dist/esm/api/types/StreamDeltaUsageMessage.d.mts +0 -5
  130. package/dist/esm/api/types/StreamDeltaUsageMessage.mjs +0 -2
  131. package/dist/esm/api/types/TranscribeDeltaUsageMessage.d.mts +0 -5
  132. package/dist/esm/api/types/TranscribeDeltaUsageMessage.mjs +0 -2
  133. package/dist/esm/custom/agents/CustomAgents.d.mts +0 -20
  134. package/dist/esm/custom/agents/CustomAgents.mjs +0 -36
  135. package/dist/esm/custom/utils/sdkHeaderNames.d.mts +0 -1
  136. package/dist/esm/custom/utils/sdkHeaderNames.mjs +0 -9
  137. package/dist/esm/custom/utils/stripFernNormalizedHeaders.d.mts +0 -5
  138. package/dist/esm/custom/utils/stripFernNormalizedHeaders.mjs +0 -24
  139. package/dist/esm/serialization/types/AgentsUpdateExpertReference.d.mts +0 -8
  140. package/dist/esm/serialization/types/AgentsUpdateExpertReference.mjs +0 -3
  141. package/dist/esm/serialization/types/StreamDeltaUsageMessage.d.mts +0 -10
  142. package/dist/esm/serialization/types/StreamDeltaUsageMessage.mjs +0 -6
  143. package/dist/esm/serialization/types/TranscribeDeltaUsageMessage.d.mts +0 -10
  144. package/dist/esm/serialization/types/TranscribeDeltaUsageMessage.mjs +0 -6
@@ -1,10 +1,25 @@
1
+ import type { OAuthAuthProvider } from "../auth/OAuthAuthProvider.mjs";
1
2
  import { CortiClient as BaseCortiClient } from "../Client.mjs";
2
3
  import type * as environments from "../environments.mjs";
3
- import { CustomAgents } from "./agents/CustomAgents.mjs";
4
4
  import { CortiAuth } from "./auth/CortiAuth.mjs";
5
5
  import { CustomStream } from "./stream/CustomStream.mjs";
6
6
  import { CustomTranscribe } from "./transcribe/CustomTranscribe.mjs";
7
7
  import { type Environment } from "./utils/environment.mjs";
8
+ type TokenDerivableAuth = {
9
+ accessToken: string;
10
+ refreshAccessToken?: OAuthAuthProvider.RefreshAccessTokenFunction;
11
+ expiresIn?: number;
12
+ refreshToken?: string;
13
+ refreshExpiresIn?: number;
14
+ clientId?: string;
15
+ } | {
16
+ refreshAccessToken: OAuthAuthProvider.RefreshAccessTokenFunction;
17
+ accessToken?: string;
18
+ expiresIn?: number;
19
+ refreshToken?: string;
20
+ refreshExpiresIn?: number;
21
+ clientId?: string;
22
+ };
8
23
  type OptionsBase = Omit<BaseCortiClient.Options, "clientId" | "clientSecret" | "token" | "environment" | "tenantName" | "baseUrl"> & {
9
24
  withCredentials?: boolean;
10
25
  /**
@@ -15,23 +30,71 @@ type OptionsBase = Omit<BaseCortiClient.Options, "clientId" | "clientSecret" | "
15
30
  encodeHeadersAsWsProtocols?: boolean;
16
31
  };
17
32
  export declare namespace CortiClient {
18
- type Auth = CortiAuth.AuthServer | CortiAuth.AuthTokenDerivable;
33
+ type Auth = {
34
+ clientId: string;
35
+ clientSecret: string;
36
+ } | {
37
+ accessToken: string;
38
+ refreshAccessToken?: OAuthAuthProvider.RefreshAccessTokenFunction;
39
+ expiresIn?: number;
40
+ refreshToken?: string;
41
+ refreshExpiresIn?: number;
42
+ clientId?: string;
43
+ } | {
44
+ clientId: string;
45
+ username: string;
46
+ password: string;
47
+ } | {
48
+ clientId: string;
49
+ clientSecret: string;
50
+ code: string;
51
+ redirectUri: string;
52
+ } | {
53
+ clientId: string;
54
+ code: string;
55
+ redirectUri: string;
56
+ codeVerifier?: string;
57
+ } | {
58
+ refreshAccessToken: OAuthAuthProvider.RefreshAccessTokenFunction;
59
+ accessToken?: string;
60
+ expiresIn?: number;
61
+ refreshToken?: string;
62
+ refreshExpiresIn?: number;
63
+ clientId?: string;
64
+ };
19
65
  type Options = (OptionsBase & {
20
- auth: CortiAuth.AuthServer;
66
+ auth: {
67
+ clientId: string;
68
+ clientSecret: string;
69
+ } | {
70
+ clientId: string;
71
+ username: string;
72
+ password: string;
73
+ } | {
74
+ clientId: string;
75
+ clientSecret: string;
76
+ code: string;
77
+ redirectUri: string;
78
+ } | {
79
+ clientId: string;
80
+ code: string;
81
+ redirectUri: string;
82
+ codeVerifier?: string;
83
+ };
21
84
  tenantName: string;
22
85
  environment: Environment;
23
86
  }) | (OptionsBase & {
24
- auth: CortiAuth.AuthTokenDerivable;
87
+ auth: TokenDerivableAuth;
25
88
  tenantName?: string;
26
89
  environment?: Environment;
27
90
  }) | (OptionsBase & {
28
91
  baseUrl: string;
29
- auth?: Auth;
92
+ auth?: CortiClient.Auth;
30
93
  tenantName?: string;
31
94
  environment?: Environment;
32
95
  }) | (OptionsBase & {
33
96
  environment: environments.CortiEnvironmentUrls;
34
- auth?: Auth;
97
+ auth?: CortiClient.Auth;
35
98
  tenantName?: string;
36
99
  });
37
100
  interface RequestOptions extends BaseCortiClient.RequestOptions {
@@ -41,29 +104,10 @@ export declare class CortiClient extends BaseCortiClient {
41
104
  protected _auth: CortiAuth | undefined;
42
105
  protected _stream: CustomStream | undefined;
43
106
  protected _transcribe: CustomTranscribe | undefined;
44
- protected _agents: CustomAgents | undefined;
45
107
  private readonly _encodeHeadersAsWsProtocols;
46
108
  constructor(options: CortiClient.Options);
47
109
  get auth(): CortiAuth;
48
110
  get stream(): CustomStream;
49
111
  get transcribe(): CustomTranscribe;
50
- get agents(): CustomAgents;
51
- /**
52
- * Retrieves authentication headers for API requests.
53
- *
54
- * This method returns a Headers object containing the Authorization header with a valid
55
- * bearer token and the Tenant-Name header. The token is automatically refreshed if needed.
56
- *
57
- * @returns A Promise that resolves to a Headers object with Authorization and Tenant-Name headers
58
- *
59
- * @example
60
- * ```typescript
61
- * const client = new CortiClient({ ... });
62
- * const headers = await client.getAuthHeaders();
63
- * console.log(headers.get("Authorization")); // "Bearer ..."
64
- * console.log(headers.get("Tenant-Name")); // "your-tenant"
65
- * ```
66
- */
67
- getAuthHeaders: () => Promise<Headers>;
68
112
  }
69
113
  export {};
@@ -1,15 +1,4 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
1
  import { CortiClient as BaseCortiClient } from "../Client.mjs";
11
- import * as core from "../core/index.mjs";
12
- import { CustomAgents } from "./agents/CustomAgents.mjs";
13
2
  import { CortiAuth } from "./auth/CortiAuth.mjs";
14
3
  import { CustomStream } from "./stream/CustomStream.mjs";
15
4
  import { CustomTranscribe } from "./transcribe/CustomTranscribe.mjs";
@@ -23,27 +12,6 @@ export class CortiClient extends BaseCortiClient {
23
12
  const ctx = resolveClientOptions(options);
24
13
  const restOptions = Object.assign(Object.assign(Object.assign({}, opts), { tenantName: ctx.tenantName, environment: getEnvironment(ctx.environment) }), (ctx.initialTokenResponse != null ? { initialTokenResponse: ctx.initialTokenResponse } : {}));
25
14
  super(authToBaseOptions(opts.auth, restOptions));
26
- /**
27
- * Retrieves authentication headers for API requests.
28
- *
29
- * This method returns a Headers object containing the Authorization header with a valid
30
- * bearer token and the Tenant-Name header. The token is automatically refreshed if needed.
31
- *
32
- * @returns A Promise that resolves to a Headers object with Authorization and Tenant-Name headers
33
- *
34
- * @example
35
- * ```typescript
36
- * const client = new CortiClient({ ... });
37
- * const headers = await client.getAuthHeaders();
38
- * console.log(headers.get("Authorization")); // "Bearer ..."
39
- * console.log(headers.get("Tenant-Name")); // "your-tenant"
40
- * ```
41
- */
42
- this.getAuthHeaders = () => __awaiter(this, void 0, void 0, function* () {
43
- var _a;
44
- const req = yield this._options.authProvider.getAuthRequest();
45
- return new Headers(Object.assign(Object.assign({}, ((_a = req.headers) !== null && _a !== void 0 ? _a : {})), { "Tenant-Name": yield core.Supplier.get(this._options.tenantName) }));
46
- });
47
15
  setDefaultWithCredentials(options.withCredentials);
48
16
  this._encodeHeadersAsWsProtocols = options.encodeHeadersAsWsProtocols;
49
17
  }
@@ -59,8 +27,4 @@ export class CortiClient extends BaseCortiClient {
59
27
  var _a;
60
28
  return ((_a = this._transcribe) !== null && _a !== void 0 ? _a : (this._transcribe = new CustomTranscribe(Object.assign(Object.assign({}, this._options), { encodeHeadersAsWsProtocols: this._encodeHeadersAsWsProtocols }))));
61
29
  }
62
- get agents() {
63
- var _a;
64
- return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new CustomAgents(this._options)));
65
- }
66
30
  }
@@ -45,32 +45,6 @@ export declare namespace CortiAuth {
45
45
  codeVerifier?: string;
46
46
  scopes?: string[];
47
47
  }
48
- /**
49
- * Auth shapes used by `CortiClient` when passing `auth: ...`.
50
- */
51
- type AuthClientCredentials = {
52
- clientId: string;
53
- clientSecret: string;
54
- };
55
- type AuthRopc = Omit<GetRopcFlowTokenRequest, "scopes">;
56
- type AuthCode = Omit<GetCodeFlowTokenRequest, "scopes">;
57
- type AuthPkce = Omit<GetPkceFlowTokenRequest, "scopes">;
58
- type AuthTokenDerivable = {
59
- accessToken: string;
60
- refreshAccessToken?: OAuthAuthProvider.RefreshAccessTokenFunction;
61
- expiresIn?: number;
62
- refreshToken?: string;
63
- refreshExpiresIn?: number;
64
- clientId?: string;
65
- } | {
66
- refreshAccessToken: OAuthAuthProvider.RefreshAccessTokenFunction;
67
- accessToken?: string;
68
- expiresIn?: number;
69
- refreshToken?: string;
70
- refreshExpiresIn?: number;
71
- clientId?: string;
72
- };
73
- type AuthServer = AuthClientCredentials | AuthRopc | AuthCode | AuthPkce;
74
48
  /** Parameters for authorizeURL — builds the Keycloak authorization endpoint URL. */
75
49
  interface AuthorizationCodeClient {
76
50
  clientId: string;
@@ -87,7 +61,6 @@ export declare namespace CortiAuth {
87
61
  }
88
62
  }
89
63
  export declare class CortiAuth extends AuthClient {
90
- private readonly _tenantName;
91
64
  /** No-op auth provider so super.token() does not trigger OAuth refresh. When auth is omitted, a dummy token is passed so the base constructor does not throw. */
92
65
  constructor(options: CortiAuth.Options);
93
66
  /**
@@ -25,19 +25,13 @@ import { buildTokenRequestBody } from "../utils/buildTokenRequestBody.mjs";
25
25
  import { getEnvironment } from "../utils/environment.mjs";
26
26
  import { CODE_VERIFIER_KEY, getLocalStorageItem, setLocalStorageItem } from "../utils/localStorageHelpers.mjs";
27
27
  import { generateCodeChallenge, generateCodeVerifier } from "../utils/pkceHelpers.mjs";
28
- import { stripFernNormalizedHeaders } from "../utils/stripFernNormalizedHeaders.mjs";
29
28
  export class CortiAuth extends AuthClient {
30
29
  /** No-op auth provider so super.token() does not trigger OAuth refresh. When auth is omitted, a dummy token is passed so the base constructor does not throw. */
31
30
  constructor(options) {
32
31
  var _a;
33
- const { environment, tenantName } = options, rest = __rest(options, ["environment", "tenantName"]);
34
- super(Object.assign(Object.assign({}, rest), {
35
- // @ts-expect-error it suppose to be required, but we need to filter out header without rewriting too much
36
- tenantName: null, environment: getEnvironment(environment), token: (_a = options.token) !== null && _a !== void 0 ? _a : (() => "") }));
37
- this._tenantName = tenantName;
32
+ const { environment } = options, rest = __rest(options, ["environment"]);
33
+ super(Object.assign(Object.assign({}, rest), { environment: getEnvironment(environment), token: (_a = options.token) !== null && _a !== void 0 ? _a : (() => "") }));
38
34
  this._options.authProvider = new core.NoOpAuthProvider();
39
- /** Stripping Fern headers to bypass CORS on authentication requests */
40
- this._options.headers = stripFernNormalizedHeaders(this._options.headers);
41
35
  }
42
36
  /**
43
37
  * Exchange credentials for a short-lived access token using the tenant token endpoint (client_credentials).
@@ -62,7 +56,7 @@ export class CortiAuth extends AuthClient {
62
56
  _getTokenWithTenant(request, requestOptions) {
63
57
  return __awaiter(this, void 0, void 0, function* () {
64
58
  const authRequest = buildTokenRequestBody(request);
65
- const tenantName = yield core.Supplier.get(this._tenantName);
59
+ const tenantName = yield core.Supplier.get(this._options.tenantName);
66
60
  return this.token(tenantName, authRequest, requestOptions).withRawResponse();
67
61
  });
68
62
  }
@@ -138,7 +132,7 @@ export class CortiAuth extends AuthClient {
138
132
  authorizeURL(_a, options_1) {
139
133
  return __awaiter(this, arguments, void 0, function* ({ clientId, redirectUri, codeChallenge, scopes }, options) {
140
134
  const envUrls = yield core.Supplier.get(this._options.environment);
141
- const tenantName = yield core.Supplier.get(this._tenantName);
135
+ const tenantName = yield core.Supplier.get(this._options.tenantName);
142
136
  const authUrl = new URL(core.url.join(envUrls.login, tenantName, "protocol/openid-connect/auth"));
143
137
  authUrl.searchParams.set("response_type", "code");
144
138
  const allScopes = ["openid", "profile", ...(scopes !== null && scopes !== void 0 ? scopes : [])];
@@ -28,6 +28,7 @@ import { parseStreamResponseType } from "./parseStreamResponseType.mjs";
28
28
  const STREAM_CONFIG_REJECTION_TYPES = [
29
29
  Corti.StreamConfigStatusMessageType.ConfigDenied,
30
30
  Corti.StreamConfigStatusMessageType.ConfigMissing,
31
+ Corti.StreamConfigStatusMessageType.ConfigTimeout,
31
32
  Corti.StreamConfigStatusMessageType.ConfigNotProvided,
32
33
  ];
33
34
  export class CustomStream extends StreamClient {
@@ -97,9 +98,7 @@ export class CustomStream extends StreamClient {
97
98
  });
98
99
  socket.socket.addEventListener("message", (event) => {
99
100
  const type = parseStreamResponseType(event.data);
100
- if (type == null ||
101
- type === Corti.StreamConfigStatusMessageType.ConfigAccepted ||
102
- type === Corti.StreamConfigStatusMessageType.ConfigAlreadyReceived) {
101
+ if (type == null || type === Corti.StreamConfigStatusMessageType.ConfigAccepted) {
103
102
  return;
104
103
  }
105
104
  if (STREAM_CONFIG_REJECTION_TYPES.includes(type) || type === "error") {
@@ -127,8 +126,7 @@ export class CustomStream extends StreamClient {
127
126
  const type = parseStreamResponseType(event.data);
128
127
  if (type == null)
129
128
  return;
130
- if (type === Corti.StreamConfigStatusMessageType.ConfigAccepted ||
131
- type === Corti.StreamConfigStatusMessageType.ConfigAlreadyReceived) {
129
+ if (type === Corti.StreamConfigStatusMessageType.ConfigAccepted) {
132
130
  cleanup();
133
131
  resolve();
134
132
  }
@@ -28,7 +28,6 @@ import { parseTranscribeResponseType } from "./parseTranscribeResponseType.mjs";
28
28
  const TRANSCRIBE_CONFIG_REJECTION_TYPES = [
29
29
  Corti.TranscribeConfigStatusMessageType.ConfigDenied,
30
30
  Corti.TranscribeConfigStatusMessageType.ConfigTimeout,
31
- Corti.TranscribeConfigStatusMessageType.ConfigMissing,
32
31
  ];
33
32
  export class CustomTranscribe extends TranscribeClient {
34
33
  constructor(options) {
@@ -97,9 +96,7 @@ export class CustomTranscribe extends TranscribeClient {
97
96
  });
98
97
  socket.socket.addEventListener("message", (event) => {
99
98
  const type = parseTranscribeResponseType(event.data);
100
- if (type == null ||
101
- type === Corti.TranscribeConfigStatusMessageType.ConfigAccepted ||
102
- type === Corti.TranscribeConfigStatusMessageType.ConfigAlreadyReceived) {
99
+ if (type == null || type === Corti.TranscribeConfigStatusMessageType.ConfigAccepted) {
103
100
  return;
104
101
  }
105
102
  if (TRANSCRIBE_CONFIG_REJECTION_TYPES.includes(type) || type === "error") {
@@ -127,8 +124,7 @@ export class CustomTranscribe extends TranscribeClient {
127
124
  const type = parseTranscribeResponseType(event.data);
128
125
  if (type == null)
129
126
  return;
130
- if (type === Corti.TranscribeConfigStatusMessageType.ConfigAccepted ||
131
- type === Corti.TranscribeConfigStatusMessageType.ConfigAlreadyReceived) {
127
+ if (type === Corti.TranscribeConfigStatusMessageType.ConfigAccepted) {
132
128
  cleanup();
133
129
  resolve();
134
130
  }
@@ -12,7 +12,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
12
12
  });
13
13
  };
14
14
  import * as core from "../../core/index.mjs";
15
- import { SDK_HEADER_NAMES } from "./sdkHeaderNames.mjs";
15
+ /** Headers added by the SDK; exclude these when filterSdkHeaders is true (e.g. merged client headers). */
16
+ const SDK_HEADER_NAMES = new Set([
17
+ "Tenant-Name",
18
+ "X-Fern-Language",
19
+ "X-Fern-SDK-Name",
20
+ "X-Fern-SDK-Version",
21
+ "User-Agent",
22
+ "X-Fern-Runtime",
23
+ "X-Fern-Runtime-Version",
24
+ ]);
16
25
  /**
17
26
  * Resolves header values (including suppliers/functions) and returns a flat array
18
27
  * of [name, encodeURIComponent(value)] for each header, skipping undefined/empty values.
@@ -1,7 +1,6 @@
1
1
  import type * as Corti from "../../../../../api/index.mjs";
2
2
  import * as core from "../../../../../core/index.mjs";
3
3
  import type * as serializers from "../../../../index.mjs";
4
- import { AgentsCreateMcpServer } from "../../../../types/AgentsCreateMcpServer.mjs";
5
4
  import { AgentsCreateAgentAgentType } from "../../types/AgentsCreateAgentAgentType.mjs";
6
5
  import { AgentsCreateAgentExpertsItem } from "../../types/AgentsCreateAgentExpertsItem.mjs";
7
6
  export declare const AgentsCreateAgent: core.serialization.Schema<serializers.AgentsCreateAgent.Raw, Omit<Corti.AgentsCreateAgent, "ephemeral">>;
@@ -12,6 +11,5 @@ export declare namespace AgentsCreateAgent {
12
11
  systemPrompt?: string | null;
13
12
  description: string;
14
13
  experts?: AgentsCreateAgentExpertsItem.Raw[] | null;
15
- mcpServers?: AgentsCreateMcpServer.Raw[] | null;
16
14
  }
17
15
  }
@@ -1,6 +1,5 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../../../../core/index.mjs";
3
- import { AgentsCreateMcpServer } from "../../../../types/AgentsCreateMcpServer.mjs";
4
3
  import { AgentsCreateAgentAgentType } from "../../types/AgentsCreateAgentAgentType.mjs";
5
4
  import { AgentsCreateAgentExpertsItem } from "../../types/AgentsCreateAgentExpertsItem.mjs";
6
5
  export const AgentsCreateAgent = core.serialization.object({
@@ -9,5 +8,4 @@ export const AgentsCreateAgent = core.serialization.object({
9
8
  systemPrompt: core.serialization.string().optional(),
10
9
  description: core.serialization.string(),
11
10
  experts: core.serialization.list(AgentsCreateAgentExpertsItem).optional(),
12
- mcpServers: core.serialization.list(AgentsCreateMcpServer).optional(),
13
11
  });
@@ -1,7 +1,6 @@
1
1
  import type * as Corti from "../../../../../api/index.mjs";
2
2
  import * as core from "../../../../../core/index.mjs";
3
3
  import type * as serializers from "../../../../index.mjs";
4
- import { AgentsCreateMcpServer } from "../../../../types/AgentsCreateMcpServer.mjs";
5
4
  import { AgentsUpdateAgentExpertsItem } from "../../types/AgentsUpdateAgentExpertsItem.mjs";
6
5
  export declare const AgentsUpdateAgent: core.serialization.Schema<serializers.AgentsUpdateAgent.Raw, Corti.AgentsUpdateAgent>;
7
6
  export declare namespace AgentsUpdateAgent {
@@ -10,6 +9,5 @@ export declare namespace AgentsUpdateAgent {
10
9
  systemPrompt?: string | null;
11
10
  description?: string | null;
12
11
  experts?: AgentsUpdateAgentExpertsItem.Raw[] | null;
13
- mcpServers?: AgentsCreateMcpServer.Raw[] | null;
14
12
  }
15
13
  }
@@ -1,11 +1,9 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../../../../core/index.mjs";
3
- import { AgentsCreateMcpServer } from "../../../../types/AgentsCreateMcpServer.mjs";
4
3
  import { AgentsUpdateAgentExpertsItem } from "../../types/AgentsUpdateAgentExpertsItem.mjs";
5
4
  export const AgentsUpdateAgent = core.serialization.object({
6
5
  name: core.serialization.string().optional(),
7
6
  systemPrompt: core.serialization.string().optional(),
8
7
  description: core.serialization.string().optional(),
9
8
  experts: core.serialization.list(AgentsUpdateAgentExpertsItem).optional(),
10
- mcpServers: core.serialization.list(AgentsCreateMcpServer).optional(),
11
9
  });
@@ -2,8 +2,8 @@ import type * as Corti from "../../../../api/index.mjs";
2
2
  import * as core from "../../../../core/index.mjs";
3
3
  import type * as serializers from "../../../index.mjs";
4
4
  import { AgentsCreateExpert } from "../../../types/AgentsCreateExpert.mjs";
5
- import { AgentsUpdateExpertReference } from "../../../types/AgentsUpdateExpertReference.mjs";
5
+ import { AgentsCreateExpertReference } from "../../../types/AgentsCreateExpertReference.mjs";
6
6
  export declare const AgentsUpdateAgentExpertsItem: core.serialization.Schema<serializers.AgentsUpdateAgentExpertsItem.Raw, Corti.AgentsUpdateAgentExpertsItem>;
7
7
  export declare namespace AgentsUpdateAgentExpertsItem {
8
- type Raw = AgentsCreateExpert.Raw | AgentsUpdateExpertReference.Raw;
8
+ type Raw = AgentsCreateExpert.Raw | AgentsCreateExpertReference.Raw;
9
9
  }
@@ -1,5 +1,5 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../../../core/index.mjs";
3
3
  import { AgentsCreateExpert } from "../../../types/AgentsCreateExpert.mjs";
4
- import { AgentsUpdateExpertReference } from "../../../types/AgentsUpdateExpertReference.mjs";
5
- export const AgentsUpdateAgentExpertsItem = core.serialization.undiscriminatedUnion([AgentsCreateExpert, AgentsUpdateExpertReference]);
4
+ import { AgentsCreateExpertReference } from "../../../types/AgentsCreateExpertReference.mjs";
5
+ export const AgentsUpdateAgentExpertsItem = core.serialization.undiscriminatedUnion([AgentsCreateExpert, AgentsCreateExpertReference]);
@@ -2,14 +2,13 @@ import type * as Corti from "../../../../../api/index.mjs";
2
2
  import * as core from "../../../../../core/index.mjs";
3
3
  import type * as serializers from "../../../../index.mjs";
4
4
  import { StreamConfigStatusMessage } from "../../../../types/StreamConfigStatusMessage.mjs";
5
- import { StreamDeltaUsageMessage } from "../../../../types/StreamDeltaUsageMessage.mjs";
6
5
  import { StreamEndedMessage } from "../../../../types/StreamEndedMessage.mjs";
7
6
  import { StreamErrorMessage } from "../../../../types/StreamErrorMessage.mjs";
8
7
  import { StreamFactsMessage } from "../../../../types/StreamFactsMessage.mjs";
9
8
  import { StreamFlushedMessage } from "../../../../types/StreamFlushedMessage.mjs";
10
9
  import { StreamTranscriptMessage } from "../../../../types/StreamTranscriptMessage.mjs";
11
10
  import { StreamUsageMessage } from "../../../../types/StreamUsageMessage.mjs";
12
- export declare const StreamSocketResponse: core.serialization.Schema<serializers.StreamSocketResponse.Raw, Corti.StreamTranscriptMessage | Corti.StreamFactsMessage | Corti.StreamFlushedMessage | Corti.StreamDeltaUsageMessage | Corti.StreamEndedMessage | Corti.StreamUsageMessage | Corti.StreamErrorMessage | Corti.StreamConfigStatusMessage>;
11
+ export declare const StreamSocketResponse: core.serialization.Schema<serializers.StreamSocketResponse.Raw, Corti.StreamTranscriptMessage | Corti.StreamFactsMessage | Corti.StreamFlushedMessage | Corti.StreamEndedMessage | Corti.StreamUsageMessage | Corti.StreamErrorMessage | Corti.StreamConfigStatusMessage>;
13
12
  export declare namespace StreamSocketResponse {
14
- type Raw = StreamTranscriptMessage.Raw | StreamFactsMessage.Raw | StreamFlushedMessage.Raw | StreamDeltaUsageMessage.Raw | StreamEndedMessage.Raw | StreamUsageMessage.Raw | StreamErrorMessage.Raw | StreamConfigStatusMessage.Raw;
13
+ type Raw = StreamTranscriptMessage.Raw | StreamFactsMessage.Raw | StreamFlushedMessage.Raw | StreamEndedMessage.Raw | StreamUsageMessage.Raw | StreamErrorMessage.Raw | StreamConfigStatusMessage.Raw;
15
14
  }
@@ -1,7 +1,6 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../../../../core/index.mjs";
3
3
  import { StreamConfigStatusMessage } from "../../../../types/StreamConfigStatusMessage.mjs";
4
- import { StreamDeltaUsageMessage } from "../../../../types/StreamDeltaUsageMessage.mjs";
5
4
  import { StreamEndedMessage } from "../../../../types/StreamEndedMessage.mjs";
6
5
  import { StreamErrorMessage } from "../../../../types/StreamErrorMessage.mjs";
7
6
  import { StreamFactsMessage } from "../../../../types/StreamFactsMessage.mjs";
@@ -12,7 +11,6 @@ export const StreamSocketResponse = core.serialization.undiscriminatedUnion([
12
11
  StreamTranscriptMessage,
13
12
  StreamFactsMessage,
14
13
  StreamFlushedMessage,
15
- StreamDeltaUsageMessage,
16
14
  StreamEndedMessage,
17
15
  StreamUsageMessage,
18
16
  StreamErrorMessage,
@@ -3,13 +3,12 @@ import * as core from "../../../../../core/index.mjs";
3
3
  import type * as serializers from "../../../../index.mjs";
4
4
  import { TranscribeCommandMessage } from "../../../../types/TranscribeCommandMessage.mjs";
5
5
  import { TranscribeConfigStatusMessage } from "../../../../types/TranscribeConfigStatusMessage.mjs";
6
- import { TranscribeDeltaUsageMessage } from "../../../../types/TranscribeDeltaUsageMessage.mjs";
7
6
  import { TranscribeEndedMessage } from "../../../../types/TranscribeEndedMessage.mjs";
8
7
  import { TranscribeErrorMessage } from "../../../../types/TranscribeErrorMessage.mjs";
9
8
  import { TranscribeFlushedMessage } from "../../../../types/TranscribeFlushedMessage.mjs";
10
9
  import { TranscribeTranscriptMessage } from "../../../../types/TranscribeTranscriptMessage.mjs";
11
10
  import { TranscribeUsageMessage } from "../../../../types/TranscribeUsageMessage.mjs";
12
- export declare const TranscribeSocketResponse: core.serialization.Schema<serializers.TranscribeSocketResponse.Raw, Corti.TranscribeUsageMessage | Corti.TranscribeFlushedMessage | Corti.TranscribeDeltaUsageMessage | Corti.TranscribeEndedMessage | Corti.TranscribeErrorMessage | Corti.TranscribeTranscriptMessage | Corti.TranscribeCommandMessage | Corti.TranscribeConfigStatusMessage>;
11
+ export declare const TranscribeSocketResponse: core.serialization.Schema<serializers.TranscribeSocketResponse.Raw, Corti.TranscribeUsageMessage | Corti.TranscribeFlushedMessage | Corti.TranscribeEndedMessage | Corti.TranscribeErrorMessage | Corti.TranscribeTranscriptMessage | Corti.TranscribeCommandMessage | Corti.TranscribeConfigStatusMessage>;
13
12
  export declare namespace TranscribeSocketResponse {
14
- type Raw = TranscribeUsageMessage.Raw | TranscribeFlushedMessage.Raw | TranscribeDeltaUsageMessage.Raw | TranscribeEndedMessage.Raw | TranscribeErrorMessage.Raw | TranscribeTranscriptMessage.Raw | TranscribeCommandMessage.Raw | TranscribeConfigStatusMessage.Raw;
13
+ type Raw = TranscribeUsageMessage.Raw | TranscribeFlushedMessage.Raw | TranscribeEndedMessage.Raw | TranscribeErrorMessage.Raw | TranscribeTranscriptMessage.Raw | TranscribeCommandMessage.Raw | TranscribeConfigStatusMessage.Raw;
15
14
  }
@@ -2,7 +2,6 @@
2
2
  import * as core from "../../../../../core/index.mjs";
3
3
  import { TranscribeCommandMessage } from "../../../../types/TranscribeCommandMessage.mjs";
4
4
  import { TranscribeConfigStatusMessage } from "../../../../types/TranscribeConfigStatusMessage.mjs";
5
- import { TranscribeDeltaUsageMessage } from "../../../../types/TranscribeDeltaUsageMessage.mjs";
6
5
  import { TranscribeEndedMessage } from "../../../../types/TranscribeEndedMessage.mjs";
7
6
  import { TranscribeErrorMessage } from "../../../../types/TranscribeErrorMessage.mjs";
8
7
  import { TranscribeFlushedMessage } from "../../../../types/TranscribeFlushedMessage.mjs";
@@ -11,7 +10,6 @@ import { TranscribeUsageMessage } from "../../../../types/TranscribeUsageMessage
11
10
  export const TranscribeSocketResponse = core.serialization.undiscriminatedUnion([
12
11
  TranscribeUsageMessage,
13
12
  TranscribeFlushedMessage,
14
- TranscribeDeltaUsageMessage,
15
13
  TranscribeEndedMessage,
16
14
  TranscribeErrorMessage,
17
15
  TranscribeTranscriptMessage,
@@ -2,7 +2,6 @@ import type * as Corti from "../../api/index.mjs";
2
2
  import * as core from "../../core/index.mjs";
3
3
  import type * as serializers from "../index.mjs";
4
4
  import { AgentsAgentExpertsItem } from "./AgentsAgentExpertsItem.mjs";
5
- import { AgentsMcpServer } from "./AgentsMcpServer.mjs";
6
5
  export declare const AgentsAgent: core.serialization.ObjectSchema<serializers.AgentsAgent.Raw, Corti.AgentsAgent>;
7
6
  export declare namespace AgentsAgent {
8
7
  interface Raw {
@@ -11,6 +10,5 @@ export declare namespace AgentsAgent {
11
10
  description: string;
12
11
  systemPrompt: string;
13
12
  experts?: AgentsAgentExpertsItem.Raw[] | null;
14
- mcpServers?: AgentsMcpServer.Raw[] | null;
15
13
  }
16
14
  }
@@ -1,12 +1,10 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../core/index.mjs";
3
3
  import { AgentsAgentExpertsItem } from "./AgentsAgentExpertsItem.mjs";
4
- import { AgentsMcpServer } from "./AgentsMcpServer.mjs";
5
4
  export const AgentsAgent = core.serialization.object({
6
5
  id: core.serialization.string(),
7
6
  name: core.serialization.string(),
8
7
  description: core.serialization.string(),
9
8
  systemPrompt: core.serialization.string(),
10
9
  experts: core.serialization.list(AgentsAgentExpertsItem).optional(),
11
- mcpServers: core.serialization.list(AgentsMcpServer).optional(),
12
10
  });
@@ -3,5 +3,5 @@ import * as core from "../../core/index.mjs";
3
3
  import type * as serializers from "../index.mjs";
4
4
  export declare const AgentsMcpServerTransportType: core.serialization.Schema<serializers.AgentsMcpServerTransportType.Raw, Corti.AgentsMcpServerTransportType>;
5
5
  export declare namespace AgentsMcpServerTransportType {
6
- type Raw = "stdio" | "streamable_http" | "sse";
6
+ type Raw = "stdio" | "streamable_http";
7
7
  }
@@ -1,3 +1,3 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../core/index.mjs";
3
- export const AgentsMcpServerTransportType = core.serialization.enum_(["stdio", "streamable_http", "sse"]);
3
+ export const AgentsMcpServerTransportType = core.serialization.enum_(["stdio", "streamable_http"]);
@@ -6,8 +6,6 @@ export declare const AgentsRegistryExpert: core.serialization.ObjectSchema<seria
6
6
  export declare namespace AgentsRegistryExpert {
7
7
  interface Raw {
8
8
  name: string;
9
- displayName?: string | null;
10
- displayDescription?: string | null;
11
9
  description: string;
12
10
  mcpServers?: AgentsRegistryMcpServer.Raw[] | null;
13
11
  }
@@ -3,8 +3,6 @@ import * as core from "../../core/index.mjs";
3
3
  import { AgentsRegistryMcpServer } from "./AgentsRegistryMcpServer.mjs";
4
4
  export const AgentsRegistryExpert = core.serialization.object({
5
5
  name: core.serialization.string(),
6
- displayName: core.serialization.string().optional(),
7
- displayDescription: core.serialization.string().optional(),
8
6
  description: core.serialization.string(),
9
7
  mcpServers: core.serialization.list(AgentsRegistryMcpServer).optional(),
10
8
  });
@@ -3,5 +3,5 @@ import * as core from "../../core/index.mjs";
3
3
  import type * as serializers from "../index.mjs";
4
4
  export declare const CommonCodingSystemEnum: core.serialization.Schema<serializers.CommonCodingSystemEnum.Raw, Corti.CommonCodingSystemEnum>;
5
5
  export declare namespace CommonCodingSystemEnum {
6
- type Raw = "icd10cm-inpatient" | "icd10cm-outpatient" | "icd10pcs" | "cpt" | "icd10int-inpatient" | "icd10int-outpatient" | "icd10uk-inpatient" | "icd10uk-outpatient" | "cim10fr-inpatient" | "cim10fr-outpatient" | "icd10gm-inpatient" | "icd10gm-outpatient" | "opcs4" | "ops" | "ccam";
6
+ type Raw = "icd10cm-inpatient" | "icd10cm-outpatient" | "icd10pcs" | "cpt" | "icd10int-inpatient" | "icd10int-outpatient" | "icd10uk-inpatient" | "icd10uk-outpatient";
7
7
  }
@@ -9,11 +9,4 @@ export const CommonCodingSystemEnum = core.serialization.enum_([
9
9
  "icd10int-outpatient",
10
10
  "icd10uk-inpatient",
11
11
  "icd10uk-outpatient",
12
- "cim10fr-inpatient",
13
- "cim10fr-outpatient",
14
- "icd10gm-inpatient",
15
- "icd10gm-outpatient",
16
- "opcs4",
17
- "ops",
18
- "ccam",
19
12
  ]);
@@ -3,5 +3,5 @@ import * as core from "../../core/index.mjs";
3
3
  import type * as serializers from "../index.mjs";
4
4
  export declare const StreamConfigStatusMessageType: core.serialization.Schema<serializers.StreamConfigStatusMessageType.Raw, Corti.StreamConfigStatusMessageType>;
5
5
  export declare namespace StreamConfigStatusMessageType {
6
- type Raw = "CONFIG_ACCEPTED" | "CONFIG_DENIED" | "CONFIG_MISSING" | "CONFIG_NOT_PROVIDED" | "CONFIG_ALREADY_RECEIVED";
6
+ type Raw = "CONFIG_ACCEPTED" | "CONFIG_DENIED" | "CONFIG_MISSING" | "CONFIG_NOT_PROVIDED" | "CONFIG_ALREADY_RECEIVED" | "CONFIG_TIMEOUT";
7
7
  }
@@ -6,4 +6,5 @@ export const StreamConfigStatusMessageType = core.serialization.enum_([
6
6
  "CONFIG_MISSING",
7
7
  "CONFIG_NOT_PROVIDED",
8
8
  "CONFIG_ALREADY_RECEIVED",
9
+ "CONFIG_TIMEOUT",
9
10
  ]);
@@ -3,5 +3,5 @@ import * as core from "../../core/index.mjs";
3
3
  import type * as serializers from "../index.mjs";
4
4
  export declare const TranscribeConfigStatusMessageType: core.serialization.Schema<serializers.TranscribeConfigStatusMessageType.Raw, Corti.TranscribeConfigStatusMessageType>;
5
5
  export declare namespace TranscribeConfigStatusMessageType {
6
- type Raw = "CONFIG_ACCEPTED" | "CONFIG_DENIED" | "CONFIG_TIMEOUT" | "CONFIG_ALREADY_RECEIVED" | "CONFIG_MISSING";
6
+ type Raw = "CONFIG_ACCEPTED" | "CONFIG_DENIED" | "CONFIG_TIMEOUT";
7
7
  }
@@ -1,9 +1,3 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../core/index.mjs";
3
- export const TranscribeConfigStatusMessageType = core.serialization.enum_([
4
- "CONFIG_ACCEPTED",
5
- "CONFIG_DENIED",
6
- "CONFIG_TIMEOUT",
7
- "CONFIG_ALREADY_RECEIVED",
8
- "CONFIG_MISSING",
9
- ]);
3
+ export const TranscribeConfigStatusMessageType = core.serialization.enum_(["CONFIG_ACCEPTED", "CONFIG_DENIED", "CONFIG_TIMEOUT"]);