@corti/sdk 0.7.0 → 0.8.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 (70) hide show
  1. package/README.md +2 -0
  2. package/dist/cjs/Client.js +2 -2
  3. package/dist/cjs/api/resources/stream/client/Socket.js +3 -1
  4. package/dist/cjs/api/resources/transcribe/client/Socket.js +3 -1
  5. package/dist/cjs/api/types/AgentsMcpServerAuthorizationType.d.ts +3 -2
  6. package/dist/cjs/api/types/AgentsMcpServerAuthorizationType.js +2 -1
  7. package/dist/cjs/custom/CortiAuth.d.ts +29 -6
  8. package/dist/cjs/custom/CortiAuth.js +10 -4
  9. package/dist/cjs/custom/CortiClient.d.ts +16 -2
  10. package/dist/cjs/custom/CortiClient.js +24 -21
  11. package/dist/cjs/custom/CortiWebSocketProxyClient.d.ts +14 -0
  12. package/dist/cjs/custom/CortiWebSocketProxyClient.js +22 -0
  13. package/dist/cjs/custom/CustomStream.d.ts +8 -1
  14. package/dist/cjs/custom/CustomStream.js +13 -3
  15. package/dist/cjs/custom/CustomStreamSocket.d.ts +5 -0
  16. package/dist/cjs/custom/CustomStreamSocket.js +6 -0
  17. package/dist/cjs/custom/CustomTranscribe.d.ts +8 -1
  18. package/dist/cjs/custom/CustomTranscribe.js +13 -3
  19. package/dist/cjs/custom/CustomTranscribeSocket.d.ts +5 -0
  20. package/dist/cjs/custom/CustomTranscribeSocket.js +6 -0
  21. package/dist/cjs/custom/proxy/CustomProxyStream.d.ts +24 -0
  22. package/dist/cjs/custom/proxy/CustomProxyStream.js +57 -0
  23. package/dist/cjs/custom/proxy/CustomProxyTranscribe.d.ts +24 -0
  24. package/dist/cjs/custom/proxy/CustomProxyTranscribe.js +56 -0
  25. package/dist/cjs/custom/utils/getEnvironmentFromString.d.ts +1 -1
  26. package/dist/cjs/custom/utils/getEnvironmentFromString.js +1 -1
  27. package/dist/cjs/custom/utils/resolveClientOptions.js +31 -10
  28. package/dist/cjs/custom/utils/tokenRequest.d.ts +1 -0
  29. package/dist/cjs/custom/utils/tokenRequest.js +4 -1
  30. package/dist/cjs/index.d.ts +4 -0
  31. package/dist/cjs/index.js +6 -1
  32. package/dist/cjs/serialization/types/AgentsMcpServerAuthorizationType.d.ts +1 -1
  33. package/dist/cjs/serialization/types/AgentsMcpServerAuthorizationType.js +1 -1
  34. package/dist/cjs/version.d.ts +1 -1
  35. package/dist/cjs/version.js +1 -1
  36. package/dist/esm/Client.mjs +2 -2
  37. package/dist/esm/api/resources/stream/client/Socket.mjs +3 -1
  38. package/dist/esm/api/resources/transcribe/client/Socket.mjs +3 -1
  39. package/dist/esm/api/types/AgentsMcpServerAuthorizationType.d.mts +3 -2
  40. package/dist/esm/api/types/AgentsMcpServerAuthorizationType.mjs +2 -1
  41. package/dist/esm/custom/CortiAuth.d.mts +29 -6
  42. package/dist/esm/custom/CortiAuth.mjs +10 -4
  43. package/dist/esm/custom/CortiClient.d.mts +16 -2
  44. package/dist/esm/custom/CortiClient.mjs +24 -21
  45. package/dist/esm/custom/CortiWebSocketProxyClient.d.mts +14 -0
  46. package/dist/esm/custom/CortiWebSocketProxyClient.mjs +18 -0
  47. package/dist/esm/custom/CustomStream.d.mts +8 -1
  48. package/dist/esm/custom/CustomStream.mjs +13 -3
  49. package/dist/esm/custom/CustomStreamSocket.d.mts +5 -0
  50. package/dist/esm/custom/CustomStreamSocket.mjs +6 -0
  51. package/dist/esm/custom/CustomTranscribe.d.mts +8 -1
  52. package/dist/esm/custom/CustomTranscribe.mjs +13 -3
  53. package/dist/esm/custom/CustomTranscribeSocket.d.mts +5 -0
  54. package/dist/esm/custom/CustomTranscribeSocket.mjs +6 -0
  55. package/dist/esm/custom/proxy/CustomProxyStream.d.mts +24 -0
  56. package/dist/esm/custom/proxy/CustomProxyStream.mjs +20 -0
  57. package/dist/esm/custom/proxy/CustomProxyTranscribe.d.mts +24 -0
  58. package/dist/esm/custom/proxy/CustomProxyTranscribe.mjs +19 -0
  59. package/dist/esm/custom/utils/getEnvironmentFromString.d.mts +1 -1
  60. package/dist/esm/custom/utils/getEnvironmentFromString.mjs +1 -1
  61. package/dist/esm/custom/utils/resolveClientOptions.mjs +31 -10
  62. package/dist/esm/custom/utils/tokenRequest.d.mts +1 -0
  63. package/dist/esm/custom/utils/tokenRequest.mjs +4 -1
  64. package/dist/esm/index.d.mts +4 -0
  65. package/dist/esm/index.mjs +4 -0
  66. package/dist/esm/serialization/types/AgentsMcpServerAuthorizationType.d.mts +1 -1
  67. package/dist/esm/serialization/types/AgentsMcpServerAuthorizationType.mjs +1 -1
  68. package/dist/esm/version.d.mts +1 -1
  69. package/dist/esm/version.mjs +1 -1
  70. package/package.json +1 -1
