@company-semantics/contracts 83.0.0 → 83.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": "83.0.0",
3
+ "version": "83.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 = '9286d0cf0c7c' as const;
3
- export const SPEC_HASH_FULL = '9286d0cf0c7c1457a11e830402e9e860ee80e5b0b263b79d4ec15308d7ecb271' as const;
2
+ export const SPEC_HASH = 'ed793823fd73' as const;
3
+ export const SPEC_HASH_FULL = 'ed793823fd7383fa2708a90aca342dd575fcc636aa8286958832e4096f032745' as const;
@@ -281,6 +281,23 @@ export interface paths {
281
281
  patch?: never;
282
282
  trace?: never;
283
283
  };
284
+ "/api/chats/resolve-launch": {
285
+ parameters: {
286
+ query?: never;
287
+ header?: never;
288
+ path?: never;
289
+ cookie?: never;
290
+ };
291
+ get?: never;
292
+ put?: never;
293
+ /** Resolve a launch to its subject’s active chat (read-only) */
294
+ post: operations["resolveChatLaunch"];
295
+ delete?: never;
296
+ options?: never;
297
+ head?: never;
298
+ patch?: never;
299
+ trace?: never;
300
+ };
284
301
  "/api/chats/{id}": {
285
302
  parameters: {
286
303
  query?: never;
@@ -369,6 +386,23 @@ export interface paths {
369
386
  patch?: never;
370
387
  trace?: never;
371
388
  };
389
+ "/api/chats/{id}/start-fresh": {
390
+ parameters: {
391
+ query?: never;
392
+ header?: never;
393
+ path?: never;
394
+ cookie?: never;
395
+ };
396
+ get?: never;
397
+ put?: never;
398
+ /** Start a fresh chat on the same subject, handing over a summary */
399
+ post: operations["startFreshChat"];
400
+ delete?: never;
401
+ options?: never;
402
+ head?: never;
403
+ patch?: never;
404
+ trace?: never;
405
+ };
372
406
  "/api/chats/{id}/generate-title": {
373
407
  parameters: {
374
408
  query?: never;
@@ -3333,7 +3367,7 @@ export interface paths {
3333
3367
  };
3334
3368
  /**
3335
3369
  * What I owe and what happened, merged, newest first
3336
- * @description Actionable rows first, then informational rows newest-first — grouped, not chronologically interleaved. Only the informational half paginates.
3370
+ * @description Actionable rows first (the same in every view), then the informational rows of the requested view (view: all | unread) — unread-and-unresolved first, each by latest activity. Grouped, not chronologically interleaved. Only the informational half paginates.
3337
3371
  */
3338
3372
  get: operations["listMyFeed"];
3339
3373
  put?: never;
@@ -3353,7 +3387,10 @@ export interface paths {
3353
3387
  };
3354
3388
  get?: never;
3355
3389
  put?: never;
3356
- /** Mark specific notifications read */
3390
+ /**
3391
+ * Mark selected notifications read
3392
+ * @description Selected by ids or by view snapshot (asOf). Only the actor’s own rows.
3393
+ */
3357
3394
  post: operations["markMyFeedRead"];
3358
3395
  delete?: never;
3359
3396
  options?: never;
@@ -3378,6 +3415,83 @@ export interface paths {
3378
3415
  patch?: never;
3379
3416
  trace?: never;
3380
3417
  };
3418
+ "/api/me/feed/unread": {
3419
+ parameters: {
3420
+ query?: never;
3421
+ header?: never;
3422
+ path?: never;
3423
+ cookie?: never;
3424
+ };
3425
+ get?: never;
3426
+ put?: never;
3427
+ /**
3428
+ * Mark selected notifications unread
3429
+ * @description Selected by ids or by view snapshot (asOf). Resolved and deleted rows are never marked unread.
3430
+ */
3431
+ post: operations["markMyFeedUnread"];
3432
+ delete?: never;
3433
+ options?: never;
3434
+ head?: never;
3435
+ patch?: never;
3436
+ trace?: never;
3437
+ };
3438
+ "/api/me/feed/delete": {
3439
+ parameters: {
3440
+ query?: never;
3441
+ header?: never;
3442
+ path?: never;
3443
+ cookie?: never;
3444
+ };
3445
+ get?: never;
3446
+ put?: never;
3447
+ /**
3448
+ * Delete selected notifications, undoable by restore
3449
+ * @description Soft-deletes the actor’s own selected rows under one opaque restoreKey. The entity a row is about is never touched.
3450
+ */
3451
+ post: operations["deleteMyFeedItems"];
3452
+ delete?: never;
3453
+ options?: never;
3454
+ head?: never;
3455
+ patch?: never;
3456
+ trace?: never;
3457
+ };
3458
+ "/api/me/feed/restore": {
3459
+ parameters: {
3460
+ query?: never;
3461
+ header?: never;
3462
+ path?: never;
3463
+ cookie?: never;
3464
+ };
3465
+ get?: never;
3466
+ put?: never;
3467
+ /**
3468
+ * Undo a delete by its restoreKey
3469
+ * @description Restores the rows one delete removed. A row whose condition already has a newer active row stays deleted and is counted as superseded.
3470
+ */
3471
+ post: operations["restoreMyFeedItems"];
3472
+ delete?: never;
3473
+ options?: never;
3474
+ head?: never;
3475
+ patch?: never;
3476
+ trace?: never;
3477
+ };
3478
+ "/api/me/feed/clear-resolved": {
3479
+ parameters: {
3480
+ query?: never;
3481
+ header?: never;
3482
+ path?: never;
3483
+ cookie?: never;
3484
+ };
3485
+ get?: never;
3486
+ put?: never;
3487
+ /** Delete every resolved notification, undoable by restore */
3488
+ post: operations["clearMyFeedResolved"];
3489
+ delete?: never;
3490
+ options?: never;
3491
+ head?: never;
3492
+ patch?: never;
3493
+ trace?: never;
3494
+ };
3381
3495
  "/api/me/meetings/recordings/start": {
3382
3496
  parameters: {
3383
3497
  query?: never;
@@ -4865,6 +4979,34 @@ export interface components {
4865
4979
  avatarUrl: string | null;
4866
4980
  }[];
4867
4981
  };
4982
+ ResolveLaunchResponse: {
4983
+ subjectId: string | null;
4984
+ chatId: string | null;
4985
+ generation: number | null;
4986
+ /** @enum {string} */
4987
+ disposition: "resume-existing-anchor" | "resume-and-launch" | "created-and-launch";
4988
+ };
4989
+ /** @description The launch to resolve against its subject’s active generation. */
4990
+ ResolveLaunchRequest: {
4991
+ launch: {
4992
+ /** @constant */
4993
+ kind: "structure-review";
4994
+ /** Format: uuid */
4995
+ proposalId: string;
4996
+ } | {
4997
+ /** @constant */
4998
+ kind: "workflow";
4999
+ /** Format: uuid */
5000
+ workflowId: string;
5001
+ } | {
5002
+ /** @constant */
5003
+ kind: "input-request";
5004
+ /** @enum {string} */
5005
+ requestType: "org-structure/review" | "source-sync/candidates" | "source-sync/synthesis";
5006
+ /** Format: uuid */
5007
+ requestId: string;
5008
+ };
5009
+ };
4868
5010
  GetChatResponse: {
4869
5011
  chat: {
4870
5012
  id: string;
@@ -4973,6 +5115,20 @@ export interface components {
4973
5115
  /** Format: uuid */
4974
5116
  userId: string;
4975
5117
  };
5118
+ StartFreshChatResponse: {
5119
+ chatId: string;
5120
+ interactionId: string;
5121
+ subjectId: string;
5122
+ generation: number;
5123
+ continuationOf: {
5124
+ chatId: string;
5125
+ };
5126
+ };
5127
+ LaunchTargetSuperseded: {
5128
+ /** @constant */
5129
+ code: "launch_target_superseded";
5130
+ activeChatId: string | null;
5131
+ };
4976
5132
  GenerateTitleResponse: {
4977
5133
  title: string;
4978
5134
  isAutoGenerated: boolean;
@@ -7639,6 +7795,62 @@ export interface components {
7639
7795
  unreadCount: number;
7640
7796
  truncated: boolean;
7641
7797
  };
7798
+ FeedMutationResponse: {
7799
+ affected: number;
7800
+ };
7801
+ FeedMarkReadRequest: {
7802
+ selector: {
7803
+ /** @constant */
7804
+ kind: "ids";
7805
+ notificationIds: string[];
7806
+ } | {
7807
+ /** @constant */
7808
+ kind: "view";
7809
+ /** @enum {string} */
7810
+ view: "all" | "unread";
7811
+ /** Format: date-time */
7812
+ asOf: string;
7813
+ };
7814
+ };
7815
+ FeedMarkUnreadRequest: {
7816
+ selector: {
7817
+ /** @constant */
7818
+ kind: "ids";
7819
+ notificationIds: string[];
7820
+ } | {
7821
+ /** @constant */
7822
+ kind: "view";
7823
+ /** @enum {string} */
7824
+ view: "all" | "unread";
7825
+ /** Format: date-time */
7826
+ asOf: string;
7827
+ };
7828
+ };
7829
+ FeedDeleteResponse: {
7830
+ affected: number;
7831
+ restoreKey: string;
7832
+ };
7833
+ FeedDeleteRequest: {
7834
+ selector: {
7835
+ /** @constant */
7836
+ kind: "ids";
7837
+ notificationIds: string[];
7838
+ } | {
7839
+ /** @constant */
7840
+ kind: "view";
7841
+ /** @enum {string} */
7842
+ view: "all" | "unread";
7843
+ /** Format: date-time */
7844
+ asOf: string;
7845
+ };
7846
+ };
7847
+ FeedRestoreResponse: {
7848
+ restored: number;
7849
+ superseded: number;
7850
+ };
7851
+ FeedRestoreRequest: {
7852
+ restoreKey: string;
7853
+ };
7642
7854
  /** @description Recording + work_item ids and the transcription session grant. */
7643
7855
  StartMeetingRecordingResponse: {
7644
7856
  /** @description ULID; unified trace key for the recording (INV-MTG-7). */
@@ -10054,6 +10266,8 @@ export interface operations {
10054
10266
  limit?: number;
10055
10267
  cursor?: string;
10056
10268
  includePinned?: "true" | "false";
10269
+ surface?: "recents";
10270
+ subjectId?: string;
10057
10271
  };
10058
10272
  header?: never;
10059
10273
  path?: never;
@@ -10140,6 +10354,30 @@ export interface operations {
10140
10354
  };
10141
10355
  };
10142
10356
  };
10357
+ resolveChatLaunch: {
10358
+ parameters: {
10359
+ query?: never;
10360
+ header?: never;
10361
+ path?: never;
10362
+ cookie?: never;
10363
+ };
10364
+ requestBody: {
10365
+ content: {
10366
+ "application/json": components["schemas"]["ResolveLaunchRequest"];
10367
+ };
10368
+ };
10369
+ responses: {
10370
+ /** @description Where the launch would land; nothing is written */
10371
+ 200: {
10372
+ headers: {
10373
+ [name: string]: unknown;
10374
+ };
10375
+ content: {
10376
+ "application/json": components["schemas"]["ResolveLaunchResponse"];
10377
+ };
10378
+ };
10379
+ };
10380
+ };
10143
10381
  getChat: {
10144
10382
  parameters: {
10145
10383
  query?: never;
@@ -10330,6 +10568,37 @@ export interface operations {
10330
10568
  };
10331
10569
  };
10332
10570
  };
10571
+ startFreshChat: {
10572
+ parameters: {
10573
+ query?: never;
10574
+ header?: never;
10575
+ path: {
10576
+ id: string;
10577
+ };
10578
+ cookie?: never;
10579
+ };
10580
+ requestBody?: never;
10581
+ responses: {
10582
+ /** @description The new active chat of the subject */
10583
+ 200: {
10584
+ headers: {
10585
+ [name: string]: unknown;
10586
+ };
10587
+ content: {
10588
+ "application/json": components["schemas"]["StartFreshChatResponse"];
10589
+ };
10590
+ };
10591
+ /** @description The chat is not its subject’s active chat */
10592
+ 409: {
10593
+ headers: {
10594
+ [name: string]: unknown;
10595
+ };
10596
+ content: {
10597
+ "application/json": components["schemas"]["LaunchTargetSuperseded"];
10598
+ };
10599
+ };
10600
+ };
10601
+ };
10333
10602
  generateChatTitle: {
10334
10603
  parameters: {
10335
10604
  query?: never;
@@ -15219,7 +15488,8 @@ export interface operations {
15219
15488
  };
15220
15489
  listMyFeed: {
15221
15490
  parameters: {
15222
- query?: {
15491
+ query: {
15492
+ view: "all" | "unread";
15223
15493
  cursor?: string;
15224
15494
  };
15225
15495
  header?: never;
@@ -15246,14 +15516,20 @@ export interface operations {
15246
15516
  path?: never;
15247
15517
  cookie?: never;
15248
15518
  };
15249
- requestBody?: never;
15519
+ requestBody: {
15520
+ content: {
15521
+ "application/json": components["schemas"]["FeedMarkReadRequest"];
15522
+ };
15523
+ };
15250
15524
  responses: {
15251
- /** @description Read state applied to the actor’s own rows */
15525
+ /** @description How many of the actor’s own rows were marked read */
15252
15526
  200: {
15253
15527
  headers: {
15254
15528
  [name: string]: unknown;
15255
15529
  };
15256
- content?: never;
15530
+ content: {
15531
+ "application/json": components["schemas"]["FeedMutationResponse"];
15532
+ };
15257
15533
  };
15258
15534
  };
15259
15535
  };
@@ -15266,12 +15542,106 @@ export interface operations {
15266
15542
  };
15267
15543
  requestBody?: never;
15268
15544
  responses: {
15269
- /** @description Read state applied to the actor’s own rows */
15545
+ /** @description How many of the actor’s own rows were marked read */
15270
15546
  200: {
15271
15547
  headers: {
15272
15548
  [name: string]: unknown;
15273
15549
  };
15274
- content?: never;
15550
+ content: {
15551
+ "application/json": components["schemas"]["FeedMutationResponse"];
15552
+ };
15553
+ };
15554
+ };
15555
+ };
15556
+ markMyFeedUnread: {
15557
+ parameters: {
15558
+ query?: never;
15559
+ header?: never;
15560
+ path?: never;
15561
+ cookie?: never;
15562
+ };
15563
+ requestBody: {
15564
+ content: {
15565
+ "application/json": components["schemas"]["FeedMarkUnreadRequest"];
15566
+ };
15567
+ };
15568
+ responses: {
15569
+ /** @description How many of the actor’s own rows were marked unread */
15570
+ 200: {
15571
+ headers: {
15572
+ [name: string]: unknown;
15573
+ };
15574
+ content: {
15575
+ "application/json": components["schemas"]["FeedMutationResponse"];
15576
+ };
15577
+ };
15578
+ };
15579
+ };
15580
+ deleteMyFeedItems: {
15581
+ parameters: {
15582
+ query?: never;
15583
+ header?: never;
15584
+ path?: never;
15585
+ cookie?: never;
15586
+ };
15587
+ requestBody: {
15588
+ content: {
15589
+ "application/json": components["schemas"]["FeedDeleteRequest"];
15590
+ };
15591
+ };
15592
+ responses: {
15593
+ /** @description How many rows were deleted, and the key that restores exactly them */
15594
+ 200: {
15595
+ headers: {
15596
+ [name: string]: unknown;
15597
+ };
15598
+ content: {
15599
+ "application/json": components["schemas"]["FeedDeleteResponse"];
15600
+ };
15601
+ };
15602
+ };
15603
+ };
15604
+ restoreMyFeedItems: {
15605
+ parameters: {
15606
+ query?: never;
15607
+ header?: never;
15608
+ path?: never;
15609
+ cookie?: never;
15610
+ };
15611
+ requestBody: {
15612
+ content: {
15613
+ "application/json": components["schemas"]["FeedRestoreRequest"];
15614
+ };
15615
+ };
15616
+ responses: {
15617
+ /** @description How many rows were restored, and how many a newer row superseded */
15618
+ 200: {
15619
+ headers: {
15620
+ [name: string]: unknown;
15621
+ };
15622
+ content: {
15623
+ "application/json": components["schemas"]["FeedRestoreResponse"];
15624
+ };
15625
+ };
15626
+ };
15627
+ };
15628
+ clearMyFeedResolved: {
15629
+ parameters: {
15630
+ query?: never;
15631
+ header?: never;
15632
+ path?: never;
15633
+ cookie?: never;
15634
+ };
15635
+ requestBody?: never;
15636
+ responses: {
15637
+ /** @description How many resolved rows were deleted, and the key that restores them */
15638
+ 200: {
15639
+ headers: {
15640
+ [name: string]: unknown;
15641
+ };
15642
+ content: {
15643
+ "application/json": components["schemas"]["FeedDeleteResponse"];
15644
+ };
15275
15645
  };
15276
15646
  };
15277
15647
  };
@@ -20,6 +20,7 @@ export const openApiRoutes = {
20
20
  '/api/chats/events': ['GET'],
21
21
  '/api/chats/mentionable': ['GET'],
22
22
  '/api/chats/proactive/{eventId}': ['GET'],
23
+ '/api/chats/resolve-launch': ['POST'],
23
24
  '/api/chats/{chatId}/shares': ['GET', 'POST'],
24
25
  '/api/chats/{id}': ['DELETE', 'GET', 'PATCH'],
25
26
  '/api/chats/{id}/generate-title': ['POST'],
@@ -28,6 +29,7 @@ export const openApiRoutes = {
28
29
  '/api/chats/{id}/participants': ['GET', 'POST'],
29
30
  '/api/chats/{id}/participants/{userId}': ['DELETE'],
30
31
  '/api/chats/{id}/pin': ['DELETE', 'POST'],
32
+ '/api/chats/{id}/start-fresh': ['POST'],
31
33
  '/api/comments': ['GET'],
32
34
  '/api/comments/threads': ['POST'],
33
35
  '/api/comments/threads/{threadId}': ['DELETE'],
@@ -101,8 +103,12 @@ export const openApiRoutes = {
101
103
  '/api/me/action-items': ['GET'],
102
104
  '/api/me/events': ['GET'],
103
105
  '/api/me/feed': ['GET'],
106
+ '/api/me/feed/clear-resolved': ['POST'],
107
+ '/api/me/feed/delete': ['POST'],
104
108
  '/api/me/feed/read': ['POST'],
105
109
  '/api/me/feed/read-all': ['POST'],
110
+ '/api/me/feed/restore': ['POST'],
111
+ '/api/me/feed/unread': ['POST'],
106
112
  '/api/me/md': ['GET'],
107
113
  '/api/me/meetings/recordings/start': ['POST'],
108
114
  '/api/me/meetings/recordings/{id}': ['DELETE'],