@company-semantics/contracts 0.113.1 → 0.115.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 +3 -2
- package/src/api/generated-spec-hash.ts +3 -0
- package/src/api/generated.ts +89 -5
- package/src/api/index.ts +3 -0
- package/src/impersonation.ts +0 -2
- package/src/index.ts +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@company-semantics/contracts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.115.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -83,7 +83,8 @@
|
|
|
83
83
|
"release": "npx tsx scripts/release.ts",
|
|
84
84
|
"prepublishOnly": "echo 'ERROR: Publishing is CI-only via tag push. Use pnpm release instead.' && exit 1",
|
|
85
85
|
"test": "vitest run",
|
|
86
|
-
"generate:
|
|
86
|
+
"generate:spec-hash": "tsx scripts/generate-spec-hash.ts",
|
|
87
|
+
"generate:api": "pnpm generate:api-types && pnpm generate:spec-hash",
|
|
87
88
|
"generate:api-types": "openapi-typescript openapi/backend.yaml -o src/api/generated.ts",
|
|
88
89
|
"generate:openapi-routes": "tsx scripts/generate-openapi-routes.ts",
|
|
89
90
|
"generate:api-types:check": "openapi-typescript openapi/backend.yaml -o /tmp/cs-api-types-check.ts && diff -q src/api/generated.ts /tmp/cs-api-types-check.ts"
|
package/src/api/generated.ts
CHANGED
|
@@ -1578,6 +1578,27 @@ export interface paths {
|
|
|
1578
1578
|
patch?: never;
|
|
1579
1579
|
trace?: never;
|
|
1580
1580
|
};
|
|
1581
|
+
"/api/chats/{id}/messages/{messageId}": {
|
|
1582
|
+
parameters: {
|
|
1583
|
+
query?: never;
|
|
1584
|
+
header?: never;
|
|
1585
|
+
path?: never;
|
|
1586
|
+
cookie?: never;
|
|
1587
|
+
};
|
|
1588
|
+
get?: never;
|
|
1589
|
+
put?: never;
|
|
1590
|
+
post?: never;
|
|
1591
|
+
/**
|
|
1592
|
+
* Delete a single message
|
|
1593
|
+
* @description Deletes a single message from a chat.
|
|
1594
|
+
* Only the chat owner can delete messages from their chats.
|
|
1595
|
+
*/
|
|
1596
|
+
delete: operations["deleteMessage"];
|
|
1597
|
+
options?: never;
|
|
1598
|
+
head?: never;
|
|
1599
|
+
patch?: never;
|
|
1600
|
+
trace?: never;
|
|
1601
|
+
};
|
|
1581
1602
|
"/api/chats/{id}/generate-title": {
|
|
1582
1603
|
parameters: {
|
|
1583
1604
|
query?: never;
|
|
@@ -2584,6 +2605,10 @@ export interface components {
|
|
|
2584
2605
|
};
|
|
2585
2606
|
ExecutionListResponse: {
|
|
2586
2607
|
executions: components["schemas"]["ExecutionSummary"][];
|
|
2608
|
+
/** @description Cursor for next page, null if no more results */
|
|
2609
|
+
nextCursor?: string | null;
|
|
2610
|
+
/** @description Whether more results are available */
|
|
2611
|
+
hasMore: boolean;
|
|
2587
2612
|
};
|
|
2588
2613
|
ExecutionStartRequest: {
|
|
2589
2614
|
kind: string;
|
|
@@ -2838,6 +2863,13 @@ export interface components {
|
|
|
2838
2863
|
/** Format: date-time */
|
|
2839
2864
|
joinedAt: string;
|
|
2840
2865
|
};
|
|
2866
|
+
WorkspaceMembersResponse: {
|
|
2867
|
+
items: components["schemas"]["WorkspaceMember"][];
|
|
2868
|
+
/** @description Cursor for next page, null if no more results */
|
|
2869
|
+
nextCursor?: string | null;
|
|
2870
|
+
/** @description Whether more results are available */
|
|
2871
|
+
hasMore: boolean;
|
|
2872
|
+
};
|
|
2841
2873
|
AuthMethodConfig: {
|
|
2842
2874
|
enabled: boolean;
|
|
2843
2875
|
provider?: string;
|
|
@@ -3940,8 +3972,12 @@ export interface operations {
|
|
|
3940
3972
|
targetType?: string;
|
|
3941
3973
|
/** @description Max results (default 100) */
|
|
3942
3974
|
limit?: number;
|
|
3943
|
-
/** @description
|
|
3944
|
-
|
|
3975
|
+
/** @description Cursor for pagination */
|
|
3976
|
+
cursor?: string;
|
|
3977
|
+
/** @description Start of date range filter */
|
|
3978
|
+
periodStart?: string;
|
|
3979
|
+
/** @description End of date range filter */
|
|
3980
|
+
periodEnd?: string;
|
|
3945
3981
|
};
|
|
3946
3982
|
header?: never;
|
|
3947
3983
|
path?: never;
|
|
@@ -5091,20 +5127,25 @@ export interface operations {
|
|
|
5091
5127
|
};
|
|
5092
5128
|
getWorkspaceMembers: {
|
|
5093
5129
|
parameters: {
|
|
5094
|
-
query?:
|
|
5130
|
+
query?: {
|
|
5131
|
+
/** @description Cursor for pagination */
|
|
5132
|
+
cursor?: string;
|
|
5133
|
+
/** @description Max results per page (default 100, max 200) */
|
|
5134
|
+
limit?: number;
|
|
5135
|
+
};
|
|
5095
5136
|
header?: never;
|
|
5096
5137
|
path?: never;
|
|
5097
5138
|
cookie?: never;
|
|
5098
5139
|
};
|
|
5099
5140
|
requestBody?: never;
|
|
5100
5141
|
responses: {
|
|
5101
|
-
/** @description
|
|
5142
|
+
/** @description Paginated list of workspace members */
|
|
5102
5143
|
200: {
|
|
5103
5144
|
headers: {
|
|
5104
5145
|
[name: string]: unknown;
|
|
5105
5146
|
};
|
|
5106
5147
|
content: {
|
|
5107
|
-
"application/json": components["schemas"]["
|
|
5148
|
+
"application/json": components["schemas"]["WorkspaceMembersResponse"];
|
|
5108
5149
|
};
|
|
5109
5150
|
};
|
|
5110
5151
|
/** @description No org.view_workspace capability */
|
|
@@ -6572,6 +6613,49 @@ export interface operations {
|
|
|
6572
6613
|
};
|
|
6573
6614
|
};
|
|
6574
6615
|
};
|
|
6616
|
+
deleteMessage: {
|
|
6617
|
+
parameters: {
|
|
6618
|
+
query?: never;
|
|
6619
|
+
header?: never;
|
|
6620
|
+
path: {
|
|
6621
|
+
/** @description Chat ID (UUID) */
|
|
6622
|
+
id: string;
|
|
6623
|
+
/** @description Message ID (UUID) */
|
|
6624
|
+
messageId: string;
|
|
6625
|
+
};
|
|
6626
|
+
cookie?: never;
|
|
6627
|
+
};
|
|
6628
|
+
requestBody?: never;
|
|
6629
|
+
responses: {
|
|
6630
|
+
/** @description Message deleted */
|
|
6631
|
+
200: {
|
|
6632
|
+
headers: {
|
|
6633
|
+
[name: string]: unknown;
|
|
6634
|
+
};
|
|
6635
|
+
content: {
|
|
6636
|
+
"application/json": components["schemas"]["SuccessResponse"];
|
|
6637
|
+
};
|
|
6638
|
+
};
|
|
6639
|
+
/** @description Not authenticated */
|
|
6640
|
+
401: {
|
|
6641
|
+
headers: {
|
|
6642
|
+
[name: string]: unknown;
|
|
6643
|
+
};
|
|
6644
|
+
content: {
|
|
6645
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
6646
|
+
};
|
|
6647
|
+
};
|
|
6648
|
+
/** @description Chat or message not found */
|
|
6649
|
+
404: {
|
|
6650
|
+
headers: {
|
|
6651
|
+
[name: string]: unknown;
|
|
6652
|
+
};
|
|
6653
|
+
content: {
|
|
6654
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
6655
|
+
};
|
|
6656
|
+
};
|
|
6657
|
+
};
|
|
6658
|
+
};
|
|
6575
6659
|
generateChatTitle: {
|
|
6576
6660
|
parameters: {
|
|
6577
6661
|
query?: never;
|
package/src/api/index.ts
CHANGED
package/src/impersonation.ts
CHANGED
|
@@ -29,7 +29,6 @@ export type RestrictedImpersonationAction =
|
|
|
29
29
|
| 'delete_chat'
|
|
30
30
|
| 'delete_message'
|
|
31
31
|
| 'modify_billing'
|
|
32
|
-
| 'rotate_credentials'
|
|
33
32
|
| 'invite_remove_users'
|
|
34
33
|
| 'accept_agreements'
|
|
35
34
|
| 'irreversible_write'
|
|
@@ -40,7 +39,6 @@ export const RESTRICTED_IMPERSONATION_ACTIONS: readonly RestrictedImpersonationA
|
|
|
40
39
|
'delete_chat',
|
|
41
40
|
'delete_message',
|
|
42
41
|
'modify_billing',
|
|
43
|
-
'rotate_credentials',
|
|
44
42
|
'invite_remove_users',
|
|
45
43
|
'accept_agreements',
|
|
46
44
|
'irreversible_write',
|
package/src/index.ts
CHANGED
|
@@ -549,6 +549,9 @@ export type { ValidationDetail, ErrorResponse } from './errors/index'
|
|
|
549
549
|
// @see src/api/README.md for codegen details
|
|
550
550
|
export type { paths, components, operations } from './api/index'
|
|
551
551
|
|
|
552
|
+
// Spec hash (SHA-256 of openapi/backend.yaml, generated at build time)
|
|
553
|
+
export { SPEC_HASH, SPEC_HASH_FULL } from './api/index'
|
|
554
|
+
|
|
552
555
|
// OpenAPI route registry (generated from openapi/backend.yaml)
|
|
553
556
|
export { openApiRoutes, type OpenApiRoute, type OpenApiMethod } from './generated/openapi-routes'
|
|
554
557
|
|