@macro-inc/sdk 0.3.0 → 0.4.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/README.md +45 -0
- package/dist/{chunk-Y4HQV7EL.js → chunk-AZJUIUIV.js} +26 -0
- package/dist/{chunk-KPR5JIGY.js → chunk-G43PLP2U.js} +95 -0
- package/dist/{chunk-IIICUUWY.js → chunk-PPR7IWZ7.js} +51 -51
- package/dist/{chunk-PTMBRVEK.js → chunk-PTX2RV2N.js} +84 -0
- package/dist/{chunk-OEHZOKGE.js → chunk-PZPTJI6F.js} +16 -0
- package/dist/{chunk-HR32RQGP.js → chunk-ZLBDES7U.js} +307 -1
- package/dist/generated/agent-fold/index.d.ts +6 -1
- package/dist/generated/agent-harness/index.d.ts +1 -1
- package/dist/generated/agent-harness/index.js +1 -1
- package/dist/generated/agent-harness/sdk.gen.d.ts +44 -1
- package/dist/generated/agent-harness/types.gen.d.ts +699 -0
- package/dist/generated/calendar/index.d.ts +1 -1
- package/dist/generated/calendar/index.js +1 -1
- package/dist/generated/calendar/sdk.gen.d.ts +41 -1
- package/dist/generated/calendar/types.gen.d.ts +904 -2
- package/dist/generated/cognition/index.d.ts +1 -1
- package/dist/generated/cognition/index.js +1 -1
- package/dist/generated/cognition/sdk.gen.d.ts +9 -1
- package/dist/generated/cognition/types.gen.d.ts +79 -0
- package/dist/generated/email/types.gen.d.ts +11 -1
- package/dist/generated/notification/index.js +1 -1
- package/dist/generated/notification/sdk.gen.d.ts +20 -20
- package/dist/generated/notification/types.gen.d.ts +77 -72
- package/dist/generated/scheduled-action/index.d.ts +1 -1
- package/dist/generated/scheduled-action/index.js +1 -1
- package/dist/generated/scheduled-action/sdk.gen.d.ts +4 -1
- package/dist/generated/scheduled-action/types.gen.d.ts +388 -7
- package/dist/generated/storage/index.d.ts +1 -1
- package/dist/generated/storage/index.js +1 -1
- package/dist/generated/storage/sdk.gen.d.ts +151 -1
- package/dist/generated/storage/types.gen.d.ts +3888 -139
- package/dist/src/entities/account-managers/grant.d.ts +39 -0
- package/dist/src/entities/account-managers/namespace.d.ts +17 -0
- package/dist/src/entities/agent-sessions/activity.d.ts +39 -0
- package/dist/src/entities/agent-sessions/agent-session.d.ts +42 -0
- package/dist/src/entities/agent-sessions/namespace.d.ts +7 -1
- package/dist/src/entities/agent-sessions/origin.d.ts +94 -0
- package/dist/src/entities/ai/namespace.d.ts +1 -1
- package/dist/src/entities/bots/bot.d.ts +108 -0
- package/dist/src/entities/bots/namespace.d.ts +15 -4
- package/dist/src/entities/bots/token.d.ts +34 -0
- package/dist/src/entities/calendar/booking-link.d.ts +49 -0
- package/dist/src/entities/calendar/booking-namespace.d.ts +130 -0
- package/dist/src/entities/calendar/booking-namespace.test.d.ts +1 -0
- package/dist/src/entities/calendar/booking.d.ts +77 -0
- package/dist/src/entities/calendar/create-confirmed.test.d.ts +1 -0
- package/dist/src/entities/calendar/namespace.d.ts +63 -15
- package/dist/src/entities/calls/call-record.d.ts +25 -3
- package/dist/src/entities/calls/connection.d.ts +53 -0
- package/dist/src/entities/calls/errors.d.ts +15 -0
- package/dist/src/entities/calls/namespace.d.ts +19 -2
- package/dist/src/entities/calls/participant.d.ts +22 -0
- package/dist/src/entities/channels/channel.d.ts +21 -3
- package/dist/src/entities/channels/namespace.d.ts +3 -3
- package/dist/src/entities/channels/post.d.ts +10 -2
- package/dist/src/entities/channels/thread.d.ts +4 -0
- package/dist/src/entities/chats/chat.d.ts +1 -1
- package/dist/src/entities/chats/namespace.d.ts +14 -1
- package/dist/src/entities/connected-apps/connected-app.d.ts +107 -0
- package/dist/src/entities/connected-apps/connector.d.ts +56 -0
- package/dist/src/entities/connected-apps/namespace.d.ts +74 -0
- package/dist/src/entities/crm/company.d.ts +1 -1
- package/dist/src/entities/crm/pipeline.d.ts +1 -1
- package/dist/src/entities/documents/document.d.ts +156 -7
- package/dist/src/entities/documents/namespace.d.ts +41 -2
- package/dist/src/entities/documents/office-files.d.ts +47 -0
- package/dist/src/entities/email/draft.d.ts +26 -4
- package/dist/src/entities/email/message.d.ts +91 -1
- package/dist/src/entities/email/namespace.d.ts +26 -3
- package/dist/src/entities/email/namespace.test.d.ts +1 -0
- package/dist/src/entities/email/thread.d.ts +7 -2
- package/dist/src/entities/external-chat/namespace.d.ts +2 -0
- package/dist/src/entities/favorites/namespace.d.ts +1 -1
- package/dist/src/entities/harnesses/namespace.d.ts +5 -1
- package/dist/src/entities/images/namespace.d.ts +5 -1
- package/dist/src/entities/me/namespace.d.ts +5 -1
- package/dist/src/entities/meetings/meeting.d.ts +5 -0
- package/dist/src/entities/messages/thread.d.ts +1 -1
- package/dist/src/entities/pins/namespace.d.ts +1 -1
- package/dist/src/entities/projects/namespace.d.ts +1 -1
- package/dist/src/entities/projects/project.d.ts +1 -1
- package/dist/src/entities/search/namespace.d.ts +65 -0
- package/dist/src/entities/search/options.d.ts +29 -0
- package/dist/src/entities/search/types.d.ts +90 -0
- package/dist/src/entities/tasks/namespace.d.ts +1 -1
- package/dist/src/entities/tasks/task.d.ts +4 -3
- package/dist/src/entities/users/namespace.d.ts +1 -1
- package/dist/src/entities/whatsapp/namespace.d.ts +2 -0
- package/dist/src/entities/workspace/items.d.ts +7 -0
- package/dist/src/entities/workspace/namespace.d.ts +14 -9
- package/dist/src/entities/workspace/query.d.ts +23 -0
- package/dist/src/entities/workspace/types.d.ts +6 -3
- package/dist/src/events/hydrate/call.d.ts +101 -0
- package/dist/src/events/types.d.ts +2 -1
- package/dist/src/macro.d.ts +33 -1
- package/dist/src/macro.js +6423 -4265
- package/dist/src/utils/activity.d.ts +23 -2
- package/package.json +1 -1
- package/dist/src/entities/search.d.ts +0 -53
|
@@ -829,6 +829,57 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
829
829
|
super(args);
|
|
830
830
|
_Sdk.__registry.set(this, args?.key);
|
|
831
831
|
}
|
|
832
|
+
/**
|
|
833
|
+
* List the managers of the caller's account.
|
|
834
|
+
*/
|
|
835
|
+
listAccountManagers(options) {
|
|
836
|
+
return (options?.client ?? this.client).get({ url: "/account-managers", ...options });
|
|
837
|
+
}
|
|
838
|
+
/**
|
|
839
|
+
* Ask another account for manager access, in your DM with them.
|
|
840
|
+
*/
|
|
841
|
+
requestAccountManager(options) {
|
|
842
|
+
return (options.client ?? this.client).post({
|
|
843
|
+
url: "/account-managers",
|
|
844
|
+
...options,
|
|
845
|
+
headers: {
|
|
846
|
+
"Content-Type": "application/json",
|
|
847
|
+
...options.headers
|
|
848
|
+
}
|
|
849
|
+
});
|
|
850
|
+
}
|
|
851
|
+
/**
|
|
852
|
+
* End a grant. Either side may withdraw it.
|
|
853
|
+
*/
|
|
854
|
+
revokeAccountManagerGrant(options) {
|
|
855
|
+
return (options.client ?? this.client).delete({ url: "/account-managers/{id}", ...options });
|
|
856
|
+
}
|
|
857
|
+
/**
|
|
858
|
+
* Read a grant the caller is part of.
|
|
859
|
+
*/
|
|
860
|
+
getAccountManagerGrant(options) {
|
|
861
|
+
return (options.client ?? this.client).get({ url: "/account-managers/{id}", ...options });
|
|
862
|
+
}
|
|
863
|
+
/**
|
|
864
|
+
* Approve or decline a request the caller didn't make.
|
|
865
|
+
*/
|
|
866
|
+
respondToAccountManagerRequest(options) {
|
|
867
|
+
return (options.client ?? this.client).post({
|
|
868
|
+
url: "/account-managers/{id}/response",
|
|
869
|
+
...options,
|
|
870
|
+
headers: {
|
|
871
|
+
"Content-Type": "application/json",
|
|
872
|
+
...options.headers
|
|
873
|
+
}
|
|
874
|
+
});
|
|
875
|
+
}
|
|
876
|
+
/**
|
|
877
|
+
* Issue the credential to the manager. Works once. A POST, so link previews
|
|
878
|
+
* and crawlers can't use it up.
|
|
879
|
+
*/
|
|
880
|
+
claimAccountManagerToken(options) {
|
|
881
|
+
return (options.client ?? this.client).post({ url: "/account-managers/{id}/token", ...options });
|
|
882
|
+
}
|
|
832
883
|
/**
|
|
833
884
|
* Handler for `GET /agents`.
|
|
834
885
|
*/
|
|
@@ -907,6 +958,25 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
907
958
|
}
|
|
908
959
|
});
|
|
909
960
|
}
|
|
961
|
+
/**
|
|
962
|
+
* Handler for `GET /bots`: the bots the caller can manage.
|
|
963
|
+
*/
|
|
964
|
+
listBots(options) {
|
|
965
|
+
return (options?.client ?? this.client).get({ url: "/bots", ...options });
|
|
966
|
+
}
|
|
967
|
+
/**
|
|
968
|
+
* Handler for `POST /bots`.
|
|
969
|
+
*/
|
|
970
|
+
createBot(options) {
|
|
971
|
+
return (options.client ?? this.client).post({
|
|
972
|
+
url: "/bots",
|
|
973
|
+
...options,
|
|
974
|
+
headers: {
|
|
975
|
+
"Content-Type": "application/json",
|
|
976
|
+
...options.headers
|
|
977
|
+
}
|
|
978
|
+
});
|
|
979
|
+
}
|
|
910
980
|
/**
|
|
911
981
|
* Handler for `GET /bots/me`.
|
|
912
982
|
*/
|
|
@@ -923,6 +993,31 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
923
993
|
getBotOwnerProfiles(options) {
|
|
924
994
|
return (options?.client ?? this.client).get({ url: "/bots/profiles", ...options });
|
|
925
995
|
}
|
|
996
|
+
/**
|
|
997
|
+
* Handler for `DELETE /bots/{bot_id}`.
|
|
998
|
+
*/
|
|
999
|
+
deleteBot(options) {
|
|
1000
|
+
return (options.client ?? this.client).delete({ url: "/bots/{bot_id}", ...options });
|
|
1001
|
+
}
|
|
1002
|
+
/**
|
|
1003
|
+
* Handler for `GET /bots/{bot_id}`.
|
|
1004
|
+
*/
|
|
1005
|
+
getBot(options) {
|
|
1006
|
+
return (options.client ?? this.client).get({ url: "/bots/{bot_id}", ...options });
|
|
1007
|
+
}
|
|
1008
|
+
/**
|
|
1009
|
+
* Handler for `PATCH /bots/{bot_id}`.
|
|
1010
|
+
*/
|
|
1011
|
+
patchBot(options) {
|
|
1012
|
+
return (options.client ?? this.client).patch({
|
|
1013
|
+
url: "/bots/{bot_id}",
|
|
1014
|
+
...options,
|
|
1015
|
+
headers: {
|
|
1016
|
+
"Content-Type": "application/json",
|
|
1017
|
+
...options.headers
|
|
1018
|
+
}
|
|
1019
|
+
});
|
|
1020
|
+
}
|
|
926
1021
|
/**
|
|
927
1022
|
* Handler for `GET /bots/{bot_id}/channels`.
|
|
928
1023
|
*/
|
|
@@ -935,6 +1030,31 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
935
1030
|
removeBotFromChannelByBot(options) {
|
|
936
1031
|
return (options.client ?? this.client).delete({ url: "/bots/{bot_id}/channels/{channel_id}", ...options });
|
|
937
1032
|
}
|
|
1033
|
+
/**
|
|
1034
|
+
* Handler for `GET /bots/{bot_id}/tokens`.
|
|
1035
|
+
*/
|
|
1036
|
+
listBotTokens(options) {
|
|
1037
|
+
return (options.client ?? this.client).get({ url: "/bots/{bot_id}/tokens", ...options });
|
|
1038
|
+
}
|
|
1039
|
+
/**
|
|
1040
|
+
* Handler for `POST /bots/{bot_id}/tokens`.
|
|
1041
|
+
*/
|
|
1042
|
+
createBotToken(options) {
|
|
1043
|
+
return (options.client ?? this.client).post({
|
|
1044
|
+
url: "/bots/{bot_id}/tokens",
|
|
1045
|
+
...options,
|
|
1046
|
+
headers: {
|
|
1047
|
+
"Content-Type": "application/json",
|
|
1048
|
+
...options.headers
|
|
1049
|
+
}
|
|
1050
|
+
});
|
|
1051
|
+
}
|
|
1052
|
+
/**
|
|
1053
|
+
* Handler for `DELETE /bots/{bot_id}/tokens/{token_id}`.
|
|
1054
|
+
*/
|
|
1055
|
+
revokeBotToken(options) {
|
|
1056
|
+
return (options.client ?? this.client).delete({ url: "/bots/{bot_id}/tokens/{token_id}", ...options });
|
|
1057
|
+
}
|
|
938
1058
|
/**
|
|
939
1059
|
* Return calendar occurrences visible to the authenticated requester.
|
|
940
1060
|
*/
|
|
@@ -998,6 +1118,12 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
998
1118
|
getActiveCalls(options) {
|
|
999
1119
|
return (options?.client ?? this.client).get({ url: "/call/active", ...options });
|
|
1000
1120
|
}
|
|
1121
|
+
/**
|
|
1122
|
+
* List all channel and standalone calls this account can join.
|
|
1123
|
+
*/
|
|
1124
|
+
getLiveCalls(options) {
|
|
1125
|
+
return (options?.client ?? this.client).get({ url: "/call/active/all", ...options });
|
|
1126
|
+
}
|
|
1001
1127
|
/**
|
|
1002
1128
|
* Read the live call discussion as a verified guest.
|
|
1003
1129
|
*/
|
|
@@ -1109,7 +1235,14 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1109
1235
|
* Handle `POST /call/meetings/join/{token}` through the call domain service.
|
|
1110
1236
|
*/
|
|
1111
1237
|
meetingJoin(options) {
|
|
1112
|
-
return (options.client ?? this.client).post({
|
|
1238
|
+
return (options.client ?? this.client).post({
|
|
1239
|
+
url: "/call/meetings/join/{token}",
|
|
1240
|
+
...options,
|
|
1241
|
+
headers: {
|
|
1242
|
+
"Content-Type": "application/json",
|
|
1243
|
+
...options.headers
|
|
1244
|
+
}
|
|
1245
|
+
});
|
|
1113
1246
|
}
|
|
1114
1247
|
/**
|
|
1115
1248
|
* Read the participant preview for an authenticated invitation holder.
|
|
@@ -1215,12 +1348,49 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1215
1348
|
declineCall(options) {
|
|
1216
1349
|
return (options.client ?? this.client).post({ url: "/call/record/{call_id}/decline", ...options });
|
|
1217
1350
|
}
|
|
1351
|
+
/**
|
|
1352
|
+
* Join a live call by its session id.
|
|
1353
|
+
*/
|
|
1354
|
+
joinCall(options) {
|
|
1355
|
+
return (options.client ?? this.client).post({
|
|
1356
|
+
url: "/call/record/{call_id}/join",
|
|
1357
|
+
...options,
|
|
1358
|
+
headers: {
|
|
1359
|
+
"Content-Type": "application/json",
|
|
1360
|
+
...options.headers
|
|
1361
|
+
}
|
|
1362
|
+
});
|
|
1363
|
+
}
|
|
1364
|
+
/**
|
|
1365
|
+
* Leave a specific live call.
|
|
1366
|
+
*/
|
|
1367
|
+
leaveCall(options) {
|
|
1368
|
+
return (options.client ?? this.client).post({ url: "/call/record/{call_id}/leave", ...options });
|
|
1369
|
+
}
|
|
1218
1370
|
/**
|
|
1219
1371
|
* Handle `POST /call/record/{call_id}/link` through the call domain service.
|
|
1220
1372
|
*/
|
|
1221
1373
|
meetingShare(options) {
|
|
1222
1374
|
return (options.client ?? this.client).post({ url: "/call/record/{call_id}/link", ...options });
|
|
1223
1375
|
}
|
|
1376
|
+
/**
|
|
1377
|
+
* Read live participants and track state for a joinable call.
|
|
1378
|
+
*/
|
|
1379
|
+
getCallParticipants(options) {
|
|
1380
|
+
return (options.client ?? this.client).get({ url: "/call/record/{call_id}/participants", ...options });
|
|
1381
|
+
}
|
|
1382
|
+
/**
|
|
1383
|
+
* Stream the recording bytes for a call record the caller may view.
|
|
1384
|
+
*/
|
|
1385
|
+
getCallRecording(options) {
|
|
1386
|
+
return (options.client ?? this.client).get({ url: "/call/record/{call_id}/recording", ...options });
|
|
1387
|
+
}
|
|
1388
|
+
/**
|
|
1389
|
+
* Read this account's ring state for a call.
|
|
1390
|
+
*/
|
|
1391
|
+
getCallRingState(options) {
|
|
1392
|
+
return (options.client ?? this.client).get({ url: "/call/record/{call_id}/ring", ...options });
|
|
1393
|
+
}
|
|
1224
1394
|
/**
|
|
1225
1395
|
* Handler for `POST /call/record/{call_id}/share-with-team/toggle`.
|
|
1226
1396
|
*
|
|
@@ -1300,6 +1470,19 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1300
1470
|
getOrCreateCall(options) {
|
|
1301
1471
|
return (options.client ?? this.client).get({ url: "/call/{channel_id}", ...options });
|
|
1302
1472
|
}
|
|
1473
|
+
/**
|
|
1474
|
+
* Start or join a channel call explicitly.
|
|
1475
|
+
*/
|
|
1476
|
+
startCall(options) {
|
|
1477
|
+
return (options.client ?? this.client).post({
|
|
1478
|
+
url: "/call/{channel_id}",
|
|
1479
|
+
...options,
|
|
1480
|
+
headers: {
|
|
1481
|
+
"Content-Type": "application/json",
|
|
1482
|
+
...options.headers
|
|
1483
|
+
}
|
|
1484
|
+
});
|
|
1485
|
+
}
|
|
1303
1486
|
/**
|
|
1304
1487
|
* Handler for `GET /call/{channel_id}/active`.
|
|
1305
1488
|
*
|
|
@@ -1559,6 +1742,25 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1559
1742
|
getChannelAttachments(options) {
|
|
1560
1743
|
return (options.client ?? this.client).get({ url: "/channels/{channel_id}/attachments", ...options });
|
|
1561
1744
|
}
|
|
1745
|
+
/**
|
|
1746
|
+
* Handler for `GET /channels/{channel_id}/bots`.
|
|
1747
|
+
*/
|
|
1748
|
+
listChannelBots(options) {
|
|
1749
|
+
return (options.client ?? this.client).get({ url: "/channels/{channel_id}/bots", ...options });
|
|
1750
|
+
}
|
|
1751
|
+
/**
|
|
1752
|
+
* Handler for `POST /channels/{channel_id}/bots`.
|
|
1753
|
+
*/
|
|
1754
|
+
addChannelBot(options) {
|
|
1755
|
+
return (options.client ?? this.client).post({
|
|
1756
|
+
url: "/channels/{channel_id}/bots",
|
|
1757
|
+
...options,
|
|
1758
|
+
headers: {
|
|
1759
|
+
"Content-Type": "application/json",
|
|
1760
|
+
...options.headers
|
|
1761
|
+
}
|
|
1762
|
+
});
|
|
1763
|
+
}
|
|
1562
1764
|
/**
|
|
1563
1765
|
* Handler for `POST /channels/{channel_id}/bots/scoped`.
|
|
1564
1766
|
*/
|
|
@@ -2569,6 +2771,23 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2569
2771
|
getSystemSkillsHandler(options) {
|
|
2570
2772
|
return (options?.client ?? this.client).get({ url: "/documents/system_skills", ...options });
|
|
2571
2773
|
}
|
|
2774
|
+
/**
|
|
2775
|
+
* Upload a file's bytes as a new document, up to 25 MiB.
|
|
2776
|
+
*
|
|
2777
|
+
* The body is the raw file content. Preview generation and indexing may
|
|
2778
|
+
* finish after the response.
|
|
2779
|
+
*/
|
|
2780
|
+
uploadFile(options) {
|
|
2781
|
+
return (options.client ?? this.client).post({
|
|
2782
|
+
bodySerializer: null,
|
|
2783
|
+
url: "/documents/upload",
|
|
2784
|
+
...options,
|
|
2785
|
+
headers: {
|
|
2786
|
+
"Content-Type": "application/octet-stream",
|
|
2787
|
+
...options.headers
|
|
2788
|
+
}
|
|
2789
|
+
});
|
|
2790
|
+
}
|
|
2572
2791
|
/**
|
|
2573
2792
|
* Handler for `DELETE /documents/{document_id}`.
|
|
2574
2793
|
*
|
|
@@ -2659,6 +2878,15 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2659
2878
|
}
|
|
2660
2879
|
});
|
|
2661
2880
|
}
|
|
2881
|
+
/**
|
|
2882
|
+
* Read a Figma (.fig) design as text with the caller's view access: its
|
|
2883
|
+
* pages, each page's top-level frames and sections with their text, the
|
|
2884
|
+
* components their instances use, and the file's components, styles and
|
|
2885
|
+
* variables.
|
|
2886
|
+
*/
|
|
2887
|
+
readDesign(options) {
|
|
2888
|
+
return (options.client ?? this.client).get({ url: "/documents/{document_id}/design", ...options });
|
|
2889
|
+
}
|
|
2662
2890
|
/**
|
|
2663
2891
|
* Generates a presigned url to download the raw content of the document
|
|
2664
2892
|
* For files with modification layers, they will not be applied in the downloaded file.
|
|
@@ -2675,6 +2903,14 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2675
2903
|
getDocumentGithubPullRequests(options) {
|
|
2676
2904
|
return (options.client ?? this.client).get({ url: "/documents/{document_id}/github_prs", ...options });
|
|
2677
2905
|
}
|
|
2906
|
+
/**
|
|
2907
|
+
* Read an Illustrator (.ai) document as text with the caller's view access:
|
|
2908
|
+
* its artboards, its layer tree from top to bottom, and the text of its
|
|
2909
|
+
* text objects.
|
|
2910
|
+
*/
|
|
2911
|
+
readIllustratorDocument(options) {
|
|
2912
|
+
return (options.client ?? this.client).get({ url: "/documents/{document_id}/illustrator", ...options });
|
|
2913
|
+
}
|
|
2678
2914
|
/**
|
|
2679
2915
|
* Gets the presigned url(s) for the document. aka location
|
|
2680
2916
|
*/
|
|
@@ -2695,6 +2931,52 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2695
2931
|
permanentlyDeleteDocument(options) {
|
|
2696
2932
|
return (options.client ?? this.client).delete({ url: "/documents/{document_id}/permanent", ...options });
|
|
2697
2933
|
}
|
|
2934
|
+
/**
|
|
2935
|
+
* Read a Photoshop (.psd or .psb) document as text with the caller's view
|
|
2936
|
+
* access: its canvas, its layer tree from top to bottom with each layer's
|
|
2937
|
+
* settings, and the text of its text layers.
|
|
2938
|
+
*/
|
|
2939
|
+
readPhotoshopDocument(options) {
|
|
2940
|
+
return (options.client ?? this.client).get({ url: "/documents/{document_id}/photoshop", ...options });
|
|
2941
|
+
}
|
|
2942
|
+
/**
|
|
2943
|
+
* Read a PowerPoint deck as text with the caller's view access: every
|
|
2944
|
+
* slide's id and shapes with their ids, positions and text. Edits address
|
|
2945
|
+
* slides and shapes by these ids, which are not slide numbers.
|
|
2946
|
+
*/
|
|
2947
|
+
readPresentation(options) {
|
|
2948
|
+
return (options.client ?? this.client).get({ url: "/documents/{document_id}/presentation", ...options });
|
|
2949
|
+
}
|
|
2950
|
+
/**
|
|
2951
|
+
* Create an edited copy of a PowerPoint deck as a new presentation, leaving
|
|
2952
|
+
* the original unchanged. Needs view access to the deck and edit access to
|
|
2953
|
+
* the destination project; the outcome's `documentId` is the copy.
|
|
2954
|
+
*/
|
|
2955
|
+
copyPresentation(options) {
|
|
2956
|
+
return (options.client ?? this.client).post({
|
|
2957
|
+
url: "/documents/{document_id}/presentation/copy",
|
|
2958
|
+
...options,
|
|
2959
|
+
headers: {
|
|
2960
|
+
"Content-Type": "application/json",
|
|
2961
|
+
...options.headers
|
|
2962
|
+
}
|
|
2963
|
+
});
|
|
2964
|
+
}
|
|
2965
|
+
/**
|
|
2966
|
+
* Apply a batch of edit operations to a PowerPoint deck atomically with the
|
|
2967
|
+
* caller's edit access, saved as a new version. If any operation fails,
|
|
2968
|
+
* nothing is saved.
|
|
2969
|
+
*/
|
|
2970
|
+
editPresentation(options) {
|
|
2971
|
+
return (options.client ?? this.client).post({
|
|
2972
|
+
url: "/documents/{document_id}/presentation/edits",
|
|
2973
|
+
...options,
|
|
2974
|
+
headers: {
|
|
2975
|
+
"Content-Type": "application/json",
|
|
2976
|
+
...options.headers
|
|
2977
|
+
}
|
|
2978
|
+
});
|
|
2979
|
+
}
|
|
2698
2980
|
/**
|
|
2699
2981
|
* Fetches the document pdf processing result for a given document id
|
|
2700
2982
|
*/
|
|
@@ -2786,6 +3068,30 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2786
3068
|
getDocumentViewsHandler(options) {
|
|
2787
3069
|
return (options.client ?? this.client).get({ url: "/documents/{document_id}/views", ...options });
|
|
2788
3070
|
}
|
|
3071
|
+
/**
|
|
3072
|
+
* Read an uploaded Word document as it stands now, including edits made in
|
|
3073
|
+
* Macro, with the caller's view access: every paragraph, table cell and
|
|
3074
|
+
* content control with its stable id, style and text, tracked changes, and
|
|
3075
|
+
* Word comments. Long documents are paged.
|
|
3076
|
+
*/
|
|
3077
|
+
readWordDocument(options) {
|
|
3078
|
+
return (options.client ?? this.client).get({ url: "/documents/{document_id}/word", ...options });
|
|
3079
|
+
}
|
|
3080
|
+
/**
|
|
3081
|
+
* Apply a batch of edits to an uploaded Word document's live copy
|
|
3082
|
+
* atomically with the caller's edit access. Nothing changes if any
|
|
3083
|
+
* operation fails. Returns the changed blocks as they now read.
|
|
3084
|
+
*/
|
|
3085
|
+
editWordDocument(options) {
|
|
3086
|
+
return (options.client ?? this.client).post({
|
|
3087
|
+
url: "/documents/{document_id}/word/edits",
|
|
3088
|
+
...options,
|
|
3089
|
+
headers: {
|
|
3090
|
+
"Content-Type": "application/json",
|
|
3091
|
+
...options.headers
|
|
3092
|
+
}
|
|
3093
|
+
});
|
|
3094
|
+
}
|
|
2789
3095
|
/**
|
|
2790
3096
|
* Gets a particular document by its id
|
|
2791
3097
|
*/
|
|
@@ -720,7 +720,12 @@ export type FailureNoticeKind =
|
|
|
720
720
|
* The provider ended the run in failure; its own page for the run is
|
|
721
721
|
* where any detail it kept lives.
|
|
722
722
|
*/
|
|
723
|
-
"provider_run_failed"
|
|
723
|
+
"provider_run_failed" |
|
|
724
|
+
/**
|
|
725
|
+
* The runtime accepted the prompt but never handed it to the agent;
|
|
726
|
+
* the fix is to send it again.
|
|
727
|
+
*/
|
|
728
|
+
"prompt_not_delivered";
|
|
724
729
|
/**
|
|
725
730
|
* Every filter, each over one field of one kind of item. Id lists match any
|
|
726
731
|
* of their ids.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { type Options, Sdk } from './sdk.gen';
|
|
2
|
-
export type { AccessLevel, AgentAction, AgentActionId, AgentConfigKindDto, AgentConfigOptionDto, AgentConfigSelectOptionDto, AgentConversationDto, AgentConversationsDto, AgentConversationSessionDto, AgentConversationTurnDto, AgentMode, AgentModeChoiceRequest, AgentModeChoiceResponse, AgentModelDto, AgentModelsStatusDto, AgentPermissionAction, AgentPromptAction, AgentRepositoriesResponse, AgentRepositoryBranchesResponse, AgentRepositoryDto, AgentRespondElicitationAction, AgentSessionChangesPatchResponse, AgentSessionChangesResponse, AgentSessionFoldedLogResponse, AgentSessionLogEntryDto, AgentSessionLogResponse, AgentSessionPreviewData, AgentSessionPreviewDto, AgentSessionQueueResponse, AgentSessionResponse, AgentSessionsForPullRequestData, AgentSessionsForPullRequestError, AgentSessionsForPullRequestErrors, AgentSessionsForPullRequestResponse, AgentSessionsForPullRequestResponses, AgentSessionsForPullRequestsData, AgentSessionsForPullRequestsError, AgentSessionsForPullRequestsErrors, AgentSessionsForPullRequestsResponse, AgentSessionsForPullRequestsResponses, AgentSetConfigOptionAction, AgentSetModelAction, AiAdmissionErrorBody, AiSuggestions, AnswerAgentSessionToolApprovalData, AnswerAgentSessionToolApprovalError, AnswerAgentSessionToolApprovalErrors, AnswerAgentSessionToolApprovalResponse, AnswerAgentSessionToolApprovalResponses, AnswerToolApprovalRequest, AnswerToolApprovalResponse, AppConnectedRequest, ArchiveCause, AutoArchiveOverridesBody, AutoArchivePreferencesBody, BotId, CalendarSuggestions, CallSearchSuggestions, CapabilityHarnessDto, CaptureAttemptDto, CaptureOutcomeDto, ChangedFileDto, ChangesetDto, ChangesetSourceDto, ChannelSearchSuggestions, ChannelSharePermission, ChooseAgentModeData, ChooseAgentModeErrors, ChooseAgentModeResponse, ChooseAgentModeResponses, ClassifyData, ClassifyErrors, ClassifyInputRequest, ClassifyInputResponse, ClassifyResponse, ClassifyResponses, ClientOptions, CodingPreferencesBody, ControlAgentSessionData, ControlAgentSessionError, ControlAgentSessionErrors, ControlAgentSessionResponse, ControlAgentSessionResponses, ControlRequest, ControlResponse, ControlStatusDto, ConversationTurnState, CreateAgentSessionData, CreateAgentSessionError, CreateAgentSessionErrors, CreateAgentSessionRequest, CreateAgentSessionResponse, CreateAgentSessionResponse2, CreateAgentSessionResponses, CreateReview, CreateSessionReviewData, CreateSessionReviewErrors, CreateSessionReviewResponse, CreateSessionReviewResponses, CreateSessionThread, DecideSessionReviewData, DecideSessionReviewErrors, DecideSessionReviewResponse, DecideSessionReviewResponses, DecisionVia, DeleteAgentSessionData, DeleteAgentSessionError, DeleteAgentSessionErrors, DeleteAgentSessionResponses, DiscoverAgentCapabilitiesHandlerData, DiscoverAgentCapabilitiesHandlerErrors, DiscoverAgentCapabilitiesHandlerResponse, DiscoverAgentCapabilitiesHandlerResponses, DiscoverAgentCapabilitiesRequest, DiscoverAgentCapabilitiesResponse, DocumentId, EditQueuedActionData, EditQueuedActionError, EditQueuedActionErrors, EditQueuedActionRequest, EditQueuedActionResponse, EditQueuedActionResponses, ElicitationAnswer, ElicitationContentValue, ElicitationRequestId, EmailSearchSuggestions, EmailSuggestions, ExecutionActivity, ExecutionId, ExecutionRecord, ExecutionStatus, ExternalSessionResponse, ExtractData, ExtractErrors, ExtractInputRequest, ExtractInputResponse, ExtractResponse, ExtractResponses, FileChangeKindDto, GetAgentAutoArchivePreferencesData, GetAgentAutoArchivePreferencesError, GetAgentAutoArchivePreferencesErrors, GetAgentAutoArchivePreferencesResponse, GetAgentAutoArchivePreferencesResponses, GetAgentCodingPreferencesData, GetAgentCodingPreferencesError, GetAgentCodingPreferencesErrors, GetAgentCodingPreferencesResponse, GetAgentCodingPreferencesResponses, GetAgentSandboxSizeData, GetAgentSandboxSizeError, GetAgentSandboxSizeErrors, GetAgentSandboxSizeResponse, GetAgentSandboxSizeResponses, GetAgentSessionAutoArchiveData, GetAgentSessionAutoArchiveError, GetAgentSessionAutoArchiveErrors, GetAgentSessionAutoArchiveResponse, GetAgentSessionAutoArchiveResponses, GetAgentSessionChangesData, GetAgentSessionChangesError, GetAgentSessionChangesErrors, GetAgentSessionChangesPatchData, GetAgentSessionChangesPatchError, GetAgentSessionChangesPatchErrors, GetAgentSessionChangesPatchResponse, GetAgentSessionChangesPatchResponses, GetAgentSessionChangesResponse, GetAgentSessionChangesResponses, GetAgentSessionData, GetAgentSessionError, GetAgentSessionErrors, GetAgentSessionFoldedLogData, GetAgentSessionFoldedLogError, GetAgentSessionFoldedLogErrors, GetAgentSessionFoldedLogResponse, GetAgentSessionFoldedLogResponses, GetAgentSessionLogData, GetAgentSessionLogError, GetAgentSessionLogErrors, GetAgentSessionLogResponse, GetAgentSessionLogResponses, GetAgentSessionPermissionsData, GetAgentSessionPermissionsError, GetAgentSessionPermissionsErrors, GetAgentSessionPermissionsResponse, GetAgentSessionPermissionsResponses, GetAgentSessionQueueData, GetAgentSessionQueueError, GetAgentSessionQueueErrors, GetAgentSessionQueueResponse, GetAgentSessionQueueResponses, GetAgentSessionResponse, GetAgentSessionResponses, GetCodeExecutionData, GetCodeExecutionErrors, GetCodeExecutionResponse, GetCodeExecutionResponses, GetSessionReviewData, GetSessionReviewErrors, GetSessionReviewResponse, GetSessionReviewResponses, GitRefDto, InputIntent, InputPropertyDefinition, InputPropertySuggestion, InputSuggestions, IntentScore, LinkAgentSessionPullRequestData, LinkAgentSessionPullRequestError, LinkAgentSessionPullRequestErrors, LinkAgentSessionPullRequestResponse, LinkAgentSessionPullRequestResponses, LinkShare, ListAgentConversationsData, ListAgentConversationsErrors, ListAgentConversationsResponse, ListAgentConversationsResponses, ListAgentRepositoriesData, ListAgentRepositoriesErrors, ListAgentRepositoriesResponse, ListAgentRepositoriesResponses, ListAgentRepositoryBranchesData, ListAgentRepositoryBranchesErrors, ListAgentRepositoryBranchesResponse, ListAgentRepositoryBranchesResponses, ListAgentSessionPullRequestsData, ListAgentSessionPullRequestsError, ListAgentSessionPullRequestsErrors, ListAgentSessionPullRequestsResponse, ListAgentSessionPullRequestsResponses, ListExecutionReviewsData, ListExecutionReviewsErrors, ListExecutionReviewsResponse, ListExecutionReviewsResponses, LoadAgentModelsHandlerData, LoadAgentModelsHandlerErrors, LoadAgentModelsHandlerResponse, LoadAgentModelsHandlerResponses, LoadAgentModelsRequest, LoadAgentModelsResponse, LogDirectionDto, LogFrameDto, MessageParent, MessageSuggestions, ModelHarnessDto, MonthlyWeekday, NoteSuggestions, PermissionAnswer, PresentSessionViewData, PresentSessionViewErrors, PresentSessionViewResponse, PresentSessionViewResponses, PresentView, PreviewAgentSessionsData, PreviewAgentSessionsError, PreviewAgentSessionsErrors, PreviewAgentSessionsRequest, PreviewAgentSessionsResponse, PreviewAgentSessionsResponse2, PreviewAgentSessionsResponses, PromptAttachment, PullRequestLinkedSession, PullRequestLinkSource, PullRequestSessions, PullRequestSessionsResponse, PullRequestsSessionsResponse, PullRequestUrl, PullRequestUrls, PutAgentAutoArchivePreferencesData, PutAgentAutoArchivePreferencesError, PutAgentAutoArchivePreferencesErrors, PutAgentAutoArchivePreferencesResponse, PutAgentAutoArchivePreferencesResponses, PutAgentCodingPreferencesData, PutAgentCodingPreferencesError, PutAgentCodingPreferencesErrors, PutAgentCodingPreferencesResponse, PutAgentCodingPreferencesResponses, PutAgentSandboxSizeData, PutAgentSandboxSizeError, PutAgentSandboxSizeErrors, PutAgentSandboxSizeResponse, PutAgentSandboxSizeResponses, PutAgentSessionAutoArchiveData, PutAgentSessionAutoArchiveError, PutAgentSessionAutoArchiveErrors, PutAgentSessionAutoArchiveResponse, PutAgentSessionAutoArchiveResponses, PutAgentSessionSandboxSizeData, PutAgentSessionSandboxSizeError, PutAgentSessionSandboxSizeErrors, PutAgentSessionSandboxSizeResponse, PutAgentSessionSandboxSizeResponses, QuerySearchSuggestions, QueuedActionDto, RecordedCallStatus, RecordedToolCall, RecurrenceEnd, RecurrenceFrequency, RecurrenceSuggestion, RefreshAgentSessionChangesData, RefreshAgentSessionChangesError, RefreshAgentSessionChangesErrors, RefreshAgentSessionChangesResponse, RefreshAgentSessionChangesResponses, RemoveQueuedActionData, RemoveQueuedActionError, RemoveQueuedActionErrors, RemoveQueuedActionResponse, RemoveQueuedActionResponses, RenameAgentSessionData, RenameAgentSessionError, RenameAgentSessionErrors, RenameAgentSessionRequest, RenameAgentSessionResponse, RenameAgentSessionResponses, ReportAgentSessionAppConnectedData, ReportAgentSessionAppConnectedError, ReportAgentSessionAppConnectedErrors, ReportAgentSessionAppConnectedResponses, RetryAgentConversationTurnData, RetryAgentConversationTurnErrors, RetryAgentConversationTurnRequest, RetryAgentConversationTurnResponse, RetryAgentConversationTurnResponses, ReviewDecision, ReviewDecisionContext, ReviewId, ReviewRecord, SandboxSize, SandboxSizeBody, SearchSuggestions, SearchType, SessionAutoArchiveResponse, SessionBot, SessionPullRequestLink, SessionPullRequestsResponse, SessionStatusDto, SetAgentSessionArchivedData, SetAgentSessionArchivedError, SetAgentSessionArchivedErrors, SetAgentSessionArchivedRequest, SetAgentSessionArchivedResponse, SetAgentSessionArchivedResponses, SharePermissionV2, StartFreshAgentConversationData, StartFreshAgentConversationErrors, StartFreshAgentConversationRequest, StartFreshAgentConversationResponse, StartFreshAgentConversationResponses, SteerQueuedActionData, SteerQueuedActionError, SteerQueuedActionErrors, SteerQueuedActionResponse, SteerQueuedActionResponses, TaskSearchSuggestions, TaskSuggestions, ToolActor, ToolApprovalAnswerDto, ToolApprovalStatusDto, UnlinkAgentSessionPullRequestData, UnlinkAgentSessionPullRequestError, UnlinkAgentSessionPullRequestErrors, UnlinkAgentSessionPullRequestResponse, UnlinkAgentSessionPullRequestResponses, UpdateAgentSessionPermissionsData, UpdateAgentSessionPermissionsError, UpdateAgentSessionPermissionsErrors, UpdateAgentSessionPermissionsResponse, UpdateAgentSessionPermissionsResponses, UpdateChannelSharePermission, UpdateOperation, UpdateSharePermissionRequestV2, WarmAgentSessionHandlerData, WarmAgentSessionHandlerResponse, WarmAgentSessionHandlerResponses, WarmAgentSessionRequest, WarmAgentSessionResponse, WeekdayCode, WithAgentSessionId } from './types.gen';
|
|
2
|
+
export type { AccessLevel, ActivityWireRow, AddConnectedMcpServerData, AddConnectedMcpServerErrors, AddConnectedMcpServerResponse, AddConnectedMcpServerResponses, AgentAction, AgentActionId, AgentActivityCursor, AgentActivityPage, AgentActor, AgentConfigKindDto, AgentConfigOptionDto, AgentConfigSelectOptionDto, AgentConversationDto, AgentConversationsDto, AgentConversationSessionDto, AgentConversationTurnDto, AgentMode, AgentModeChoiceRequest, AgentModeChoiceResponse, AgentModelDto, AgentModelsStatusDto, AgentPermissionAction, AgentPromptAction, AgentRepositoriesResponse, AgentRepositoryBranchesResponse, AgentRepositoryDto, AgentRespondElicitationAction, AgentSessionChangesPatchResponse, AgentSessionChangesResponse, AgentSessionFoldedLogResponse, AgentSessionLogEntryDto, AgentSessionLogResponse, AgentSessionPreviewData, AgentSessionPreviewDto, AgentSessionQueueResponse, AgentSessionResponse, AgentSessionsForPullRequestData, AgentSessionsForPullRequestError, AgentSessionsForPullRequestErrors, AgentSessionsForPullRequestResponse, AgentSessionsForPullRequestResponses, AgentSessionsForPullRequestsData, AgentSessionsForPullRequestsError, AgentSessionsForPullRequestsErrors, AgentSessionsForPullRequestsResponse, AgentSessionsForPullRequestsResponses, AgentSetConfigOptionAction, AgentSetModelAction, AiAdmissionErrorBody, AiSuggestions, AnswerAgentSessionToolApprovalData, AnswerAgentSessionToolApprovalError, AnswerAgentSessionToolApprovalErrors, AnswerAgentSessionToolApprovalResponse, AnswerAgentSessionToolApprovalResponses, AnswerToolApprovalRequest, AnswerToolApprovalResponse, AppConnectedRequest, ArchiveCause, AutoArchiveOverridesBody, AutoArchivePreferencesBody, BotId, CalendarSuggestions, CallConnectedAppToolData, CallConnectedAppToolErrors, CallConnectedAppToolResponse, CallConnectedAppToolResponses, CallConnectedTool, Caller, CallSearchSuggestions, CapabilityHarnessDto, CaptureAttemptDto, CaptureOutcomeDto, ChangedFileDto, ChangesetDto, ChangesetSourceDto, ChannelSearchSuggestions, ChannelSharePermission, ChooseAgentModeData, ChooseAgentModeErrors, ChooseAgentModeResponse, ChooseAgentModeResponses, ClassifyData, ClassifyErrors, ClassifyInputRequest, ClassifyInputResponse, ClassifyResponse, ClassifyResponses, ClientOptions, CodingPreferencesBody, ConnectedApp, ConnectedAppKind, ConnectedTool, ConnectedToolMatch, ConnectedToolResult, ConnectedToolSearch, ConnectMcpServer, ConnectMcpServerResponse, ConnectorTool, ControlAgentSessionData, ControlAgentSessionError, ControlAgentSessionErrors, ControlAgentSessionResponse, ControlAgentSessionResponses, ControlRequest, ControlResponse, ControlStatusDto, ConversationTurnState, CreateAgentSessionData, CreateAgentSessionError, CreateAgentSessionErrors, CreateAgentSessionRequest, CreateAgentSessionResponse, CreateAgentSessionResponse2, CreateAgentSessionResponses, CreateReview, CreateSessionReviewData, CreateSessionReviewErrors, CreateSessionReviewResponse, CreateSessionReviewResponses, CreateSessionThread, DecideSessionReviewData, DecideSessionReviewErrors, DecideSessionReviewResponse, DecideSessionReviewResponses, DecisionVia, DeleteAgentSessionData, DeleteAgentSessionError, DeleteAgentSessionErrors, DeleteAgentSessionResponses, DiscoverAgentCapabilitiesHandlerData, DiscoverAgentCapabilitiesHandlerErrors, DiscoverAgentCapabilitiesHandlerResponse, DiscoverAgentCapabilitiesHandlerResponses, DiscoverAgentCapabilitiesRequest, DiscoverAgentCapabilitiesResponse, DiscoverConnectedAppsData, DiscoverConnectedAppsErrors, DiscoverConnectedAppsResponse, DiscoverConnectedAppsResponses, DiscoverConnectorsResponse, DiscoveredApp, DiscoveryRequest, DiscoveryResult, DocumentId, EditQueuedActionData, EditQueuedActionError, EditQueuedActionErrors, EditQueuedActionRequest, EditQueuedActionResponse, EditQueuedActionResponses, ElicitationAnswer, ElicitationContentValue, ElicitationRequestId, EmailSearchSuggestions, EmailSuggestions, EntityType, ExecutionActivity, ExecutionId, ExecutionRecord, ExecutionStatus, ExternalSessionResponse, ExtractData, ExtractErrors, ExtractInputRequest, ExtractInputResponse, ExtractResponse, ExtractResponses, FileChangeKindDto, GetAgentAutoArchivePreferencesData, GetAgentAutoArchivePreferencesError, GetAgentAutoArchivePreferencesErrors, GetAgentAutoArchivePreferencesResponse, GetAgentAutoArchivePreferencesResponses, GetAgentCodingPreferencesData, GetAgentCodingPreferencesError, GetAgentCodingPreferencesErrors, GetAgentCodingPreferencesResponse, GetAgentCodingPreferencesResponses, GetAgentSandboxSizeData, GetAgentSandboxSizeError, GetAgentSandboxSizeErrors, GetAgentSandboxSizeResponse, GetAgentSandboxSizeResponses, GetAgentSessionActivityData, GetAgentSessionActivityErrors, GetAgentSessionActivityResponse, GetAgentSessionActivityResponses, GetAgentSessionAutoArchiveData, GetAgentSessionAutoArchiveError, GetAgentSessionAutoArchiveErrors, GetAgentSessionAutoArchiveResponse, GetAgentSessionAutoArchiveResponses, GetAgentSessionChangesData, GetAgentSessionChangesError, GetAgentSessionChangesErrors, GetAgentSessionChangesPatchData, GetAgentSessionChangesPatchError, GetAgentSessionChangesPatchErrors, GetAgentSessionChangesPatchResponse, GetAgentSessionChangesPatchResponses, GetAgentSessionChangesResponse, GetAgentSessionChangesResponses, GetAgentSessionData, GetAgentSessionError, GetAgentSessionErrors, GetAgentSessionFoldedLogData, GetAgentSessionFoldedLogError, GetAgentSessionFoldedLogErrors, GetAgentSessionFoldedLogResponse, GetAgentSessionFoldedLogResponses, GetAgentSessionLogData, GetAgentSessionLogError, GetAgentSessionLogErrors, GetAgentSessionLogResponse, GetAgentSessionLogResponses, GetAgentSessionPermissionsData, GetAgentSessionPermissionsError, GetAgentSessionPermissionsErrors, GetAgentSessionPermissionsResponse, GetAgentSessionPermissionsResponses, GetAgentSessionQueueData, GetAgentSessionQueueError, GetAgentSessionQueueErrors, GetAgentSessionQueueResponse, GetAgentSessionQueueResponses, GetAgentSessionResponse, GetAgentSessionResponses, GetCodeExecutionData, GetCodeExecutionErrors, GetCodeExecutionResponse, GetCodeExecutionResponses, GetSessionReviewData, GetSessionReviewErrors, GetSessionReviewResponse, GetSessionReviewResponses, GitRefDto, InputIntent, InputPropertyDefinition, InputPropertySuggestion, InputSuggestions, IntentScore, Lineage, LinkAgentSessionPullRequestData, LinkAgentSessionPullRequestError, LinkAgentSessionPullRequestErrors, LinkAgentSessionPullRequestResponse, LinkAgentSessionPullRequestResponses, LinkShare, ListAgentConversationsData, ListAgentConversationsErrors, ListAgentConversationsResponse, ListAgentConversationsResponses, ListAgentRepositoriesData, ListAgentRepositoriesErrors, ListAgentRepositoriesResponse, ListAgentRepositoriesResponses, ListAgentRepositoryBranchesData, ListAgentRepositoryBranchesErrors, ListAgentRepositoryBranchesResponse, ListAgentRepositoryBranchesResponses, ListAgentSessionPullRequestsData, ListAgentSessionPullRequestsError, ListAgentSessionPullRequestsErrors, ListAgentSessionPullRequestsResponse, ListAgentSessionPullRequestsResponses, ListAgentWorkRegistrationsData, ListAgentWorkRegistrationsError, ListAgentWorkRegistrationsErrors, ListAgentWorkRegistrationsResponse, ListAgentWorkRegistrationsResponses, ListConnectedAppToolsData, ListConnectedAppToolsErrors, ListConnectedAppToolsResponse, ListConnectedAppToolsResponses, ListExecutionConnectedAppsData, ListExecutionConnectedAppsErrors, ListExecutionConnectedAppsResponse, ListExecutionConnectedAppsResponses, ListExecutionReviewsData, ListExecutionReviewsErrors, ListExecutionReviewsResponse, ListExecutionReviewsResponses, LoadAgentModelsHandlerData, LoadAgentModelsHandlerErrors, LoadAgentModelsHandlerResponse, LoadAgentModelsHandlerResponses, LoadAgentModelsRequest, LoadAgentModelsResponse, LogDirectionDto, LogFrameDto, MacroUserIdStr, MessageParent, MessageSuggestions, ModelHarnessDto, MonthlyWeekday, NoteSuggestions, PermissionAnswer, PresentSessionViewData, PresentSessionViewErrors, PresentSessionViewResponse, PresentSessionViewResponses, PresentView, PreviewAgentSessionsData, PreviewAgentSessionsError, PreviewAgentSessionsErrors, PreviewAgentSessionsRequest, PreviewAgentSessionsResponse, PreviewAgentSessionsResponse2, PreviewAgentSessionsResponses, PromptAttachment, PullRequestLinkedSession, PullRequestLinkSource, PullRequestSessions, PullRequestSessionsResponse, PullRequestsSessionsResponse, PullRequestUrl, PullRequestUrls, PutAgentAutoArchivePreferencesData, PutAgentAutoArchivePreferencesError, PutAgentAutoArchivePreferencesErrors, PutAgentAutoArchivePreferencesResponse, PutAgentAutoArchivePreferencesResponses, PutAgentCodingPreferencesData, PutAgentCodingPreferencesError, PutAgentCodingPreferencesErrors, PutAgentCodingPreferencesResponse, PutAgentCodingPreferencesResponses, PutAgentSandboxSizeData, PutAgentSandboxSizeError, PutAgentSandboxSizeErrors, PutAgentSandboxSizeResponse, PutAgentSandboxSizeResponses, PutAgentSessionAutoArchiveData, PutAgentSessionAutoArchiveError, PutAgentSessionAutoArchiveErrors, PutAgentSessionAutoArchiveResponse, PutAgentSessionAutoArchiveResponses, PutAgentSessionSandboxSizeData, PutAgentSessionSandboxSizeError, PutAgentSessionSandboxSizeErrors, PutAgentSessionSandboxSizeResponse, PutAgentSessionSandboxSizeResponses, QuerySearchSuggestions, QueuedActionDto, RecordedCallStatus, RecordedToolCall, RecurrenceEnd, RecurrenceFrequency, RecurrenceSuggestion, RefreshAgentSessionChangesData, RefreshAgentSessionChangesError, RefreshAgentSessionChangesErrors, RefreshAgentSessionChangesResponse, RefreshAgentSessionChangesResponses, RegisterAgentSessionWorkData, RegisterAgentSessionWorkError, RegisterAgentSessionWorkErrors, RegisterAgentSessionWorkResponse, RegisterAgentSessionWorkResponses, RemoveQueuedActionData, RemoveQueuedActionError, RemoveQueuedActionErrors, RemoveQueuedActionResponse, RemoveQueuedActionResponses, RenameAgentSessionData, RenameAgentSessionError, RenameAgentSessionErrors, RenameAgentSessionRequest, RenameAgentSessionResponse, RenameAgentSessionResponses, ReportAgentSessionAppConnectedData, ReportAgentSessionAppConnectedError, ReportAgentSessionAppConnectedErrors, ReportAgentSessionAppConnectedResponses, RetryAgentConversationTurnData, RetryAgentConversationTurnErrors, RetryAgentConversationTurnRequest, RetryAgentConversationTurnResponse, RetryAgentConversationTurnResponses, ReviewDecision, ReviewDecisionContext, ReviewId, ReviewRecord, Root, RoutineCause, SandboxSize, SandboxSizeBody, SearchConnectedAppToolsData, SearchConnectedAppToolsErrors, SearchConnectedAppToolsResponse, SearchConnectedAppToolsResponses, SearchSuggestions, SearchType, SessionAutoArchiveResponse, SessionBot, SessionPullRequestLink, SessionPullRequestsResponse, SessionStatusDto, SetAgentSessionArchivedData, SetAgentSessionArchivedError, SetAgentSessionArchivedErrors, SetAgentSessionArchivedRequest, SetAgentSessionArchivedResponse, SetAgentSessionArchivedResponses, SharePermissionV2, StartFreshAgentConversationData, StartFreshAgentConversationErrors, StartFreshAgentConversationRequest, StartFreshAgentConversationResponse, StartFreshAgentConversationResponses, SteerQueuedActionData, SteerQueuedActionError, SteerQueuedActionErrors, SteerQueuedActionResponse, SteerQueuedActionResponses, TaskSearchSuggestions, TaskSuggestions, ToolActor, ToolApprovalAnswerDto, ToolApprovalStatusDto, TriggerOrigin, UnlinkAgentSessionPullRequestData, UnlinkAgentSessionPullRequestError, UnlinkAgentSessionPullRequestErrors, UnlinkAgentSessionPullRequestResponse, UnlinkAgentSessionPullRequestResponses, UnregisterAgentSessionWorkData, UnregisterAgentSessionWorkError, UnregisterAgentSessionWorkErrors, UnregisterAgentSessionWorkResponse, UnregisterAgentSessionWorkResponses, UpdateAgentSessionPermissionsData, UpdateAgentSessionPermissionsError, UpdateAgentSessionPermissionsErrors, UpdateAgentSessionPermissionsResponse, UpdateAgentSessionPermissionsResponses, UpdateChannelSharePermission, UpdateOperation, UpdateSharePermissionRequestV2, WarmAgentSessionHandlerData, WarmAgentSessionHandlerResponse, WarmAgentSessionHandlerResponses, WarmAgentSessionRequest, WarmAgentSessionResponse, WeekdayCode, WithAgentSessionId, WorkRegistrationResponse } from './types.gen';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client';
|
|
2
|
-
import type { AgentSessionsForPullRequestData, AgentSessionsForPullRequestErrors, AgentSessionsForPullRequestResponses, AgentSessionsForPullRequestsData, AgentSessionsForPullRequestsErrors, AgentSessionsForPullRequestsResponses, AnswerAgentSessionToolApprovalData, AnswerAgentSessionToolApprovalErrors, AnswerAgentSessionToolApprovalResponses, ChooseAgentModeData, ChooseAgentModeErrors, ChooseAgentModeResponses, ClassifyData, ClassifyErrors, ClassifyResponses, ControlAgentSessionData, ControlAgentSessionErrors, ControlAgentSessionResponses, CreateAgentSessionData, CreateAgentSessionErrors, CreateAgentSessionResponses, CreateSessionReviewData, CreateSessionReviewErrors, CreateSessionReviewResponses, DecideSessionReviewData, DecideSessionReviewErrors, DecideSessionReviewResponses, DeleteAgentSessionData, DeleteAgentSessionErrors, DeleteAgentSessionResponses, DiscoverAgentCapabilitiesHandlerData, DiscoverAgentCapabilitiesHandlerErrors, DiscoverAgentCapabilitiesHandlerResponses, EditQueuedActionData, EditQueuedActionErrors, EditQueuedActionResponses, ExtractData, ExtractErrors, ExtractResponses, GetAgentAutoArchivePreferencesData, GetAgentAutoArchivePreferencesErrors, GetAgentAutoArchivePreferencesResponses, GetAgentCodingPreferencesData, GetAgentCodingPreferencesErrors, GetAgentCodingPreferencesResponses, GetAgentSandboxSizeData, GetAgentSandboxSizeErrors, GetAgentSandboxSizeResponses, GetAgentSessionAutoArchiveData, GetAgentSessionAutoArchiveErrors, GetAgentSessionAutoArchiveResponses, GetAgentSessionChangesData, GetAgentSessionChangesErrors, GetAgentSessionChangesPatchData, GetAgentSessionChangesPatchErrors, GetAgentSessionChangesPatchResponses, GetAgentSessionChangesResponses, GetAgentSessionData, GetAgentSessionErrors, GetAgentSessionFoldedLogData, GetAgentSessionFoldedLogErrors, GetAgentSessionFoldedLogResponses, GetAgentSessionLogData, GetAgentSessionLogErrors, GetAgentSessionLogResponses, GetAgentSessionPermissionsData, GetAgentSessionPermissionsErrors, GetAgentSessionPermissionsResponses, GetAgentSessionQueueData, GetAgentSessionQueueErrors, GetAgentSessionQueueResponses, GetAgentSessionResponses, GetCodeExecutionData, GetCodeExecutionErrors, GetCodeExecutionResponses, GetSessionReviewData, GetSessionReviewErrors, GetSessionReviewResponses, LinkAgentSessionPullRequestData, LinkAgentSessionPullRequestErrors, LinkAgentSessionPullRequestResponses, ListAgentConversationsData, ListAgentConversationsErrors, ListAgentConversationsResponses, ListAgentRepositoriesData, ListAgentRepositoriesErrors, ListAgentRepositoriesResponses, ListAgentRepositoryBranchesData, ListAgentRepositoryBranchesErrors, ListAgentRepositoryBranchesResponses, ListAgentSessionPullRequestsData, ListAgentSessionPullRequestsErrors, ListAgentSessionPullRequestsResponses, ListExecutionReviewsData, ListExecutionReviewsErrors, ListExecutionReviewsResponses, LoadAgentModelsHandlerData, LoadAgentModelsHandlerErrors, LoadAgentModelsHandlerResponses, PresentSessionViewData, PresentSessionViewErrors, PresentSessionViewResponses, PreviewAgentSessionsData, PreviewAgentSessionsErrors, PreviewAgentSessionsResponses, PutAgentAutoArchivePreferencesData, PutAgentAutoArchivePreferencesErrors, PutAgentAutoArchivePreferencesResponses, PutAgentCodingPreferencesData, PutAgentCodingPreferencesErrors, PutAgentCodingPreferencesResponses, PutAgentSandboxSizeData, PutAgentSandboxSizeErrors, PutAgentSandboxSizeResponses, PutAgentSessionAutoArchiveData, PutAgentSessionAutoArchiveErrors, PutAgentSessionAutoArchiveResponses, PutAgentSessionSandboxSizeData, PutAgentSessionSandboxSizeErrors, PutAgentSessionSandboxSizeResponses, RefreshAgentSessionChangesData, RefreshAgentSessionChangesErrors, RefreshAgentSessionChangesResponses, RemoveQueuedActionData, RemoveQueuedActionErrors, RemoveQueuedActionResponses, RenameAgentSessionData, RenameAgentSessionErrors, RenameAgentSessionResponses, ReportAgentSessionAppConnectedData, ReportAgentSessionAppConnectedErrors, ReportAgentSessionAppConnectedResponses, RetryAgentConversationTurnData, RetryAgentConversationTurnErrors, RetryAgentConversationTurnResponses, SetAgentSessionArchivedData, SetAgentSessionArchivedErrors, SetAgentSessionArchivedResponses, StartFreshAgentConversationData, StartFreshAgentConversationErrors, StartFreshAgentConversationResponses, SteerQueuedActionData, SteerQueuedActionErrors, SteerQueuedActionResponses, UnlinkAgentSessionPullRequestData, UnlinkAgentSessionPullRequestErrors, UnlinkAgentSessionPullRequestResponses, UpdateAgentSessionPermissionsData, UpdateAgentSessionPermissionsErrors, UpdateAgentSessionPermissionsResponses, WarmAgentSessionHandlerData, WarmAgentSessionHandlerResponses } from './types.gen';
|
|
2
|
+
import type { AddConnectedMcpServerData, AddConnectedMcpServerErrors, AddConnectedMcpServerResponses, AgentSessionsForPullRequestData, AgentSessionsForPullRequestErrors, AgentSessionsForPullRequestResponses, AgentSessionsForPullRequestsData, AgentSessionsForPullRequestsErrors, AgentSessionsForPullRequestsResponses, AnswerAgentSessionToolApprovalData, AnswerAgentSessionToolApprovalErrors, AnswerAgentSessionToolApprovalResponses, CallConnectedAppToolData, CallConnectedAppToolErrors, CallConnectedAppToolResponses, ChooseAgentModeData, ChooseAgentModeErrors, ChooseAgentModeResponses, ClassifyData, ClassifyErrors, ClassifyResponses, ControlAgentSessionData, ControlAgentSessionErrors, ControlAgentSessionResponses, CreateAgentSessionData, CreateAgentSessionErrors, CreateAgentSessionResponses, CreateSessionReviewData, CreateSessionReviewErrors, CreateSessionReviewResponses, DecideSessionReviewData, DecideSessionReviewErrors, DecideSessionReviewResponses, DeleteAgentSessionData, DeleteAgentSessionErrors, DeleteAgentSessionResponses, DiscoverAgentCapabilitiesHandlerData, DiscoverAgentCapabilitiesHandlerErrors, DiscoverAgentCapabilitiesHandlerResponses, DiscoverConnectedAppsData, DiscoverConnectedAppsErrors, DiscoverConnectedAppsResponses, EditQueuedActionData, EditQueuedActionErrors, EditQueuedActionResponses, ExtractData, ExtractErrors, ExtractResponses, GetAgentAutoArchivePreferencesData, GetAgentAutoArchivePreferencesErrors, GetAgentAutoArchivePreferencesResponses, GetAgentCodingPreferencesData, GetAgentCodingPreferencesErrors, GetAgentCodingPreferencesResponses, GetAgentSandboxSizeData, GetAgentSandboxSizeErrors, GetAgentSandboxSizeResponses, GetAgentSessionActivityData, GetAgentSessionActivityErrors, GetAgentSessionActivityResponses, GetAgentSessionAutoArchiveData, GetAgentSessionAutoArchiveErrors, GetAgentSessionAutoArchiveResponses, GetAgentSessionChangesData, GetAgentSessionChangesErrors, GetAgentSessionChangesPatchData, GetAgentSessionChangesPatchErrors, GetAgentSessionChangesPatchResponses, GetAgentSessionChangesResponses, GetAgentSessionData, GetAgentSessionErrors, GetAgentSessionFoldedLogData, GetAgentSessionFoldedLogErrors, GetAgentSessionFoldedLogResponses, GetAgentSessionLogData, GetAgentSessionLogErrors, GetAgentSessionLogResponses, GetAgentSessionPermissionsData, GetAgentSessionPermissionsErrors, GetAgentSessionPermissionsResponses, GetAgentSessionQueueData, GetAgentSessionQueueErrors, GetAgentSessionQueueResponses, GetAgentSessionResponses, GetCodeExecutionData, GetCodeExecutionErrors, GetCodeExecutionResponses, GetSessionReviewData, GetSessionReviewErrors, GetSessionReviewResponses, LinkAgentSessionPullRequestData, LinkAgentSessionPullRequestErrors, LinkAgentSessionPullRequestResponses, ListAgentConversationsData, ListAgentConversationsErrors, ListAgentConversationsResponses, ListAgentRepositoriesData, ListAgentRepositoriesErrors, ListAgentRepositoriesResponses, ListAgentRepositoryBranchesData, ListAgentRepositoryBranchesErrors, ListAgentRepositoryBranchesResponses, ListAgentSessionPullRequestsData, ListAgentSessionPullRequestsErrors, ListAgentSessionPullRequestsResponses, ListAgentWorkRegistrationsData, ListAgentWorkRegistrationsErrors, ListAgentWorkRegistrationsResponses, ListConnectedAppToolsData, ListConnectedAppToolsErrors, ListConnectedAppToolsResponses, ListExecutionConnectedAppsData, ListExecutionConnectedAppsErrors, ListExecutionConnectedAppsResponses, ListExecutionReviewsData, ListExecutionReviewsErrors, ListExecutionReviewsResponses, LoadAgentModelsHandlerData, LoadAgentModelsHandlerErrors, LoadAgentModelsHandlerResponses, PresentSessionViewData, PresentSessionViewErrors, PresentSessionViewResponses, PreviewAgentSessionsData, PreviewAgentSessionsErrors, PreviewAgentSessionsResponses, PutAgentAutoArchivePreferencesData, PutAgentAutoArchivePreferencesErrors, PutAgentAutoArchivePreferencesResponses, PutAgentCodingPreferencesData, PutAgentCodingPreferencesErrors, PutAgentCodingPreferencesResponses, PutAgentSandboxSizeData, PutAgentSandboxSizeErrors, PutAgentSandboxSizeResponses, PutAgentSessionAutoArchiveData, PutAgentSessionAutoArchiveErrors, PutAgentSessionAutoArchiveResponses, PutAgentSessionSandboxSizeData, PutAgentSessionSandboxSizeErrors, PutAgentSessionSandboxSizeResponses, RefreshAgentSessionChangesData, RefreshAgentSessionChangesErrors, RefreshAgentSessionChangesResponses, RegisterAgentSessionWorkData, RegisterAgentSessionWorkErrors, RegisterAgentSessionWorkResponses, RemoveQueuedActionData, RemoveQueuedActionErrors, RemoveQueuedActionResponses, RenameAgentSessionData, RenameAgentSessionErrors, RenameAgentSessionResponses, ReportAgentSessionAppConnectedData, ReportAgentSessionAppConnectedErrors, ReportAgentSessionAppConnectedResponses, RetryAgentConversationTurnData, RetryAgentConversationTurnErrors, RetryAgentConversationTurnResponses, SearchConnectedAppToolsData, SearchConnectedAppToolsErrors, SearchConnectedAppToolsResponses, SetAgentSessionArchivedData, SetAgentSessionArchivedErrors, SetAgentSessionArchivedResponses, StartFreshAgentConversationData, StartFreshAgentConversationErrors, StartFreshAgentConversationResponses, SteerQueuedActionData, SteerQueuedActionErrors, SteerQueuedActionResponses, UnlinkAgentSessionPullRequestData, UnlinkAgentSessionPullRequestErrors, UnlinkAgentSessionPullRequestResponses, UnregisterAgentSessionWorkData, UnregisterAgentSessionWorkErrors, UnregisterAgentSessionWorkResponses, UpdateAgentSessionPermissionsData, UpdateAgentSessionPermissionsErrors, UpdateAgentSessionPermissionsResponses, WarmAgentSessionHandlerData, WarmAgentSessionHandlerResponses } from './types.gen';
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -133,6 +133,10 @@ export declare class Sdk extends HeyApiClient {
|
|
|
133
133
|
* race it should retry from a refusal it should not.
|
|
134
134
|
*/
|
|
135
135
|
getAgentSession<ThrowOnError extends boolean = false>(options: Options<GetAgentSessionData, ThrowOnError>): RequestResult<GetAgentSessionResponses, GetAgentSessionErrors, ThrowOnError>;
|
|
136
|
+
/**
|
|
137
|
+
* Read activity using the same visibility capability as the session transcript.
|
|
138
|
+
*/
|
|
139
|
+
getAgentSessionActivity<ThrowOnError extends boolean = false>(options: Options<GetAgentSessionActivityData, ThrowOnError>): RequestResult<GetAgentSessionActivityResponses, GetAgentSessionActivityErrors, ThrowOnError>;
|
|
136
140
|
/**
|
|
137
141
|
* Continue the session now that its owner connected an app it asked for.
|
|
138
142
|
*
|
|
@@ -170,6 +174,30 @@ export declare class Sdk extends HeyApiClient {
|
|
|
170
174
|
* Fetch one execution only after the caller has obtained view access to its session.
|
|
171
175
|
*/
|
|
172
176
|
getCodeExecution<ThrowOnError extends boolean = false>(options: Options<GetCodeExecutionData, ThrowOnError>): RequestResult<GetCodeExecutionResponses, GetCodeExecutionErrors, ThrowOnError>;
|
|
177
|
+
/**
|
|
178
|
+
* List the connected apps and custom MCP servers the session's agent may use.
|
|
179
|
+
*/
|
|
180
|
+
listExecutionConnectedApps<ThrowOnError extends boolean = false>(options: Options<ListExecutionConnectedAppsData, ThrowOnError>): RequestResult<ListExecutionConnectedAppsResponses, ListExecutionConnectedAppsErrors, ThrowOnError>;
|
|
181
|
+
/**
|
|
182
|
+
* Search the connectable app catalog, or inspect one app's tools and connection status.
|
|
183
|
+
*/
|
|
184
|
+
discoverConnectedApps<ThrowOnError extends boolean = false>(options: Options<DiscoverConnectedAppsData, ThrowOnError>): RequestResult<DiscoverConnectedAppsResponses, DiscoverConnectedAppsErrors, ThrowOnError>;
|
|
185
|
+
/**
|
|
186
|
+
* Add a custom MCP server to the execution account's connections.
|
|
187
|
+
*/
|
|
188
|
+
addConnectedMcpServer<ThrowOnError extends boolean = false>(options: Options<AddConnectedMcpServerData, ThrowOnError>): RequestResult<AddConnectedMcpServerResponses, AddConnectedMcpServerErrors, ThrowOnError>;
|
|
189
|
+
/**
|
|
190
|
+
* Find tools across the agent's connected apps by keywords.
|
|
191
|
+
*/
|
|
192
|
+
searchConnectedAppTools<ThrowOnError extends boolean = false>(options: Options<SearchConnectedAppToolsData, ThrowOnError>): RequestResult<SearchConnectedAppToolsResponses, SearchConnectedAppToolsErrors, ThrowOnError>;
|
|
193
|
+
/**
|
|
194
|
+
* Call one tool of a connected app as the execution's account.
|
|
195
|
+
*/
|
|
196
|
+
callConnectedAppTool<ThrowOnError extends boolean = false>(options: Options<CallConnectedAppToolData, ThrowOnError>): RequestResult<CallConnectedAppToolResponses, CallConnectedAppToolErrors, ThrowOnError>;
|
|
197
|
+
/**
|
|
198
|
+
* List the tools one connected app serves.
|
|
199
|
+
*/
|
|
200
|
+
listConnectedAppTools<ThrowOnError extends boolean = false>(options: Options<ListConnectedAppToolsData, ThrowOnError>): RequestResult<ListConnectedAppToolsResponses, ListConnectedAppToolsErrors, ThrowOnError>;
|
|
173
201
|
/**
|
|
174
202
|
* List blocks created during an execution, including interrupted executions.
|
|
175
203
|
*/
|
|
@@ -273,6 +301,21 @@ export declare class Sdk extends HeyApiClient {
|
|
|
273
301
|
* Present a view in the session: a review with nothing saved.
|
|
274
302
|
*/
|
|
275
303
|
presentSessionView<ThrowOnError extends boolean = false>(options: Options<PresentSessionViewData, ThrowOnError>): RequestResult<PresentSessionViewResponses, PresentSessionViewErrors, ThrowOnError>;
|
|
304
|
+
/**
|
|
305
|
+
* End the caller's own registration of a session. Repeating does nothing. It touches only the
|
|
306
|
+
* caller's own row, so it needs no access to the session: losing access must not strand it.
|
|
307
|
+
*/
|
|
308
|
+
unregisterAgentSessionWork<ThrowOnError extends boolean = false>(options: Options<UnregisterAgentSessionWorkData, ThrowOnError>): RequestResult<UnregisterAgentSessionWorkResponses, UnregisterAgentSessionWorkErrors, ThrowOnError>;
|
|
309
|
+
/**
|
|
310
|
+
* Register a session as the caller's work. Requires edit access. Repeating returns the active
|
|
311
|
+
* registration. Registering does not share the session: viewers who cannot open it do not see
|
|
312
|
+
* it, so share it too.
|
|
313
|
+
*/
|
|
314
|
+
registerAgentSessionWork<ThrowOnError extends boolean = false>(options: Options<RegisterAgentSessionWorkData, ThrowOnError>): RequestResult<RegisterAgentSessionWorkResponses, RegisterAgentSessionWorkErrors, ThrowOnError>;
|
|
315
|
+
/**
|
|
316
|
+
* List the caller's active registrations of sessions they can still view, newest first.
|
|
317
|
+
*/
|
|
318
|
+
listAgentWorkRegistrations<ThrowOnError extends boolean = false>(options?: Options<ListAgentWorkRegistrationsData, ThrowOnError>): RequestResult<ListAgentWorkRegistrationsResponses, ListAgentWorkRegistrationsErrors, ThrowOnError>;
|
|
276
319
|
/**
|
|
277
320
|
* Classify a draft for the authenticated user.
|
|
278
321
|
*/
|