@company-semantics/contracts 44.1.0 → 44.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@company-semantics/contracts",
3
- "version": "44.1.0",
3
+ "version": "44.2.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,3 +1,3 @@
1
1
  // AUTO-GENERATED — do not edit. Run pnpm generate:spec-hash to regenerate.
2
- export const SPEC_HASH = '815c01c0b920' as const;
3
- export const SPEC_HASH_FULL = '815c01c0b920961e20e9bbe921d37145daa661873ce15b6a3cb426d6761cf80f' as const;
2
+ export const SPEC_HASH = 'c4ce5a8f3e9b' as const;
3
+ export const SPEC_HASH_FULL = 'c4ce5a8f3e9b221190fe57672f0f485d50f763f2480162cbfdedb59140ef7450' as const;
@@ -405,6 +405,26 @@ export interface paths {
405
405
  patch?: never;
406
406
  trace?: never;
407
407
  };
408
+ "/api/me/events": {
409
+ parameters: {
410
+ query?: never;
411
+ header?: never;
412
+ path?: never;
413
+ cookie?: never;
414
+ };
415
+ /**
416
+ * Stream user-scoped events via SSE
417
+ * @description Server-Sent Events stream for everything pushed to the signed-in user: chat updates under the `chat-update` event name, and the generic user-event envelope (cache invalidations, resync, notification.created) under `user-event`. x-streaming: true.
418
+ */
419
+ get: operations["userEvents"];
420
+ put?: never;
421
+ post?: never;
422
+ delete?: never;
423
+ options?: never;
424
+ head?: never;
425
+ patch?: never;
426
+ trace?: never;
427
+ };
408
428
  "/api/chats/events": {
409
429
  parameters: {
410
430
  query?: never;
@@ -413,8 +433,8 @@ export interface paths {
413
433
  cookie?: never;
414
434
  };
415
435
  /**
416
- * Stream chat update events via SSE
417
- * @description Server-Sent Events stream for real-time chat updates. x-streaming: true. Event payloads conform to ChatSseEventSchema.
436
+ * Stream chat update events via SSE (deprecated — use GET /api/me/events)
437
+ * @description DEPRECATED. Identical stream to GET /api/me/events, kept for exactly one release so a client cached from before the rename is never left without a stream. Delete once no traffic remains. Server-Sent Events stream for real-time chat updates. x-streaming: true. Event payloads conform to ChatSseEventSchema.
418
438
  */
419
439
  get: operations["chatEvents"];
420
440
  put?: never;
@@ -6870,6 +6890,26 @@ export interface operations {
6870
6890
  };
6871
6891
  };
6872
6892
  };
6893
+ userEvents: {
6894
+ parameters: {
6895
+ query?: never;
6896
+ header?: never;
6897
+ path?: never;
6898
+ cookie?: never;
6899
+ };
6900
+ requestBody?: never;
6901
+ responses: {
6902
+ /** @description SSE event stream (text/event-stream). Event payload: ChatSseEvent. */
6903
+ 200: {
6904
+ headers: {
6905
+ [name: string]: unknown;
6906
+ };
6907
+ content: {
6908
+ "text/event-stream": components["schemas"]["ChatSseEvent"];
6909
+ };
6910
+ };
6911
+ };
6912
+ };
6873
6913
  chatEvents: {
6874
6914
  parameters: {
6875
6915
  query?: never;
@@ -10867,7 +10907,9 @@ export interface operations {
10867
10907
  };
10868
10908
  listMyFeed: {
10869
10909
  parameters: {
10870
- query?: never;
10910
+ query?: {
10911
+ cursor?: string;
10912
+ };
10871
10913
  header?: never;
10872
10914
  path?: never;
10873
10915
  cookie?: never;
@@ -75,6 +75,7 @@ export const openApiRoutes = {
75
75
  '/api/me': ['GET'],
76
76
  '/api/me/access-list': ['GET'],
77
77
  '/api/me/action-items': ['GET'],
78
+ '/api/me/events': ['GET'],
78
79
  '/api/me/feed': ['GET'],
79
80
  '/api/me/feed/read': ['POST'],
80
81
  '/api/me/feed/read-all': ['POST'],