@corti/sdk 6.0.0-rc.2 → 6.0.0

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 (35) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/types/A2AsseEvent.d.ts +16 -0
  3. package/dist/cjs/api/types/A2AsseEvent.js +3 -0
  4. package/dist/cjs/api/types/AgenticAgentsSendMessageResponse.d.ts +5 -1
  5. package/dist/cjs/api/types/AgenticAgentsStreamEventResponse.d.ts +2 -12
  6. package/dist/cjs/api/types/index.d.ts +1 -0
  7. package/dist/cjs/api/types/index.js +1 -0
  8. package/dist/cjs/serialization/types/A2AsseEvent.d.ts +12 -0
  9. package/dist/cjs/serialization/types/A2AsseEvent.js +44 -0
  10. package/dist/cjs/serialization/types/AgenticAgentsSendMessageResponse.d.ts +7 -2
  11. package/dist/cjs/serialization/types/AgenticAgentsSendMessageResponse.js +6 -1
  12. package/dist/cjs/serialization/types/AgenticAgentsStreamEventResponse.d.ts +2 -5
  13. package/dist/cjs/serialization/types/AgenticAgentsStreamEventResponse.js +2 -6
  14. package/dist/cjs/serialization/types/index.d.ts +1 -0
  15. package/dist/cjs/serialization/types/index.js +1 -0
  16. package/dist/cjs/version.d.ts +1 -1
  17. package/dist/cjs/version.js +1 -1
  18. package/dist/esm/BaseClient.mjs +2 -2
  19. package/dist/esm/api/types/A2AsseEvent.d.mts +16 -0
  20. package/dist/esm/api/types/A2AsseEvent.mjs +2 -0
  21. package/dist/esm/api/types/AgenticAgentsSendMessageResponse.d.mts +5 -1
  22. package/dist/esm/api/types/AgenticAgentsStreamEventResponse.d.mts +2 -12
  23. package/dist/esm/api/types/index.d.mts +1 -0
  24. package/dist/esm/api/types/index.mjs +1 -0
  25. package/dist/esm/serialization/types/A2AsseEvent.d.mts +12 -0
  26. package/dist/esm/serialization/types/A2AsseEvent.mjs +8 -0
  27. package/dist/esm/serialization/types/AgenticAgentsSendMessageResponse.d.mts +7 -2
  28. package/dist/esm/serialization/types/AgenticAgentsSendMessageResponse.mjs +6 -1
  29. package/dist/esm/serialization/types/AgenticAgentsStreamEventResponse.d.mts +2 -5
  30. package/dist/esm/serialization/types/AgenticAgentsStreamEventResponse.mjs +2 -6
  31. package/dist/esm/serialization/types/index.d.mts +1 -0
  32. package/dist/esm/serialization/types/index.mjs +1 -0
  33. package/dist/esm/version.d.mts +1 -1
  34. package/dist/esm/version.mjs +1 -1
  35. package/package.json +1 -1
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@corti/sdk",
46
- "X-Fern-SDK-Version": "6.0.0-rc.2",
47
- "User-Agent": "@corti/sdk/6.0.0-rc.2",
46
+ "X-Fern-SDK-Version": "6.0.0",
47
+ "User-Agent": "@corti/sdk/6.0.0",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  "Tenant-Name": options === null || options === void 0 ? void 0 : options.tenantName,
@@ -0,0 +1,16 @@
1
+ /**
2
+ * A single Server-Sent Event frame (W3C SSE wire format). The server currently writes only `id` and `data` lines; `event` and `retry` are declared for forward compatibility but not sent.
3
+ */
4
+ export interface A2AsseEvent {
5
+ /** SSE payload (JSON-encoded). */
6
+ data: string;
7
+ /** Event type. Absent for the default `message` event. */
8
+ event?: string;
9
+ /**
10
+ * Opaque event id. Clients echo the most recent value in the
11
+ * `Last-Event-ID` header to resume a dropped stream.
12
+ */
13
+ id?: string;
14
+ /** Reconnection time in milliseconds the client should use. */
15
+ retry?: number;
16
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,8 @@
1
+ import type * as Corti from "../index.js";
1
2
  /**
2
3
  * Exactly one of `task` or `message` is present.
3
4
  */
4
- export type AgenticAgentsSendMessageResponse = unknown;
5
+ export interface AgenticAgentsSendMessageResponse {
6
+ task?: Corti.CommonTaskResponse;
7
+ message?: Corti.CommonMessage;
8
+ }
@@ -1,16 +1,6 @@
1
+ import type * as Corti from "../index.js";
1
2
  /**
2
3
  * An SSE event carrying an A2A `HTTP+JSON` streaming response.
3
4
  */
4
- export interface AgenticAgentsStreamEventResponse {
5
- /** SSE payload: an A2A HTTP+JSON streaming response. */
6
- data?: string;
7
- /** Event type. Absent for the default `message` event. */
8
- event?: string;
9
- /**
10
- * Opaque event id. Clients echo the most recent value in the
11
- * `Last-Event-ID` header to resume a dropped stream.
12
- */
13
- id?: string;
14
- /** Reconnection time in milliseconds the client should use. */
15
- retry?: number;
5
+ export interface AgenticAgentsStreamEventResponse extends Corti.A2AsseEvent {
16
6
  }
@@ -1,3 +1,4 @@
1
+ export * from "./A2AsseEvent.js";
1
2
  export * from "./AgenticAgentCardResponse.js";
2
3
  export * from "./AgenticAgentCardResponseCapabilities.js";
3
4
  export * from "./AgenticAgentCardResponseProvider.js";
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./A2AsseEvent.js"), exports);
17
18
  __exportStar(require("./AgenticAgentCardResponse.js"), exports);
18
19
  __exportStar(require("./AgenticAgentCardResponseCapabilities.js"), exports);
19
20
  __exportStar(require("./AgenticAgentCardResponseProvider.js"), exports);
@@ -0,0 +1,12 @@
1
+ import type * as Corti from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ export declare const A2AsseEvent: core.serialization.ObjectSchema<serializers.A2AsseEvent.Raw, Corti.A2AsseEvent>;
5
+ export declare namespace A2AsseEvent {
6
+ interface Raw {
7
+ data: string;
8
+ event?: string | null;
9
+ id?: string | null;
10
+ retry?: number | null;
11
+ }
12
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.A2AsseEvent = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ exports.A2AsseEvent = core.serialization.object({
40
+ data: core.serialization.string(),
41
+ event: core.serialization.string().optional(),
42
+ id: core.serialization.string().optional(),
43
+ retry: core.serialization.number().optional(),
44
+ });
@@ -1,7 +1,12 @@
1
1
  import type * as Corti from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
- export declare const AgenticAgentsSendMessageResponse: core.serialization.Schema<serializers.AgenticAgentsSendMessageResponse.Raw, Corti.AgenticAgentsSendMessageResponse>;
4
+ import { CommonMessage } from "./CommonMessage.js";
5
+ import { CommonTaskResponse } from "./CommonTaskResponse.js";
6
+ export declare const AgenticAgentsSendMessageResponse: core.serialization.ObjectSchema<serializers.AgenticAgentsSendMessageResponse.Raw, Corti.AgenticAgentsSendMessageResponse>;
5
7
  export declare namespace AgenticAgentsSendMessageResponse {
6
- type Raw = unknown;
8
+ interface Raw {
9
+ task?: CommonTaskResponse.Raw | null;
10
+ message?: CommonMessage.Raw | null;
11
+ }
7
12
  }
@@ -36,4 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.AgenticAgentsSendMessageResponse = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
- exports.AgenticAgentsSendMessageResponse = core.serialization.undiscriminatedUnion([core.serialization.unknown()]);
39
+ const CommonMessage_js_1 = require("./CommonMessage.js");
40
+ const CommonTaskResponse_js_1 = require("./CommonTaskResponse.js");
41
+ exports.AgenticAgentsSendMessageResponse = core.serialization.object({
42
+ task: CommonTaskResponse_js_1.CommonTaskResponse.optional(),
43
+ message: CommonMessage_js_1.CommonMessage.optional(),
44
+ });
@@ -1,12 +1,9 @@
1
1
  import type * as Corti from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
+ import { A2AsseEvent } from "./A2AsseEvent.js";
4
5
  export declare const AgenticAgentsStreamEventResponse: core.serialization.ObjectSchema<serializers.AgenticAgentsStreamEventResponse.Raw, Corti.AgenticAgentsStreamEventResponse>;
5
6
  export declare namespace AgenticAgentsStreamEventResponse {
6
- interface Raw {
7
- data?: string | null;
8
- event?: string | null;
9
- id?: string | null;
10
- retry?: number | null;
7
+ interface Raw extends A2AsseEvent.Raw {
11
8
  }
12
9
  }
@@ -36,9 +36,5 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.AgenticAgentsStreamEventResponse = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
- exports.AgenticAgentsStreamEventResponse = core.serialization.object({
40
- data: core.serialization.string().optional(),
41
- event: core.serialization.string().optional(),
42
- id: core.serialization.string().optional(),
43
- retry: core.serialization.number().optional(),
44
- });
39
+ const A2AsseEvent_js_1 = require("./A2AsseEvent.js");
40
+ exports.AgenticAgentsStreamEventResponse = core.serialization.object({}).extend(A2AsseEvent_js_1.A2AsseEvent);
@@ -1,3 +1,4 @@
1
+ export * from "./A2AsseEvent.js";
1
2
  export * from "./AgenticAgentCardResponse.js";
2
3
  export * from "./AgenticAgentCardResponseCapabilities.js";
3
4
  export * from "./AgenticAgentCardResponseProvider.js";
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./A2AsseEvent.js"), exports);
17
18
  __exportStar(require("./AgenticAgentCardResponse.js"), exports);
18
19
  __exportStar(require("./AgenticAgentCardResponseCapabilities.js"), exports);
19
20
  __exportStar(require("./AgenticAgentCardResponseProvider.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "6.0.0-rc.2";
1
+ export declare const SDK_VERSION = "6.0.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "6.0.0-rc.2";
4
+ exports.SDK_VERSION = "6.0.0";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "@corti/sdk",
9
- "X-Fern-SDK-Version": "6.0.0-rc.2",
10
- "User-Agent": "@corti/sdk/6.0.0-rc.2",
9
+ "X-Fern-SDK-Version": "6.0.0",
10
+ "User-Agent": "@corti/sdk/6.0.0",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  "Tenant-Name": options === null || options === void 0 ? void 0 : options.tenantName,
@@ -0,0 +1,16 @@
1
+ /**
2
+ * A single Server-Sent Event frame (W3C SSE wire format). The server currently writes only `id` and `data` lines; `event` and `retry` are declared for forward compatibility but not sent.
3
+ */
4
+ export interface A2AsseEvent {
5
+ /** SSE payload (JSON-encoded). */
6
+ data: string;
7
+ /** Event type. Absent for the default `message` event. */
8
+ event?: string;
9
+ /**
10
+ * Opaque event id. Clients echo the most recent value in the
11
+ * `Last-Event-ID` header to resume a dropped stream.
12
+ */
13
+ id?: string;
14
+ /** Reconnection time in milliseconds the client should use. */
15
+ retry?: number;
16
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,4 +1,8 @@
1
+ import type * as Corti from "../index.mjs";
1
2
  /**
2
3
  * Exactly one of `task` or `message` is present.
3
4
  */
4
- export type AgenticAgentsSendMessageResponse = unknown;
5
+ export interface AgenticAgentsSendMessageResponse {
6
+ task?: Corti.CommonTaskResponse;
7
+ message?: Corti.CommonMessage;
8
+ }
@@ -1,16 +1,6 @@
1
+ import type * as Corti from "../index.mjs";
1
2
  /**
2
3
  * An SSE event carrying an A2A `HTTP+JSON` streaming response.
3
4
  */
4
- export interface AgenticAgentsStreamEventResponse {
5
- /** SSE payload: an A2A HTTP+JSON streaming response. */
6
- data?: string;
7
- /** Event type. Absent for the default `message` event. */
8
- event?: string;
9
- /**
10
- * Opaque event id. Clients echo the most recent value in the
11
- * `Last-Event-ID` header to resume a dropped stream.
12
- */
13
- id?: string;
14
- /** Reconnection time in milliseconds the client should use. */
15
- retry?: number;
5
+ export interface AgenticAgentsStreamEventResponse extends Corti.A2AsseEvent {
16
6
  }
@@ -1,3 +1,4 @@
1
+ export * from "./A2AsseEvent.mjs";
1
2
  export * from "./AgenticAgentCardResponse.mjs";
2
3
  export * from "./AgenticAgentCardResponseCapabilities.mjs";
3
4
  export * from "./AgenticAgentCardResponseProvider.mjs";
@@ -1,3 +1,4 @@
1
+ export * from "./A2AsseEvent.mjs";
1
2
  export * from "./AgenticAgentCardResponse.mjs";
2
3
  export * from "./AgenticAgentCardResponseCapabilities.mjs";
3
4
  export * from "./AgenticAgentCardResponseProvider.mjs";
@@ -0,0 +1,12 @@
1
+ import type * as Corti from "../../api/index.mjs";
2
+ import * as core from "../../core/index.mjs";
3
+ import type * as serializers from "../index.mjs";
4
+ export declare const A2AsseEvent: core.serialization.ObjectSchema<serializers.A2AsseEvent.Raw, Corti.A2AsseEvent>;
5
+ export declare namespace A2AsseEvent {
6
+ interface Raw {
7
+ data: string;
8
+ event?: string | null;
9
+ id?: string | null;
10
+ retry?: number | null;
11
+ }
12
+ }
@@ -0,0 +1,8 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.mjs";
3
+ export const A2AsseEvent = core.serialization.object({
4
+ data: core.serialization.string(),
5
+ event: core.serialization.string().optional(),
6
+ id: core.serialization.string().optional(),
7
+ retry: core.serialization.number().optional(),
8
+ });
@@ -1,7 +1,12 @@
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
- export declare const AgenticAgentsSendMessageResponse: core.serialization.Schema<serializers.AgenticAgentsSendMessageResponse.Raw, Corti.AgenticAgentsSendMessageResponse>;
4
+ import { CommonMessage } from "./CommonMessage.mjs";
5
+ import { CommonTaskResponse } from "./CommonTaskResponse.mjs";
6
+ export declare const AgenticAgentsSendMessageResponse: core.serialization.ObjectSchema<serializers.AgenticAgentsSendMessageResponse.Raw, Corti.AgenticAgentsSendMessageResponse>;
5
7
  export declare namespace AgenticAgentsSendMessageResponse {
6
- type Raw = unknown;
8
+ interface Raw {
9
+ task?: CommonTaskResponse.Raw | null;
10
+ message?: CommonMessage.Raw | null;
11
+ }
7
12
  }
@@ -1,3 +1,8 @@
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 AgenticAgentsSendMessageResponse = core.serialization.undiscriminatedUnion([core.serialization.unknown()]);
3
+ import { CommonMessage } from "./CommonMessage.mjs";
4
+ import { CommonTaskResponse } from "./CommonTaskResponse.mjs";
5
+ export const AgenticAgentsSendMessageResponse = core.serialization.object({
6
+ task: CommonTaskResponse.optional(),
7
+ message: CommonMessage.optional(),
8
+ });
@@ -1,12 +1,9 @@
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 { A2AsseEvent } from "./A2AsseEvent.mjs";
4
5
  export declare const AgenticAgentsStreamEventResponse: core.serialization.ObjectSchema<serializers.AgenticAgentsStreamEventResponse.Raw, Corti.AgenticAgentsStreamEventResponse>;
5
6
  export declare namespace AgenticAgentsStreamEventResponse {
6
- interface Raw {
7
- data?: string | null;
8
- event?: string | null;
9
- id?: string | null;
10
- retry?: number | null;
7
+ interface Raw extends A2AsseEvent.Raw {
11
8
  }
12
9
  }
@@ -1,8 +1,4 @@
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 AgenticAgentsStreamEventResponse = core.serialization.object({
4
- data: core.serialization.string().optional(),
5
- event: core.serialization.string().optional(),
6
- id: core.serialization.string().optional(),
7
- retry: core.serialization.number().optional(),
8
- });
3
+ import { A2AsseEvent } from "./A2AsseEvent.mjs";
4
+ export const AgenticAgentsStreamEventResponse = core.serialization.object({}).extend(A2AsseEvent);
@@ -1,3 +1,4 @@
1
+ export * from "./A2AsseEvent.mjs";
1
2
  export * from "./AgenticAgentCardResponse.mjs";
2
3
  export * from "./AgenticAgentCardResponseCapabilities.mjs";
3
4
  export * from "./AgenticAgentCardResponseProvider.mjs";
@@ -1,3 +1,4 @@
1
+ export * from "./A2AsseEvent.mjs";
1
2
  export * from "./AgenticAgentCardResponse.mjs";
2
3
  export * from "./AgenticAgentCardResponseCapabilities.mjs";
3
4
  export * from "./AgenticAgentCardResponseProvider.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "6.0.0-rc.2";
1
+ export declare const SDK_VERSION = "6.0.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "6.0.0-rc.2";
1
+ export const SDK_VERSION = "6.0.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corti/sdk",
3
- "version": "6.0.0-rc.2",
3
+ "version": "6.0.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",