@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
|
@@ -1,4 +1,29 @@
|
|
|
1
1
|
// generated/storage/core/bodySerializer.gen.ts
|
|
2
|
+
var serializeFormDataPair = (data, key, value) => {
|
|
3
|
+
if (typeof value === "string" || value instanceof Blob) {
|
|
4
|
+
data.append(key, value);
|
|
5
|
+
} else if (value instanceof Date) {
|
|
6
|
+
data.append(key, value.toISOString());
|
|
7
|
+
} else {
|
|
8
|
+
data.append(key, JSON.stringify(value));
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
var formDataBodySerializer = {
|
|
12
|
+
bodySerializer: (body) => {
|
|
13
|
+
const data = new FormData();
|
|
14
|
+
Object.entries(body).forEach(([key, value]) => {
|
|
15
|
+
if (value === void 0 || value === null) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
if (Array.isArray(value)) {
|
|
19
|
+
value.forEach((v) => serializeFormDataPair(data, key, v));
|
|
20
|
+
} else {
|
|
21
|
+
serializeFormDataPair(data, key, value);
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
return data;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
2
27
|
var jsonBodySerializer = {
|
|
3
28
|
bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value)
|
|
4
29
|
};
|
|
@@ -804,6 +829,57 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
804
829
|
super(args);
|
|
805
830
|
_Sdk.__registry.set(this, args?.key);
|
|
806
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
|
+
}
|
|
807
883
|
/**
|
|
808
884
|
* Handler for `GET /agents`.
|
|
809
885
|
*/
|
|
@@ -882,6 +958,25 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
882
958
|
}
|
|
883
959
|
});
|
|
884
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
|
+
}
|
|
885
980
|
/**
|
|
886
981
|
* Handler for `GET /bots/me`.
|
|
887
982
|
*/
|
|
@@ -898,6 +993,31 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
898
993
|
getBotOwnerProfiles(options) {
|
|
899
994
|
return (options?.client ?? this.client).get({ url: "/bots/profiles", ...options });
|
|
900
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
|
+
}
|
|
901
1021
|
/**
|
|
902
1022
|
* Handler for `GET /bots/{bot_id}/channels`.
|
|
903
1023
|
*/
|
|
@@ -910,6 +1030,31 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
910
1030
|
removeBotFromChannelByBot(options) {
|
|
911
1031
|
return (options.client ?? this.client).delete({ url: "/bots/{bot_id}/channels/{channel_id}", ...options });
|
|
912
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
|
+
}
|
|
913
1058
|
/**
|
|
914
1059
|
* Return calendar occurrences visible to the authenticated requester.
|
|
915
1060
|
*/
|
|
@@ -941,6 +1086,28 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
941
1086
|
listTeamOutOfOffice(options) {
|
|
942
1087
|
return (options.client ?? this.client).get({ url: "/calendar-events/team-out-of-office", ...options });
|
|
943
1088
|
}
|
|
1089
|
+
/**
|
|
1090
|
+
* Export an event the requester can see — their own, or one shared with a
|
|
1091
|
+
* channel they belong to — as an iCalendar file named after its title.
|
|
1092
|
+
*/
|
|
1093
|
+
eventIcs(options) {
|
|
1094
|
+
return (options.client ?? this.client).get({ url: "/calendar-events/{event_id}/ics", ...options });
|
|
1095
|
+
}
|
|
1096
|
+
/**
|
|
1097
|
+
* List pending requests to join an event the requester can change.
|
|
1098
|
+
*/
|
|
1099
|
+
listJoinRequests(options) {
|
|
1100
|
+
return (options.client ?? this.client).get({ url: "/calendar-events/{event_id}/join-requests", ...options });
|
|
1101
|
+
}
|
|
1102
|
+
/**
|
|
1103
|
+
* Ask the person who shared an event with one of the requester's channels
|
|
1104
|
+
* to add them as a guest. Asking again while the request is pending or
|
|
1105
|
+
* accepted changes nothing; a declined request stands, so asking after a
|
|
1106
|
+
* decline is refused with `request_declined`.
|
|
1107
|
+
*/
|
|
1108
|
+
requestToJoin(options) {
|
|
1109
|
+
return (options.client ?? this.client).post({ url: "/calendar-events/{event_id}/join-requests", ...options });
|
|
1110
|
+
}
|
|
944
1111
|
/**
|
|
945
1112
|
* Handler for `GET /call/active`.
|
|
946
1113
|
*
|
|
@@ -951,6 +1118,12 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
951
1118
|
getActiveCalls(options) {
|
|
952
1119
|
return (options?.client ?? this.client).get({ url: "/call/active", ...options });
|
|
953
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
|
+
}
|
|
954
1127
|
/**
|
|
955
1128
|
* Read the live call discussion as a verified guest.
|
|
956
1129
|
*/
|
|
@@ -1062,7 +1235,14 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1062
1235
|
* Handle `POST /call/meetings/join/{token}` through the call domain service.
|
|
1063
1236
|
*/
|
|
1064
1237
|
meetingJoin(options) {
|
|
1065
|
-
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
|
+
});
|
|
1066
1246
|
}
|
|
1067
1247
|
/**
|
|
1068
1248
|
* Read the participant preview for an authenticated invitation holder.
|
|
@@ -1168,12 +1348,49 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1168
1348
|
declineCall(options) {
|
|
1169
1349
|
return (options.client ?? this.client).post({ url: "/call/record/{call_id}/decline", ...options });
|
|
1170
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
|
+
}
|
|
1171
1370
|
/**
|
|
1172
1371
|
* Handle `POST /call/record/{call_id}/link` through the call domain service.
|
|
1173
1372
|
*/
|
|
1174
1373
|
meetingShare(options) {
|
|
1175
1374
|
return (options.client ?? this.client).post({ url: "/call/record/{call_id}/link", ...options });
|
|
1176
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
|
+
}
|
|
1177
1394
|
/**
|
|
1178
1395
|
* Handler for `POST /call/record/{call_id}/share-with-team/toggle`.
|
|
1179
1396
|
*
|
|
@@ -1253,6 +1470,19 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1253
1470
|
getOrCreateCall(options) {
|
|
1254
1471
|
return (options.client ?? this.client).get({ url: "/call/{channel_id}", ...options });
|
|
1255
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
|
+
}
|
|
1256
1486
|
/**
|
|
1257
1487
|
* Handler for `GET /call/{channel_id}/active`.
|
|
1258
1488
|
*
|
|
@@ -1330,7 +1560,7 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1330
1560
|
return (options.client ?? this.client).delete({ url: "/channel-labels/{label_id}", ...options });
|
|
1331
1561
|
}
|
|
1332
1562
|
/**
|
|
1333
|
-
*
|
|
1563
|
+
* Update a label, optionally moving it to another authorized scope.
|
|
1334
1564
|
*/
|
|
1335
1565
|
renameChannelLabel(options) {
|
|
1336
1566
|
return (options.client ?? this.client).patch({
|
|
@@ -1469,12 +1699,68 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1469
1699
|
}
|
|
1470
1700
|
});
|
|
1471
1701
|
}
|
|
1702
|
+
/**
|
|
1703
|
+
* Handler for `DELETE /channels/{channel_id}/access-requests/mine`.
|
|
1704
|
+
*/
|
|
1705
|
+
cancelChannelAccessRequest(options) {
|
|
1706
|
+
return (options.client ?? this.client).delete({ url: "/channels/{channel_id}/access-requests/mine", ...options });
|
|
1707
|
+
}
|
|
1708
|
+
/**
|
|
1709
|
+
* Handler for `GET /channels/{channel_id}/access-requests/mine`.
|
|
1710
|
+
*/
|
|
1711
|
+
getMyChannelAccessRequest(options) {
|
|
1712
|
+
return (options.client ?? this.client).get({ url: "/channels/{channel_id}/access-requests/mine", ...options });
|
|
1713
|
+
}
|
|
1714
|
+
/**
|
|
1715
|
+
* Handler for `PUT /channels/{channel_id}/access-requests/mine`.
|
|
1716
|
+
*/
|
|
1717
|
+
requestChannelAccess(options) {
|
|
1718
|
+
return (options.client ?? this.client).put({ url: "/channels/{channel_id}/access-requests/mine", ...options });
|
|
1719
|
+
}
|
|
1720
|
+
/**
|
|
1721
|
+
* Handler for `GET /channels/{channel_id}/access-requests/{request_id}`.
|
|
1722
|
+
*/
|
|
1723
|
+
getChannelAccessRequest(options) {
|
|
1724
|
+
return (options.client ?? this.client).get({ url: "/channels/{channel_id}/access-requests/{request_id}", ...options });
|
|
1725
|
+
}
|
|
1726
|
+
/**
|
|
1727
|
+
* Handler for `POST /channels/{channel_id}/access-requests/{request_id}/resolve`.
|
|
1728
|
+
*/
|
|
1729
|
+
resolveChannelAccessRequest(options) {
|
|
1730
|
+
return (options.client ?? this.client).post({
|
|
1731
|
+
url: "/channels/{channel_id}/access-requests/{request_id}/resolve",
|
|
1732
|
+
...options,
|
|
1733
|
+
headers: {
|
|
1734
|
+
"Content-Type": "application/json",
|
|
1735
|
+
...options.headers
|
|
1736
|
+
}
|
|
1737
|
+
});
|
|
1738
|
+
}
|
|
1472
1739
|
/**
|
|
1473
1740
|
* Handler for `GET /channels/{channel_id}/attachments`.
|
|
1474
1741
|
*/
|
|
1475
1742
|
getChannelAttachments(options) {
|
|
1476
1743
|
return (options.client ?? this.client).get({ url: "/channels/{channel_id}/attachments", ...options });
|
|
1477
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
|
+
}
|
|
1478
1764
|
/**
|
|
1479
1765
|
* Handler for `POST /channels/{channel_id}/bots/scoped`.
|
|
1480
1766
|
*/
|
|
@@ -1606,9 +1892,31 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1606
1892
|
getChannels(options) {
|
|
1607
1893
|
return (options?.client ?? this.client).get({ url: "/comms/channels", ...options });
|
|
1608
1894
|
}
|
|
1895
|
+
/**
|
|
1896
|
+
* List the domains the caller's team keeps out of email sync,
|
|
1897
|
+
* alphabetically. Any team member may read.
|
|
1898
|
+
*/
|
|
1899
|
+
listCrmBlockedDomains(options) {
|
|
1900
|
+
return (options?.client ?? this.client).get({ url: "/crm/blocked-domains", ...options });
|
|
1901
|
+
}
|
|
1902
|
+
/**
|
|
1903
|
+
* Unblock a domain: email sync resumes for it, and what blocking hid is
|
|
1904
|
+
* shown again. Idempotent. Requires an admin/owner team role (403).
|
|
1905
|
+
*/
|
|
1906
|
+
unblockCrmDomain(options) {
|
|
1907
|
+
return (options.client ?? this.client).delete({ url: "/crm/blocked-domains/{domain}", ...options });
|
|
1908
|
+
}
|
|
1909
|
+
/**
|
|
1910
|
+
* Block a domain: email sync stops creating or updating CRM records for
|
|
1911
|
+
* it, and the company and contacts the CRM holds for it are hidden.
|
|
1912
|
+
* Idempotent. Requires an admin/owner team role (403).
|
|
1913
|
+
*/
|
|
1914
|
+
blockCrmDomain(options) {
|
|
1915
|
+
return (options.client ?? this.client).put({ url: "/crm/blocked-domains/{domain}", ...options });
|
|
1916
|
+
}
|
|
1609
1917
|
/**
|
|
1610
1918
|
* Manually create a CRM company for the caller's team. Any team member
|
|
1611
|
-
* may create one.
|
|
1919
|
+
* may create one. A domain, when given, must not already be tracked by the team
|
|
1612
1920
|
* (409), and the team's CRM killswitch must be on (403). Returns the
|
|
1613
1921
|
* created company in the same shape as `GET /crm/companies/{id}` (its
|
|
1614
1922
|
* contact list is empty until emails populate it).
|
|
@@ -1650,7 +1958,6 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1650
1958
|
* [`CrmCompanyAccessLevelExtractor`]: the caller must be on the team
|
|
1651
1959
|
* that owns the company (hidden companies are reachable for
|
|
1652
1960
|
* admin/owner only, and the new contact then inherits `hidden`). The
|
|
1653
|
-
* email's domain must be one of the company's domains (400), the
|
|
1654
1961
|
* company must not already track the email (409), and the team's CRM
|
|
1655
1962
|
* killswitch must be on (403).
|
|
1656
1963
|
*/
|
|
@@ -1721,11 +2028,28 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1721
2028
|
searchContacts(options) {
|
|
1722
2029
|
return (options?.client ?? this.client).get({ url: "/crm/contacts", ...options });
|
|
1723
2030
|
}
|
|
2031
|
+
/**
|
|
2032
|
+
* Manually create a contact without a company for the caller's team.
|
|
2033
|
+
* Any team member may create one. The team must not already have a
|
|
2034
|
+
* company-less contact with the email (409), and the team's CRM
|
|
2035
|
+
* killswitch must be on (403).
|
|
2036
|
+
*/
|
|
2037
|
+
createCrmTeamContact(options) {
|
|
2038
|
+
return (options.client ?? this.client).post({
|
|
2039
|
+
url: "/crm/contacts",
|
|
2040
|
+
...options,
|
|
2041
|
+
headers: {
|
|
2042
|
+
"Content-Type": "application/json",
|
|
2043
|
+
...options.headers
|
|
2044
|
+
}
|
|
2045
|
+
});
|
|
2046
|
+
}
|
|
1724
2047
|
/**
|
|
1725
2048
|
* Look up a CRM contact by email in the caller's team. Returns a null
|
|
1726
2049
|
* `contact` when no visible contact exists. Any team member may resolve a
|
|
1727
2050
|
* visible contact; admin/owner callers may also resolve hidden contacts and
|
|
1728
|
-
* contacts under hidden companies.
|
|
2051
|
+
* contacts under hidden companies. Returns 400 when several visible contacts
|
|
2052
|
+
* match; callers must choose an explicit contact ID instead.
|
|
1729
2053
|
*/
|
|
1730
2054
|
getContactByEmail(options) {
|
|
1731
2055
|
return (options.client ?? this.client).get({ url: "/crm/contacts/by-email", ...options });
|
|
@@ -1874,6 +2198,25 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1874
2198
|
}
|
|
1875
2199
|
});
|
|
1876
2200
|
}
|
|
2201
|
+
/**
|
|
2202
|
+
* Read requirements by stable stage and field identities.
|
|
2203
|
+
*/
|
|
2204
|
+
getCrmPipelineStageRequirements(options) {
|
|
2205
|
+
return (options.client ?? this.client).get({ url: "/crm/pipelines/{id}/stage-requirements", ...options });
|
|
2206
|
+
}
|
|
2207
|
+
/**
|
|
2208
|
+
* Replace the required fields for one stage. An empty list removes its rule.
|
|
2209
|
+
*/
|
|
2210
|
+
setCrmPipelineStageRequirement(options) {
|
|
2211
|
+
return (options.client ?? this.client).put({
|
|
2212
|
+
url: "/crm/pipelines/{id}/stage-requirements",
|
|
2213
|
+
...options,
|
|
2214
|
+
headers: {
|
|
2215
|
+
"Content-Type": "application/json",
|
|
2216
|
+
...options.headers
|
|
2217
|
+
}
|
|
2218
|
+
});
|
|
2219
|
+
}
|
|
1877
2220
|
/**
|
|
1878
2221
|
* Read the host-owned table schema.
|
|
1879
2222
|
*/
|
|
@@ -1893,6 +2236,12 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1893
2236
|
}
|
|
1894
2237
|
});
|
|
1895
2238
|
}
|
|
2239
|
+
/**
|
|
2240
|
+
* Read saved board positions through pipeline access.
|
|
2241
|
+
*/
|
|
2242
|
+
getCrmPipelineViewPositions(options) {
|
|
2243
|
+
return (options.client ?? this.client).get({ url: "/crm/pipelines/{id}/views/{view}/positions", ...options });
|
|
2244
|
+
}
|
|
1896
2245
|
/**
|
|
1897
2246
|
* Read the caller's team CRM configuration. Any team member may read;
|
|
1898
2247
|
* teams without a settings row get the defaults.
|
|
@@ -1904,7 +2253,7 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
1904
2253
|
* Partially update the caller's team CRM configuration. Any team
|
|
1905
2254
|
* member may update the views fields (`team_views`,
|
|
1906
2255
|
* `default_team_view_id`); the governance fields (permission
|
|
1907
|
-
* thresholds, `closed_stage_ids`) require an admin/owner team role
|
|
2256
|
+
* thresholds, `closed_stage_ids`, `exclude_personal_emails`) require an admin/owner team role
|
|
1908
2257
|
* (403 otherwise). Omitted fields keep their current values;
|
|
1909
2258
|
* `team_views` is replaced whole. Returns the resulting settings.
|
|
1910
2259
|
*/
|
|
@@ -2043,6 +2392,20 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2043
2392
|
undoDatabaseChange(options) {
|
|
2044
2393
|
return (options.client ?? this.client).post({ url: "/databases/{id}/changes/{change}/undo", ...options });
|
|
2045
2394
|
}
|
|
2395
|
+
/**
|
|
2396
|
+
* Copy a database, with its tables, columns, views and rows, into a new one
|
|
2397
|
+
* the caller owns. Its sharing, forms, webhooks and history stay behind.
|
|
2398
|
+
*/
|
|
2399
|
+
duplicateDatabase(options) {
|
|
2400
|
+
return (options.client ?? this.client).post({
|
|
2401
|
+
url: "/databases/{id}/duplicate",
|
|
2402
|
+
...options,
|
|
2403
|
+
headers: {
|
|
2404
|
+
"Content-Type": "application/json",
|
|
2405
|
+
...options.headers
|
|
2406
|
+
}
|
|
2407
|
+
});
|
|
2408
|
+
}
|
|
2046
2409
|
/**
|
|
2047
2410
|
* Import a new table and every row atomically; retries carry the same request ID.
|
|
2048
2411
|
*/
|
|
@@ -2077,15 +2440,17 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2077
2440
|
});
|
|
2078
2441
|
}
|
|
2079
2442
|
/**
|
|
2080
|
-
* Read recipients for a database owned by the caller.
|
|
2081
|
-
* sharing
|
|
2443
|
+
* Read recipients and the team share for a database owned by the caller.
|
|
2444
|
+
* Link sharing is always `null`: databases do not support it.
|
|
2082
2445
|
*/
|
|
2083
2446
|
getDatabasePermissions(options) {
|
|
2084
2447
|
return (options.client ?? this.client).get({ url: "/databases/{id}/permissions", ...options });
|
|
2085
2448
|
}
|
|
2086
2449
|
/**
|
|
2087
|
-
* Update channel recipients after proving database
|
|
2088
|
-
*
|
|
2450
|
+
* Update channel recipients and the team share after proving database
|
|
2451
|
+
* ownership. Turning on link sharing is refused; ownership cannot be
|
|
2452
|
+
* changed here. Only the actual owner may change the team share, and a 409
|
|
2453
|
+
* means sharing changed since the request was authorized.
|
|
2089
2454
|
*/
|
|
2090
2455
|
updateDatabasePermissions(options) {
|
|
2091
2456
|
return (options.client ?? this.client).patch({
|
|
@@ -2226,6 +2591,19 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2226
2591
|
}
|
|
2227
2592
|
});
|
|
2228
2593
|
}
|
|
2594
|
+
/**
|
|
2595
|
+
* Creates and initializes a Canvas in one backend-owned lifecycle.
|
|
2596
|
+
*/
|
|
2597
|
+
createCanvasHandler(options) {
|
|
2598
|
+
return (options.client ?? this.client).post({
|
|
2599
|
+
url: "/documents/create_canvas",
|
|
2600
|
+
...options,
|
|
2601
|
+
headers: {
|
|
2602
|
+
"Content-Type": "application/json",
|
|
2603
|
+
...options.headers
|
|
2604
|
+
}
|
|
2605
|
+
});
|
|
2606
|
+
}
|
|
2229
2607
|
/**
|
|
2230
2608
|
* Creates and initializes a markdown document in one backend-owned lifecycle.
|
|
2231
2609
|
*/
|
|
@@ -2240,8 +2618,8 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2240
2618
|
});
|
|
2241
2619
|
}
|
|
2242
2620
|
/**
|
|
2243
|
-
* Creates a skill document with initialized markdown content
|
|
2244
|
-
* backend-owned lifecycle. Skills are markdown documents containing
|
|
2621
|
+
* Creates a skill document with initialized markdown content and its
|
|
2622
|
+
* routing description in one backend-owned lifecycle. Skills are markdown documents containing
|
|
2245
2623
|
* instructions that AI reads and follows when the skill is referenced in an
|
|
2246
2624
|
* AI input.
|
|
2247
2625
|
*/
|
|
@@ -2354,6 +2732,22 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2354
2732
|
}
|
|
2355
2733
|
});
|
|
2356
2734
|
}
|
|
2735
|
+
/**
|
|
2736
|
+
* Handler for `POST /documents/similarity_search`.
|
|
2737
|
+
*
|
|
2738
|
+
* Returns existing tasks similar to an unsaved draft. Runs vector retrieval +
|
|
2739
|
+
* rerank only and persists nothing.
|
|
2740
|
+
*/
|
|
2741
|
+
taskSimilaritySearchHandler(options) {
|
|
2742
|
+
return (options.client ?? this.client).post({
|
|
2743
|
+
url: "/documents/similarity_search",
|
|
2744
|
+
...options,
|
|
2745
|
+
headers: {
|
|
2746
|
+
"Content-Type": "application/json",
|
|
2747
|
+
...options.headers
|
|
2748
|
+
}
|
|
2749
|
+
});
|
|
2750
|
+
}
|
|
2357
2751
|
/**
|
|
2358
2752
|
* Handler for `GET /documents/slug/{slug}`.
|
|
2359
2753
|
*
|
|
@@ -2377,6 +2771,23 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2377
2771
|
getSystemSkillsHandler(options) {
|
|
2378
2772
|
return (options?.client ?? this.client).get({ url: "/documents/system_skills", ...options });
|
|
2379
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
|
+
}
|
|
2380
2791
|
/**
|
|
2381
2792
|
* Handler for `DELETE /documents/{document_id}`.
|
|
2382
2793
|
*
|
|
@@ -2423,6 +2834,25 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2423
2834
|
}
|
|
2424
2835
|
});
|
|
2425
2836
|
}
|
|
2837
|
+
/**
|
|
2838
|
+
* Edit a markdown document or task by instructions with the caller's edit
|
|
2839
|
+
* access. Runs EditDocument's pipeline as a live collaborator, with its AI
|
|
2840
|
+
* admission and billing.
|
|
2841
|
+
*
|
|
2842
|
+
* A client that disconnects aborts the edit: axum drops this handler's
|
|
2843
|
+
* future, which drops the in-flight request to the editing worker, and the
|
|
2844
|
+
* worker aborts on its request signal. Steps already acknowledged stay.
|
|
2845
|
+
*/
|
|
2846
|
+
editDocumentWithAi(options) {
|
|
2847
|
+
return (options.client ?? this.client).post({
|
|
2848
|
+
url: "/documents/{document_id}/ai-edit",
|
|
2849
|
+
...options,
|
|
2850
|
+
headers: {
|
|
2851
|
+
"Content-Type": "application/json",
|
|
2852
|
+
...options.headers
|
|
2853
|
+
}
|
|
2854
|
+
});
|
|
2855
|
+
}
|
|
2426
2856
|
/**
|
|
2427
2857
|
* Handler for `GET /documents/{document_id}/branch_name`.
|
|
2428
2858
|
*
|
|
@@ -2448,6 +2878,15 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2448
2878
|
}
|
|
2449
2879
|
});
|
|
2450
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
|
+
}
|
|
2451
2890
|
/**
|
|
2452
2891
|
* Generates a presigned url to download the raw content of the document
|
|
2453
2892
|
* For files with modification layers, they will not be applied in the downloaded file.
|
|
@@ -2464,6 +2903,14 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2464
2903
|
getDocumentGithubPullRequests(options) {
|
|
2465
2904
|
return (options.client ?? this.client).get({ url: "/documents/{document_id}/github_prs", ...options });
|
|
2466
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
|
+
}
|
|
2467
2914
|
/**
|
|
2468
2915
|
* Gets the presigned url(s) for the document. aka location
|
|
2469
2916
|
*/
|
|
@@ -2484,6 +2931,52 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2484
2931
|
permanentlyDeleteDocument(options) {
|
|
2485
2932
|
return (options.client ?? this.client).delete({ url: "/documents/{document_id}/permanent", ...options });
|
|
2486
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
|
+
}
|
|
2487
2980
|
/**
|
|
2488
2981
|
* Fetches the document pdf processing result for a given document id
|
|
2489
2982
|
*/
|
|
@@ -2518,6 +3011,27 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2518
3011
|
simpleSave(options) {
|
|
2519
3012
|
return (options.client ?? this.client).put({ url: "/documents/{document_id}/simple_save", ...options });
|
|
2520
3013
|
}
|
|
3014
|
+
/**
|
|
3015
|
+
* Gets when to use a skill. `description` is absent for a skill created
|
|
3016
|
+
* before descriptions existed.
|
|
3017
|
+
*/
|
|
3018
|
+
getSkillDescription(options) {
|
|
3019
|
+
return (options.client ?? this.client).get({ url: "/documents/{document_id}/skill_description", ...options });
|
|
3020
|
+
}
|
|
3021
|
+
/**
|
|
3022
|
+
* Sets when to use a skill: one line starting "Use when", at most 300
|
|
3023
|
+
* characters. Agents choose skills for a request by it.
|
|
3024
|
+
*/
|
|
3025
|
+
setSkillDescription(options) {
|
|
3026
|
+
return (options.client ?? this.client).put({
|
|
3027
|
+
url: "/documents/{document_id}/skill_description",
|
|
3028
|
+
...options,
|
|
3029
|
+
headers: {
|
|
3030
|
+
"Content-Type": "application/json",
|
|
3031
|
+
...options.headers
|
|
3032
|
+
}
|
|
3033
|
+
});
|
|
3034
|
+
}
|
|
2521
3035
|
/**
|
|
2522
3036
|
* Gets the team-share state of a document. The team is resolved from the
|
|
2523
3037
|
* document owner's team membership; `teamId` is omitted when the owner does
|
|
@@ -2554,6 +3068,30 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2554
3068
|
getDocumentViewsHandler(options) {
|
|
2555
3069
|
return (options.client ?? this.client).get({ url: "/documents/{document_id}/views", ...options });
|
|
2556
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
|
+
}
|
|
2557
3095
|
/**
|
|
2558
3096
|
* Gets a particular document by its id
|
|
2559
3097
|
*/
|
|
@@ -2629,6 +3167,140 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2629
3167
|
getEntityPermission(options) {
|
|
2630
3168
|
return (options.client ?? this.client).get({ url: "/entity/{entity_type}/{entity_id}/permissions", ...options });
|
|
2631
3169
|
}
|
|
3170
|
+
/**
|
|
3171
|
+
* List external chats the caller can view, including without a provider account.
|
|
3172
|
+
*/
|
|
3173
|
+
externalChats(options) {
|
|
3174
|
+
return (options?.client ?? this.client).get({ url: "/external-chats", ...options });
|
|
3175
|
+
}
|
|
3176
|
+
/**
|
|
3177
|
+
* Add one of the caller's provider chats as their own external chat.
|
|
3178
|
+
*/
|
|
3179
|
+
externalChatAdd(options) {
|
|
3180
|
+
return (options.client ?? this.client).post({
|
|
3181
|
+
url: "/external-chats",
|
|
3182
|
+
...options,
|
|
3183
|
+
headers: {
|
|
3184
|
+
"Content-Type": "application/json",
|
|
3185
|
+
...options.headers
|
|
3186
|
+
}
|
|
3187
|
+
});
|
|
3188
|
+
}
|
|
3189
|
+
/**
|
|
3190
|
+
* Stop syncing the chat, locally. Owner only, in their own session.
|
|
3191
|
+
*/
|
|
3192
|
+
externalChatRemove(options) {
|
|
3193
|
+
return (options.client ?? this.client).delete({ url: "/external-chats/{chat_id}", ...options });
|
|
3194
|
+
}
|
|
3195
|
+
/**
|
|
3196
|
+
* An external chat the caller can read.
|
|
3197
|
+
*/
|
|
3198
|
+
externalChat(options) {
|
|
3199
|
+
return (options.client ?? this.client).get({ url: "/external-chats/{chat_id}", ...options });
|
|
3200
|
+
}
|
|
3201
|
+
/**
|
|
3202
|
+
* Stage one attachment for a later media send in this chat.
|
|
3203
|
+
*/
|
|
3204
|
+
externalChatUpload(options) {
|
|
3205
|
+
return (options.client ?? this.client).post({
|
|
3206
|
+
...formDataBodySerializer,
|
|
3207
|
+
url: "/external-chats/{chat_id}/attachments",
|
|
3208
|
+
...options,
|
|
3209
|
+
headers: {
|
|
3210
|
+
"Content-Type": null,
|
|
3211
|
+
...options.headers
|
|
3212
|
+
}
|
|
3213
|
+
});
|
|
3214
|
+
}
|
|
3215
|
+
/**
|
|
3216
|
+
* The caller's send progress for intents or messages.
|
|
3217
|
+
*/
|
|
3218
|
+
externalChatDelivery(options) {
|
|
3219
|
+
return (options.client ?? this.client).post({
|
|
3220
|
+
url: "/external-chats/{chat_id}/delivery",
|
|
3221
|
+
...options,
|
|
3222
|
+
headers: {
|
|
3223
|
+
"Content-Type": "application/json",
|
|
3224
|
+
...options.headers
|
|
3225
|
+
}
|
|
3226
|
+
});
|
|
3227
|
+
}
|
|
3228
|
+
/**
|
|
3229
|
+
* Newest-first timeline through ordinary view access.
|
|
3230
|
+
*/
|
|
3231
|
+
externalChatMessages(options) {
|
|
3232
|
+
return (options.client ?? this.client).get({ url: "/external-chats/{chat_id}/messages", ...options });
|
|
3233
|
+
}
|
|
3234
|
+
/**
|
|
3235
|
+
* Attachment states of messages, by message id (at most 100).
|
|
3236
|
+
*/
|
|
3237
|
+
externalChatMessageAttachments(options) {
|
|
3238
|
+
return (options.client ?? this.client).post({
|
|
3239
|
+
url: "/external-chats/{chat_id}/messages/attachments",
|
|
3240
|
+
...options,
|
|
3241
|
+
headers: {
|
|
3242
|
+
"Content-Type": "application/json",
|
|
3243
|
+
...options.headers
|
|
3244
|
+
}
|
|
3245
|
+
});
|
|
3246
|
+
}
|
|
3247
|
+
/**
|
|
3248
|
+
* One message of the timeline, as the timeline shows it.
|
|
3249
|
+
*/
|
|
3250
|
+
externalChatMessage(options) {
|
|
3251
|
+
return (options.client ?? this.client).get({ url: "/external-chats/{chat_id}/messages/{message_id}", ...options });
|
|
3252
|
+
}
|
|
3253
|
+
/**
|
|
3254
|
+
* Generic Share dialog policy.
|
|
3255
|
+
*/
|
|
3256
|
+
externalChatPermissions(options) {
|
|
3257
|
+
return (options.client ?? this.client).get({ url: "/external-chats/{chat_id}/permissions", ...options });
|
|
3258
|
+
}
|
|
3259
|
+
/**
|
|
3260
|
+
* The owner, in their own session, updates link, team and channel sharing.
|
|
3261
|
+
*/
|
|
3262
|
+
externalChatUpdatePermissions(options) {
|
|
3263
|
+
return (options.client ?? this.client).patch({
|
|
3264
|
+
url: "/external-chats/{chat_id}/permissions",
|
|
3265
|
+
...options,
|
|
3266
|
+
headers: {
|
|
3267
|
+
"Content-Type": "application/json",
|
|
3268
|
+
...options.headers
|
|
3269
|
+
}
|
|
3270
|
+
});
|
|
3271
|
+
}
|
|
3272
|
+
/**
|
|
3273
|
+
* Advance this viewer's read position.
|
|
3274
|
+
*/
|
|
3275
|
+
externalChatRead(options) {
|
|
3276
|
+
return (options.client ?? this.client).post({
|
|
3277
|
+
url: "/external-chats/{chat_id}/read",
|
|
3278
|
+
...options,
|
|
3279
|
+
headers: {
|
|
3280
|
+
"Content-Type": "application/json",
|
|
3281
|
+
...options.headers
|
|
3282
|
+
}
|
|
3283
|
+
});
|
|
3284
|
+
}
|
|
3285
|
+
/**
|
|
3286
|
+
* Caller-owned pending, failed and uncertain sends.
|
|
3287
|
+
*/
|
|
3288
|
+
externalChatSends(options) {
|
|
3289
|
+
return (options.client ?? this.client).get({ url: "/external-chats/{chat_id}/sends", ...options });
|
|
3290
|
+
}
|
|
3291
|
+
/**
|
|
3292
|
+
* Send to the chat from the caller's own provider account (one request per second per user).
|
|
3293
|
+
*/
|
|
3294
|
+
externalChatSend(options) {
|
|
3295
|
+
return (options.client ?? this.client).post({
|
|
3296
|
+
url: "/external-chats/{chat_id}/sends",
|
|
3297
|
+
...options,
|
|
3298
|
+
headers: {
|
|
3299
|
+
"Content-Type": "application/json",
|
|
3300
|
+
...options.headers
|
|
3301
|
+
}
|
|
3302
|
+
});
|
|
3303
|
+
}
|
|
2632
3304
|
/**
|
|
2633
3305
|
* List the caller's favorites.
|
|
2634
3306
|
*/
|
|
@@ -2953,6 +3625,19 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
2953
3625
|
deleteHarness(options) {
|
|
2954
3626
|
return (options.client ?? this.client).delete({ url: "/harnesses/{harness_id}", ...options });
|
|
2955
3627
|
}
|
|
3628
|
+
/**
|
|
3629
|
+
* Handler for `PATCH /harnesses/{harness_id}`.
|
|
3630
|
+
*/
|
|
3631
|
+
patchHarness(options) {
|
|
3632
|
+
return (options.client ?? this.client).patch({
|
|
3633
|
+
url: "/harnesses/{harness_id}",
|
|
3634
|
+
...options,
|
|
3635
|
+
headers: {
|
|
3636
|
+
"Content-Type": "application/json",
|
|
3637
|
+
...options.headers
|
|
3638
|
+
}
|
|
3639
|
+
});
|
|
3640
|
+
}
|
|
2956
3641
|
/**
|
|
2957
3642
|
* Health check
|
|
2958
3643
|
*/
|
|
@@ -3616,6 +4301,98 @@ var Sdk = class _Sdk extends HeyApiClient {
|
|
|
3616
4301
|
validateWebhook(options) {
|
|
3617
4302
|
return (options.client ?? this.client).post({ url: "/webhook/webhooks/{webhook_id}/validate", ...options });
|
|
3618
4303
|
}
|
|
4304
|
+
/**
|
|
4305
|
+
* The caller's own account.
|
|
4306
|
+
*/
|
|
4307
|
+
whatsappAccount(options) {
|
|
4308
|
+
return (options?.client ?? this.client).get({ url: "/whatsapp/account", ...options });
|
|
4309
|
+
}
|
|
4310
|
+
/**
|
|
4311
|
+
* The caller's WhatsApp chat list (groups and direct chats), newest
|
|
4312
|
+
* activity first, with what can be added to Macro.
|
|
4313
|
+
*/
|
|
4314
|
+
whatsappChats(options) {
|
|
4315
|
+
return (options?.client ?? this.client).get({ url: "/whatsapp/chats", ...options });
|
|
4316
|
+
}
|
|
4317
|
+
/**
|
|
4318
|
+
* Start or resume the caller's pairing transaction.
|
|
4319
|
+
*/
|
|
4320
|
+
whatsappConnect(options) {
|
|
4321
|
+
return (options.client ?? this.client).post({
|
|
4322
|
+
url: "/whatsapp/connect",
|
|
4323
|
+
...options,
|
|
4324
|
+
headers: {
|
|
4325
|
+
"Content-Type": "application/json",
|
|
4326
|
+
...options.headers
|
|
4327
|
+
}
|
|
4328
|
+
});
|
|
4329
|
+
}
|
|
4330
|
+
/**
|
|
4331
|
+
* End the caller's observation consent.
|
|
4332
|
+
*/
|
|
4333
|
+
whatsappDisconnect(options) {
|
|
4334
|
+
return (options.client ?? this.client).post({
|
|
4335
|
+
url: "/whatsapp/disconnect",
|
|
4336
|
+
...options,
|
|
4337
|
+
headers: {
|
|
4338
|
+
"Content-Type": "application/json",
|
|
4339
|
+
...options.headers
|
|
4340
|
+
}
|
|
4341
|
+
});
|
|
4342
|
+
}
|
|
4343
|
+
/**
|
|
4344
|
+
* Import earlier messages of the caller's chats that wait for their phone
|
|
4345
|
+
* (`backfill.state` `waiting_for_phone`). WhatsApp must be open on the phone.
|
|
4346
|
+
*/
|
|
4347
|
+
whatsappImportHistory(options) {
|
|
4348
|
+
return (options?.client ?? this.client).post({ url: "/whatsapp/history-import", ...options });
|
|
4349
|
+
}
|
|
4350
|
+
/**
|
|
4351
|
+
* Ask whether a phone number has a WhatsApp account, to start a direct chat
|
|
4352
|
+
* with it; poll the lookup until it is no longer `pending`. Found numbers
|
|
4353
|
+
* join the chat list, so `POST /external-chats` adds them.
|
|
4354
|
+
*/
|
|
4355
|
+
whatsappStartLookup(options) {
|
|
4356
|
+
return (options.client ?? this.client).post({
|
|
4357
|
+
url: "/whatsapp/lookups",
|
|
4358
|
+
...options,
|
|
4359
|
+
headers: {
|
|
4360
|
+
"Content-Type": "application/json",
|
|
4361
|
+
...options.headers
|
|
4362
|
+
}
|
|
4363
|
+
});
|
|
4364
|
+
}
|
|
4365
|
+
/**
|
|
4366
|
+
* Poll the caller's phone-number lookup.
|
|
4367
|
+
*/
|
|
4368
|
+
whatsappLookup(options) {
|
|
4369
|
+
return (options.client ?? this.client).get({ url: "/whatsapp/lookups/{id}", ...options });
|
|
4370
|
+
}
|
|
4371
|
+
/**
|
|
4372
|
+
* Cancel the caller's pairing transaction.
|
|
4373
|
+
*/
|
|
4374
|
+
whatsappCancelPairing(options) {
|
|
4375
|
+
return (options.client ?? this.client).delete({ url: "/whatsapp/pairing/{id}", ...options });
|
|
4376
|
+
}
|
|
4377
|
+
/**
|
|
4378
|
+
* Poll the caller's pairing transaction, including its current QR code.
|
|
4379
|
+
*/
|
|
4380
|
+
whatsappPairing(options) {
|
|
4381
|
+
return (options.client ?? this.client).get({ url: "/whatsapp/pairing/{id}", ...options });
|
|
4382
|
+
}
|
|
4383
|
+
/**
|
|
4384
|
+
* Forward the owner's WebAuthn assertion to the pairing replica.
|
|
4385
|
+
*/
|
|
4386
|
+
whatsappPasskey(options) {
|
|
4387
|
+
return (options.client ?? this.client).post({
|
|
4388
|
+
url: "/whatsapp/pairing/{id}/passkey",
|
|
4389
|
+
...options,
|
|
4390
|
+
headers: {
|
|
4391
|
+
"Content-Type": "application/json",
|
|
4392
|
+
...options.headers
|
|
4393
|
+
}
|
|
4394
|
+
});
|
|
4395
|
+
}
|
|
3619
4396
|
};
|
|
3620
4397
|
|
|
3621
4398
|
export {
|