@kaana.ai/contracts 8.2.0 → 8.3.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.
@@ -284,8 +284,8 @@ export declare const realtimeConversationItemSchema: z.ZodDiscriminatedUnion<[z.
284
284
  type: z.ZodLiteral<"message">;
285
285
  itemId: z.ZodOptional<z.ZodString>;
286
286
  role: z.ZodEnum<{
287
- user: "user";
288
287
  system: "system";
288
+ user: "user";
289
289
  assistant: "assistant";
290
290
  }>;
291
291
  content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -401,8 +401,8 @@ export declare const realtimeItemCreateCommandSchema: z.ZodObject<{
401
401
  type: z.ZodLiteral<"message">;
402
402
  itemId: z.ZodOptional<z.ZodString>;
403
403
  role: z.ZodEnum<{
404
- user: "user";
405
404
  system: "system";
405
+ user: "user";
406
406
  assistant: "assistant";
407
407
  }>;
408
408
  content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -591,8 +591,8 @@ export declare const realtimeClientCommandSchema: z.ZodDiscriminatedUnion<[z.Zod
591
591
  type: z.ZodLiteral<"message">;
592
592
  itemId: z.ZodOptional<z.ZodString>;
593
593
  role: z.ZodEnum<{
594
- user: "user";
595
594
  system: "system";
595
+ user: "user";
596
596
  assistant: "assistant";
597
597
  }>;
598
598
  content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -796,8 +796,8 @@ export declare const realtimeItemAddedEventSchema: z.ZodObject<{
796
796
  type: z.ZodLiteral<"message">;
797
797
  itemId: z.ZodOptional<z.ZodString>;
798
798
  role: z.ZodEnum<{
799
- user: "user";
800
799
  system: "system";
800
+ user: "user";
801
801
  assistant: "assistant";
802
802
  }>;
803
803
  content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -848,8 +848,8 @@ export declare const realtimeItemDoneEventSchema: z.ZodObject<{
848
848
  type: z.ZodLiteral<"message">;
849
849
  itemId: z.ZodOptional<z.ZodString>;
850
850
  role: z.ZodEnum<{
851
- user: "user";
852
851
  system: "system";
852
+ user: "user";
853
853
  assistant: "assistant";
854
854
  }>;
855
855
  content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1655,8 +1655,8 @@ export declare const realtimePublicServerEventSchema: z.ZodDiscriminatedUnion<[z
1655
1655
  type: z.ZodLiteral<"message">;
1656
1656
  itemId: z.ZodOptional<z.ZodString>;
1657
1657
  role: z.ZodEnum<{
1658
- user: "user";
1659
1658
  system: "system";
1659
+ user: "user";
1660
1660
  assistant: "assistant";
1661
1661
  }>;
1662
1662
  content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1706,8 +1706,8 @@ export declare const realtimePublicServerEventSchema: z.ZodDiscriminatedUnion<[z
1706
1706
  type: z.ZodLiteral<"message">;
1707
1707
  itemId: z.ZodOptional<z.ZodString>;
1708
1708
  role: z.ZodEnum<{
1709
- user: "user";
1710
1709
  system: "system";
1710
+ user: "user";
1711
1711
  assistant: "assistant";
1712
1712
  }>;
1713
1713
  content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -44,9 +44,9 @@ export declare const responsesRequestSchema: z.ZodObject<{
44
44
  }>]>>;
45
45
  input: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodObject<{
46
46
  role: z.ZodEnum<{
47
- user: "user";
48
47
  system: "system";
49
48
  developer: "developer";
49
+ user: "user";
50
50
  assistant: "assistant";
51
51
  tool: "tool";
52
52
  }>;
@@ -164,9 +164,9 @@ export declare const responseSchema: z.ZodObject<{
164
164
  }>;
165
165
  output: z.ZodArray<z.ZodObject<{
166
166
  role: z.ZodEnum<{
167
- user: "user";
168
167
  system: "system";
169
168
  developer: "developer";
169
+ user: "user";
170
170
  assistant: "assistant";
171
171
  tool: "tool";
172
172
  }>;
@@ -100,7 +100,7 @@
100
100
  * change to, say, the catalogue reject every in-flight inference request; the
101
101
  * per-shape `schemaVersion` is what a message is validated against.
102
102
  */
103
- export declare const INFERENCE_CONTRACT_VERSION = "8.2.0";
103
+ export declare const INFERENCE_CONTRACT_VERSION = "8.3.0";
104
104
  /**
105
105
  * Contract set 4.0.0 (Kaana ADR 0002) is the first published as
106
106
  * `@kaana.ai/contracts`. MAJOR because the set changed hands and split in two:
@@ -195,6 +195,12 @@ export declare const INFERENCE_CONTRACT_VERSION = "8.2.0";
195
195
  * grant fact `inputImages`. Every 8.1.0 message parses the same; a consumer on
196
196
  * 8.1.0 or earlier refuses a declared catalogue or an authorization carrying
197
197
  * what is new, so Oxy reads them before Kaana publishes them.
198
+ *
199
+ * Contract set 8.3.0 is additive: the Anthropic-Messages-compatible
200
+ * `POST /v1/messages` (`anthropicMessagesRequestSchema`,
201
+ * `anthropicMessageSchema`, `anthropicStreamEventSchema`,
202
+ * `anthropicErrorSchema`). Nothing in 8.2.0 changes, and the signed grant and
203
+ * envelope are untouched: the endpoint is served as the `responses` operation.
198
204
  */
199
205
  /** The public API's one origin and version. */
200
206
  export declare const KAANA_API_BASE_URL = "https://kaana.ai/v1";
@@ -100,7 +100,7 @@
100
100
  * change to, say, the catalogue reject every in-flight inference request; the
101
101
  * per-shape `schemaVersion` is what a message is validated against.
102
102
  */
103
- export const INFERENCE_CONTRACT_VERSION = '8.2.0';
103
+ export const INFERENCE_CONTRACT_VERSION = '8.3.0';
104
104
  /**
105
105
  * Contract set 4.0.0 (Kaana ADR 0002) is the first published as
106
106
  * `@kaana.ai/contracts`. MAJOR because the set changed hands and split in two:
@@ -195,6 +195,12 @@ export const INFERENCE_CONTRACT_VERSION = '8.2.0';
195
195
  * grant fact `inputImages`. Every 8.1.0 message parses the same; a consumer on
196
196
  * 8.1.0 or earlier refuses a declared catalogue or an authorization carrying
197
197
  * what is new, so Oxy reads them before Kaana publishes them.
198
+ *
199
+ * Contract set 8.3.0 is additive: the Anthropic-Messages-compatible
200
+ * `POST /v1/messages` (`anthropicMessagesRequestSchema`,
201
+ * `anthropicMessageSchema`, `anthropicStreamEventSchema`,
202
+ * `anthropicErrorSchema`). Nothing in 8.2.0 changes, and the signed grant and
203
+ * envelope are untouched: the endpoint is served as the `responses` operation.
198
204
  */
199
205
  /** The public API's one origin and version. */
200
206
  export const KAANA_API_BASE_URL = 'https://kaana.ai/v1';