@@ -13,8 +13,15 @@ import { StreamSocket } from "./CustomStreamSocket.mjs";
13
13
  export declare class Stream extends FernStream {
14
14
  /**
15
15
  * Patch: use custom connect method to support passing _options parameters
16
+ * Added optional `proxy` parameter for direct WebSocket connection (proxy scenarios)
16
17
  */
17
- connect({ configuration, ...args }: Omit<FernStream.ConnectArgs, "token" | "tenantName"> & {
18
+ connect({ configuration, proxy, ...args }: Omit<FernStream.ConnectArgs, "token" | "tenantName"> & {
18
19
  configuration?: api.StreamConfig;
20
+ /** Patch: Proxy connection options - bypasses normal URL construction */
21
+ proxy?: {
22
+ url: string;
23
+ protocols?: string[];
24
+ queryParameters?: Record<string, string>;
25
+ };
19
26
  }): Promise<StreamSocket>;
20
27
  }
@@ -33,15 +33,25 @@ import { StreamSocket } from "./CustomStreamSocket.mjs";
33
33
  export class Stream extends FernStream {
34
34
  /**
35
35
  * Patch: use custom connect method to support passing _options parameters
36
+ * Added optional `proxy` parameter for direct WebSocket connection (proxy scenarios)
36
37
  */
37
38
  connect(_a) {
38
39
  const _super = Object.create(null, {
39
40
  connect: { get: () => super.connect }
40
41
  });
41
42
  return __awaiter(this, void 0, void 0, function* () {
42
- var { configuration } = _a, args = __rest(_a, ["configuration"]);
43
- const fernWs = yield _super.connect.call(this, Object.assign(Object.assign({}, args), { token: (yield this._getAuthorizationHeader()) || "", tenantName: yield core.Supplier.get(this._options.tenantName) }));
44
- const ws = new StreamSocket({ socket: fernWs.socket });
43
+ var _b, _c;
44
+ var { configuration, proxy } = _a, args = __rest(_a, ["configuration", "proxy"]);
45
+ const socket = proxy
46
+ ? new core.ReconnectingWebSocket({
47
+ url: proxy.url,
48
+ protocols: proxy.protocols || [],
49
+ queryParameters: proxy.queryParameters || {},
50
+ headers: args.headers || {},
51
+ options: { debug: (_b = args.debug) !== null && _b !== void 0 ? _b : false, maxRetries: (_c = args.reconnectAttempts) !== null && _c !== void 0 ? _c : 30 },
52
+ })
53
+ : (yield _super.connect.call(this, Object.assign(Object.assign({}, args), { token: (yield this._getAuthorizationHeader()) || "", tenantName: yield core.Supplier.get(this._options.tenantName) }))).socket;
54
+ const ws = new StreamSocket({ socket });
45
55
  if (!configuration) {
46
56
  return ws;
47
57
  }
@@ -2,6 +2,7 @@
2
2
  * Patch: file patches disability of auto-generating binary data methods for sending data to the socket
3
3
  */
4
4
  import { StreamSocket as FernStreamSocket } from "../api/resources/stream/client/Socket.mjs";
5
+ import { ReconnectingWebSocket } from "../core/index.mjs";
5
6
  export declare class StreamSocket extends FernStreamSocket {
6
7
  sendAudio(message: ArrayBufferLike | Blob | ArrayBufferView | string): void;
7
8
  /**
@@ -12,4 +13,8 @@ export declare class StreamSocket extends FernStreamSocket {
12
13
  * Patch: added ability to remove event handlers
13
14
  */
14
15
  off<T extends keyof FernStreamSocket.EventHandlers>(event: T, callback?: FernStreamSocket.EventHandlers[T]): void;
16
+ /**
17
+ * Patch: expose underlying socket send method for direct access
18
+ */
19
+ send(data: ReconnectingWebSocket.Message): void;
15
20
  }
@@ -30,4 +30,10 @@ export class StreamSocket extends FernStreamSocket {
30
30
  delete this.eventHandlers[event];
31
31
  }
32
32
  }
33
+ /**
34
+ * Patch: expose underlying socket send method for direct access
35
+ */
36
+ send(data) {
37
+ this.socket.send(data);
38
+ }
33
39
  }
@@ -13,8 +13,15 @@ import { TranscribeSocket } from "./CustomTranscribeSocket.mjs";
13
13
  export declare class Transcribe extends FernTranscribe {
14
14
  /**
15
15
  * Patch: use custom connect method to support passing _options parameters
16
+ * Added optional `proxy` parameter for direct WebSocket connection (proxy scenarios)
16
17
  */
17
- connect({ configuration, ...args }?: Omit<FernTranscribe.ConnectArgs, "token" | "tenantName"> & {
18
+ connect({ configuration, proxy, ...args }?: Omit<FernTranscribe.ConnectArgs, "token" | "tenantName"> & {
18
19
  configuration?: api.TranscribeConfig;
20
+ /** Patch: Proxy connection options - bypasses normal URL construction */
21
+ proxy?: {
22
+ url: string;
23
+ protocols?: string[];
24
+ queryParameters?: Record<string, string>;
25
+ };
19
26
  }): Promise<TranscribeSocket>;
20
27
  }
@@ -33,15 +33,25 @@ import { TranscribeSocket } from "./CustomTranscribeSocket.mjs";
33
33
  export class Transcribe extends FernTranscribe {
34
34
  /**
35
35
  * Patch: use custom connect method to support passing _options parameters
36
+ * Added optional `proxy` parameter for direct WebSocket connection (proxy scenarios)
36
37
  */
37
38
  connect() {
38
39
  const _super = Object.create(null, {
39
40
  connect: { get: () => super.connect }
40
41
  });
41
42
  return __awaiter(this, arguments, void 0, function* (_a = {}) {
42
- var { configuration } = _a, args = __rest(_a, ["configuration"]);
43
- const fernWs = yield _super.connect.call(this, Object.assign(Object.assign({}, args), { token: (yield this._getAuthorizationHeader()) || "", tenantName: yield core.Supplier.get(this._options.tenantName) }));
44
- const ws = new TranscribeSocket({ socket: fernWs.socket });
43
+ var _b, _c;
44
+ var { configuration, proxy } = _a, args = __rest(_a, ["configuration", "proxy"]);
45
+ const socket = proxy
46
+ ? new core.ReconnectingWebSocket({
47
+ url: proxy.url,
48
+ protocols: proxy.protocols || [],
49
+ queryParameters: proxy.queryParameters || {},
50
+ headers: args.headers || {},
51
+ options: { debug: (_b = args.debug) !== null && _b !== void 0 ? _b : false, maxRetries: (_c = args.reconnectAttempts) !== null && _c !== void 0 ? _c : 30 },
52
+ })
53
+ : (yield _super.connect.call(this, Object.assign(Object.assign({}, args), { token: (yield this._getAuthorizationHeader()) || "", tenantName: yield core.Supplier.get(this._options.tenantName) }))).socket;
54
+ const ws = new TranscribeSocket({ socket });
45
55
  if (!configuration) {
46
56
  return ws;
47
57
  }
@@ -2,6 +2,7 @@
2
2
  * Patch: file patches disability of auto-generating binary data methods for sending data to the socket
3
3
  */
4
4
  import { TranscribeSocket as FernTranscribeSocket } from "../api/resources/transcribe/client/Socket.mjs";
5
+ import { ReconnectingWebSocket } from "../core/index.mjs";
5
6
  export declare class TranscribeSocket extends FernTranscribeSocket {
6
7
  sendAudio(message: ArrayBufferLike | Blob | ArrayBufferView | string): void;
7
8
  /**
@@ -12,4 +13,8 @@ export declare class TranscribeSocket extends FernTranscribeSocket {
12
13
  * Patch: added ability to remove event handlers
13
14
  */
14
15
  off<T extends keyof FernTranscribeSocket.EventHandlers>(event: T, callback?: FernTranscribeSocket.EventHandlers[T]): void;
16
+ /**
17
+ * Patch: expose underlying socket send method for direct access
18
+ */
19
+ send(data: ReconnectingWebSocket.Message): void;
15
20
  }
@@ -30,4 +30,10 @@ export class TranscribeSocket extends FernTranscribeSocket {
30
30
  delete this.eventHandlers[event];
31
31
  }
32
32
  }
33
+ /**
34
+ * Patch: expose underlying socket send method for direct access
35
+ */
36
+ send(data) {
37
+ this.socket.send(data);
38
+ }
33
39
  }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Patch: Proxy-specific Stream wrapper that enforces `proxy` as required.
3
+ *
4
+ * Reuses the underlying CustomStream class to preserve the logic we added on top
5
+ * of generated sockets (e.g., sending configuration messages, handling responses).
6
+ */
7
+ import * as api from "../../api/index.mjs";
8
+ import { StreamSocket } from "../CustomStreamSocket.mjs";
9
+ export type ProxyOptions = {
10
+ url: string;
11
+ protocols?: string[];
12
+ queryParameters?: Record<string, string>;
13
+ };
14
+ export declare class CustomProxyStream {
15
+ private _stream;
16
+ constructor();
17
+ connect(args: {
18
+ proxy: ProxyOptions;
19
+ configuration?: api.StreamConfig;
20
+ headers?: Record<string, string>;
21
+ debug?: boolean;
22
+ reconnectAttempts?: number;
23
+ }): Promise<StreamSocket>;
24
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Patch: Proxy-specific Stream wrapper that enforces `proxy` as required.
3
+ *
4
+ * Reuses the underlying CustomStream class to preserve the logic we added on top
5
+ * of generated sockets (e.g., sending configuration messages, handling responses).
6
+ */
7
+ import * as environments from "../../environments.mjs";
8
+ import { Stream } from "../CustomStream.mjs";
9
+ export class CustomProxyStream {
10
+ constructor() {
11
+ this._stream = new Stream({
12
+ environment: environments.CortiEnvironment.Eu,
13
+ tenantName: "",
14
+ });
15
+ }
16
+ connect(args) {
17
+ // id is not used in proxy mode, but required by the underlying type
18
+ return this._stream.connect(Object.assign(Object.assign({}, args), { id: "" }));
19
+ }
20
+ }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Patch: Proxy-specific Transcribe wrapper that enforces `proxy` as required.
3
+ *
4
+ * Reuses the underlying CustomTranscribe class to preserve the logic we added on top
5
+ * of generated sockets (e.g., sending configuration messages, handling responses).
6
+ */
7
+ import * as api from "../../api/index.mjs";
8
+ import { TranscribeSocket } from "../CustomTranscribeSocket.mjs";
9
+ export type ProxyOptions = {
10
+ url: string;
11
+ protocols?: string[];
12
+ queryParameters?: Record<string, string>;
13
+ };
14
+ export declare class CustomProxyTranscribe {
15
+ private _transcribe;
16
+ constructor();
17
+ connect(args: {
18
+ proxy: ProxyOptions;
19
+ configuration?: api.TranscribeConfig;
20
+ headers?: Record<string, string>;
21
+ debug?: boolean;
22
+ reconnectAttempts?: number;
23
+ }): Promise<TranscribeSocket>;
24
+ }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Patch: Proxy-specific Transcribe wrapper that enforces `proxy` as required.
3
+ *
4
+ * Reuses the underlying CustomTranscribe class to preserve the logic we added on top
5
+ * of generated sockets (e.g., sending configuration messages, handling responses).
6
+ */
7
+ import * as environments from "../../environments.mjs";
8
+ import { Transcribe } from "../CustomTranscribe.mjs";
9
+ export class CustomProxyTranscribe {
10
+ constructor() {
11
+ this._transcribe = new Transcribe({
12
+ environment: environments.CortiEnvironment.Eu,
13
+ tenantName: "",
14
+ });
15
+ }
16
+ connect(args) {
17
+ return this._transcribe.connect(args);
18
+ }
19
+ }
@@ -2,4 +2,4 @@ import * as core from "../../core/index.mjs";
2
2
  import * as environments from "../../environments.mjs";
3
3
  export type Environment = CortiInternalEnvironment | string;
4
4
  export type CortiInternalEnvironment = core.Supplier<environments.CortiEnvironment | environments.CortiEnvironmentUrls>;
5
- export declare function getEnvironment(environment: Environment): CortiInternalEnvironment;
5
+ export declare function getEnvironment(environment?: Environment): CortiInternalEnvironment;
@@ -1,4 +1,4 @@
1
- export function getEnvironment(environment) {
1
+ export function getEnvironment(environment = "eu") {
2
2
  return typeof environment === "string"
3
3
  ? {
4
4
  base: `https://api.${environment}.corti.app/v2`,
@@ -12,7 +12,7 @@ import { decodeToken } from "./decodeToken.mjs";
12
12
  import { ParseError } from "../../core/schemas/index.mjs";
13
13
  import { getEnvironment } from "./getEnvironmentFromString.mjs";
14
14
  function isClientCredentialsOptions(options) {
15
- return "clientId" in options.auth;
15
+ return !!options.auth && "clientId" in options.auth;
16
16
  }
17
17
  export function resolveClientOptions(options) {
18
18
  if (isClientCredentialsOptions(options)) {
@@ -21,9 +21,22 @@ export function resolveClientOptions(options) {
21
21
  environment: options.environment,
22
22
  };
23
23
  }
24
- if ("accessToken" in options.auth && options.auth.accessToken) {
25
- const decoded = decodeToken(options.auth.accessToken);
26
- if (!decoded) {
24
+ // When auth is not provided (baseUrl-only or environment-object scenario), use provided values or defaults
25
+ if (!options.auth) {
26
+ return {
27
+ tenantName: options.tenantName || "",
28
+ environment: options.environment || "",
29
+ };
30
+ }
31
+ if ("accessToken" in options.auth) {
32
+ const decoded = decodeToken(options.auth.accessToken || "");
33
+ /**
34
+ * Do not throw an error when we have some proxying:
35
+ * baseUrl is set
36
+ * or
37
+ * environment is explicitly provided (not string-generated)
38
+ */
39
+ if (!decoded && !options.baseUrl && typeof options.environment !== "object") {
27
40
  throw new ParseError([
28
41
  {
29
42
  path: ["auth", "accessToken"],
@@ -32,8 +45,8 @@ export function resolveClientOptions(options) {
32
45
  ]);
33
46
  }
34
47
  return {
35
- tenantName: options.tenantName || decoded.tenantName,
36
- environment: options.environment || decoded.environment,
48
+ tenantName: options.tenantName || (decoded === null || decoded === void 0 ? void 0 : decoded.tenantName) || "",
49
+ environment: options.environment || (decoded === null || decoded === void 0 ? void 0 : decoded.environment) || "",
37
50
  };
38
51
  }
39
52
  /**
@@ -46,10 +59,18 @@ export function resolveClientOptions(options) {
46
59
  environment: options.environment,
47
60
  };
48
61
  }
62
+ // At this point, auth exists and has refreshAccessToken (BearerOptions without accessToken)
63
+ const auth = options.auth;
49
64
  const tokenResponsePromise = (() => __awaiter(this, void 0, void 0, function* () {
50
- const tokenResponse = yield core.Supplier.get(options.auth.refreshAccessToken);
65
+ const tokenResponse = yield core.Supplier.get(auth.refreshAccessToken);
51
66
  const decoded = decodeToken(tokenResponse.accessToken);
52
- if (!decoded) {
67
+ /**
68
+ * Do not throw an error when we have some proxying:
69
+ * baseUrl is set
70
+ * or
71
+ * environment is explicitly provided (not string-generated)
72
+ */
73
+ if (!decoded && !options.baseUrl && typeof options.environment !== "object") {
53
74
  throw new ParseError([
54
75
  {
55
76
  path: ["auth", "refreshAccessToken"],
@@ -59,8 +80,8 @@ export function resolveClientOptions(options) {
59
80
  }
60
81
  return {
61
82
  tokenResponse,
62
- tenantName: decoded.tenantName,
63
- environment: decoded.environment,
83
+ tenantName: (decoded === null || decoded === void 0 ? void 0 : decoded.tenantName) || "",
84
+ environment: (decoded === null || decoded === void 0 ? void 0 : decoded.environment) || "",
64
85
  };
65
86
  }))();
66
87
  return {
@@ -7,5 +7,6 @@ export type TokenRequest = Corti.AuthGetTokenRequest & Partial<{
7
7
  codeVerifier: string;
8
8
  username: string;
9
9
  password: string;
10
+ scopes: string[];
10
11
  }>;
11
12
  export declare const buildTokenRequestBody: (request: TokenRequest) => URLSearchParams;
@@ -4,8 +4,11 @@ export const buildTokenRequestBody = (request) => {
4
4
  unrecognizedObjectKeys: "strip",
5
5
  omitUndefined: true,
6
6
  });
7
+ // Build scope string: always include "openid", add any additional scopes
8
+ const allScopes = ["openid", ...(request.scopes || [])];
9
+ const scopeString = [...new Set(allScopes)].join(" ");
7
10
  const tokenRequestBody = {
8
- scope: "openid",
11
+ scope: scopeString,
9
12
  grant_type: request.grantType || "client_credentials",
10
13
  };
11
14
  Object.entries(serializedRequest).forEach(([key, value]) => {
@@ -5,6 +5,10 @@ export * as serialization from "./serialization/index.mjs";
5
5
  * Patch: use custom CortiClient instead of the generated one.
6
6
  */
7
7
  export { CortiClient } from "./custom/CortiClient.mjs";
8
+ /**
9
+ * Patch: lightweight proxy client with only WebSocket resources.
10
+ */
11
+ export { CortiWebSocketProxyClient } from "./custom/CortiWebSocketProxyClient.mjs";
8
12
  export { CortiEnvironment, CortiEnvironmentUrls } from "./environments.mjs";
9
13
  /**
10
14
  * Patch: added new export to provide Authorization code flow support.
@@ -5,6 +5,10 @@ export * as serialization from "./serialization/index.mjs";
5
5
  * Patch: use custom CortiClient instead of the generated one.
6
6
  */
7
7
  export { CortiClient } from "./custom/CortiClient.mjs";
8
+ /**
9
+ * Patch: lightweight proxy client with only WebSocket resources.
10
+ */
11
+ export { CortiWebSocketProxyClient } from "./custom/CortiWebSocketProxyClient.mjs";
8
12
  export { CortiEnvironment } from "./environments.mjs";
9
13
  /**
10
14
  * Patch: added new export to provide Authorization code flow support.
@@ -6,5 +6,5 @@ import * as Corti from "../../api/index.mjs";
6
6
  import * as core from "../../core/index.mjs";
7
7
  export declare const AgentsMcpServerAuthorizationType: core.serialization.Schema<serializers.AgentsMcpServerAuthorizationType.Raw, Corti.AgentsMcpServerAuthorizationType>;
8
8
  export declare namespace AgentsMcpServerAuthorizationType {
9
- type Raw = "none" | "oauth2.0" | "oauth2.1";
9
+ type Raw = "none" | "bearer" | "inherit" | "oauth2.0";
10
10
  }
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as core from "../../core/index.mjs";
5
- export const AgentsMcpServerAuthorizationType = core.serialization.enum_(["none", "oauth2.0", "oauth2.1"]);
5
+ export const AgentsMcpServerAuthorizationType = core.serialization.enum_(["none", "bearer", "inherit", "oauth2.0"]);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.7.0";
1
+ export declare const SDK_VERSION = "0.8.0-rc";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.7.0";
1
+ export const SDK_VERSION = "0.8.0-rc";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corti/sdk",
3
- "version": "0.7.0",
3
+ "version": "0.8.0-rc",
4
4
  "private": false,
5
5
  "repository": "github:corticph/corti-sdk-javascript",
6
6
  "license": "MIT",