@company-semantics/contracts 0.109.0 → 0.110.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 +1 -1
- package/src/api/generated.ts +148 -0
- package/src/generated/openapi-routes.ts +2 -0
package/package.json
CHANGED
package/src/api/generated.ts
CHANGED
|
@@ -935,6 +935,26 @@ export interface paths {
|
|
|
935
935
|
patch?: never;
|
|
936
936
|
trace?: never;
|
|
937
937
|
};
|
|
938
|
+
"/api/workspace/name": {
|
|
939
|
+
parameters: {
|
|
940
|
+
query?: never;
|
|
941
|
+
header?: never;
|
|
942
|
+
path?: never;
|
|
943
|
+
cookie?: never;
|
|
944
|
+
};
|
|
945
|
+
get?: never;
|
|
946
|
+
put?: never;
|
|
947
|
+
post?: never;
|
|
948
|
+
delete?: never;
|
|
949
|
+
options?: never;
|
|
950
|
+
head?: never;
|
|
951
|
+
/**
|
|
952
|
+
* Rename the workspace
|
|
953
|
+
* @description PATCH the workspace name. Requires org.manage_users capability (owner or admin).
|
|
954
|
+
*/
|
|
955
|
+
patch: operations["renameWorkspace"];
|
|
956
|
+
trace?: never;
|
|
957
|
+
};
|
|
938
958
|
"/api/workspace/members": {
|
|
939
959
|
parameters: {
|
|
940
960
|
query?: never;
|
|
@@ -2081,6 +2101,26 @@ export interface paths {
|
|
|
2081
2101
|
patch?: never;
|
|
2082
2102
|
trace?: never;
|
|
2083
2103
|
};
|
|
2104
|
+
"/api/scope/check-batch": {
|
|
2105
|
+
parameters: {
|
|
2106
|
+
query?: never;
|
|
2107
|
+
header?: never;
|
|
2108
|
+
path?: never;
|
|
2109
|
+
cookie?: never;
|
|
2110
|
+
};
|
|
2111
|
+
get?: never;
|
|
2112
|
+
put?: never;
|
|
2113
|
+
/**
|
|
2114
|
+
* Batch check authorization scopes for current user
|
|
2115
|
+
* @description Checks whether the current user has access to each of the given scopes. Scope strings are implementation-defined and not part of the public API vocabulary. Accepts 1-20 scope strings per request.
|
|
2116
|
+
*/
|
|
2117
|
+
post: operations["checkScopeBatch"];
|
|
2118
|
+
delete?: never;
|
|
2119
|
+
options?: never;
|
|
2120
|
+
head?: never;
|
|
2121
|
+
patch?: never;
|
|
2122
|
+
trace?: never;
|
|
2123
|
+
};
|
|
2084
2124
|
}
|
|
2085
2125
|
export type webhooks = Record<string, never>;
|
|
2086
2126
|
export interface components {
|
|
@@ -2455,6 +2495,16 @@ export interface components {
|
|
|
2455
2495
|
estimatedCostUsd: string;
|
|
2456
2496
|
requestCount: number;
|
|
2457
2497
|
};
|
|
2498
|
+
ScopeCheckBatchRequest: {
|
|
2499
|
+
scopes: string[];
|
|
2500
|
+
};
|
|
2501
|
+
ScopeCheckBatchResponse: {
|
|
2502
|
+
results: {
|
|
2503
|
+
[key: string]: {
|
|
2504
|
+
hasAccess: boolean;
|
|
2505
|
+
};
|
|
2506
|
+
};
|
|
2507
|
+
};
|
|
2458
2508
|
ErrorResponse: {
|
|
2459
2509
|
error: string;
|
|
2460
2510
|
message: string;
|
|
@@ -2758,6 +2808,9 @@ export interface components {
|
|
|
2758
2808
|
OrgType: "personal" | "shared";
|
|
2759
2809
|
/** @enum {string} */
|
|
2760
2810
|
WorkspaceRole: "owner" | "admin" | "member";
|
|
2811
|
+
RenameWorkspaceRequest: {
|
|
2812
|
+
name: string;
|
|
2813
|
+
};
|
|
2761
2814
|
WorkspaceOverview: {
|
|
2762
2815
|
/** Format: uuid */
|
|
2763
2816
|
id: string;
|
|
@@ -4985,6 +5038,57 @@ export interface operations {
|
|
|
4985
5038
|
};
|
|
4986
5039
|
};
|
|
4987
5040
|
};
|
|
5041
|
+
renameWorkspace: {
|
|
5042
|
+
parameters: {
|
|
5043
|
+
query?: never;
|
|
5044
|
+
header?: never;
|
|
5045
|
+
path?: never;
|
|
5046
|
+
cookie?: never;
|
|
5047
|
+
};
|
|
5048
|
+
requestBody: {
|
|
5049
|
+
content: {
|
|
5050
|
+
"application/json": components["schemas"]["RenameWorkspaceRequest"];
|
|
5051
|
+
};
|
|
5052
|
+
};
|
|
5053
|
+
responses: {
|
|
5054
|
+
/** @description Updated workspace overview */
|
|
5055
|
+
200: {
|
|
5056
|
+
headers: {
|
|
5057
|
+
[name: string]: unknown;
|
|
5058
|
+
};
|
|
5059
|
+
content: {
|
|
5060
|
+
"application/json": components["schemas"]["WorkspaceOverview"];
|
|
5061
|
+
};
|
|
5062
|
+
};
|
|
5063
|
+
/** @description Invalid name */
|
|
5064
|
+
400: {
|
|
5065
|
+
headers: {
|
|
5066
|
+
[name: string]: unknown;
|
|
5067
|
+
};
|
|
5068
|
+
content: {
|
|
5069
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
5070
|
+
};
|
|
5071
|
+
};
|
|
5072
|
+
/** @description Missing org.manage_users capability */
|
|
5073
|
+
403: {
|
|
5074
|
+
headers: {
|
|
5075
|
+
[name: string]: unknown;
|
|
5076
|
+
};
|
|
5077
|
+
content: {
|
|
5078
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
5079
|
+
};
|
|
5080
|
+
};
|
|
5081
|
+
/** @description Workspace not found */
|
|
5082
|
+
404: {
|
|
5083
|
+
headers: {
|
|
5084
|
+
[name: string]: unknown;
|
|
5085
|
+
};
|
|
5086
|
+
content: {
|
|
5087
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
5088
|
+
};
|
|
5089
|
+
};
|
|
5090
|
+
};
|
|
5091
|
+
};
|
|
4988
5092
|
getWorkspaceMembers: {
|
|
4989
5093
|
parameters: {
|
|
4990
5094
|
query?: never;
|
|
@@ -6166,6 +6270,8 @@ export interface operations {
|
|
|
6166
6270
|
query?: {
|
|
6167
6271
|
/** @description Time period for usage aggregation */
|
|
6168
6272
|
period?: "current_month" | "last_30_days" | "last_7_days";
|
|
6273
|
+
/** @description IANA timezone identifier for date bucketing */
|
|
6274
|
+
tz?: string;
|
|
6169
6275
|
};
|
|
6170
6276
|
header?: never;
|
|
6171
6277
|
path: {
|
|
@@ -8043,4 +8149,46 @@ export interface operations {
|
|
|
8043
8149
|
};
|
|
8044
8150
|
};
|
|
8045
8151
|
};
|
|
8152
|
+
checkScopeBatch: {
|
|
8153
|
+
parameters: {
|
|
8154
|
+
query?: never;
|
|
8155
|
+
header?: never;
|
|
8156
|
+
path?: never;
|
|
8157
|
+
cookie?: never;
|
|
8158
|
+
};
|
|
8159
|
+
requestBody: {
|
|
8160
|
+
content: {
|
|
8161
|
+
"application/json": components["schemas"]["ScopeCheckBatchRequest"];
|
|
8162
|
+
};
|
|
8163
|
+
};
|
|
8164
|
+
responses: {
|
|
8165
|
+
/** @description Authorization results for each scope */
|
|
8166
|
+
200: {
|
|
8167
|
+
headers: {
|
|
8168
|
+
[name: string]: unknown;
|
|
8169
|
+
};
|
|
8170
|
+
content: {
|
|
8171
|
+
"application/json": components["schemas"]["ScopeCheckBatchResponse"];
|
|
8172
|
+
};
|
|
8173
|
+
};
|
|
8174
|
+
/** @description Invalid input (empty array, >20 items, invalid scope format) */
|
|
8175
|
+
400: {
|
|
8176
|
+
headers: {
|
|
8177
|
+
[name: string]: unknown;
|
|
8178
|
+
};
|
|
8179
|
+
content: {
|
|
8180
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
8181
|
+
};
|
|
8182
|
+
};
|
|
8183
|
+
/** @description Not authenticated */
|
|
8184
|
+
401: {
|
|
8185
|
+
headers: {
|
|
8186
|
+
[name: string]: unknown;
|
|
8187
|
+
};
|
|
8188
|
+
content: {
|
|
8189
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
8190
|
+
};
|
|
8191
|
+
};
|
|
8192
|
+
};
|
|
8193
|
+
};
|
|
8046
8194
|
}
|
|
@@ -53,6 +53,7 @@ export const openApiRoutes = {
|
|
|
53
53
|
'/api/orgs/{orgId}/ai-usage': ['GET'],
|
|
54
54
|
'/api/orgs/{orgId}/billing': ['GET'],
|
|
55
55
|
'/api/orgs/{orgId}/budget-config': ['GET', 'PUT'],
|
|
56
|
+
'/api/scope/check-batch': ['POST'],
|
|
56
57
|
'/api/shared/{token}': ['GET'],
|
|
57
58
|
'/api/shares/{shareId}': ['DELETE', 'PATCH'],
|
|
58
59
|
'/api/teams': ['GET', 'POST'],
|
|
@@ -85,6 +86,7 @@ export const openApiRoutes = {
|
|
|
85
86
|
'/api/workspace/members': ['GET'],
|
|
86
87
|
'/api/workspace/members/{id}': ['DELETE'],
|
|
87
88
|
'/api/workspace/members/{id}/role': ['PATCH'],
|
|
89
|
+
'/api/workspace/name': ['PATCH'],
|
|
88
90
|
'/api/workspace/resolve-path': ['POST'],
|
|
89
91
|
'/api/workspace/resync-slack-logo': ['POST'],
|
|
90
92
|
'/auth/logout': ['POST'],
|