@macro-inc/sdk 0.2.2 → 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 +177 -3
- package/dist/{chunk-OGE7WXJE.js → chunk-AZJUIUIV.js} +177 -23
- package/dist/{chunk-PRUFPW3B.js → chunk-G43PLP2U.js} +144 -0
- package/dist/{chunk-7LVVPVNT.js → chunk-K4G5VO4P.js} +76 -1
- package/dist/{chunk-PAAFJYGO.js → chunk-PPR7IWZ7.js} +77 -51
- package/dist/{chunk-QVBNNMQS.js → chunk-PTX2RV2N.js} +169 -20
- package/dist/{chunk-SUINKDXF.js → chunk-PZPTJI6F.js} +42 -0
- package/dist/{chunk-7YJ6Y7HJ.js → chunk-XFA7NCJ5.js} +207 -0
- package/dist/{chunk-ZQXOHNDB.js → chunk-ZLBDES7U.js} +789 -12
- package/dist/generated/agent-fold/index.d.ts +4332 -0
- package/dist/generated/agent-fold/index.js +0 -0
- 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 +83 -9
- package/dist/generated/agent-harness/types.gen.d.ts +1504 -160
- package/dist/generated/agent-reviews/index.d.ts +893 -0
- package/dist/generated/agent-reviews/index.js +0 -0
- package/dist/generated/auth/index.d.ts +1 -1
- package/dist/generated/auth/index.js +1 -1
- package/dist/generated/auth/sdk.gen.d.ts +108 -2
- package/dist/generated/auth/types.gen.d.ts +799 -6
- 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 +63 -1
- package/dist/generated/calendar/types.gen.d.ts +1234 -5
- 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 +85 -20
- package/dist/generated/cognition/types.gen.d.ts +1040 -121
- package/dist/generated/connection/index.d.ts +1 -1
- package/dist/generated/connection/index.js +15 -0
- package/dist/generated/connection/sdk.gen.d.ts +6 -1
- package/dist/generated/connection/types.gen.d.ts +18 -1
- package/dist/generated/email/index.d.ts +1 -1
- package/dist/generated/email/index.js +1 -1
- package/dist/generated/email/sdk.gen.d.ts +44 -2
- package/dist/generated/email/types.gen.d.ts +475 -10
- package/dist/generated/notification/index.d.ts +1 -1
- package/dist/generated/notification/index.js +1 -1
- package/dist/generated/notification/sdk.gen.d.ts +29 -21
- package/dist/generated/notification/types.gen.d.ts +267 -73
- package/dist/generated/properties/index.d.ts +1 -1
- package/dist/generated/properties/types.gen.d.ts +21 -1
- 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 +8 -1
- package/dist/generated/scheduled-action/types.gen.d.ts +669 -19
- package/dist/generated/search/index.d.ts +1 -1
- package/dist/generated/search/types.gen.d.ts +87 -7
- package/dist/generated/static-files/types.gen.d.ts +6 -0
- 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 +376 -13
- package/dist/generated/storage/types.gen.d.ts +12038 -5562
- 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 +148 -6
- package/dist/src/entities/agent-sessions/code-execution.d.ts +5 -0
- package/dist/src/entities/agent-sessions/namespace.d.ts +54 -4
- package/dist/src/entities/agent-sessions/origin.d.ts +94 -0
- package/dist/src/entities/agent-sessions/review.d.ts +18 -62
- package/dist/src/entities/agent-sessions/view.d.ts +11 -0
- package/dist/src/entities/agents/namespace.d.ts +11 -2
- package/dist/src/entities/ai/namespace.d.ts +5 -1
- package/dist/src/entities/api-keys/namespace.d.ts +5 -1
- package/dist/src/entities/bots/bot.d.ts +108 -0
- package/dist/src/entities/bots/namespace.d.ts +17 -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/calendar.d.ts +11 -4
- package/dist/src/entities/calendar/create-confirmed.test.d.ts +1 -0
- package/dist/src/entities/calendar/event.d.ts +104 -3
- package/dist/src/entities/calendar/namespace.d.ts +151 -7
- package/dist/src/entities/calendar/namespace.test.d.ts +1 -0
- package/dist/src/entities/calls/call-record.d.ts +34 -4
- 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 +21 -1
- package/dist/src/entities/calls/participant.d.ts +22 -0
- package/dist/src/entities/channels/access-request.d.ts +34 -0
- package/dist/src/entities/channels/channel.d.ts +47 -1
- package/dist/src/entities/channels/namespace.d.ts +21 -5
- package/dist/src/entities/channels/namespace.test.d.ts +1 -0
- package/dist/src/entities/channels/post.d.ts +14 -3
- package/dist/src/entities/channels/thread.d.ts +10 -1
- package/dist/src/entities/chats/chat.d.ts +7 -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 +7 -3
- package/dist/src/entities/crm/contact.d.ts +4 -4
- package/dist/src/entities/crm/namespace.d.ts +34 -1
- package/dist/src/entities/crm/pipeline.d.ts +43 -2
- package/dist/src/entities/databases/database.d.ts +17 -0
- package/dist/src/entities/databases/namespace.d.ts +56 -0
- package/dist/src/entities/documents/ai-edit.d.ts +52 -0
- package/dist/src/entities/documents/document.d.ts +244 -5
- package/dist/src/entities/documents/namespace.d.ts +89 -4
- package/dist/src/entities/documents/office-files.d.ts +47 -0
- package/dist/src/entities/email/draft.d.ts +36 -7
- package/dist/src/entities/email/message.d.ts +99 -3
- package/dist/src/entities/email/namespace.d.ts +47 -4
- package/dist/src/entities/email/namespace.test.d.ts +1 -0
- package/dist/src/entities/email/thread.d.ts +55 -3
- package/dist/src/entities/entity-mentions/namespace.d.ts +5 -1
- package/dist/src/entities/external-chat/chat.d.ts +105 -0
- package/dist/src/entities/external-chat/message.d.ts +54 -0
- package/dist/src/entities/external-chat/namespace.d.ts +18 -0
- package/dist/src/entities/external-chat/participant.d.ts +28 -0
- package/dist/src/entities/external-chat/send.d.ts +32 -0
- package/dist/src/entities/external-chat/upload.d.ts +25 -0
- package/dist/src/entities/favorites/namespace.d.ts +5 -1
- package/dist/src/entities/foreign/namespace.d.ts +3 -0
- package/dist/src/entities/forms/form.d.ts +17 -2
- package/dist/src/entities/forms/namespace.d.ts +5 -1
- package/dist/src/entities/github-pull-requests/namespace.d.ts +5 -1
- package/dist/src/entities/harnesses/harness.d.ts +9 -0
- package/dist/src/entities/harnesses/namespace.d.ts +5 -1
- package/dist/src/entities/images/image.d.ts +77 -0
- package/dist/src/entities/images/namespace.d.ts +48 -0
- package/dist/src/entities/images/namespace.test.d.ts +1 -0
- package/dist/src/entities/initiatives/initiative.d.ts +12 -1
- package/dist/src/entities/initiatives/namespace.d.ts +15 -2
- package/dist/src/entities/me/namespace.d.ts +43 -0
- package/dist/src/entities/meetings/meeting.d.ts +5 -0
- package/dist/src/entities/meetings/namespace.d.ts +5 -1
- package/dist/src/entities/messages/thread.d.ts +1 -1
- package/dist/src/entities/notifications/namespace.d.ts +3 -0
- package/dist/src/entities/pins/namespace.d.ts +5 -1
- package/dist/src/entities/projects/namespace.d.ts +4 -1
- package/dist/src/entities/projects/project.d.ts +9 -1
- package/dist/src/entities/properties/namespace.d.ts +2 -0
- package/dist/src/entities/referrals/namespace.d.ts +33 -0
- package/dist/src/entities/routines/namespace.d.ts +42 -2
- package/dist/src/entities/routines/routine.d.ts +84 -5
- package/dist/src/entities/search/namespace.d.ts +65 -0
- package/dist/src/entities/{search.d.ts → search/options.d.ts} +8 -2
- package/dist/src/entities/search/types.d.ts +90 -0
- package/dist/src/entities/sharing/access.d.ts +14 -0
- package/dist/src/entities/tasks/namespace.d.ts +42 -3
- package/dist/src/entities/tasks/task.d.ts +47 -6
- package/dist/src/entities/teams/invite.d.ts +30 -0
- package/dist/src/entities/teams/namespace.d.ts +3 -0
- package/dist/src/entities/teams/team.d.ts +37 -0
- package/dist/src/entities/unfurls/namespace.d.ts +5 -1
- package/dist/src/entities/users/namespace.d.ts +9 -0
- package/dist/src/entities/users/user.d.ts +8 -0
- package/dist/src/entities/web/namespace.d.ts +61 -0
- package/dist/src/entities/web/namespace.test.d.ts +1 -0
- package/dist/src/entities/webhooks/namespace.d.ts +2 -0
- package/dist/src/entities/whatsapp/account.d.ts +20 -0
- package/dist/src/entities/whatsapp/chat.d.ts +54 -0
- package/dist/src/entities/whatsapp/namespace.d.ts +23 -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/agentSession.d.ts +1 -1
- package/dist/src/events/hydrate/call.d.ts +101 -0
- package/dist/src/events/hydrate/channel.d.ts +8 -1
- package/dist/src/events/hydrate/document.d.ts +1 -1
- package/dist/src/events/hydrate/message.d.ts +1 -1
- package/dist/src/events/types.d.ts +2 -1
- package/dist/src/macro.d.ts +73 -4
- package/dist/src/macro.js +8235 -3701
- package/dist/src/mentions.d.ts +6 -1
- package/dist/src/utils/activity.d.ts +23 -2
- package/dist/src/utils/index.d.ts +1 -1
- package/dist/src/utils/unwrap.d.ts +27 -2
- package/package.json +2 -2
|
@@ -849,6 +849,27 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
849
849
|
getBackfillGmail(options) {
|
|
850
850
|
return (options.client ?? this.client).get({ url: "/email/backfill/gmail/{id}", ...options });
|
|
851
851
|
}
|
|
852
|
+
/**
|
|
853
|
+
* Email one of the viewer's events to people the organizer's guest list
|
|
854
|
+
* does not name, from the inbox that holds the viewer's copy, with the
|
|
855
|
+
* usual undo delay, carrying the copy's join link. When the copy is Google's
|
|
856
|
+
* private copy of an invitation from an organizer outside Google, it is a
|
|
857
|
+
* real invitation (`METHOD:REQUEST`) naming the recipients, who answer it to
|
|
858
|
+
* the organizer, who gets the email too. Otherwise it is the event's file
|
|
859
|
+
* (`METHOD:PUBLISH`, no attendees): recipients can add the event to their
|
|
860
|
+
* own calendar, are not added to the guest list, and the organizer is not
|
|
861
|
+
* told.
|
|
862
|
+
*/
|
|
863
|
+
forwardCalendarEvent(options) {
|
|
864
|
+
return (options.client ?? this.client).post({
|
|
865
|
+
url: "/email/calendar-events/{event_id}/forward",
|
|
866
|
+
...options,
|
|
867
|
+
headers: {
|
|
868
|
+
"Content-Type": "application/json",
|
|
869
|
+
...options.headers
|
|
870
|
+
}
|
|
871
|
+
});
|
|
872
|
+
}
|
|
852
873
|
/**
|
|
853
874
|
* List all contacts belonging to the user, grouped by link.
|
|
854
875
|
*/
|
|
@@ -1156,6 +1177,12 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1156
1177
|
getMessage(options) {
|
|
1157
1178
|
return (options.client ?? this.client).get({ url: "/email/messages/{id}", ...options });
|
|
1158
1179
|
}
|
|
1180
|
+
/**
|
|
1181
|
+
* Download a message's original source as an `.eml` file.
|
|
1182
|
+
*/
|
|
1183
|
+
getMessageEml(options) {
|
|
1184
|
+
return (options.client ?? this.client).get({ url: "/email/messages/{id}/eml", ...options });
|
|
1185
|
+
}
|
|
1159
1186
|
/**
|
|
1160
1187
|
* Patch user settings.
|
|
1161
1188
|
*/
|
|
@@ -1176,11 +1203,31 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1176
1203
|
return (options?.client ?? this.client).get({ url: "/email/settings/operations", ...options });
|
|
1177
1204
|
}
|
|
1178
1205
|
/**
|
|
1179
|
-
* Disables inbox syncing for
|
|
1206
|
+
* Disables inbox syncing for the selected inbox.
|
|
1207
|
+
*
|
|
1208
|
+
* The inbox is the caller's primary, or the one named by `X-Email-Link-Id`,
|
|
1209
|
+
* which may be an inbox the caller only reaches through delegation. Removal
|
|
1210
|
+
* therefore follows the same policy as `DELETE /email/links/{link_id}`: an
|
|
1211
|
+
* owner's inbox is torn down, while a delegate only loses their
|
|
1212
|
+
* `macro_user_links` edge and the owner's data stays intact.
|
|
1180
1213
|
*/
|
|
1181
1214
|
disableSync(options) {
|
|
1182
1215
|
return (options?.client ?? this.client).delete({ url: "/email/sync", ...options });
|
|
1183
1216
|
}
|
|
1217
|
+
/**
|
|
1218
|
+
* Change the archived status of up to 100 threads, sending one provider
|
|
1219
|
+
* write per inbox. A thread that can't change is reported, not fatal.
|
|
1220
|
+
*/
|
|
1221
|
+
archiveThreads(options) {
|
|
1222
|
+
return (options.client ?? this.client).patch({
|
|
1223
|
+
url: "/email/threads/archived",
|
|
1224
|
+
...options,
|
|
1225
|
+
headers: {
|
|
1226
|
+
"Content-Type": "application/json",
|
|
1227
|
+
...options.headers
|
|
1228
|
+
}
|
|
1229
|
+
});
|
|
1230
|
+
}
|
|
1184
1231
|
/**
|
|
1185
1232
|
* Get paginated thread previews with cursor-based pagination.
|
|
1186
1233
|
*/
|
|
@@ -1250,6 +1297,24 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1250
1297
|
getThreadCalendarInvitations(options) {
|
|
1251
1298
|
return (options.client ?? this.client).get({ url: "/email/threads/{thread_id}/calendar-invitations", ...options });
|
|
1252
1299
|
}
|
|
1300
|
+
/**
|
|
1301
|
+
* Add a shared event saved from one of the thread's messages to one of the
|
|
1302
|
+
* viewer's Google calendars, the way Add to calendar adds a channel-shared
|
|
1303
|
+
* event: a snapshot under the meeting's iCalendar UID and organizer, with the
|
|
1304
|
+
* viewer as its only guest and no join link. Nobody is notified. Only a
|
|
1305
|
+
* published event file (`METHOD:PUBLISH`) can be added; an invitation is
|
|
1306
|
+
* answered from the calendar it reached.
|
|
1307
|
+
*/
|
|
1308
|
+
copyThreadCalendarInvitation(options) {
|
|
1309
|
+
return (options.client ?? this.client).post({
|
|
1310
|
+
url: "/email/threads/{thread_id}/messages/{message_id}/calendar-invitations/{invitation_id}/copy",
|
|
1311
|
+
...options,
|
|
1312
|
+
headers: {
|
|
1313
|
+
"Content-Type": "application/json",
|
|
1314
|
+
...options.headers
|
|
1315
|
+
}
|
|
1316
|
+
});
|
|
1317
|
+
}
|
|
1253
1318
|
/**
|
|
1254
1319
|
* Update the project assignment for a thread.
|
|
1255
1320
|
*/
|
|
@@ -1263,12 +1328,22 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1263
1328
|
}
|
|
1264
1329
|
});
|
|
1265
1330
|
}
|
|
1331
|
+
getThreadReadReceipts(options) {
|
|
1332
|
+
return (options.client ?? this.client).get({ url: "/email/threads/{thread_id}/read-receipts", ...options });
|
|
1333
|
+
}
|
|
1266
1334
|
/**
|
|
1267
1335
|
* Health check
|
|
1268
1336
|
*/
|
|
1269
1337
|
healthHandler(options) {
|
|
1270
1338
|
return (options?.client ?? this.client).get({ url: "/health", ...options });
|
|
1271
1339
|
}
|
|
1340
|
+
/**
|
|
1341
|
+
* Every request gets the same uncacheable pixel so the response reveals nothing
|
|
1342
|
+
* about the token, and each open reaches the server.
|
|
1343
|
+
*/
|
|
1344
|
+
getReadReceiptPixel(options) {
|
|
1345
|
+
return (options.client ?? this.client).get({ url: "/opens/{token}", ...options });
|
|
1346
|
+
}
|
|
1272
1347
|
};
|
|
1273
1348
|
|
|
1274
1349
|
export {
|
|
@@ -835,36 +835,24 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
835
835
|
return (options.client ?? this.client).post({ url: "/unsubscribe/item/{item_type}/{item_id}", ...options });
|
|
836
836
|
}
|
|
837
837
|
/**
|
|
838
|
-
*
|
|
839
|
-
* Existing notifications that were muted manually will remain muted.
|
|
840
|
-
*/
|
|
841
|
-
removeUnsubscribeAll(options) {
|
|
842
|
-
return (options?.client ?? this.client).delete({ url: "/unsubscribe/mute", ...options });
|
|
843
|
-
}
|
|
844
|
-
/**
|
|
845
|
-
* Unsubscribes user from all notifications.
|
|
846
|
-
*/
|
|
847
|
-
unsubscribeAll(options) {
|
|
848
|
-
return (options?.client ?? this.client).post({ url: "/unsubscribe/mute", ...options });
|
|
849
|
-
}
|
|
850
|
-
/**
|
|
851
|
-
* Wrapper handler that calls the inner generic list handler with `serde_json::Value`,
|
|
852
|
-
* then converts each row to [`UserNotificationRow<NotifEvent>`].
|
|
853
|
-
*
|
|
854
|
-
* Rows that fail to deserialize are dropped with a warning log.
|
|
838
|
+
* Atomically resume delivery for the authenticated user's items.
|
|
855
839
|
*/
|
|
856
|
-
|
|
857
|
-
return (options
|
|
840
|
+
removeUnsubscribeItems(options) {
|
|
841
|
+
return (options.client ?? this.client).delete({
|
|
842
|
+
url: "/unsubscribe/items",
|
|
843
|
+
...options,
|
|
844
|
+
headers: {
|
|
845
|
+
"Content-Type": "application/json",
|
|
846
|
+
...options.headers
|
|
847
|
+
}
|
|
848
|
+
});
|
|
858
849
|
}
|
|
859
850
|
/**
|
|
860
|
-
*
|
|
861
|
-
* then converts each row to [`UserNotificationRow<NotifEvent>`].
|
|
862
|
-
*
|
|
863
|
-
* Rows that fail to deserialize are dropped with a warning log.
|
|
851
|
+
* Atomically mute or snooze items for the authenticated user.
|
|
864
852
|
*/
|
|
865
|
-
|
|
853
|
+
unsubscribeItems(options) {
|
|
866
854
|
return (options.client ?? this.client).post({
|
|
867
|
-
url: "/
|
|
855
|
+
url: "/unsubscribe/items",
|
|
868
856
|
...options,
|
|
869
857
|
headers: {
|
|
870
858
|
"Content-Type": "application/json",
|
|
@@ -873,41 +861,33 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
873
861
|
});
|
|
874
862
|
}
|
|
875
863
|
/**
|
|
876
|
-
*
|
|
877
|
-
|
|
878
|
-
getTypedNotificationsByEventItemId(options) {
|
|
879
|
-
return (options.client ?? this.client).get({ url: "/v1/user_notifications/item/{event_item_id}", ...options });
|
|
880
|
-
}
|
|
881
|
-
/**
|
|
882
|
-
* Get the notification types that the user has disabled.
|
|
883
|
-
*/
|
|
884
|
-
getNotificationTypePreferences(options) {
|
|
885
|
-
return (options?.client ?? this.client).get({ url: "/v1/user_notifications/preferences", ...options });
|
|
886
|
-
}
|
|
887
|
-
/**
|
|
888
|
-
* Disable a notification type for the authenticated user.
|
|
864
|
+
* Unmutes all notifications.
|
|
865
|
+
* Existing notifications that were muted manually will remain muted.
|
|
889
866
|
*/
|
|
890
|
-
|
|
891
|
-
return (options
|
|
867
|
+
removeUnsubscribeAll(options) {
|
|
868
|
+
return (options?.client ?? this.client).delete({ url: "/unsubscribe/mute", ...options });
|
|
892
869
|
}
|
|
893
870
|
/**
|
|
894
|
-
*
|
|
871
|
+
* Unsubscribes user from all notifications.
|
|
895
872
|
*/
|
|
896
|
-
|
|
897
|
-
return (options
|
|
873
|
+
unsubscribeAll(options) {
|
|
874
|
+
return (options?.client ?? this.client).post({ url: "/unsubscribe/mute", ...options });
|
|
898
875
|
}
|
|
899
876
|
/**
|
|
900
|
-
*
|
|
877
|
+
* Wrapper handler that calls the inner generic list handler with `serde_json::Value`,
|
|
878
|
+
* then converts each row to [`UserNotificationRow<NotifEvent>`].
|
|
879
|
+
*
|
|
880
|
+
* Rows that fail to deserialize are dropped with a warning log.
|
|
901
881
|
*/
|
|
902
|
-
|
|
903
|
-
return (options
|
|
882
|
+
listTypedNotifications(options) {
|
|
883
|
+
return (options?.client ?? this.client).get({ url: "/v1/user_notifications", ...options });
|
|
904
884
|
}
|
|
905
885
|
/**
|
|
906
886
|
* Soft-delete multiple user notifications.
|
|
907
887
|
*/
|
|
908
888
|
bulkDeleteUserNotificationsV2(options) {
|
|
909
889
|
return (options.client ?? this.client).delete({
|
|
910
|
-
url: "/
|
|
890
|
+
url: "/v1/user_notifications/bulk",
|
|
911
891
|
...options,
|
|
912
892
|
headers: {
|
|
913
893
|
"Content-Type": "application/json",
|
|
@@ -920,7 +900,7 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
920
900
|
*/
|
|
921
901
|
bulkMarkNotificationsDone(options) {
|
|
922
902
|
return (options.client ?? this.client).patch({
|
|
923
|
-
url: "/
|
|
903
|
+
url: "/v1/user_notifications/bulk/done",
|
|
924
904
|
...options,
|
|
925
905
|
headers: {
|
|
926
906
|
"Content-Type": "application/json",
|
|
@@ -933,7 +913,7 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
933
913
|
*/
|
|
934
914
|
bulkMarkNotificationsSeen(options) {
|
|
935
915
|
return (options.client ?? this.client).patch({
|
|
936
|
-
url: "/
|
|
916
|
+
url: "/v1/user_notifications/bulk/seen",
|
|
937
917
|
...options,
|
|
938
918
|
headers: {
|
|
939
919
|
"Content-Type": "application/json",
|
|
@@ -946,7 +926,23 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
946
926
|
*/
|
|
947
927
|
bulkMarkNotificationsUndone(options) {
|
|
948
928
|
return (options.client ?? this.client).patch({
|
|
949
|
-
url: "/
|
|
929
|
+
url: "/v1/user_notifications/bulk/undone",
|
|
930
|
+
...options,
|
|
931
|
+
headers: {
|
|
932
|
+
"Content-Type": "application/json",
|
|
933
|
+
...options.headers
|
|
934
|
+
}
|
|
935
|
+
});
|
|
936
|
+
}
|
|
937
|
+
/**
|
|
938
|
+
* Wrapper handler that calls the inner generic bulk-get handler with `serde_json::Value`,
|
|
939
|
+
* then converts each row to [`UserNotificationRow<NotifEvent>`].
|
|
940
|
+
*
|
|
941
|
+
* Rows that fail to deserialize are dropped with a warning log.
|
|
942
|
+
*/
|
|
943
|
+
bulkGetTypedNotificationsByEventItemIds(options) {
|
|
944
|
+
return (options.client ?? this.client).post({
|
|
945
|
+
url: "/v1/user_notifications/item/bulk",
|
|
950
946
|
...options,
|
|
951
947
|
headers: {
|
|
952
948
|
"Content-Type": "application/json",
|
|
@@ -954,11 +950,41 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
954
950
|
}
|
|
955
951
|
});
|
|
956
952
|
}
|
|
953
|
+
/**
|
|
954
|
+
* Typed wrapper for getting notifications by a single event item ID.
|
|
955
|
+
*/
|
|
956
|
+
getTypedNotificationsByEventItemId(options) {
|
|
957
|
+
return (options.client ?? this.client).get({ url: "/v1/user_notifications/item/{event_item_id}", ...options });
|
|
958
|
+
}
|
|
959
|
+
/**
|
|
960
|
+
* Get the notification types that the user has disabled.
|
|
961
|
+
*/
|
|
962
|
+
getNotificationTypePreferences(options) {
|
|
963
|
+
return (options?.client ?? this.client).get({ url: "/v1/user_notifications/preferences", ...options });
|
|
964
|
+
}
|
|
965
|
+
/**
|
|
966
|
+
* Disable a notification type for the authenticated user.
|
|
967
|
+
*/
|
|
968
|
+
disableNotificationType(options) {
|
|
969
|
+
return (options.client ?? this.client).put({ url: "/v1/user_notifications/preferences/{notification_event_type}/disable", ...options });
|
|
970
|
+
}
|
|
971
|
+
/**
|
|
972
|
+
* Re-enable a notification type for the authenticated user.
|
|
973
|
+
*/
|
|
974
|
+
enableNotificationType(options) {
|
|
975
|
+
return (options.client ?? this.client).put({ url: "/v1/user_notifications/preferences/{notification_event_type}/enable", ...options });
|
|
976
|
+
}
|
|
957
977
|
/**
|
|
958
978
|
* Soft-delete a single user notification.
|
|
959
979
|
*/
|
|
960
980
|
deleteUserNotificationV2(options) {
|
|
961
|
-
return (options.client ?? this.client).delete({ url: "/
|
|
981
|
+
return (options.client ?? this.client).delete({ url: "/v1/user_notifications/{notification_id}", ...options });
|
|
982
|
+
}
|
|
983
|
+
/**
|
|
984
|
+
* Typed wrapper for getting a single notification by ID.
|
|
985
|
+
*/
|
|
986
|
+
getTypedNotificationById(options) {
|
|
987
|
+
return (options.client ?? this.client).get({ url: "/v1/user_notifications/{notification_id}", ...options });
|
|
962
988
|
}
|
|
963
989
|
};
|
|
964
990
|
|
|
@@ -804,6 +804,25 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
804
804
|
super(args);
|
|
805
805
|
_Sdk.__registry.set(this, args?.key);
|
|
806
806
|
}
|
|
807
|
+
/**
|
|
808
|
+
* Read which triggers archive the caller's sessions by default.
|
|
809
|
+
*/
|
|
810
|
+
getAgentAutoArchivePreferences(options) {
|
|
811
|
+
return (options?.client ?? this.client).get({ url: "/agent-auto-archive-preferences", ...options });
|
|
812
|
+
}
|
|
813
|
+
/**
|
|
814
|
+
* Replace which triggers archive the caller's sessions by default.
|
|
815
|
+
*/
|
|
816
|
+
putAgentAutoArchivePreferences(options) {
|
|
817
|
+
return (options.client ?? this.client).put({
|
|
818
|
+
url: "/agent-auto-archive-preferences",
|
|
819
|
+
...options,
|
|
820
|
+
headers: {
|
|
821
|
+
"Content-Type": "application/json",
|
|
822
|
+
...options.headers
|
|
823
|
+
}
|
|
824
|
+
});
|
|
825
|
+
}
|
|
807
826
|
/**
|
|
808
827
|
* Probe one provider's ACP session configuration without persisting a session.
|
|
809
828
|
*/
|
|
@@ -876,6 +895,20 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
876
895
|
}
|
|
877
896
|
});
|
|
878
897
|
}
|
|
898
|
+
/**
|
|
899
|
+
* Choose whether a composer prompt goes to a chat or a coding agent.
|
|
900
|
+
*/
|
|
901
|
+
chooseAgentMode(options) {
|
|
902
|
+
return (options.client ?? this.client).post({
|
|
903
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
904
|
+
url: "/agent-mode-choice",
|
|
905
|
+
...options,
|
|
906
|
+
headers: {
|
|
907
|
+
"Content-Type": "application/json",
|
|
908
|
+
...options.headers
|
|
909
|
+
}
|
|
910
|
+
});
|
|
911
|
+
}
|
|
879
912
|
/**
|
|
880
913
|
* Probe one provider's model catalog without creating an agent session.
|
|
881
914
|
*/
|
|
@@ -1023,6 +1056,28 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1023
1056
|
getAgentSession(options) {
|
|
1024
1057
|
return (options.client ?? this.client).get({ url: "/agent-sessions/{session_id}", ...options });
|
|
1025
1058
|
}
|
|
1059
|
+
/**
|
|
1060
|
+
* Read activity using the same visibility capability as the session transcript.
|
|
1061
|
+
*/
|
|
1062
|
+
getAgentSessionActivity(options) {
|
|
1063
|
+
return (options.client ?? this.client).get({ url: "/agent-sessions/{session_id}/activity", ...options });
|
|
1064
|
+
}
|
|
1065
|
+
/**
|
|
1066
|
+
* Continue the session now that its owner connected an app it asked for.
|
|
1067
|
+
*
|
|
1068
|
+
* The harness produces an `app.connected` system event, which the transcript
|
|
1069
|
+
* shows as no prompt; it starts a turn once the session is idle.
|
|
1070
|
+
*/
|
|
1071
|
+
reportAgentSessionAppConnected(options) {
|
|
1072
|
+
return (options.client ?? this.client).post({
|
|
1073
|
+
url: "/agent-sessions/{session_id}/app-connections",
|
|
1074
|
+
...options,
|
|
1075
|
+
headers: {
|
|
1076
|
+
"Content-Type": "application/json",
|
|
1077
|
+
...options.headers
|
|
1078
|
+
}
|
|
1079
|
+
});
|
|
1080
|
+
}
|
|
1026
1081
|
/**
|
|
1027
1082
|
* Archive or unarchive an agent session.
|
|
1028
1083
|
*/
|
|
@@ -1036,6 +1091,25 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1036
1091
|
}
|
|
1037
1092
|
});
|
|
1038
1093
|
}
|
|
1094
|
+
/**
|
|
1095
|
+
* Read a session's auto-archive settings and whether a trigger archived it.
|
|
1096
|
+
*/
|
|
1097
|
+
getAgentSessionAutoArchive(options) {
|
|
1098
|
+
return (options.client ?? this.client).get({ url: "/agent-sessions/{session_id}/auto-archive", ...options });
|
|
1099
|
+
}
|
|
1100
|
+
/**
|
|
1101
|
+
* Replace a session's own auto-archive choices. Owner only.
|
|
1102
|
+
*/
|
|
1103
|
+
putAgentSessionAutoArchive(options) {
|
|
1104
|
+
return (options.client ?? this.client).put({
|
|
1105
|
+
url: "/agent-sessions/{session_id}/auto-archive",
|
|
1106
|
+
...options,
|
|
1107
|
+
headers: {
|
|
1108
|
+
"Content-Type": "application/json",
|
|
1109
|
+
...options.headers
|
|
1110
|
+
}
|
|
1111
|
+
});
|
|
1112
|
+
}
|
|
1039
1113
|
/**
|
|
1040
1114
|
* The latest captured changes of an agent session: the changed files with
|
|
1041
1115
|
* statuses and line counts, and how the latest capture attempt went.
|
|
@@ -1062,6 +1136,63 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1062
1136
|
getCodeExecution(options) {
|
|
1063
1137
|
return (options.client ?? this.client).get({ url: "/agent-sessions/{session_id}/code-executions/{execution_id}", ...options });
|
|
1064
1138
|
}
|
|
1139
|
+
/**
|
|
1140
|
+
* List the connected apps and custom MCP servers the session's agent may use.
|
|
1141
|
+
*/
|
|
1142
|
+
listExecutionConnectedApps(options) {
|
|
1143
|
+
return (options.client ?? this.client).get({ url: "/agent-sessions/{session_id}/code-executions/{execution_id}/connected-apps", ...options });
|
|
1144
|
+
}
|
|
1145
|
+
/**
|
|
1146
|
+
* Search the connectable app catalog, or inspect one app's tools and connection status.
|
|
1147
|
+
*/
|
|
1148
|
+
discoverConnectedApps(options) {
|
|
1149
|
+
return (options.client ?? this.client).post({
|
|
1150
|
+
url: "/agent-sessions/{session_id}/code-executions/{execution_id}/connected-apps/discover",
|
|
1151
|
+
...options,
|
|
1152
|
+
headers: {
|
|
1153
|
+
"Content-Type": "application/json",
|
|
1154
|
+
...options.headers
|
|
1155
|
+
}
|
|
1156
|
+
});
|
|
1157
|
+
}
|
|
1158
|
+
/**
|
|
1159
|
+
* Add a custom MCP server to the execution account's connections.
|
|
1160
|
+
*/
|
|
1161
|
+
addConnectedMcpServer(options) {
|
|
1162
|
+
return (options.client ?? this.client).post({
|
|
1163
|
+
url: "/agent-sessions/{session_id}/code-executions/{execution_id}/connected-apps/servers",
|
|
1164
|
+
...options,
|
|
1165
|
+
headers: {
|
|
1166
|
+
"Content-Type": "application/json",
|
|
1167
|
+
...options.headers
|
|
1168
|
+
}
|
|
1169
|
+
});
|
|
1170
|
+
}
|
|
1171
|
+
/**
|
|
1172
|
+
* Find tools across the agent's connected apps by keywords.
|
|
1173
|
+
*/
|
|
1174
|
+
searchConnectedAppTools(options) {
|
|
1175
|
+
return (options.client ?? this.client).get({ url: "/agent-sessions/{session_id}/code-executions/{execution_id}/connected-apps/tools", ...options });
|
|
1176
|
+
}
|
|
1177
|
+
/**
|
|
1178
|
+
* Call one tool of a connected app as the execution's account.
|
|
1179
|
+
*/
|
|
1180
|
+
callConnectedAppTool(options) {
|
|
1181
|
+
return (options.client ?? this.client).post({
|
|
1182
|
+
url: "/agent-sessions/{session_id}/code-executions/{execution_id}/connected-apps/{kind}/{key}/calls",
|
|
1183
|
+
...options,
|
|
1184
|
+
headers: {
|
|
1185
|
+
"Content-Type": "application/json",
|
|
1186
|
+
...options.headers
|
|
1187
|
+
}
|
|
1188
|
+
});
|
|
1189
|
+
}
|
|
1190
|
+
/**
|
|
1191
|
+
* List the tools one connected app serves.
|
|
1192
|
+
*/
|
|
1193
|
+
listConnectedAppTools(options) {
|
|
1194
|
+
return (options.client ?? this.client).get({ url: "/agent-sessions/{session_id}/code-executions/{execution_id}/connected-apps/{kind}/{key}/tools", ...options });
|
|
1195
|
+
}
|
|
1065
1196
|
/**
|
|
1066
1197
|
* List blocks created during an execution, including interrupted executions.
|
|
1067
1198
|
*/
|
|
@@ -1101,6 +1232,16 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1101
1232
|
getAgentSessionLog(options) {
|
|
1102
1233
|
return (options.client ?? this.client).get({ url: "/agent-sessions/{session_id}/log", ...options });
|
|
1103
1234
|
}
|
|
1235
|
+
/**
|
|
1236
|
+
* One agent session's history folded into renderable messages: the same
|
|
1237
|
+
* fold the web client runs over [`get_agent_session_log_handler`]'s frames.
|
|
1238
|
+
*
|
|
1239
|
+
* For readers that do not run the fold themselves, such as SDK programs and
|
|
1240
|
+
* agents reading another session's history.
|
|
1241
|
+
*/
|
|
1242
|
+
getAgentSessionFoldedLog(options) {
|
|
1243
|
+
return (options.client ?? this.client).get({ url: "/agent-sessions/{session_id}/log/folded", ...options });
|
|
1244
|
+
}
|
|
1104
1245
|
/**
|
|
1105
1246
|
* Rename an agent session.
|
|
1106
1247
|
*/
|
|
@@ -1253,12 +1394,11 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1253
1394
|
});
|
|
1254
1395
|
}
|
|
1255
1396
|
/**
|
|
1256
|
-
*
|
|
1397
|
+
* Present a view in the session: a review with nothing saved.
|
|
1257
1398
|
*/
|
|
1258
|
-
|
|
1259
|
-
return (options.client ?? this.client).
|
|
1260
|
-
|
|
1261
|
-
url: "/claude-auth",
|
|
1399
|
+
presentSessionView(options) {
|
|
1400
|
+
return (options.client ?? this.client).post({
|
|
1401
|
+
url: "/agent-sessions/{session_id}/views",
|
|
1262
1402
|
...options,
|
|
1263
1403
|
headers: {
|
|
1264
1404
|
"Content-Type": "application/json",
|
|
@@ -1267,22 +1407,32 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1267
1407
|
});
|
|
1268
1408
|
}
|
|
1269
1409
|
/**
|
|
1270
|
-
*
|
|
1410
|
+
* End the caller's own registration of a session. Repeating does nothing. It touches only the
|
|
1411
|
+
* caller's own row, so it needs no access to the session: losing access must not strand it.
|
|
1271
1412
|
*/
|
|
1272
|
-
|
|
1273
|
-
return (options
|
|
1274
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1275
|
-
url: "/claude-auth",
|
|
1276
|
-
...options
|
|
1277
|
-
});
|
|
1413
|
+
unregisterAgentSessionWork(options) {
|
|
1414
|
+
return (options.client ?? this.client).delete({ url: "/agent-sessions/{session_id}/work-registration", ...options });
|
|
1278
1415
|
}
|
|
1279
1416
|
/**
|
|
1280
|
-
*
|
|
1417
|
+
* Register a session as the caller's work. Requires edit access. Repeating returns the active
|
|
1418
|
+
* registration. Registering does not share the session: viewers who cannot open it do not see
|
|
1419
|
+
* it, so share it too.
|
|
1281
1420
|
*/
|
|
1282
|
-
|
|
1421
|
+
registerAgentSessionWork(options) {
|
|
1422
|
+
return (options.client ?? this.client).put({ url: "/agent-sessions/{session_id}/work-registration", ...options });
|
|
1423
|
+
}
|
|
1424
|
+
/**
|
|
1425
|
+
* List the caller's active registrations of sessions they can still view, newest first.
|
|
1426
|
+
*/
|
|
1427
|
+
listAgentWorkRegistrations(options) {
|
|
1428
|
+
return (options?.client ?? this.client).get({ url: "/agent-work-registrations", ...options });
|
|
1429
|
+
}
|
|
1430
|
+
/**
|
|
1431
|
+
* Classify a draft for the authenticated user.
|
|
1432
|
+
*/
|
|
1433
|
+
classify(options) {
|
|
1283
1434
|
return (options.client ?? this.client).post({
|
|
1284
|
-
|
|
1285
|
-
url: "/claude-auth/complete",
|
|
1435
|
+
url: "/universal_input/classify",
|
|
1286
1436
|
...options,
|
|
1287
1437
|
headers: {
|
|
1288
1438
|
"Content-Type": "application/json",
|
|
@@ -1291,12 +1441,11 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1291
1441
|
});
|
|
1292
1442
|
}
|
|
1293
1443
|
/**
|
|
1294
|
-
*
|
|
1444
|
+
* Extract editable fields for the authenticated user.
|
|
1295
1445
|
*/
|
|
1296
|
-
|
|
1446
|
+
extract(options) {
|
|
1297
1447
|
return (options.client ?? this.client).post({
|
|
1298
|
-
|
|
1299
|
-
url: "/claude-auth/start",
|
|
1448
|
+
url: "/universal_input/extract",
|
|
1300
1449
|
...options,
|
|
1301
1450
|
headers: {
|
|
1302
1451
|
"Content-Type": "application/json",
|
|
@@ -820,6 +820,19 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
820
820
|
}
|
|
821
821
|
});
|
|
822
822
|
}
|
|
823
|
+
routineCodeStarters(options) {
|
|
824
|
+
return (options?.client ?? this.client).get({ url: "/scheduled-actions/code/starters", ...options });
|
|
825
|
+
}
|
|
826
|
+
draftRoutine(options) {
|
|
827
|
+
return (options.client ?? this.client).post({
|
|
828
|
+
url: "/scheduled-actions/drafts",
|
|
829
|
+
...options,
|
|
830
|
+
headers: {
|
|
831
|
+
"Content-Type": "application/json",
|
|
832
|
+
...options.headers
|
|
833
|
+
}
|
|
834
|
+
});
|
|
835
|
+
}
|
|
823
836
|
deleteScheduledAction(options) {
|
|
824
837
|
return (options.client ?? this.client).delete({ url: "/scheduled-actions/{id}", ...options });
|
|
825
838
|
}
|
|
@@ -836,6 +849,9 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
836
849
|
}
|
|
837
850
|
});
|
|
838
851
|
}
|
|
852
|
+
listScheduledActionCodeUpgrades(options) {
|
|
853
|
+
return (options.client ?? this.client).get({ url: "/scheduled-actions/{id}/code-upgrades", ...options });
|
|
854
|
+
}
|
|
839
855
|
setScheduledActionEnabled(options) {
|
|
840
856
|
return (options.client ?? this.client).put({
|
|
841
857
|
url: "/scheduled-actions/{id}/enabled",
|
|
@@ -852,6 +868,32 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
852
868
|
listScheduledActionHistory(options) {
|
|
853
869
|
return (options.client ?? this.client).get({ url: "/scheduled-actions/{id}/history", ...options });
|
|
854
870
|
}
|
|
871
|
+
unshareScheduledActionTemplate(options) {
|
|
872
|
+
return (options.client ?? this.client).delete({ url: "/scheduled-actions/{id}/template", ...options });
|
|
873
|
+
}
|
|
874
|
+
getScheduledActionTemplate(options) {
|
|
875
|
+
return (options.client ?? this.client).get({ url: "/scheduled-actions/{id}/template", ...options });
|
|
876
|
+
}
|
|
877
|
+
shareScheduledActionTemplate(options) {
|
|
878
|
+
return (options.client ?? this.client).put({
|
|
879
|
+
url: "/scheduled-actions/{id}/template",
|
|
880
|
+
...options,
|
|
881
|
+
headers: {
|
|
882
|
+
"Content-Type": "application/json",
|
|
883
|
+
...options.headers
|
|
884
|
+
}
|
|
885
|
+
});
|
|
886
|
+
}
|
|
887
|
+
activateScheduledActionTemplate(options) {
|
|
888
|
+
return (options.client ?? this.client).post({
|
|
889
|
+
url: "/scheduled-actions/{id}/template/activate",
|
|
890
|
+
...options,
|
|
891
|
+
headers: {
|
|
892
|
+
"Content-Type": "application/json",
|
|
893
|
+
...options.headers
|
|
894
|
+
}
|
|
895
|
+
});
|
|
896
|
+
}
|
|
855
897
|
};
|
|
856
898
|
|
|
857
899
|
export {
|