@company-semantics/contracts 6.1.0 → 6.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,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 = '22781c2b738f' as const;
|
|
3
|
+
export const SPEC_HASH_FULL = '22781c2b738fdbdb0833b50ceab729227eccb7c54176ee35a373cc903d536b6c' as const;
|
package/src/api/generated.ts
CHANGED
|
@@ -1198,6 +1198,23 @@ export interface paths {
|
|
|
1198
1198
|
patch?: never;
|
|
1199
1199
|
trace?: never;
|
|
1200
1200
|
};
|
|
1201
|
+
"/api/capabilities": {
|
|
1202
|
+
parameters: {
|
|
1203
|
+
query?: never;
|
|
1204
|
+
header?: never;
|
|
1205
|
+
path?: never;
|
|
1206
|
+
cookie?: never;
|
|
1207
|
+
};
|
|
1208
|
+
/** Get the viewer resolved mutation capabilities */
|
|
1209
|
+
get: operations["getMutationCapabilities"];
|
|
1210
|
+
put?: never;
|
|
1211
|
+
post?: never;
|
|
1212
|
+
delete?: never;
|
|
1213
|
+
options?: never;
|
|
1214
|
+
head?: never;
|
|
1215
|
+
patch?: never;
|
|
1216
|
+
trace?: never;
|
|
1217
|
+
};
|
|
1201
1218
|
"/api/company-md/tree": {
|
|
1202
1219
|
parameters: {
|
|
1203
1220
|
query?: never;
|
|
@@ -3551,6 +3568,63 @@ export interface components {
|
|
|
3551
3568
|
/** @constant */
|
|
3552
3569
|
status: "cancelled";
|
|
3553
3570
|
};
|
|
3571
|
+
CapabilitiesResponse: {
|
|
3572
|
+
profile?: {
|
|
3573
|
+
fullName: {
|
|
3574
|
+
/** @enum {string} */
|
|
3575
|
+
state: "editable" | "locked";
|
|
3576
|
+
/** @enum {string} */
|
|
3577
|
+
reason?: "sso" | "rbac";
|
|
3578
|
+
requiredScope?: string;
|
|
3579
|
+
};
|
|
3580
|
+
preferredName: {
|
|
3581
|
+
/** @enum {string} */
|
|
3582
|
+
state: "editable" | "locked";
|
|
3583
|
+
/** @enum {string} */
|
|
3584
|
+
reason?: "sso" | "rbac";
|
|
3585
|
+
requiredScope?: string;
|
|
3586
|
+
};
|
|
3587
|
+
};
|
|
3588
|
+
org?: {
|
|
3589
|
+
name: {
|
|
3590
|
+
/** @enum {string} */
|
|
3591
|
+
state: "editable" | "locked";
|
|
3592
|
+
/** @enum {string} */
|
|
3593
|
+
reason?: "sso" | "rbac";
|
|
3594
|
+
requiredScope?: string;
|
|
3595
|
+
};
|
|
3596
|
+
};
|
|
3597
|
+
orgUnit?: {
|
|
3598
|
+
/** @enum {string} */
|
|
3599
|
+
manage: "allowed" | "blocked";
|
|
3600
|
+
};
|
|
3601
|
+
actions?: {
|
|
3602
|
+
members: {
|
|
3603
|
+
invite: {
|
|
3604
|
+
/** @enum {string} */
|
|
3605
|
+
state: "allowed" | "blocked";
|
|
3606
|
+
requiredScope?: string;
|
|
3607
|
+
};
|
|
3608
|
+
remove: {
|
|
3609
|
+
/** @enum {string} */
|
|
3610
|
+
state: "allowed" | "blocked";
|
|
3611
|
+
requiredScope?: string;
|
|
3612
|
+
};
|
|
3613
|
+
changeRole: {
|
|
3614
|
+
/** @enum {string} */
|
|
3615
|
+
state: "allowed" | "blocked";
|
|
3616
|
+
requiredScope?: string;
|
|
3617
|
+
};
|
|
3618
|
+
};
|
|
3619
|
+
orgAdmins: {
|
|
3620
|
+
manage: {
|
|
3621
|
+
/** @enum {string} */
|
|
3622
|
+
state: "allowed" | "blocked";
|
|
3623
|
+
requiredScope?: string;
|
|
3624
|
+
};
|
|
3625
|
+
};
|
|
3626
|
+
};
|
|
3627
|
+
};
|
|
3554
3628
|
CompanyMdListResponse: {
|
|
3555
3629
|
items: {
|
|
3556
3630
|
id: string;
|
|
@@ -6497,6 +6571,26 @@ export interface operations {
|
|
|
6497
6571
|
};
|
|
6498
6572
|
};
|
|
6499
6573
|
};
|
|
6574
|
+
getMutationCapabilities: {
|
|
6575
|
+
parameters: {
|
|
6576
|
+
query?: never;
|
|
6577
|
+
header?: never;
|
|
6578
|
+
path?: never;
|
|
6579
|
+
cookie?: never;
|
|
6580
|
+
};
|
|
6581
|
+
requestBody?: never;
|
|
6582
|
+
responses: {
|
|
6583
|
+
/** @description Resolved mutation capabilities for the current viewer + org */
|
|
6584
|
+
200: {
|
|
6585
|
+
headers: {
|
|
6586
|
+
[name: string]: unknown;
|
|
6587
|
+
};
|
|
6588
|
+
content: {
|
|
6589
|
+
"application/json": components["schemas"]["CapabilitiesResponse"];
|
|
6590
|
+
};
|
|
6591
|
+
};
|
|
6592
|
+
};
|
|
6593
|
+
};
|
|
6500
6594
|
getCompanyMdTree: {
|
|
6501
6595
|
parameters: {
|
|
6502
6596
|
query?: {
|
|
@@ -10,6 +10,7 @@ export const openApiRoutes = {
|
|
|
10
10
|
'/api/account/sessions': ['GET'],
|
|
11
11
|
'/api/account/sessions/{sessionId}': ['DELETE'],
|
|
12
12
|
'/api/auth/consent/grant': ['POST'],
|
|
13
|
+
'/api/capabilities': ['GET'],
|
|
13
14
|
'/api/chats': ['GET', 'POST'],
|
|
14
15
|
'/api/chats/by-interaction/{interactionId}': ['GET'],
|
|
15
16
|
'/api/chats/events': ['GET'],
|