@company-semantics/contracts 58.2.0 → 58.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@company-semantics/contracts",
3
- "version": "58.2.0",
3
+ "version": "58.3.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 = 'a69faedfed8f' as const;
3
- export const SPEC_HASH_FULL = 'a69faedfed8f36af0b36dc657e4f5b2c4e90c137e0f48823debd5578c433c77a' as const;
2
+ export const SPEC_HASH = '433bb009d9f1' as const;
3
+ export const SPEC_HASH_FULL = '433bb009d9f1037871adde049808503dc040cc4cb44122a8f2d603da02b4dd2b' as const;
@@ -465,6 +465,26 @@ export interface paths {
465
465
  patch?: never;
466
466
  trace?: never;
467
467
  };
468
+ "/api/chats/proactive/{eventId}": {
469
+ parameters: {
470
+ query?: never;
471
+ header?: never;
472
+ path?: never;
473
+ cookie?: never;
474
+ };
475
+ /**
476
+ * Resolve a proactive occurrence to the current reader's chat
477
+ * @description A banner or inbox row links to an OCCURRENCE (/chat/proactive/{eventId}), never to a chat id, because the pushed chat is per recipient. This resolves the occurrence for the CURRENT reader: `ready` with their chat id, `pending` while the projection job is still running or retrying, `unavailable` when it gave up (the durable inbox row stands alone), or `ineligible` when the reader is not in the occurrence’s frozen audience.
478
+ */
479
+ get: operations["resolveProactiveChat"];
480
+ put?: never;
481
+ post?: never;
482
+ delete?: never;
483
+ options?: never;
484
+ head?: never;
485
+ patch?: never;
486
+ trace?: never;
487
+ };
468
488
  "/api/workspace/access": {
469
489
  parameters: {
470
490
  query?: never;
@@ -4247,6 +4267,20 @@ export interface components {
4247
4267
  id?: string;
4248
4268
  runtimeProfile?: string;
4249
4269
  };
4270
+ ProactiveChatResolution: {
4271
+ /** @constant */
4272
+ state: "ready";
4273
+ chatId: string;
4274
+ } | {
4275
+ /** @constant */
4276
+ state: "pending";
4277
+ } | {
4278
+ /** @constant */
4279
+ state: "unavailable";
4280
+ } | {
4281
+ /** @constant */
4282
+ state: "ineligible";
4283
+ };
4250
4284
  WorkspaceAccessResponse: {
4251
4285
  hasAccess: boolean;
4252
4286
  };
@@ -7836,6 +7870,28 @@ export interface operations {
7836
7870
  };
7837
7871
  };
7838
7872
  };
7873
+ resolveProactiveChat: {
7874
+ parameters: {
7875
+ query?: never;
7876
+ header?: never;
7877
+ path: {
7878
+ eventId: string;
7879
+ };
7880
+ cookie?: never;
7881
+ };
7882
+ requestBody?: never;
7883
+ responses: {
7884
+ /** @description The resolution for the current reader (one of four bounded states) */
7885
+ 200: {
7886
+ headers: {
7887
+ [name: string]: unknown;
7888
+ };
7889
+ content: {
7890
+ "application/json": components["schemas"]["ProactiveChatResolution"];
7891
+ };
7892
+ };
7893
+ };
7894
+ };
7839
7895
  getWorkspaceAccess: {
7840
7896
  parameters: {
7841
7897
  query?: never;
@@ -15,6 +15,7 @@ export const openApiRoutes = {
15
15
  '/api/chats': ['GET', 'POST'],
16
16
  '/api/chats/by-interaction/{interactionId}': ['GET'],
17
17
  '/api/chats/events': ['GET'],
18
+ '/api/chats/proactive/{eventId}': ['GET'],
18
19
  '/api/chats/{chatId}/shares': ['GET', 'POST'],
19
20
  '/api/chats/{id}': ['DELETE', 'GET', 'PATCH'],
20
21
  '/api/chats/{id}/generate-title': ['POST'],