@company-semantics/contracts 63.4.0 → 63.5.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,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 = '0d2acd64eacb' as const;
|
|
3
|
+
export const SPEC_HASH_FULL = '0d2acd64eacb1b9c0e7433170aa68300d2ad9197870f35b3b420f55d9e597abf' as const;
|
package/src/api/generated.ts
CHANGED
|
@@ -264,6 +264,23 @@ export interface paths {
|
|
|
264
264
|
patch?: never;
|
|
265
265
|
trace?: never;
|
|
266
266
|
};
|
|
267
|
+
"/api/chats/mentionable": {
|
|
268
|
+
parameters: {
|
|
269
|
+
query?: never;
|
|
270
|
+
header?: never;
|
|
271
|
+
path?: never;
|
|
272
|
+
cookie?: never;
|
|
273
|
+
};
|
|
274
|
+
/** List the principals the chat composer may mention */
|
|
275
|
+
get: operations["listChatMentionable"];
|
|
276
|
+
put?: never;
|
|
277
|
+
post?: never;
|
|
278
|
+
delete?: never;
|
|
279
|
+
options?: never;
|
|
280
|
+
head?: never;
|
|
281
|
+
patch?: never;
|
|
282
|
+
trace?: never;
|
|
283
|
+
};
|
|
267
284
|
"/api/chats/{id}": {
|
|
268
285
|
parameters: {
|
|
269
286
|
query?: never;
|
|
@@ -4087,6 +4104,20 @@ export interface components {
|
|
|
4087
4104
|
ChatByInteractionResponse: {
|
|
4088
4105
|
chatId: string;
|
|
4089
4106
|
};
|
|
4107
|
+
ChatMentionableResponse: {
|
|
4108
|
+
items: {
|
|
4109
|
+
principal: {
|
|
4110
|
+
/** @constant */
|
|
4111
|
+
kind: "user";
|
|
4112
|
+
userId: string;
|
|
4113
|
+
} | {
|
|
4114
|
+
/** @constant */
|
|
4115
|
+
kind: "agent";
|
|
4116
|
+
};
|
|
4117
|
+
displayName: string;
|
|
4118
|
+
avatarUrl: string | null;
|
|
4119
|
+
}[];
|
|
4120
|
+
};
|
|
4090
4121
|
GetChatResponse: {
|
|
4091
4122
|
chat: {
|
|
4092
4123
|
id: string;
|
|
@@ -4324,6 +4355,19 @@ export interface components {
|
|
|
4324
4355
|
role: "user";
|
|
4325
4356
|
parts: unknown[];
|
|
4326
4357
|
};
|
|
4358
|
+
mentions?: ({
|
|
4359
|
+
/** @constant */
|
|
4360
|
+
kind: "user";
|
|
4361
|
+
/** Format: uuid */
|
|
4362
|
+
userId: string;
|
|
4363
|
+
startOffset: number;
|
|
4364
|
+
endOffset: number;
|
|
4365
|
+
} | {
|
|
4366
|
+
/** @constant */
|
|
4367
|
+
kind: "agent";
|
|
4368
|
+
startOffset: number;
|
|
4369
|
+
endOffset: number;
|
|
4370
|
+
})[];
|
|
4327
4371
|
messages?: unknown;
|
|
4328
4372
|
runtimeProfile?: string;
|
|
4329
4373
|
pageContext?: {
|
|
@@ -5377,6 +5421,7 @@ export interface components {
|
|
|
5377
5421
|
};
|
|
5378
5422
|
};
|
|
5379
5423
|
};
|
|
5424
|
+
chatMentions: boolean;
|
|
5380
5425
|
};
|
|
5381
5426
|
OrgStructureReviewQueue: {
|
|
5382
5427
|
items: {
|
|
@@ -7781,6 +7826,28 @@ export interface operations {
|
|
|
7781
7826
|
};
|
|
7782
7827
|
};
|
|
7783
7828
|
};
|
|
7829
|
+
listChatMentionable: {
|
|
7830
|
+
parameters: {
|
|
7831
|
+
query?: {
|
|
7832
|
+
q?: string;
|
|
7833
|
+
};
|
|
7834
|
+
header?: never;
|
|
7835
|
+
path?: never;
|
|
7836
|
+
cookie?: never;
|
|
7837
|
+
};
|
|
7838
|
+
requestBody?: never;
|
|
7839
|
+
responses: {
|
|
7840
|
+
/** @description The mention candidates the composer may offer */
|
|
7841
|
+
200: {
|
|
7842
|
+
headers: {
|
|
7843
|
+
[name: string]: unknown;
|
|
7844
|
+
};
|
|
7845
|
+
content: {
|
|
7846
|
+
"application/json": components["schemas"]["ChatMentionableResponse"];
|
|
7847
|
+
};
|
|
7848
|
+
};
|
|
7849
|
+
};
|
|
7850
|
+
};
|
|
7784
7851
|
getChat: {
|
|
7785
7852
|
parameters: {
|
|
7786
7853
|
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/mentionable': ['GET'],
|
|
18
19
|
'/api/chats/proactive/{eventId}': ['GET'],
|
|
19
20
|
'/api/chats/{chatId}/shares': ['GET', 'POST'],
|
|
20
21
|
'/api/chats/{id}': ['DELETE', 'GET', 'PATCH'],
|
package/src/org/schemas.ts
CHANGED
|
@@ -2133,6 +2133,11 @@ export const CapabilitiesResponseSchema = z.object({
|
|
|
2133
2133
|
.optional(),
|
|
2134
2134
|
})
|
|
2135
2135
|
.optional(),
|
|
2136
|
+
// Gates the chat composer's mention affordance (PRD-00988). Optional for the
|
|
2137
|
+
// same rollout symmetry as the action sub-objects above: a backend that does
|
|
2138
|
+
// not yet derive the flag must still validate its own response, and the spec
|
|
2139
|
+
// already carried the field before this schema did.
|
|
2140
|
+
chatMentions: z.boolean().optional(),
|
|
2136
2141
|
});
|
|
2137
2142
|
|
|
2138
2143
|
export type FieldCapability = z.infer<typeof FieldCapabilitySchema>;
|