@company-semantics/contracts 86.1.0 → 88.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.
- package/package.json +14 -10
- package/src/api/generated-spec-hash.ts +2 -2
- package/src/api/generated.ts +50 -262
- package/src/chat/README.md +8 -20
- package/src/chat/__tests__/compaction-boundary.test.ts +1 -0
- package/src/chat/__tests__/continuity.test.ts +1 -0
- package/src/chat/__tests__/discussion-scope.test.ts +0 -7
- package/src/chat/__tests__/message-mentions.test.ts +1 -12
- package/src/chat/__tests__/multi-party.test.ts +15 -6
- package/src/chat/__tests__/page-context.test.ts +3 -3
- package/src/chat/enums.ts +24 -11
- package/src/chat/index.ts +4 -16
- package/src/chat/schemas.ts +9 -71
- package/src/chat/types.ts +25 -77
- package/src/generated/openapi-routes.ts +1 -4
- package/src/guards/README.md +0 -1
- package/src/guards/config.ts +1 -10
- package/src/guards/evolution-config.ts +1 -18
- package/src/guards/index.ts +0 -1
- package/src/index.ts +15 -1279
- package/src/notifications/__tests__/__snapshots__/monospace-budget.test.ts.snap +4 -4
- package/src/notifications/__tests__/__snapshots__/render-snapshot.test.ts.snap +50 -49
- package/src/notifications/__tests__/fixtures.ts +7 -7
- package/src/notifications/__tests__/render-snapshot.test.ts +7 -7
- package/src/notifications/kinds/chat-shared.ts +11 -5
- package/src/notifications/payloads.ts +5 -5
- package/src/org/README.md +0 -212
- package/src/org/__tests__/view-scopes.test.ts +0 -2
- package/src/org/authority-schemas.ts +242 -0
- package/src/org/index.ts +26 -249
- package/src/org/invite-schemas.ts +596 -0
- package/src/org/org-governance-schemas.ts +198 -0
- package/src/org/org-unit-api-schemas.ts +226 -0
- package/src/org/org-unit-schemas.ts +223 -0
- package/src/org/ownership-transfer-types.ts +51 -0
- package/src/org/schemas.ts +18 -1658
- package/src/org/sso-stepper-types.ts +81 -0
- package/src/org/types.ts +15 -115
- package/src/org/view-scopes.ts +0 -1
- package/src/org/workspace-admin-schemas.ts +240 -0
- package/src/root-exports/README.md +91 -0
- package/src/root-exports/agent-runtime.ts +213 -0
- package/src/root-exports/collaboration.ts +247 -0
- package/src/root-exports/delivery.ts +218 -0
- package/src/root-exports/org-structure.ts +214 -0
- package/src/root-exports/org-workspace.ts +254 -0
- package/src/root-exports/platform.ts +205 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@company-semantics/contracts",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "88.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -94,6 +94,8 @@
|
|
|
94
94
|
"lint:md": "markdownlint-cli2 '**/*.md' '#node_modules' '#.ralph/worktrees' '#.claude/worktrees'",
|
|
95
95
|
"format": "prettier --write .",
|
|
96
96
|
"format:check": "prettier --check .",
|
|
97
|
+
"knip": "knip",
|
|
98
|
+
"depcruise": "depcruise src scripts tests __tests__",
|
|
97
99
|
"lint:json": "node -e \"JSON.parse(require('fs').readFileSync('package.json'))\"",
|
|
98
100
|
"prepare": "husky",
|
|
99
101
|
"guard:export": "npx tsx scripts/ci/export-guard.ts",
|
|
@@ -147,22 +149,24 @@
|
|
|
147
149
|
"@types/node": "^22.20.4",
|
|
148
150
|
"amphtml-validator": "^1.0.38",
|
|
149
151
|
"culori": "^4.0.2",
|
|
152
|
+
"dependency-cruiser": "18.4.0",
|
|
150
153
|
"eslint": "^10.11.0",
|
|
151
154
|
"husky": "^9.1.7",
|
|
152
|
-
"
|
|
153
|
-
"
|
|
155
|
+
"knip": "6.38.0",
|
|
156
|
+
"lint-staged": "^17.6.0",
|
|
157
|
+
"markdownlint-cli2": "^0.23.3",
|
|
154
158
|
"openapi-typescript": "^7.13.0",
|
|
155
|
-
"prettier": "^3.9.
|
|
156
|
-
"tsx": "^4.23.
|
|
159
|
+
"prettier": "^3.9.9",
|
|
160
|
+
"tsx": "^4.23.15",
|
|
157
161
|
"typescript": "^5.8.3",
|
|
158
|
-
"typescript-eslint": "^8.70.
|
|
159
|
-
"vite": "^8.3.
|
|
160
|
-
"vitest": "^5.0.
|
|
162
|
+
"typescript-eslint": "^8.70.1",
|
|
163
|
+
"vite": "^8.3.1",
|
|
164
|
+
"vitest": "^5.0.2",
|
|
161
165
|
"yaml": "^2.9.1"
|
|
162
166
|
},
|
|
163
167
|
"pnpm": {
|
|
164
168
|
"overrides": {
|
|
165
|
-
"brace-expansion@<5.0.
|
|
169
|
+
"brace-expansion@<5.0.11": ">=5.0.11",
|
|
166
170
|
"smol-toml@<1.7.1": ">=1.7.1",
|
|
167
171
|
"minimatch@<10.2.3": ">=10.2.3",
|
|
168
172
|
"nanoid@<3.3.18": ">=3.3.18",
|
|
@@ -182,5 +186,5 @@
|
|
|
182
186
|
"*.md": "markdownlint-cli2",
|
|
183
187
|
"package.json": "node -e \"JSON.parse(require('fs').readFileSync('package.json'))\""
|
|
184
188
|
},
|
|
185
|
-
"securityRequirementsVersion": "
|
|
189
|
+
"securityRequirementsVersion": "bfd57aaebc7d47d195f06ba507ed3fb56da0faa9c40aca3c00f2e63dbd3b617b"
|
|
186
190
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// AUTO-GENERATED — do not edit. Run pnpm generate:spec-hash to regenerate.
|
|
2
|
-
export const SPEC_HASH = '
|
|
3
|
-
export const SPEC_HASH_FULL = '
|
|
2
|
+
export const SPEC_HASH = '2be23467fbc1' as const;
|
|
3
|
+
export const SPEC_HASH_FULL = '2be23467fbc1502200e556fec254b5b7419e748cbe86d73bacb358ee2bb4ac45' as const;
|
package/src/api/generated.ts
CHANGED
|
@@ -361,7 +361,7 @@ export interface paths {
|
|
|
361
361
|
/** List the people taking part in a chat */
|
|
362
362
|
get: operations["listChatParticipants"];
|
|
363
363
|
put?: never;
|
|
364
|
-
/**
|
|
364
|
+
/** Share a chat with a workspace member, Read only or Collaborate */
|
|
365
365
|
post: operations["addChatParticipant"];
|
|
366
366
|
delete?: never;
|
|
367
367
|
options?: never;
|
|
@@ -383,7 +383,8 @@ export interface paths {
|
|
|
383
383
|
delete: operations["removeChatParticipant"];
|
|
384
384
|
options?: never;
|
|
385
385
|
head?: never;
|
|
386
|
-
|
|
386
|
+
/** Change whether someone may only read a chat or also take part */
|
|
387
|
+
patch: operations["updateChatParticipant"];
|
|
387
388
|
trace?: never;
|
|
388
389
|
};
|
|
389
390
|
"/api/chats/{id}/start-fresh": {
|
|
@@ -438,59 +439,6 @@ export interface paths {
|
|
|
438
439
|
patch?: never;
|
|
439
440
|
trace?: never;
|
|
440
441
|
};
|
|
441
|
-
"/api/chats/{chatId}/shares": {
|
|
442
|
-
parameters: {
|
|
443
|
-
query?: never;
|
|
444
|
-
header?: never;
|
|
445
|
-
path?: never;
|
|
446
|
-
cookie?: never;
|
|
447
|
-
};
|
|
448
|
-
/** List all active shares for a chat */
|
|
449
|
-
get: operations["listShares"];
|
|
450
|
-
put?: never;
|
|
451
|
-
/** Create a share for a chat */
|
|
452
|
-
post: operations["createShare"];
|
|
453
|
-
delete?: never;
|
|
454
|
-
options?: never;
|
|
455
|
-
head?: never;
|
|
456
|
-
patch?: never;
|
|
457
|
-
trace?: never;
|
|
458
|
-
};
|
|
459
|
-
"/api/shares/{shareId}": {
|
|
460
|
-
parameters: {
|
|
461
|
-
query?: never;
|
|
462
|
-
header?: never;
|
|
463
|
-
path?: never;
|
|
464
|
-
cookie?: never;
|
|
465
|
-
};
|
|
466
|
-
get?: never;
|
|
467
|
-
put?: never;
|
|
468
|
-
post?: never;
|
|
469
|
-
/** Revoke a share */
|
|
470
|
-
delete: operations["revokeShare"];
|
|
471
|
-
options?: never;
|
|
472
|
-
head?: never;
|
|
473
|
-
/** Update a share's visibility or refresh snapshot */
|
|
474
|
-
patch: operations["updateShare"];
|
|
475
|
-
trace?: never;
|
|
476
|
-
};
|
|
477
|
-
"/api/shared/{token}": {
|
|
478
|
-
parameters: {
|
|
479
|
-
query?: never;
|
|
480
|
-
header?: never;
|
|
481
|
-
path?: never;
|
|
482
|
-
cookie?: never;
|
|
483
|
-
};
|
|
484
|
-
/** View a shared chat by token */
|
|
485
|
-
get: operations["getSharedView"];
|
|
486
|
-
put?: never;
|
|
487
|
-
post?: never;
|
|
488
|
-
delete?: never;
|
|
489
|
-
options?: never;
|
|
490
|
-
head?: never;
|
|
491
|
-
patch?: never;
|
|
492
|
-
trace?: never;
|
|
493
|
-
};
|
|
494
442
|
"/api/me/events": {
|
|
495
443
|
parameters: {
|
|
496
444
|
query?: never;
|
|
@@ -4925,7 +4873,7 @@ export interface components {
|
|
|
4925
4873
|
proactiveKind?: string | null;
|
|
4926
4874
|
participantCount: number;
|
|
4927
4875
|
/** @enum {string} */
|
|
4928
|
-
myRole: "owner" | "participant";
|
|
4876
|
+
myRole: "owner" | "participant" | "viewer";
|
|
4929
4877
|
}[];
|
|
4930
4878
|
unreadCount?: number;
|
|
4931
4879
|
nextCursor: string | null;
|
|
@@ -4949,7 +4897,7 @@ export interface components {
|
|
|
4949
4897
|
proactiveKind?: string | null;
|
|
4950
4898
|
participantCount: number;
|
|
4951
4899
|
/** @enum {string} */
|
|
4952
|
-
myRole: "owner" | "participant";
|
|
4900
|
+
myRole: "owner" | "participant" | "viewer";
|
|
4953
4901
|
};
|
|
4954
4902
|
};
|
|
4955
4903
|
CreateChatRequest: {
|
|
@@ -5026,11 +4974,13 @@ export interface components {
|
|
|
5026
4974
|
participants?: {
|
|
5027
4975
|
userId: string;
|
|
5028
4976
|
/** @enum {string} */
|
|
5029
|
-
role: "owner" | "participant";
|
|
4977
|
+
role: "owner" | "participant" | "viewer";
|
|
5030
4978
|
displayName: string;
|
|
5031
4979
|
/** Format: date-time */
|
|
5032
4980
|
addedAt: string;
|
|
5033
4981
|
}[];
|
|
4982
|
+
/** @enum {string} */
|
|
4983
|
+
myRole: "owner" | "participant" | "viewer";
|
|
5034
4984
|
continuity: {
|
|
5035
4985
|
subjectId: string;
|
|
5036
4986
|
/** @enum {string} */
|
|
@@ -5104,16 +5054,23 @@ export interface components {
|
|
|
5104
5054
|
participants: {
|
|
5105
5055
|
userId: string;
|
|
5106
5056
|
/** @enum {string} */
|
|
5107
|
-
role: "owner" | "participant";
|
|
5057
|
+
role: "owner" | "participant" | "viewer";
|
|
5108
5058
|
displayName: string;
|
|
5109
5059
|
/** Format: date-time */
|
|
5110
5060
|
addedAt: string;
|
|
5111
5061
|
}[];
|
|
5112
5062
|
};
|
|
5113
|
-
/** @description The workspace member to
|
|
5063
|
+
/** @description The workspace member to share the chat with, and whether they may only read it (viewer) or also take part (participant). */
|
|
5114
5064
|
AddChatParticipantRequest: {
|
|
5115
5065
|
/** Format: uuid */
|
|
5116
5066
|
userId: string;
|
|
5067
|
+
/** @enum {string} */
|
|
5068
|
+
role: "participant" | "viewer";
|
|
5069
|
+
};
|
|
5070
|
+
/** @description The access to give this participant: viewer (Read only) or participant (Collaborate). */
|
|
5071
|
+
UpdateChatParticipantRequest: {
|
|
5072
|
+
/** @enum {string} */
|
|
5073
|
+
role: "participant" | "viewer";
|
|
5117
5074
|
};
|
|
5118
5075
|
StartFreshChatResponse: {
|
|
5119
5076
|
chatId: string;
|
|
@@ -5133,84 +5090,6 @@ export interface components {
|
|
|
5133
5090
|
title: string;
|
|
5134
5091
|
isAutoGenerated: boolean;
|
|
5135
5092
|
};
|
|
5136
|
-
CreateShareResponse: {
|
|
5137
|
-
share: {
|
|
5138
|
-
id: string;
|
|
5139
|
-
chatId: string;
|
|
5140
|
-
token?: string;
|
|
5141
|
-
/** @enum {string} */
|
|
5142
|
-
visibility: "private" | "public";
|
|
5143
|
-
shareUrl?: string;
|
|
5144
|
-
messageCountAtShare: number;
|
|
5145
|
-
titleAtShare: string;
|
|
5146
|
-
/** Format: date-time */
|
|
5147
|
-
createdAt: string;
|
|
5148
|
-
createdByName: string;
|
|
5149
|
-
isRevoked: boolean;
|
|
5150
|
-
};
|
|
5151
|
-
shareUrl: string;
|
|
5152
|
-
};
|
|
5153
|
-
CreateShareRequest: {
|
|
5154
|
-
/** @enum {string} */
|
|
5155
|
-
visibility: "public" | "private";
|
|
5156
|
-
/** Format: email */
|
|
5157
|
-
recipientEmail?: string;
|
|
5158
|
-
};
|
|
5159
|
-
ListSharesResponse: {
|
|
5160
|
-
shares: {
|
|
5161
|
-
id: string;
|
|
5162
|
-
chatId: string;
|
|
5163
|
-
token?: string;
|
|
5164
|
-
/** @enum {string} */
|
|
5165
|
-
visibility: "private" | "public";
|
|
5166
|
-
shareUrl?: string;
|
|
5167
|
-
messageCountAtShare: number;
|
|
5168
|
-
titleAtShare: string;
|
|
5169
|
-
/** Format: date-time */
|
|
5170
|
-
createdAt: string;
|
|
5171
|
-
createdByName: string;
|
|
5172
|
-
isRevoked: boolean;
|
|
5173
|
-
}[];
|
|
5174
|
-
};
|
|
5175
|
-
UpdateShareResponse: {
|
|
5176
|
-
share: {
|
|
5177
|
-
id: string;
|
|
5178
|
-
chatId: string;
|
|
5179
|
-
token?: string;
|
|
5180
|
-
/** @enum {string} */
|
|
5181
|
-
visibility: "private" | "public";
|
|
5182
|
-
shareUrl?: string;
|
|
5183
|
-
messageCountAtShare: number;
|
|
5184
|
-
titleAtShare: string;
|
|
5185
|
-
/** Format: date-time */
|
|
5186
|
-
createdAt: string;
|
|
5187
|
-
createdByName: string;
|
|
5188
|
-
isRevoked: boolean;
|
|
5189
|
-
};
|
|
5190
|
-
};
|
|
5191
|
-
UpdateShareRequest: {
|
|
5192
|
-
/** @enum {string} */
|
|
5193
|
-
visibility?: "public" | "private";
|
|
5194
|
-
updateSnapshot?: boolean;
|
|
5195
|
-
};
|
|
5196
|
-
ChatSuccessResponse: {
|
|
5197
|
-
/** @constant */
|
|
5198
|
-
success: true;
|
|
5199
|
-
};
|
|
5200
|
-
SharedChatView: {
|
|
5201
|
-
title: string;
|
|
5202
|
-
messages: {
|
|
5203
|
-
/** @enum {string} */
|
|
5204
|
-
role: "user" | "assistant";
|
|
5205
|
-
content: string;
|
|
5206
|
-
parts?: unknown[];
|
|
5207
|
-
}[];
|
|
5208
|
-
/** Format: date-time */
|
|
5209
|
-
sharedAt: string;
|
|
5210
|
-
sharedByName: string;
|
|
5211
|
-
/** @enum {string} */
|
|
5212
|
-
visibility: "private" | "public";
|
|
5213
|
-
};
|
|
5214
5093
|
ChatSseEvent: {
|
|
5215
5094
|
/** @constant */
|
|
5216
5095
|
v: 1;
|
|
@@ -5238,7 +5117,7 @@ export interface components {
|
|
|
5238
5117
|
proactiveKind?: string | null;
|
|
5239
5118
|
participantCount: number;
|
|
5240
5119
|
/** @enum {string} */
|
|
5241
|
-
myRole: "owner" | "participant";
|
|
5120
|
+
myRole: "owner" | "participant" | "viewer";
|
|
5242
5121
|
};
|
|
5243
5122
|
} | {
|
|
5244
5123
|
/** @constant */
|
|
@@ -5266,7 +5145,7 @@ export interface components {
|
|
|
5266
5145
|
proactiveKind?: string | null;
|
|
5267
5146
|
participantCount: number;
|
|
5268
5147
|
/** @enum {string} */
|
|
5269
|
-
myRole: "owner" | "participant";
|
|
5148
|
+
myRole: "owner" | "participant" | "viewer";
|
|
5270
5149
|
};
|
|
5271
5150
|
changed: ("title" | "titleSource" | "pinnedAt")[];
|
|
5272
5151
|
} | {
|
|
@@ -5334,7 +5213,7 @@ export interface components {
|
|
|
5334
5213
|
pageContext?: {
|
|
5335
5214
|
route: string;
|
|
5336
5215
|
/** @enum {string} */
|
|
5337
|
-
view: "
|
|
5216
|
+
view: "company-md" | "execution-detail" | "internal-admin" | "notifications" | "org-settings" | "org-work" | "settings" | "team-md" | "teams" | "teamwork" | "teamwork-member" | "timeline" | "upgrade" | "user-md" | "work";
|
|
5338
5217
|
/** @enum {string} */
|
|
5339
5218
|
scope: "none" | "me" | "team" | "org";
|
|
5340
5219
|
entity?: {
|
|
@@ -5380,7 +5259,7 @@ export interface components {
|
|
|
5380
5259
|
pageContext?: {
|
|
5381
5260
|
route: string;
|
|
5382
5261
|
/** @enum {string} */
|
|
5383
|
-
view: "
|
|
5262
|
+
view: "company-md" | "execution-detail" | "internal-admin" | "notifications" | "org-settings" | "org-work" | "settings" | "team-md" | "teams" | "teamwork" | "teamwork-member" | "timeline" | "upgrade" | "user-md" | "work";
|
|
5384
5263
|
/** @enum {string} */
|
|
5385
5264
|
scope: "none" | "me" | "team" | "org";
|
|
5386
5265
|
entity?: {
|
|
@@ -5426,7 +5305,7 @@ export interface components {
|
|
|
5426
5305
|
pageContext?: {
|
|
5427
5306
|
route: string;
|
|
5428
5307
|
/** @enum {string} */
|
|
5429
|
-
view: "
|
|
5308
|
+
view: "company-md" | "execution-detail" | "internal-admin" | "notifications" | "org-settings" | "org-work" | "settings" | "team-md" | "teams" | "teamwork" | "teamwork-member" | "timeline" | "upgrade" | "user-md" | "work";
|
|
5430
5309
|
/** @enum {string} */
|
|
5431
5310
|
scope: "none" | "me" | "team" | "org";
|
|
5432
5311
|
entity?: {
|
|
@@ -6932,7 +6811,7 @@ export interface components {
|
|
|
6932
6811
|
snippet: string;
|
|
6933
6812
|
score: number;
|
|
6934
6813
|
/** @enum {string} */
|
|
6935
|
-
matchedVia: "fts" | "vector";
|
|
6814
|
+
matchedVia: "fts" | "fts-any" | "vector";
|
|
6936
6815
|
/** @description Where the hit came from, projected per reader after admission; [] when none. */
|
|
6937
6816
|
citations: ({
|
|
6938
6817
|
/** @constant */
|
|
@@ -8516,7 +8395,7 @@ export interface components {
|
|
|
8516
8395
|
surface: {
|
|
8517
8396
|
route: string;
|
|
8518
8397
|
/** @enum {string} */
|
|
8519
|
-
view: "
|
|
8398
|
+
view: "company-md" | "execution-detail" | "internal-admin" | "notifications" | "org-settings" | "org-work" | "settings" | "team-md" | "teams" | "teamwork" | "teamwork-member" | "timeline" | "upgrade" | "user-md" | "work";
|
|
8520
8399
|
/** @enum {string} */
|
|
8521
8400
|
scope: "none" | "me" | "team" | "org";
|
|
8522
8401
|
entity?: {
|
|
@@ -8563,7 +8442,7 @@ export interface components {
|
|
|
8563
8442
|
route?: {
|
|
8564
8443
|
route: string;
|
|
8565
8444
|
/** @enum {string} */
|
|
8566
|
-
view: "
|
|
8445
|
+
view: "company-md" | "execution-detail" | "internal-admin" | "notifications" | "org-settings" | "org-work" | "settings" | "team-md" | "teams" | "teamwork" | "teamwork-member" | "timeline" | "upgrade" | "user-md" | "work";
|
|
8567
8446
|
/** @enum {string} */
|
|
8568
8447
|
scope: "none" | "me" | "team" | "org";
|
|
8569
8448
|
entity?: {
|
|
@@ -10647,60 +10526,34 @@ export interface operations {
|
|
|
10647
10526
|
};
|
|
10648
10527
|
};
|
|
10649
10528
|
};
|
|
10650
|
-
|
|
10529
|
+
updateChatParticipant: {
|
|
10651
10530
|
parameters: {
|
|
10652
10531
|
query?: never;
|
|
10653
10532
|
header?: never;
|
|
10654
10533
|
path: {
|
|
10655
10534
|
id: string;
|
|
10535
|
+
userId: string;
|
|
10656
10536
|
};
|
|
10657
10537
|
cookie?: never;
|
|
10658
10538
|
};
|
|
10659
|
-
requestBody
|
|
10660
|
-
|
|
10661
|
-
|
|
10662
|
-
200: {
|
|
10663
|
-
headers: {
|
|
10664
|
-
[name: string]: unknown;
|
|
10665
|
-
};
|
|
10666
|
-
content: {
|
|
10667
|
-
"application/json": components["schemas"]["StartFreshChatResponse"];
|
|
10668
|
-
};
|
|
10669
|
-
};
|
|
10670
|
-
/** @description The chat is not its subject’s active chat */
|
|
10671
|
-
409: {
|
|
10672
|
-
headers: {
|
|
10673
|
-
[name: string]: unknown;
|
|
10674
|
-
};
|
|
10675
|
-
content: {
|
|
10676
|
-
"application/json": components["schemas"]["LaunchTargetSuperseded"];
|
|
10677
|
-
};
|
|
10678
|
-
};
|
|
10679
|
-
};
|
|
10680
|
-
};
|
|
10681
|
-
generateChatTitle: {
|
|
10682
|
-
parameters: {
|
|
10683
|
-
query?: never;
|
|
10684
|
-
header?: never;
|
|
10685
|
-
path: {
|
|
10686
|
-
id: string;
|
|
10539
|
+
requestBody: {
|
|
10540
|
+
content: {
|
|
10541
|
+
"application/json": components["schemas"]["UpdateChatParticipantRequest"];
|
|
10687
10542
|
};
|
|
10688
|
-
cookie?: never;
|
|
10689
10543
|
};
|
|
10690
|
-
requestBody?: never;
|
|
10691
10544
|
responses: {
|
|
10692
|
-
/** @description
|
|
10545
|
+
/** @description The chat’s participants after the change */
|
|
10693
10546
|
200: {
|
|
10694
10547
|
headers: {
|
|
10695
10548
|
[name: string]: unknown;
|
|
10696
10549
|
};
|
|
10697
10550
|
content: {
|
|
10698
|
-
"application/json": components["schemas"]["
|
|
10551
|
+
"application/json": components["schemas"]["ChatParticipantsResponse"];
|
|
10699
10552
|
};
|
|
10700
10553
|
};
|
|
10701
10554
|
};
|
|
10702
10555
|
};
|
|
10703
|
-
|
|
10556
|
+
startFreshChat: {
|
|
10704
10557
|
parameters: {
|
|
10705
10558
|
query?: never;
|
|
10706
10559
|
header?: never;
|
|
@@ -10711,153 +10564,88 @@ export interface operations {
|
|
|
10711
10564
|
};
|
|
10712
10565
|
requestBody?: never;
|
|
10713
10566
|
responses: {
|
|
10714
|
-
/** @description
|
|
10567
|
+
/** @description The new active chat of the subject */
|
|
10715
10568
|
200: {
|
|
10716
10569
|
headers: {
|
|
10717
10570
|
[name: string]: unknown;
|
|
10718
10571
|
};
|
|
10719
10572
|
content: {
|
|
10720
|
-
"application/json": components["schemas"]["
|
|
10573
|
+
"application/json": components["schemas"]["StartFreshChatResponse"];
|
|
10721
10574
|
};
|
|
10722
10575
|
};
|
|
10723
|
-
|
|
10724
|
-
|
|
10725
|
-
unpinChat: {
|
|
10726
|
-
parameters: {
|
|
10727
|
-
query?: never;
|
|
10728
|
-
header?: never;
|
|
10729
|
-
path: {
|
|
10730
|
-
id: string;
|
|
10731
|
-
};
|
|
10732
|
-
cookie?: never;
|
|
10733
|
-
};
|
|
10734
|
-
requestBody?: never;
|
|
10735
|
-
responses: {
|
|
10736
|
-
/** @description Chat unpinned successfully */
|
|
10737
|
-
200: {
|
|
10576
|
+
/** @description The chat is not its subject’s active chat */
|
|
10577
|
+
409: {
|
|
10738
10578
|
headers: {
|
|
10739
10579
|
[name: string]: unknown;
|
|
10740
10580
|
};
|
|
10741
10581
|
content: {
|
|
10742
|
-
"application/json": components["schemas"]["
|
|
10582
|
+
"application/json": components["schemas"]["LaunchTargetSuperseded"];
|
|
10743
10583
|
};
|
|
10744
10584
|
};
|
|
10745
10585
|
};
|
|
10746
10586
|
};
|
|
10747
|
-
|
|
10587
|
+
generateChatTitle: {
|
|
10748
10588
|
parameters: {
|
|
10749
10589
|
query?: never;
|
|
10750
10590
|
header?: never;
|
|
10751
10591
|
path: {
|
|
10752
|
-
|
|
10592
|
+
id: string;
|
|
10753
10593
|
};
|
|
10754
10594
|
cookie?: never;
|
|
10755
10595
|
};
|
|
10756
10596
|
requestBody?: never;
|
|
10757
10597
|
responses: {
|
|
10758
|
-
/** @description
|
|
10598
|
+
/** @description Title generation result */
|
|
10759
10599
|
200: {
|
|
10760
10600
|
headers: {
|
|
10761
10601
|
[name: string]: unknown;
|
|
10762
10602
|
};
|
|
10763
10603
|
content: {
|
|
10764
|
-
"application/json": components["schemas"]["
|
|
10765
|
-
};
|
|
10766
|
-
};
|
|
10767
|
-
};
|
|
10768
|
-
};
|
|
10769
|
-
createShare: {
|
|
10770
|
-
parameters: {
|
|
10771
|
-
query?: never;
|
|
10772
|
-
header?: never;
|
|
10773
|
-
path: {
|
|
10774
|
-
chatId: string;
|
|
10775
|
-
};
|
|
10776
|
-
cookie?: never;
|
|
10777
|
-
};
|
|
10778
|
-
requestBody: {
|
|
10779
|
-
content: {
|
|
10780
|
-
"application/json": components["schemas"]["CreateShareRequest"];
|
|
10781
|
-
};
|
|
10782
|
-
};
|
|
10783
|
-
responses: {
|
|
10784
|
-
/** @description Share created successfully */
|
|
10785
|
-
201: {
|
|
10786
|
-
headers: {
|
|
10787
|
-
[name: string]: unknown;
|
|
10788
|
-
};
|
|
10789
|
-
content: {
|
|
10790
|
-
"application/json": components["schemas"]["CreateShareResponse"];
|
|
10604
|
+
"application/json": components["schemas"]["GenerateTitleResponse"];
|
|
10791
10605
|
};
|
|
10792
10606
|
};
|
|
10793
10607
|
};
|
|
10794
10608
|
};
|
|
10795
|
-
|
|
10609
|
+
pinChat: {
|
|
10796
10610
|
parameters: {
|
|
10797
10611
|
query?: never;
|
|
10798
10612
|
header?: never;
|
|
10799
10613
|
path: {
|
|
10800
|
-
|
|
10614
|
+
id: string;
|
|
10801
10615
|
};
|
|
10802
10616
|
cookie?: never;
|
|
10803
10617
|
};
|
|
10804
10618
|
requestBody?: never;
|
|
10805
10619
|
responses: {
|
|
10806
|
-
/** @description
|
|
10807
|
-
200: {
|
|
10808
|
-
headers: {
|
|
10809
|
-
[name: string]: unknown;
|
|
10810
|
-
};
|
|
10811
|
-
content: {
|
|
10812
|
-
"application/json": components["schemas"]["ChatSuccessResponse"];
|
|
10813
|
-
};
|
|
10814
|
-
};
|
|
10815
|
-
};
|
|
10816
|
-
};
|
|
10817
|
-
updateShare: {
|
|
10818
|
-
parameters: {
|
|
10819
|
-
query?: never;
|
|
10820
|
-
header?: never;
|
|
10821
|
-
path: {
|
|
10822
|
-
shareId: string;
|
|
10823
|
-
};
|
|
10824
|
-
cookie?: never;
|
|
10825
|
-
};
|
|
10826
|
-
requestBody: {
|
|
10827
|
-
content: {
|
|
10828
|
-
"application/json": components["schemas"]["UpdateShareRequest"];
|
|
10829
|
-
};
|
|
10830
|
-
};
|
|
10831
|
-
responses: {
|
|
10832
|
-
/** @description Share updated successfully */
|
|
10620
|
+
/** @description Chat pinned successfully */
|
|
10833
10621
|
200: {
|
|
10834
10622
|
headers: {
|
|
10835
10623
|
[name: string]: unknown;
|
|
10836
10624
|
};
|
|
10837
10625
|
content: {
|
|
10838
|
-
"application/json": components["schemas"]["
|
|
10626
|
+
"application/json": components["schemas"]["SuccessResponse"];
|
|
10839
10627
|
};
|
|
10840
10628
|
};
|
|
10841
10629
|
};
|
|
10842
10630
|
};
|
|
10843
|
-
|
|
10631
|
+
unpinChat: {
|
|
10844
10632
|
parameters: {
|
|
10845
10633
|
query?: never;
|
|
10846
10634
|
header?: never;
|
|
10847
10635
|
path: {
|
|
10848
|
-
|
|
10636
|
+
id: string;
|
|
10849
10637
|
};
|
|
10850
10638
|
cookie?: never;
|
|
10851
10639
|
};
|
|
10852
10640
|
requestBody?: never;
|
|
10853
10641
|
responses: {
|
|
10854
|
-
/** @description
|
|
10642
|
+
/** @description Chat unpinned successfully */
|
|
10855
10643
|
200: {
|
|
10856
10644
|
headers: {
|
|
10857
10645
|
[name: string]: unknown;
|
|
10858
10646
|
};
|
|
10859
10647
|
content: {
|
|
10860
|
-
"application/json": components["schemas"]["
|
|
10648
|
+
"application/json": components["schemas"]["SuccessResponse"];
|
|
10861
10649
|
};
|
|
10862
10650
|
};
|
|
10863
10651
|
};
|