@company-semantics/contracts 0.119.0 → 0.121.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 +5 -1
- package/src/api/generated.ts +467 -1093
- package/src/org/index.ts +65 -0
- package/src/org/schemas.ts +504 -0
package/src/api/generated.ts
CHANGED
|
@@ -191,12 +191,7 @@ export interface paths {
|
|
|
191
191
|
path?: never;
|
|
192
192
|
cookie?: never;
|
|
193
193
|
};
|
|
194
|
-
/**
|
|
195
|
-
* List user's org memberships
|
|
196
|
-
* @description Returns all organizations the current user is a member of.
|
|
197
|
-
* Used by the org switcher UI for multi-org support.
|
|
198
|
-
* Only returns active memberships.
|
|
199
|
-
*/
|
|
194
|
+
/** List user's org memberships */
|
|
200
195
|
get: operations["listUserOrgs"];
|
|
201
196
|
put?: never;
|
|
202
197
|
post?: never;
|
|
@@ -215,12 +210,7 @@ export interface paths {
|
|
|
215
210
|
};
|
|
216
211
|
get?: never;
|
|
217
212
|
put?: never;
|
|
218
|
-
/**
|
|
219
|
-
* Set active org context
|
|
220
|
-
* @description Set the active organization context for the current user.
|
|
221
|
-
* Validates that the user is a member of the target org.
|
|
222
|
-
* Does NOT re-authenticate or elevate permissions.
|
|
223
|
-
*/
|
|
213
|
+
/** Set active org context */
|
|
224
214
|
post: operations["setActiveOrg"];
|
|
225
215
|
delete?: never;
|
|
226
216
|
options?: never;
|
|
@@ -349,9 +339,8 @@ export interface paths {
|
|
|
349
339
|
get?: never;
|
|
350
340
|
put?: never;
|
|
351
341
|
/**
|
|
352
|
-
*
|
|
353
|
-
* @description Streaming chat endpoint
|
|
354
|
-
* Returns x-vercel-ai-ui-message-stream header for AI SDK compatibility.
|
|
342
|
+
* Send a chat message and receive a streaming AI response
|
|
343
|
+
* @description Streaming AI chat endpoint. x-streaming: true. Returns a text/event-stream using the Vercel AI SDK UI message stream protocol.
|
|
355
344
|
*/
|
|
356
345
|
post: operations["postAiChat"];
|
|
357
346
|
delete?: never;
|
|
@@ -845,11 +834,7 @@ export interface paths {
|
|
|
845
834
|
path?: never;
|
|
846
835
|
cookie?: never;
|
|
847
836
|
};
|
|
848
|
-
/**
|
|
849
|
-
* Check workspace access
|
|
850
|
-
* @description Lightweight authorization probe for the workspace control plane.
|
|
851
|
-
* Returns whether the current user has access to workspace features.
|
|
852
|
-
*/
|
|
837
|
+
/** Check workspace access */
|
|
853
838
|
get: operations["getWorkspaceAccess"];
|
|
854
839
|
put?: never;
|
|
855
840
|
post?: never;
|
|
@@ -866,11 +851,7 @@ export interface paths {
|
|
|
866
851
|
path?: never;
|
|
867
852
|
cookie?: never;
|
|
868
853
|
};
|
|
869
|
-
/**
|
|
870
|
-
* Get workspace overview
|
|
871
|
-
* @description Returns workspace overview including org details, owner info, and member count.
|
|
872
|
-
* Requires org.view_workspace capability.
|
|
873
|
-
*/
|
|
854
|
+
/** Get workspace overview */
|
|
874
855
|
get: operations["getWorkspaceOverview"];
|
|
875
856
|
put?: never;
|
|
876
857
|
post?: never;
|
|
@@ -893,10 +874,7 @@ export interface paths {
|
|
|
893
874
|
delete?: never;
|
|
894
875
|
options?: never;
|
|
895
876
|
head?: never;
|
|
896
|
-
/**
|
|
897
|
-
* Rename the workspace
|
|
898
|
-
* @description PATCH the workspace name. Requires org.manage_users capability (owner or admin).
|
|
899
|
-
*/
|
|
877
|
+
/** Rename the workspace */
|
|
900
878
|
patch: operations["renameWorkspace"];
|
|
901
879
|
trace?: never;
|
|
902
880
|
};
|
|
@@ -907,12 +885,7 @@ export interface paths {
|
|
|
907
885
|
path?: never;
|
|
908
886
|
cookie?: never;
|
|
909
887
|
};
|
|
910
|
-
/**
|
|
911
|
-
* Get workspace members
|
|
912
|
-
* @description Returns list of workspace members with their roles.
|
|
913
|
-
* Human users only (no agent actors).
|
|
914
|
-
* Requires org.view_workspace capability.
|
|
915
|
-
*/
|
|
888
|
+
/** Get workspace members */
|
|
916
889
|
get: operations["getWorkspaceMembers"];
|
|
917
890
|
put?: never;
|
|
918
891
|
post?: never;
|
|
@@ -929,12 +902,7 @@ export interface paths {
|
|
|
929
902
|
path?: never;
|
|
930
903
|
cookie?: never;
|
|
931
904
|
};
|
|
932
|
-
/**
|
|
933
|
-
* Get workspace auth config
|
|
934
|
-
* @description Returns workspace authentication configuration.
|
|
935
|
-
* Shows which auth methods are enabled.
|
|
936
|
-
* Requires org.view_workspace capability.
|
|
937
|
-
*/
|
|
905
|
+
/** Get workspace auth config */
|
|
938
906
|
get: operations["getWorkspaceAuth"];
|
|
939
907
|
put?: never;
|
|
940
908
|
post?: never;
|
|
@@ -951,13 +919,7 @@ export interface paths {
|
|
|
951
919
|
path?: never;
|
|
952
920
|
cookie?: never;
|
|
953
921
|
};
|
|
954
|
-
/**
|
|
955
|
-
* Get workspace audit log
|
|
956
|
-
* @description Returns workspace audit events.
|
|
957
|
-
* Only returns spec-defined events (server-side filtering).
|
|
958
|
-
* Supports pagination with limit (max 100) and offset (max 1000).
|
|
959
|
-
* Requires org.view_workspace capability.
|
|
960
|
-
*/
|
|
922
|
+
/** Get workspace audit log */
|
|
961
923
|
get: operations["getWorkspaceAudit"];
|
|
962
924
|
put?: never;
|
|
963
925
|
post?: never;
|
|
@@ -980,12 +942,7 @@ export interface paths {
|
|
|
980
942
|
delete?: never;
|
|
981
943
|
options?: never;
|
|
982
944
|
head?: never;
|
|
983
|
-
/**
|
|
984
|
-
* Update workspace auth policy
|
|
985
|
-
* @description Updates the workspace authentication policy.
|
|
986
|
-
* Owner-only endpoint (requires org.manage_auth capability).
|
|
987
|
-
* Auth policy changes do NOT affect existing sessions.
|
|
988
|
-
*/
|
|
945
|
+
/** Update workspace auth policy */
|
|
989
946
|
patch: operations["updateWorkspaceAuthPolicy"];
|
|
990
947
|
trace?: never;
|
|
991
948
|
};
|
|
@@ -998,12 +955,7 @@ export interface paths {
|
|
|
998
955
|
};
|
|
999
956
|
get?: never;
|
|
1000
957
|
put?: never;
|
|
1001
|
-
/**
|
|
1002
|
-
* Validate OIDC discovery URL
|
|
1003
|
-
* @description Validates an OIDC discovery URL before saving SSO credentials.
|
|
1004
|
-
* Checks HTTPS requirement, SSRF protection, and required OIDC fields.
|
|
1005
|
-
* Admin-only endpoint (requires org.manage_auth capability).
|
|
1006
|
-
*/
|
|
958
|
+
/** Validate OIDC discovery URL */
|
|
1007
959
|
post: operations["validateOidcDiscovery"];
|
|
1008
960
|
delete?: never;
|
|
1009
961
|
options?: never;
|
|
@@ -1020,13 +972,7 @@ export interface paths {
|
|
|
1020
972
|
};
|
|
1021
973
|
get?: never;
|
|
1022
974
|
put?: never;
|
|
1023
|
-
/**
|
|
1024
|
-
* Initiate test SSO login attempt
|
|
1025
|
-
* @description Creates a pending SSO test attempt, generates an OAuth state token
|
|
1026
|
-
* with isTest=true, builds the IdP authorization URL, and returns
|
|
1027
|
-
* the URL and attempt ID for polling.
|
|
1028
|
-
* Requires org.manage_auth capability.
|
|
1029
|
-
*/
|
|
975
|
+
/** Initiate a test SSO login */
|
|
1030
976
|
post: operations["initiateTestSso"];
|
|
1031
977
|
delete?: never;
|
|
1032
978
|
options?: never;
|
|
@@ -1041,12 +987,7 @@ export interface paths {
|
|
|
1041
987
|
path?: never;
|
|
1042
988
|
cookie?: never;
|
|
1043
989
|
};
|
|
1044
|
-
/**
|
|
1045
|
-
* Poll test SSO attempt status
|
|
1046
|
-
* @description Returns the current status of a test SSO login attempt.
|
|
1047
|
-
* Pending attempts older than 5 minutes are lazily reported as expired.
|
|
1048
|
-
* Requires org.manage_auth capability.
|
|
1049
|
-
*/
|
|
990
|
+
/** Poll test SSO login status */
|
|
1050
991
|
get: operations["pollTestSso"];
|
|
1051
992
|
put?: never;
|
|
1052
993
|
post?: never;
|
|
@@ -1157,12 +1098,7 @@ export interface paths {
|
|
|
1157
1098
|
get?: never;
|
|
1158
1099
|
put?: never;
|
|
1159
1100
|
post?: never;
|
|
1160
|
-
/**
|
|
1161
|
-
* Remove workspace member
|
|
1162
|
-
* @description Remove a member from the workspace.
|
|
1163
|
-
* Cannot remove the owner (must transfer ownership first).
|
|
1164
|
-
* Admin floor enforced (at least one admin must remain).
|
|
1165
|
-
*/
|
|
1101
|
+
/** Remove workspace member */
|
|
1166
1102
|
delete: operations["removeMember"];
|
|
1167
1103
|
options?: never;
|
|
1168
1104
|
head?: never;
|
|
@@ -1182,12 +1118,7 @@ export interface paths {
|
|
|
1182
1118
|
delete?: never;
|
|
1183
1119
|
options?: never;
|
|
1184
1120
|
head?: never;
|
|
1185
|
-
/**
|
|
1186
|
-
* Change member role
|
|
1187
|
-
* @description Change a member's role.
|
|
1188
|
-
* Cannot change the owner's role (must transfer ownership first).
|
|
1189
|
-
* Admin floor enforced (cannot demote last admin).
|
|
1190
|
-
*/
|
|
1121
|
+
/** Change member role */
|
|
1191
1122
|
patch: operations["changeMemberRole"];
|
|
1192
1123
|
trace?: never;
|
|
1193
1124
|
};
|
|
@@ -1275,11 +1206,7 @@ export interface paths {
|
|
|
1275
1206
|
};
|
|
1276
1207
|
get?: never;
|
|
1277
1208
|
put?: never;
|
|
1278
|
-
/**
|
|
1279
|
-
* Resync workspace logo from Slack
|
|
1280
|
-
* @description Manually resync the workspace logo from the connected Slack workspace icon.
|
|
1281
|
-
* Requires org.view_workspace capability and an active Slack connection.
|
|
1282
|
-
*/
|
|
1209
|
+
/** Resync workspace logo from Slack */
|
|
1283
1210
|
post: operations["resyncSlackLogo"];
|
|
1284
1211
|
delete?: never;
|
|
1285
1212
|
options?: never;
|
|
@@ -1296,13 +1223,7 @@ export interface paths {
|
|
|
1296
1223
|
};
|
|
1297
1224
|
get?: never;
|
|
1298
1225
|
put?: never;
|
|
1299
|
-
/**
|
|
1300
|
-
* Resolve a tokenized URL path to hydrated navigation layers
|
|
1301
|
-
* @description Resolves a tokenized workspace URL path to hydrated entity data.
|
|
1302
|
-
* Used by the frontend for cold-start deep linking and browser back/forward.
|
|
1303
|
-
* Path segments follow a [type, slug] pair grammar: "dept" before "team",
|
|
1304
|
-
* "team" requires preceding "dept", and "members" must be terminal.
|
|
1305
|
-
*/
|
|
1226
|
+
/** Resolve a tokenized URL path to hydrated navigation layers */
|
|
1306
1227
|
post: operations["resolveWorkspacePath"];
|
|
1307
1228
|
delete?: never;
|
|
1308
1229
|
options?: never;
|
|
@@ -1474,18 +1395,10 @@ export interface paths {
|
|
|
1474
1395
|
path?: never;
|
|
1475
1396
|
cookie?: never;
|
|
1476
1397
|
};
|
|
1477
|
-
/**
|
|
1478
|
-
* List user's saved chats
|
|
1479
|
-
* @description Returns a list of chat summaries for the authenticated user in their current org.
|
|
1480
|
-
* Ordered by updatedAt descending (newest first).
|
|
1481
|
-
*/
|
|
1398
|
+
/** List user's saved chats */
|
|
1482
1399
|
get: operations["listChats"];
|
|
1483
1400
|
put?: never;
|
|
1484
|
-
/**
|
|
1485
|
-
* Create/save a new chat
|
|
1486
|
-
* @description Creates a new chat with initial messages.
|
|
1487
|
-
* interactionId must be unique within the org.
|
|
1488
|
-
*/
|
|
1401
|
+
/** Create/save a new chat */
|
|
1489
1402
|
post: operations["createChat"];
|
|
1490
1403
|
delete?: never;
|
|
1491
1404
|
options?: never;
|
|
@@ -1500,11 +1413,7 @@ export interface paths {
|
|
|
1500
1413
|
path?: never;
|
|
1501
1414
|
cookie?: never;
|
|
1502
1415
|
};
|
|
1503
|
-
/**
|
|
1504
|
-
* Look up chat ID by client interaction ID
|
|
1505
|
-
* @description Returns the chat ID associated with a client-generated interaction ID.
|
|
1506
|
-
* Used to resolve optimistically-created chats.
|
|
1507
|
-
*/
|
|
1416
|
+
/** Look up chat ID by client interaction ID */
|
|
1508
1417
|
get: operations["getChatByInteraction"];
|
|
1509
1418
|
put?: never;
|
|
1510
1419
|
post?: never;
|
|
@@ -1521,27 +1430,15 @@ export interface paths {
|
|
|
1521
1430
|
path?: never;
|
|
1522
1431
|
cookie?: never;
|
|
1523
1432
|
};
|
|
1524
|
-
/**
|
|
1525
|
-
* Get chat with messages
|
|
1526
|
-
* @description Returns a chat with all its messages.
|
|
1527
|
-
* Only the chat owner can access their chats.
|
|
1528
|
-
*/
|
|
1433
|
+
/** Get chat with messages */
|
|
1529
1434
|
get: operations["getChat"];
|
|
1530
1435
|
put?: never;
|
|
1531
1436
|
post?: never;
|
|
1532
|
-
/**
|
|
1533
|
-
* Delete a chat
|
|
1534
|
-
* @description Deletes a chat and all its messages (cascade).
|
|
1535
|
-
* Only the chat owner can delete their chats.
|
|
1536
|
-
*/
|
|
1437
|
+
/** Delete a chat */
|
|
1537
1438
|
delete: operations["deleteChat"];
|
|
1538
1439
|
options?: never;
|
|
1539
1440
|
head?: never;
|
|
1540
|
-
/**
|
|
1541
|
-
* Update chat title
|
|
1542
|
-
* @description Updates the title of an existing chat.
|
|
1543
|
-
* Only the chat owner can update their chats.
|
|
1544
|
-
*/
|
|
1441
|
+
/** Update chat title */
|
|
1545
1442
|
patch: operations["updateChat"];
|
|
1546
1443
|
trace?: never;
|
|
1547
1444
|
};
|
|
@@ -1554,11 +1451,7 @@ export interface paths {
|
|
|
1554
1451
|
};
|
|
1555
1452
|
get?: never;
|
|
1556
1453
|
put?: never;
|
|
1557
|
-
/**
|
|
1558
|
-
* Append messages to chat
|
|
1559
|
-
* @description Appends new messages to an existing chat.
|
|
1560
|
-
* Sequence numbers are auto-assigned starting from the current max + 1.
|
|
1561
|
-
*/
|
|
1454
|
+
/** Append messages to chat */
|
|
1562
1455
|
post: operations["appendMessages"];
|
|
1563
1456
|
delete?: never;
|
|
1564
1457
|
options?: never;
|
|
@@ -1576,11 +1469,7 @@ export interface paths {
|
|
|
1576
1469
|
get?: never;
|
|
1577
1470
|
put?: never;
|
|
1578
1471
|
post?: never;
|
|
1579
|
-
/**
|
|
1580
|
-
* Delete a single message
|
|
1581
|
-
* @description Deletes a single message from a chat.
|
|
1582
|
-
* Only the chat owner can delete messages from their chats.
|
|
1583
|
-
*/
|
|
1472
|
+
/** Delete a single message */
|
|
1584
1473
|
delete: operations["deleteMessage"];
|
|
1585
1474
|
options?: never;
|
|
1586
1475
|
head?: never;
|
|
@@ -1596,13 +1485,7 @@ export interface paths {
|
|
|
1596
1485
|
};
|
|
1597
1486
|
get?: never;
|
|
1598
1487
|
put?: never;
|
|
1599
|
-
/**
|
|
1600
|
-
* Generate title for chat
|
|
1601
|
-
* @description Triggers LLM-based title generation for a chat.
|
|
1602
|
-
* Respects title generation invariants:
|
|
1603
|
-
* - INV-TITLE-2: Skips if titleSource === 'manual'
|
|
1604
|
-
* - INV-TITLE-3: Skips if titleGeneratedAt !== null
|
|
1605
|
-
*/
|
|
1488
|
+
/** Generate title for chat */
|
|
1606
1489
|
post: operations["generateChatTitle"];
|
|
1607
1490
|
delete?: never;
|
|
1608
1491
|
options?: never;
|
|
@@ -1619,15 +1502,9 @@ export interface paths {
|
|
|
1619
1502
|
};
|
|
1620
1503
|
get?: never;
|
|
1621
1504
|
put?: never;
|
|
1622
|
-
/**
|
|
1623
|
-
* Pin a chat
|
|
1624
|
-
* @description Pins a chat to keep it at the top of the list.
|
|
1625
|
-
*/
|
|
1505
|
+
/** Pin a chat */
|
|
1626
1506
|
post: operations["pinChat"];
|
|
1627
|
-
/**
|
|
1628
|
-
* Unpin a chat
|
|
1629
|
-
* @description Removes the pinned status from a chat.
|
|
1630
|
-
*/
|
|
1507
|
+
/** Unpin a chat */
|
|
1631
1508
|
delete: operations["unpinChat"];
|
|
1632
1509
|
options?: never;
|
|
1633
1510
|
head?: never;
|
|
@@ -1642,10 +1519,8 @@ export interface paths {
|
|
|
1642
1519
|
cookie?: never;
|
|
1643
1520
|
};
|
|
1644
1521
|
/**
|
|
1645
|
-
*
|
|
1646
|
-
* @description Server-Sent Events
|
|
1647
|
-
* Emits invalidation events when chats are created, updated, or deleted.
|
|
1648
|
-
* Clients should invalidate their cache and refetch on event receipt.
|
|
1522
|
+
* Stream chat update events via SSE
|
|
1523
|
+
* @description Server-Sent Events stream for real-time chat updates. x-streaming: true. Event payloads conform to ChatSseEventSchema.
|
|
1649
1524
|
*/
|
|
1650
1525
|
get: operations["chatEvents"];
|
|
1651
1526
|
put?: never;
|
|
@@ -1663,18 +1538,10 @@ export interface paths {
|
|
|
1663
1538
|
path?: never;
|
|
1664
1539
|
cookie?: never;
|
|
1665
1540
|
};
|
|
1666
|
-
/**
|
|
1667
|
-
* List shares for a chat
|
|
1668
|
-
* @description Returns all active (non-revoked) shares for a chat.
|
|
1669
|
-
* Only the chat owner can list shares.
|
|
1670
|
-
*/
|
|
1541
|
+
/** List all active shares for a chat */
|
|
1671
1542
|
get: operations["listShares"];
|
|
1672
1543
|
put?: never;
|
|
1673
|
-
/**
|
|
1674
|
-
* Create share with snapshot
|
|
1675
|
-
* @description Creates a share for a chat, capturing current message count as the snapshot boundary.
|
|
1676
|
-
* Only the chat owner can create shares.
|
|
1677
|
-
*/
|
|
1544
|
+
/** Create a share for a chat */
|
|
1678
1545
|
post: operations["createShare"];
|
|
1679
1546
|
delete?: never;
|
|
1680
1547
|
options?: never;
|
|
@@ -1692,19 +1559,11 @@ export interface paths {
|
|
|
1692
1559
|
get?: never;
|
|
1693
1560
|
put?: never;
|
|
1694
1561
|
post?: never;
|
|
1695
|
-
/**
|
|
1696
|
-
* Revoke a share
|
|
1697
|
-
* @description Revokes a share by setting revokedAt timestamp (soft delete).
|
|
1698
|
-
* Only the chat owner can revoke shares.
|
|
1699
|
-
*/
|
|
1562
|
+
/** Revoke a share */
|
|
1700
1563
|
delete: operations["revokeShare"];
|
|
1701
1564
|
options?: never;
|
|
1702
1565
|
head?: never;
|
|
1703
|
-
/**
|
|
1704
|
-
* Update share visibility
|
|
1705
|
-
* @description Updates a share's visibility or refreshes the snapshot boundary.
|
|
1706
|
-
* Only the chat owner can update shares.
|
|
1707
|
-
*/
|
|
1566
|
+
/** Update a share's visibility or refresh snapshot */
|
|
1708
1567
|
patch: operations["updateShare"];
|
|
1709
1568
|
trace?: never;
|
|
1710
1569
|
};
|
|
@@ -1715,14 +1574,8 @@ export interface paths {
|
|
|
1715
1574
|
path?: never;
|
|
1716
1575
|
cookie?: never;
|
|
1717
1576
|
};
|
|
1718
|
-
/**
|
|
1719
|
-
|
|
1720
|
-
* @description View a shared chat using its token.
|
|
1721
|
-
* Public shares are accessible to anyone with the token.
|
|
1722
|
-
* Private shares require authentication as the chat owner.
|
|
1723
|
-
* Returns 404 for invalid tokens, revoked shares, or unauthorized access (never leaks reason).
|
|
1724
|
-
*/
|
|
1725
|
-
get: operations["viewSharedChat"];
|
|
1577
|
+
/** View a shared chat by token */
|
|
1578
|
+
get: operations["getSharedView"];
|
|
1726
1579
|
put?: never;
|
|
1727
1580
|
post?: never;
|
|
1728
1581
|
delete?: never;
|
|
@@ -2156,11 +2009,7 @@ export interface paths {
|
|
|
2156
2009
|
};
|
|
2157
2010
|
get?: never;
|
|
2158
2011
|
put?: never;
|
|
2159
|
-
/**
|
|
2160
|
-
* Leave an organization
|
|
2161
|
-
* @description Voluntarily leave a shared organization. Cannot leave personal orgs
|
|
2162
|
-
* or if the user is the sole owner.
|
|
2163
|
-
*/
|
|
2012
|
+
/** Leave an organization */
|
|
2164
2013
|
post: operations["leaveOrg"];
|
|
2165
2014
|
delete?: never;
|
|
2166
2015
|
options?: never;
|
|
@@ -2253,10 +2102,7 @@ export interface paths {
|
|
|
2253
2102
|
};
|
|
2254
2103
|
get?: never;
|
|
2255
2104
|
put?: never;
|
|
2256
|
-
/**
|
|
2257
|
-
* Batch check authorization scopes for current user
|
|
2258
|
-
* @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.
|
|
2259
|
-
*/
|
|
2105
|
+
/** Batch check authorization scopes for current user */
|
|
2260
2106
|
post: operations["checkScopeBatch"];
|
|
2261
2107
|
delete?: never;
|
|
2262
2108
|
options?: never;
|
|
@@ -2390,7 +2236,18 @@ export interface components {
|
|
|
2390
2236
|
memberCount: number;
|
|
2391
2237
|
};
|
|
2392
2238
|
UserOrgsResponse: {
|
|
2393
|
-
orgs:
|
|
2239
|
+
orgs: {
|
|
2240
|
+
userId: string;
|
|
2241
|
+
orgId: string;
|
|
2242
|
+
orgName: string;
|
|
2243
|
+
orgSlug: string;
|
|
2244
|
+
/** @enum {string} */
|
|
2245
|
+
role: "owner" | "admin" | "member" | "auditor";
|
|
2246
|
+
joinedAt: string;
|
|
2247
|
+
isActive: boolean;
|
|
2248
|
+
/** @enum {string} */
|
|
2249
|
+
orgType: "personal" | "shared";
|
|
2250
|
+
}[];
|
|
2394
2251
|
};
|
|
2395
2252
|
UserOrgMembership: {
|
|
2396
2253
|
/** Format: uuid */
|
|
@@ -2406,16 +2263,12 @@ export interface components {
|
|
|
2406
2263
|
orgType: components["schemas"]["OrgType"];
|
|
2407
2264
|
};
|
|
2408
2265
|
SetActiveOrgRequest: {
|
|
2409
|
-
/**
|
|
2410
|
-
* Format: uuid
|
|
2411
|
-
* @description The ID of the organization to switch to
|
|
2412
|
-
*/
|
|
2266
|
+
/** Format: uuid */
|
|
2413
2267
|
orgId: string;
|
|
2414
2268
|
};
|
|
2415
2269
|
SetActiveOrgResponse: {
|
|
2416
2270
|
/** @constant */
|
|
2417
2271
|
success: true;
|
|
2418
|
-
/** Format: uuid */
|
|
2419
2272
|
activeOrgId: string;
|
|
2420
2273
|
};
|
|
2421
2274
|
/** @enum {string} */
|
|
@@ -2513,13 +2366,27 @@ export interface components {
|
|
|
2513
2366
|
createdAt: string;
|
|
2514
2367
|
};
|
|
2515
2368
|
ChatWithMessages: {
|
|
2516
|
-
|
|
2517
|
-
|
|
2369
|
+
id: string;
|
|
2370
|
+
title: string | null;
|
|
2371
|
+
messageCount: number;
|
|
2372
|
+
/** Format: date-time */
|
|
2373
|
+
createdAt: string;
|
|
2374
|
+
/** Format: date-time */
|
|
2375
|
+
updatedAt: string;
|
|
2376
|
+
isShared: boolean;
|
|
2377
|
+
pinnedAt: string | null;
|
|
2378
|
+
titleSource: ("auto" | "manual") | null;
|
|
2379
|
+
titleGeneratedAt: string | null;
|
|
2518
2380
|
};
|
|
2519
2381
|
CreateChatRequest: {
|
|
2520
2382
|
title: string;
|
|
2521
2383
|
interactionId: string;
|
|
2522
|
-
messages:
|
|
2384
|
+
messages: {
|
|
2385
|
+
/** @enum {string} */
|
|
2386
|
+
role: "user" | "assistant";
|
|
2387
|
+
content: string;
|
|
2388
|
+
parts?: unknown[];
|
|
2389
|
+
}[];
|
|
2523
2390
|
};
|
|
2524
2391
|
NewMessage: {
|
|
2525
2392
|
/** @enum {string} */
|
|
@@ -2531,16 +2398,19 @@ export interface components {
|
|
|
2531
2398
|
title: string;
|
|
2532
2399
|
};
|
|
2533
2400
|
AppendMessagesRequest: {
|
|
2534
|
-
messages:
|
|
2401
|
+
messages: {
|
|
2402
|
+
/** @enum {string} */
|
|
2403
|
+
role: "user" | "assistant";
|
|
2404
|
+
content: string;
|
|
2405
|
+
parts?: unknown[];
|
|
2406
|
+
}[];
|
|
2535
2407
|
};
|
|
2536
2408
|
SuccessResponse: {
|
|
2537
2409
|
/** @constant */
|
|
2538
2410
|
success: true;
|
|
2539
2411
|
};
|
|
2540
2412
|
GenerateTitleResponse: {
|
|
2541
|
-
/** @description The chat title (generated or existing) */
|
|
2542
2413
|
title: string;
|
|
2543
|
-
/** @description Whether title was newly generated (false if guards blocked) */
|
|
2544
2414
|
isAutoGenerated: boolean;
|
|
2545
2415
|
};
|
|
2546
2416
|
/** @enum {string} */
|
|
@@ -2562,22 +2432,29 @@ export interface components {
|
|
|
2562
2432
|
revokedAt?: string | null;
|
|
2563
2433
|
};
|
|
2564
2434
|
CreateShareRequest: {
|
|
2565
|
-
|
|
2435
|
+
/** @enum {string} */
|
|
2436
|
+
visibility: "public" | "private";
|
|
2566
2437
|
/** Format: email */
|
|
2567
2438
|
recipientEmail?: string;
|
|
2568
2439
|
};
|
|
2569
2440
|
UpdateShareRequest: {
|
|
2570
|
-
|
|
2441
|
+
/** @enum {string} */
|
|
2442
|
+
visibility?: "public" | "private";
|
|
2571
2443
|
updateSnapshot?: boolean;
|
|
2572
2444
|
};
|
|
2573
2445
|
SharedChatView: {
|
|
2574
|
-
/** Format: uuid */
|
|
2575
|
-
chatId: string;
|
|
2576
2446
|
title: string;
|
|
2577
|
-
messages:
|
|
2447
|
+
messages: {
|
|
2448
|
+
/** @enum {string} */
|
|
2449
|
+
role: "user" | "assistant";
|
|
2450
|
+
content: string;
|
|
2451
|
+
parts?: unknown[];
|
|
2452
|
+
}[];
|
|
2578
2453
|
/** Format: date-time */
|
|
2579
2454
|
sharedAt: string;
|
|
2580
|
-
|
|
2455
|
+
sharedByName: string;
|
|
2456
|
+
/** @enum {string} */
|
|
2457
|
+
visibility: "private" | "public";
|
|
2581
2458
|
};
|
|
2582
2459
|
OrgBudgetConfig: {
|
|
2583
2460
|
enabled: boolean;
|
|
@@ -3000,19 +2877,16 @@ export interface components {
|
|
|
3000
2877
|
name: string;
|
|
3001
2878
|
};
|
|
3002
2879
|
WorkspaceOverview: {
|
|
3003
|
-
/** Format: uuid */
|
|
3004
2880
|
id: string;
|
|
3005
2881
|
name: string;
|
|
3006
|
-
|
|
2882
|
+
/** @enum {string} */
|
|
2883
|
+
type: "personal" | "shared";
|
|
3007
2884
|
logoUrl: string | null;
|
|
3008
2885
|
owner: {
|
|
3009
|
-
/** Format: uuid */
|
|
3010
2886
|
id: string;
|
|
3011
2887
|
name: string;
|
|
3012
|
-
/** Format: email */
|
|
3013
2888
|
email: string;
|
|
3014
2889
|
};
|
|
3015
|
-
/** Format: date-time */
|
|
3016
2890
|
createdAt: string;
|
|
3017
2891
|
memberCount: number;
|
|
3018
2892
|
claimable: boolean;
|
|
@@ -3028,10 +2902,15 @@ export interface components {
|
|
|
3028
2902
|
joinedAt: string;
|
|
3029
2903
|
};
|
|
3030
2904
|
WorkspaceMembersResponse: {
|
|
3031
|
-
items:
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
2905
|
+
items: {
|
|
2906
|
+
id: string;
|
|
2907
|
+
name: string;
|
|
2908
|
+
email: string;
|
|
2909
|
+
/** @enum {string} */
|
|
2910
|
+
role: "owner" | "admin" | "member" | "auditor";
|
|
2911
|
+
joinedAt: string;
|
|
2912
|
+
}[];
|
|
2913
|
+
nextCursor: string | null;
|
|
3035
2914
|
hasMore: boolean;
|
|
3036
2915
|
};
|
|
3037
2916
|
AuthMethodConfig: {
|
|
@@ -3039,10 +2918,82 @@ export interface components {
|
|
|
3039
2918
|
provider?: string;
|
|
3040
2919
|
};
|
|
3041
2920
|
WorkspaceAuthConfig: {
|
|
3042
|
-
emailOtp:
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
2921
|
+
emailOtp: {
|
|
2922
|
+
enabled: boolean;
|
|
2923
|
+
provider?: string;
|
|
2924
|
+
};
|
|
2925
|
+
googleSso: {
|
|
2926
|
+
enabled: boolean;
|
|
2927
|
+
provider?: string;
|
|
2928
|
+
};
|
|
2929
|
+
microsoftSso: {
|
|
2930
|
+
enabled: boolean;
|
|
2931
|
+
provider?: string;
|
|
2932
|
+
};
|
|
2933
|
+
okta: {
|
|
2934
|
+
enabled: boolean;
|
|
2935
|
+
provider?: string;
|
|
2936
|
+
};
|
|
2937
|
+
policy: {
|
|
2938
|
+
requireSSO: boolean;
|
|
2939
|
+
allowedProviders: string[];
|
|
2940
|
+
};
|
|
2941
|
+
ssoSetup?: {
|
|
2942
|
+
redirectUri: string;
|
|
2943
|
+
requiredScopes: string[];
|
|
2944
|
+
isOidcConfigured: boolean;
|
|
2945
|
+
oidcDiscoveryUrl: string | null;
|
|
2946
|
+
hasClientId: boolean;
|
|
2947
|
+
hasClientSecret: boolean;
|
|
2948
|
+
/** @enum {string} */
|
|
2949
|
+
providerStatus: "NOT_CONFIGURED" | "CONFIG_SAVED" | "CONFIG_VALID" | "TEST_SUCCESS" | "ENABLED";
|
|
2950
|
+
/** @enum {string} */
|
|
2951
|
+
currentStep: "configure" | "test" | "enable" | "enforce";
|
|
2952
|
+
stepCompleted: boolean;
|
|
2953
|
+
activeProvider: string | null;
|
|
2954
|
+
oidcValidation?: {
|
|
2955
|
+
valid: boolean;
|
|
2956
|
+
issuer?: string;
|
|
2957
|
+
authorizationEndpoint?: string;
|
|
2958
|
+
error?: string;
|
|
2959
|
+
/** @enum {string} */
|
|
2960
|
+
errorCode?: "UNREACHABLE" | "INVALID_DOCUMENT" | "MISSING_FIELDS" | "SSRF_BLOCKED";
|
|
2961
|
+
};
|
|
2962
|
+
credentialsSavedAt?: string;
|
|
2963
|
+
lastTestSuccessAt?: string;
|
|
2964
|
+
lastTestSuccessProvider?: string;
|
|
2965
|
+
};
|
|
2966
|
+
ssoReadiness?: {
|
|
2967
|
+
ready: boolean;
|
|
2968
|
+
checks: {
|
|
2969
|
+
code: string;
|
|
2970
|
+
label: string;
|
|
2971
|
+
passed: boolean;
|
|
2972
|
+
message: string;
|
|
2973
|
+
}[];
|
|
2974
|
+
};
|
|
2975
|
+
ssoEnforcement?: {
|
|
2976
|
+
enforced: boolean;
|
|
2977
|
+
enforcedDomains: string[];
|
|
2978
|
+
enforcedSince: string | null;
|
|
2979
|
+
};
|
|
2980
|
+
/** @enum {string} */
|
|
2981
|
+
workspaceSsoState?: "SSO_DISABLED" | "SSO_ENABLED" | "SSO_ENFORCED";
|
|
2982
|
+
ownerIdentities?: {
|
|
2983
|
+
userId: string;
|
|
2984
|
+
name: string;
|
|
2985
|
+
email: string;
|
|
2986
|
+
hasSsoIdentity: boolean;
|
|
2987
|
+
linkedProvider: string | null;
|
|
2988
|
+
lastSsoLoginAt: string | null;
|
|
2989
|
+
}[];
|
|
2990
|
+
providerSuggestion?: {
|
|
2991
|
+
suggestedProvider: ("google" | "microsoft") | null;
|
|
2992
|
+
/** @enum {string} */
|
|
2993
|
+
confidence: "high" | "low";
|
|
2994
|
+
reason: string;
|
|
2995
|
+
detectedDomain?: string;
|
|
2996
|
+
};
|
|
3046
2997
|
};
|
|
3047
2998
|
WorkspaceAuditEvent: {
|
|
3048
2999
|
/** Format: uuid */
|
|
@@ -3060,21 +3011,15 @@ export interface components {
|
|
|
3060
3011
|
summary: string;
|
|
3061
3012
|
};
|
|
3062
3013
|
UpdateAuthPolicyRequest: {
|
|
3063
|
-
/** @description Whether SSO is required for all members */
|
|
3064
3014
|
requireSSO?: boolean;
|
|
3065
|
-
/** @description List of allowed auth providers */
|
|
3066
3015
|
allowedProviders?: string[];
|
|
3067
|
-
/** @description OIDC discovery URL for SSO configuration */
|
|
3068
3016
|
oidcDiscoveryUrl?: string | null;
|
|
3069
|
-
/** @description OIDC client ID credential */
|
|
3070
3017
|
oidcClientId?: string | null;
|
|
3071
|
-
/** @description OIDC client secret credential */
|
|
3072
3018
|
oidcClientSecret?: string | null;
|
|
3073
3019
|
};
|
|
3074
3020
|
OrgAuthPolicy: {
|
|
3075
3021
|
requireSSO: boolean;
|
|
3076
3022
|
allowedProviders: string[];
|
|
3077
|
-
/** @description True when the requesting admin's own SSO session was revoked by this operation */
|
|
3078
3023
|
selfRevoked?: boolean;
|
|
3079
3024
|
};
|
|
3080
3025
|
CreateInviteRequest: {
|
|
@@ -3123,24 +3068,17 @@ export interface components {
|
|
|
3123
3068
|
};
|
|
3124
3069
|
RemoveMemberResponse: {
|
|
3125
3070
|
success: boolean;
|
|
3126
|
-
/** Format: uuid */
|
|
3127
3071
|
memberId: string;
|
|
3128
|
-
/** Format: email */
|
|
3129
3072
|
memberEmail: string;
|
|
3130
3073
|
message: string;
|
|
3131
3074
|
};
|
|
3132
3075
|
ChangeMemberRoleRequest: {
|
|
3133
|
-
/**
|
|
3134
|
-
* @description New role for the member
|
|
3135
|
-
* @enum {string}
|
|
3136
|
-
*/
|
|
3076
|
+
/** @enum {string} */
|
|
3137
3077
|
newRole: "admin" | "member";
|
|
3138
3078
|
};
|
|
3139
3079
|
ChangeMemberRoleResponse: {
|
|
3140
3080
|
success: boolean;
|
|
3141
|
-
/** Format: uuid */
|
|
3142
3081
|
memberId: string;
|
|
3143
|
-
/** Format: email */
|
|
3144
3082
|
memberEmail: string;
|
|
3145
3083
|
previousRole: string;
|
|
3146
3084
|
newRole: string;
|
|
@@ -3379,6 +3317,244 @@ export interface components {
|
|
|
3379
3317
|
/** @constant */
|
|
3380
3318
|
ok: true;
|
|
3381
3319
|
};
|
|
3320
|
+
ChatListResponse: {
|
|
3321
|
+
chats: {
|
|
3322
|
+
id: string;
|
|
3323
|
+
title: string | null;
|
|
3324
|
+
messageCount: number;
|
|
3325
|
+
/** Format: date-time */
|
|
3326
|
+
createdAt: string;
|
|
3327
|
+
/** Format: date-time */
|
|
3328
|
+
updatedAt: string;
|
|
3329
|
+
isShared: boolean;
|
|
3330
|
+
pinnedAt: string | null;
|
|
3331
|
+
titleSource: ("auto" | "manual") | null;
|
|
3332
|
+
titleGeneratedAt: string | null;
|
|
3333
|
+
}[];
|
|
3334
|
+
};
|
|
3335
|
+
CreateChatResponse: {
|
|
3336
|
+
chat: {
|
|
3337
|
+
id: string;
|
|
3338
|
+
title: string | null;
|
|
3339
|
+
messageCount: number;
|
|
3340
|
+
/** Format: date-time */
|
|
3341
|
+
createdAt: string;
|
|
3342
|
+
/** Format: date-time */
|
|
3343
|
+
updatedAt: string;
|
|
3344
|
+
isShared: boolean;
|
|
3345
|
+
pinnedAt: string | null;
|
|
3346
|
+
titleSource: ("auto" | "manual") | null;
|
|
3347
|
+
titleGeneratedAt: string | null;
|
|
3348
|
+
};
|
|
3349
|
+
};
|
|
3350
|
+
ChatByInteractionResponse: {
|
|
3351
|
+
chatId: string;
|
|
3352
|
+
};
|
|
3353
|
+
CreateShareResponse: {
|
|
3354
|
+
share: {
|
|
3355
|
+
id: string;
|
|
3356
|
+
chatId: string;
|
|
3357
|
+
token: string;
|
|
3358
|
+
/** @enum {string} */
|
|
3359
|
+
visibility: "private" | "public";
|
|
3360
|
+
shareUrl: string;
|
|
3361
|
+
messageCountAtShare: number;
|
|
3362
|
+
titleAtShare: string;
|
|
3363
|
+
/** Format: date-time */
|
|
3364
|
+
createdAt: string;
|
|
3365
|
+
createdByName: string;
|
|
3366
|
+
isRevoked: boolean;
|
|
3367
|
+
};
|
|
3368
|
+
shareUrl: string;
|
|
3369
|
+
};
|
|
3370
|
+
ListSharesResponse: {
|
|
3371
|
+
shares: {
|
|
3372
|
+
id: string;
|
|
3373
|
+
chatId: string;
|
|
3374
|
+
token: string;
|
|
3375
|
+
/** @enum {string} */
|
|
3376
|
+
visibility: "private" | "public";
|
|
3377
|
+
shareUrl: string;
|
|
3378
|
+
messageCountAtShare: number;
|
|
3379
|
+
titleAtShare: string;
|
|
3380
|
+
/** Format: date-time */
|
|
3381
|
+
createdAt: string;
|
|
3382
|
+
createdByName: string;
|
|
3383
|
+
isRevoked: boolean;
|
|
3384
|
+
}[];
|
|
3385
|
+
};
|
|
3386
|
+
UpdateShareResponse: {
|
|
3387
|
+
share: {
|
|
3388
|
+
id: string;
|
|
3389
|
+
chatId: string;
|
|
3390
|
+
token: string;
|
|
3391
|
+
/** @enum {string} */
|
|
3392
|
+
visibility: "private" | "public";
|
|
3393
|
+
shareUrl: string;
|
|
3394
|
+
messageCountAtShare: number;
|
|
3395
|
+
titleAtShare: string;
|
|
3396
|
+
/** Format: date-time */
|
|
3397
|
+
createdAt: string;
|
|
3398
|
+
createdByName: string;
|
|
3399
|
+
isRevoked: boolean;
|
|
3400
|
+
};
|
|
3401
|
+
};
|
|
3402
|
+
ChatSuccessResponse: {
|
|
3403
|
+
/** @constant */
|
|
3404
|
+
success: true;
|
|
3405
|
+
};
|
|
3406
|
+
ChatSseEvent: {
|
|
3407
|
+
/** @constant */
|
|
3408
|
+
v: 1;
|
|
3409
|
+
/** Format: date-time */
|
|
3410
|
+
timestamp: string;
|
|
3411
|
+
eventId?: string;
|
|
3412
|
+
/** @constant */
|
|
3413
|
+
type: "chat.created";
|
|
3414
|
+
data: {
|
|
3415
|
+
chatId: string;
|
|
3416
|
+
interactionId?: string;
|
|
3417
|
+
title: string;
|
|
3418
|
+
/** @enum {string} */
|
|
3419
|
+
titleSource: "auto" | "manual";
|
|
3420
|
+
pinnedAt: string | null;
|
|
3421
|
+
messageCount: number;
|
|
3422
|
+
/** Format: date-time */
|
|
3423
|
+
createdAt: string;
|
|
3424
|
+
/** Format: date-time */
|
|
3425
|
+
updatedAt: string;
|
|
3426
|
+
isShared: boolean;
|
|
3427
|
+
};
|
|
3428
|
+
} | {
|
|
3429
|
+
/** @constant */
|
|
3430
|
+
v: 1;
|
|
3431
|
+
/** Format: date-time */
|
|
3432
|
+
timestamp: string;
|
|
3433
|
+
eventId?: string;
|
|
3434
|
+
/** @constant */
|
|
3435
|
+
type: "chat.updated";
|
|
3436
|
+
data: {
|
|
3437
|
+
chatId: string;
|
|
3438
|
+
title: string;
|
|
3439
|
+
titleSource: ("auto" | "manual") | null;
|
|
3440
|
+
titleGeneratedAt: string | null;
|
|
3441
|
+
pinnedAt: string | null;
|
|
3442
|
+
messageCount: number;
|
|
3443
|
+
/** Format: date-time */
|
|
3444
|
+
createdAt: string;
|
|
3445
|
+
/** Format: date-time */
|
|
3446
|
+
updatedAt: string;
|
|
3447
|
+
isShared: boolean;
|
|
3448
|
+
};
|
|
3449
|
+
changed: ("title" | "titleSource" | "pinnedAt")[];
|
|
3450
|
+
} | {
|
|
3451
|
+
/** @constant */
|
|
3452
|
+
v: 1;
|
|
3453
|
+
/** Format: date-time */
|
|
3454
|
+
timestamp: string;
|
|
3455
|
+
eventId?: string;
|
|
3456
|
+
/** @constant */
|
|
3457
|
+
type: "chat.deleted";
|
|
3458
|
+
data: {
|
|
3459
|
+
chatId: string;
|
|
3460
|
+
};
|
|
3461
|
+
} | {
|
|
3462
|
+
/** @constant */
|
|
3463
|
+
v: 1;
|
|
3464
|
+
/** Format: date-time */
|
|
3465
|
+
timestamp: string;
|
|
3466
|
+
eventId?: string;
|
|
3467
|
+
/** @constant */
|
|
3468
|
+
type: "invalidate.chat";
|
|
3469
|
+
chatId: string;
|
|
3470
|
+
/** @enum {string} */
|
|
3471
|
+
reason: "external-mutation" | "bulk-operation" | "sync-required";
|
|
3472
|
+
} | {
|
|
3473
|
+
/** @constant */
|
|
3474
|
+
v: 1;
|
|
3475
|
+
/** Format: date-time */
|
|
3476
|
+
timestamp: string;
|
|
3477
|
+
eventId?: string;
|
|
3478
|
+
/** @constant */
|
|
3479
|
+
type: "invalidate.chat-list";
|
|
3480
|
+
/** @enum {string} */
|
|
3481
|
+
reason: "external-mutation" | "bulk-operation" | "sync-required";
|
|
3482
|
+
};
|
|
3483
|
+
AiChatRequest: {
|
|
3484
|
+
messages: unknown[];
|
|
3485
|
+
id?: string;
|
|
3486
|
+
runtimeProfile?: string;
|
|
3487
|
+
};
|
|
3488
|
+
WorkspaceNameRequest: {
|
|
3489
|
+
name: string;
|
|
3490
|
+
};
|
|
3491
|
+
WorkspaceAuditResponse: {
|
|
3492
|
+
id: string;
|
|
3493
|
+
timestamp: string;
|
|
3494
|
+
actor: {
|
|
3495
|
+
id: string;
|
|
3496
|
+
name: string;
|
|
3497
|
+
/** @enum {string} */
|
|
3498
|
+
type: "user" | "system";
|
|
3499
|
+
};
|
|
3500
|
+
action: string;
|
|
3501
|
+
summary: string;
|
|
3502
|
+
}[];
|
|
3503
|
+
ValidateOidcRequest: {
|
|
3504
|
+
discoveryUrl: string;
|
|
3505
|
+
};
|
|
3506
|
+
WorkspaceResyncSlackLogoResponse: {
|
|
3507
|
+
/** @constant */
|
|
3508
|
+
success: true;
|
|
3509
|
+
logoUrl: string | null;
|
|
3510
|
+
};
|
|
3511
|
+
WorkspaceResolvePathResponse: {
|
|
3512
|
+
layers: ({
|
|
3513
|
+
/** @constant */
|
|
3514
|
+
type: "dept";
|
|
3515
|
+
entity: {
|
|
3516
|
+
id: string;
|
|
3517
|
+
name: string;
|
|
3518
|
+
slug: string;
|
|
3519
|
+
memberCount: number;
|
|
3520
|
+
};
|
|
3521
|
+
} | {
|
|
3522
|
+
/** @constant */
|
|
3523
|
+
type: "team";
|
|
3524
|
+
entity: {
|
|
3525
|
+
id: string;
|
|
3526
|
+
name: string;
|
|
3527
|
+
slug: string;
|
|
3528
|
+
memberCount: number;
|
|
3529
|
+
};
|
|
3530
|
+
} | {
|
|
3531
|
+
/** @constant */
|
|
3532
|
+
type: "members";
|
|
3533
|
+
/** @enum {string} */
|
|
3534
|
+
scope: "org" | "dept" | "team";
|
|
3535
|
+
})[];
|
|
3536
|
+
};
|
|
3537
|
+
ResolvePathRequest: {
|
|
3538
|
+
path: string[];
|
|
3539
|
+
};
|
|
3540
|
+
TestSsoInitiation: {
|
|
3541
|
+
authorizationUrl: string;
|
|
3542
|
+
attemptId: string;
|
|
3543
|
+
};
|
|
3544
|
+
TestSsoResult: {
|
|
3545
|
+
/** @enum {string} */
|
|
3546
|
+
status: "pending" | "success" | "failed" | "expired";
|
|
3547
|
+
claims?: {
|
|
3548
|
+
sub: string;
|
|
3549
|
+
email?: string;
|
|
3550
|
+
name?: string;
|
|
3551
|
+
issuer: string;
|
|
3552
|
+
};
|
|
3553
|
+
identityLinked?: boolean;
|
|
3554
|
+
error?: string;
|
|
3555
|
+
/** @enum {string} */
|
|
3556
|
+
errorCode?: "IDENTITY_CONFLICT" | "DOMAIN_MISMATCH" | "ISSUER_MISMATCH" | "CALLBACK_ERROR";
|
|
3557
|
+
};
|
|
3382
3558
|
};
|
|
3383
3559
|
responses: never;
|
|
3384
3560
|
parameters: never;
|
|
@@ -3641,15 +3817,6 @@ export interface operations {
|
|
|
3641
3817
|
"application/json": components["schemas"]["UserOrgsResponse"];
|
|
3642
3818
|
};
|
|
3643
3819
|
};
|
|
3644
|
-
/** @description Not authenticated */
|
|
3645
|
-
401: {
|
|
3646
|
-
headers: {
|
|
3647
|
-
[name: string]: unknown;
|
|
3648
|
-
};
|
|
3649
|
-
content: {
|
|
3650
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
3651
|
-
};
|
|
3652
|
-
};
|
|
3653
3820
|
};
|
|
3654
3821
|
};
|
|
3655
3822
|
setActiveOrg: {
|
|
@@ -3674,33 +3841,6 @@ export interface operations {
|
|
|
3674
3841
|
"application/json": components["schemas"]["SetActiveOrgResponse"];
|
|
3675
3842
|
};
|
|
3676
3843
|
};
|
|
3677
|
-
/** @description Invalid orgId format */
|
|
3678
|
-
400: {
|
|
3679
|
-
headers: {
|
|
3680
|
-
[name: string]: unknown;
|
|
3681
|
-
};
|
|
3682
|
-
content: {
|
|
3683
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
3684
|
-
};
|
|
3685
|
-
};
|
|
3686
|
-
/** @description Not authenticated */
|
|
3687
|
-
401: {
|
|
3688
|
-
headers: {
|
|
3689
|
-
[name: string]: unknown;
|
|
3690
|
-
};
|
|
3691
|
-
content: {
|
|
3692
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
3693
|
-
};
|
|
3694
|
-
};
|
|
3695
|
-
/** @description User is not a member of the target organization */
|
|
3696
|
-
403: {
|
|
3697
|
-
headers: {
|
|
3698
|
-
[name: string]: unknown;
|
|
3699
|
-
};
|
|
3700
|
-
content: {
|
|
3701
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
3702
|
-
};
|
|
3703
|
-
};
|
|
3704
3844
|
};
|
|
3705
3845
|
};
|
|
3706
3846
|
getDismissedBanners: {
|
|
@@ -3871,20 +4011,16 @@ export interface operations {
|
|
|
3871
4011
|
};
|
|
3872
4012
|
requestBody: {
|
|
3873
4013
|
content: {
|
|
3874
|
-
"application/json": components["schemas"]["
|
|
4014
|
+
"application/json": components["schemas"]["AiChatRequest"];
|
|
3875
4015
|
};
|
|
3876
4016
|
};
|
|
3877
4017
|
responses: {
|
|
3878
|
-
/** @description
|
|
4018
|
+
/** @description AI chat stream (text/event-stream). Uses x-vercel-ai-ui-message-stream: v1. */
|
|
3879
4019
|
200: {
|
|
3880
4020
|
headers: {
|
|
3881
|
-
/** @description AI SDK stream protocol version */
|
|
3882
|
-
"x-vercel-ai-ui-message-stream"?: "v1";
|
|
3883
4021
|
[name: string]: unknown;
|
|
3884
4022
|
};
|
|
3885
|
-
content
|
|
3886
|
-
"text/event-stream": string;
|
|
3887
|
-
};
|
|
4023
|
+
content?: never;
|
|
3888
4024
|
};
|
|
3889
4025
|
};
|
|
3890
4026
|
};
|
|
@@ -5023,7 +5159,7 @@ export interface operations {
|
|
|
5023
5159
|
};
|
|
5024
5160
|
requestBody?: never;
|
|
5025
5161
|
responses: {
|
|
5026
|
-
/** @description
|
|
5162
|
+
/** @description Workspace access status */
|
|
5027
5163
|
200: {
|
|
5028
5164
|
headers: {
|
|
5029
5165
|
[name: string]: unknown;
|
|
@@ -5032,15 +5168,6 @@ export interface operations {
|
|
|
5032
5168
|
"application/json": components["schemas"]["WorkspaceAccessResponse"];
|
|
5033
5169
|
};
|
|
5034
5170
|
};
|
|
5035
|
-
/** @description Not authenticated */
|
|
5036
|
-
401: {
|
|
5037
|
-
headers: {
|
|
5038
|
-
[name: string]: unknown;
|
|
5039
|
-
};
|
|
5040
|
-
content: {
|
|
5041
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
5042
|
-
};
|
|
5043
|
-
};
|
|
5044
5171
|
};
|
|
5045
5172
|
};
|
|
5046
5173
|
getWorkspaceOverview: {
|
|
@@ -5061,24 +5188,6 @@ export interface operations {
|
|
|
5061
5188
|
"application/json": components["schemas"]["WorkspaceOverview"];
|
|
5062
5189
|
};
|
|
5063
5190
|
};
|
|
5064
|
-
/** @description No org.view_workspace capability */
|
|
5065
|
-
403: {
|
|
5066
|
-
headers: {
|
|
5067
|
-
[name: string]: unknown;
|
|
5068
|
-
};
|
|
5069
|
-
content: {
|
|
5070
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
5071
|
-
};
|
|
5072
|
-
};
|
|
5073
|
-
/** @description Workspace not found */
|
|
5074
|
-
404: {
|
|
5075
|
-
headers: {
|
|
5076
|
-
[name: string]: unknown;
|
|
5077
|
-
};
|
|
5078
|
-
content: {
|
|
5079
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
5080
|
-
};
|
|
5081
|
-
};
|
|
5082
5191
|
};
|
|
5083
5192
|
};
|
|
5084
5193
|
renameWorkspace: {
|
|
@@ -5090,7 +5199,7 @@ export interface operations {
|
|
|
5090
5199
|
};
|
|
5091
5200
|
requestBody: {
|
|
5092
5201
|
content: {
|
|
5093
|
-
"application/json": components["schemas"]["
|
|
5202
|
+
"application/json": components["schemas"]["WorkspaceNameRequest"];
|
|
5094
5203
|
};
|
|
5095
5204
|
};
|
|
5096
5205
|
responses: {
|
|
@@ -5103,41 +5212,12 @@ export interface operations {
|
|
|
5103
5212
|
"application/json": components["schemas"]["WorkspaceOverview"];
|
|
5104
5213
|
};
|
|
5105
5214
|
};
|
|
5106
|
-
/** @description Invalid name */
|
|
5107
|
-
400: {
|
|
5108
|
-
headers: {
|
|
5109
|
-
[name: string]: unknown;
|
|
5110
|
-
};
|
|
5111
|
-
content: {
|
|
5112
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
5113
|
-
};
|
|
5114
|
-
};
|
|
5115
|
-
/** @description Missing org.manage_users capability */
|
|
5116
|
-
403: {
|
|
5117
|
-
headers: {
|
|
5118
|
-
[name: string]: unknown;
|
|
5119
|
-
};
|
|
5120
|
-
content: {
|
|
5121
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
5122
|
-
};
|
|
5123
|
-
};
|
|
5124
|
-
/** @description Workspace not found */
|
|
5125
|
-
404: {
|
|
5126
|
-
headers: {
|
|
5127
|
-
[name: string]: unknown;
|
|
5128
|
-
};
|
|
5129
|
-
content: {
|
|
5130
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
5131
|
-
};
|
|
5132
|
-
};
|
|
5133
5215
|
};
|
|
5134
5216
|
};
|
|
5135
5217
|
getWorkspaceMembers: {
|
|
5136
5218
|
parameters: {
|
|
5137
5219
|
query?: {
|
|
5138
|
-
/** @description Cursor for pagination */
|
|
5139
5220
|
cursor?: string;
|
|
5140
|
-
/** @description Max results per page (default 100, max 200) */
|
|
5141
5221
|
limit?: number;
|
|
5142
5222
|
};
|
|
5143
5223
|
header?: never;
|
|
@@ -5155,15 +5235,6 @@ export interface operations {
|
|
|
5155
5235
|
"application/json": components["schemas"]["WorkspaceMembersResponse"];
|
|
5156
5236
|
};
|
|
5157
5237
|
};
|
|
5158
|
-
/** @description No org.view_workspace capability */
|
|
5159
|
-
403: {
|
|
5160
|
-
headers: {
|
|
5161
|
-
[name: string]: unknown;
|
|
5162
|
-
};
|
|
5163
|
-
content: {
|
|
5164
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
5165
|
-
};
|
|
5166
|
-
};
|
|
5167
5238
|
};
|
|
5168
5239
|
};
|
|
5169
5240
|
getWorkspaceAuth: {
|
|
@@ -5175,7 +5246,7 @@ export interface operations {
|
|
|
5175
5246
|
};
|
|
5176
5247
|
requestBody?: never;
|
|
5177
5248
|
responses: {
|
|
5178
|
-
/** @description Workspace
|
|
5249
|
+
/** @description Workspace authentication configuration */
|
|
5179
5250
|
200: {
|
|
5180
5251
|
headers: {
|
|
5181
5252
|
[name: string]: unknown;
|
|
@@ -5184,23 +5255,12 @@ export interface operations {
|
|
|
5184
5255
|
"application/json": components["schemas"]["WorkspaceAuthConfig"];
|
|
5185
5256
|
};
|
|
5186
5257
|
};
|
|
5187
|
-
/** @description No org.view_workspace capability */
|
|
5188
|
-
403: {
|
|
5189
|
-
headers: {
|
|
5190
|
-
[name: string]: unknown;
|
|
5191
|
-
};
|
|
5192
|
-
content: {
|
|
5193
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
5194
|
-
};
|
|
5195
|
-
};
|
|
5196
5258
|
};
|
|
5197
5259
|
};
|
|
5198
5260
|
getWorkspaceAudit: {
|
|
5199
5261
|
parameters: {
|
|
5200
5262
|
query?: {
|
|
5201
|
-
/** @description Number of events to return (default 50, max 100) */
|
|
5202
5263
|
limit?: number;
|
|
5203
|
-
/** @description Pagination offset (default 0, max 1000) */
|
|
5204
5264
|
offset?: number;
|
|
5205
5265
|
};
|
|
5206
5266
|
header?: never;
|
|
@@ -5209,31 +5269,13 @@ export interface operations {
|
|
|
5209
5269
|
};
|
|
5210
5270
|
requestBody?: never;
|
|
5211
5271
|
responses: {
|
|
5212
|
-
/** @description
|
|
5272
|
+
/** @description Workspace audit events */
|
|
5213
5273
|
200: {
|
|
5214
5274
|
headers: {
|
|
5215
5275
|
[name: string]: unknown;
|
|
5216
5276
|
};
|
|
5217
5277
|
content: {
|
|
5218
|
-
"application/json": components["schemas"]["
|
|
5219
|
-
};
|
|
5220
|
-
};
|
|
5221
|
-
/** @description Offset exceeds maximum pagination depth */
|
|
5222
|
-
400: {
|
|
5223
|
-
headers: {
|
|
5224
|
-
[name: string]: unknown;
|
|
5225
|
-
};
|
|
5226
|
-
content: {
|
|
5227
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
5228
|
-
};
|
|
5229
|
-
};
|
|
5230
|
-
/** @description No org.view_workspace capability */
|
|
5231
|
-
403: {
|
|
5232
|
-
headers: {
|
|
5233
|
-
[name: string]: unknown;
|
|
5234
|
-
};
|
|
5235
|
-
content: {
|
|
5236
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
5278
|
+
"application/json": components["schemas"]["WorkspaceAuditResponse"];
|
|
5237
5279
|
};
|
|
5238
5280
|
};
|
|
5239
5281
|
};
|
|
@@ -5260,24 +5302,6 @@ export interface operations {
|
|
|
5260
5302
|
"application/json": components["schemas"]["OrgAuthPolicy"];
|
|
5261
5303
|
};
|
|
5262
5304
|
};
|
|
5263
|
-
/** @description Actor lacks org.manage_auth capability */
|
|
5264
|
-
403: {
|
|
5265
|
-
headers: {
|
|
5266
|
-
[name: string]: unknown;
|
|
5267
|
-
};
|
|
5268
|
-
content: {
|
|
5269
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
5270
|
-
};
|
|
5271
|
-
};
|
|
5272
|
-
/** @description Would lock out all authority principals */
|
|
5273
|
-
409: {
|
|
5274
|
-
headers: {
|
|
5275
|
-
[name: string]: unknown;
|
|
5276
|
-
};
|
|
5277
|
-
content: {
|
|
5278
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
5279
|
-
};
|
|
5280
|
-
};
|
|
5281
5305
|
};
|
|
5282
5306
|
};
|
|
5283
5307
|
validateOidcDiscovery: {
|
|
@@ -5289,14 +5313,11 @@ export interface operations {
|
|
|
5289
5313
|
};
|
|
5290
5314
|
requestBody: {
|
|
5291
5315
|
content: {
|
|
5292
|
-
"application/json":
|
|
5293
|
-
/** @description The OIDC discovery URL to validate */
|
|
5294
|
-
discoveryUrl: string;
|
|
5295
|
-
};
|
|
5316
|
+
"application/json": components["schemas"]["ValidateOidcRequest"];
|
|
5296
5317
|
};
|
|
5297
5318
|
};
|
|
5298
5319
|
responses: {
|
|
5299
|
-
/** @description
|
|
5320
|
+
/** @description OIDC validation result */
|
|
5300
5321
|
200: {
|
|
5301
5322
|
headers: {
|
|
5302
5323
|
[name: string]: unknown;
|
|
@@ -5305,24 +5326,6 @@ export interface operations {
|
|
|
5305
5326
|
"application/json": components["schemas"]["OidcValidationResult"];
|
|
5306
5327
|
};
|
|
5307
5328
|
};
|
|
5308
|
-
/** @description Invalid request body */
|
|
5309
|
-
400: {
|
|
5310
|
-
headers: {
|
|
5311
|
-
[name: string]: unknown;
|
|
5312
|
-
};
|
|
5313
|
-
content: {
|
|
5314
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
5315
|
-
};
|
|
5316
|
-
};
|
|
5317
|
-
/** @description Missing org.manage_auth capability */
|
|
5318
|
-
403: {
|
|
5319
|
-
headers: {
|
|
5320
|
-
[name: string]: unknown;
|
|
5321
|
-
};
|
|
5322
|
-
content: {
|
|
5323
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
5324
|
-
};
|
|
5325
|
-
};
|
|
5326
5329
|
};
|
|
5327
5330
|
};
|
|
5328
5331
|
initiateTestSso: {
|
|
@@ -5334,45 +5337,13 @@ export interface operations {
|
|
|
5334
5337
|
};
|
|
5335
5338
|
requestBody?: never;
|
|
5336
5339
|
responses: {
|
|
5337
|
-
/** @description Test SSO initiation with authorization URL */
|
|
5340
|
+
/** @description Test SSO initiation result with authorization URL */
|
|
5338
5341
|
200: {
|
|
5339
5342
|
headers: {
|
|
5340
5343
|
[name: string]: unknown;
|
|
5341
5344
|
};
|
|
5342
5345
|
content: {
|
|
5343
|
-
"application/json":
|
|
5344
|
-
/** @description IdP authorization URL to redirect user to */
|
|
5345
|
-
authorizationUrl: string;
|
|
5346
|
-
/** @description ID of the created test attempt for polling */
|
|
5347
|
-
attemptId: string;
|
|
5348
|
-
};
|
|
5349
|
-
};
|
|
5350
|
-
};
|
|
5351
|
-
/** @description No SSO provider configured or OIDC credentials missing */
|
|
5352
|
-
400: {
|
|
5353
|
-
headers: {
|
|
5354
|
-
[name: string]: unknown;
|
|
5355
|
-
};
|
|
5356
|
-
content: {
|
|
5357
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
5358
|
-
};
|
|
5359
|
-
};
|
|
5360
|
-
/** @description Missing org.manage_auth capability */
|
|
5361
|
-
403: {
|
|
5362
|
-
headers: {
|
|
5363
|
-
[name: string]: unknown;
|
|
5364
|
-
};
|
|
5365
|
-
content: {
|
|
5366
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
5367
|
-
};
|
|
5368
|
-
};
|
|
5369
|
-
/** @description A test is already in progress (debounce) */
|
|
5370
|
-
429: {
|
|
5371
|
-
headers: {
|
|
5372
|
-
[name: string]: unknown;
|
|
5373
|
-
};
|
|
5374
|
-
content: {
|
|
5375
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
5346
|
+
"application/json": components["schemas"]["TestSsoInitiation"];
|
|
5376
5347
|
};
|
|
5377
5348
|
};
|
|
5378
5349
|
};
|
|
@@ -5381,50 +5352,18 @@ export interface operations {
|
|
|
5381
5352
|
parameters: {
|
|
5382
5353
|
query?: never;
|
|
5383
5354
|
header?: never;
|
|
5384
|
-
path
|
|
5385
|
-
/** @description The test attempt ID to poll */
|
|
5386
|
-
attemptId: string;
|
|
5387
|
-
};
|
|
5355
|
+
path?: never;
|
|
5388
5356
|
cookie?: never;
|
|
5389
5357
|
};
|
|
5390
5358
|
requestBody?: never;
|
|
5391
5359
|
responses: {
|
|
5392
|
-
/** @description Test SSO
|
|
5360
|
+
/** @description Test SSO attempt status */
|
|
5393
5361
|
200: {
|
|
5394
5362
|
headers: {
|
|
5395
5363
|
[name: string]: unknown;
|
|
5396
5364
|
};
|
|
5397
5365
|
content: {
|
|
5398
|
-
"application/json":
|
|
5399
|
-
/** @enum {string} */
|
|
5400
|
-
status: "pending" | "success" | "failed" | "expired";
|
|
5401
|
-
claims?: {
|
|
5402
|
-
sub?: string;
|
|
5403
|
-
email?: string;
|
|
5404
|
-
issuer?: string;
|
|
5405
|
-
};
|
|
5406
|
-
identityLinked?: boolean;
|
|
5407
|
-
error?: string;
|
|
5408
|
-
errorCode?: string;
|
|
5409
|
-
};
|
|
5410
|
-
};
|
|
5411
|
-
};
|
|
5412
|
-
/** @description Missing org.manage_auth capability */
|
|
5413
|
-
403: {
|
|
5414
|
-
headers: {
|
|
5415
|
-
[name: string]: unknown;
|
|
5416
|
-
};
|
|
5417
|
-
content: {
|
|
5418
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
5419
|
-
};
|
|
5420
|
-
};
|
|
5421
|
-
/** @description Attempt not found */
|
|
5422
|
-
404: {
|
|
5423
|
-
headers: {
|
|
5424
|
-
[name: string]: unknown;
|
|
5425
|
-
};
|
|
5426
|
-
content: {
|
|
5427
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
5366
|
+
"application/json": components["schemas"]["TestSsoResult"];
|
|
5428
5367
|
};
|
|
5429
5368
|
};
|
|
5430
5369
|
};
|
|
@@ -5644,10 +5583,7 @@ export interface operations {
|
|
|
5644
5583
|
parameters: {
|
|
5645
5584
|
query?: never;
|
|
5646
5585
|
header?: never;
|
|
5647
|
-
path
|
|
5648
|
-
/** @description Member ID */
|
|
5649
|
-
id: string;
|
|
5650
|
-
};
|
|
5586
|
+
path?: never;
|
|
5651
5587
|
cookie?: never;
|
|
5652
5588
|
};
|
|
5653
5589
|
requestBody?: never;
|
|
@@ -5661,43 +5597,13 @@ export interface operations {
|
|
|
5661
5597
|
"application/json": components["schemas"]["RemoveMemberResponse"];
|
|
5662
5598
|
};
|
|
5663
5599
|
};
|
|
5664
|
-
/** @description Forbidden (owner protection, missing capability) */
|
|
5665
|
-
403: {
|
|
5666
|
-
headers: {
|
|
5667
|
-
[name: string]: unknown;
|
|
5668
|
-
};
|
|
5669
|
-
content: {
|
|
5670
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
5671
|
-
};
|
|
5672
|
-
};
|
|
5673
|
-
/** @description Member not found */
|
|
5674
|
-
404: {
|
|
5675
|
-
headers: {
|
|
5676
|
-
[name: string]: unknown;
|
|
5677
|
-
};
|
|
5678
|
-
content: {
|
|
5679
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
5680
|
-
};
|
|
5681
|
-
};
|
|
5682
|
-
/** @description Conflict (admin floor violation) */
|
|
5683
|
-
409: {
|
|
5684
|
-
headers: {
|
|
5685
|
-
[name: string]: unknown;
|
|
5686
|
-
};
|
|
5687
|
-
content: {
|
|
5688
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
5689
|
-
};
|
|
5690
|
-
};
|
|
5691
5600
|
};
|
|
5692
5601
|
};
|
|
5693
5602
|
changeMemberRole: {
|
|
5694
5603
|
parameters: {
|
|
5695
5604
|
query?: never;
|
|
5696
5605
|
header?: never;
|
|
5697
|
-
path
|
|
5698
|
-
/** @description Member ID */
|
|
5699
|
-
id: string;
|
|
5700
|
-
};
|
|
5606
|
+
path?: never;
|
|
5701
5607
|
cookie?: never;
|
|
5702
5608
|
};
|
|
5703
5609
|
requestBody: {
|
|
@@ -5715,42 +5621,6 @@ export interface operations {
|
|
|
5715
5621
|
"application/json": components["schemas"]["ChangeMemberRoleResponse"];
|
|
5716
5622
|
};
|
|
5717
5623
|
};
|
|
5718
|
-
/** @description Invalid request body */
|
|
5719
|
-
400: {
|
|
5720
|
-
headers: {
|
|
5721
|
-
[name: string]: unknown;
|
|
5722
|
-
};
|
|
5723
|
-
content: {
|
|
5724
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
5725
|
-
};
|
|
5726
|
-
};
|
|
5727
|
-
/** @description Forbidden (owner demotion, missing capability) */
|
|
5728
|
-
403: {
|
|
5729
|
-
headers: {
|
|
5730
|
-
[name: string]: unknown;
|
|
5731
|
-
};
|
|
5732
|
-
content: {
|
|
5733
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
5734
|
-
};
|
|
5735
|
-
};
|
|
5736
|
-
/** @description Member not found */
|
|
5737
|
-
404: {
|
|
5738
|
-
headers: {
|
|
5739
|
-
[name: string]: unknown;
|
|
5740
|
-
};
|
|
5741
|
-
content: {
|
|
5742
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
5743
|
-
};
|
|
5744
|
-
};
|
|
5745
|
-
/** @description Conflict (admin floor violation) */
|
|
5746
|
-
409: {
|
|
5747
|
-
headers: {
|
|
5748
|
-
[name: string]: unknown;
|
|
5749
|
-
};
|
|
5750
|
-
content: {
|
|
5751
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
5752
|
-
};
|
|
5753
|
-
};
|
|
5754
5624
|
};
|
|
5755
5625
|
};
|
|
5756
5626
|
listDomains: {
|
|
@@ -5951,49 +5821,13 @@ export interface operations {
|
|
|
5951
5821
|
};
|
|
5952
5822
|
requestBody?: never;
|
|
5953
5823
|
responses: {
|
|
5954
|
-
/** @description
|
|
5824
|
+
/** @description Resync result with new logo URL */
|
|
5955
5825
|
200: {
|
|
5956
5826
|
headers: {
|
|
5957
5827
|
[name: string]: unknown;
|
|
5958
5828
|
};
|
|
5959
5829
|
content: {
|
|
5960
|
-
"application/json": components["schemas"]["
|
|
5961
|
-
};
|
|
5962
|
-
};
|
|
5963
|
-
/** @description Slack not connected */
|
|
5964
|
-
400: {
|
|
5965
|
-
headers: {
|
|
5966
|
-
[name: string]: unknown;
|
|
5967
|
-
};
|
|
5968
|
-
content: {
|
|
5969
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
5970
|
-
};
|
|
5971
|
-
};
|
|
5972
|
-
/** @description Not authenticated */
|
|
5973
|
-
401: {
|
|
5974
|
-
headers: {
|
|
5975
|
-
[name: string]: unknown;
|
|
5976
|
-
};
|
|
5977
|
-
content: {
|
|
5978
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
5979
|
-
};
|
|
5980
|
-
};
|
|
5981
|
-
/** @description No org.view_workspace capability */
|
|
5982
|
-
403: {
|
|
5983
|
-
headers: {
|
|
5984
|
-
[name: string]: unknown;
|
|
5985
|
-
};
|
|
5986
|
-
content: {
|
|
5987
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
5988
|
-
};
|
|
5989
|
-
};
|
|
5990
|
-
/** @description Rate limit exceeded */
|
|
5991
|
-
429: {
|
|
5992
|
-
headers: {
|
|
5993
|
-
[name: string]: unknown;
|
|
5994
|
-
};
|
|
5995
|
-
content: {
|
|
5996
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
5830
|
+
"application/json": components["schemas"]["WorkspaceResyncSlackLogoResponse"];
|
|
5997
5831
|
};
|
|
5998
5832
|
};
|
|
5999
5833
|
};
|
|
@@ -6007,58 +5841,17 @@ export interface operations {
|
|
|
6007
5841
|
};
|
|
6008
5842
|
requestBody: {
|
|
6009
5843
|
content: {
|
|
6010
|
-
"application/json":
|
|
6011
|
-
/** @description Flat tokenized segments, e.g. ["dept", "engineering", "team", "front-end"] */
|
|
6012
|
-
path: string[];
|
|
6013
|
-
};
|
|
5844
|
+
"application/json": components["schemas"]["ResolvePathRequest"];
|
|
6014
5845
|
};
|
|
6015
5846
|
};
|
|
6016
5847
|
responses: {
|
|
6017
|
-
/** @description Resolved layers */
|
|
5848
|
+
/** @description Resolved navigation layers */
|
|
6018
5849
|
200: {
|
|
6019
5850
|
headers: {
|
|
6020
5851
|
[name: string]: unknown;
|
|
6021
5852
|
};
|
|
6022
5853
|
content: {
|
|
6023
|
-
"application/json":
|
|
6024
|
-
layers: components["schemas"]["ResolvedLayer"][];
|
|
6025
|
-
};
|
|
6026
|
-
};
|
|
6027
|
-
};
|
|
6028
|
-
/** @description Invalid segment grammar */
|
|
6029
|
-
400: {
|
|
6030
|
-
headers: {
|
|
6031
|
-
[name: string]: unknown;
|
|
6032
|
-
};
|
|
6033
|
-
content: {
|
|
6034
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
6035
|
-
};
|
|
6036
|
-
};
|
|
6037
|
-
/** @description Not authenticated */
|
|
6038
|
-
401: {
|
|
6039
|
-
headers: {
|
|
6040
|
-
[name: string]: unknown;
|
|
6041
|
-
};
|
|
6042
|
-
content: {
|
|
6043
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
6044
|
-
};
|
|
6045
|
-
};
|
|
6046
|
-
/** @description No org.view_workspace capability */
|
|
6047
|
-
403: {
|
|
6048
|
-
headers: {
|
|
6049
|
-
[name: string]: unknown;
|
|
6050
|
-
};
|
|
6051
|
-
content: {
|
|
6052
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
6053
|
-
};
|
|
6054
|
-
};
|
|
6055
|
-
/** @description Entity slug not found */
|
|
6056
|
-
404: {
|
|
6057
|
-
headers: {
|
|
6058
|
-
[name: string]: unknown;
|
|
6059
|
-
};
|
|
6060
|
-
content: {
|
|
6061
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
5854
|
+
"application/json": components["schemas"]["WorkspaceResolvePathResponse"];
|
|
6062
5855
|
};
|
|
6063
5856
|
};
|
|
6064
5857
|
};
|
|
@@ -6385,10 +6178,10 @@ export interface operations {
|
|
|
6385
6178
|
listChats: {
|
|
6386
6179
|
parameters: {
|
|
6387
6180
|
query?: {
|
|
6388
|
-
search?: string;
|
|
6389
6181
|
limit?: number;
|
|
6390
6182
|
offset?: number;
|
|
6391
|
-
|
|
6183
|
+
search?: string;
|
|
6184
|
+
includePinned?: "true" | "false";
|
|
6392
6185
|
};
|
|
6393
6186
|
header?: never;
|
|
6394
6187
|
path?: never;
|
|
@@ -6402,18 +6195,7 @@ export interface operations {
|
|
|
6402
6195
|
[name: string]: unknown;
|
|
6403
6196
|
};
|
|
6404
6197
|
content: {
|
|
6405
|
-
"application/json":
|
|
6406
|
-
chats: components["schemas"]["ChatSummary"][];
|
|
6407
|
-
};
|
|
6408
|
-
};
|
|
6409
|
-
};
|
|
6410
|
-
/** @description Not authenticated */
|
|
6411
|
-
401: {
|
|
6412
|
-
headers: {
|
|
6413
|
-
[name: string]: unknown;
|
|
6414
|
-
};
|
|
6415
|
-
content: {
|
|
6416
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
6198
|
+
"application/json": components["schemas"]["ChatListResponse"];
|
|
6417
6199
|
};
|
|
6418
6200
|
};
|
|
6419
6201
|
};
|
|
@@ -6437,27 +6219,7 @@ export interface operations {
|
|
|
6437
6219
|
[name: string]: unknown;
|
|
6438
6220
|
};
|
|
6439
6221
|
content: {
|
|
6440
|
-
"application/json":
|
|
6441
|
-
chat: components["schemas"]["Chat"];
|
|
6442
|
-
};
|
|
6443
|
-
};
|
|
6444
|
-
};
|
|
6445
|
-
/** @description Missing required fields */
|
|
6446
|
-
400: {
|
|
6447
|
-
headers: {
|
|
6448
|
-
[name: string]: unknown;
|
|
6449
|
-
};
|
|
6450
|
-
content: {
|
|
6451
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
6452
|
-
};
|
|
6453
|
-
};
|
|
6454
|
-
/** @description Not authenticated */
|
|
6455
|
-
401: {
|
|
6456
|
-
headers: {
|
|
6457
|
-
[name: string]: unknown;
|
|
6458
|
-
};
|
|
6459
|
-
content: {
|
|
6460
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
6222
|
+
"application/json": components["schemas"]["CreateChatResponse"];
|
|
6461
6223
|
};
|
|
6462
6224
|
};
|
|
6463
6225
|
};
|
|
@@ -6466,10 +6228,7 @@ export interface operations {
|
|
|
6466
6228
|
parameters: {
|
|
6467
6229
|
query?: never;
|
|
6468
6230
|
header?: never;
|
|
6469
|
-
path
|
|
6470
|
-
/** @description Client-generated interaction ID */
|
|
6471
|
-
interactionId: string;
|
|
6472
|
-
};
|
|
6231
|
+
path?: never;
|
|
6473
6232
|
cookie?: never;
|
|
6474
6233
|
};
|
|
6475
6234
|
requestBody?: never;
|
|
@@ -6480,28 +6239,7 @@ export interface operations {
|
|
|
6480
6239
|
[name: string]: unknown;
|
|
6481
6240
|
};
|
|
6482
6241
|
content: {
|
|
6483
|
-
"application/json":
|
|
6484
|
-
/** Format: uuid */
|
|
6485
|
-
chatId: string;
|
|
6486
|
-
};
|
|
6487
|
-
};
|
|
6488
|
-
};
|
|
6489
|
-
/** @description Not authenticated */
|
|
6490
|
-
401: {
|
|
6491
|
-
headers: {
|
|
6492
|
-
[name: string]: unknown;
|
|
6493
|
-
};
|
|
6494
|
-
content: {
|
|
6495
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
6496
|
-
};
|
|
6497
|
-
};
|
|
6498
|
-
/** @description Chat not found for this interaction ID */
|
|
6499
|
-
404: {
|
|
6500
|
-
headers: {
|
|
6501
|
-
[name: string]: unknown;
|
|
6502
|
-
};
|
|
6503
|
-
content: {
|
|
6504
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
6242
|
+
"application/json": components["schemas"]["ChatByInteractionResponse"];
|
|
6505
6243
|
};
|
|
6506
6244
|
};
|
|
6507
6245
|
};
|
|
@@ -6510,10 +6248,7 @@ export interface operations {
|
|
|
6510
6248
|
parameters: {
|
|
6511
6249
|
query?: never;
|
|
6512
6250
|
header?: never;
|
|
6513
|
-
path
|
|
6514
|
-
/** @description Chat ID (UUID) */
|
|
6515
|
-
id: string;
|
|
6516
|
-
};
|
|
6251
|
+
path?: never;
|
|
6517
6252
|
cookie?: never;
|
|
6518
6253
|
};
|
|
6519
6254
|
requestBody?: never;
|
|
@@ -6527,34 +6262,13 @@ export interface operations {
|
|
|
6527
6262
|
"application/json": components["schemas"]["ChatWithMessages"];
|
|
6528
6263
|
};
|
|
6529
6264
|
};
|
|
6530
|
-
/** @description Not authenticated */
|
|
6531
|
-
401: {
|
|
6532
|
-
headers: {
|
|
6533
|
-
[name: string]: unknown;
|
|
6534
|
-
};
|
|
6535
|
-
content: {
|
|
6536
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
6537
|
-
};
|
|
6538
|
-
};
|
|
6539
|
-
/** @description Chat not found or access denied */
|
|
6540
|
-
404: {
|
|
6541
|
-
headers: {
|
|
6542
|
-
[name: string]: unknown;
|
|
6543
|
-
};
|
|
6544
|
-
content: {
|
|
6545
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
6546
|
-
};
|
|
6547
|
-
};
|
|
6548
6265
|
};
|
|
6549
6266
|
};
|
|
6550
6267
|
deleteChat: {
|
|
6551
6268
|
parameters: {
|
|
6552
6269
|
query?: never;
|
|
6553
6270
|
header?: never;
|
|
6554
|
-
path
|
|
6555
|
-
/** @description Chat ID (UUID) */
|
|
6556
|
-
id: string;
|
|
6557
|
-
};
|
|
6271
|
+
path?: never;
|
|
6558
6272
|
cookie?: never;
|
|
6559
6273
|
};
|
|
6560
6274
|
requestBody?: never;
|
|
@@ -6568,34 +6282,13 @@ export interface operations {
|
|
|
6568
6282
|
"application/json": components["schemas"]["SuccessResponse"];
|
|
6569
6283
|
};
|
|
6570
6284
|
};
|
|
6571
|
-
/** @description Not authenticated */
|
|
6572
|
-
401: {
|
|
6573
|
-
headers: {
|
|
6574
|
-
[name: string]: unknown;
|
|
6575
|
-
};
|
|
6576
|
-
content: {
|
|
6577
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
6578
|
-
};
|
|
6579
|
-
};
|
|
6580
|
-
/** @description Chat not found or access denied */
|
|
6581
|
-
404: {
|
|
6582
|
-
headers: {
|
|
6583
|
-
[name: string]: unknown;
|
|
6584
|
-
};
|
|
6585
|
-
content: {
|
|
6586
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
6587
|
-
};
|
|
6588
|
-
};
|
|
6589
6285
|
};
|
|
6590
6286
|
};
|
|
6591
6287
|
updateChat: {
|
|
6592
6288
|
parameters: {
|
|
6593
6289
|
query?: never;
|
|
6594
6290
|
header?: never;
|
|
6595
|
-
path
|
|
6596
|
-
/** @description Chat ID (UUID) */
|
|
6597
|
-
id: string;
|
|
6598
|
-
};
|
|
6291
|
+
path?: never;
|
|
6599
6292
|
cookie?: never;
|
|
6600
6293
|
};
|
|
6601
6294
|
requestBody: {
|
|
@@ -6613,43 +6306,13 @@ export interface operations {
|
|
|
6613
6306
|
"application/json": components["schemas"]["SuccessResponse"];
|
|
6614
6307
|
};
|
|
6615
6308
|
};
|
|
6616
|
-
/** @description Missing title */
|
|
6617
|
-
400: {
|
|
6618
|
-
headers: {
|
|
6619
|
-
[name: string]: unknown;
|
|
6620
|
-
};
|
|
6621
|
-
content: {
|
|
6622
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
6623
|
-
};
|
|
6624
|
-
};
|
|
6625
|
-
/** @description Not authenticated */
|
|
6626
|
-
401: {
|
|
6627
|
-
headers: {
|
|
6628
|
-
[name: string]: unknown;
|
|
6629
|
-
};
|
|
6630
|
-
content: {
|
|
6631
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
6632
|
-
};
|
|
6633
|
-
};
|
|
6634
|
-
/** @description Chat not found or access denied */
|
|
6635
|
-
404: {
|
|
6636
|
-
headers: {
|
|
6637
|
-
[name: string]: unknown;
|
|
6638
|
-
};
|
|
6639
|
-
content: {
|
|
6640
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
6641
|
-
};
|
|
6642
|
-
};
|
|
6643
6309
|
};
|
|
6644
6310
|
};
|
|
6645
6311
|
appendMessages: {
|
|
6646
6312
|
parameters: {
|
|
6647
6313
|
query?: never;
|
|
6648
6314
|
header?: never;
|
|
6649
|
-
path
|
|
6650
|
-
/** @description Chat ID (UUID) */
|
|
6651
|
-
id: string;
|
|
6652
|
-
};
|
|
6315
|
+
path?: never;
|
|
6653
6316
|
cookie?: never;
|
|
6654
6317
|
};
|
|
6655
6318
|
requestBody: {
|
|
@@ -6667,45 +6330,13 @@ export interface operations {
|
|
|
6667
6330
|
"application/json": components["schemas"]["SuccessResponse"];
|
|
6668
6331
|
};
|
|
6669
6332
|
};
|
|
6670
|
-
/** @description Missing messages array */
|
|
6671
|
-
400: {
|
|
6672
|
-
headers: {
|
|
6673
|
-
[name: string]: unknown;
|
|
6674
|
-
};
|
|
6675
|
-
content: {
|
|
6676
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
6677
|
-
};
|
|
6678
|
-
};
|
|
6679
|
-
/** @description Not authenticated */
|
|
6680
|
-
401: {
|
|
6681
|
-
headers: {
|
|
6682
|
-
[name: string]: unknown;
|
|
6683
|
-
};
|
|
6684
|
-
content: {
|
|
6685
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
6686
|
-
};
|
|
6687
|
-
};
|
|
6688
|
-
/** @description Chat not found or access denied */
|
|
6689
|
-
404: {
|
|
6690
|
-
headers: {
|
|
6691
|
-
[name: string]: unknown;
|
|
6692
|
-
};
|
|
6693
|
-
content: {
|
|
6694
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
6695
|
-
};
|
|
6696
|
-
};
|
|
6697
6333
|
};
|
|
6698
6334
|
};
|
|
6699
6335
|
deleteMessage: {
|
|
6700
6336
|
parameters: {
|
|
6701
6337
|
query?: never;
|
|
6702
6338
|
header?: never;
|
|
6703
|
-
path
|
|
6704
|
-
/** @description Chat ID (UUID) */
|
|
6705
|
-
id: string;
|
|
6706
|
-
/** @description Message ID (UUID) */
|
|
6707
|
-
messageId: string;
|
|
6708
|
-
};
|
|
6339
|
+
path?: never;
|
|
6709
6340
|
cookie?: never;
|
|
6710
6341
|
};
|
|
6711
6342
|
requestBody?: never;
|
|
@@ -6719,34 +6350,13 @@ export interface operations {
|
|
|
6719
6350
|
"application/json": components["schemas"]["SuccessResponse"];
|
|
6720
6351
|
};
|
|
6721
6352
|
};
|
|
6722
|
-
/** @description Not authenticated */
|
|
6723
|
-
401: {
|
|
6724
|
-
headers: {
|
|
6725
|
-
[name: string]: unknown;
|
|
6726
|
-
};
|
|
6727
|
-
content: {
|
|
6728
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
6729
|
-
};
|
|
6730
|
-
};
|
|
6731
|
-
/** @description Chat or message not found */
|
|
6732
|
-
404: {
|
|
6733
|
-
headers: {
|
|
6734
|
-
[name: string]: unknown;
|
|
6735
|
-
};
|
|
6736
|
-
content: {
|
|
6737
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
6738
|
-
};
|
|
6739
|
-
};
|
|
6740
6353
|
};
|
|
6741
6354
|
};
|
|
6742
6355
|
generateChatTitle: {
|
|
6743
6356
|
parameters: {
|
|
6744
6357
|
query?: never;
|
|
6745
6358
|
header?: never;
|
|
6746
|
-
path
|
|
6747
|
-
/** @description Chat ID (UUID) */
|
|
6748
|
-
id: string;
|
|
6749
|
-
};
|
|
6359
|
+
path?: never;
|
|
6750
6360
|
cookie?: never;
|
|
6751
6361
|
};
|
|
6752
6362
|
requestBody?: never;
|
|
@@ -6760,34 +6370,13 @@ export interface operations {
|
|
|
6760
6370
|
"application/json": components["schemas"]["GenerateTitleResponse"];
|
|
6761
6371
|
};
|
|
6762
6372
|
};
|
|
6763
|
-
/** @description Not authenticated */
|
|
6764
|
-
401: {
|
|
6765
|
-
headers: {
|
|
6766
|
-
[name: string]: unknown;
|
|
6767
|
-
};
|
|
6768
|
-
content: {
|
|
6769
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
6770
|
-
};
|
|
6771
|
-
};
|
|
6772
|
-
/** @description Chat not found or access denied */
|
|
6773
|
-
404: {
|
|
6774
|
-
headers: {
|
|
6775
|
-
[name: string]: unknown;
|
|
6776
|
-
};
|
|
6777
|
-
content: {
|
|
6778
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
6779
|
-
};
|
|
6780
|
-
};
|
|
6781
6373
|
};
|
|
6782
6374
|
};
|
|
6783
6375
|
pinChat: {
|
|
6784
6376
|
parameters: {
|
|
6785
6377
|
query?: never;
|
|
6786
6378
|
header?: never;
|
|
6787
|
-
path
|
|
6788
|
-
/** @description Chat ID (UUID) */
|
|
6789
|
-
id: string;
|
|
6790
|
-
};
|
|
6379
|
+
path?: never;
|
|
6791
6380
|
cookie?: never;
|
|
6792
6381
|
};
|
|
6793
6382
|
requestBody?: never;
|
|
@@ -6801,34 +6390,13 @@ export interface operations {
|
|
|
6801
6390
|
"application/json": components["schemas"]["SuccessResponse"];
|
|
6802
6391
|
};
|
|
6803
6392
|
};
|
|
6804
|
-
/** @description Not authenticated */
|
|
6805
|
-
401: {
|
|
6806
|
-
headers: {
|
|
6807
|
-
[name: string]: unknown;
|
|
6808
|
-
};
|
|
6809
|
-
content: {
|
|
6810
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
6811
|
-
};
|
|
6812
|
-
};
|
|
6813
|
-
/** @description Chat not found or access denied */
|
|
6814
|
-
404: {
|
|
6815
|
-
headers: {
|
|
6816
|
-
[name: string]: unknown;
|
|
6817
|
-
};
|
|
6818
|
-
content: {
|
|
6819
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
6820
|
-
};
|
|
6821
|
-
};
|
|
6822
6393
|
};
|
|
6823
6394
|
};
|
|
6824
6395
|
unpinChat: {
|
|
6825
6396
|
parameters: {
|
|
6826
6397
|
query?: never;
|
|
6827
6398
|
header?: never;
|
|
6828
|
-
path
|
|
6829
|
-
/** @description Chat ID (UUID) */
|
|
6830
|
-
id: string;
|
|
6831
|
-
};
|
|
6399
|
+
path?: never;
|
|
6832
6400
|
cookie?: never;
|
|
6833
6401
|
};
|
|
6834
6402
|
requestBody?: never;
|
|
@@ -6842,24 +6410,6 @@ export interface operations {
|
|
|
6842
6410
|
"application/json": components["schemas"]["SuccessResponse"];
|
|
6843
6411
|
};
|
|
6844
6412
|
};
|
|
6845
|
-
/** @description Not authenticated */
|
|
6846
|
-
401: {
|
|
6847
|
-
headers: {
|
|
6848
|
-
[name: string]: unknown;
|
|
6849
|
-
};
|
|
6850
|
-
content: {
|
|
6851
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
6852
|
-
};
|
|
6853
|
-
};
|
|
6854
|
-
/** @description Chat not found or access denied */
|
|
6855
|
-
404: {
|
|
6856
|
-
headers: {
|
|
6857
|
-
[name: string]: unknown;
|
|
6858
|
-
};
|
|
6859
|
-
content: {
|
|
6860
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
6861
|
-
};
|
|
6862
|
-
};
|
|
6863
6413
|
};
|
|
6864
6414
|
};
|
|
6865
6415
|
chatEvents: {
|
|
@@ -6871,22 +6421,13 @@ export interface operations {
|
|
|
6871
6421
|
};
|
|
6872
6422
|
requestBody?: never;
|
|
6873
6423
|
responses: {
|
|
6874
|
-
/** @description SSE stream
|
|
6424
|
+
/** @description SSE event stream (text/event-stream). Event payload: ChatSseEvent. */
|
|
6875
6425
|
200: {
|
|
6876
6426
|
headers: {
|
|
6877
6427
|
[name: string]: unknown;
|
|
6878
6428
|
};
|
|
6879
6429
|
content: {
|
|
6880
|
-
"text/event-stream":
|
|
6881
|
-
};
|
|
6882
|
-
};
|
|
6883
|
-
/** @description Not authenticated */
|
|
6884
|
-
401: {
|
|
6885
|
-
headers: {
|
|
6886
|
-
[name: string]: unknown;
|
|
6887
|
-
};
|
|
6888
|
-
content: {
|
|
6889
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
6430
|
+
"text/event-stream": components["schemas"]["ChatSseEvent"];
|
|
6890
6431
|
};
|
|
6891
6432
|
};
|
|
6892
6433
|
};
|
|
@@ -6895,41 +6436,18 @@ export interface operations {
|
|
|
6895
6436
|
parameters: {
|
|
6896
6437
|
query?: never;
|
|
6897
6438
|
header?: never;
|
|
6898
|
-
path
|
|
6899
|
-
/** @description Chat ID (UUID) */
|
|
6900
|
-
chatId: string;
|
|
6901
|
-
};
|
|
6439
|
+
path?: never;
|
|
6902
6440
|
cookie?: never;
|
|
6903
6441
|
};
|
|
6904
6442
|
requestBody?: never;
|
|
6905
6443
|
responses: {
|
|
6906
|
-
/** @description List of shares */
|
|
6444
|
+
/** @description List of chat shares */
|
|
6907
6445
|
200: {
|
|
6908
6446
|
headers: {
|
|
6909
6447
|
[name: string]: unknown;
|
|
6910
6448
|
};
|
|
6911
6449
|
content: {
|
|
6912
|
-
"application/json":
|
|
6913
|
-
shares: components["schemas"]["ChatShareInfo"][];
|
|
6914
|
-
};
|
|
6915
|
-
};
|
|
6916
|
-
};
|
|
6917
|
-
/** @description Not authenticated */
|
|
6918
|
-
401: {
|
|
6919
|
-
headers: {
|
|
6920
|
-
[name: string]: unknown;
|
|
6921
|
-
};
|
|
6922
|
-
content: {
|
|
6923
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
6924
|
-
};
|
|
6925
|
-
};
|
|
6926
|
-
/** @description Chat not found or access denied */
|
|
6927
|
-
404: {
|
|
6928
|
-
headers: {
|
|
6929
|
-
[name: string]: unknown;
|
|
6930
|
-
};
|
|
6931
|
-
content: {
|
|
6932
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
6450
|
+
"application/json": components["schemas"]["ListSharesResponse"];
|
|
6933
6451
|
};
|
|
6934
6452
|
};
|
|
6935
6453
|
};
|
|
@@ -6938,10 +6456,7 @@ export interface operations {
|
|
|
6938
6456
|
parameters: {
|
|
6939
6457
|
query?: never;
|
|
6940
6458
|
header?: never;
|
|
6941
|
-
path
|
|
6942
|
-
/** @description Chat ID (UUID) */
|
|
6943
|
-
chatId: string;
|
|
6944
|
-
};
|
|
6459
|
+
path?: never;
|
|
6945
6460
|
cookie?: never;
|
|
6946
6461
|
};
|
|
6947
6462
|
requestBody: {
|
|
@@ -6950,44 +6465,13 @@ export interface operations {
|
|
|
6950
6465
|
};
|
|
6951
6466
|
};
|
|
6952
6467
|
responses: {
|
|
6953
|
-
/** @description Share created */
|
|
6468
|
+
/** @description Share created successfully */
|
|
6954
6469
|
201: {
|
|
6955
6470
|
headers: {
|
|
6956
6471
|
[name: string]: unknown;
|
|
6957
6472
|
};
|
|
6958
6473
|
content: {
|
|
6959
|
-
"application/json":
|
|
6960
|
-
share: components["schemas"]["ChatShareInfo"];
|
|
6961
|
-
/** @description Full URL for accessing the shared chat */
|
|
6962
|
-
shareUrl: string;
|
|
6963
|
-
};
|
|
6964
|
-
};
|
|
6965
|
-
};
|
|
6966
|
-
/** @description Invalid visibility value */
|
|
6967
|
-
400: {
|
|
6968
|
-
headers: {
|
|
6969
|
-
[name: string]: unknown;
|
|
6970
|
-
};
|
|
6971
|
-
content: {
|
|
6972
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
6973
|
-
};
|
|
6974
|
-
};
|
|
6975
|
-
/** @description Not authenticated */
|
|
6976
|
-
401: {
|
|
6977
|
-
headers: {
|
|
6978
|
-
[name: string]: unknown;
|
|
6979
|
-
};
|
|
6980
|
-
content: {
|
|
6981
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
6982
|
-
};
|
|
6983
|
-
};
|
|
6984
|
-
/** @description Chat not found or access denied */
|
|
6985
|
-
404: {
|
|
6986
|
-
headers: {
|
|
6987
|
-
[name: string]: unknown;
|
|
6988
|
-
};
|
|
6989
|
-
content: {
|
|
6990
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
6474
|
+
"application/json": components["schemas"]["CreateShareResponse"];
|
|
6991
6475
|
};
|
|
6992
6476
|
};
|
|
6993
6477
|
};
|
|
@@ -6996,39 +6480,18 @@ export interface operations {
|
|
|
6996
6480
|
parameters: {
|
|
6997
6481
|
query?: never;
|
|
6998
6482
|
header?: never;
|
|
6999
|
-
path
|
|
7000
|
-
/** @description Share ID (UUID) */
|
|
7001
|
-
shareId: string;
|
|
7002
|
-
};
|
|
6483
|
+
path?: never;
|
|
7003
6484
|
cookie?: never;
|
|
7004
6485
|
};
|
|
7005
6486
|
requestBody?: never;
|
|
7006
6487
|
responses: {
|
|
7007
|
-
/** @description Share revoked */
|
|
6488
|
+
/** @description Share revoked successfully */
|
|
7008
6489
|
200: {
|
|
7009
6490
|
headers: {
|
|
7010
6491
|
[name: string]: unknown;
|
|
7011
6492
|
};
|
|
7012
6493
|
content: {
|
|
7013
|
-
"application/json": components["schemas"]["
|
|
7014
|
-
};
|
|
7015
|
-
};
|
|
7016
|
-
/** @description Not authenticated */
|
|
7017
|
-
401: {
|
|
7018
|
-
headers: {
|
|
7019
|
-
[name: string]: unknown;
|
|
7020
|
-
};
|
|
7021
|
-
content: {
|
|
7022
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
7023
|
-
};
|
|
7024
|
-
};
|
|
7025
|
-
/** @description Share not found or access denied */
|
|
7026
|
-
404: {
|
|
7027
|
-
headers: {
|
|
7028
|
-
[name: string]: unknown;
|
|
7029
|
-
};
|
|
7030
|
-
content: {
|
|
7031
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
6494
|
+
"application/json": components["schemas"]["ChatSuccessResponse"];
|
|
7032
6495
|
};
|
|
7033
6496
|
};
|
|
7034
6497
|
};
|
|
@@ -7037,10 +6500,7 @@ export interface operations {
|
|
|
7037
6500
|
parameters: {
|
|
7038
6501
|
query?: never;
|
|
7039
6502
|
header?: never;
|
|
7040
|
-
path
|
|
7041
|
-
/** @description Share ID (UUID) */
|
|
7042
|
-
shareId: string;
|
|
7043
|
-
};
|
|
6503
|
+
path?: never;
|
|
7044
6504
|
cookie?: never;
|
|
7045
6505
|
};
|
|
7046
6506
|
requestBody: {
|
|
@@ -7049,52 +6509,22 @@ export interface operations {
|
|
|
7049
6509
|
};
|
|
7050
6510
|
};
|
|
7051
6511
|
responses: {
|
|
7052
|
-
/** @description Share updated */
|
|
6512
|
+
/** @description Share updated successfully */
|
|
7053
6513
|
200: {
|
|
7054
6514
|
headers: {
|
|
7055
6515
|
[name: string]: unknown;
|
|
7056
6516
|
};
|
|
7057
6517
|
content: {
|
|
7058
|
-
"application/json":
|
|
7059
|
-
share: components["schemas"]["ChatShareInfo"];
|
|
7060
|
-
};
|
|
7061
|
-
};
|
|
7062
|
-
};
|
|
7063
|
-
/** @description Invalid visibility value */
|
|
7064
|
-
400: {
|
|
7065
|
-
headers: {
|
|
7066
|
-
[name: string]: unknown;
|
|
7067
|
-
};
|
|
7068
|
-
content: {
|
|
7069
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
7070
|
-
};
|
|
7071
|
-
};
|
|
7072
|
-
/** @description Not authenticated */
|
|
7073
|
-
401: {
|
|
7074
|
-
headers: {
|
|
7075
|
-
[name: string]: unknown;
|
|
7076
|
-
};
|
|
7077
|
-
content: {
|
|
7078
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
7079
|
-
};
|
|
7080
|
-
};
|
|
7081
|
-
/** @description Share not found or access denied */
|
|
7082
|
-
404: {
|
|
7083
|
-
headers: {
|
|
7084
|
-
[name: string]: unknown;
|
|
7085
|
-
};
|
|
7086
|
-
content: {
|
|
7087
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
6518
|
+
"application/json": components["schemas"]["UpdateShareResponse"];
|
|
7088
6519
|
};
|
|
7089
6520
|
};
|
|
7090
6521
|
};
|
|
7091
6522
|
};
|
|
7092
|
-
|
|
6523
|
+
getSharedView: {
|
|
7093
6524
|
parameters: {
|
|
7094
6525
|
query?: never;
|
|
7095
6526
|
header?: never;
|
|
7096
6527
|
path: {
|
|
7097
|
-
/** @description Share token (high-entropy capability token) */
|
|
7098
6528
|
token: string;
|
|
7099
6529
|
};
|
|
7100
6530
|
cookie?: never;
|
|
@@ -7104,23 +6534,12 @@ export interface operations {
|
|
|
7104
6534
|
/** @description Shared chat view */
|
|
7105
6535
|
200: {
|
|
7106
6536
|
headers: {
|
|
7107
|
-
/** @description Prevents caching to ensure revocation takes effect */
|
|
7108
|
-
"Cache-Control"?: "no-store";
|
|
7109
6537
|
[name: string]: unknown;
|
|
7110
6538
|
};
|
|
7111
6539
|
content: {
|
|
7112
6540
|
"application/json": components["schemas"]["SharedChatView"];
|
|
7113
6541
|
};
|
|
7114
6542
|
};
|
|
7115
|
-
/** @description Shared chat not found (invalid token, revoked, or unauthorized) */
|
|
7116
|
-
404: {
|
|
7117
|
-
headers: {
|
|
7118
|
-
[name: string]: unknown;
|
|
7119
|
-
};
|
|
7120
|
-
content: {
|
|
7121
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
7122
|
-
};
|
|
7123
|
-
};
|
|
7124
6543
|
};
|
|
7125
6544
|
};
|
|
7126
6545
|
getCompanyMdTree: {
|
|
@@ -8225,9 +7644,7 @@ export interface operations {
|
|
|
8225
7644
|
parameters: {
|
|
8226
7645
|
query?: never;
|
|
8227
7646
|
header?: never;
|
|
8228
|
-
path
|
|
8229
|
-
orgId: string;
|
|
8230
|
-
};
|
|
7647
|
+
path?: never;
|
|
8231
7648
|
cookie?: never;
|
|
8232
7649
|
};
|
|
8233
7650
|
requestBody?: never;
|
|
@@ -8237,32 +7654,7 @@ export interface operations {
|
|
|
8237
7654
|
headers: {
|
|
8238
7655
|
[name: string]: unknown;
|
|
8239
7656
|
};
|
|
8240
|
-
content
|
|
8241
|
-
"application/json": {
|
|
8242
|
-
/** @constant */
|
|
8243
|
-
success?: true;
|
|
8244
|
-
/** Format: uuid */
|
|
8245
|
-
nextOrgId?: string | null;
|
|
8246
|
-
};
|
|
8247
|
-
};
|
|
8248
|
-
};
|
|
8249
|
-
/** @description Cannot leave personal org or sole owner */
|
|
8250
|
-
400: {
|
|
8251
|
-
headers: {
|
|
8252
|
-
[name: string]: unknown;
|
|
8253
|
-
};
|
|
8254
|
-
content: {
|
|
8255
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
8256
|
-
};
|
|
8257
|
-
};
|
|
8258
|
-
/** @description Not a member of this organization */
|
|
8259
|
-
404: {
|
|
8260
|
-
headers: {
|
|
8261
|
-
[name: string]: unknown;
|
|
8262
|
-
};
|
|
8263
|
-
content: {
|
|
8264
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
8265
|
-
};
|
|
7657
|
+
content?: never;
|
|
8266
7658
|
};
|
|
8267
7659
|
};
|
|
8268
7660
|
};
|
|
@@ -8651,24 +8043,6 @@ export interface operations {
|
|
|
8651
8043
|
"application/json": components["schemas"]["ScopeCheckBatchResponse"];
|
|
8652
8044
|
};
|
|
8653
8045
|
};
|
|
8654
|
-
/** @description Invalid input (empty array, >20 items, invalid scope format) */
|
|
8655
|
-
400: {
|
|
8656
|
-
headers: {
|
|
8657
|
-
[name: string]: unknown;
|
|
8658
|
-
};
|
|
8659
|
-
content: {
|
|
8660
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
8661
|
-
};
|
|
8662
|
-
};
|
|
8663
|
-
/** @description Not authenticated */
|
|
8664
|
-
401: {
|
|
8665
|
-
headers: {
|
|
8666
|
-
[name: string]: unknown;
|
|
8667
|
-
};
|
|
8668
|
-
content: {
|
|
8669
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
8670
|
-
};
|
|
8671
|
-
};
|
|
8672
8046
|
};
|
|
8673
8047
|
};
|
|
8674
8048
|
}
|