@linebundle-sdk/ts 1.0.0-rc.41 → 1.0.0-rc.43
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/esm/index.d.ts +933 -137
- package/esm/index.js +472 -358
- package/esm/index.js.map +1 -1
- package/package.json +1 -1
package/esm/index.js
CHANGED
|
@@ -922,155 +922,27 @@ var Announcements = class extends HeyApiClient {
|
|
|
922
922
|
});
|
|
923
923
|
}
|
|
924
924
|
};
|
|
925
|
-
var
|
|
926
|
-
/**
|
|
927
|
-
* List audit log entries for the organisation
|
|
928
|
-
*/
|
|
929
|
-
list(options) {
|
|
930
|
-
return (options?.client ?? this.client).get({ url: "/api/v1/audit-logs", ...options });
|
|
931
|
-
}
|
|
932
|
-
};
|
|
933
|
-
var Auth = class extends HeyApiClient {
|
|
934
|
-
/**
|
|
935
|
-
* Get the authenticated caller's identity and permissions
|
|
936
|
-
*/
|
|
937
|
-
context(options) {
|
|
938
|
-
return (options?.client ?? this.client).get({ url: "/api/v1/auth/context", ...options });
|
|
939
|
-
}
|
|
940
|
-
/**
|
|
941
|
-
* Get the authenticated caller's identity and permissions
|
|
942
|
-
*/
|
|
943
|
-
me(options) {
|
|
944
|
-
return (options?.client ?? this.client).get({ url: "/api/v1/auth/me", ...options });
|
|
945
|
-
}
|
|
946
|
-
};
|
|
947
|
-
var Automation = class extends HeyApiClient {
|
|
948
|
-
/**
|
|
949
|
-
* List available native automation action types
|
|
950
|
-
*/
|
|
951
|
-
listActions(options) {
|
|
952
|
-
return (options?.client ?? this.client).get({ url: "/api/v1/automation/actions", ...options });
|
|
953
|
-
}
|
|
954
|
-
/**
|
|
955
|
-
* List automation rules
|
|
956
|
-
*/
|
|
957
|
-
listRules(options) {
|
|
958
|
-
return (options?.client ?? this.client).get({ url: "/api/v1/automation/rules", ...options });
|
|
959
|
-
}
|
|
960
|
-
/**
|
|
961
|
-
* Create an automation rule
|
|
962
|
-
*/
|
|
963
|
-
createRule(options) {
|
|
964
|
-
return (options.client ?? this.client).post({
|
|
965
|
-
url: "/api/v1/automation/rules",
|
|
966
|
-
...options,
|
|
967
|
-
headers: {
|
|
968
|
-
"Content-Type": "application/json",
|
|
969
|
-
...options.headers
|
|
970
|
-
}
|
|
971
|
-
});
|
|
972
|
-
}
|
|
973
|
-
/**
|
|
974
|
-
* Delete an automation rule
|
|
975
|
-
*/
|
|
976
|
-
deleteRule(options) {
|
|
977
|
-
return (options.client ?? this.client).delete({ url: "/api/v1/automation/rules/{id}", ...options });
|
|
978
|
-
}
|
|
979
|
-
/**
|
|
980
|
-
* Get an automation rule
|
|
981
|
-
*/
|
|
982
|
-
getRule(options) {
|
|
983
|
-
return (options.client ?? this.client).get({ url: "/api/v1/automation/rules/{id}", ...options });
|
|
984
|
-
}
|
|
985
|
-
/**
|
|
986
|
-
* Update an automation rule
|
|
987
|
-
*/
|
|
988
|
-
updateRule(options) {
|
|
989
|
-
return (options.client ?? this.client).put({
|
|
990
|
-
url: "/api/v1/automation/rules/{id}",
|
|
991
|
-
...options,
|
|
992
|
-
headers: {
|
|
993
|
-
"Content-Type": "application/json",
|
|
994
|
-
...options.headers
|
|
995
|
-
}
|
|
996
|
-
});
|
|
997
|
-
}
|
|
998
|
-
/**
|
|
999
|
-
* Manually trigger an automation rule
|
|
1000
|
-
*/
|
|
1001
|
-
executeRule(options) {
|
|
1002
|
-
return (options.client ?? this.client).post({ url: "/api/v1/automation/rules/{id}/execute", ...options });
|
|
1003
|
-
}
|
|
1004
|
-
/**
|
|
1005
|
-
* List execution history for a rule
|
|
1006
|
-
*/
|
|
1007
|
-
listExecutions(options) {
|
|
1008
|
-
return (options.client ?? this.client).get({ url: "/api/v1/automation/rules/{id}/executions", ...options });
|
|
1009
|
-
}
|
|
925
|
+
var Attachments = class extends HeyApiClient {
|
|
1010
926
|
/**
|
|
1011
|
-
*
|
|
927
|
+
* Remove an attachment
|
|
1012
928
|
*/
|
|
1013
|
-
|
|
1014
|
-
return (options
|
|
929
|
+
remove(options) {
|
|
930
|
+
return (options.client ?? this.client).delete({ url: "/api/v1/attachments/{id}", ...options });
|
|
1015
931
|
}
|
|
1016
|
-
};
|
|
1017
|
-
var Bookings = class extends HeyApiClient {
|
|
1018
932
|
/**
|
|
1019
|
-
* List
|
|
933
|
+
* List attachments on an event
|
|
1020
934
|
*/
|
|
1021
935
|
list(options) {
|
|
1022
|
-
return (options
|
|
1023
|
-
}
|
|
1024
|
-
/**
|
|
1025
|
-
* Create a booking
|
|
1026
|
-
*/
|
|
1027
|
-
create(options) {
|
|
1028
|
-
return (options.client ?? this.client).post({
|
|
1029
|
-
url: "/api/v1/bookings",
|
|
1030
|
-
...options,
|
|
1031
|
-
headers: {
|
|
1032
|
-
"Content-Type": "application/json",
|
|
1033
|
-
...options.headers
|
|
1034
|
-
}
|
|
1035
|
-
});
|
|
936
|
+
return (options.client ?? this.client).get({ url: "/api/v1/events/{event_id}/attachments", ...options });
|
|
1036
937
|
}
|
|
1037
938
|
/**
|
|
1038
|
-
*
|
|
939
|
+
* Attach a file / reference to an event
|
|
940
|
+
*
|
|
941
|
+
* Attaches a kind+ref to an event. Kind is validated against the parent template's AllowedAttachmentKinds (e.g. announcement accepts 'image'; delivery accepts 'image', 'document', and 'proof_of_delivery').
|
|
1039
942
|
*/
|
|
1040
|
-
|
|
943
|
+
add(options) {
|
|
1041
944
|
return (options.client ?? this.client).post({
|
|
1042
|
-
url: "/api/v1/
|
|
1043
|
-
...options,
|
|
1044
|
-
headers: {
|
|
1045
|
-
"Content-Type": "application/json",
|
|
1046
|
-
...options.headers
|
|
1047
|
-
}
|
|
1048
|
-
});
|
|
1049
|
-
}
|
|
1050
|
-
/**
|
|
1051
|
-
* Get all bookings for a place within a date range
|
|
1052
|
-
*/
|
|
1053
|
-
placeSchedule(options) {
|
|
1054
|
-
return (options.client ?? this.client).get({ url: "/api/v1/bookings/places/{place_id}/schedule", ...options });
|
|
1055
|
-
}
|
|
1056
|
-
/**
|
|
1057
|
-
* Delete a booking
|
|
1058
|
-
*/
|
|
1059
|
-
delete(options) {
|
|
1060
|
-
return (options.client ?? this.client).delete({ url: "/api/v1/bookings/{id}", ...options });
|
|
1061
|
-
}
|
|
1062
|
-
/**
|
|
1063
|
-
* Get a booking by ID
|
|
1064
|
-
*/
|
|
1065
|
-
get(options) {
|
|
1066
|
-
return (options.client ?? this.client).get({ url: "/api/v1/bookings/{id}", ...options });
|
|
1067
|
-
}
|
|
1068
|
-
/**
|
|
1069
|
-
* Update a booking
|
|
1070
|
-
*/
|
|
1071
|
-
update(options) {
|
|
1072
|
-
return (options.client ?? this.client).put({
|
|
1073
|
-
url: "/api/v1/bookings/{id}",
|
|
945
|
+
url: "/api/v1/events/{event_id}/attachments",
|
|
1074
946
|
...options,
|
|
1075
947
|
headers: {
|
|
1076
948
|
"Content-Type": "application/json",
|
|
@@ -1079,82 +951,21 @@ var Bookings = class extends HeyApiClient {
|
|
|
1079
951
|
});
|
|
1080
952
|
}
|
|
1081
953
|
};
|
|
1082
|
-
var
|
|
954
|
+
var Activity = class extends HeyApiClient {
|
|
1083
955
|
/**
|
|
1084
|
-
* List
|
|
956
|
+
* List activity for an event
|
|
957
|
+
*
|
|
958
|
+
* Returns the append-only activity log: state transitions, attachments added, edits. AI callers: poll this to learn how a delivery has progressed.
|
|
1085
959
|
*/
|
|
1086
960
|
list(options) {
|
|
1087
|
-
return (options
|
|
961
|
+
return (options.client ?? this.client).get({ url: "/api/v1/events/{event_id}/activity", ...options });
|
|
1088
962
|
}
|
|
1089
963
|
/**
|
|
1090
|
-
*
|
|
964
|
+
* Append an activity row
|
|
1091
965
|
*/
|
|
1092
|
-
|
|
966
|
+
append(options) {
|
|
1093
967
|
return (options.client ?? this.client).post({
|
|
1094
|
-
url: "/api/v1/
|
|
1095
|
-
...options,
|
|
1096
|
-
headers: {
|
|
1097
|
-
"Content-Type": "application/json",
|
|
1098
|
-
...options.headers
|
|
1099
|
-
}
|
|
1100
|
-
});
|
|
1101
|
-
}
|
|
1102
|
-
/**
|
|
1103
|
-
* Search contacts
|
|
1104
|
-
*/
|
|
1105
|
-
search(options) {
|
|
1106
|
-
return (options?.client ?? this.client).get({ url: "/api/v1/contacts/search", ...options });
|
|
1107
|
-
}
|
|
1108
|
-
/**
|
|
1109
|
-
* Delete a contact
|
|
1110
|
-
*/
|
|
1111
|
-
delete(options) {
|
|
1112
|
-
return (options.client ?? this.client).delete({ url: "/api/v1/contacts/{id}", ...options });
|
|
1113
|
-
}
|
|
1114
|
-
/**
|
|
1115
|
-
* Get a contact
|
|
1116
|
-
*/
|
|
1117
|
-
get(options) {
|
|
1118
|
-
return (options.client ?? this.client).get({ url: "/api/v1/contacts/{id}", ...options });
|
|
1119
|
-
}
|
|
1120
|
-
/**
|
|
1121
|
-
* Update a contact
|
|
1122
|
-
*/
|
|
1123
|
-
update(options) {
|
|
1124
|
-
return (options.client ?? this.client).put({
|
|
1125
|
-
url: "/api/v1/contacts/{id}",
|
|
1126
|
-
...options,
|
|
1127
|
-
headers: {
|
|
1128
|
-
"Content-Type": "application/json",
|
|
1129
|
-
...options.headers
|
|
1130
|
-
}
|
|
1131
|
-
});
|
|
1132
|
-
}
|
|
1133
|
-
/**
|
|
1134
|
-
* Toggle contact favorite
|
|
1135
|
-
*/
|
|
1136
|
-
toggleFavorite(options) {
|
|
1137
|
-
return (options.client ?? this.client).patch({
|
|
1138
|
-
url: "/api/v1/contacts/{id}/favorite",
|
|
1139
|
-
...options,
|
|
1140
|
-
headers: {
|
|
1141
|
-
"Content-Type": "application/json",
|
|
1142
|
-
...options.headers
|
|
1143
|
-
}
|
|
1144
|
-
});
|
|
1145
|
-
}
|
|
1146
|
-
/**
|
|
1147
|
-
* List integration-linked fields for a contact
|
|
1148
|
-
*/
|
|
1149
|
-
listIntegrationFields(options) {
|
|
1150
|
-
return (options.client ?? this.client).get({ url: "/api/v1/contacts/{id}/integration-fields", ...options });
|
|
1151
|
-
}
|
|
1152
|
-
/**
|
|
1153
|
-
* Create or update an integration-linked field on a contact
|
|
1154
|
-
*/
|
|
1155
|
-
upsertIntegrationField(options) {
|
|
1156
|
-
return (options.client ?? this.client).put({
|
|
1157
|
-
url: "/api/v1/contacts/{id}/integration-fields",
|
|
968
|
+
url: "/api/v1/events/{event_id}/activity",
|
|
1158
969
|
...options,
|
|
1159
970
|
headers: {
|
|
1160
971
|
"Content-Type": "application/json",
|
|
@@ -1162,26 +973,24 @@ var Contacts = class extends HeyApiClient {
|
|
|
1162
973
|
}
|
|
1163
974
|
});
|
|
1164
975
|
}
|
|
1165
|
-
/**
|
|
1166
|
-
* Remove an integration-linked field from a contact
|
|
1167
|
-
*/
|
|
1168
|
-
deleteIntegrationField(options) {
|
|
1169
|
-
return (options.client ?? this.client).delete({ url: "/api/v1/contacts/{id}/integration-fields/{app_id}/{field_key}", ...options });
|
|
1170
|
-
}
|
|
1171
976
|
};
|
|
1172
|
-
var
|
|
977
|
+
var Participants = class extends HeyApiClient {
|
|
1173
978
|
/**
|
|
1174
|
-
* List
|
|
979
|
+
* List participants on an event
|
|
980
|
+
*
|
|
981
|
+
* Returns every participant on the event. Filter by role (`?role=recipient`) or actor (`?actor_id=u_123`).
|
|
1175
982
|
*/
|
|
1176
983
|
list(options) {
|
|
1177
|
-
return (options
|
|
984
|
+
return (options.client ?? this.client).get({ url: "/api/v1/events/{event_id}/participants", ...options });
|
|
1178
985
|
}
|
|
1179
986
|
/**
|
|
1180
|
-
*
|
|
987
|
+
* Add a participant to an event
|
|
988
|
+
*
|
|
989
|
+
* Adds a participant in a given role (e.g. 'audience' for announcements, 'recipient' or 'vendor' for deliveries). Idempotent: re-adding the same actor+role returns the existing row.
|
|
1181
990
|
*/
|
|
1182
|
-
|
|
991
|
+
add(options) {
|
|
1183
992
|
return (options.client ?? this.client).post({
|
|
1184
|
-
url: "/api/v1/
|
|
993
|
+
url: "/api/v1/events/{event_id}/participants",
|
|
1185
994
|
...options,
|
|
1186
995
|
headers: {
|
|
1187
996
|
"Content-Type": "application/json",
|
|
@@ -1190,27 +999,25 @@ var Credentials = class extends HeyApiClient {
|
|
|
1190
999
|
});
|
|
1191
1000
|
}
|
|
1192
1001
|
/**
|
|
1193
|
-
*
|
|
1194
|
-
*/
|
|
1195
|
-
revoke(options) {
|
|
1196
|
-
return (options.client ?? this.client).delete({ url: "/api/v1/credentials/{id}", ...options });
|
|
1197
|
-
}
|
|
1198
|
-
/**
|
|
1199
|
-
* Get a machine credential
|
|
1002
|
+
* Remove a participant
|
|
1200
1003
|
*/
|
|
1201
|
-
|
|
1202
|
-
return (options.client ?? this.client).
|
|
1004
|
+
remove(options) {
|
|
1005
|
+
return (options.client ?? this.client).delete({ url: "/api/v1/participants/{id}", ...options });
|
|
1203
1006
|
}
|
|
1204
1007
|
};
|
|
1205
1008
|
var Events = class extends HeyApiClient {
|
|
1206
1009
|
/**
|
|
1207
1010
|
* List events
|
|
1011
|
+
*
|
|
1012
|
+
* Lists events. Filter with `?template=announcement` or `?template_in=delivery&template_in=announcement` to scope by kind.
|
|
1208
1013
|
*/
|
|
1209
1014
|
list(options) {
|
|
1210
1015
|
return (options?.client ?? this.client).get({ url: "/api/v1/events", ...options });
|
|
1211
1016
|
}
|
|
1212
1017
|
/**
|
|
1213
1018
|
* Create an event
|
|
1019
|
+
*
|
|
1020
|
+
* Creates an event. Supply `template` to opt into a template's metadata schema (call GET /event-templates first to discover available templates and their JSON Schemas).
|
|
1214
1021
|
*/
|
|
1215
1022
|
create(options) {
|
|
1216
1023
|
return (options.client ?? this.client).post({
|
|
@@ -1499,42 +1306,343 @@ var Events = class extends HeyApiClient {
|
|
|
1499
1306
|
return (options.client ?? this.client).delete({ url: "/api/v1/events/{id}/documents/{document_id}", ...options });
|
|
1500
1307
|
}
|
|
1501
1308
|
/**
|
|
1502
|
-
* Link a document to an event
|
|
1309
|
+
* Link a document to an event
|
|
1310
|
+
*/
|
|
1311
|
+
addDocument(options) {
|
|
1312
|
+
return (options.client ?? this.client).post({
|
|
1313
|
+
url: "/api/v1/events/{id}/documents/{document_id}",
|
|
1314
|
+
...options,
|
|
1315
|
+
headers: {
|
|
1316
|
+
"Content-Type": "application/json",
|
|
1317
|
+
...options.headers
|
|
1318
|
+
}
|
|
1319
|
+
});
|
|
1320
|
+
}
|
|
1321
|
+
/**
|
|
1322
|
+
* Get draft version of an event
|
|
1323
|
+
*/
|
|
1324
|
+
getDraft(options) {
|
|
1325
|
+
return (options.client ?? this.client).get({ url: "/api/v1/events/{id}/draft", ...options });
|
|
1326
|
+
}
|
|
1327
|
+
/**
|
|
1328
|
+
* Start editing (creates draft clone)
|
|
1329
|
+
*/
|
|
1330
|
+
startEdit(options) {
|
|
1331
|
+
return (options.client ?? this.client).post({ url: "/api/v1/events/{id}/edit", ...options });
|
|
1332
|
+
}
|
|
1333
|
+
/**
|
|
1334
|
+
* List cross-reference links for this event
|
|
1335
|
+
*/
|
|
1336
|
+
listLinks(options) {
|
|
1337
|
+
return (options.client ?? this.client).get({ url: "/api/v1/events/{id}/links", ...options });
|
|
1338
|
+
}
|
|
1339
|
+
/**
|
|
1340
|
+
* Link another event as a cross-reference
|
|
1341
|
+
*/
|
|
1342
|
+
addLink(options) {
|
|
1343
|
+
return (options.client ?? this.client).post({
|
|
1344
|
+
url: "/api/v1/events/{id}/links",
|
|
1345
|
+
...options,
|
|
1346
|
+
headers: {
|
|
1347
|
+
"Content-Type": "application/json",
|
|
1348
|
+
...options.headers
|
|
1349
|
+
}
|
|
1350
|
+
});
|
|
1351
|
+
}
|
|
1352
|
+
/**
|
|
1353
|
+
* Remove a cross-reference link
|
|
1354
|
+
*/
|
|
1355
|
+
removeLink(options) {
|
|
1356
|
+
return (options.client ?? this.client).delete({ url: "/api/v1/events/{id}/links/{target_id}", ...options });
|
|
1357
|
+
}
|
|
1358
|
+
/**
|
|
1359
|
+
* List managers for an event
|
|
1360
|
+
*/
|
|
1361
|
+
listManagers(options) {
|
|
1362
|
+
return (options.client ?? this.client).get({ url: "/api/v1/events/{id}/managers", ...options });
|
|
1363
|
+
}
|
|
1364
|
+
/**
|
|
1365
|
+
* Add a manager to an event
|
|
1366
|
+
*/
|
|
1367
|
+
addManager(options) {
|
|
1368
|
+
return (options.client ?? this.client).post({
|
|
1369
|
+
url: "/api/v1/events/{id}/managers",
|
|
1370
|
+
...options,
|
|
1371
|
+
headers: {
|
|
1372
|
+
"Content-Type": "application/json",
|
|
1373
|
+
...options.headers
|
|
1374
|
+
}
|
|
1375
|
+
});
|
|
1376
|
+
}
|
|
1377
|
+
/**
|
|
1378
|
+
* Invite a manager to an event by email
|
|
1379
|
+
*/
|
|
1380
|
+
inviteManager(options) {
|
|
1381
|
+
return (options.client ?? this.client).post({
|
|
1382
|
+
url: "/api/v1/events/{id}/managers/invite",
|
|
1383
|
+
...options,
|
|
1384
|
+
headers: {
|
|
1385
|
+
"Content-Type": "application/json",
|
|
1386
|
+
...options.headers
|
|
1387
|
+
}
|
|
1388
|
+
});
|
|
1389
|
+
}
|
|
1390
|
+
/**
|
|
1391
|
+
* Remove a manager from an event
|
|
1392
|
+
*/
|
|
1393
|
+
removeManager(options) {
|
|
1394
|
+
return (options.client ?? this.client).delete({ url: "/api/v1/events/{id}/managers/{user_id}", ...options });
|
|
1395
|
+
}
|
|
1396
|
+
/**
|
|
1397
|
+
* Get a single event manager
|
|
1398
|
+
*/
|
|
1399
|
+
getManager(options) {
|
|
1400
|
+
return (options.client ?? this.client).get({ url: "/api/v1/events/{id}/managers/{user_id}", ...options });
|
|
1401
|
+
}
|
|
1402
|
+
/**
|
|
1403
|
+
* Update an event manager's permissions
|
|
1404
|
+
*/
|
|
1405
|
+
updateManager(options) {
|
|
1406
|
+
return (options.client ?? this.client).put({
|
|
1407
|
+
url: "/api/v1/events/{id}/managers/{user_id}",
|
|
1408
|
+
...options,
|
|
1409
|
+
headers: {
|
|
1410
|
+
"Content-Type": "application/json",
|
|
1411
|
+
...options.headers
|
|
1412
|
+
}
|
|
1413
|
+
});
|
|
1414
|
+
}
|
|
1415
|
+
/**
|
|
1416
|
+
* List milestones for an event
|
|
1417
|
+
*/
|
|
1418
|
+
listMilestones(options) {
|
|
1419
|
+
return (options.client ?? this.client).get({ url: "/api/v1/events/{id}/milestones", ...options });
|
|
1420
|
+
}
|
|
1421
|
+
/**
|
|
1422
|
+
* Add a milestone event to a base event
|
|
1423
|
+
*/
|
|
1424
|
+
addMilestone(options) {
|
|
1425
|
+
return (options.client ?? this.client).post({
|
|
1426
|
+
url: "/api/v1/events/{id}/milestones",
|
|
1427
|
+
...options,
|
|
1428
|
+
headers: {
|
|
1429
|
+
"Content-Type": "application/json",
|
|
1430
|
+
...options.headers
|
|
1431
|
+
}
|
|
1432
|
+
});
|
|
1433
|
+
}
|
|
1434
|
+
/**
|
|
1435
|
+
* Remove a milestone from an event
|
|
1436
|
+
*/
|
|
1437
|
+
removeMilestone(options) {
|
|
1438
|
+
return (options.client ?? this.client).delete({ url: "/api/v1/events/{id}/milestones/{milestone_event_id}", ...options });
|
|
1439
|
+
}
|
|
1440
|
+
/**
|
|
1441
|
+
* Update milestone lifecycle status or reset to automatic mode
|
|
1442
|
+
*/
|
|
1443
|
+
patchMilestoneLifecycle(options) {
|
|
1444
|
+
return (options.client ?? this.client).patch({
|
|
1445
|
+
url: "/api/v1/events/{id}/milestones/{milestone_event_id}",
|
|
1446
|
+
...options,
|
|
1447
|
+
headers: {
|
|
1448
|
+
"Content-Type": "application/json",
|
|
1449
|
+
...options.headers
|
|
1450
|
+
}
|
|
1451
|
+
});
|
|
1452
|
+
}
|
|
1453
|
+
/**
|
|
1454
|
+
* Update milestone sequence
|
|
1455
|
+
*/
|
|
1456
|
+
updateMilestone(options) {
|
|
1457
|
+
return (options.client ?? this.client).put({
|
|
1458
|
+
url: "/api/v1/events/{id}/milestones/{milestone_event_id}",
|
|
1459
|
+
...options,
|
|
1460
|
+
headers: {
|
|
1461
|
+
"Content-Type": "application/json",
|
|
1462
|
+
...options.headers
|
|
1463
|
+
}
|
|
1464
|
+
});
|
|
1465
|
+
}
|
|
1466
|
+
/**
|
|
1467
|
+
* Publish an event
|
|
1468
|
+
*
|
|
1469
|
+
* Publishes a new draft or promotes the current draft changes for a published event. Optionally sends a notification to the creator by providing a JSON body with notification options.
|
|
1470
|
+
*/
|
|
1471
|
+
publish(options) {
|
|
1472
|
+
return (options.client ?? this.client).post({
|
|
1473
|
+
url: "/api/v1/events/{id}/publish",
|
|
1474
|
+
...options,
|
|
1475
|
+
headers: {
|
|
1476
|
+
"Content-Type": "application/json",
|
|
1477
|
+
...options.headers
|
|
1478
|
+
}
|
|
1479
|
+
});
|
|
1480
|
+
}
|
|
1481
|
+
/**
|
|
1482
|
+
* Remove from series (scope: this | future | all)
|
|
1483
|
+
*/
|
|
1484
|
+
deleteSeries(options) {
|
|
1485
|
+
return (options.client ?? this.client).delete({ url: "/api/v1/events/{id}/series", ...options });
|
|
1486
|
+
}
|
|
1487
|
+
/**
|
|
1488
|
+
* Get series rule and all occurrences for a recurring event
|
|
1489
|
+
*/
|
|
1490
|
+
getSeries(options) {
|
|
1491
|
+
return (options.client ?? this.client).get({ url: "/api/v1/events/{id}/series", ...options });
|
|
1492
|
+
}
|
|
1493
|
+
/**
|
|
1494
|
+
* Update series fields. Cascades to occurrences without overrides.
|
|
1495
|
+
*/
|
|
1496
|
+
patchSeries(options) {
|
|
1497
|
+
return (options.client ?? this.client).patch({
|
|
1498
|
+
url: "/api/v1/events/{id}/series",
|
|
1499
|
+
...options,
|
|
1500
|
+
headers: {
|
|
1501
|
+
"Content-Type": "application/json",
|
|
1502
|
+
...options.headers
|
|
1503
|
+
}
|
|
1504
|
+
});
|
|
1505
|
+
}
|
|
1506
|
+
/**
|
|
1507
|
+
* Convert an event into the anchor of a new recurring series
|
|
1508
|
+
*/
|
|
1509
|
+
createSeries(options) {
|
|
1510
|
+
return (options.client ?? this.client).post({
|
|
1511
|
+
url: "/api/v1/events/{id}/series",
|
|
1512
|
+
...options,
|
|
1513
|
+
headers: {
|
|
1514
|
+
"Content-Type": "application/json",
|
|
1515
|
+
...options.headers
|
|
1516
|
+
}
|
|
1517
|
+
});
|
|
1518
|
+
}
|
|
1519
|
+
/**
|
|
1520
|
+
* Invite series manager
|
|
1521
|
+
*
|
|
1522
|
+
* Invites a user as series manager by email. Only the series owner can do this.
|
|
1523
|
+
*/
|
|
1524
|
+
inviteSeriesManager(options) {
|
|
1525
|
+
return (options.client ?? this.client).post({
|
|
1526
|
+
url: "/api/v1/events/{id}/series/manager",
|
|
1527
|
+
...options,
|
|
1528
|
+
headers: {
|
|
1529
|
+
"Content-Type": "application/json",
|
|
1530
|
+
...options.headers
|
|
1531
|
+
}
|
|
1532
|
+
});
|
|
1533
|
+
}
|
|
1534
|
+
/**
|
|
1535
|
+
* List occurrences of the series this event belongs to (paginated)
|
|
1536
|
+
*/
|
|
1537
|
+
listOccurrences(options) {
|
|
1538
|
+
return (options.client ?? this.client).get({ url: "/api/v1/events/{id}/series/occurrences", ...options });
|
|
1539
|
+
}
|
|
1540
|
+
/**
|
|
1541
|
+
* Publish series
|
|
1542
|
+
*
|
|
1543
|
+
* Publishes a series and all its occurrences. Optionally sends a notification to attendees.
|
|
1544
|
+
*/
|
|
1545
|
+
publishSeries(options) {
|
|
1546
|
+
return (options.client ?? this.client).post({
|
|
1547
|
+
url: "/api/v1/events/{id}/series/publish",
|
|
1548
|
+
...options,
|
|
1549
|
+
headers: {
|
|
1550
|
+
"Content-Type": "application/json",
|
|
1551
|
+
...options.headers
|
|
1552
|
+
}
|
|
1553
|
+
});
|
|
1554
|
+
}
|
|
1555
|
+
/**
|
|
1556
|
+
* List spaces this event belongs to
|
|
1557
|
+
*/
|
|
1558
|
+
listSpaces(options) {
|
|
1559
|
+
return (options.client ?? this.client).get({ url: "/api/v1/events/{id}/spaces", ...options });
|
|
1560
|
+
}
|
|
1561
|
+
/**
|
|
1562
|
+
* Add event to a space
|
|
1563
|
+
*/
|
|
1564
|
+
addSpace(options) {
|
|
1565
|
+
return (options.client ?? this.client).post({
|
|
1566
|
+
url: "/api/v1/events/{id}/spaces",
|
|
1567
|
+
...options,
|
|
1568
|
+
headers: {
|
|
1569
|
+
"Content-Type": "application/json",
|
|
1570
|
+
...options.headers
|
|
1571
|
+
}
|
|
1572
|
+
});
|
|
1573
|
+
}
|
|
1574
|
+
/**
|
|
1575
|
+
* Remove event from a space
|
|
1576
|
+
*/
|
|
1577
|
+
removeSpace(options) {
|
|
1578
|
+
return (options.client ?? this.client).delete({ url: "/api/v1/events/{id}/spaces/{space_id}", ...options });
|
|
1579
|
+
}
|
|
1580
|
+
/**
|
|
1581
|
+
* Transition an event to a new state per its template's state machine
|
|
1582
|
+
*
|
|
1583
|
+
* Validates the transition against the template's declared edges and guards. Appends a `state_changed` activity row on success. AI callers: consult GET /event-templates/{template_id} for the state machine's allowed transitions and guard requirements (e.g. delivery's `delivered` state requires a proof_of_delivery payload).
|
|
1584
|
+
*/
|
|
1585
|
+
transition(options) {
|
|
1586
|
+
return (options.client ?? this.client).post({
|
|
1587
|
+
url: "/api/v1/events/{id}/transition",
|
|
1588
|
+
...options,
|
|
1589
|
+
headers: {
|
|
1590
|
+
"Content-Type": "application/json",
|
|
1591
|
+
...options.headers
|
|
1592
|
+
}
|
|
1593
|
+
});
|
|
1594
|
+
}
|
|
1595
|
+
get attachments() {
|
|
1596
|
+
return this._attachments ?? (this._attachments = new Attachments({ client: this.client }));
|
|
1597
|
+
}
|
|
1598
|
+
get activity() {
|
|
1599
|
+
return this._activity ?? (this._activity = new Activity({ client: this.client }));
|
|
1600
|
+
}
|
|
1601
|
+
get participants() {
|
|
1602
|
+
return this._participants ?? (this._participants = new Participants({ client: this.client }));
|
|
1603
|
+
}
|
|
1604
|
+
};
|
|
1605
|
+
var Audit = class extends HeyApiClient {
|
|
1606
|
+
/**
|
|
1607
|
+
* List audit log entries for the organisation
|
|
1608
|
+
*/
|
|
1609
|
+
list(options) {
|
|
1610
|
+
return (options?.client ?? this.client).get({ url: "/api/v1/audit-logs", ...options });
|
|
1611
|
+
}
|
|
1612
|
+
};
|
|
1613
|
+
var Auth = class extends HeyApiClient {
|
|
1614
|
+
/**
|
|
1615
|
+
* Get the authenticated caller's identity and permissions
|
|
1503
1616
|
*/
|
|
1504
|
-
|
|
1505
|
-
return (options
|
|
1506
|
-
url: "/api/v1/events/{id}/documents/{document_id}",
|
|
1507
|
-
...options,
|
|
1508
|
-
headers: {
|
|
1509
|
-
"Content-Type": "application/json",
|
|
1510
|
-
...options.headers
|
|
1511
|
-
}
|
|
1512
|
-
});
|
|
1617
|
+
context(options) {
|
|
1618
|
+
return (options?.client ?? this.client).get({ url: "/api/v1/auth/context", ...options });
|
|
1513
1619
|
}
|
|
1514
1620
|
/**
|
|
1515
|
-
* Get
|
|
1621
|
+
* Get the authenticated caller's identity and permissions
|
|
1516
1622
|
*/
|
|
1517
|
-
|
|
1518
|
-
return (options
|
|
1623
|
+
me(options) {
|
|
1624
|
+
return (options?.client ?? this.client).get({ url: "/api/v1/auth/me", ...options });
|
|
1519
1625
|
}
|
|
1626
|
+
};
|
|
1627
|
+
var Automation = class extends HeyApiClient {
|
|
1520
1628
|
/**
|
|
1521
|
-
*
|
|
1629
|
+
* List available native automation action types
|
|
1522
1630
|
*/
|
|
1523
|
-
|
|
1524
|
-
return (options
|
|
1631
|
+
listActions(options) {
|
|
1632
|
+
return (options?.client ?? this.client).get({ url: "/api/v1/automation/actions", ...options });
|
|
1525
1633
|
}
|
|
1526
1634
|
/**
|
|
1527
|
-
* List
|
|
1635
|
+
* List automation rules
|
|
1528
1636
|
*/
|
|
1529
|
-
|
|
1530
|
-
return (options
|
|
1637
|
+
listRules(options) {
|
|
1638
|
+
return (options?.client ?? this.client).get({ url: "/api/v1/automation/rules", ...options });
|
|
1531
1639
|
}
|
|
1532
1640
|
/**
|
|
1533
|
-
*
|
|
1641
|
+
* Create an automation rule
|
|
1534
1642
|
*/
|
|
1535
|
-
|
|
1643
|
+
createRule(options) {
|
|
1536
1644
|
return (options.client ?? this.client).post({
|
|
1537
|
-
url: "/api/v1/
|
|
1645
|
+
url: "/api/v1/automation/rules",
|
|
1538
1646
|
...options,
|
|
1539
1647
|
headers: {
|
|
1540
1648
|
"Content-Type": "application/json",
|
|
@@ -1543,23 +1651,23 @@ var Events = class extends HeyApiClient {
|
|
|
1543
1651
|
});
|
|
1544
1652
|
}
|
|
1545
1653
|
/**
|
|
1546
|
-
*
|
|
1654
|
+
* Delete an automation rule
|
|
1547
1655
|
*/
|
|
1548
|
-
|
|
1549
|
-
return (options.client ?? this.client).delete({ url: "/api/v1/
|
|
1656
|
+
deleteRule(options) {
|
|
1657
|
+
return (options.client ?? this.client).delete({ url: "/api/v1/automation/rules/{id}", ...options });
|
|
1550
1658
|
}
|
|
1551
1659
|
/**
|
|
1552
|
-
*
|
|
1660
|
+
* Get an automation rule
|
|
1553
1661
|
*/
|
|
1554
|
-
|
|
1555
|
-
return (options.client ?? this.client).get({ url: "/api/v1/
|
|
1662
|
+
getRule(options) {
|
|
1663
|
+
return (options.client ?? this.client).get({ url: "/api/v1/automation/rules/{id}", ...options });
|
|
1556
1664
|
}
|
|
1557
1665
|
/**
|
|
1558
|
-
*
|
|
1666
|
+
* Update an automation rule
|
|
1559
1667
|
*/
|
|
1560
|
-
|
|
1561
|
-
return (options.client ?? this.client).
|
|
1562
|
-
url: "/api/v1/
|
|
1668
|
+
updateRule(options) {
|
|
1669
|
+
return (options.client ?? this.client).put({
|
|
1670
|
+
url: "/api/v1/automation/rules/{id}",
|
|
1563
1671
|
...options,
|
|
1564
1672
|
headers: {
|
|
1565
1673
|
"Content-Type": "application/json",
|
|
@@ -1568,36 +1676,37 @@ var Events = class extends HeyApiClient {
|
|
|
1568
1676
|
});
|
|
1569
1677
|
}
|
|
1570
1678
|
/**
|
|
1571
|
-
*
|
|
1679
|
+
* Manually trigger an automation rule
|
|
1572
1680
|
*/
|
|
1573
|
-
|
|
1574
|
-
return (options.client ?? this.client).post({
|
|
1575
|
-
url: "/api/v1/events/{id}/managers/invite",
|
|
1576
|
-
...options,
|
|
1577
|
-
headers: {
|
|
1578
|
-
"Content-Type": "application/json",
|
|
1579
|
-
...options.headers
|
|
1580
|
-
}
|
|
1581
|
-
});
|
|
1681
|
+
executeRule(options) {
|
|
1682
|
+
return (options.client ?? this.client).post({ url: "/api/v1/automation/rules/{id}/execute", ...options });
|
|
1582
1683
|
}
|
|
1583
1684
|
/**
|
|
1584
|
-
*
|
|
1685
|
+
* List execution history for a rule
|
|
1585
1686
|
*/
|
|
1586
|
-
|
|
1587
|
-
return (options.client ?? this.client).
|
|
1687
|
+
listExecutions(options) {
|
|
1688
|
+
return (options.client ?? this.client).get({ url: "/api/v1/automation/rules/{id}/executions", ...options });
|
|
1588
1689
|
}
|
|
1589
1690
|
/**
|
|
1590
|
-
*
|
|
1691
|
+
* List available automation trigger types
|
|
1591
1692
|
*/
|
|
1592
|
-
|
|
1593
|
-
return (options
|
|
1693
|
+
listTriggers(options) {
|
|
1694
|
+
return (options?.client ?? this.client).get({ url: "/api/v1/automation/triggers", ...options });
|
|
1594
1695
|
}
|
|
1696
|
+
};
|
|
1697
|
+
var Bookings = class extends HeyApiClient {
|
|
1595
1698
|
/**
|
|
1596
|
-
*
|
|
1699
|
+
* List bookings
|
|
1597
1700
|
*/
|
|
1598
|
-
|
|
1599
|
-
return (options
|
|
1600
|
-
|
|
1701
|
+
list(options) {
|
|
1702
|
+
return (options?.client ?? this.client).get({ url: "/api/v1/bookings", ...options });
|
|
1703
|
+
}
|
|
1704
|
+
/**
|
|
1705
|
+
* Create a booking
|
|
1706
|
+
*/
|
|
1707
|
+
create(options) {
|
|
1708
|
+
return (options.client ?? this.client).post({
|
|
1709
|
+
url: "/api/v1/bookings",
|
|
1601
1710
|
...options,
|
|
1602
1711
|
headers: {
|
|
1603
1712
|
"Content-Type": "application/json",
|
|
@@ -1606,17 +1715,11 @@ var Events = class extends HeyApiClient {
|
|
|
1606
1715
|
});
|
|
1607
1716
|
}
|
|
1608
1717
|
/**
|
|
1609
|
-
*
|
|
1610
|
-
*/
|
|
1611
|
-
listMilestones(options) {
|
|
1612
|
-
return (options.client ?? this.client).get({ url: "/api/v1/events/{id}/milestones", ...options });
|
|
1613
|
-
}
|
|
1614
|
-
/**
|
|
1615
|
-
* Add a milestone event to a base event
|
|
1718
|
+
* Check place availability for a time slot
|
|
1616
1719
|
*/
|
|
1617
|
-
|
|
1720
|
+
checkAvailability(options) {
|
|
1618
1721
|
return (options.client ?? this.client).post({
|
|
1619
|
-
url: "/api/v1/
|
|
1722
|
+
url: "/api/v1/bookings/check-availability",
|
|
1620
1723
|
...options,
|
|
1621
1724
|
headers: {
|
|
1622
1725
|
"Content-Type": "application/json",
|
|
@@ -1625,30 +1728,29 @@ var Events = class extends HeyApiClient {
|
|
|
1625
1728
|
});
|
|
1626
1729
|
}
|
|
1627
1730
|
/**
|
|
1628
|
-
*
|
|
1731
|
+
* Get all bookings for a place within a date range
|
|
1629
1732
|
*/
|
|
1630
|
-
|
|
1631
|
-
return (options.client ?? this.client).
|
|
1733
|
+
placeSchedule(options) {
|
|
1734
|
+
return (options.client ?? this.client).get({ url: "/api/v1/bookings/places/{place_id}/schedule", ...options });
|
|
1632
1735
|
}
|
|
1633
1736
|
/**
|
|
1634
|
-
*
|
|
1737
|
+
* Delete a booking
|
|
1635
1738
|
*/
|
|
1636
|
-
|
|
1637
|
-
return (options.client ?? this.client).
|
|
1638
|
-
url: "/api/v1/events/{id}/milestones/{milestone_event_id}",
|
|
1639
|
-
...options,
|
|
1640
|
-
headers: {
|
|
1641
|
-
"Content-Type": "application/json",
|
|
1642
|
-
...options.headers
|
|
1643
|
-
}
|
|
1644
|
-
});
|
|
1739
|
+
delete(options) {
|
|
1740
|
+
return (options.client ?? this.client).delete({ url: "/api/v1/bookings/{id}", ...options });
|
|
1645
1741
|
}
|
|
1646
1742
|
/**
|
|
1647
|
-
*
|
|
1743
|
+
* Get a booking by ID
|
|
1648
1744
|
*/
|
|
1649
|
-
|
|
1745
|
+
get(options) {
|
|
1746
|
+
return (options.client ?? this.client).get({ url: "/api/v1/bookings/{id}", ...options });
|
|
1747
|
+
}
|
|
1748
|
+
/**
|
|
1749
|
+
* Update a booking
|
|
1750
|
+
*/
|
|
1751
|
+
update(options) {
|
|
1650
1752
|
return (options.client ?? this.client).put({
|
|
1651
|
-
url: "/api/v1/
|
|
1753
|
+
url: "/api/v1/bookings/{id}",
|
|
1652
1754
|
...options,
|
|
1653
1755
|
headers: {
|
|
1654
1756
|
"Content-Type": "application/json",
|
|
@@ -1656,14 +1758,20 @@ var Events = class extends HeyApiClient {
|
|
|
1656
1758
|
}
|
|
1657
1759
|
});
|
|
1658
1760
|
}
|
|
1761
|
+
};
|
|
1762
|
+
var Contacts = class extends HeyApiClient {
|
|
1763
|
+
/**
|
|
1764
|
+
* List contacts
|
|
1765
|
+
*/
|
|
1766
|
+
list(options) {
|
|
1767
|
+
return (options?.client ?? this.client).get({ url: "/api/v1/contacts", ...options });
|
|
1768
|
+
}
|
|
1659
1769
|
/**
|
|
1660
|
-
*
|
|
1661
|
-
*
|
|
1662
|
-
* Publishes a new draft or promotes the current draft changes for a published event. Optionally sends a notification to the creator by providing a JSON body with notification options.
|
|
1770
|
+
* Create a contact
|
|
1663
1771
|
*/
|
|
1664
|
-
|
|
1772
|
+
create(options) {
|
|
1665
1773
|
return (options.client ?? this.client).post({
|
|
1666
|
-
url: "/api/v1/
|
|
1774
|
+
url: "/api/v1/contacts",
|
|
1667
1775
|
...options,
|
|
1668
1776
|
headers: {
|
|
1669
1777
|
"Content-Type": "application/json",
|
|
@@ -1672,36 +1780,29 @@ var Events = class extends HeyApiClient {
|
|
|
1672
1780
|
});
|
|
1673
1781
|
}
|
|
1674
1782
|
/**
|
|
1675
|
-
*
|
|
1783
|
+
* Search contacts
|
|
1676
1784
|
*/
|
|
1677
|
-
|
|
1678
|
-
return (options
|
|
1785
|
+
search(options) {
|
|
1786
|
+
return (options?.client ?? this.client).get({ url: "/api/v1/contacts/search", ...options });
|
|
1679
1787
|
}
|
|
1680
1788
|
/**
|
|
1681
|
-
*
|
|
1789
|
+
* Delete a contact
|
|
1682
1790
|
*/
|
|
1683
|
-
|
|
1684
|
-
return (options.client ?? this.client).
|
|
1791
|
+
delete(options) {
|
|
1792
|
+
return (options.client ?? this.client).delete({ url: "/api/v1/contacts/{id}", ...options });
|
|
1685
1793
|
}
|
|
1686
1794
|
/**
|
|
1687
|
-
*
|
|
1795
|
+
* Get a contact
|
|
1688
1796
|
*/
|
|
1689
|
-
|
|
1690
|
-
return (options.client ?? this.client).
|
|
1691
|
-
url: "/api/v1/events/{id}/series",
|
|
1692
|
-
...options,
|
|
1693
|
-
headers: {
|
|
1694
|
-
"Content-Type": "application/json",
|
|
1695
|
-
...options.headers
|
|
1696
|
-
}
|
|
1697
|
-
});
|
|
1797
|
+
get(options) {
|
|
1798
|
+
return (options.client ?? this.client).get({ url: "/api/v1/contacts/{id}", ...options });
|
|
1698
1799
|
}
|
|
1699
1800
|
/**
|
|
1700
|
-
*
|
|
1801
|
+
* Update a contact
|
|
1701
1802
|
*/
|
|
1702
|
-
|
|
1703
|
-
return (options.client ?? this.client).
|
|
1704
|
-
url: "/api/v1/
|
|
1803
|
+
update(options) {
|
|
1804
|
+
return (options.client ?? this.client).put({
|
|
1805
|
+
url: "/api/v1/contacts/{id}",
|
|
1705
1806
|
...options,
|
|
1706
1807
|
headers: {
|
|
1707
1808
|
"Content-Type": "application/json",
|
|
@@ -1710,13 +1811,11 @@ var Events = class extends HeyApiClient {
|
|
|
1710
1811
|
});
|
|
1711
1812
|
}
|
|
1712
1813
|
/**
|
|
1713
|
-
*
|
|
1714
|
-
*
|
|
1715
|
-
* Invites a user as series manager by email. Only the series owner can do this.
|
|
1814
|
+
* Toggle contact favorite
|
|
1716
1815
|
*/
|
|
1717
|
-
|
|
1718
|
-
return (options.client ?? this.client).
|
|
1719
|
-
url: "/api/v1/
|
|
1816
|
+
toggleFavorite(options) {
|
|
1817
|
+
return (options.client ?? this.client).patch({
|
|
1818
|
+
url: "/api/v1/contacts/{id}/favorite",
|
|
1720
1819
|
...options,
|
|
1721
1820
|
headers: {
|
|
1722
1821
|
"Content-Type": "application/json",
|
|
@@ -1725,19 +1824,17 @@ var Events = class extends HeyApiClient {
|
|
|
1725
1824
|
});
|
|
1726
1825
|
}
|
|
1727
1826
|
/**
|
|
1728
|
-
* List
|
|
1827
|
+
* List integration-linked fields for a contact
|
|
1729
1828
|
*/
|
|
1730
|
-
|
|
1731
|
-
return (options.client ?? this.client).get({ url: "/api/v1/
|
|
1829
|
+
listIntegrationFields(options) {
|
|
1830
|
+
return (options.client ?? this.client).get({ url: "/api/v1/contacts/{id}/integration-fields", ...options });
|
|
1732
1831
|
}
|
|
1733
1832
|
/**
|
|
1734
|
-
*
|
|
1735
|
-
*
|
|
1736
|
-
* Publishes a series and all its occurrences. Optionally sends a notification to attendees.
|
|
1833
|
+
* Create or update an integration-linked field on a contact
|
|
1737
1834
|
*/
|
|
1738
|
-
|
|
1739
|
-
return (options.client ?? this.client).
|
|
1740
|
-
url: "/api/v1/
|
|
1835
|
+
upsertIntegrationField(options) {
|
|
1836
|
+
return (options.client ?? this.client).put({
|
|
1837
|
+
url: "/api/v1/contacts/{id}/integration-fields",
|
|
1741
1838
|
...options,
|
|
1742
1839
|
headers: {
|
|
1743
1840
|
"Content-Type": "application/json",
|
|
@@ -1746,17 +1843,25 @@ var Events = class extends HeyApiClient {
|
|
|
1746
1843
|
});
|
|
1747
1844
|
}
|
|
1748
1845
|
/**
|
|
1749
|
-
*
|
|
1846
|
+
* Remove an integration-linked field from a contact
|
|
1750
1847
|
*/
|
|
1751
|
-
|
|
1752
|
-
return (options.client ?? this.client).
|
|
1848
|
+
deleteIntegrationField(options) {
|
|
1849
|
+
return (options.client ?? this.client).delete({ url: "/api/v1/contacts/{id}/integration-fields/{app_id}/{field_key}", ...options });
|
|
1753
1850
|
}
|
|
1851
|
+
};
|
|
1852
|
+
var Credentials = class extends HeyApiClient {
|
|
1754
1853
|
/**
|
|
1755
|
-
*
|
|
1854
|
+
* List machine credentials
|
|
1756
1855
|
*/
|
|
1757
|
-
|
|
1856
|
+
list(options) {
|
|
1857
|
+
return (options?.client ?? this.client).get({ url: "/api/v1/credentials", ...options });
|
|
1858
|
+
}
|
|
1859
|
+
/**
|
|
1860
|
+
* Create a machine credential
|
|
1861
|
+
*/
|
|
1862
|
+
create(options) {
|
|
1758
1863
|
return (options.client ?? this.client).post({
|
|
1759
|
-
url: "/api/v1/
|
|
1864
|
+
url: "/api/v1/credentials",
|
|
1760
1865
|
...options,
|
|
1761
1866
|
headers: {
|
|
1762
1867
|
"Content-Type": "application/json",
|
|
@@ -1765,10 +1870,16 @@ var Events = class extends HeyApiClient {
|
|
|
1765
1870
|
});
|
|
1766
1871
|
}
|
|
1767
1872
|
/**
|
|
1768
|
-
*
|
|
1873
|
+
* Revoke a machine credential
|
|
1769
1874
|
*/
|
|
1770
|
-
|
|
1771
|
-
return (options.client ?? this.client).delete({ url: "/api/v1/
|
|
1875
|
+
revoke(options) {
|
|
1876
|
+
return (options.client ?? this.client).delete({ url: "/api/v1/credentials/{id}", ...options });
|
|
1877
|
+
}
|
|
1878
|
+
/**
|
|
1879
|
+
* Get a machine credential
|
|
1880
|
+
*/
|
|
1881
|
+
get(options) {
|
|
1882
|
+
return (options.client ?? this.client).get({ url: "/api/v1/credentials/{id}", ...options });
|
|
1772
1883
|
}
|
|
1773
1884
|
};
|
|
1774
1885
|
var Zitadel = class extends HeyApiClient {
|
|
@@ -2632,6 +2743,9 @@ var _Linebundle = class _Linebundle extends HeyApiClient {
|
|
|
2632
2743
|
get announcements() {
|
|
2633
2744
|
return this._announcements ?? (this._announcements = new Announcements({ client: this.client }));
|
|
2634
2745
|
}
|
|
2746
|
+
get events() {
|
|
2747
|
+
return this._events ?? (this._events = new Events({ client: this.client }));
|
|
2748
|
+
}
|
|
2635
2749
|
get audit() {
|
|
2636
2750
|
return this._audit ?? (this._audit = new Audit({ client: this.client }));
|
|
2637
2751
|
}
|
|
@@ -2650,9 +2764,6 @@ var _Linebundle = class _Linebundle extends HeyApiClient {
|
|
|
2650
2764
|
get credentials() {
|
|
2651
2765
|
return this._credentials ?? (this._credentials = new Credentials({ client: this.client }));
|
|
2652
2766
|
}
|
|
2653
|
-
get events() {
|
|
2654
|
-
return this._events ?? (this._events = new Events({ client: this.client }));
|
|
2655
|
-
}
|
|
2656
2767
|
get integrations() {
|
|
2657
2768
|
return this._integrations ?? (this._integrations = new Integrations({ client: this.client }));
|
|
2658
2769
|
}
|
|
@@ -2940,9 +3051,11 @@ function createLinebundle({
|
|
|
2940
3051
|
});
|
|
2941
3052
|
}
|
|
2942
3053
|
export {
|
|
3054
|
+
Activity,
|
|
2943
3055
|
Analytics,
|
|
2944
3056
|
Announcements,
|
|
2945
3057
|
Announcements2,
|
|
3058
|
+
Attachments,
|
|
2946
3059
|
Audit,
|
|
2947
3060
|
Auth,
|
|
2948
3061
|
Automation,
|
|
@@ -2956,6 +3069,7 @@ export {
|
|
|
2956
3069
|
Linebundle,
|
|
2957
3070
|
Me,
|
|
2958
3071
|
Organizations,
|
|
3072
|
+
Participants,
|
|
2959
3073
|
Permissions,
|
|
2960
3074
|
Places,
|
|
2961
3075
|
Profiles,
|