@axivoy/api 1.74.0 → 2.13.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/dist/generated/schema.d.ts +3539 -682
- package/package.json +1 -1
|
@@ -971,6 +971,336 @@ export interface paths {
|
|
|
971
971
|
patch?: never;
|
|
972
972
|
trace?: never;
|
|
973
973
|
};
|
|
974
|
+
"/ops/communication_teams.archive": {
|
|
975
|
+
parameters: {
|
|
976
|
+
query?: never;
|
|
977
|
+
header?: never;
|
|
978
|
+
path?: never;
|
|
979
|
+
cookie?: never;
|
|
980
|
+
};
|
|
981
|
+
get?: never;
|
|
982
|
+
put?: never;
|
|
983
|
+
/**
|
|
984
|
+
* Archive or remove a team
|
|
985
|
+
* @description Archives a team the company created, or removes a built-in team the company added while its module is off: its conversations move to another team and mail sent to its address goes there too. A removed built-in team keeps its people and settings and can be added again. Refused for Dispatch, for the company's default team, for a built-in team whose module is on, for Fleet while an equipment deal is open, and while the main phone menu, a phone menu or a number still uses the team.
|
|
986
|
+
*
|
|
987
|
+
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
988
|
+
*/
|
|
989
|
+
post: operations["ops.communication_teams.archive"];
|
|
990
|
+
delete?: never;
|
|
991
|
+
options?: never;
|
|
992
|
+
head?: never;
|
|
993
|
+
patch?: never;
|
|
994
|
+
trace?: never;
|
|
995
|
+
};
|
|
996
|
+
"/ops/communication_teams.calls.update": {
|
|
997
|
+
parameters: {
|
|
998
|
+
query?: never;
|
|
999
|
+
header?: never;
|
|
1000
|
+
path?: never;
|
|
1001
|
+
cookie?: never;
|
|
1002
|
+
};
|
|
1003
|
+
get?: never;
|
|
1004
|
+
put?: never;
|
|
1005
|
+
/**
|
|
1006
|
+
* Change how a team takes calls
|
|
1007
|
+
* @description Changes who answers a team's calls (its people with Calls on, or a ring group), whether it rings or goes to voicemail when the company is closed, its voicemail greeting, and what callers hear for it in the main phone menu. Fields left out keep their value.
|
|
1008
|
+
*
|
|
1009
|
+
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
1010
|
+
*/
|
|
1011
|
+
post: operations["ops.communication_teams.calls.update"];
|
|
1012
|
+
delete?: never;
|
|
1013
|
+
options?: never;
|
|
1014
|
+
head?: never;
|
|
1015
|
+
patch?: never;
|
|
1016
|
+
trace?: never;
|
|
1017
|
+
};
|
|
1018
|
+
"/ops/communication_teams.create": {
|
|
1019
|
+
parameters: {
|
|
1020
|
+
query?: never;
|
|
1021
|
+
header?: never;
|
|
1022
|
+
path?: never;
|
|
1023
|
+
cookie?: never;
|
|
1024
|
+
};
|
|
1025
|
+
get?: never;
|
|
1026
|
+
put?: never;
|
|
1027
|
+
/**
|
|
1028
|
+
* Create a team
|
|
1029
|
+
* @description Creates a team with its own Axivoy email address (chosen now, fixed afterwards). Add people and calls settings next; Axivoy's own product mail stays on its built-in teams.
|
|
1030
|
+
*
|
|
1031
|
+
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
1032
|
+
*/
|
|
1033
|
+
post: operations["ops.communication_teams.create"];
|
|
1034
|
+
delete?: never;
|
|
1035
|
+
options?: never;
|
|
1036
|
+
head?: never;
|
|
1037
|
+
patch?: never;
|
|
1038
|
+
trace?: never;
|
|
1039
|
+
};
|
|
1040
|
+
"/ops/communication_teams.default.set": {
|
|
1041
|
+
parameters: {
|
|
1042
|
+
query?: never;
|
|
1043
|
+
header?: never;
|
|
1044
|
+
path?: never;
|
|
1045
|
+
cookie?: never;
|
|
1046
|
+
};
|
|
1047
|
+
get?: never;
|
|
1048
|
+
put?: never;
|
|
1049
|
+
/**
|
|
1050
|
+
* Choose the default team
|
|
1051
|
+
* @description Picks the team that gets texts to numbers not set to a team and calls that reach no team. Every company starts with Dispatch. Only new texts and calls follow the change; conversations already in the old default team stay there.
|
|
1052
|
+
*
|
|
1053
|
+
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
1054
|
+
*/
|
|
1055
|
+
post: operations["ops.communication_teams.default.set"];
|
|
1056
|
+
delete?: never;
|
|
1057
|
+
options?: never;
|
|
1058
|
+
head?: never;
|
|
1059
|
+
patch?: never;
|
|
1060
|
+
trace?: never;
|
|
1061
|
+
};
|
|
1062
|
+
"/ops/communication_teams.get": {
|
|
1063
|
+
parameters: {
|
|
1064
|
+
query?: never;
|
|
1065
|
+
header?: never;
|
|
1066
|
+
path?: never;
|
|
1067
|
+
cookie?: never;
|
|
1068
|
+
};
|
|
1069
|
+
get?: never;
|
|
1070
|
+
put?: never;
|
|
1071
|
+
/**
|
|
1072
|
+
* Show a team
|
|
1073
|
+
* @description One team in full: its people (each person or role with their Email, Texts and Calls switches, the status of people who take calls, and any permission warnings), its email address, where its mail goes out from (its own confirmed address, the default sending address or its Axivoy address), From name, own address and its test, filing copies and sent-mail alerts, its phone numbers (whether each one's calls and texts come to the team), its calls settings and what Axivoy sends from it.
|
|
1074
|
+
*
|
|
1075
|
+
* Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
1076
|
+
*/
|
|
1077
|
+
post: operations["ops.communication_teams.get"];
|
|
1078
|
+
delete?: never;
|
|
1079
|
+
options?: never;
|
|
1080
|
+
head?: never;
|
|
1081
|
+
patch?: never;
|
|
1082
|
+
trace?: never;
|
|
1083
|
+
};
|
|
1084
|
+
"/ops/communication_teams.list": {
|
|
1085
|
+
parameters: {
|
|
1086
|
+
query?: never;
|
|
1087
|
+
header?: never;
|
|
1088
|
+
path?: never;
|
|
1089
|
+
cookie?: never;
|
|
1090
|
+
};
|
|
1091
|
+
get?: never;
|
|
1092
|
+
put?: never;
|
|
1093
|
+
/**
|
|
1094
|
+
* List teams
|
|
1095
|
+
* @description The company's teams: each one's name, email address, where its mail goes out from (its own confirmed address, the default sending address or its Axivoy address), phone numbers, how many people see its email and its texts and how many take its calls, its main phone menu digit, whether it is the company's default team and whether it is ready. Built-in teams the company can add (their module is off) only with include_available; archived teams only with include_archived. With member_user_id, only the teams that person is on, directly or through a role, with their Email, Texts and Calls switches and the row that decides them (needs Manage teams and a person in the company).
|
|
1096
|
+
*
|
|
1097
|
+
* Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
1098
|
+
*/
|
|
1099
|
+
post: operations["ops.communication_teams.list"];
|
|
1100
|
+
delete?: never;
|
|
1101
|
+
options?: never;
|
|
1102
|
+
head?: never;
|
|
1103
|
+
patch?: never;
|
|
1104
|
+
trace?: never;
|
|
1105
|
+
};
|
|
1106
|
+
"/ops/communication_teams.members.add": {
|
|
1107
|
+
parameters: {
|
|
1108
|
+
query?: never;
|
|
1109
|
+
header?: never;
|
|
1110
|
+
path?: never;
|
|
1111
|
+
cookie?: never;
|
|
1112
|
+
};
|
|
1113
|
+
get?: never;
|
|
1114
|
+
put?: never;
|
|
1115
|
+
/**
|
|
1116
|
+
* Add someone to a team
|
|
1117
|
+
* @description Adds a person, or everyone with a role, to a team: Email and Texts let them see its email and text conversations in the Inbox, Calls lets them see its calls and makes them ring when a caller reaches it. A person's own row decides their switches on that team in place of any role row. Returns warnings when their role can't open the Inbox or take calls; it never changes their role.
|
|
1118
|
+
*
|
|
1119
|
+
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
1120
|
+
*/
|
|
1121
|
+
post: operations["ops.communication_teams.members.add"];
|
|
1122
|
+
delete?: never;
|
|
1123
|
+
options?: never;
|
|
1124
|
+
head?: never;
|
|
1125
|
+
patch?: never;
|
|
1126
|
+
trace?: never;
|
|
1127
|
+
};
|
|
1128
|
+
"/ops/communication_teams.members.remove": {
|
|
1129
|
+
parameters: {
|
|
1130
|
+
query?: never;
|
|
1131
|
+
header?: never;
|
|
1132
|
+
path?: never;
|
|
1133
|
+
cookie?: never;
|
|
1134
|
+
};
|
|
1135
|
+
get?: never;
|
|
1136
|
+
put?: never;
|
|
1137
|
+
/**
|
|
1138
|
+
* Remove someone from a team
|
|
1139
|
+
* @description Takes a person or role off a team. They stop seeing its conversations unless another team row still includes them (removing a person's own row puts them back on their role's row, and the message says so); conversations they own stay theirs.
|
|
1140
|
+
*
|
|
1141
|
+
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
1142
|
+
*/
|
|
1143
|
+
post: operations["ops.communication_teams.members.remove"];
|
|
1144
|
+
delete?: never;
|
|
1145
|
+
options?: never;
|
|
1146
|
+
head?: never;
|
|
1147
|
+
patch?: never;
|
|
1148
|
+
trace?: never;
|
|
1149
|
+
};
|
|
1150
|
+
"/ops/communication_teams.members.update": {
|
|
1151
|
+
parameters: {
|
|
1152
|
+
query?: never;
|
|
1153
|
+
header?: never;
|
|
1154
|
+
path?: never;
|
|
1155
|
+
cookie?: never;
|
|
1156
|
+
};
|
|
1157
|
+
get?: never;
|
|
1158
|
+
put?: never;
|
|
1159
|
+
/**
|
|
1160
|
+
* Change someone's team switches
|
|
1161
|
+
* @description Turns Email, Texts or Calls on or off for one person or role on a team.
|
|
1162
|
+
*
|
|
1163
|
+
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
1164
|
+
*/
|
|
1165
|
+
post: operations["ops.communication_teams.members.update"];
|
|
1166
|
+
delete?: never;
|
|
1167
|
+
options?: never;
|
|
1168
|
+
head?: never;
|
|
1169
|
+
patch?: never;
|
|
1170
|
+
trace?: never;
|
|
1171
|
+
};
|
|
1172
|
+
"/ops/communication_teams.numbers.set": {
|
|
1173
|
+
parameters: {
|
|
1174
|
+
query?: never;
|
|
1175
|
+
header?: never;
|
|
1176
|
+
path?: never;
|
|
1177
|
+
cookie?: never;
|
|
1178
|
+
};
|
|
1179
|
+
get?: never;
|
|
1180
|
+
put?: never;
|
|
1181
|
+
/**
|
|
1182
|
+
* Connect a phone number to a team
|
|
1183
|
+
* @description From the team's side, sets whether one of the company's numbers rings this team (calls) and whether its texts come to this team's Inbox (texts). Turning calls off makes the number ring everyone again; turning texts off sends its texts to the default team. Moving calls or texts away from another team, a phone menu or a forward needs confirm_move. Numbers whose calls are off or go to another provider are set up on Phone numbers first.
|
|
1184
|
+
*
|
|
1185
|
+
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
1186
|
+
*/
|
|
1187
|
+
post: operations["ops.communication_teams.numbers.set"];
|
|
1188
|
+
delete?: never;
|
|
1189
|
+
options?: never;
|
|
1190
|
+
head?: never;
|
|
1191
|
+
patch?: never;
|
|
1192
|
+
trace?: never;
|
|
1193
|
+
};
|
|
1194
|
+
"/ops/communication_teams.public_from.clear": {
|
|
1195
|
+
parameters: {
|
|
1196
|
+
query?: never;
|
|
1197
|
+
header?: never;
|
|
1198
|
+
path?: never;
|
|
1199
|
+
cookie?: never;
|
|
1200
|
+
};
|
|
1201
|
+
get?: never;
|
|
1202
|
+
put?: never;
|
|
1203
|
+
/**
|
|
1204
|
+
* Stop using your own address for a team
|
|
1205
|
+
* @description Stops using a team's own address, or cancels one waiting for its test; the team sends from the default sending address, or its Axivoy address when the default isn't confirmed.
|
|
1206
|
+
*
|
|
1207
|
+
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
1208
|
+
*/
|
|
1209
|
+
post: operations["ops.communication_teams.public_from.clear"];
|
|
1210
|
+
delete?: never;
|
|
1211
|
+
options?: never;
|
|
1212
|
+
head?: never;
|
|
1213
|
+
patch?: never;
|
|
1214
|
+
trace?: never;
|
|
1215
|
+
};
|
|
1216
|
+
"/ops/communication_teams.public_from.resend": {
|
|
1217
|
+
parameters: {
|
|
1218
|
+
query?: never;
|
|
1219
|
+
header?: never;
|
|
1220
|
+
path?: never;
|
|
1221
|
+
cookie?: never;
|
|
1222
|
+
};
|
|
1223
|
+
get?: never;
|
|
1224
|
+
put?: never;
|
|
1225
|
+
/**
|
|
1226
|
+
* Resend a team address confirmation
|
|
1227
|
+
* @description Sends a team's own address its test again while it waits for confirmation; the new test replaces the old link.
|
|
1228
|
+
*
|
|
1229
|
+
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
1230
|
+
*/
|
|
1231
|
+
post: operations["ops.communication_teams.public_from.resend"];
|
|
1232
|
+
delete?: never;
|
|
1233
|
+
options?: never;
|
|
1234
|
+
head?: never;
|
|
1235
|
+
patch?: never;
|
|
1236
|
+
trace?: never;
|
|
1237
|
+
};
|
|
1238
|
+
"/ops/communication_teams.public_from.set": {
|
|
1239
|
+
parameters: {
|
|
1240
|
+
query?: never;
|
|
1241
|
+
header?: never;
|
|
1242
|
+
path?: never;
|
|
1243
|
+
cookie?: never;
|
|
1244
|
+
};
|
|
1245
|
+
get?: never;
|
|
1246
|
+
put?: never;
|
|
1247
|
+
/**
|
|
1248
|
+
* Use your own address for a team
|
|
1249
|
+
* @description Sets the address customers see on a team's mail, on the company's live sending domain, and emails that mailbox a test. The address is used once the test comes back through the mailbox's forwarding or someone clicks its link; until then the team sends from the default sending address or its Axivoy address. The default sending address itself is refused.
|
|
1250
|
+
*
|
|
1251
|
+
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
1252
|
+
*/
|
|
1253
|
+
post: operations["ops.communication_teams.public_from.set"];
|
|
1254
|
+
delete?: never;
|
|
1255
|
+
options?: never;
|
|
1256
|
+
head?: never;
|
|
1257
|
+
patch?: never;
|
|
1258
|
+
trace?: never;
|
|
1259
|
+
};
|
|
1260
|
+
"/ops/communication_teams.public_from.test_forwarding": {
|
|
1261
|
+
parameters: {
|
|
1262
|
+
query?: never;
|
|
1263
|
+
header?: never;
|
|
1264
|
+
path?: never;
|
|
1265
|
+
cookie?: never;
|
|
1266
|
+
};
|
|
1267
|
+
get?: never;
|
|
1268
|
+
put?: never;
|
|
1269
|
+
/**
|
|
1270
|
+
* Test a team address forwarding
|
|
1271
|
+
* @description Sends a team's confirmed own address a test email. If it comes back to the company in Axivoy through the mailbox's forwarding, the address is marked as reaching the team. The address keeps sending whatever the result.
|
|
1272
|
+
*
|
|
1273
|
+
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
1274
|
+
*/
|
|
1275
|
+
post: operations["ops.communication_teams.public_from.test_forwarding"];
|
|
1276
|
+
delete?: never;
|
|
1277
|
+
options?: never;
|
|
1278
|
+
head?: never;
|
|
1279
|
+
patch?: never;
|
|
1280
|
+
trace?: never;
|
|
1281
|
+
};
|
|
1282
|
+
"/ops/communication_teams.update": {
|
|
1283
|
+
parameters: {
|
|
1284
|
+
query?: never;
|
|
1285
|
+
header?: never;
|
|
1286
|
+
path?: never;
|
|
1287
|
+
cookie?: never;
|
|
1288
|
+
};
|
|
1289
|
+
get?: never;
|
|
1290
|
+
put?: never;
|
|
1291
|
+
/**
|
|
1292
|
+
* Change a team
|
|
1293
|
+
* @description Renames a team or changes its From name, filing copy addresses, sent-mail alerts, or whether it uses another team's people. Fields left out keep their value.
|
|
1294
|
+
*
|
|
1295
|
+
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
1296
|
+
*/
|
|
1297
|
+
post: operations["ops.communication_teams.update"];
|
|
1298
|
+
delete?: never;
|
|
1299
|
+
options?: never;
|
|
1300
|
+
head?: never;
|
|
1301
|
+
patch?: never;
|
|
1302
|
+
trace?: never;
|
|
1303
|
+
};
|
|
974
1304
|
"/ops/company_documents.broker_shareable": {
|
|
975
1305
|
parameters: {
|
|
976
1306
|
query?: never;
|
|
@@ -2192,7 +2522,7 @@ export interface paths {
|
|
|
2192
2522
|
put?: never;
|
|
2193
2523
|
/**
|
|
2194
2524
|
* Reply to a conversation
|
|
2195
|
-
* @description Send a reply on a conversation thread, or forward one of its emails, optionally attaching load documents, customer invoices or uploaded files.
|
|
2525
|
+
* @description Send a reply on a conversation thread, or forward one of its emails, optionally attaching load documents, customer invoices or uploaded files. A candidate's conversation is answered with recruiting.candidates.message.send instead. On a broker thread the AI Negotiator is working, a person's send takes it over first (took_over); an app or assistant is refused.
|
|
2196
2526
|
*
|
|
2197
2527
|
* Kind: `talk`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
2198
2528
|
*/
|
|
@@ -5954,7 +6284,7 @@ export interface paths {
|
|
|
5954
6284
|
put?: never;
|
|
5955
6285
|
/**
|
|
5956
6286
|
* Read a conversation
|
|
5957
|
-
* @description Show a conversation: who owns it, its teams and state, and its latest 50 messages, oldest first.
|
|
6287
|
+
* @description Show a conversation: who owns it, its teams and state, and its latest 50 messages, oldest first. With text_feed on a text conversation, the texting panel feed instead of the messages: the newest 30 items (a candidate conversation gives the candidate's feed, texts and the application hub chat), and before pages back. A candidate conversation also needs view on the candidate and otherwise reads as not found. Also lists the AI agents working the conversation and the one a reply takes over.
|
|
5958
6288
|
*
|
|
5959
6289
|
* Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
5960
6290
|
*/
|
|
@@ -15997,6 +16327,28 @@ export interface paths {
|
|
|
15997
16327
|
patch?: never;
|
|
15998
16328
|
trace?: never;
|
|
15999
16329
|
};
|
|
16330
|
+
"/ops/system.domains.default_address.get": {
|
|
16331
|
+
parameters: {
|
|
16332
|
+
query?: never;
|
|
16333
|
+
header?: never;
|
|
16334
|
+
path?: never;
|
|
16335
|
+
cookie?: never;
|
|
16336
|
+
};
|
|
16337
|
+
get?: never;
|
|
16338
|
+
put?: never;
|
|
16339
|
+
/**
|
|
16340
|
+
* Default sending address
|
|
16341
|
+
* @description The address the company's mail goes out from when a team has no confirmed address of its own: the confirmed address, a first or changed address waiting for confirmation, an expired link or a delivery failure, and what mail uses meanwhile.
|
|
16342
|
+
*
|
|
16343
|
+
* Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
16344
|
+
*/
|
|
16345
|
+
post: operations["ops.system.domains.default_address.get"];
|
|
16346
|
+
delete?: never;
|
|
16347
|
+
options?: never;
|
|
16348
|
+
head?: never;
|
|
16349
|
+
patch?: never;
|
|
16350
|
+
trace?: never;
|
|
16351
|
+
};
|
|
16000
16352
|
"/ops/system.domains.list": {
|
|
16001
16353
|
parameters: {
|
|
16002
16354
|
query?: never;
|
|
@@ -17691,7 +18043,7 @@ export interface paths {
|
|
|
17691
18043
|
patch?: never;
|
|
17692
18044
|
trace?: never;
|
|
17693
18045
|
};
|
|
17694
|
-
"/ops/voice.
|
|
18046
|
+
"/ops/voice.main_menu.set": {
|
|
17695
18047
|
parameters: {
|
|
17696
18048
|
query?: never;
|
|
17697
18049
|
header?: never;
|
|
@@ -17701,34 +18053,12 @@ export interface paths {
|
|
|
17701
18053
|
get?: never;
|
|
17702
18054
|
put?: never;
|
|
17703
18055
|
/**
|
|
17704
|
-
*
|
|
17705
|
-
* @description
|
|
17706
|
-
*
|
|
17707
|
-
* Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
17708
|
-
*/
|
|
17709
|
-
post: operations["ops.voice.departments.list"];
|
|
17710
|
-
delete?: never;
|
|
17711
|
-
options?: never;
|
|
17712
|
-
head?: never;
|
|
17713
|
-
patch?: never;
|
|
17714
|
-
trace?: never;
|
|
17715
|
-
};
|
|
17716
|
-
"/ops/voice.departments.update": {
|
|
17717
|
-
parameters: {
|
|
17718
|
-
query?: never;
|
|
17719
|
-
header?: never;
|
|
17720
|
-
path?: never;
|
|
17721
|
-
cookie?: never;
|
|
17722
|
-
};
|
|
17723
|
-
get?: never;
|
|
17724
|
-
put?: never;
|
|
17725
|
-
/**
|
|
17726
|
-
* Update a call department
|
|
17727
|
-
* @description Changes who answers a department's calls (a ring group, or null for everyone holding the department's default roles), whether it rings or goes to voicemail after hours, and its voicemail greeting. Fields left out keep their value.
|
|
18056
|
+
* Choose the main phone menu's teams
|
|
18057
|
+
* @description Sets which teams callers can choose in the Axivoy carrier main line and in what order: the first team is press 1, up to 8 teams, and 9 repeats the options. Calls already in progress keep the menu they started with.
|
|
17728
18058
|
*
|
|
17729
18059
|
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
17730
18060
|
*/
|
|
17731
|
-
post: operations["ops.voice.
|
|
18061
|
+
post: operations["ops.voice.main_menu.set"];
|
|
17732
18062
|
delete?: never;
|
|
17733
18063
|
options?: never;
|
|
17734
18064
|
head?: never;
|
|
@@ -17878,7 +18208,7 @@ export interface paths {
|
|
|
17878
18208
|
put?: never;
|
|
17879
18209
|
/**
|
|
17880
18210
|
* Duplicate the built-in phone menu
|
|
17881
|
-
* @description Copies the Axivoy carrier main line
|
|
18211
|
+
* @description Copies the Axivoy carrier main line as built from the company's main phone menu (its teams in order, each checking business hours and ringing the team) into a new phone menu draft the company can change. Later changes to the main phone menu never change the copy. Callers hear nothing new until the copy is published and used on a number.
|
|
17882
18212
|
*
|
|
17883
18213
|
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
17884
18214
|
*/
|
|
@@ -18076,7 +18406,7 @@ export interface paths {
|
|
|
18076
18406
|
put?: never;
|
|
18077
18407
|
/**
|
|
18078
18408
|
* Choose what happens when someone calls a number
|
|
18079
|
-
* @description Chooses how one of the company's phone numbers answers calls: ring
|
|
18409
|
+
* @description Chooses how one of the company's phone numbers answers calls: ring everyone (everyone available, then their mobiles, then voicemail), ring one team (team_key: its call takers or ring group, then its voicemail), a phone menu (menu_id or builtin_key), or forward to an outside US or Canada number (forward_to, ring_seconds, show_company_number) with voicemail if nobody answers. Turns on calls for the number when they are off; a number whose calls go somewhere else today needs replace_elsewhere.
|
|
18080
18410
|
*
|
|
18081
18411
|
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
18082
18412
|
*/
|
|
@@ -18153,6 +18483,28 @@ export interface paths {
|
|
|
18153
18483
|
patch?: never;
|
|
18154
18484
|
trace?: never;
|
|
18155
18485
|
};
|
|
18486
|
+
"/ops/voice.numbers.texting.set_team": {
|
|
18487
|
+
parameters: {
|
|
18488
|
+
query?: never;
|
|
18489
|
+
header?: never;
|
|
18490
|
+
path?: never;
|
|
18491
|
+
cookie?: never;
|
|
18492
|
+
};
|
|
18493
|
+
get?: never;
|
|
18494
|
+
put?: never;
|
|
18495
|
+
/**
|
|
18496
|
+
* Choose the team a number's texts go to
|
|
18497
|
+
* @description Sets which team's Inbox receives texts sent to one of the company's numbers: from drivers, company people and senders Axivoy doesn't recognize. Leaving the team empty sends them to the company's default team (Dispatch unless the company picked another). Candidates' texts stay on the candidate's file.
|
|
18498
|
+
*
|
|
18499
|
+
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
18500
|
+
*/
|
|
18501
|
+
post: operations["ops.voice.numbers.texting.set_team"];
|
|
18502
|
+
delete?: never;
|
|
18503
|
+
options?: never;
|
|
18504
|
+
head?: never;
|
|
18505
|
+
patch?: never;
|
|
18506
|
+
trace?: never;
|
|
18507
|
+
};
|
|
18156
18508
|
"/ops/voice.port_in.cancel": {
|
|
18157
18509
|
parameters: {
|
|
18158
18510
|
query?: never;
|
|
@@ -24552,6 +24904,8 @@ export interface operations {
|
|
|
24552
24904
|
expires_at?: string | null;
|
|
24553
24905
|
/** Format: date-time */
|
|
24554
24906
|
decided_at?: string | null;
|
|
24907
|
+
/** @description Why the person said no, in their words. */
|
|
24908
|
+
decision_reason?: string | null;
|
|
24555
24909
|
/** @description Why an approved request did not run. */
|
|
24556
24910
|
refusal_code?: string | null;
|
|
24557
24911
|
refusal_message?: string | null;
|
|
@@ -26594,7 +26948,7 @@ export interface operations {
|
|
|
26594
26948
|
};
|
|
26595
26949
|
};
|
|
26596
26950
|
};
|
|
26597
|
-
"ops.
|
|
26951
|
+
"ops.communication_teams.archive": {
|
|
26598
26952
|
parameters: {
|
|
26599
26953
|
query?: never;
|
|
26600
26954
|
header?: {
|
|
@@ -26608,17 +26962,11 @@ export interface operations {
|
|
|
26608
26962
|
};
|
|
26609
26963
|
requestBody?: {
|
|
26610
26964
|
content: {
|
|
26611
|
-
/**
|
|
26612
|
-
* @example {
|
|
26613
|
-
* "document_id": 1,
|
|
26614
|
-
* "broker_shareable": false
|
|
26615
|
-
* }
|
|
26616
|
-
*/
|
|
26617
26965
|
"application/json": {
|
|
26618
|
-
/** @description
|
|
26619
|
-
|
|
26620
|
-
/** @description
|
|
26621
|
-
|
|
26966
|
+
/** @description A custom team, or a built-in team other than Dispatch whose module is off */
|
|
26967
|
+
team_key: string;
|
|
26968
|
+
/** @description The active team that takes its conversations and mail; required when it has conversations */
|
|
26969
|
+
move_conversations_to?: string;
|
|
26622
26970
|
};
|
|
26623
26971
|
};
|
|
26624
26972
|
};
|
|
@@ -26629,20 +26977,16 @@ export interface operations {
|
|
|
26629
26977
|
[name: string]: unknown;
|
|
26630
26978
|
};
|
|
26631
26979
|
content: {
|
|
26632
|
-
/**
|
|
26633
|
-
* @example {
|
|
26634
|
-
* "result": {
|
|
26635
|
-
* "message": "No longer shared with brokers.",
|
|
26636
|
-
* "broker_shareable": false
|
|
26637
|
-
* }
|
|
26638
|
-
* }
|
|
26639
|
-
*/
|
|
26640
26980
|
"application/json": {
|
|
26641
26981
|
result: {
|
|
26982
|
+
/** @description The team */
|
|
26983
|
+
team_key: string;
|
|
26984
|
+
/** @description archived for a custom team, available for a removed built-in team */
|
|
26985
|
+
state: string;
|
|
26986
|
+
/** @description Conversations queued to move to the chosen team */
|
|
26987
|
+
moved_conversations: number;
|
|
26642
26988
|
/** @description What happened, in the operator's words */
|
|
26643
26989
|
message: string;
|
|
26644
|
-
/** @description Whether brokers now see the document */
|
|
26645
|
-
broker_shareable: boolean;
|
|
26646
26990
|
};
|
|
26647
26991
|
};
|
|
26648
26992
|
};
|
|
@@ -26713,7 +27057,7 @@ export interface operations {
|
|
|
26713
27057
|
};
|
|
26714
27058
|
};
|
|
26715
27059
|
};
|
|
26716
|
-
"ops.
|
|
27060
|
+
"ops.communication_teams.calls.update": {
|
|
26717
27061
|
parameters: {
|
|
26718
27062
|
query?: never;
|
|
26719
27063
|
header?: {
|
|
@@ -26729,30 +27073,33 @@ export interface operations {
|
|
|
26729
27073
|
content: {
|
|
26730
27074
|
/**
|
|
26731
27075
|
* @example {
|
|
26732
|
-
* "
|
|
26733
|
-
* "
|
|
26734
|
-
* "
|
|
26735
|
-
* "
|
|
26736
|
-
* "
|
|
27076
|
+
* "team_key": "safety",
|
|
27077
|
+
* "answered_by": "ring_group",
|
|
27078
|
+
* "ring_group_id": 1,
|
|
27079
|
+
* "after_hours": "ring",
|
|
27080
|
+
* "voicemail_greeting": "Safety is out. Leave a message.",
|
|
27081
|
+
* "menu_phrase": "For safety"
|
|
26737
27082
|
* }
|
|
26738
27083
|
*/
|
|
26739
27084
|
"application/json": {
|
|
26740
|
-
/** @description
|
|
26741
|
-
|
|
26742
|
-
/**
|
|
26743
|
-
|
|
26744
|
-
|
|
26745
|
-
|
|
26746
|
-
|
|
26747
|
-
|
|
26748
|
-
|
|
26749
|
-
|
|
26750
|
-
|
|
26751
|
-
|
|
26752
|
-
|
|
26753
|
-
|
|
26754
|
-
/** @description
|
|
26755
|
-
|
|
27085
|
+
/** @description The team (from communication_teams.list) */
|
|
27086
|
+
team_key: string;
|
|
27087
|
+
/**
|
|
27088
|
+
* @description members rings the team's people with Calls on; ring_group rings ring_group_id
|
|
27089
|
+
* @enum {string}
|
|
27090
|
+
*/
|
|
27091
|
+
answered_by?: "members" | "ring_group";
|
|
27092
|
+
/** @description The company's ring group; required when answered_by is ring_group */
|
|
27093
|
+
ring_group_id?: number | null;
|
|
27094
|
+
/**
|
|
27095
|
+
* @description ring or voicemail when the company is closed
|
|
27096
|
+
* @enum {string}
|
|
27097
|
+
*/
|
|
27098
|
+
after_hours?: "ring" | "voicemail";
|
|
27099
|
+
/** @description What callers hear before the tone; empty uses the default */
|
|
27100
|
+
voicemail_greeting?: string | null;
|
|
27101
|
+
/** @description What the main phone menu says before "press {digit}", for example "For billing and payments" */
|
|
27102
|
+
menu_phrase?: string | null;
|
|
26756
27103
|
};
|
|
26757
27104
|
};
|
|
26758
27105
|
};
|
|
@@ -26766,32 +27113,24 @@ export interface operations {
|
|
|
26766
27113
|
/**
|
|
26767
27114
|
* @example {
|
|
26768
27115
|
* "result": {
|
|
26769
|
-
* "
|
|
26770
|
-
* "
|
|
26771
|
-
*
|
|
26772
|
-
*
|
|
26773
|
-
*
|
|
26774
|
-
*
|
|
26775
|
-
* "
|
|
27116
|
+
* "team_key": "safety",
|
|
27117
|
+
* "readiness": {
|
|
27118
|
+
* "state": "ready",
|
|
27119
|
+
* "label": "Ready",
|
|
27120
|
+
* "tone": "success"
|
|
27121
|
+
* },
|
|
27122
|
+
* "message": "Safety & compliance saved."
|
|
26776
27123
|
* }
|
|
26777
27124
|
* }
|
|
26778
27125
|
*/
|
|
26779
27126
|
"application/json": {
|
|
26780
27127
|
result: {
|
|
27128
|
+
/** @description The team */
|
|
27129
|
+
team_key: string;
|
|
27130
|
+
/** @description {state, label, tone} after the change */
|
|
27131
|
+
readiness: Record<string, never>;
|
|
26781
27132
|
/** @description What happened, in the operator's words */
|
|
26782
27133
|
message: string;
|
|
26783
|
-
/** @description The new document */
|
|
26784
|
-
document_id: number;
|
|
26785
|
-
/** @description The document kind as people say it */
|
|
26786
|
-
kind_label: string;
|
|
26787
|
-
/** @description Where to review what AI read from it, for people who review documents */
|
|
26788
|
-
review_url?: string | null;
|
|
26789
|
-
/** @description AI is reading the document */
|
|
26790
|
-
ai_queued: boolean;
|
|
26791
|
-
/** @description Files on the document (two for a two-sided card) */
|
|
26792
|
-
sides: number;
|
|
26793
|
-
/** @description The upload was linked to an insurance policy */
|
|
26794
|
-
linked_to_policy: boolean;
|
|
26795
27134
|
};
|
|
26796
27135
|
};
|
|
26797
27136
|
};
|
|
@@ -26862,7 +27201,7 @@ export interface operations {
|
|
|
26862
27201
|
};
|
|
26863
27202
|
};
|
|
26864
27203
|
};
|
|
26865
|
-
"ops.
|
|
27204
|
+
"ops.communication_teams.create": {
|
|
26866
27205
|
parameters: {
|
|
26867
27206
|
query?: never;
|
|
26868
27207
|
header?: {
|
|
@@ -26876,14 +27215,13 @@ export interface operations {
|
|
|
26876
27215
|
};
|
|
26877
27216
|
requestBody?: {
|
|
26878
27217
|
content: {
|
|
26879
|
-
/**
|
|
26880
|
-
* @example {
|
|
26881
|
-
* "document_id": 1
|
|
26882
|
-
* }
|
|
26883
|
-
*/
|
|
26884
27218
|
"application/json": {
|
|
26885
|
-
/** @description
|
|
26886
|
-
|
|
27219
|
+
/** @description Required for a custom team, for example "Claims"; unique in the company, and never a built-in team's name, ignoring case and spacing */
|
|
27220
|
+
name?: string;
|
|
27221
|
+
/** @description The part before @ of the team's Axivoy address; default from the name; reserved and used names are refused */
|
|
27222
|
+
email_local_part?: string;
|
|
27223
|
+
/** @description Adds an available built-in team instead of a custom one; its name and address come from the catalog */
|
|
27224
|
+
builtin_key?: string;
|
|
26887
27225
|
};
|
|
26888
27226
|
};
|
|
26889
27227
|
};
|
|
@@ -26894,35 +27232,14 @@ export interface operations {
|
|
|
26894
27232
|
[name: string]: unknown;
|
|
26895
27233
|
};
|
|
26896
27234
|
content: {
|
|
26897
|
-
/**
|
|
26898
|
-
* @example {
|
|
26899
|
-
* "result": {
|
|
26900
|
-
* "id": 1,
|
|
26901
|
-
* "kind": "certificate_of_insurance",
|
|
26902
|
-
* "file_name": "coi.pdf",
|
|
26903
|
-
* "mime_type": "application/pdf",
|
|
26904
|
-
* "file_url": "http://localhost/api/v1/files/ZXlKcGRpSTZJbnBLVFhKUVZHRXJTVVZzVW1kc1dFZEVhaXR1YjFFOVBTSXNJblpoYkhWbElqb2lMMU5EYURCclpHZHJOVmh0TTBKMFRYaHBjSGxuUmpsQmEyaEtUVzVGVG1VMFdtYzBOblJMTVVOYU9XWndka0pPZEZac2VFZDBjbFZJTUhRelUwbHlZalF2UVdWUllWZFljSHB0SzNOR2RtTkRWMEpsYzJaVk1EZzFNMjVJWVZaSVlpdGxlRkp3Y2s5NE1UZ3piMGN2UkhScVoxaHVSV2R4TWtOdldtWldaMjAxYm5GV2FqWkVXbWxuYkV0VkwxUjVXaTlKY25wc0wwSkhjazk2U1cwNWRGUkxNblpVWTJ0a1lYSnhZbXh4TW1jeGFGaDNVbWRCWVVoaWEySmxNWEF3SWl3aWJXRmpJam9pTW1Kak5UTmxOR0l6TXpRNE1ETmhZek15TVRSbU5tRXhNalJtWWpRek1HVXpORFl5WWpVMFptUTVNREk0WW1ObU5qYzFOVEZsWVRsallqTTRZek0xTWlJc0luUmhaeUk2SWlKOQ?expires=1792077000&signature=9858079ca66b009c657d531861697194c13f131d814144b4b6bf553d2e3ba0ff",
|
|
26905
|
-
* "expires_at": "2026-10-15T15:10:00Z"
|
|
26906
|
-
* }
|
|
26907
|
-
* }
|
|
26908
|
-
*/
|
|
26909
27235
|
"application/json": {
|
|
26910
27236
|
result: {
|
|
26911
|
-
/** @description The
|
|
26912
|
-
|
|
26913
|
-
/** @description
|
|
26914
|
-
|
|
26915
|
-
/** @description
|
|
26916
|
-
|
|
26917
|
-
/** @description File type */
|
|
26918
|
-
mime_type: string;
|
|
26919
|
-
/** @description Signed download link */
|
|
26920
|
-
file_url: string;
|
|
26921
|
-
/**
|
|
26922
|
-
* Format: date-time
|
|
26923
|
-
* @description When the link stops working
|
|
26924
|
-
*/
|
|
26925
|
-
expires_at: string;
|
|
27237
|
+
/** @description The new team (or the built-in team added) */
|
|
27238
|
+
team_key: string;
|
|
27239
|
+
/** @description The team's Axivoy address */
|
|
27240
|
+
email_address?: string | null;
|
|
27241
|
+
/** @description What happened, in the operator's words */
|
|
27242
|
+
message: string;
|
|
26926
27243
|
};
|
|
26927
27244
|
};
|
|
26928
27245
|
};
|
|
@@ -26993,7 +27310,7 @@ export interface operations {
|
|
|
26993
27310
|
};
|
|
26994
27311
|
};
|
|
26995
27312
|
};
|
|
26996
|
-
"ops.
|
|
27313
|
+
"ops.communication_teams.default.set": {
|
|
26997
27314
|
parameters: {
|
|
26998
27315
|
query?: never;
|
|
26999
27316
|
header?: {
|
|
@@ -27007,18 +27324,9 @@ export interface operations {
|
|
|
27007
27324
|
};
|
|
27008
27325
|
requestBody?: {
|
|
27009
27326
|
content: {
|
|
27010
|
-
/**
|
|
27011
|
-
* @example {
|
|
27012
|
-
* "plan_id": 5
|
|
27013
|
-
* }
|
|
27014
|
-
*/
|
|
27015
27327
|
"application/json": {
|
|
27016
|
-
/** @description
|
|
27017
|
-
|
|
27018
|
-
/** @description Add only this pay rule type */
|
|
27019
|
-
component_type?: string | null;
|
|
27020
|
-
/** @description Accepted for older forms; plan versions carry dates */
|
|
27021
|
-
effective_from?: string | null;
|
|
27328
|
+
/** @description An active team key (from communication_teams.list); Recruiting is refused because candidates' texts already go there */
|
|
27329
|
+
team_key: string;
|
|
27022
27330
|
};
|
|
27023
27331
|
};
|
|
27024
27332
|
};
|
|
@@ -27029,23 +27337,14 @@ export interface operations {
|
|
|
27029
27337
|
[name: string]: unknown;
|
|
27030
27338
|
};
|
|
27031
27339
|
content: {
|
|
27032
|
-
/**
|
|
27033
|
-
* @example {
|
|
27034
|
-
* "result": {
|
|
27035
|
-
* "id": 5,
|
|
27036
|
-
* "message": "Missing expected pay added.",
|
|
27037
|
-
* "created_count": 1
|
|
27038
|
-
* }
|
|
27039
|
-
* }
|
|
27040
|
-
*/
|
|
27041
27340
|
"application/json": {
|
|
27042
27341
|
result: {
|
|
27043
|
-
/** @description The
|
|
27044
|
-
|
|
27342
|
+
/** @description The default team now */
|
|
27343
|
+
team_key: string;
|
|
27344
|
+
/** @description The default team before */
|
|
27345
|
+
previous_team_key?: string | null;
|
|
27045
27346
|
/** @description What happened, in the operator's words */
|
|
27046
27347
|
message: string;
|
|
27047
|
-
/** @description How many pay items were added */
|
|
27048
|
-
created_count: number;
|
|
27049
27348
|
};
|
|
27050
27349
|
};
|
|
27051
27350
|
};
|
|
@@ -27116,7 +27415,7 @@ export interface operations {
|
|
|
27116
27415
|
};
|
|
27117
27416
|
};
|
|
27118
27417
|
};
|
|
27119
|
-
"ops.
|
|
27418
|
+
"ops.communication_teams.get": {
|
|
27120
27419
|
parameters: {
|
|
27121
27420
|
query?: never;
|
|
27122
27421
|
header?: {
|
|
@@ -27132,18 +27431,12 @@ export interface operations {
|
|
|
27132
27431
|
content: {
|
|
27133
27432
|
/**
|
|
27134
27433
|
* @example {
|
|
27135
|
-
* "
|
|
27136
|
-
* "component_types": [
|
|
27137
|
-
* "mileage_pay",
|
|
27138
|
-
* "minimum_load_pay"
|
|
27139
|
-
* ]
|
|
27434
|
+
* "team_key": "dispatch"
|
|
27140
27435
|
* }
|
|
27141
27436
|
*/
|
|
27142
27437
|
"application/json": {
|
|
27143
|
-
/** @description The
|
|
27144
|
-
|
|
27145
|
-
/** @description Pay rule types to add, at least one */
|
|
27146
|
-
component_types: (string | number)[] | null;
|
|
27438
|
+
/** @description The team (from communication_teams.list) */
|
|
27439
|
+
team_key: string;
|
|
27147
27440
|
};
|
|
27148
27441
|
};
|
|
27149
27442
|
};
|
|
@@ -27157,20 +27450,198 @@ export interface operations {
|
|
|
27157
27450
|
/**
|
|
27158
27451
|
* @example {
|
|
27159
27452
|
* "result": {
|
|
27160
|
-
* "
|
|
27161
|
-
* "
|
|
27162
|
-
* "
|
|
27453
|
+
* "key": "dispatch",
|
|
27454
|
+
* "name": "Dispatch",
|
|
27455
|
+
* "kind": "built_in",
|
|
27456
|
+
* "menu_phrase": "For dispatch",
|
|
27457
|
+
* "email": {
|
|
27458
|
+
* "address": null,
|
|
27459
|
+
* "from_address": null,
|
|
27460
|
+
* "from_name": "Dispatch @ Team Ops Freight",
|
|
27461
|
+
* "own_address_status": null,
|
|
27462
|
+
* "alerts": {
|
|
27463
|
+
* "mode": "email",
|
|
27464
|
+
* "people": []
|
|
27465
|
+
* }
|
|
27466
|
+
* },
|
|
27467
|
+
* "filing_copy_emails": [],
|
|
27468
|
+
* "people": [
|
|
27469
|
+
* {
|
|
27470
|
+
* "member_id": 20,
|
|
27471
|
+
* "type": "role",
|
|
27472
|
+
* "user_id": null,
|
|
27473
|
+
* "name": "Admin",
|
|
27474
|
+
* "role": "admin",
|
|
27475
|
+
* "email": true,
|
|
27476
|
+
* "texts": true,
|
|
27477
|
+
* "calls": true,
|
|
27478
|
+
* "presence": null,
|
|
27479
|
+
* "warnings": []
|
|
27480
|
+
* },
|
|
27481
|
+
* {
|
|
27482
|
+
* "member_id": 21,
|
|
27483
|
+
* "type": "role",
|
|
27484
|
+
* "user_id": null,
|
|
27485
|
+
* "name": "Dispatcher",
|
|
27486
|
+
* "role": "dispatcher",
|
|
27487
|
+
* "email": true,
|
|
27488
|
+
* "texts": true,
|
|
27489
|
+
* "calls": true,
|
|
27490
|
+
* "presence": null,
|
|
27491
|
+
* "warnings": []
|
|
27492
|
+
* }
|
|
27493
|
+
* ],
|
|
27494
|
+
* "shares_people_with": null,
|
|
27495
|
+
* "calls": {
|
|
27496
|
+
* "answered_by": "members",
|
|
27497
|
+
* "ring_group_id": null,
|
|
27498
|
+
* "after_hours": "ring",
|
|
27499
|
+
* "voicemail_greeting": null,
|
|
27500
|
+
* "main_menu_digit": "1"
|
|
27501
|
+
* },
|
|
27502
|
+
* "phone_numbers": [],
|
|
27503
|
+
* "is_default": true,
|
|
27504
|
+
* "sealed": false,
|
|
27505
|
+
* "sends": [
|
|
27506
|
+
* "Detention and accessorial mail",
|
|
27507
|
+
* "Broker negotiations",
|
|
27508
|
+
* "Home-time schedules and change outcomes"
|
|
27509
|
+
* ],
|
|
27510
|
+
* "readiness": {
|
|
27511
|
+
* "state": "ready",
|
|
27512
|
+
* "label": "Ready",
|
|
27513
|
+
* "tone": "success"
|
|
27514
|
+
* },
|
|
27515
|
+
* "archived": false
|
|
27163
27516
|
* }
|
|
27164
27517
|
* }
|
|
27165
27518
|
*/
|
|
27166
27519
|
"application/json": {
|
|
27167
27520
|
result: {
|
|
27168
|
-
/** @description
|
|
27169
|
-
|
|
27170
|
-
/** @description
|
|
27171
|
-
|
|
27172
|
-
/** @description
|
|
27173
|
-
|
|
27521
|
+
/** @description Team key */
|
|
27522
|
+
key: string;
|
|
27523
|
+
/** @description Team name */
|
|
27524
|
+
name: string;
|
|
27525
|
+
/** @description built_in or custom */
|
|
27526
|
+
kind: string;
|
|
27527
|
+
/** @description What the main phone menu says before "press {digit}" */
|
|
27528
|
+
menu_phrase?: string | null;
|
|
27529
|
+
/** @description Email settings */
|
|
27530
|
+
email: {
|
|
27531
|
+
/** @description The team's Axivoy address (on the shared reply domain under the company's name once it sends from its own domain); null before the company has a mail domain */
|
|
27532
|
+
address?: string | null;
|
|
27533
|
+
/** @description The address customers see: sends_from.address */
|
|
27534
|
+
from_address?: string | null;
|
|
27535
|
+
/** @description Where its mail goes out from now; null when none can send yet */
|
|
27536
|
+
sends_from?: {
|
|
27537
|
+
/** @description own (its confirmed own address), default (the confirmed default sending address under its name) or axivoy (its Axivoy address) */
|
|
27538
|
+
kind: string;
|
|
27539
|
+
/** @description The address */
|
|
27540
|
+
address: string;
|
|
27541
|
+
} | null;
|
|
27542
|
+
/** @description The company's confirmed default sending address; null when it has none */
|
|
27543
|
+
default_address?: string | null;
|
|
27544
|
+
/** @description The receive address to forward its own mailbox to; null before the company has a mail domain */
|
|
27545
|
+
forward_target?: string | null;
|
|
27546
|
+
/** @description Where the team receives email, and where to copy the company's own mailbox; on the mail subdomain even when its mail is sent from the company domain; null before the company has a mail domain */
|
|
27547
|
+
replies_address?: string | null;
|
|
27548
|
+
/** @description The name customers see on its mail */
|
|
27549
|
+
from_name: string;
|
|
27550
|
+
/** @description pending_confirmation, active or failed; null without an own address */
|
|
27551
|
+
own_address_status?: string | null;
|
|
27552
|
+
/** @description The team's own address; null without one */
|
|
27553
|
+
own_address?: {
|
|
27554
|
+
/** @description The address on the live sending domain */
|
|
27555
|
+
address: string;
|
|
27556
|
+
/** @description confirmed, else checking (test out), waiting (didn't come back), expired (link expired) or failed (bounced) */
|
|
27557
|
+
state: string;
|
|
27558
|
+
/** @description forwarding or link once confirmed */
|
|
27559
|
+
confirmed_via?: string | null;
|
|
27560
|
+
/** @description The team its forwarding reached; null until a test came back through it */
|
|
27561
|
+
forwards_to?: {
|
|
27562
|
+
/** @description Team key */
|
|
27563
|
+
key: string;
|
|
27564
|
+
/** @description Team name */
|
|
27565
|
+
name: string;
|
|
27566
|
+
} | null;
|
|
27567
|
+
/**
|
|
27568
|
+
* Format: date-time
|
|
27569
|
+
* @description When its latest test was sent
|
|
27570
|
+
*/
|
|
27571
|
+
test_sent_at?: string | null;
|
|
27572
|
+
/**
|
|
27573
|
+
* Format: date-time
|
|
27574
|
+
* @description When it was confirmed
|
|
27575
|
+
*/
|
|
27576
|
+
confirmed_at?: string | null;
|
|
27577
|
+
/**
|
|
27578
|
+
* Format: date-time
|
|
27579
|
+
* @description When a test last came back through its forwarding
|
|
27580
|
+
*/
|
|
27581
|
+
forwarding_verified_at?: string | null;
|
|
27582
|
+
/**
|
|
27583
|
+
* Format: date-time
|
|
27584
|
+
* @description A forwarding test of the confirmed address that hasn't come back
|
|
27585
|
+
*/
|
|
27586
|
+
forwarding_test_sent_at?: string | null;
|
|
27587
|
+
/** @description Why its test could not be delivered */
|
|
27588
|
+
failure_reason?: string | null;
|
|
27589
|
+
} | null;
|
|
27590
|
+
/** @description {mode, people}: who is emailed when Axivoy sends mail from the team (off, email or chosen); null on a team Axivoy sends nothing from */
|
|
27591
|
+
alerts?: Record<string, never> | null;
|
|
27592
|
+
};
|
|
27593
|
+
/** @description Addresses that get a filing copy of its Axivoy mail; null when the team does not support it */
|
|
27594
|
+
filing_copy_emails?: unknown[] | null;
|
|
27595
|
+
/** @description Its people; a team that uses another team's people lists those */
|
|
27596
|
+
people: {
|
|
27597
|
+
/** @description The row (for communication_teams.members.update and .remove) */
|
|
27598
|
+
member_id: number;
|
|
27599
|
+
/** @description person or role */
|
|
27600
|
+
type: string;
|
|
27601
|
+
/** @description The person; null on a role row */
|
|
27602
|
+
user_id?: number | null;
|
|
27603
|
+
/** @description The person's name, or the role as screens name it (Recruiter for the role keyed hr) */
|
|
27604
|
+
name: string;
|
|
27605
|
+
/** @description The role on a role row */
|
|
27606
|
+
role?: string | null;
|
|
27607
|
+
/** @description Sees its email conversations */
|
|
27608
|
+
email: boolean;
|
|
27609
|
+
/** @description Sees its text conversations */
|
|
27610
|
+
texts: boolean;
|
|
27611
|
+
/** @description Sees its calls and rings for them */
|
|
27612
|
+
calls: boolean;
|
|
27613
|
+
/** @description available, busy, on_call or offline for a person with Calls on; null otherwise */
|
|
27614
|
+
presence?: string | null;
|
|
27615
|
+
/** @description What their role can't do, or that they left the company */
|
|
27616
|
+
warnings: unknown[];
|
|
27617
|
+
}[];
|
|
27618
|
+
/** @description The key of the team whose people it uses; null when it has its own */
|
|
27619
|
+
shares_people_with?: string | null;
|
|
27620
|
+
/** @description Calls settings */
|
|
27621
|
+
calls: {
|
|
27622
|
+
/** @description members or ring_group */
|
|
27623
|
+
answered_by: string;
|
|
27624
|
+
/** @description The ring group that answers when answered_by is ring_group */
|
|
27625
|
+
ring_group_id?: number | null;
|
|
27626
|
+
/** @description ring or voicemail when the company is closed */
|
|
27627
|
+
after_hours: string;
|
|
27628
|
+
/** @description Its voicemail greeting; null uses the default */
|
|
27629
|
+
voicemail_greeting?: string | null;
|
|
27630
|
+
/** @description The digit callers press for it in the main phone menu */
|
|
27631
|
+
main_menu_digit?: string | null;
|
|
27632
|
+
};
|
|
27633
|
+
/** @description Numbers whose calls or texts come to the team: {number_id, e164, calls, texts} */
|
|
27634
|
+
phone_numbers: unknown[];
|
|
27635
|
+
/** @description Whether it is the company's default team */
|
|
27636
|
+
is_default: boolean;
|
|
27637
|
+
/** @description Whether its people follow its default roles (Drug & alcohol testing follows the DER role): people can't be added, removed or shared, a ring group never answers, it files no copies, alerts only its people, is never the default team, and its conversations and calls stay with its people */
|
|
27638
|
+
sealed: boolean;
|
|
27639
|
+
/** @description What Axivoy sends from it */
|
|
27640
|
+
sends: unknown[];
|
|
27641
|
+
/** @description {state, label, tone}; null when archived */
|
|
27642
|
+
readiness?: Record<string, never> | null;
|
|
27643
|
+
/** @description Whether the team is archived */
|
|
27644
|
+
archived: boolean;
|
|
27174
27645
|
};
|
|
27175
27646
|
};
|
|
27176
27647
|
};
|
|
@@ -27241,7 +27712,7 @@ export interface operations {
|
|
|
27241
27712
|
};
|
|
27242
27713
|
};
|
|
27243
27714
|
};
|
|
27244
|
-
"ops.
|
|
27715
|
+
"ops.communication_teams.list": {
|
|
27245
27716
|
parameters: {
|
|
27246
27717
|
query?: never;
|
|
27247
27718
|
header?: {
|
|
@@ -27255,24 +27726,23 @@ export interface operations {
|
|
|
27255
27726
|
};
|
|
27256
27727
|
requestBody?: {
|
|
27257
27728
|
content: {
|
|
27258
|
-
/**
|
|
27259
|
-
* @example {
|
|
27260
|
-
* "plan_id": 5,
|
|
27261
|
-
* "user_ids": [
|
|
27262
|
-
* 3
|
|
27263
|
-
* ],
|
|
27264
|
-
* "effective_from": "2026-07-01"
|
|
27265
|
-
* }
|
|
27266
|
-
*/
|
|
27729
|
+
/** @example {} */
|
|
27267
27730
|
"application/json": {
|
|
27268
|
-
/** @description
|
|
27269
|
-
|
|
27270
|
-
/** @description
|
|
27271
|
-
|
|
27272
|
-
/**
|
|
27273
|
-
|
|
27274
|
-
|
|
27275
|
-
|
|
27731
|
+
/** @description Cursor from the previous page's next_cursor. */
|
|
27732
|
+
cursor?: string | null;
|
|
27733
|
+
/** @description Rows per page (default 25). */
|
|
27734
|
+
limit?: number | null;
|
|
27735
|
+
/**
|
|
27736
|
+
* Format: date-time
|
|
27737
|
+
* @description Only rows changed at or after this instant, oldest change first, with deleted rows as tombstones.
|
|
27738
|
+
*/
|
|
27739
|
+
updated_since?: string | null;
|
|
27740
|
+
/** @description True also lists archived teams; default false */
|
|
27741
|
+
include_archived?: boolean;
|
|
27742
|
+
/** @description True also lists built-in teams the company can add; default false */
|
|
27743
|
+
include_available?: boolean;
|
|
27744
|
+
/** @description Only the teams this person is on, directly or through a role, with their membership; needs Manage teams and a person in the company (someone no longer with it lists the rows of their own that remain) */
|
|
27745
|
+
member_user_id?: number | null;
|
|
27276
27746
|
};
|
|
27277
27747
|
};
|
|
27278
27748
|
};
|
|
@@ -27286,20 +27756,230 @@ export interface operations {
|
|
|
27286
27756
|
/**
|
|
27287
27757
|
* @example {
|
|
27288
27758
|
* "result": {
|
|
27289
|
-
* "
|
|
27290
|
-
*
|
|
27291
|
-
*
|
|
27759
|
+
* "items": [
|
|
27760
|
+
* {
|
|
27761
|
+
* "id": 15,
|
|
27762
|
+
* "membership": null,
|
|
27763
|
+
* "key": "hr",
|
|
27764
|
+
* "name": "HR",
|
|
27765
|
+
* "kind": "built_in",
|
|
27766
|
+
* "state": "on",
|
|
27767
|
+
* "module_label": null,
|
|
27768
|
+
* "email_address": null,
|
|
27769
|
+
* "phone_numbers": [],
|
|
27770
|
+
* "people_count": 1,
|
|
27771
|
+
* "email_people_count": 1,
|
|
27772
|
+
* "texts_people_count": 1,
|
|
27773
|
+
* "call_taker_count": 1,
|
|
27774
|
+
* "main_menu_digit": "7",
|
|
27775
|
+
* "is_default": false,
|
|
27776
|
+
* "readiness": {
|
|
27777
|
+
* "state": "ready",
|
|
27778
|
+
* "label": "Ready",
|
|
27779
|
+
* "tone": "success"
|
|
27780
|
+
* },
|
|
27781
|
+
* "archived": false,
|
|
27782
|
+
* "deleted": null
|
|
27783
|
+
* },
|
|
27784
|
+
* {
|
|
27785
|
+
* "id": 14,
|
|
27786
|
+
* "membership": null,
|
|
27787
|
+
* "key": "driver_payroll",
|
|
27788
|
+
* "name": "Payroll",
|
|
27789
|
+
* "kind": "built_in",
|
|
27790
|
+
* "state": "on",
|
|
27791
|
+
* "module_label": "Payroll",
|
|
27792
|
+
* "email_address": null,
|
|
27793
|
+
* "phone_numbers": [],
|
|
27794
|
+
* "people_count": 1,
|
|
27795
|
+
* "email_people_count": 1,
|
|
27796
|
+
* "texts_people_count": 1,
|
|
27797
|
+
* "call_taker_count": 1,
|
|
27798
|
+
* "main_menu_digit": "6",
|
|
27799
|
+
* "is_default": false,
|
|
27800
|
+
* "readiness": {
|
|
27801
|
+
* "state": "ready",
|
|
27802
|
+
* "label": "Ready",
|
|
27803
|
+
* "tone": "success"
|
|
27804
|
+
* },
|
|
27805
|
+
* "archived": false,
|
|
27806
|
+
* "deleted": null
|
|
27807
|
+
* },
|
|
27808
|
+
* {
|
|
27809
|
+
* "id": 13,
|
|
27810
|
+
* "membership": null,
|
|
27811
|
+
* "key": "onboarding",
|
|
27812
|
+
* "name": "Recruiting",
|
|
27813
|
+
* "kind": "built_in",
|
|
27814
|
+
* "state": "on",
|
|
27815
|
+
* "module_label": "Recruiting",
|
|
27816
|
+
* "email_address": null,
|
|
27817
|
+
* "phone_numbers": [],
|
|
27818
|
+
* "people_count": 1,
|
|
27819
|
+
* "email_people_count": 1,
|
|
27820
|
+
* "texts_people_count": 1,
|
|
27821
|
+
* "call_taker_count": 1,
|
|
27822
|
+
* "main_menu_digit": "5",
|
|
27823
|
+
* "is_default": false,
|
|
27824
|
+
* "readiness": {
|
|
27825
|
+
* "state": "ready",
|
|
27826
|
+
* "label": "Ready",
|
|
27827
|
+
* "tone": "success"
|
|
27828
|
+
* },
|
|
27829
|
+
* "archived": false,
|
|
27830
|
+
* "deleted": null
|
|
27831
|
+
* },
|
|
27832
|
+
* {
|
|
27833
|
+
* "id": 12,
|
|
27834
|
+
* "membership": null,
|
|
27835
|
+
* "key": "receivables",
|
|
27836
|
+
* "name": "Receivables",
|
|
27837
|
+
* "kind": "built_in",
|
|
27838
|
+
* "state": "on",
|
|
27839
|
+
* "module_label": "Receivables",
|
|
27840
|
+
* "email_address": null,
|
|
27841
|
+
* "phone_numbers": [],
|
|
27842
|
+
* "people_count": 1,
|
|
27843
|
+
* "email_people_count": 1,
|
|
27844
|
+
* "texts_people_count": 1,
|
|
27845
|
+
* "call_taker_count": 1,
|
|
27846
|
+
* "main_menu_digit": "4",
|
|
27847
|
+
* "is_default": false,
|
|
27848
|
+
* "readiness": {
|
|
27849
|
+
* "state": "ready",
|
|
27850
|
+
* "label": "Ready",
|
|
27851
|
+
* "tone": "success"
|
|
27852
|
+
* },
|
|
27853
|
+
* "archived": false,
|
|
27854
|
+
* "deleted": null
|
|
27855
|
+
* },
|
|
27856
|
+
* {
|
|
27857
|
+
* "id": 11,
|
|
27858
|
+
* "membership": null,
|
|
27859
|
+
* "key": "maintenance",
|
|
27860
|
+
* "name": "Maintenance",
|
|
27861
|
+
* "kind": "built_in",
|
|
27862
|
+
* "state": "on",
|
|
27863
|
+
* "module_label": "Maintenance",
|
|
27864
|
+
* "email_address": null,
|
|
27865
|
+
* "phone_numbers": [],
|
|
27866
|
+
* "people_count": 1,
|
|
27867
|
+
* "email_people_count": 1,
|
|
27868
|
+
* "texts_people_count": 1,
|
|
27869
|
+
* "call_taker_count": 1,
|
|
27870
|
+
* "main_menu_digit": "3",
|
|
27871
|
+
* "is_default": false,
|
|
27872
|
+
* "readiness": {
|
|
27873
|
+
* "state": "ready",
|
|
27874
|
+
* "label": "Ready",
|
|
27875
|
+
* "tone": "success"
|
|
27876
|
+
* },
|
|
27877
|
+
* "archived": false,
|
|
27878
|
+
* "deleted": null
|
|
27879
|
+
* },
|
|
27880
|
+
* {
|
|
27881
|
+
* "id": 10,
|
|
27882
|
+
* "membership": null,
|
|
27883
|
+
* "key": "safety",
|
|
27884
|
+
* "name": "Safety & compliance",
|
|
27885
|
+
* "kind": "built_in",
|
|
27886
|
+
* "state": "on",
|
|
27887
|
+
* "module_label": "Compliance",
|
|
27888
|
+
* "email_address": null,
|
|
27889
|
+
* "phone_numbers": [],
|
|
27890
|
+
* "people_count": 1,
|
|
27891
|
+
* "email_people_count": 1,
|
|
27892
|
+
* "texts_people_count": 1,
|
|
27893
|
+
* "call_taker_count": 1,
|
|
27894
|
+
* "main_menu_digit": "2",
|
|
27895
|
+
* "is_default": false,
|
|
27896
|
+
* "readiness": {
|
|
27897
|
+
* "state": "ready",
|
|
27898
|
+
* "label": "Ready",
|
|
27899
|
+
* "tone": "success"
|
|
27900
|
+
* },
|
|
27901
|
+
* "archived": false,
|
|
27902
|
+
* "deleted": null
|
|
27903
|
+
* },
|
|
27904
|
+
* {
|
|
27905
|
+
* "id": 9,
|
|
27906
|
+
* "membership": null,
|
|
27907
|
+
* "key": "dispatch",
|
|
27908
|
+
* "name": "Dispatch",
|
|
27909
|
+
* "kind": "built_in",
|
|
27910
|
+
* "state": "on",
|
|
27911
|
+
* "module_label": null,
|
|
27912
|
+
* "email_address": null,
|
|
27913
|
+
* "phone_numbers": [],
|
|
27914
|
+
* "people_count": 1,
|
|
27915
|
+
* "email_people_count": 1,
|
|
27916
|
+
* "texts_people_count": 1,
|
|
27917
|
+
* "call_taker_count": 1,
|
|
27918
|
+
* "main_menu_digit": "1",
|
|
27919
|
+
* "is_default": true,
|
|
27920
|
+
* "readiness": {
|
|
27921
|
+
* "state": "ready",
|
|
27922
|
+
* "label": "Ready",
|
|
27923
|
+
* "tone": "success"
|
|
27924
|
+
* },
|
|
27925
|
+
* "archived": false,
|
|
27926
|
+
* "deleted": null
|
|
27927
|
+
* }
|
|
27928
|
+
* ],
|
|
27929
|
+
* "next_cursor": null
|
|
27292
27930
|
* }
|
|
27293
27931
|
* }
|
|
27294
27932
|
*/
|
|
27295
27933
|
"application/json": {
|
|
27296
27934
|
result: {
|
|
27297
|
-
/** @description
|
|
27298
|
-
|
|
27299
|
-
|
|
27300
|
-
|
|
27301
|
-
|
|
27302
|
-
|
|
27935
|
+
/** @description One page of rows. */
|
|
27936
|
+
items: {
|
|
27937
|
+
/** @description The row's id. */
|
|
27938
|
+
id: number;
|
|
27939
|
+
/** @description With member_user_id: {member_id, via, back_to_role, shares_people_with, email, texts, calls} for that person. via is person (their own row, member_id) or the name of the role whose row puts them on the team (member_id is that role row); back_to_role is the role row their own row replaces, else null; shares_people_with is the team whose people this team uses (its rows decide), else null. Null without member_user_id */
|
|
27940
|
+
membership?: Record<string, never> | null;
|
|
27941
|
+
/** @description Team key: dispatch, safety, maintenance, receivables, onboarding, driver_payroll, hr, fleet, drug_testing, or a company team's key */
|
|
27942
|
+
key: string;
|
|
27943
|
+
/** @description Team name */
|
|
27944
|
+
name: string;
|
|
27945
|
+
/** @description builtin or custom */
|
|
27946
|
+
kind: string;
|
|
27947
|
+
/** @description on, available (a built-in team the company can add) or archived */
|
|
27948
|
+
state: string;
|
|
27949
|
+
/** @description The module that turns a built-in team on, for example Compliance; null when it is always on or a company team */
|
|
27950
|
+
module_label?: string | null;
|
|
27951
|
+
/** @description The team's Axivoy address (on the shared reply domain under the company's name once it sends from its own domain); null before the company has a mail domain */
|
|
27952
|
+
email_address?: string | null;
|
|
27953
|
+
/** @description Where its mail goes out from now; null unless on, or when none can send yet */
|
|
27954
|
+
sends_from?: {
|
|
27955
|
+
/** @description own (its confirmed own address), default (the confirmed default sending address under its name) or axivoy (its Axivoy address) */
|
|
27956
|
+
kind: string;
|
|
27957
|
+
/** @description The address */
|
|
27958
|
+
address: string;
|
|
27959
|
+
} | null;
|
|
27960
|
+
/** @description Numbers whose calls or texts come to the team: {number_id, e164, calls, texts} */
|
|
27961
|
+
phone_numbers: unknown[];
|
|
27962
|
+
/** @description Active people with any switch on */
|
|
27963
|
+
people_count: number;
|
|
27964
|
+
/** @description Active people who see its email */
|
|
27965
|
+
email_people_count: number;
|
|
27966
|
+
/** @description Active people who see its texts */
|
|
27967
|
+
texts_people_count: number;
|
|
27968
|
+
/** @description Active people who ring for its calls */
|
|
27969
|
+
call_taker_count: number;
|
|
27970
|
+
/** @description The digit callers press for it in the main phone menu; null when it is not in the menu */
|
|
27971
|
+
main_menu_digit?: string | null;
|
|
27972
|
+
/** @description Whether texts to numbers on no team and calls that reach no team come here */
|
|
27973
|
+
is_default: boolean;
|
|
27974
|
+
/** @description {state, label, tone}: ready, nobody_sees, nobody_sees_email, nobody_sees_texts, nobody_takes_calls or own_address_waiting; null unless on */
|
|
27975
|
+
readiness?: Record<string, never> | null;
|
|
27976
|
+
/** @description Whether the team is archived */
|
|
27977
|
+
archived: boolean;
|
|
27978
|
+
/** @description True on a tombstone (the row was deleted or recycled); other fields are absent. */
|
|
27979
|
+
deleted?: boolean | null;
|
|
27980
|
+
}[];
|
|
27981
|
+
/** @description Pass as cursor for the next page; null on the last page. */
|
|
27982
|
+
next_cursor?: string | null;
|
|
27303
27983
|
};
|
|
27304
27984
|
};
|
|
27305
27985
|
};
|
|
@@ -27370,7 +28050,7 @@ export interface operations {
|
|
|
27370
28050
|
};
|
|
27371
28051
|
};
|
|
27372
28052
|
};
|
|
27373
|
-
"ops.
|
|
28053
|
+
"ops.communication_teams.members.add": {
|
|
27374
28054
|
parameters: {
|
|
27375
28055
|
query?: never;
|
|
27376
28056
|
header?: {
|
|
@@ -27386,22 +28066,24 @@ export interface operations {
|
|
|
27386
28066
|
content: {
|
|
27387
28067
|
/**
|
|
27388
28068
|
* @example {
|
|
27389
|
-
* "
|
|
27390
|
-
* "
|
|
27391
|
-
* "
|
|
27392
|
-
* "amount": 150
|
|
27393
|
-
* }
|
|
28069
|
+
* "team_key": "receivables",
|
|
28070
|
+
* "user_id": 2,
|
|
28071
|
+
* "calls": false
|
|
27394
28072
|
* }
|
|
27395
28073
|
*/
|
|
27396
28074
|
"application/json": {
|
|
27397
|
-
/** @description The
|
|
27398
|
-
|
|
27399
|
-
/** @description
|
|
27400
|
-
|
|
27401
|
-
/** @description
|
|
27402
|
-
|
|
27403
|
-
|
|
27404
|
-
|
|
28075
|
+
/** @description The team (from communication_teams.list) */
|
|
28076
|
+
team_key: string;
|
|
28077
|
+
/** @description A person in the company (or role) */
|
|
28078
|
+
user_id?: number | null;
|
|
28079
|
+
/** @description A company role name; everyone holding it is on the team (or user_id) */
|
|
28080
|
+
role?: string | null;
|
|
28081
|
+
/** @description Sees the team's email conversations; default true */
|
|
28082
|
+
email?: boolean;
|
|
28083
|
+
/** @description Sees the team's text conversations; default true */
|
|
28084
|
+
texts?: boolean;
|
|
28085
|
+
/** @description Sees the team's calls and voicemails, and rings when a caller reaches the team; default true while calls are on */
|
|
28086
|
+
calls?: boolean;
|
|
27405
28087
|
};
|
|
27406
28088
|
};
|
|
27407
28089
|
};
|
|
@@ -27415,15 +28097,18 @@ export interface operations {
|
|
|
27415
28097
|
/**
|
|
27416
28098
|
* @example {
|
|
27417
28099
|
* "result": {
|
|
27418
|
-
* "
|
|
27419
|
-
* "
|
|
28100
|
+
* "member_id": 37,
|
|
28101
|
+
* "warnings": [],
|
|
28102
|
+
* "message": "Added to Receivables."
|
|
27420
28103
|
* }
|
|
27421
28104
|
* }
|
|
27422
28105
|
*/
|
|
27423
28106
|
"application/json": {
|
|
27424
28107
|
result: {
|
|
27425
|
-
/** @description The
|
|
27426
|
-
|
|
28108
|
+
/** @description The new person or role row */
|
|
28109
|
+
member_id: number;
|
|
28110
|
+
/** @description What their role can't do (open the Inbox, take calls) */
|
|
28111
|
+
warnings: unknown[];
|
|
27427
28112
|
/** @description What happened, in the operator's words */
|
|
27428
28113
|
message: string;
|
|
27429
28114
|
};
|
|
@@ -27496,7 +28181,7 @@ export interface operations {
|
|
|
27496
28181
|
};
|
|
27497
28182
|
};
|
|
27498
28183
|
};
|
|
27499
|
-
"ops.
|
|
28184
|
+
"ops.communication_teams.members.remove": {
|
|
27500
28185
|
parameters: {
|
|
27501
28186
|
query?: never;
|
|
27502
28187
|
header?: {
|
|
@@ -27512,27 +28197,15 @@ export interface operations {
|
|
|
27512
28197
|
content: {
|
|
27513
28198
|
/**
|
|
27514
28199
|
* @example {
|
|
27515
|
-
* "
|
|
27516
|
-
* "
|
|
27517
|
-
* "component_type": "mileage_pay",
|
|
27518
|
-
* "configuration": {
|
|
27519
|
-
* "rate_per_mile": 0.7,
|
|
27520
|
-
* "basis": "total",
|
|
27521
|
-
* "pay_empty_miles": true
|
|
27522
|
-
* }
|
|
28200
|
+
* "team_key": "receivables",
|
|
28201
|
+
* "member_id": 37
|
|
27523
28202
|
* }
|
|
27524
28203
|
*/
|
|
27525
28204
|
"application/json": {
|
|
27526
|
-
/** @description The
|
|
27527
|
-
|
|
27528
|
-
/** @description The
|
|
27529
|
-
|
|
27530
|
-
/** @description Pay rule type: mileage_pay, minimum_load_pay, stop_pay, detention_pay, layover_pay, tonu_pay, flat_load_pay, revenue_percentage_pay, maintenance_shuttle_pay */
|
|
27531
|
-
component_type: string | null;
|
|
27532
|
-
/** @description Rates for the pay rule type: mileage pay takes rate_per_mile with basis and pay_empty_miles, or mileage_mode with loaded_rate_per_mile and empty_rate_per_mile; stop pay structure, included_stops and amount_per_stop; flat pays amount; revenue percentage percent and revenue_basis; detention structure with amount or free_hours and rate_per_hour; layover structure with amount, amount_per_day or first_day_amount and additional_day_amount */
|
|
27533
|
-
configuration?: {
|
|
27534
|
-
[key: string]: unknown;
|
|
27535
|
-
} | unknown[] | null;
|
|
28205
|
+
/** @description The team (from communication_teams.list) */
|
|
28206
|
+
team_key: string;
|
|
28207
|
+
/** @description The person or role row (from communication_teams.get) */
|
|
28208
|
+
member_id: number;
|
|
27536
28209
|
};
|
|
27537
28210
|
};
|
|
27538
28211
|
};
|
|
@@ -27546,15 +28219,12 @@ export interface operations {
|
|
|
27546
28219
|
/**
|
|
27547
28220
|
* @example {
|
|
27548
28221
|
* "result": {
|
|
27549
|
-
* "
|
|
27550
|
-
* "message": "Pay rule updated."
|
|
28222
|
+
* "message": "Removed from Receivables."
|
|
27551
28223
|
* }
|
|
27552
28224
|
* }
|
|
27553
28225
|
*/
|
|
27554
28226
|
"application/json": {
|
|
27555
28227
|
result: {
|
|
27556
|
-
/** @description The pay rule id */
|
|
27557
|
-
id?: number | null;
|
|
27558
28228
|
/** @description What happened, in the operator's words */
|
|
27559
28229
|
message: string;
|
|
27560
28230
|
};
|
|
@@ -27627,7 +28297,7 @@ export interface operations {
|
|
|
27627
28297
|
};
|
|
27628
28298
|
};
|
|
27629
28299
|
};
|
|
27630
|
-
"ops.
|
|
28300
|
+
"ops.communication_teams.members.update": {
|
|
27631
28301
|
parameters: {
|
|
27632
28302
|
query?: never;
|
|
27633
28303
|
header?: {
|
|
@@ -27643,18 +28313,22 @@ export interface operations {
|
|
|
27643
28313
|
content: {
|
|
27644
28314
|
/**
|
|
27645
28315
|
* @example {
|
|
27646
|
-
* "
|
|
27647
|
-
* "
|
|
27648
|
-
* "
|
|
28316
|
+
* "team_key": "receivables",
|
|
28317
|
+
* "member_id": 37,
|
|
28318
|
+
* "texts": false
|
|
27649
28319
|
* }
|
|
27650
28320
|
*/
|
|
27651
28321
|
"application/json": {
|
|
27652
|
-
/** @description
|
|
27653
|
-
|
|
27654
|
-
/** @description
|
|
27655
|
-
|
|
27656
|
-
/** @description
|
|
27657
|
-
|
|
28322
|
+
/** @description The team (from communication_teams.list) */
|
|
28323
|
+
team_key: string;
|
|
28324
|
+
/** @description The person or role row (from communication_teams.get) */
|
|
28325
|
+
member_id: number;
|
|
28326
|
+
/** @description Sees the team's email conversations */
|
|
28327
|
+
email?: boolean;
|
|
28328
|
+
/** @description Sees the team's text conversations */
|
|
28329
|
+
texts?: boolean;
|
|
28330
|
+
/** @description Sees the team's calls and voicemails, and rings when a caller reaches the team */
|
|
28331
|
+
calls?: boolean;
|
|
27658
28332
|
};
|
|
27659
28333
|
};
|
|
27660
28334
|
};
|
|
@@ -27668,15 +28342,18 @@ export interface operations {
|
|
|
27668
28342
|
/**
|
|
27669
28343
|
* @example {
|
|
27670
28344
|
* "result": {
|
|
27671
|
-
* "
|
|
27672
|
-
* "
|
|
28345
|
+
* "member_id": 37,
|
|
28346
|
+
* "warnings": [],
|
|
28347
|
+
* "message": "Saved."
|
|
27673
28348
|
* }
|
|
27674
28349
|
* }
|
|
27675
28350
|
*/
|
|
27676
28351
|
"application/json": {
|
|
27677
28352
|
result: {
|
|
27678
|
-
/** @description The
|
|
27679
|
-
|
|
28353
|
+
/** @description The person or role row */
|
|
28354
|
+
member_id: number;
|
|
28355
|
+
/** @description What their role can't do, or that they left the company */
|
|
28356
|
+
warnings: unknown[];
|
|
27680
28357
|
/** @description What happened, in the operator's words */
|
|
27681
28358
|
message: string;
|
|
27682
28359
|
};
|
|
@@ -27749,7 +28426,126 @@ export interface operations {
|
|
|
27749
28426
|
};
|
|
27750
28427
|
};
|
|
27751
28428
|
};
|
|
27752
|
-
"ops.
|
|
28429
|
+
"ops.communication_teams.numbers.set": {
|
|
28430
|
+
parameters: {
|
|
28431
|
+
query?: never;
|
|
28432
|
+
header?: {
|
|
28433
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
28434
|
+
"Idempotency-Key"?: string;
|
|
28435
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
28436
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
28437
|
+
};
|
|
28438
|
+
path?: never;
|
|
28439
|
+
cookie?: never;
|
|
28440
|
+
};
|
|
28441
|
+
requestBody?: {
|
|
28442
|
+
content: {
|
|
28443
|
+
"application/json": {
|
|
28444
|
+
/** @description An active team (from communication_teams.list) */
|
|
28445
|
+
team_key: string;
|
|
28446
|
+
/** @description A number the company holds, active and not handed over (from voice.numbers.list) */
|
|
28447
|
+
number_id: number;
|
|
28448
|
+
/** @description True rings this team when someone calls the number; false rings everyone; left out keeps it */
|
|
28449
|
+
calls?: boolean | null;
|
|
28450
|
+
/** @description True sends the number's texts to this team; false sends them to the default team; left out keeps it */
|
|
28451
|
+
texts?: boolean | null;
|
|
28452
|
+
/** @description True moves calls or texts that reach another team, a phone menu or a forward today; required when the change does */
|
|
28453
|
+
confirm_move?: boolean | null;
|
|
28454
|
+
};
|
|
28455
|
+
};
|
|
28456
|
+
};
|
|
28457
|
+
responses: {
|
|
28458
|
+
/** @description The operation ran. */
|
|
28459
|
+
200: {
|
|
28460
|
+
headers: {
|
|
28461
|
+
[name: string]: unknown;
|
|
28462
|
+
};
|
|
28463
|
+
content: {
|
|
28464
|
+
"application/json": {
|
|
28465
|
+
result: {
|
|
28466
|
+
/** @description The phone number */
|
|
28467
|
+
number_id: number;
|
|
28468
|
+
/** @description The team */
|
|
28469
|
+
team_key: string;
|
|
28470
|
+
/** @description Whether the number rings this team now */
|
|
28471
|
+
calls: boolean;
|
|
28472
|
+
/** @description Whether its texts come to this team now */
|
|
28473
|
+
texts: boolean;
|
|
28474
|
+
/** @description Where the moved calls or texts went before, in the operator's words; null when nothing moved */
|
|
28475
|
+
moved_from?: string | null;
|
|
28476
|
+
/** @description What happened, in the operator's words */
|
|
28477
|
+
message: string;
|
|
28478
|
+
};
|
|
28479
|
+
};
|
|
28480
|
+
};
|
|
28481
|
+
};
|
|
28482
|
+
202: components["responses"]["Proposal"];
|
|
28483
|
+
/** @description Refused: credits_exhausted. */
|
|
28484
|
+
402: {
|
|
28485
|
+
headers: {
|
|
28486
|
+
[name: string]: unknown;
|
|
28487
|
+
};
|
|
28488
|
+
content: {
|
|
28489
|
+
"application/json": components["schemas"]["OperationError"];
|
|
28490
|
+
};
|
|
28491
|
+
};
|
|
28492
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
28493
|
+
403: {
|
|
28494
|
+
headers: {
|
|
28495
|
+
[name: string]: unknown;
|
|
28496
|
+
};
|
|
28497
|
+
content: {
|
|
28498
|
+
"application/json": components["schemas"]["OperationError"];
|
|
28499
|
+
};
|
|
28500
|
+
};
|
|
28501
|
+
/** @description Refused: not_found. */
|
|
28502
|
+
404: {
|
|
28503
|
+
headers: {
|
|
28504
|
+
[name: string]: unknown;
|
|
28505
|
+
};
|
|
28506
|
+
content: {
|
|
28507
|
+
"application/json": components["schemas"]["OperationError"];
|
|
28508
|
+
};
|
|
28509
|
+
};
|
|
28510
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
28511
|
+
409: {
|
|
28512
|
+
headers: {
|
|
28513
|
+
[name: string]: unknown;
|
|
28514
|
+
};
|
|
28515
|
+
content: {
|
|
28516
|
+
"application/json": components["schemas"]["OperationError"];
|
|
28517
|
+
};
|
|
28518
|
+
};
|
|
28519
|
+
/** @description Refused: operation_retired. */
|
|
28520
|
+
410: {
|
|
28521
|
+
headers: {
|
|
28522
|
+
[name: string]: unknown;
|
|
28523
|
+
};
|
|
28524
|
+
content: {
|
|
28525
|
+
"application/json": components["schemas"]["OperationError"];
|
|
28526
|
+
};
|
|
28527
|
+
};
|
|
28528
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
28529
|
+
422: {
|
|
28530
|
+
headers: {
|
|
28531
|
+
[name: string]: unknown;
|
|
28532
|
+
};
|
|
28533
|
+
content: {
|
|
28534
|
+
"application/json": components["schemas"]["OperationError"];
|
|
28535
|
+
};
|
|
28536
|
+
};
|
|
28537
|
+
/** @description Refused: rate_limited. */
|
|
28538
|
+
429: {
|
|
28539
|
+
headers: {
|
|
28540
|
+
[name: string]: unknown;
|
|
28541
|
+
};
|
|
28542
|
+
content: {
|
|
28543
|
+
"application/json": components["schemas"]["OperationError"];
|
|
28544
|
+
};
|
|
28545
|
+
};
|
|
28546
|
+
};
|
|
28547
|
+
};
|
|
28548
|
+
"ops.communication_teams.public_from.clear": {
|
|
27753
28549
|
parameters: {
|
|
27754
28550
|
query?: never;
|
|
27755
28551
|
header?: {
|
|
@@ -27765,12 +28561,12 @@ export interface operations {
|
|
|
27765
28561
|
content: {
|
|
27766
28562
|
/**
|
|
27767
28563
|
* @example {
|
|
27768
|
-
* "
|
|
28564
|
+
* "team_key": "dispatch"
|
|
27769
28565
|
* }
|
|
27770
28566
|
*/
|
|
27771
28567
|
"application/json": {
|
|
27772
|
-
/** @description The
|
|
27773
|
-
|
|
28568
|
+
/** @description The team (from communication_teams.list) */
|
|
28569
|
+
team_key: string;
|
|
27774
28570
|
};
|
|
27775
28571
|
};
|
|
27776
28572
|
};
|
|
@@ -27784,15 +28580,1789 @@ export interface operations {
|
|
|
27784
28580
|
/**
|
|
27785
28581
|
* @example {
|
|
27786
28582
|
* "result": {
|
|
27787
|
-
* "
|
|
27788
|
-
* "message": "Plan duplicated. Adjust the pay rates, then set it as a progression target on the original plan."
|
|
28583
|
+
* "message": "The team sends from its Axivoy address again."
|
|
27789
28584
|
* }
|
|
27790
28585
|
* }
|
|
27791
28586
|
*/
|
|
27792
28587
|
"application/json": {
|
|
27793
28588
|
result: {
|
|
27794
|
-
/** @description
|
|
27795
|
-
|
|
28589
|
+
/** @description What happened, in the operator's words */
|
|
28590
|
+
message: string;
|
|
28591
|
+
};
|
|
28592
|
+
};
|
|
28593
|
+
};
|
|
28594
|
+
};
|
|
28595
|
+
202: components["responses"]["Proposal"];
|
|
28596
|
+
/** @description Refused: credits_exhausted. */
|
|
28597
|
+
402: {
|
|
28598
|
+
headers: {
|
|
28599
|
+
[name: string]: unknown;
|
|
28600
|
+
};
|
|
28601
|
+
content: {
|
|
28602
|
+
"application/json": components["schemas"]["OperationError"];
|
|
28603
|
+
};
|
|
28604
|
+
};
|
|
28605
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
28606
|
+
403: {
|
|
28607
|
+
headers: {
|
|
28608
|
+
[name: string]: unknown;
|
|
28609
|
+
};
|
|
28610
|
+
content: {
|
|
28611
|
+
"application/json": components["schemas"]["OperationError"];
|
|
28612
|
+
};
|
|
28613
|
+
};
|
|
28614
|
+
/** @description Refused: not_found. */
|
|
28615
|
+
404: {
|
|
28616
|
+
headers: {
|
|
28617
|
+
[name: string]: unknown;
|
|
28618
|
+
};
|
|
28619
|
+
content: {
|
|
28620
|
+
"application/json": components["schemas"]["OperationError"];
|
|
28621
|
+
};
|
|
28622
|
+
};
|
|
28623
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
28624
|
+
409: {
|
|
28625
|
+
headers: {
|
|
28626
|
+
[name: string]: unknown;
|
|
28627
|
+
};
|
|
28628
|
+
content: {
|
|
28629
|
+
"application/json": components["schemas"]["OperationError"];
|
|
28630
|
+
};
|
|
28631
|
+
};
|
|
28632
|
+
/** @description Refused: operation_retired. */
|
|
28633
|
+
410: {
|
|
28634
|
+
headers: {
|
|
28635
|
+
[name: string]: unknown;
|
|
28636
|
+
};
|
|
28637
|
+
content: {
|
|
28638
|
+
"application/json": components["schemas"]["OperationError"];
|
|
28639
|
+
};
|
|
28640
|
+
};
|
|
28641
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
28642
|
+
422: {
|
|
28643
|
+
headers: {
|
|
28644
|
+
[name: string]: unknown;
|
|
28645
|
+
};
|
|
28646
|
+
content: {
|
|
28647
|
+
"application/json": components["schemas"]["OperationError"];
|
|
28648
|
+
};
|
|
28649
|
+
};
|
|
28650
|
+
/** @description Refused: rate_limited. */
|
|
28651
|
+
429: {
|
|
28652
|
+
headers: {
|
|
28653
|
+
[name: string]: unknown;
|
|
28654
|
+
};
|
|
28655
|
+
content: {
|
|
28656
|
+
"application/json": components["schemas"]["OperationError"];
|
|
28657
|
+
};
|
|
28658
|
+
};
|
|
28659
|
+
};
|
|
28660
|
+
};
|
|
28661
|
+
"ops.communication_teams.public_from.resend": {
|
|
28662
|
+
parameters: {
|
|
28663
|
+
query?: never;
|
|
28664
|
+
header?: {
|
|
28665
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
28666
|
+
"Idempotency-Key"?: string;
|
|
28667
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
28668
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
28669
|
+
};
|
|
28670
|
+
path?: never;
|
|
28671
|
+
cookie?: never;
|
|
28672
|
+
};
|
|
28673
|
+
requestBody?: {
|
|
28674
|
+
content: {
|
|
28675
|
+
/**
|
|
28676
|
+
* @example {
|
|
28677
|
+
* "team_key": "dispatch"
|
|
28678
|
+
* }
|
|
28679
|
+
*/
|
|
28680
|
+
"application/json": {
|
|
28681
|
+
/** @description The team (from communication_teams.list) */
|
|
28682
|
+
team_key: string;
|
|
28683
|
+
};
|
|
28684
|
+
};
|
|
28685
|
+
};
|
|
28686
|
+
responses: {
|
|
28687
|
+
/** @description The operation ran. */
|
|
28688
|
+
200: {
|
|
28689
|
+
headers: {
|
|
28690
|
+
[name: string]: unknown;
|
|
28691
|
+
};
|
|
28692
|
+
content: {
|
|
28693
|
+
/**
|
|
28694
|
+
* @example {
|
|
28695
|
+
* "result": {
|
|
28696
|
+
* "identity_id": 1,
|
|
28697
|
+
* "message": "Confirmation email resent. Check that inbox and open the link."
|
|
28698
|
+
* }
|
|
28699
|
+
* }
|
|
28700
|
+
*/
|
|
28701
|
+
"application/json": {
|
|
28702
|
+
result: {
|
|
28703
|
+
/** @description The team's own address */
|
|
28704
|
+
identity_id: number;
|
|
28705
|
+
/** @description What happened, in the operator's words */
|
|
28706
|
+
message: string;
|
|
28707
|
+
};
|
|
28708
|
+
};
|
|
28709
|
+
};
|
|
28710
|
+
};
|
|
28711
|
+
202: components["responses"]["Proposal"];
|
|
28712
|
+
/** @description Refused: credits_exhausted. */
|
|
28713
|
+
402: {
|
|
28714
|
+
headers: {
|
|
28715
|
+
[name: string]: unknown;
|
|
28716
|
+
};
|
|
28717
|
+
content: {
|
|
28718
|
+
"application/json": components["schemas"]["OperationError"];
|
|
28719
|
+
};
|
|
28720
|
+
};
|
|
28721
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
28722
|
+
403: {
|
|
28723
|
+
headers: {
|
|
28724
|
+
[name: string]: unknown;
|
|
28725
|
+
};
|
|
28726
|
+
content: {
|
|
28727
|
+
"application/json": components["schemas"]["OperationError"];
|
|
28728
|
+
};
|
|
28729
|
+
};
|
|
28730
|
+
/** @description Refused: not_found. */
|
|
28731
|
+
404: {
|
|
28732
|
+
headers: {
|
|
28733
|
+
[name: string]: unknown;
|
|
28734
|
+
};
|
|
28735
|
+
content: {
|
|
28736
|
+
"application/json": components["schemas"]["OperationError"];
|
|
28737
|
+
};
|
|
28738
|
+
};
|
|
28739
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
28740
|
+
409: {
|
|
28741
|
+
headers: {
|
|
28742
|
+
[name: string]: unknown;
|
|
28743
|
+
};
|
|
28744
|
+
content: {
|
|
28745
|
+
"application/json": components["schemas"]["OperationError"];
|
|
28746
|
+
};
|
|
28747
|
+
};
|
|
28748
|
+
/** @description Refused: operation_retired. */
|
|
28749
|
+
410: {
|
|
28750
|
+
headers: {
|
|
28751
|
+
[name: string]: unknown;
|
|
28752
|
+
};
|
|
28753
|
+
content: {
|
|
28754
|
+
"application/json": components["schemas"]["OperationError"];
|
|
28755
|
+
};
|
|
28756
|
+
};
|
|
28757
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
28758
|
+
422: {
|
|
28759
|
+
headers: {
|
|
28760
|
+
[name: string]: unknown;
|
|
28761
|
+
};
|
|
28762
|
+
content: {
|
|
28763
|
+
"application/json": components["schemas"]["OperationError"];
|
|
28764
|
+
};
|
|
28765
|
+
};
|
|
28766
|
+
/** @description Refused: rate_limited. */
|
|
28767
|
+
429: {
|
|
28768
|
+
headers: {
|
|
28769
|
+
[name: string]: unknown;
|
|
28770
|
+
};
|
|
28771
|
+
content: {
|
|
28772
|
+
"application/json": components["schemas"]["OperationError"];
|
|
28773
|
+
};
|
|
28774
|
+
};
|
|
28775
|
+
};
|
|
28776
|
+
};
|
|
28777
|
+
"ops.communication_teams.public_from.set": {
|
|
28778
|
+
parameters: {
|
|
28779
|
+
query?: never;
|
|
28780
|
+
header?: {
|
|
28781
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
28782
|
+
"Idempotency-Key"?: string;
|
|
28783
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
28784
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
28785
|
+
};
|
|
28786
|
+
path?: never;
|
|
28787
|
+
cookie?: never;
|
|
28788
|
+
};
|
|
28789
|
+
requestBody?: {
|
|
28790
|
+
content: {
|
|
28791
|
+
/**
|
|
28792
|
+
* @example {
|
|
28793
|
+
* "team_key": "dispatch",
|
|
28794
|
+
* "local_part": "Ops"
|
|
28795
|
+
* }
|
|
28796
|
+
*/
|
|
28797
|
+
"application/json": {
|
|
28798
|
+
/** @description The team (from communication_teams.list) */
|
|
28799
|
+
team_key: string;
|
|
28800
|
+
/** @description The text before @ on the company's live sending domain (max 128) */
|
|
28801
|
+
local_part: string;
|
|
28802
|
+
};
|
|
28803
|
+
};
|
|
28804
|
+
};
|
|
28805
|
+
responses: {
|
|
28806
|
+
/** @description The operation ran. */
|
|
28807
|
+
200: {
|
|
28808
|
+
headers: {
|
|
28809
|
+
[name: string]: unknown;
|
|
28810
|
+
};
|
|
28811
|
+
content: {
|
|
28812
|
+
/**
|
|
28813
|
+
* @example {
|
|
28814
|
+
* "result": {
|
|
28815
|
+
* "identity_id": 1,
|
|
28816
|
+
* "status": "pending_confirmation",
|
|
28817
|
+
* "message": "Confirmation email sent. Check that inbox and open the link to start using this address."
|
|
28818
|
+
* }
|
|
28819
|
+
* }
|
|
28820
|
+
*/
|
|
28821
|
+
"application/json": {
|
|
28822
|
+
result: {
|
|
28823
|
+
/** @description The team's own address */
|
|
28824
|
+
identity_id: number;
|
|
28825
|
+
/** @description pending_confirmation until the test comes back or someone clicks its link; failed when it could not be delivered; active when the address was already confirmed */
|
|
28826
|
+
status: string;
|
|
28827
|
+
/** @description What happened, in the operator's words */
|
|
28828
|
+
message: string;
|
|
28829
|
+
};
|
|
28830
|
+
};
|
|
28831
|
+
};
|
|
28832
|
+
};
|
|
28833
|
+
202: components["responses"]["Proposal"];
|
|
28834
|
+
/** @description Refused: credits_exhausted. */
|
|
28835
|
+
402: {
|
|
28836
|
+
headers: {
|
|
28837
|
+
[name: string]: unknown;
|
|
28838
|
+
};
|
|
28839
|
+
content: {
|
|
28840
|
+
"application/json": components["schemas"]["OperationError"];
|
|
28841
|
+
};
|
|
28842
|
+
};
|
|
28843
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
28844
|
+
403: {
|
|
28845
|
+
headers: {
|
|
28846
|
+
[name: string]: unknown;
|
|
28847
|
+
};
|
|
28848
|
+
content: {
|
|
28849
|
+
"application/json": components["schemas"]["OperationError"];
|
|
28850
|
+
};
|
|
28851
|
+
};
|
|
28852
|
+
/** @description Refused: not_found. */
|
|
28853
|
+
404: {
|
|
28854
|
+
headers: {
|
|
28855
|
+
[name: string]: unknown;
|
|
28856
|
+
};
|
|
28857
|
+
content: {
|
|
28858
|
+
"application/json": components["schemas"]["OperationError"];
|
|
28859
|
+
};
|
|
28860
|
+
};
|
|
28861
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
28862
|
+
409: {
|
|
28863
|
+
headers: {
|
|
28864
|
+
[name: string]: unknown;
|
|
28865
|
+
};
|
|
28866
|
+
content: {
|
|
28867
|
+
"application/json": components["schemas"]["OperationError"];
|
|
28868
|
+
};
|
|
28869
|
+
};
|
|
28870
|
+
/** @description Refused: operation_retired. */
|
|
28871
|
+
410: {
|
|
28872
|
+
headers: {
|
|
28873
|
+
[name: string]: unknown;
|
|
28874
|
+
};
|
|
28875
|
+
content: {
|
|
28876
|
+
"application/json": components["schemas"]["OperationError"];
|
|
28877
|
+
};
|
|
28878
|
+
};
|
|
28879
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
28880
|
+
422: {
|
|
28881
|
+
headers: {
|
|
28882
|
+
[name: string]: unknown;
|
|
28883
|
+
};
|
|
28884
|
+
content: {
|
|
28885
|
+
"application/json": components["schemas"]["OperationError"];
|
|
28886
|
+
};
|
|
28887
|
+
};
|
|
28888
|
+
/** @description Refused: rate_limited. */
|
|
28889
|
+
429: {
|
|
28890
|
+
headers: {
|
|
28891
|
+
[name: string]: unknown;
|
|
28892
|
+
};
|
|
28893
|
+
content: {
|
|
28894
|
+
"application/json": components["schemas"]["OperationError"];
|
|
28895
|
+
};
|
|
28896
|
+
};
|
|
28897
|
+
};
|
|
28898
|
+
};
|
|
28899
|
+
"ops.communication_teams.public_from.test_forwarding": {
|
|
28900
|
+
parameters: {
|
|
28901
|
+
query?: never;
|
|
28902
|
+
header?: {
|
|
28903
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
28904
|
+
"Idempotency-Key"?: string;
|
|
28905
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
28906
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
28907
|
+
};
|
|
28908
|
+
path?: never;
|
|
28909
|
+
cookie?: never;
|
|
28910
|
+
};
|
|
28911
|
+
requestBody?: {
|
|
28912
|
+
content: {
|
|
28913
|
+
"application/json": {
|
|
28914
|
+
/** @description The team (from communication_teams.list) */
|
|
28915
|
+
team_key: string;
|
|
28916
|
+
};
|
|
28917
|
+
};
|
|
28918
|
+
};
|
|
28919
|
+
responses: {
|
|
28920
|
+
/** @description The operation ran. */
|
|
28921
|
+
200: {
|
|
28922
|
+
headers: {
|
|
28923
|
+
[name: string]: unknown;
|
|
28924
|
+
};
|
|
28925
|
+
content: {
|
|
28926
|
+
"application/json": {
|
|
28927
|
+
result: {
|
|
28928
|
+
/** @description The team's own address */
|
|
28929
|
+
identity_id: number;
|
|
28930
|
+
/**
|
|
28931
|
+
* Format: date-time
|
|
28932
|
+
* @description When the forwarding test was sent
|
|
28933
|
+
*/
|
|
28934
|
+
forwarding_test_sent_at?: string | null;
|
|
28935
|
+
/** @description What happened, in the operator's words */
|
|
28936
|
+
message: string;
|
|
28937
|
+
};
|
|
28938
|
+
};
|
|
28939
|
+
};
|
|
28940
|
+
};
|
|
28941
|
+
202: components["responses"]["Proposal"];
|
|
28942
|
+
/** @description Refused: credits_exhausted. */
|
|
28943
|
+
402: {
|
|
28944
|
+
headers: {
|
|
28945
|
+
[name: string]: unknown;
|
|
28946
|
+
};
|
|
28947
|
+
content: {
|
|
28948
|
+
"application/json": components["schemas"]["OperationError"];
|
|
28949
|
+
};
|
|
28950
|
+
};
|
|
28951
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
28952
|
+
403: {
|
|
28953
|
+
headers: {
|
|
28954
|
+
[name: string]: unknown;
|
|
28955
|
+
};
|
|
28956
|
+
content: {
|
|
28957
|
+
"application/json": components["schemas"]["OperationError"];
|
|
28958
|
+
};
|
|
28959
|
+
};
|
|
28960
|
+
/** @description Refused: not_found. */
|
|
28961
|
+
404: {
|
|
28962
|
+
headers: {
|
|
28963
|
+
[name: string]: unknown;
|
|
28964
|
+
};
|
|
28965
|
+
content: {
|
|
28966
|
+
"application/json": components["schemas"]["OperationError"];
|
|
28967
|
+
};
|
|
28968
|
+
};
|
|
28969
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
28970
|
+
409: {
|
|
28971
|
+
headers: {
|
|
28972
|
+
[name: string]: unknown;
|
|
28973
|
+
};
|
|
28974
|
+
content: {
|
|
28975
|
+
"application/json": components["schemas"]["OperationError"];
|
|
28976
|
+
};
|
|
28977
|
+
};
|
|
28978
|
+
/** @description Refused: operation_retired. */
|
|
28979
|
+
410: {
|
|
28980
|
+
headers: {
|
|
28981
|
+
[name: string]: unknown;
|
|
28982
|
+
};
|
|
28983
|
+
content: {
|
|
28984
|
+
"application/json": components["schemas"]["OperationError"];
|
|
28985
|
+
};
|
|
28986
|
+
};
|
|
28987
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
28988
|
+
422: {
|
|
28989
|
+
headers: {
|
|
28990
|
+
[name: string]: unknown;
|
|
28991
|
+
};
|
|
28992
|
+
content: {
|
|
28993
|
+
"application/json": components["schemas"]["OperationError"];
|
|
28994
|
+
};
|
|
28995
|
+
};
|
|
28996
|
+
/** @description Refused: rate_limited. */
|
|
28997
|
+
429: {
|
|
28998
|
+
headers: {
|
|
28999
|
+
[name: string]: unknown;
|
|
29000
|
+
};
|
|
29001
|
+
content: {
|
|
29002
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29003
|
+
};
|
|
29004
|
+
};
|
|
29005
|
+
};
|
|
29006
|
+
};
|
|
29007
|
+
"ops.communication_teams.update": {
|
|
29008
|
+
parameters: {
|
|
29009
|
+
query?: never;
|
|
29010
|
+
header?: {
|
|
29011
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
29012
|
+
"Idempotency-Key"?: string;
|
|
29013
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
29014
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
29015
|
+
};
|
|
29016
|
+
path?: never;
|
|
29017
|
+
cookie?: never;
|
|
29018
|
+
};
|
|
29019
|
+
requestBody?: {
|
|
29020
|
+
content: {
|
|
29021
|
+
/**
|
|
29022
|
+
* @example {
|
|
29023
|
+
* "team_key": "receivables",
|
|
29024
|
+
* "name": "Billing",
|
|
29025
|
+
* "from_name": "Team Ops Billing",
|
|
29026
|
+
* "filing_copy_emails": [
|
|
29027
|
+
* "AP@team-ops.test"
|
|
29028
|
+
* ],
|
|
29029
|
+
* "sent_mail_alerts": "chosen",
|
|
29030
|
+
* "sent_mail_alert_people": [
|
|
29031
|
+
* {
|
|
29032
|
+
* "type": "user",
|
|
29033
|
+
* "user_id": 2
|
|
29034
|
+
* }
|
|
29035
|
+
* ]
|
|
29036
|
+
* }
|
|
29037
|
+
*/
|
|
29038
|
+
"application/json": {
|
|
29039
|
+
/** @description The team (from communication_teams.list) */
|
|
29040
|
+
team_key: string;
|
|
29041
|
+
/** @description New team name */
|
|
29042
|
+
name?: string;
|
|
29043
|
+
/** @description The name customers see on mail from this team; empty uses "{team} @ {company}" */
|
|
29044
|
+
from_name?: string | null;
|
|
29045
|
+
/** @description Addresses that get a filing copy of the team's Axivoy mail (max 10); only on teams that support it */
|
|
29046
|
+
filing_copy_emails?: string[] | null;
|
|
29047
|
+
/**
|
|
29048
|
+
* @description Who gets an alert when Axivoy sends mail from this team: nobody, people with Email on, or the chosen people
|
|
29049
|
+
* @enum {string}
|
|
29050
|
+
*/
|
|
29051
|
+
sent_mail_alerts?: "off" | "email" | "chosen";
|
|
29052
|
+
/** @description When sent_mail_alerts is chosen: {type: role or user, role, user_id} */
|
|
29053
|
+
sent_mail_alert_people?: {
|
|
29054
|
+
/**
|
|
29055
|
+
* @description role or user
|
|
29056
|
+
* @enum {string}
|
|
29057
|
+
*/
|
|
29058
|
+
type: "role" | "user";
|
|
29059
|
+
/** @description The role name when type is role */
|
|
29060
|
+
role?: string | null;
|
|
29061
|
+
/** @description The person when type is user */
|
|
29062
|
+
user_id?: number | null;
|
|
29063
|
+
}[] | null;
|
|
29064
|
+
/** @description Another team's key to use its people (one hop); empty stops sharing */
|
|
29065
|
+
shares_people_with?: string | null;
|
|
29066
|
+
};
|
|
29067
|
+
};
|
|
29068
|
+
};
|
|
29069
|
+
responses: {
|
|
29070
|
+
/** @description The operation ran. */
|
|
29071
|
+
200: {
|
|
29072
|
+
headers: {
|
|
29073
|
+
[name: string]: unknown;
|
|
29074
|
+
};
|
|
29075
|
+
content: {
|
|
29076
|
+
/**
|
|
29077
|
+
* @example {
|
|
29078
|
+
* "result": {
|
|
29079
|
+
* "team_key": "receivables",
|
|
29080
|
+
* "readiness": {
|
|
29081
|
+
* "state": "ready",
|
|
29082
|
+
* "label": "Ready",
|
|
29083
|
+
* "tone": "success"
|
|
29084
|
+
* },
|
|
29085
|
+
* "message": "Billing saved."
|
|
29086
|
+
* }
|
|
29087
|
+
* }
|
|
29088
|
+
*/
|
|
29089
|
+
"application/json": {
|
|
29090
|
+
result: {
|
|
29091
|
+
/** @description The team */
|
|
29092
|
+
team_key: string;
|
|
29093
|
+
/** @description {state, label, tone} after the change */
|
|
29094
|
+
readiness: Record<string, never>;
|
|
29095
|
+
/** @description What happened, in the operator's words */
|
|
29096
|
+
message: string;
|
|
29097
|
+
};
|
|
29098
|
+
};
|
|
29099
|
+
};
|
|
29100
|
+
};
|
|
29101
|
+
202: components["responses"]["Proposal"];
|
|
29102
|
+
/** @description Refused: credits_exhausted. */
|
|
29103
|
+
402: {
|
|
29104
|
+
headers: {
|
|
29105
|
+
[name: string]: unknown;
|
|
29106
|
+
};
|
|
29107
|
+
content: {
|
|
29108
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29109
|
+
};
|
|
29110
|
+
};
|
|
29111
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
29112
|
+
403: {
|
|
29113
|
+
headers: {
|
|
29114
|
+
[name: string]: unknown;
|
|
29115
|
+
};
|
|
29116
|
+
content: {
|
|
29117
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29118
|
+
};
|
|
29119
|
+
};
|
|
29120
|
+
/** @description Refused: not_found. */
|
|
29121
|
+
404: {
|
|
29122
|
+
headers: {
|
|
29123
|
+
[name: string]: unknown;
|
|
29124
|
+
};
|
|
29125
|
+
content: {
|
|
29126
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29127
|
+
};
|
|
29128
|
+
};
|
|
29129
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
29130
|
+
409: {
|
|
29131
|
+
headers: {
|
|
29132
|
+
[name: string]: unknown;
|
|
29133
|
+
};
|
|
29134
|
+
content: {
|
|
29135
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29136
|
+
};
|
|
29137
|
+
};
|
|
29138
|
+
/** @description Refused: operation_retired. */
|
|
29139
|
+
410: {
|
|
29140
|
+
headers: {
|
|
29141
|
+
[name: string]: unknown;
|
|
29142
|
+
};
|
|
29143
|
+
content: {
|
|
29144
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29145
|
+
};
|
|
29146
|
+
};
|
|
29147
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
29148
|
+
422: {
|
|
29149
|
+
headers: {
|
|
29150
|
+
[name: string]: unknown;
|
|
29151
|
+
};
|
|
29152
|
+
content: {
|
|
29153
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29154
|
+
};
|
|
29155
|
+
};
|
|
29156
|
+
/** @description Refused: rate_limited. */
|
|
29157
|
+
429: {
|
|
29158
|
+
headers: {
|
|
29159
|
+
[name: string]: unknown;
|
|
29160
|
+
};
|
|
29161
|
+
content: {
|
|
29162
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29163
|
+
};
|
|
29164
|
+
};
|
|
29165
|
+
};
|
|
29166
|
+
};
|
|
29167
|
+
"ops.company_documents.broker_shareable": {
|
|
29168
|
+
parameters: {
|
|
29169
|
+
query?: never;
|
|
29170
|
+
header?: {
|
|
29171
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
29172
|
+
"Idempotency-Key"?: string;
|
|
29173
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
29174
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
29175
|
+
};
|
|
29176
|
+
path?: never;
|
|
29177
|
+
cookie?: never;
|
|
29178
|
+
};
|
|
29179
|
+
requestBody?: {
|
|
29180
|
+
content: {
|
|
29181
|
+
/**
|
|
29182
|
+
* @example {
|
|
29183
|
+
* "document_id": 1,
|
|
29184
|
+
* "broker_shareable": false
|
|
29185
|
+
* }
|
|
29186
|
+
*/
|
|
29187
|
+
"application/json": {
|
|
29188
|
+
/** @description The company document */
|
|
29189
|
+
document_id: number;
|
|
29190
|
+
/** @description Whether brokers may see the document */
|
|
29191
|
+
broker_shareable: boolean | string | number | null;
|
|
29192
|
+
};
|
|
29193
|
+
};
|
|
29194
|
+
};
|
|
29195
|
+
responses: {
|
|
29196
|
+
/** @description The operation ran. */
|
|
29197
|
+
200: {
|
|
29198
|
+
headers: {
|
|
29199
|
+
[name: string]: unknown;
|
|
29200
|
+
};
|
|
29201
|
+
content: {
|
|
29202
|
+
/**
|
|
29203
|
+
* @example {
|
|
29204
|
+
* "result": {
|
|
29205
|
+
* "message": "No longer shared with brokers.",
|
|
29206
|
+
* "broker_shareable": false
|
|
29207
|
+
* }
|
|
29208
|
+
* }
|
|
29209
|
+
*/
|
|
29210
|
+
"application/json": {
|
|
29211
|
+
result: {
|
|
29212
|
+
/** @description What happened, in the operator's words */
|
|
29213
|
+
message: string;
|
|
29214
|
+
/** @description Whether brokers now see the document */
|
|
29215
|
+
broker_shareable: boolean;
|
|
29216
|
+
};
|
|
29217
|
+
};
|
|
29218
|
+
};
|
|
29219
|
+
};
|
|
29220
|
+
202: components["responses"]["Proposal"];
|
|
29221
|
+
/** @description Refused: credits_exhausted. */
|
|
29222
|
+
402: {
|
|
29223
|
+
headers: {
|
|
29224
|
+
[name: string]: unknown;
|
|
29225
|
+
};
|
|
29226
|
+
content: {
|
|
29227
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29228
|
+
};
|
|
29229
|
+
};
|
|
29230
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
29231
|
+
403: {
|
|
29232
|
+
headers: {
|
|
29233
|
+
[name: string]: unknown;
|
|
29234
|
+
};
|
|
29235
|
+
content: {
|
|
29236
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29237
|
+
};
|
|
29238
|
+
};
|
|
29239
|
+
/** @description Refused: not_found. */
|
|
29240
|
+
404: {
|
|
29241
|
+
headers: {
|
|
29242
|
+
[name: string]: unknown;
|
|
29243
|
+
};
|
|
29244
|
+
content: {
|
|
29245
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29246
|
+
};
|
|
29247
|
+
};
|
|
29248
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
29249
|
+
409: {
|
|
29250
|
+
headers: {
|
|
29251
|
+
[name: string]: unknown;
|
|
29252
|
+
};
|
|
29253
|
+
content: {
|
|
29254
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29255
|
+
};
|
|
29256
|
+
};
|
|
29257
|
+
/** @description Refused: operation_retired. */
|
|
29258
|
+
410: {
|
|
29259
|
+
headers: {
|
|
29260
|
+
[name: string]: unknown;
|
|
29261
|
+
};
|
|
29262
|
+
content: {
|
|
29263
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29264
|
+
};
|
|
29265
|
+
};
|
|
29266
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
29267
|
+
422: {
|
|
29268
|
+
headers: {
|
|
29269
|
+
[name: string]: unknown;
|
|
29270
|
+
};
|
|
29271
|
+
content: {
|
|
29272
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29273
|
+
};
|
|
29274
|
+
};
|
|
29275
|
+
/** @description Refused: rate_limited. */
|
|
29276
|
+
429: {
|
|
29277
|
+
headers: {
|
|
29278
|
+
[name: string]: unknown;
|
|
29279
|
+
};
|
|
29280
|
+
content: {
|
|
29281
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29282
|
+
};
|
|
29283
|
+
};
|
|
29284
|
+
};
|
|
29285
|
+
};
|
|
29286
|
+
"ops.company_documents.create": {
|
|
29287
|
+
parameters: {
|
|
29288
|
+
query?: never;
|
|
29289
|
+
header?: {
|
|
29290
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
29291
|
+
"Idempotency-Key"?: string;
|
|
29292
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
29293
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
29294
|
+
};
|
|
29295
|
+
path?: never;
|
|
29296
|
+
cookie?: never;
|
|
29297
|
+
};
|
|
29298
|
+
requestBody?: {
|
|
29299
|
+
content: {
|
|
29300
|
+
/**
|
|
29301
|
+
* @example {
|
|
29302
|
+
* "kind": "certificate_of_insurance",
|
|
29303
|
+
* "title": "COI 2027",
|
|
29304
|
+
* "file": "700f09e1-62f2-4c3b-83fd-47384a44e9b4",
|
|
29305
|
+
* "expires_at": "2027-10-01",
|
|
29306
|
+
* "broker_shareable": true
|
|
29307
|
+
* }
|
|
29308
|
+
*/
|
|
29309
|
+
"application/json": {
|
|
29310
|
+
/** @description Document kind, from the workspace's company document kinds */
|
|
29311
|
+
kind: string | null;
|
|
29312
|
+
/** @description Title, max 255 */
|
|
29313
|
+
title: string | null;
|
|
29314
|
+
/** @description The document file */
|
|
29315
|
+
file: string | null;
|
|
29316
|
+
/** @description Expiry date, YYYY-MM-DD */
|
|
29317
|
+
expires_at?: string | null;
|
|
29318
|
+
/** @description Notes, max 2000 */
|
|
29319
|
+
notes?: string | null;
|
|
29320
|
+
/** @description Brokers may see it in the carrier packet */
|
|
29321
|
+
broker_shareable?: boolean | string | number | null;
|
|
29322
|
+
/** @description The open document request this upload answers, if any */
|
|
29323
|
+
request_id?: number | string | null;
|
|
29324
|
+
/** @description The insurance policy this upload proves, if any */
|
|
29325
|
+
policy_id?: number | string | null;
|
|
29326
|
+
};
|
|
29327
|
+
};
|
|
29328
|
+
};
|
|
29329
|
+
responses: {
|
|
29330
|
+
/** @description The operation ran. */
|
|
29331
|
+
200: {
|
|
29332
|
+
headers: {
|
|
29333
|
+
[name: string]: unknown;
|
|
29334
|
+
};
|
|
29335
|
+
content: {
|
|
29336
|
+
/**
|
|
29337
|
+
* @example {
|
|
29338
|
+
* "result": {
|
|
29339
|
+
* "message": "Document uploaded.",
|
|
29340
|
+
* "document_id": 2,
|
|
29341
|
+
* "kind_label": "Certificate of insurance",
|
|
29342
|
+
* "review_url": "http://localhost/admin/compliance/review/documents/company/2",
|
|
29343
|
+
* "ai_queued": true,
|
|
29344
|
+
* "sides": 1,
|
|
29345
|
+
* "linked_to_policy": false
|
|
29346
|
+
* }
|
|
29347
|
+
* }
|
|
29348
|
+
*/
|
|
29349
|
+
"application/json": {
|
|
29350
|
+
result: {
|
|
29351
|
+
/** @description What happened, in the operator's words */
|
|
29352
|
+
message: string;
|
|
29353
|
+
/** @description The new document */
|
|
29354
|
+
document_id: number;
|
|
29355
|
+
/** @description The document kind as people say it */
|
|
29356
|
+
kind_label: string;
|
|
29357
|
+
/** @description Where to review what AI read from it, for people who review documents */
|
|
29358
|
+
review_url?: string | null;
|
|
29359
|
+
/** @description AI is reading the document */
|
|
29360
|
+
ai_queued: boolean;
|
|
29361
|
+
/** @description Files on the document (two for a two-sided card) */
|
|
29362
|
+
sides: number;
|
|
29363
|
+
/** @description The upload was linked to an insurance policy */
|
|
29364
|
+
linked_to_policy: boolean;
|
|
29365
|
+
};
|
|
29366
|
+
};
|
|
29367
|
+
};
|
|
29368
|
+
};
|
|
29369
|
+
202: components["responses"]["Proposal"];
|
|
29370
|
+
/** @description Refused: credits_exhausted. */
|
|
29371
|
+
402: {
|
|
29372
|
+
headers: {
|
|
29373
|
+
[name: string]: unknown;
|
|
29374
|
+
};
|
|
29375
|
+
content: {
|
|
29376
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29377
|
+
};
|
|
29378
|
+
};
|
|
29379
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
29380
|
+
403: {
|
|
29381
|
+
headers: {
|
|
29382
|
+
[name: string]: unknown;
|
|
29383
|
+
};
|
|
29384
|
+
content: {
|
|
29385
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29386
|
+
};
|
|
29387
|
+
};
|
|
29388
|
+
/** @description Refused: not_found. */
|
|
29389
|
+
404: {
|
|
29390
|
+
headers: {
|
|
29391
|
+
[name: string]: unknown;
|
|
29392
|
+
};
|
|
29393
|
+
content: {
|
|
29394
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29395
|
+
};
|
|
29396
|
+
};
|
|
29397
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
29398
|
+
409: {
|
|
29399
|
+
headers: {
|
|
29400
|
+
[name: string]: unknown;
|
|
29401
|
+
};
|
|
29402
|
+
content: {
|
|
29403
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29404
|
+
};
|
|
29405
|
+
};
|
|
29406
|
+
/** @description Refused: operation_retired. */
|
|
29407
|
+
410: {
|
|
29408
|
+
headers: {
|
|
29409
|
+
[name: string]: unknown;
|
|
29410
|
+
};
|
|
29411
|
+
content: {
|
|
29412
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29413
|
+
};
|
|
29414
|
+
};
|
|
29415
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
29416
|
+
422: {
|
|
29417
|
+
headers: {
|
|
29418
|
+
[name: string]: unknown;
|
|
29419
|
+
};
|
|
29420
|
+
content: {
|
|
29421
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29422
|
+
};
|
|
29423
|
+
};
|
|
29424
|
+
/** @description Refused: rate_limited. */
|
|
29425
|
+
429: {
|
|
29426
|
+
headers: {
|
|
29427
|
+
[name: string]: unknown;
|
|
29428
|
+
};
|
|
29429
|
+
content: {
|
|
29430
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29431
|
+
};
|
|
29432
|
+
};
|
|
29433
|
+
};
|
|
29434
|
+
};
|
|
29435
|
+
"ops.company_documents.download": {
|
|
29436
|
+
parameters: {
|
|
29437
|
+
query?: never;
|
|
29438
|
+
header?: {
|
|
29439
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
29440
|
+
"Idempotency-Key"?: string;
|
|
29441
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
29442
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
29443
|
+
};
|
|
29444
|
+
path?: never;
|
|
29445
|
+
cookie?: never;
|
|
29446
|
+
};
|
|
29447
|
+
requestBody?: {
|
|
29448
|
+
content: {
|
|
29449
|
+
/**
|
|
29450
|
+
* @example {
|
|
29451
|
+
* "document_id": 1
|
|
29452
|
+
* }
|
|
29453
|
+
*/
|
|
29454
|
+
"application/json": {
|
|
29455
|
+
/** @description The company document. */
|
|
29456
|
+
document_id: number;
|
|
29457
|
+
};
|
|
29458
|
+
};
|
|
29459
|
+
};
|
|
29460
|
+
responses: {
|
|
29461
|
+
/** @description The operation ran. */
|
|
29462
|
+
200: {
|
|
29463
|
+
headers: {
|
|
29464
|
+
[name: string]: unknown;
|
|
29465
|
+
};
|
|
29466
|
+
content: {
|
|
29467
|
+
/**
|
|
29468
|
+
* @example {
|
|
29469
|
+
* "result": {
|
|
29470
|
+
* "id": 1,
|
|
29471
|
+
* "kind": "certificate_of_insurance",
|
|
29472
|
+
* "file_name": "coi.pdf",
|
|
29473
|
+
* "mime_type": "application/pdf",
|
|
29474
|
+
* "file_url": "http://localhost/api/v1/files/ZXlKcGRpSTZJbnBLVFhKUVZHRXJTVVZzVW1kc1dFZEVhaXR1YjFFOVBTSXNJblpoYkhWbElqb2lMMU5EYURCclpHZHJOVmh0TTBKMFRYaHBjSGxuUmpsQmEyaEtUVzVGVG1VMFdtYzBOblJMTVVOYU9XWndka0pPZEZac2VFZDBjbFZJTUhRelUwbHlZalF2UVdWUllWZFljSHB0SzNOR2RtTkRWMEpsYzJaVk1EZzFNMjVJWVZaSVlpdGxlRkp3Y2s5NE1UZ3piMGN2UkhScVoxaHVSV2R4TWtOdldtWldaMjAxYm5GV2FqWkVXbWxuYkV0VkwxUjVXaTlKY25wc0wwSkhjazk2U1cwNWRGUkxNblpVWTJ0a1lYSnhZbXh4TW1jeGFGaDNVbWRCWVVoaWEySmxNWEF3SWl3aWJXRmpJam9pTW1Kak5UTmxOR0l6TXpRNE1ETmhZek15TVRSbU5tRXhNalJtWWpRek1HVXpORFl5WWpVMFptUTVNREk0WW1ObU5qYzFOVEZsWVRsallqTTRZek0xTWlJc0luUmhaeUk2SWlKOQ?expires=1792077000&signature=9858079ca66b009c657d531861697194c13f131d814144b4b6bf553d2e3ba0ff",
|
|
29475
|
+
* "expires_at": "2026-10-15T15:10:00Z"
|
|
29476
|
+
* }
|
|
29477
|
+
* }
|
|
29478
|
+
*/
|
|
29479
|
+
"application/json": {
|
|
29480
|
+
result: {
|
|
29481
|
+
/** @description The document id */
|
|
29482
|
+
id: number;
|
|
29483
|
+
/** @description Document kind */
|
|
29484
|
+
kind: string;
|
|
29485
|
+
/** @description The file name as uploaded */
|
|
29486
|
+
file_name: string;
|
|
29487
|
+
/** @description File type */
|
|
29488
|
+
mime_type: string;
|
|
29489
|
+
/** @description Signed download link */
|
|
29490
|
+
file_url: string;
|
|
29491
|
+
/**
|
|
29492
|
+
* Format: date-time
|
|
29493
|
+
* @description When the link stops working
|
|
29494
|
+
*/
|
|
29495
|
+
expires_at: string;
|
|
29496
|
+
};
|
|
29497
|
+
};
|
|
29498
|
+
};
|
|
29499
|
+
};
|
|
29500
|
+
202: components["responses"]["Proposal"];
|
|
29501
|
+
/** @description Refused: credits_exhausted. */
|
|
29502
|
+
402: {
|
|
29503
|
+
headers: {
|
|
29504
|
+
[name: string]: unknown;
|
|
29505
|
+
};
|
|
29506
|
+
content: {
|
|
29507
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29508
|
+
};
|
|
29509
|
+
};
|
|
29510
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
29511
|
+
403: {
|
|
29512
|
+
headers: {
|
|
29513
|
+
[name: string]: unknown;
|
|
29514
|
+
};
|
|
29515
|
+
content: {
|
|
29516
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29517
|
+
};
|
|
29518
|
+
};
|
|
29519
|
+
/** @description Refused: not_found. */
|
|
29520
|
+
404: {
|
|
29521
|
+
headers: {
|
|
29522
|
+
[name: string]: unknown;
|
|
29523
|
+
};
|
|
29524
|
+
content: {
|
|
29525
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29526
|
+
};
|
|
29527
|
+
};
|
|
29528
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
29529
|
+
409: {
|
|
29530
|
+
headers: {
|
|
29531
|
+
[name: string]: unknown;
|
|
29532
|
+
};
|
|
29533
|
+
content: {
|
|
29534
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29535
|
+
};
|
|
29536
|
+
};
|
|
29537
|
+
/** @description Refused: operation_retired. */
|
|
29538
|
+
410: {
|
|
29539
|
+
headers: {
|
|
29540
|
+
[name: string]: unknown;
|
|
29541
|
+
};
|
|
29542
|
+
content: {
|
|
29543
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29544
|
+
};
|
|
29545
|
+
};
|
|
29546
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
29547
|
+
422: {
|
|
29548
|
+
headers: {
|
|
29549
|
+
[name: string]: unknown;
|
|
29550
|
+
};
|
|
29551
|
+
content: {
|
|
29552
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29553
|
+
};
|
|
29554
|
+
};
|
|
29555
|
+
/** @description Refused: rate_limited. */
|
|
29556
|
+
429: {
|
|
29557
|
+
headers: {
|
|
29558
|
+
[name: string]: unknown;
|
|
29559
|
+
};
|
|
29560
|
+
content: {
|
|
29561
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29562
|
+
};
|
|
29563
|
+
};
|
|
29564
|
+
};
|
|
29565
|
+
};
|
|
29566
|
+
"ops.compensation_plans.add_missing_expected": {
|
|
29567
|
+
parameters: {
|
|
29568
|
+
query?: never;
|
|
29569
|
+
header?: {
|
|
29570
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
29571
|
+
"Idempotency-Key"?: string;
|
|
29572
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
29573
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
29574
|
+
};
|
|
29575
|
+
path?: never;
|
|
29576
|
+
cookie?: never;
|
|
29577
|
+
};
|
|
29578
|
+
requestBody?: {
|
|
29579
|
+
content: {
|
|
29580
|
+
/**
|
|
29581
|
+
* @example {
|
|
29582
|
+
* "plan_id": 5
|
|
29583
|
+
* }
|
|
29584
|
+
*/
|
|
29585
|
+
"application/json": {
|
|
29586
|
+
/** @description The pay plan template id (compensation_plans.list) */
|
|
29587
|
+
plan_id: number;
|
|
29588
|
+
/** @description Add only this pay rule type */
|
|
29589
|
+
component_type?: string | null;
|
|
29590
|
+
/** @description Accepted for older forms; plan versions carry dates */
|
|
29591
|
+
effective_from?: string | null;
|
|
29592
|
+
};
|
|
29593
|
+
};
|
|
29594
|
+
};
|
|
29595
|
+
responses: {
|
|
29596
|
+
/** @description The operation ran. */
|
|
29597
|
+
200: {
|
|
29598
|
+
headers: {
|
|
29599
|
+
[name: string]: unknown;
|
|
29600
|
+
};
|
|
29601
|
+
content: {
|
|
29602
|
+
/**
|
|
29603
|
+
* @example {
|
|
29604
|
+
* "result": {
|
|
29605
|
+
* "id": 5,
|
|
29606
|
+
* "message": "Missing expected pay added.",
|
|
29607
|
+
* "created_count": 1
|
|
29608
|
+
* }
|
|
29609
|
+
* }
|
|
29610
|
+
*/
|
|
29611
|
+
"application/json": {
|
|
29612
|
+
result: {
|
|
29613
|
+
/** @description The pay plan id */
|
|
29614
|
+
id?: number | null;
|
|
29615
|
+
/** @description What happened, in the operator's words */
|
|
29616
|
+
message: string;
|
|
29617
|
+
/** @description How many pay items were added */
|
|
29618
|
+
created_count: number;
|
|
29619
|
+
};
|
|
29620
|
+
};
|
|
29621
|
+
};
|
|
29622
|
+
};
|
|
29623
|
+
202: components["responses"]["Proposal"];
|
|
29624
|
+
/** @description Refused: credits_exhausted. */
|
|
29625
|
+
402: {
|
|
29626
|
+
headers: {
|
|
29627
|
+
[name: string]: unknown;
|
|
29628
|
+
};
|
|
29629
|
+
content: {
|
|
29630
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29631
|
+
};
|
|
29632
|
+
};
|
|
29633
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
29634
|
+
403: {
|
|
29635
|
+
headers: {
|
|
29636
|
+
[name: string]: unknown;
|
|
29637
|
+
};
|
|
29638
|
+
content: {
|
|
29639
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29640
|
+
};
|
|
29641
|
+
};
|
|
29642
|
+
/** @description Refused: not_found. */
|
|
29643
|
+
404: {
|
|
29644
|
+
headers: {
|
|
29645
|
+
[name: string]: unknown;
|
|
29646
|
+
};
|
|
29647
|
+
content: {
|
|
29648
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29649
|
+
};
|
|
29650
|
+
};
|
|
29651
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
29652
|
+
409: {
|
|
29653
|
+
headers: {
|
|
29654
|
+
[name: string]: unknown;
|
|
29655
|
+
};
|
|
29656
|
+
content: {
|
|
29657
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29658
|
+
};
|
|
29659
|
+
};
|
|
29660
|
+
/** @description Refused: operation_retired. */
|
|
29661
|
+
410: {
|
|
29662
|
+
headers: {
|
|
29663
|
+
[name: string]: unknown;
|
|
29664
|
+
};
|
|
29665
|
+
content: {
|
|
29666
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29667
|
+
};
|
|
29668
|
+
};
|
|
29669
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
29670
|
+
422: {
|
|
29671
|
+
headers: {
|
|
29672
|
+
[name: string]: unknown;
|
|
29673
|
+
};
|
|
29674
|
+
content: {
|
|
29675
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29676
|
+
};
|
|
29677
|
+
};
|
|
29678
|
+
/** @description Refused: rate_limited. */
|
|
29679
|
+
429: {
|
|
29680
|
+
headers: {
|
|
29681
|
+
[name: string]: unknown;
|
|
29682
|
+
};
|
|
29683
|
+
content: {
|
|
29684
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29685
|
+
};
|
|
29686
|
+
};
|
|
29687
|
+
};
|
|
29688
|
+
};
|
|
29689
|
+
"ops.compensation_plans.apply_standard_setup": {
|
|
29690
|
+
parameters: {
|
|
29691
|
+
query?: never;
|
|
29692
|
+
header?: {
|
|
29693
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
29694
|
+
"Idempotency-Key"?: string;
|
|
29695
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
29696
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
29697
|
+
};
|
|
29698
|
+
path?: never;
|
|
29699
|
+
cookie?: never;
|
|
29700
|
+
};
|
|
29701
|
+
requestBody?: {
|
|
29702
|
+
content: {
|
|
29703
|
+
/**
|
|
29704
|
+
* @example {
|
|
29705
|
+
* "plan_id": 5,
|
|
29706
|
+
* "component_types": [
|
|
29707
|
+
* "mileage_pay",
|
|
29708
|
+
* "minimum_load_pay"
|
|
29709
|
+
* ]
|
|
29710
|
+
* }
|
|
29711
|
+
*/
|
|
29712
|
+
"application/json": {
|
|
29713
|
+
/** @description The pay plan template id (compensation_plans.list) */
|
|
29714
|
+
plan_id: number;
|
|
29715
|
+
/** @description Pay rule types to add, at least one */
|
|
29716
|
+
component_types: (string | number)[] | null;
|
|
29717
|
+
};
|
|
29718
|
+
};
|
|
29719
|
+
};
|
|
29720
|
+
responses: {
|
|
29721
|
+
/** @description The operation ran. */
|
|
29722
|
+
200: {
|
|
29723
|
+
headers: {
|
|
29724
|
+
[name: string]: unknown;
|
|
29725
|
+
};
|
|
29726
|
+
content: {
|
|
29727
|
+
/**
|
|
29728
|
+
* @example {
|
|
29729
|
+
* "result": {
|
|
29730
|
+
* "id": 5,
|
|
29731
|
+
* "message": "Standard setup applied.",
|
|
29732
|
+
* "created_count": 2
|
|
29733
|
+
* }
|
|
29734
|
+
* }
|
|
29735
|
+
*/
|
|
29736
|
+
"application/json": {
|
|
29737
|
+
result: {
|
|
29738
|
+
/** @description The pay plan id */
|
|
29739
|
+
id?: number | null;
|
|
29740
|
+
/** @description What happened, in the operator's words */
|
|
29741
|
+
message: string;
|
|
29742
|
+
/** @description How many pay items were added */
|
|
29743
|
+
created_count: number;
|
|
29744
|
+
};
|
|
29745
|
+
};
|
|
29746
|
+
};
|
|
29747
|
+
};
|
|
29748
|
+
202: components["responses"]["Proposal"];
|
|
29749
|
+
/** @description Refused: credits_exhausted. */
|
|
29750
|
+
402: {
|
|
29751
|
+
headers: {
|
|
29752
|
+
[name: string]: unknown;
|
|
29753
|
+
};
|
|
29754
|
+
content: {
|
|
29755
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29756
|
+
};
|
|
29757
|
+
};
|
|
29758
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
29759
|
+
403: {
|
|
29760
|
+
headers: {
|
|
29761
|
+
[name: string]: unknown;
|
|
29762
|
+
};
|
|
29763
|
+
content: {
|
|
29764
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29765
|
+
};
|
|
29766
|
+
};
|
|
29767
|
+
/** @description Refused: not_found. */
|
|
29768
|
+
404: {
|
|
29769
|
+
headers: {
|
|
29770
|
+
[name: string]: unknown;
|
|
29771
|
+
};
|
|
29772
|
+
content: {
|
|
29773
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29774
|
+
};
|
|
29775
|
+
};
|
|
29776
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
29777
|
+
409: {
|
|
29778
|
+
headers: {
|
|
29779
|
+
[name: string]: unknown;
|
|
29780
|
+
};
|
|
29781
|
+
content: {
|
|
29782
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29783
|
+
};
|
|
29784
|
+
};
|
|
29785
|
+
/** @description Refused: operation_retired. */
|
|
29786
|
+
410: {
|
|
29787
|
+
headers: {
|
|
29788
|
+
[name: string]: unknown;
|
|
29789
|
+
};
|
|
29790
|
+
content: {
|
|
29791
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29792
|
+
};
|
|
29793
|
+
};
|
|
29794
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
29795
|
+
422: {
|
|
29796
|
+
headers: {
|
|
29797
|
+
[name: string]: unknown;
|
|
29798
|
+
};
|
|
29799
|
+
content: {
|
|
29800
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29801
|
+
};
|
|
29802
|
+
};
|
|
29803
|
+
/** @description Refused: rate_limited. */
|
|
29804
|
+
429: {
|
|
29805
|
+
headers: {
|
|
29806
|
+
[name: string]: unknown;
|
|
29807
|
+
};
|
|
29808
|
+
content: {
|
|
29809
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29810
|
+
};
|
|
29811
|
+
};
|
|
29812
|
+
};
|
|
29813
|
+
};
|
|
29814
|
+
"ops.compensation_plans.assignments.create": {
|
|
29815
|
+
parameters: {
|
|
29816
|
+
query?: never;
|
|
29817
|
+
header?: {
|
|
29818
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
29819
|
+
"Idempotency-Key"?: string;
|
|
29820
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
29821
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
29822
|
+
};
|
|
29823
|
+
path?: never;
|
|
29824
|
+
cookie?: never;
|
|
29825
|
+
};
|
|
29826
|
+
requestBody?: {
|
|
29827
|
+
content: {
|
|
29828
|
+
/**
|
|
29829
|
+
* @example {
|
|
29830
|
+
* "plan_id": 5,
|
|
29831
|
+
* "user_ids": [
|
|
29832
|
+
* 3
|
|
29833
|
+
* ],
|
|
29834
|
+
* "effective_from": "2026-07-01"
|
|
29835
|
+
* }
|
|
29836
|
+
*/
|
|
29837
|
+
"application/json": {
|
|
29838
|
+
/** @description The pay plan template id (compensation_plans.list) */
|
|
29839
|
+
plan_id: number;
|
|
29840
|
+
/** @description Driver user ids, at least one */
|
|
29841
|
+
user_ids: (number | string)[] | null;
|
|
29842
|
+
/** @description First day on the plan, YYYY-MM-DD */
|
|
29843
|
+
effective_from: string | null;
|
|
29844
|
+
/** @description Confirms a move that leaves a coverage gap */
|
|
29845
|
+
confirm_assignment_gap?: boolean | string | number | null;
|
|
29846
|
+
};
|
|
29847
|
+
};
|
|
29848
|
+
};
|
|
29849
|
+
responses: {
|
|
29850
|
+
/** @description The operation ran. */
|
|
29851
|
+
200: {
|
|
29852
|
+
headers: {
|
|
29853
|
+
[name: string]: unknown;
|
|
29854
|
+
};
|
|
29855
|
+
content: {
|
|
29856
|
+
/**
|
|
29857
|
+
* @example {
|
|
29858
|
+
* "result": {
|
|
29859
|
+
* "id": 5,
|
|
29860
|
+
* "message": "Driver assignment saved.",
|
|
29861
|
+
* "assigned_count": 1
|
|
29862
|
+
* }
|
|
29863
|
+
* }
|
|
29864
|
+
*/
|
|
29865
|
+
"application/json": {
|
|
29866
|
+
result: {
|
|
29867
|
+
/** @description The pay plan id */
|
|
29868
|
+
id?: number | null;
|
|
29869
|
+
/** @description What happened, in the operator's words */
|
|
29870
|
+
message: string;
|
|
29871
|
+
/** @description How many drivers were assigned */
|
|
29872
|
+
assigned_count: number;
|
|
29873
|
+
};
|
|
29874
|
+
};
|
|
29875
|
+
};
|
|
29876
|
+
};
|
|
29877
|
+
202: components["responses"]["Proposal"];
|
|
29878
|
+
/** @description Refused: credits_exhausted. */
|
|
29879
|
+
402: {
|
|
29880
|
+
headers: {
|
|
29881
|
+
[name: string]: unknown;
|
|
29882
|
+
};
|
|
29883
|
+
content: {
|
|
29884
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29885
|
+
};
|
|
29886
|
+
};
|
|
29887
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
29888
|
+
403: {
|
|
29889
|
+
headers: {
|
|
29890
|
+
[name: string]: unknown;
|
|
29891
|
+
};
|
|
29892
|
+
content: {
|
|
29893
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29894
|
+
};
|
|
29895
|
+
};
|
|
29896
|
+
/** @description Refused: not_found. */
|
|
29897
|
+
404: {
|
|
29898
|
+
headers: {
|
|
29899
|
+
[name: string]: unknown;
|
|
29900
|
+
};
|
|
29901
|
+
content: {
|
|
29902
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29903
|
+
};
|
|
29904
|
+
};
|
|
29905
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
29906
|
+
409: {
|
|
29907
|
+
headers: {
|
|
29908
|
+
[name: string]: unknown;
|
|
29909
|
+
};
|
|
29910
|
+
content: {
|
|
29911
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29912
|
+
};
|
|
29913
|
+
};
|
|
29914
|
+
/** @description Refused: operation_retired. */
|
|
29915
|
+
410: {
|
|
29916
|
+
headers: {
|
|
29917
|
+
[name: string]: unknown;
|
|
29918
|
+
};
|
|
29919
|
+
content: {
|
|
29920
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29921
|
+
};
|
|
29922
|
+
};
|
|
29923
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
29924
|
+
422: {
|
|
29925
|
+
headers: {
|
|
29926
|
+
[name: string]: unknown;
|
|
29927
|
+
};
|
|
29928
|
+
content: {
|
|
29929
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29930
|
+
};
|
|
29931
|
+
};
|
|
29932
|
+
/** @description Refused: rate_limited. */
|
|
29933
|
+
429: {
|
|
29934
|
+
headers: {
|
|
29935
|
+
[name: string]: unknown;
|
|
29936
|
+
};
|
|
29937
|
+
content: {
|
|
29938
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29939
|
+
};
|
|
29940
|
+
};
|
|
29941
|
+
};
|
|
29942
|
+
};
|
|
29943
|
+
"ops.compensation_plans.components.create": {
|
|
29944
|
+
parameters: {
|
|
29945
|
+
query?: never;
|
|
29946
|
+
header?: {
|
|
29947
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
29948
|
+
"Idempotency-Key"?: string;
|
|
29949
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
29950
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
29951
|
+
};
|
|
29952
|
+
path?: never;
|
|
29953
|
+
cookie?: never;
|
|
29954
|
+
};
|
|
29955
|
+
requestBody?: {
|
|
29956
|
+
content: {
|
|
29957
|
+
/**
|
|
29958
|
+
* @example {
|
|
29959
|
+
* "plan_id": 1,
|
|
29960
|
+
* "component_type": "tonu_pay",
|
|
29961
|
+
* "configuration": {
|
|
29962
|
+
* "amount": 150
|
|
29963
|
+
* }
|
|
29964
|
+
* }
|
|
29965
|
+
*/
|
|
29966
|
+
"application/json": {
|
|
29967
|
+
/** @description The pay plan template id (compensation_plans.list) */
|
|
29968
|
+
plan_id: number;
|
|
29969
|
+
/** @description Pay rule type: mileage_pay, minimum_load_pay, stop_pay, detention_pay, layover_pay, tonu_pay, flat_load_pay, revenue_percentage_pay, maintenance_shuttle_pay */
|
|
29970
|
+
component_type: string | null;
|
|
29971
|
+
/** @description Rates for the pay rule type: mileage pay takes rate_per_mile with basis and pay_empty_miles, or mileage_mode with loaded_rate_per_mile and empty_rate_per_mile; stop pay structure, included_stops and amount_per_stop; flat pays amount; revenue percentage percent and revenue_basis; detention structure with amount or free_hours and rate_per_hour; layover structure with amount, amount_per_day or first_day_amount and additional_day_amount */
|
|
29972
|
+
configuration?: {
|
|
29973
|
+
[key: string]: unknown;
|
|
29974
|
+
} | unknown[] | null;
|
|
29975
|
+
};
|
|
29976
|
+
};
|
|
29977
|
+
};
|
|
29978
|
+
responses: {
|
|
29979
|
+
/** @description The operation ran. */
|
|
29980
|
+
200: {
|
|
29981
|
+
headers: {
|
|
29982
|
+
[name: string]: unknown;
|
|
29983
|
+
};
|
|
29984
|
+
content: {
|
|
29985
|
+
/**
|
|
29986
|
+
* @example {
|
|
29987
|
+
* "result": {
|
|
29988
|
+
* "id": 3,
|
|
29989
|
+
* "message": "Pay item saved."
|
|
29990
|
+
* }
|
|
29991
|
+
* }
|
|
29992
|
+
*/
|
|
29993
|
+
"application/json": {
|
|
29994
|
+
result: {
|
|
29995
|
+
/** @description The pay rule id */
|
|
29996
|
+
id?: number | null;
|
|
29997
|
+
/** @description What happened, in the operator's words */
|
|
29998
|
+
message: string;
|
|
29999
|
+
};
|
|
30000
|
+
};
|
|
30001
|
+
};
|
|
30002
|
+
};
|
|
30003
|
+
202: components["responses"]["Proposal"];
|
|
30004
|
+
/** @description Refused: credits_exhausted. */
|
|
30005
|
+
402: {
|
|
30006
|
+
headers: {
|
|
30007
|
+
[name: string]: unknown;
|
|
30008
|
+
};
|
|
30009
|
+
content: {
|
|
30010
|
+
"application/json": components["schemas"]["OperationError"];
|
|
30011
|
+
};
|
|
30012
|
+
};
|
|
30013
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
30014
|
+
403: {
|
|
30015
|
+
headers: {
|
|
30016
|
+
[name: string]: unknown;
|
|
30017
|
+
};
|
|
30018
|
+
content: {
|
|
30019
|
+
"application/json": components["schemas"]["OperationError"];
|
|
30020
|
+
};
|
|
30021
|
+
};
|
|
30022
|
+
/** @description Refused: not_found. */
|
|
30023
|
+
404: {
|
|
30024
|
+
headers: {
|
|
30025
|
+
[name: string]: unknown;
|
|
30026
|
+
};
|
|
30027
|
+
content: {
|
|
30028
|
+
"application/json": components["schemas"]["OperationError"];
|
|
30029
|
+
};
|
|
30030
|
+
};
|
|
30031
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
30032
|
+
409: {
|
|
30033
|
+
headers: {
|
|
30034
|
+
[name: string]: unknown;
|
|
30035
|
+
};
|
|
30036
|
+
content: {
|
|
30037
|
+
"application/json": components["schemas"]["OperationError"];
|
|
30038
|
+
};
|
|
30039
|
+
};
|
|
30040
|
+
/** @description Refused: operation_retired. */
|
|
30041
|
+
410: {
|
|
30042
|
+
headers: {
|
|
30043
|
+
[name: string]: unknown;
|
|
30044
|
+
};
|
|
30045
|
+
content: {
|
|
30046
|
+
"application/json": components["schemas"]["OperationError"];
|
|
30047
|
+
};
|
|
30048
|
+
};
|
|
30049
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
30050
|
+
422: {
|
|
30051
|
+
headers: {
|
|
30052
|
+
[name: string]: unknown;
|
|
30053
|
+
};
|
|
30054
|
+
content: {
|
|
30055
|
+
"application/json": components["schemas"]["OperationError"];
|
|
30056
|
+
};
|
|
30057
|
+
};
|
|
30058
|
+
/** @description Refused: rate_limited. */
|
|
30059
|
+
429: {
|
|
30060
|
+
headers: {
|
|
30061
|
+
[name: string]: unknown;
|
|
30062
|
+
};
|
|
30063
|
+
content: {
|
|
30064
|
+
"application/json": components["schemas"]["OperationError"];
|
|
30065
|
+
};
|
|
30066
|
+
};
|
|
30067
|
+
};
|
|
30068
|
+
};
|
|
30069
|
+
"ops.compensation_plans.components.update": {
|
|
30070
|
+
parameters: {
|
|
30071
|
+
query?: never;
|
|
30072
|
+
header?: {
|
|
30073
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
30074
|
+
"Idempotency-Key"?: string;
|
|
30075
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
30076
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
30077
|
+
};
|
|
30078
|
+
path?: never;
|
|
30079
|
+
cookie?: never;
|
|
30080
|
+
};
|
|
30081
|
+
requestBody?: {
|
|
30082
|
+
content: {
|
|
30083
|
+
/**
|
|
30084
|
+
* @example {
|
|
30085
|
+
* "plan_id": 1,
|
|
30086
|
+
* "component_id": 1,
|
|
30087
|
+
* "component_type": "mileage_pay",
|
|
30088
|
+
* "configuration": {
|
|
30089
|
+
* "rate_per_mile": 0.7,
|
|
30090
|
+
* "basis": "total",
|
|
30091
|
+
* "pay_empty_miles": true
|
|
30092
|
+
* }
|
|
30093
|
+
* }
|
|
30094
|
+
*/
|
|
30095
|
+
"application/json": {
|
|
30096
|
+
/** @description The pay plan template id (compensation_plans.list) */
|
|
30097
|
+
plan_id: number;
|
|
30098
|
+
/** @description The pay rule (pay item) id on this plan */
|
|
30099
|
+
component_id: number;
|
|
30100
|
+
/** @description Pay rule type: mileage_pay, minimum_load_pay, stop_pay, detention_pay, layover_pay, tonu_pay, flat_load_pay, revenue_percentage_pay, maintenance_shuttle_pay */
|
|
30101
|
+
component_type: string | null;
|
|
30102
|
+
/** @description Rates for the pay rule type: mileage pay takes rate_per_mile with basis and pay_empty_miles, or mileage_mode with loaded_rate_per_mile and empty_rate_per_mile; stop pay structure, included_stops and amount_per_stop; flat pays amount; revenue percentage percent and revenue_basis; detention structure with amount or free_hours and rate_per_hour; layover structure with amount, amount_per_day or first_day_amount and additional_day_amount */
|
|
30103
|
+
configuration?: {
|
|
30104
|
+
[key: string]: unknown;
|
|
30105
|
+
} | unknown[] | null;
|
|
30106
|
+
};
|
|
30107
|
+
};
|
|
30108
|
+
};
|
|
30109
|
+
responses: {
|
|
30110
|
+
/** @description The operation ran. */
|
|
30111
|
+
200: {
|
|
30112
|
+
headers: {
|
|
30113
|
+
[name: string]: unknown;
|
|
30114
|
+
};
|
|
30115
|
+
content: {
|
|
30116
|
+
/**
|
|
30117
|
+
* @example {
|
|
30118
|
+
* "result": {
|
|
30119
|
+
* "id": 1,
|
|
30120
|
+
* "message": "Pay rule updated."
|
|
30121
|
+
* }
|
|
30122
|
+
* }
|
|
30123
|
+
*/
|
|
30124
|
+
"application/json": {
|
|
30125
|
+
result: {
|
|
30126
|
+
/** @description The pay rule id */
|
|
30127
|
+
id?: number | null;
|
|
30128
|
+
/** @description What happened, in the operator's words */
|
|
30129
|
+
message: string;
|
|
30130
|
+
};
|
|
30131
|
+
};
|
|
30132
|
+
};
|
|
30133
|
+
};
|
|
30134
|
+
202: components["responses"]["Proposal"];
|
|
30135
|
+
/** @description Refused: credits_exhausted. */
|
|
30136
|
+
402: {
|
|
30137
|
+
headers: {
|
|
30138
|
+
[name: string]: unknown;
|
|
30139
|
+
};
|
|
30140
|
+
content: {
|
|
30141
|
+
"application/json": components["schemas"]["OperationError"];
|
|
30142
|
+
};
|
|
30143
|
+
};
|
|
30144
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
30145
|
+
403: {
|
|
30146
|
+
headers: {
|
|
30147
|
+
[name: string]: unknown;
|
|
30148
|
+
};
|
|
30149
|
+
content: {
|
|
30150
|
+
"application/json": components["schemas"]["OperationError"];
|
|
30151
|
+
};
|
|
30152
|
+
};
|
|
30153
|
+
/** @description Refused: not_found. */
|
|
30154
|
+
404: {
|
|
30155
|
+
headers: {
|
|
30156
|
+
[name: string]: unknown;
|
|
30157
|
+
};
|
|
30158
|
+
content: {
|
|
30159
|
+
"application/json": components["schemas"]["OperationError"];
|
|
30160
|
+
};
|
|
30161
|
+
};
|
|
30162
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
30163
|
+
409: {
|
|
30164
|
+
headers: {
|
|
30165
|
+
[name: string]: unknown;
|
|
30166
|
+
};
|
|
30167
|
+
content: {
|
|
30168
|
+
"application/json": components["schemas"]["OperationError"];
|
|
30169
|
+
};
|
|
30170
|
+
};
|
|
30171
|
+
/** @description Refused: operation_retired. */
|
|
30172
|
+
410: {
|
|
30173
|
+
headers: {
|
|
30174
|
+
[name: string]: unknown;
|
|
30175
|
+
};
|
|
30176
|
+
content: {
|
|
30177
|
+
"application/json": components["schemas"]["OperationError"];
|
|
30178
|
+
};
|
|
30179
|
+
};
|
|
30180
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
30181
|
+
422: {
|
|
30182
|
+
headers: {
|
|
30183
|
+
[name: string]: unknown;
|
|
30184
|
+
};
|
|
30185
|
+
content: {
|
|
30186
|
+
"application/json": components["schemas"]["OperationError"];
|
|
30187
|
+
};
|
|
30188
|
+
};
|
|
30189
|
+
/** @description Refused: rate_limited. */
|
|
30190
|
+
429: {
|
|
30191
|
+
headers: {
|
|
30192
|
+
[name: string]: unknown;
|
|
30193
|
+
};
|
|
30194
|
+
content: {
|
|
30195
|
+
"application/json": components["schemas"]["OperationError"];
|
|
30196
|
+
};
|
|
30197
|
+
};
|
|
30198
|
+
};
|
|
30199
|
+
};
|
|
30200
|
+
"ops.compensation_plans.create": {
|
|
30201
|
+
parameters: {
|
|
30202
|
+
query?: never;
|
|
30203
|
+
header?: {
|
|
30204
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
30205
|
+
"Idempotency-Key"?: string;
|
|
30206
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
30207
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
30208
|
+
};
|
|
30209
|
+
path?: never;
|
|
30210
|
+
cookie?: never;
|
|
30211
|
+
};
|
|
30212
|
+
requestBody?: {
|
|
30213
|
+
content: {
|
|
30214
|
+
/**
|
|
30215
|
+
* @example {
|
|
30216
|
+
* "name": "Team CPM",
|
|
30217
|
+
* "tax_classification": "w2",
|
|
30218
|
+
* "compensation_strategy": "mileage"
|
|
30219
|
+
* }
|
|
30220
|
+
*/
|
|
30221
|
+
"application/json": {
|
|
30222
|
+
/** @description Plan name, unique in the workspace (max 255) */
|
|
30223
|
+
name: string | null;
|
|
30224
|
+
/** @description Tax classification: 1099, w2 */
|
|
30225
|
+
tax_classification: string | null;
|
|
30226
|
+
/** @description Pay method: mileage, revenue_percentage, flat_rate, hybrid, salary, custom */
|
|
30227
|
+
compensation_strategy: string | null;
|
|
30228
|
+
};
|
|
30229
|
+
};
|
|
30230
|
+
};
|
|
30231
|
+
responses: {
|
|
30232
|
+
/** @description The operation ran. */
|
|
30233
|
+
200: {
|
|
30234
|
+
headers: {
|
|
30235
|
+
[name: string]: unknown;
|
|
30236
|
+
};
|
|
30237
|
+
content: {
|
|
30238
|
+
/**
|
|
30239
|
+
* @example {
|
|
30240
|
+
* "result": {
|
|
30241
|
+
* "id": 11,
|
|
30242
|
+
* "message": "Pay plan template saved."
|
|
30243
|
+
* }
|
|
30244
|
+
* }
|
|
30245
|
+
*/
|
|
30246
|
+
"application/json": {
|
|
30247
|
+
result: {
|
|
30248
|
+
/** @description The pay plan id */
|
|
30249
|
+
id?: number | null;
|
|
30250
|
+
/** @description What happened, in the operator's words */
|
|
30251
|
+
message: string;
|
|
30252
|
+
};
|
|
30253
|
+
};
|
|
30254
|
+
};
|
|
30255
|
+
};
|
|
30256
|
+
202: components["responses"]["Proposal"];
|
|
30257
|
+
/** @description Refused: credits_exhausted. */
|
|
30258
|
+
402: {
|
|
30259
|
+
headers: {
|
|
30260
|
+
[name: string]: unknown;
|
|
30261
|
+
};
|
|
30262
|
+
content: {
|
|
30263
|
+
"application/json": components["schemas"]["OperationError"];
|
|
30264
|
+
};
|
|
30265
|
+
};
|
|
30266
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
30267
|
+
403: {
|
|
30268
|
+
headers: {
|
|
30269
|
+
[name: string]: unknown;
|
|
30270
|
+
};
|
|
30271
|
+
content: {
|
|
30272
|
+
"application/json": components["schemas"]["OperationError"];
|
|
30273
|
+
};
|
|
30274
|
+
};
|
|
30275
|
+
/** @description Refused: not_found. */
|
|
30276
|
+
404: {
|
|
30277
|
+
headers: {
|
|
30278
|
+
[name: string]: unknown;
|
|
30279
|
+
};
|
|
30280
|
+
content: {
|
|
30281
|
+
"application/json": components["schemas"]["OperationError"];
|
|
30282
|
+
};
|
|
30283
|
+
};
|
|
30284
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
30285
|
+
409: {
|
|
30286
|
+
headers: {
|
|
30287
|
+
[name: string]: unknown;
|
|
30288
|
+
};
|
|
30289
|
+
content: {
|
|
30290
|
+
"application/json": components["schemas"]["OperationError"];
|
|
30291
|
+
};
|
|
30292
|
+
};
|
|
30293
|
+
/** @description Refused: operation_retired. */
|
|
30294
|
+
410: {
|
|
30295
|
+
headers: {
|
|
30296
|
+
[name: string]: unknown;
|
|
30297
|
+
};
|
|
30298
|
+
content: {
|
|
30299
|
+
"application/json": components["schemas"]["OperationError"];
|
|
30300
|
+
};
|
|
30301
|
+
};
|
|
30302
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
30303
|
+
422: {
|
|
30304
|
+
headers: {
|
|
30305
|
+
[name: string]: unknown;
|
|
30306
|
+
};
|
|
30307
|
+
content: {
|
|
30308
|
+
"application/json": components["schemas"]["OperationError"];
|
|
30309
|
+
};
|
|
30310
|
+
};
|
|
30311
|
+
/** @description Refused: rate_limited. */
|
|
30312
|
+
429: {
|
|
30313
|
+
headers: {
|
|
30314
|
+
[name: string]: unknown;
|
|
30315
|
+
};
|
|
30316
|
+
content: {
|
|
30317
|
+
"application/json": components["schemas"]["OperationError"];
|
|
30318
|
+
};
|
|
30319
|
+
};
|
|
30320
|
+
};
|
|
30321
|
+
};
|
|
30322
|
+
"ops.compensation_plans.duplicate": {
|
|
30323
|
+
parameters: {
|
|
30324
|
+
query?: never;
|
|
30325
|
+
header?: {
|
|
30326
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
30327
|
+
"Idempotency-Key"?: string;
|
|
30328
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
30329
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
30330
|
+
};
|
|
30331
|
+
path?: never;
|
|
30332
|
+
cookie?: never;
|
|
30333
|
+
};
|
|
30334
|
+
requestBody?: {
|
|
30335
|
+
content: {
|
|
30336
|
+
/**
|
|
30337
|
+
* @example {
|
|
30338
|
+
* "plan_id": 1
|
|
30339
|
+
* }
|
|
30340
|
+
*/
|
|
30341
|
+
"application/json": {
|
|
30342
|
+
/** @description The pay plan template id (compensation_plans.list) */
|
|
30343
|
+
plan_id: number;
|
|
30344
|
+
};
|
|
30345
|
+
};
|
|
30346
|
+
};
|
|
30347
|
+
responses: {
|
|
30348
|
+
/** @description The operation ran. */
|
|
30349
|
+
200: {
|
|
30350
|
+
headers: {
|
|
30351
|
+
[name: string]: unknown;
|
|
30352
|
+
};
|
|
30353
|
+
content: {
|
|
30354
|
+
/**
|
|
30355
|
+
* @example {
|
|
30356
|
+
* "result": {
|
|
30357
|
+
* "id": 11,
|
|
30358
|
+
* "message": "Plan duplicated. Adjust the pay rates, then set it as a progression target on the original plan."
|
|
30359
|
+
* }
|
|
30360
|
+
* }
|
|
30361
|
+
*/
|
|
30362
|
+
"application/json": {
|
|
30363
|
+
result: {
|
|
30364
|
+
/** @description The new pay plan id */
|
|
30365
|
+
id?: number | null;
|
|
27796
30366
|
/** @description What happened, in the operator's words */
|
|
27797
30367
|
message: string;
|
|
27798
30368
|
};
|
|
@@ -35138,6 +37708,8 @@ export interface operations {
|
|
|
35138
37708
|
held_in_sandbox: boolean;
|
|
35139
37709
|
outbound_id: number;
|
|
35140
37710
|
thread_id: number;
|
|
37711
|
+
/** @description The AI agent the send took over first (paused), or null */
|
|
37712
|
+
took_over?: string | null;
|
|
35141
37713
|
message: string;
|
|
35142
37714
|
};
|
|
35143
37715
|
};
|
|
@@ -64005,6 +66577,10 @@ export interface operations {
|
|
|
64005
66577
|
"application/json": {
|
|
64006
66578
|
/** @description The conversation */
|
|
64007
66579
|
thread_id: number;
|
|
66580
|
+
/** @description Return the texting panel feed (text_feed) for a text conversation instead of messages */
|
|
66581
|
+
text_feed?: boolean;
|
|
66582
|
+
/** @description With text_feed: only items before this item key (a key from text_feed.items), for Load earlier messages */
|
|
66583
|
+
before?: string;
|
|
64008
66584
|
};
|
|
64009
66585
|
};
|
|
64010
66586
|
};
|
|
@@ -64127,7 +66703,7 @@ export interface operations {
|
|
|
64127
66703
|
/** @description StatusTone key for status_label */
|
|
64128
66704
|
status_tone: string;
|
|
64129
66705
|
}[];
|
|
64130
|
-
/** @description Latest messages, oldest first */
|
|
66706
|
+
/** @description Latest messages, oldest first; empty with text_feed */
|
|
64131
66707
|
messages: {
|
|
64132
66708
|
/** @description Message id within its direction (reply_to_message_id) */
|
|
64133
66709
|
id: number;
|
|
@@ -64149,6 +66725,88 @@ export interface operations {
|
|
|
64149
66725
|
}[];
|
|
64150
66726
|
/** @description True when older messages were left out */
|
|
64151
66727
|
has_older_messages: boolean;
|
|
66728
|
+
/** @description The candidate a candidate conversation is with; reply to them with recruiting.candidates.message.send */
|
|
66729
|
+
candidate_id?: number | null;
|
|
66730
|
+
/** @description AI agents working this conversation, oldest first */
|
|
66731
|
+
agents: {
|
|
66732
|
+
/** @description The AI agent: AI Negotiator, AI recruiter or Compliance agent */
|
|
66733
|
+
agent: string;
|
|
66734
|
+
/** @description What it is working: the load, the candidate or the compliance file */
|
|
66735
|
+
subject_label: string;
|
|
66736
|
+
/** @description working, waiting, paused_by_person (a person took it over) or paused */
|
|
66737
|
+
state: string;
|
|
66738
|
+
/** @description First name of the person who took it over */
|
|
66739
|
+
paused_by?: string | null;
|
|
66740
|
+
/** @description The caller may take it over or hand it back (in Axivoy, under the agent's own policy) */
|
|
66741
|
+
can_take_over: boolean;
|
|
66742
|
+
}[];
|
|
66743
|
+
/** @description The agent a person's reply here takes over first (conversations.reply took_over), or null */
|
|
66744
|
+
send_takes_over?: string | null;
|
|
66745
|
+
/** @description The texting panel feed, with text_feed on a text conversation; else null */
|
|
66746
|
+
text_feed?: {
|
|
66747
|
+
/** @description Oldest first */
|
|
66748
|
+
items: {
|
|
66749
|
+
/** @description turn, attachment or notice */
|
|
66750
|
+
kind: string;
|
|
66751
|
+
/** @description Stable item key; pass as before for the page before it */
|
|
66752
|
+
key: string;
|
|
66753
|
+
/**
|
|
66754
|
+
* Format: date-time
|
|
66755
|
+
* @description When it happened
|
|
66756
|
+
*/
|
|
66757
|
+
at?: string | null;
|
|
66758
|
+
/** @description Turns only */
|
|
66759
|
+
sender?: {
|
|
66760
|
+
/** @description Who sent it: the contact, a person or the agent's name */
|
|
66761
|
+
label: string;
|
|
66762
|
+
/** @description contact, person or agent (shown with the AI tag) */
|
|
66763
|
+
kind: string;
|
|
66764
|
+
/** @description contact or company */
|
|
66765
|
+
side: string;
|
|
66766
|
+
} | null;
|
|
66767
|
+
/** @description Turn text as written */
|
|
66768
|
+
body?: string | null;
|
|
66769
|
+
/** @description sms, or web for the application hub chat */
|
|
66770
|
+
channel?: string | null;
|
|
66771
|
+
/** @description Sent turns only */
|
|
66772
|
+
receipt?: {
|
|
66773
|
+
/** @description sending, sent, delivered, held, failed, or for the hub seen, not_seen, fallback_sms */
|
|
66774
|
+
state: string;
|
|
66775
|
+
/** @description The receipt to show */
|
|
66776
|
+
label: string;
|
|
66777
|
+
/**
|
|
66778
|
+
* Format: date-time
|
|
66779
|
+
* @description Sent
|
|
66780
|
+
*/
|
|
66781
|
+
sent_at?: string | null;
|
|
66782
|
+
/**
|
|
66783
|
+
* Format: date-time
|
|
66784
|
+
* @description Delivered
|
|
66785
|
+
*/
|
|
66786
|
+
delivered_at?: string | null;
|
|
66787
|
+
/**
|
|
66788
|
+
* Format: date-time
|
|
66789
|
+
* @description Seen on the hub
|
|
66790
|
+
*/
|
|
66791
|
+
seen_at?: string | null;
|
|
66792
|
+
} | null;
|
|
66793
|
+
/** @description Notice text, or an attachment's name */
|
|
66794
|
+
label?: string | null;
|
|
66795
|
+
/** @description Notice StatusTone key */
|
|
66796
|
+
tone?: string | null;
|
|
66797
|
+
/** @description Attachment link */
|
|
66798
|
+
url?: string | null;
|
|
66799
|
+
/** @description Attachments: whose side it sits on */
|
|
66800
|
+
side?: string | null;
|
|
66801
|
+
}[];
|
|
66802
|
+
/** @description True when earlier items exist; ask again with before */
|
|
66803
|
+
has_more: boolean;
|
|
66804
|
+
/** @description Composer state; a candidate conversation adds the AI recruiter state and send channels */
|
|
66805
|
+
meta: {
|
|
66806
|
+
/** @description Texts to them are off (STOP) */
|
|
66807
|
+
opted_out?: boolean | null;
|
|
66808
|
+
};
|
|
66809
|
+
} | null;
|
|
64152
66810
|
};
|
|
64153
66811
|
};
|
|
64154
66812
|
};
|
|
@@ -66359,6 +69017,11 @@ export interface operations {
|
|
|
66359
69017
|
unread?: boolean | null;
|
|
66360
69018
|
/** @enum {string|null} */
|
|
66361
69019
|
kind?: "notification" | "conversation" | null;
|
|
69020
|
+
/**
|
|
69021
|
+
* @description Only conversations on email, texts (sms) or calls (voice), as the Inbox tabs show them.
|
|
69022
|
+
* @enum {string|null}
|
|
69023
|
+
*/
|
|
69024
|
+
channel?: "email" | "sms" | "voice" | null;
|
|
66362
69025
|
/** @enum {string|null} */
|
|
66363
69026
|
actionability?: "needs_reply" | "needs_action" | "fyi" | null;
|
|
66364
69027
|
category?: string | null;
|
|
@@ -138359,7 +141022,286 @@ export interface operations {
|
|
|
138359
141022
|
};
|
|
138360
141023
|
};
|
|
138361
141024
|
};
|
|
138362
|
-
"ops.sync.schedule.preview_next": {
|
|
141025
|
+
"ops.sync.schedule.preview_next": {
|
|
141026
|
+
parameters: {
|
|
141027
|
+
query?: never;
|
|
141028
|
+
header?: {
|
|
141029
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
141030
|
+
"Idempotency-Key"?: string;
|
|
141031
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
141032
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
141033
|
+
};
|
|
141034
|
+
path?: never;
|
|
141035
|
+
cookie?: never;
|
|
141036
|
+
};
|
|
141037
|
+
requestBody?: {
|
|
141038
|
+
content: {
|
|
141039
|
+
/**
|
|
141040
|
+
* @example {
|
|
141041
|
+
* "frequency_type": "daily",
|
|
141042
|
+
* "run_at_time": "05:45",
|
|
141043
|
+
* "timezone": "America/Denver"
|
|
141044
|
+
* }
|
|
141045
|
+
*/
|
|
141046
|
+
"application/json": {
|
|
141047
|
+
/** @description Whether the schedule runs */
|
|
141048
|
+
is_enabled?: boolean | string | number | null;
|
|
141049
|
+
/** @description daily, hourly, weekly, interval or cron */
|
|
141050
|
+
frequency_type?: string | null;
|
|
141051
|
+
/** @description Local run time as HH:MM (24-hour) for daily and weekly */
|
|
141052
|
+
run_at_time?: string | null;
|
|
141053
|
+
/** @description Weekday for weekly, 0 is Sunday */
|
|
141054
|
+
run_on_day_of_week?: number | string | null;
|
|
141055
|
+
/** @description Minutes between runs for interval, 5 to 10080 */
|
|
141056
|
+
interval_minutes?: number | string | null;
|
|
141057
|
+
/** @description Cron expression for cron, for example 0 *\/6 * * * */
|
|
141058
|
+
cron_expression?: string | null;
|
|
141059
|
+
/** @description IANA timezone, for example America/Chicago */
|
|
141060
|
+
timezone?: string | null;
|
|
141061
|
+
/** @description Notes kept on the schedule */
|
|
141062
|
+
notes?: string | null;
|
|
141063
|
+
/** @description Alvys incremental lookback in days, 1 to 365 */
|
|
141064
|
+
alvys_incremental_lookback_days?: number | string | null;
|
|
141065
|
+
/** @description Days of history each run re-pulls, 1 to 365 */
|
|
141066
|
+
sync_lookback_days?: number | string | null;
|
|
141067
|
+
/** @description Weekly snapshots each run rebuilds, 1 to 52 */
|
|
141068
|
+
weekly_snapshot_max_weeks?: number | string | null;
|
|
141069
|
+
/** @description Hours after week end before the scorecard locks, 1 to 168 */
|
|
141070
|
+
weekly_scorecard_grace_hours?: number | string | null;
|
|
141071
|
+
};
|
|
141072
|
+
};
|
|
141073
|
+
};
|
|
141074
|
+
responses: {
|
|
141075
|
+
/** @description The operation ran. */
|
|
141076
|
+
200: {
|
|
141077
|
+
headers: {
|
|
141078
|
+
[name: string]: unknown;
|
|
141079
|
+
};
|
|
141080
|
+
content: {
|
|
141081
|
+
/**
|
|
141082
|
+
* @example {
|
|
141083
|
+
* "result": {
|
|
141084
|
+
* "next_due_at_utc": "2026-10-20T11:45:00Z",
|
|
141085
|
+
* "next_due_display": "Tue Oct 20, 2026 5:45 AM MDT"
|
|
141086
|
+
* }
|
|
141087
|
+
* }
|
|
141088
|
+
*/
|
|
141089
|
+
"application/json": {
|
|
141090
|
+
result: {
|
|
141091
|
+
/**
|
|
141092
|
+
* Format: date-time
|
|
141093
|
+
* @description Next run in UTC; empty when it would never run
|
|
141094
|
+
*/
|
|
141095
|
+
next_due_at_utc?: string | null;
|
|
141096
|
+
/** @description Next run in the schedule's timezone */
|
|
141097
|
+
next_due_display: string;
|
|
141098
|
+
};
|
|
141099
|
+
};
|
|
141100
|
+
};
|
|
141101
|
+
};
|
|
141102
|
+
202: components["responses"]["Proposal"];
|
|
141103
|
+
/** @description Refused: credits_exhausted. */
|
|
141104
|
+
402: {
|
|
141105
|
+
headers: {
|
|
141106
|
+
[name: string]: unknown;
|
|
141107
|
+
};
|
|
141108
|
+
content: {
|
|
141109
|
+
"application/json": components["schemas"]["OperationError"];
|
|
141110
|
+
};
|
|
141111
|
+
};
|
|
141112
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
141113
|
+
403: {
|
|
141114
|
+
headers: {
|
|
141115
|
+
[name: string]: unknown;
|
|
141116
|
+
};
|
|
141117
|
+
content: {
|
|
141118
|
+
"application/json": components["schemas"]["OperationError"];
|
|
141119
|
+
};
|
|
141120
|
+
};
|
|
141121
|
+
/** @description Refused: not_found. */
|
|
141122
|
+
404: {
|
|
141123
|
+
headers: {
|
|
141124
|
+
[name: string]: unknown;
|
|
141125
|
+
};
|
|
141126
|
+
content: {
|
|
141127
|
+
"application/json": components["schemas"]["OperationError"];
|
|
141128
|
+
};
|
|
141129
|
+
};
|
|
141130
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
141131
|
+
409: {
|
|
141132
|
+
headers: {
|
|
141133
|
+
[name: string]: unknown;
|
|
141134
|
+
};
|
|
141135
|
+
content: {
|
|
141136
|
+
"application/json": components["schemas"]["OperationError"];
|
|
141137
|
+
};
|
|
141138
|
+
};
|
|
141139
|
+
/** @description Refused: operation_retired. */
|
|
141140
|
+
410: {
|
|
141141
|
+
headers: {
|
|
141142
|
+
[name: string]: unknown;
|
|
141143
|
+
};
|
|
141144
|
+
content: {
|
|
141145
|
+
"application/json": components["schemas"]["OperationError"];
|
|
141146
|
+
};
|
|
141147
|
+
};
|
|
141148
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
141149
|
+
422: {
|
|
141150
|
+
headers: {
|
|
141151
|
+
[name: string]: unknown;
|
|
141152
|
+
};
|
|
141153
|
+
content: {
|
|
141154
|
+
"application/json": components["schemas"]["OperationError"];
|
|
141155
|
+
};
|
|
141156
|
+
};
|
|
141157
|
+
/** @description Refused: rate_limited. */
|
|
141158
|
+
429: {
|
|
141159
|
+
headers: {
|
|
141160
|
+
[name: string]: unknown;
|
|
141161
|
+
};
|
|
141162
|
+
content: {
|
|
141163
|
+
"application/json": components["schemas"]["OperationError"];
|
|
141164
|
+
};
|
|
141165
|
+
};
|
|
141166
|
+
};
|
|
141167
|
+
};
|
|
141168
|
+
"ops.system.branding.get": {
|
|
141169
|
+
parameters: {
|
|
141170
|
+
query?: never;
|
|
141171
|
+
header?: {
|
|
141172
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
141173
|
+
"Idempotency-Key"?: string;
|
|
141174
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
141175
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
141176
|
+
};
|
|
141177
|
+
path?: never;
|
|
141178
|
+
cookie?: never;
|
|
141179
|
+
};
|
|
141180
|
+
requestBody?: {
|
|
141181
|
+
content: {
|
|
141182
|
+
/** @example {} */
|
|
141183
|
+
"application/json": Record<string, never>;
|
|
141184
|
+
};
|
|
141185
|
+
};
|
|
141186
|
+
responses: {
|
|
141187
|
+
/** @description The operation ran. */
|
|
141188
|
+
200: {
|
|
141189
|
+
headers: {
|
|
141190
|
+
[name: string]: unknown;
|
|
141191
|
+
};
|
|
141192
|
+
content: {
|
|
141193
|
+
/**
|
|
141194
|
+
* @example {
|
|
141195
|
+
* "result": {
|
|
141196
|
+
* "display_name": "Tooli Logistics",
|
|
141197
|
+
* "primary_color": "#4f46e5",
|
|
141198
|
+
* "accent_color": "#6f75ef",
|
|
141199
|
+
* "logo_url": null,
|
|
141200
|
+
* "logo_dark_url": null,
|
|
141201
|
+
* "favicon_url": null,
|
|
141202
|
+
* "logo_alt": "Axivoy logo",
|
|
141203
|
+
* "login_headline": null,
|
|
141204
|
+
* "login_message": null,
|
|
141205
|
+
* "is_customized": false,
|
|
141206
|
+
* "uses_platform_logo": true
|
|
141207
|
+
* }
|
|
141208
|
+
* }
|
|
141209
|
+
*/
|
|
141210
|
+
"application/json": {
|
|
141211
|
+
result: {
|
|
141212
|
+
/** @description Name shown in the app header and emails */
|
|
141213
|
+
display_name: string;
|
|
141214
|
+
/** @description Primary color (#RRGGBB) */
|
|
141215
|
+
primary_color: string;
|
|
141216
|
+
/** @description Accent color (#RRGGBB) */
|
|
141217
|
+
accent_color: string;
|
|
141218
|
+
/** @description Logo link */
|
|
141219
|
+
logo_url?: string | null;
|
|
141220
|
+
/** @description Dark-background logo link */
|
|
141221
|
+
logo_dark_url?: string | null;
|
|
141222
|
+
/** @description Favicon link */
|
|
141223
|
+
favicon_url?: string | null;
|
|
141224
|
+
/** @description Logo alt text */
|
|
141225
|
+
logo_alt?: string | null;
|
|
141226
|
+
/** @description Sign-in page headline */
|
|
141227
|
+
login_headline?: string | null;
|
|
141228
|
+
/** @description Sign-in page message */
|
|
141229
|
+
login_message?: string | null;
|
|
141230
|
+
/** @description Whether the workspace set any branding */
|
|
141231
|
+
is_customized: boolean;
|
|
141232
|
+
/** @description Whether the platform logo shows */
|
|
141233
|
+
uses_platform_logo: boolean;
|
|
141234
|
+
};
|
|
141235
|
+
};
|
|
141236
|
+
};
|
|
141237
|
+
};
|
|
141238
|
+
202: components["responses"]["Proposal"];
|
|
141239
|
+
/** @description Refused: credits_exhausted. */
|
|
141240
|
+
402: {
|
|
141241
|
+
headers: {
|
|
141242
|
+
[name: string]: unknown;
|
|
141243
|
+
};
|
|
141244
|
+
content: {
|
|
141245
|
+
"application/json": components["schemas"]["OperationError"];
|
|
141246
|
+
};
|
|
141247
|
+
};
|
|
141248
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
141249
|
+
403: {
|
|
141250
|
+
headers: {
|
|
141251
|
+
[name: string]: unknown;
|
|
141252
|
+
};
|
|
141253
|
+
content: {
|
|
141254
|
+
"application/json": components["schemas"]["OperationError"];
|
|
141255
|
+
};
|
|
141256
|
+
};
|
|
141257
|
+
/** @description Refused: not_found. */
|
|
141258
|
+
404: {
|
|
141259
|
+
headers: {
|
|
141260
|
+
[name: string]: unknown;
|
|
141261
|
+
};
|
|
141262
|
+
content: {
|
|
141263
|
+
"application/json": components["schemas"]["OperationError"];
|
|
141264
|
+
};
|
|
141265
|
+
};
|
|
141266
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
141267
|
+
409: {
|
|
141268
|
+
headers: {
|
|
141269
|
+
[name: string]: unknown;
|
|
141270
|
+
};
|
|
141271
|
+
content: {
|
|
141272
|
+
"application/json": components["schemas"]["OperationError"];
|
|
141273
|
+
};
|
|
141274
|
+
};
|
|
141275
|
+
/** @description Refused: operation_retired. */
|
|
141276
|
+
410: {
|
|
141277
|
+
headers: {
|
|
141278
|
+
[name: string]: unknown;
|
|
141279
|
+
};
|
|
141280
|
+
content: {
|
|
141281
|
+
"application/json": components["schemas"]["OperationError"];
|
|
141282
|
+
};
|
|
141283
|
+
};
|
|
141284
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
141285
|
+
422: {
|
|
141286
|
+
headers: {
|
|
141287
|
+
[name: string]: unknown;
|
|
141288
|
+
};
|
|
141289
|
+
content: {
|
|
141290
|
+
"application/json": components["schemas"]["OperationError"];
|
|
141291
|
+
};
|
|
141292
|
+
};
|
|
141293
|
+
/** @description Refused: rate_limited. */
|
|
141294
|
+
429: {
|
|
141295
|
+
headers: {
|
|
141296
|
+
[name: string]: unknown;
|
|
141297
|
+
};
|
|
141298
|
+
content: {
|
|
141299
|
+
"application/json": components["schemas"]["OperationError"];
|
|
141300
|
+
};
|
|
141301
|
+
};
|
|
141302
|
+
};
|
|
141303
|
+
};
|
|
141304
|
+
"ops.system.domains.default_address.get": {
|
|
138363
141305
|
parameters: {
|
|
138364
141306
|
query?: never;
|
|
138365
141307
|
header?: {
|
|
@@ -138373,39 +141315,8 @@ export interface operations {
|
|
|
138373
141315
|
};
|
|
138374
141316
|
requestBody?: {
|
|
138375
141317
|
content: {
|
|
138376
|
-
/**
|
|
138377
|
-
|
|
138378
|
-
* "frequency_type": "daily",
|
|
138379
|
-
* "run_at_time": "05:45",
|
|
138380
|
-
* "timezone": "America/Denver"
|
|
138381
|
-
* }
|
|
138382
|
-
*/
|
|
138383
|
-
"application/json": {
|
|
138384
|
-
/** @description Whether the schedule runs */
|
|
138385
|
-
is_enabled?: boolean | string | number | null;
|
|
138386
|
-
/** @description daily, hourly, weekly, interval or cron */
|
|
138387
|
-
frequency_type?: string | null;
|
|
138388
|
-
/** @description Local run time as HH:MM (24-hour) for daily and weekly */
|
|
138389
|
-
run_at_time?: string | null;
|
|
138390
|
-
/** @description Weekday for weekly, 0 is Sunday */
|
|
138391
|
-
run_on_day_of_week?: number | string | null;
|
|
138392
|
-
/** @description Minutes between runs for interval, 5 to 10080 */
|
|
138393
|
-
interval_minutes?: number | string | null;
|
|
138394
|
-
/** @description Cron expression for cron, for example 0 *\/6 * * * */
|
|
138395
|
-
cron_expression?: string | null;
|
|
138396
|
-
/** @description IANA timezone, for example America/Chicago */
|
|
138397
|
-
timezone?: string | null;
|
|
138398
|
-
/** @description Notes kept on the schedule */
|
|
138399
|
-
notes?: string | null;
|
|
138400
|
-
/** @description Alvys incremental lookback in days, 1 to 365 */
|
|
138401
|
-
alvys_incremental_lookback_days?: number | string | null;
|
|
138402
|
-
/** @description Days of history each run re-pulls, 1 to 365 */
|
|
138403
|
-
sync_lookback_days?: number | string | null;
|
|
138404
|
-
/** @description Weekly snapshots each run rebuilds, 1 to 52 */
|
|
138405
|
-
weekly_snapshot_max_weeks?: number | string | null;
|
|
138406
|
-
/** @description Hours after week end before the scorecard locks, 1 to 168 */
|
|
138407
|
-
weekly_scorecard_grace_hours?: number | string | null;
|
|
138408
|
-
};
|
|
141318
|
+
/** @example {} */
|
|
141319
|
+
"application/json": Record<string, never>;
|
|
138409
141320
|
};
|
|
138410
141321
|
};
|
|
138411
141322
|
responses: {
|
|
@@ -138418,156 +141329,44 @@ export interface operations {
|
|
|
138418
141329
|
/**
|
|
138419
141330
|
* @example {
|
|
138420
141331
|
* "result": {
|
|
138421
|
-
* "
|
|
138422
|
-
* "
|
|
141332
|
+
* "domain": "carrier.example.com",
|
|
141333
|
+
* "address": "billing@carrier.example.com",
|
|
141334
|
+
* "state": "confirmed",
|
|
141335
|
+
* "pending_address": null,
|
|
141336
|
+
* "pending_sent_at": null,
|
|
141337
|
+
* "failure_reason": null,
|
|
141338
|
+
* "fallback": null,
|
|
141339
|
+
* "confirmed_via": "grandfathered",
|
|
141340
|
+
* "forwards_to": null,
|
|
141341
|
+
* "forward_target": null
|
|
138423
141342
|
* }
|
|
138424
141343
|
* }
|
|
138425
141344
|
*/
|
|
138426
141345
|
"application/json": {
|
|
138427
141346
|
result: {
|
|
141347
|
+
/** @description The live sending domain */
|
|
141348
|
+
domain: string;
|
|
141349
|
+
/** @description The confirmed default sending address, or null */
|
|
141350
|
+
address?: string | null;
|
|
141351
|
+
/** @description confirmed or untested, else checking, waiting, expired or failed for the address waiting for confirmation */
|
|
141352
|
+
state: string;
|
|
141353
|
+
/** @description The first or changed address waiting for confirmation */
|
|
141354
|
+
pending_address?: string | null;
|
|
138428
141355
|
/**
|
|
138429
141356
|
* Format: date-time
|
|
138430
|
-
* @description
|
|
141357
|
+
* @description When its test was sent
|
|
138431
141358
|
*/
|
|
138432
|
-
|
|
138433
|
-
/** @description
|
|
138434
|
-
|
|
138435
|
-
|
|
138436
|
-
|
|
138437
|
-
|
|
138438
|
-
|
|
138439
|
-
|
|
138440
|
-
|
|
138441
|
-
|
|
138442
|
-
|
|
138443
|
-
[name: string]: unknown;
|
|
138444
|
-
};
|
|
138445
|
-
content: {
|
|
138446
|
-
"application/json": components["schemas"]["OperationError"];
|
|
138447
|
-
};
|
|
138448
|
-
};
|
|
138449
|
-
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
138450
|
-
403: {
|
|
138451
|
-
headers: {
|
|
138452
|
-
[name: string]: unknown;
|
|
138453
|
-
};
|
|
138454
|
-
content: {
|
|
138455
|
-
"application/json": components["schemas"]["OperationError"];
|
|
138456
|
-
};
|
|
138457
|
-
};
|
|
138458
|
-
/** @description Refused: not_found. */
|
|
138459
|
-
404: {
|
|
138460
|
-
headers: {
|
|
138461
|
-
[name: string]: unknown;
|
|
138462
|
-
};
|
|
138463
|
-
content: {
|
|
138464
|
-
"application/json": components["schemas"]["OperationError"];
|
|
138465
|
-
};
|
|
138466
|
-
};
|
|
138467
|
-
/** @description Refused: idempotency_conflict, stale_state. */
|
|
138468
|
-
409: {
|
|
138469
|
-
headers: {
|
|
138470
|
-
[name: string]: unknown;
|
|
138471
|
-
};
|
|
138472
|
-
content: {
|
|
138473
|
-
"application/json": components["schemas"]["OperationError"];
|
|
138474
|
-
};
|
|
138475
|
-
};
|
|
138476
|
-
/** @description Refused: operation_retired. */
|
|
138477
|
-
410: {
|
|
138478
|
-
headers: {
|
|
138479
|
-
[name: string]: unknown;
|
|
138480
|
-
};
|
|
138481
|
-
content: {
|
|
138482
|
-
"application/json": components["schemas"]["OperationError"];
|
|
138483
|
-
};
|
|
138484
|
-
};
|
|
138485
|
-
/** @description Refused: invalid_input, domain_rule. */
|
|
138486
|
-
422: {
|
|
138487
|
-
headers: {
|
|
138488
|
-
[name: string]: unknown;
|
|
138489
|
-
};
|
|
138490
|
-
content: {
|
|
138491
|
-
"application/json": components["schemas"]["OperationError"];
|
|
138492
|
-
};
|
|
138493
|
-
};
|
|
138494
|
-
/** @description Refused: rate_limited. */
|
|
138495
|
-
429: {
|
|
138496
|
-
headers: {
|
|
138497
|
-
[name: string]: unknown;
|
|
138498
|
-
};
|
|
138499
|
-
content: {
|
|
138500
|
-
"application/json": components["schemas"]["OperationError"];
|
|
138501
|
-
};
|
|
138502
|
-
};
|
|
138503
|
-
};
|
|
138504
|
-
};
|
|
138505
|
-
"ops.system.branding.get": {
|
|
138506
|
-
parameters: {
|
|
138507
|
-
query?: never;
|
|
138508
|
-
header?: {
|
|
138509
|
-
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
138510
|
-
"Idempotency-Key"?: string;
|
|
138511
|
-
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
138512
|
-
"Axivoy-Dry-Run"?: "true" | "false";
|
|
138513
|
-
};
|
|
138514
|
-
path?: never;
|
|
138515
|
-
cookie?: never;
|
|
138516
|
-
};
|
|
138517
|
-
requestBody?: {
|
|
138518
|
-
content: {
|
|
138519
|
-
/** @example {} */
|
|
138520
|
-
"application/json": Record<string, never>;
|
|
138521
|
-
};
|
|
138522
|
-
};
|
|
138523
|
-
responses: {
|
|
138524
|
-
/** @description The operation ran. */
|
|
138525
|
-
200: {
|
|
138526
|
-
headers: {
|
|
138527
|
-
[name: string]: unknown;
|
|
138528
|
-
};
|
|
138529
|
-
content: {
|
|
138530
|
-
/**
|
|
138531
|
-
* @example {
|
|
138532
|
-
* "result": {
|
|
138533
|
-
* "display_name": "Tooli Logistics",
|
|
138534
|
-
* "primary_color": "#4f46e5",
|
|
138535
|
-
* "accent_color": "#6f75ef",
|
|
138536
|
-
* "logo_url": null,
|
|
138537
|
-
* "logo_dark_url": null,
|
|
138538
|
-
* "favicon_url": null,
|
|
138539
|
-
* "logo_alt": "Axivoy logo",
|
|
138540
|
-
* "login_headline": null,
|
|
138541
|
-
* "login_message": null,
|
|
138542
|
-
* "is_customized": false,
|
|
138543
|
-
* "uses_platform_logo": true
|
|
138544
|
-
* }
|
|
138545
|
-
* }
|
|
138546
|
-
*/
|
|
138547
|
-
"application/json": {
|
|
138548
|
-
result: {
|
|
138549
|
-
/** @description Name shown in the app header and emails */
|
|
138550
|
-
display_name: string;
|
|
138551
|
-
/** @description Primary color (#RRGGBB) */
|
|
138552
|
-
primary_color: string;
|
|
138553
|
-
/** @description Accent color (#RRGGBB) */
|
|
138554
|
-
accent_color: string;
|
|
138555
|
-
/** @description Logo link */
|
|
138556
|
-
logo_url?: string | null;
|
|
138557
|
-
/** @description Dark-background logo link */
|
|
138558
|
-
logo_dark_url?: string | null;
|
|
138559
|
-
/** @description Favicon link */
|
|
138560
|
-
favicon_url?: string | null;
|
|
138561
|
-
/** @description Logo alt text */
|
|
138562
|
-
logo_alt?: string | null;
|
|
138563
|
-
/** @description Sign-in page headline */
|
|
138564
|
-
login_headline?: string | null;
|
|
138565
|
-
/** @description Sign-in page message */
|
|
138566
|
-
login_message?: string | null;
|
|
138567
|
-
/** @description Whether the workspace set any branding */
|
|
138568
|
-
is_customized: boolean;
|
|
138569
|
-
/** @description Whether the platform logo shows */
|
|
138570
|
-
uses_platform_logo: boolean;
|
|
141359
|
+
pending_sent_at?: string | null;
|
|
141360
|
+
/** @description Why the test could not be delivered */
|
|
141361
|
+
failure_reason?: string | null;
|
|
141362
|
+
/** @description What mail uses meanwhile */
|
|
141363
|
+
fallback?: string | null;
|
|
141364
|
+
/** @description forwarding, link or grandfathered */
|
|
141365
|
+
confirmed_via?: string | null;
|
|
141366
|
+
/** @description The team its forwarding reached, or null */
|
|
141367
|
+
forwards_to?: string | null;
|
|
141368
|
+
/** @description The receive address to forward the mailbox to */
|
|
141369
|
+
forward_target?: string | null;
|
|
138571
141370
|
};
|
|
138572
141371
|
};
|
|
138573
141372
|
};
|
|
@@ -139008,6 +141807,20 @@ export interface operations {
|
|
|
139008
141807
|
from_is_platform_default: boolean;
|
|
139009
141808
|
/** @description live (emails go out) or sandbox (test mode: held for review in the Message log) */
|
|
139010
141809
|
delivery_mode: string;
|
|
141810
|
+
/** @description The domain email is sent from */
|
|
141811
|
+
sending_domain: {
|
|
141812
|
+
/** @description The domain name, null when none is set up */
|
|
141813
|
+
domain?: string | null;
|
|
141814
|
+
/** @description active, waiting (DNS records not confirmed yet), not_set_up or failed (stopped working after it was active) */
|
|
141815
|
+
state: string;
|
|
141816
|
+
};
|
|
141817
|
+
/** @description The domain replies arrive at */
|
|
141818
|
+
reply_domain: {
|
|
141819
|
+
/** @description The domain name, null when none is set up */
|
|
141820
|
+
domain?: string | null;
|
|
141821
|
+
/** @description active, waiting (DNS records not confirmed yet), not_set_up or failed (stopped working after it was active) */
|
|
141822
|
+
state: string;
|
|
141823
|
+
};
|
|
139011
141824
|
};
|
|
139012
141825
|
};
|
|
139013
141826
|
};
|
|
@@ -140518,9 +143331,37 @@ export interface operations {
|
|
|
140518
143331
|
* "read_only": false
|
|
140519
143332
|
* },
|
|
140520
143333
|
* {
|
|
140521
|
-
* "slug": "
|
|
140522
|
-
* "display_name": "
|
|
140523
|
-
* "help_summary": "Notifies
|
|
143334
|
+
* "slug": "safety_watcher_awareness",
|
|
143335
|
+
* "display_name": "Safety & compliance sent-mail alert",
|
|
143336
|
+
* "help_summary": "Notifies the people the Safety & compliance team alerts when Axivoy sends a compliance, document, dispatch block or unsafe inspection notice from the team.",
|
|
143337
|
+
* "audience": "operator",
|
|
143338
|
+
* "editability": "operator",
|
|
143339
|
+
* "status": "active",
|
|
143340
|
+
* "replacement_slug": null,
|
|
143341
|
+
* "channel": "email",
|
|
143342
|
+
* "inheritance": "inherited",
|
|
143343
|
+
* "health_ok": false,
|
|
143344
|
+
* "health_errors": [
|
|
143345
|
+
* {
|
|
143346
|
+
* "error": "Required template tag {{invoice_number}} is missing."
|
|
143347
|
+
* },
|
|
143348
|
+
* {
|
|
143349
|
+
* "error": "Required template tag {{customer_name}} is missing."
|
|
143350
|
+
* },
|
|
143351
|
+
* {
|
|
143352
|
+
* "error": "Required template tag {{load_number}} is missing."
|
|
143353
|
+
* },
|
|
143354
|
+
* {
|
|
143355
|
+
* "error": "Required template tag {{source_use_case}} is missing."
|
|
143356
|
+
* }
|
|
143357
|
+
* ],
|
|
143358
|
+
* "can_edit": true,
|
|
143359
|
+
* "read_only": false
|
|
143360
|
+
* },
|
|
143361
|
+
* {
|
|
143362
|
+
* "slug": "maintenance_watcher_awareness",
|
|
143363
|
+
* "display_name": "Maintenance sent-mail alert",
|
|
143364
|
+
* "help_summary": "Notifies the people the Maintenance team alerts when Axivoy sends a work order, purchase order, shop, shuttle, parts or warranty notice from the team.",
|
|
140524
143365
|
* "audience": "operator",
|
|
140525
143366
|
* "editability": "operator",
|
|
140526
143367
|
* "status": "active",
|
|
@@ -141270,6 +144111,36 @@ export interface operations {
|
|
|
141270
144111
|
* "read_only": false
|
|
141271
144112
|
* },
|
|
141272
144113
|
* {
|
|
144114
|
+
* "slug": "voice_number_transfer_update",
|
|
144115
|
+
* "display_name": "Phone number transfer update",
|
|
144116
|
+
* "help_summary": "Tells admins how a phone number transfer to Axivoy, or a move to another provider, is going.",
|
|
144117
|
+
* "audience": "operator",
|
|
144118
|
+
* "editability": "operator",
|
|
144119
|
+
* "status": "active",
|
|
144120
|
+
* "replacement_slug": null,
|
|
144121
|
+
* "channel": "email",
|
|
144122
|
+
* "inheritance": "inherited",
|
|
144123
|
+
* "health_ok": true,
|
|
144124
|
+
* "health_errors": [],
|
|
144125
|
+
* "can_edit": true,
|
|
144126
|
+
* "read_only": false
|
|
144127
|
+
* },
|
|
144128
|
+
* {
|
|
144129
|
+
* "slug": "voice_voicemail_received",
|
|
144130
|
+
* "display_name": "Voicemail received",
|
|
144131
|
+
* "help_summary": "Tells the people on a caller's conversation that a voicemail is waiting in the Inbox.",
|
|
144132
|
+
* "audience": "operator",
|
|
144133
|
+
* "editability": "operator",
|
|
144134
|
+
* "status": "active",
|
|
144135
|
+
* "replacement_slug": null,
|
|
144136
|
+
* "channel": "email",
|
|
144137
|
+
* "inheritance": "inherited",
|
|
144138
|
+
* "health_ok": true,
|
|
144139
|
+
* "health_errors": [],
|
|
144140
|
+
* "can_edit": true,
|
|
144141
|
+
* "read_only": false
|
|
144142
|
+
* },
|
|
144143
|
+
* {
|
|
141273
144144
|
* "slug": "webhook_endpoint_disabled",
|
|
141274
144145
|
* "display_name": "Webhook turned off",
|
|
141275
144146
|
* "help_summary": "Tells admins a webhook URL was turned off after 20 failed deliveries in a row, so they can fix it and turn it back on.",
|
|
@@ -141375,6 +144246,51 @@ export interface operations {
|
|
|
141375
144246
|
* "read_only": false
|
|
141376
144247
|
* },
|
|
141377
144248
|
* {
|
|
144249
|
+
* "slug": "agent_runtime_upgrade_needs_review",
|
|
144250
|
+
* "display_name": "Agent runtime upgrade needs review",
|
|
144251
|
+
* "help_summary": "Tells platform operators the agent runtime canary review rolled an upgrade back, or that a major, security or slow upgrade needs a person to decide.",
|
|
144252
|
+
* "audience": "operator",
|
|
144253
|
+
* "editability": "operator",
|
|
144254
|
+
* "status": "active",
|
|
144255
|
+
* "replacement_slug": null,
|
|
144256
|
+
* "channel": "email",
|
|
144257
|
+
* "inheritance": "inherited",
|
|
144258
|
+
* "health_ok": true,
|
|
144259
|
+
* "health_errors": [],
|
|
144260
|
+
* "can_edit": true,
|
|
144261
|
+
* "read_only": false
|
|
144262
|
+
* },
|
|
144263
|
+
* {
|
|
144264
|
+
* "slug": "agent_version_trial_needs_review",
|
|
144265
|
+
* "display_name": "Agent change on trial needs a decision",
|
|
144266
|
+
* "help_summary": "Tells admins who manage AI agents that an accepted change has been on trial for its minimum time with too few runs to promote or roll back on its own.",
|
|
144267
|
+
* "audience": "operator",
|
|
144268
|
+
* "editability": "operator",
|
|
144269
|
+
* "status": "active",
|
|
144270
|
+
* "replacement_slug": null,
|
|
144271
|
+
* "channel": "email",
|
|
144272
|
+
* "inheritance": "inherited",
|
|
144273
|
+
* "health_ok": true,
|
|
144274
|
+
* "health_errors": [],
|
|
144275
|
+
* "can_edit": true,
|
|
144276
|
+
* "read_only": false
|
|
144277
|
+
* },
|
|
144278
|
+
* {
|
|
144279
|
+
* "slug": "account_notice_reply_answer",
|
|
144280
|
+
* "display_name": "Notices address reply answer",
|
|
144281
|
+
* "help_summary": "Retired. Replies to notices used to get this automatic answer; notices now come from an address that doesn't take replies, and each one links to the page it's about.",
|
|
144282
|
+
* "audience": "operator",
|
|
144283
|
+
* "editability": "operator",
|
|
144284
|
+
* "status": "deprecated",
|
|
144285
|
+
* "replacement_slug": null,
|
|
144286
|
+
* "channel": "email",
|
|
144287
|
+
* "inheritance": "inherited",
|
|
144288
|
+
* "health_ok": true,
|
|
144289
|
+
* "health_errors": [],
|
|
144290
|
+
* "can_edit": false,
|
|
144291
|
+
* "read_only": true
|
|
144292
|
+
* },
|
|
144293
|
+
* {
|
|
141378
144294
|
* "slug": "password_reset",
|
|
141379
144295
|
* "display_name": "Password reset",
|
|
141380
144296
|
* "help_summary": "Framework auth password-reset email. Visible as a system default; delivered via Laravel Mail.",
|
|
@@ -141705,6 +144621,36 @@ export interface operations {
|
|
|
141705
144621
|
* "read_only": true
|
|
141706
144622
|
* },
|
|
141707
144623
|
* {
|
|
144624
|
+
* "slug": "agent_auto_paused",
|
|
144625
|
+
* "display_name": "Agents: paused automatically",
|
|
144626
|
+
* "help_summary": "Sent to the agent's owner and the carrier's admins when the agent circuit breaker turns an agent off. Platform-editable; delivered via platform security mail.",
|
|
144627
|
+
* "audience": "system",
|
|
144628
|
+
* "editability": "platform",
|
|
144629
|
+
* "status": "active",
|
|
144630
|
+
* "replacement_slug": null,
|
|
144631
|
+
* "channel": "email",
|
|
144632
|
+
* "inheritance": "inherited",
|
|
144633
|
+
* "health_ok": true,
|
|
144634
|
+
* "health_errors": [],
|
|
144635
|
+
* "can_edit": false,
|
|
144636
|
+
* "read_only": true
|
|
144637
|
+
* },
|
|
144638
|
+
* {
|
|
144639
|
+
* "slug": "agent_budget_exhausted",
|
|
144640
|
+
* "display_name": "Agents: budget reached",
|
|
144641
|
+
* "help_summary": "Sent to the agent's owner (or the carrier's admins when it has none) when an agent hits a per-agent cap and a run waits for a person. At most once a day per agent and cap. Platform-editable; delivered via platform security mail.",
|
|
144642
|
+
* "audience": "system",
|
|
144643
|
+
* "editability": "platform",
|
|
144644
|
+
* "status": "active",
|
|
144645
|
+
* "replacement_slug": null,
|
|
144646
|
+
* "channel": "email",
|
|
144647
|
+
* "inheritance": "inherited",
|
|
144648
|
+
* "health_ok": true,
|
|
144649
|
+
* "health_errors": [],
|
|
144650
|
+
* "can_edit": false,
|
|
144651
|
+
* "read_only": true
|
|
144652
|
+
* },
|
|
144653
|
+
* {
|
|
141708
144654
|
* "slug": "email_verification",
|
|
141709
144655
|
* "display_name": "Email verification",
|
|
141710
144656
|
* "help_summary": "Framework auth email-verification email. Visible as a system default; delivered via Laravel Mail.",
|
|
@@ -151563,6 +154509,12 @@ export interface operations {
|
|
|
151563
154509
|
transcript_summary?: string | null;
|
|
151564
154510
|
/** @description The outcome the summary suggests (same values as outcome); a person applies it with voice.calls.update */
|
|
151565
154511
|
suggested_outcome?: string | null;
|
|
154512
|
+
/** @description The call's team (communication_teams.list key); null when no team is set up */
|
|
154513
|
+
team_key?: string | null;
|
|
154514
|
+
/** @description The call's team name */
|
|
154515
|
+
team_name?: string | null;
|
|
154516
|
+
/** @description The caller's conversation the call is part of (conversations.get); null for a withheld number */
|
|
154517
|
+
conversation_id?: number | null;
|
|
151566
154518
|
};
|
|
151567
154519
|
};
|
|
151568
154520
|
};
|
|
@@ -151909,6 +154861,10 @@ export interface operations {
|
|
|
151909
154861
|
voicemail?: boolean | null;
|
|
151910
154862
|
/** @description Only calls handled by this person. */
|
|
151911
154863
|
handled_by_user_id?: number | null;
|
|
154864
|
+
/** @description Only calls of this team (a communication_teams.list key). */
|
|
154865
|
+
team_key?: string | null;
|
|
154866
|
+
/** @description True: only each caller's latest call while their conversation needs a reply or action (the Calls tab's To do). */
|
|
154867
|
+
to_do?: boolean | null;
|
|
151912
154868
|
/**
|
|
151913
154869
|
* @description With subject_id: only calls linked to this load, person, organization or candidate.
|
|
151914
154870
|
* @enum {string|null}
|
|
@@ -151981,6 +154937,12 @@ export interface operations {
|
|
|
151981
154937
|
outcome?: string | null;
|
|
151982
154938
|
/** @description Whether a stored recording exists */
|
|
151983
154939
|
has_recording: boolean;
|
|
154940
|
+
/** @description The call's team (communication_teams.list key); null when no team is set up */
|
|
154941
|
+
team_key?: string | null;
|
|
154942
|
+
/** @description The call's team name */
|
|
154943
|
+
team_name?: string | null;
|
|
154944
|
+
/** @description The caller's conversation the call is part of (conversations.get); null for a withheld number */
|
|
154945
|
+
conversation_id?: number | null;
|
|
151984
154946
|
/** @description True on a tombstone (the row was deleted or recycled); other fields are absent. */
|
|
151985
154947
|
deleted?: boolean | null;
|
|
151986
154948
|
}[];
|
|
@@ -152555,7 +155517,7 @@ export interface operations {
|
|
|
152555
155517
|
};
|
|
152556
155518
|
};
|
|
152557
155519
|
};
|
|
152558
|
-
"ops.voice.
|
|
155520
|
+
"ops.voice.main_menu.set": {
|
|
152559
155521
|
parameters: {
|
|
152560
155522
|
query?: never;
|
|
152561
155523
|
header?: {
|
|
@@ -152569,17 +155531,9 @@ export interface operations {
|
|
|
152569
155531
|
};
|
|
152570
155532
|
requestBody?: {
|
|
152571
155533
|
content: {
|
|
152572
|
-
/** @example {} */
|
|
152573
155534
|
"application/json": {
|
|
152574
|
-
/** @description
|
|
152575
|
-
|
|
152576
|
-
/** @description Rows per page (default 25). */
|
|
152577
|
-
limit?: number | null;
|
|
152578
|
-
/**
|
|
152579
|
-
* Format: date-time
|
|
152580
|
-
* @description Only rows changed at or after this instant, oldest change first, with deleted rows as tombstones.
|
|
152581
|
-
*/
|
|
152582
|
-
updated_since?: string | null;
|
|
155535
|
+
/** @description Active team keys in the order callers hear them (0 to 8; from communication_teams.list) */
|
|
155536
|
+
team_keys: string[] | null;
|
|
152583
155537
|
};
|
|
152584
155538
|
};
|
|
152585
155539
|
};
|
|
@@ -152590,237 +155544,19 @@ export interface operations {
|
|
|
152590
155544
|
[name: string]: unknown;
|
|
152591
155545
|
};
|
|
152592
155546
|
content: {
|
|
152593
|
-
/**
|
|
152594
|
-
* @example {
|
|
152595
|
-
* "result": {
|
|
152596
|
-
* "items": [
|
|
152597
|
-
* {
|
|
152598
|
-
* "id": 6,
|
|
152599
|
-
* "department_key": "drivers",
|
|
152600
|
-
* "label": "Current drivers",
|
|
152601
|
-
* "ring_group_id": null,
|
|
152602
|
-
* "who_answers": "Everyone with the Hr or Accountant role",
|
|
152603
|
-
* "after_hours": "voicemail",
|
|
152604
|
-
* "voicemail_greeting": null,
|
|
152605
|
-
* "ready": false,
|
|
152606
|
-
* "deleted": null
|
|
152607
|
-
* },
|
|
152608
|
-
* {
|
|
152609
|
-
* "id": 5,
|
|
152610
|
-
* "department_key": "recruiting",
|
|
152611
|
-
* "label": "Driver hiring",
|
|
152612
|
-
* "ring_group_id": null,
|
|
152613
|
-
* "who_answers": "Everyone with the Recruiter role",
|
|
152614
|
-
* "after_hours": "voicemail",
|
|
152615
|
-
* "voicemail_greeting": null,
|
|
152616
|
-
* "ready": false,
|
|
152617
|
-
* "deleted": null
|
|
152618
|
-
* },
|
|
152619
|
-
* {
|
|
152620
|
-
* "id": 4,
|
|
152621
|
-
* "department_key": "accounting",
|
|
152622
|
-
* "label": "Billing & payments",
|
|
152623
|
-
* "ring_group_id": null,
|
|
152624
|
-
* "who_answers": "Everyone with the Accountant role",
|
|
152625
|
-
* "after_hours": "voicemail",
|
|
152626
|
-
* "voicemail_greeting": null,
|
|
152627
|
-
* "ready": false,
|
|
152628
|
-
* "deleted": null
|
|
152629
|
-
* },
|
|
152630
|
-
* {
|
|
152631
|
-
* "id": 3,
|
|
152632
|
-
* "department_key": "maintenance",
|
|
152633
|
-
* "label": "Breakdowns & maintenance",
|
|
152634
|
-
* "ring_group_id": null,
|
|
152635
|
-
* "who_answers": "Everyone with the Maintenance or Dispatcher role",
|
|
152636
|
-
* "after_hours": "ring",
|
|
152637
|
-
* "voicemail_greeting": null,
|
|
152638
|
-
* "ready": false,
|
|
152639
|
-
* "deleted": null
|
|
152640
|
-
* },
|
|
152641
|
-
* {
|
|
152642
|
-
* "id": 2,
|
|
152643
|
-
* "department_key": "safety",
|
|
152644
|
-
* "label": "Safety & compliance",
|
|
152645
|
-
* "ring_group_id": null,
|
|
152646
|
-
* "who_answers": "Everyone with the Safety or Hr role",
|
|
152647
|
-
* "after_hours": "ring",
|
|
152648
|
-
* "voicemail_greeting": "Safety is out. Leave a message.",
|
|
152649
|
-
* "ready": false,
|
|
152650
|
-
* "deleted": null
|
|
152651
|
-
* },
|
|
152652
|
-
* {
|
|
152653
|
-
* "id": 1,
|
|
152654
|
-
* "department_key": "dispatch",
|
|
152655
|
-
* "label": "Dispatch",
|
|
152656
|
-
* "ring_group_id": null,
|
|
152657
|
-
* "who_answers": "Everyone with the Dispatcher or Admin role",
|
|
152658
|
-
* "after_hours": "ring",
|
|
152659
|
-
* "voicemail_greeting": null,
|
|
152660
|
-
* "ready": true,
|
|
152661
|
-
* "deleted": null
|
|
152662
|
-
* }
|
|
152663
|
-
* ],
|
|
152664
|
-
* "next_cursor": null
|
|
152665
|
-
* }
|
|
152666
|
-
* }
|
|
152667
|
-
*/
|
|
152668
155547
|
"application/json": {
|
|
152669
155548
|
result: {
|
|
152670
|
-
/** @description
|
|
152671
|
-
|
|
152672
|
-
/** @description
|
|
152673
|
-
|
|
152674
|
-
/** @description
|
|
152675
|
-
|
|
152676
|
-
/** @description
|
|
152677
|
-
|
|
152678
|
-
/** @description The ring group that answers; null means everyone holding the default roles */
|
|
152679
|
-
ring_group_id?: number | null;
|
|
152680
|
-
/** @description Who answers, in the operator's words */
|
|
152681
|
-
who_answers: string;
|
|
152682
|
-
/** @description ring or voicemail */
|
|
152683
|
-
after_hours: string;
|
|
152684
|
-
/** @description Department voicemail greeting; null uses the default */
|
|
152685
|
-
voicemail_greeting?: string | null;
|
|
152686
|
-
/** @description Whether anyone can answer yet */
|
|
152687
|
-
ready: boolean;
|
|
152688
|
-
/** @description True on a tombstone (the row was deleted or recycled); other fields are absent. */
|
|
152689
|
-
deleted?: boolean | null;
|
|
155549
|
+
/** @description The menu in the order callers hear it */
|
|
155550
|
+
options: {
|
|
155551
|
+
/** @description What callers press */
|
|
155552
|
+
digit: number;
|
|
155553
|
+
/** @description The team */
|
|
155554
|
+
team_key: string;
|
|
155555
|
+
/** @description The team's name */
|
|
155556
|
+
name: string;
|
|
152690
155557
|
}[];
|
|
152691
|
-
/** @description
|
|
152692
|
-
|
|
152693
|
-
};
|
|
152694
|
-
};
|
|
152695
|
-
};
|
|
152696
|
-
};
|
|
152697
|
-
202: components["responses"]["Proposal"];
|
|
152698
|
-
/** @description Refused: credits_exhausted. */
|
|
152699
|
-
402: {
|
|
152700
|
-
headers: {
|
|
152701
|
-
[name: string]: unknown;
|
|
152702
|
-
};
|
|
152703
|
-
content: {
|
|
152704
|
-
"application/json": components["schemas"]["OperationError"];
|
|
152705
|
-
};
|
|
152706
|
-
};
|
|
152707
|
-
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
152708
|
-
403: {
|
|
152709
|
-
headers: {
|
|
152710
|
-
[name: string]: unknown;
|
|
152711
|
-
};
|
|
152712
|
-
content: {
|
|
152713
|
-
"application/json": components["schemas"]["OperationError"];
|
|
152714
|
-
};
|
|
152715
|
-
};
|
|
152716
|
-
/** @description Refused: not_found. */
|
|
152717
|
-
404: {
|
|
152718
|
-
headers: {
|
|
152719
|
-
[name: string]: unknown;
|
|
152720
|
-
};
|
|
152721
|
-
content: {
|
|
152722
|
-
"application/json": components["schemas"]["OperationError"];
|
|
152723
|
-
};
|
|
152724
|
-
};
|
|
152725
|
-
/** @description Refused: idempotency_conflict, stale_state. */
|
|
152726
|
-
409: {
|
|
152727
|
-
headers: {
|
|
152728
|
-
[name: string]: unknown;
|
|
152729
|
-
};
|
|
152730
|
-
content: {
|
|
152731
|
-
"application/json": components["schemas"]["OperationError"];
|
|
152732
|
-
};
|
|
152733
|
-
};
|
|
152734
|
-
/** @description Refused: operation_retired. */
|
|
152735
|
-
410: {
|
|
152736
|
-
headers: {
|
|
152737
|
-
[name: string]: unknown;
|
|
152738
|
-
};
|
|
152739
|
-
content: {
|
|
152740
|
-
"application/json": components["schemas"]["OperationError"];
|
|
152741
|
-
};
|
|
152742
|
-
};
|
|
152743
|
-
/** @description Refused: invalid_input, domain_rule. */
|
|
152744
|
-
422: {
|
|
152745
|
-
headers: {
|
|
152746
|
-
[name: string]: unknown;
|
|
152747
|
-
};
|
|
152748
|
-
content: {
|
|
152749
|
-
"application/json": components["schemas"]["OperationError"];
|
|
152750
|
-
};
|
|
152751
|
-
};
|
|
152752
|
-
/** @description Refused: rate_limited. */
|
|
152753
|
-
429: {
|
|
152754
|
-
headers: {
|
|
152755
|
-
[name: string]: unknown;
|
|
152756
|
-
};
|
|
152757
|
-
content: {
|
|
152758
|
-
"application/json": components["schemas"]["OperationError"];
|
|
152759
|
-
};
|
|
152760
|
-
};
|
|
152761
|
-
};
|
|
152762
|
-
};
|
|
152763
|
-
"ops.voice.departments.update": {
|
|
152764
|
-
parameters: {
|
|
152765
|
-
query?: never;
|
|
152766
|
-
header?: {
|
|
152767
|
-
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
152768
|
-
"Idempotency-Key"?: string;
|
|
152769
|
-
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
152770
|
-
"Axivoy-Dry-Run"?: "true" | "false";
|
|
152771
|
-
};
|
|
152772
|
-
path?: never;
|
|
152773
|
-
cookie?: never;
|
|
152774
|
-
};
|
|
152775
|
-
requestBody?: {
|
|
152776
|
-
content: {
|
|
152777
|
-
/**
|
|
152778
|
-
* @example {
|
|
152779
|
-
* "department_key": "safety",
|
|
152780
|
-
* "after_hours": "ring",
|
|
152781
|
-
* "voicemail_greeting": "Safety is out. Leave a message."
|
|
152782
|
-
* }
|
|
152783
|
-
*/
|
|
152784
|
-
"application/json": {
|
|
152785
|
-
/**
|
|
152786
|
-
* @description The department (from voice.departments.list)
|
|
152787
|
-
* @enum {string}
|
|
152788
|
-
*/
|
|
152789
|
-
department_key: "dispatch" | "safety" | "maintenance" | "accounting" | "recruiting" | "drivers";
|
|
152790
|
-
/** @description The ring group that answers; null for everyone holding the default roles */
|
|
152791
|
-
ring_group_id?: number | null;
|
|
152792
|
-
/**
|
|
152793
|
-
* @description ring or voicemail when the company is closed
|
|
152794
|
-
* @enum {string|null}
|
|
152795
|
-
*/
|
|
152796
|
-
after_hours?: "ring" | "voicemail" | null;
|
|
152797
|
-
/** @description What callers hear before the tone; empty uses the default */
|
|
152798
|
-
voicemail_greeting?: string | null;
|
|
152799
|
-
};
|
|
152800
|
-
};
|
|
152801
|
-
};
|
|
152802
|
-
responses: {
|
|
152803
|
-
/** @description The operation ran. */
|
|
152804
|
-
200: {
|
|
152805
|
-
headers: {
|
|
152806
|
-
[name: string]: unknown;
|
|
152807
|
-
};
|
|
152808
|
-
content: {
|
|
152809
|
-
/**
|
|
152810
|
-
* @example {
|
|
152811
|
-
* "result": {
|
|
152812
|
-
* "department_key": "safety",
|
|
152813
|
-
* "ready": false,
|
|
152814
|
-
* "message": "Safety & compliance saved."
|
|
152815
|
-
* }
|
|
152816
|
-
* }
|
|
152817
|
-
*/
|
|
152818
|
-
"application/json": {
|
|
152819
|
-
result: {
|
|
152820
|
-
/** @description The department */
|
|
152821
|
-
department_key: string;
|
|
152822
|
-
/** @description Whether anyone can answer yet */
|
|
152823
|
-
ready: boolean;
|
|
155558
|
+
/** @description What callers hear after the greeting */
|
|
155559
|
+
prompt: string;
|
|
152824
155560
|
/** @description What happened, in the operator's words */
|
|
152825
155561
|
message: string;
|
|
152826
155562
|
};
|
|
@@ -154878,16 +157614,26 @@ export interface operations {
|
|
|
154878
157614
|
is_main: boolean;
|
|
154879
157615
|
/** @description What Axivoy does with calls to it: on, off, needs_setup or elsewhere */
|
|
154880
157616
|
calls: string;
|
|
154881
|
-
/** @description Where its calls go today when calls is elsewhere (host only) */
|
|
157617
|
+
/** @description Where its calls go today when calls is elsewhere (host only, for support; screens say "Calls use a custom setup") */
|
|
154882
157618
|
calls_elsewhere_host?: string | null;
|
|
157619
|
+
/** @description The number a custom setup forwards calls to (+1 format), when calls is elsewhere and the setup is a forward link Axivoy could read */
|
|
157620
|
+
calls_elsewhere_forward_to?: string | null;
|
|
154883
157621
|
/** @description What Axivoy does with texts: on, failed, needs_registration, receive_only (texts reach the Inbox, replies go from the main number) or not_connected */
|
|
154884
157622
|
texts: string;
|
|
154885
157623
|
/** @description Why turning on texting failed, when texts is failed */
|
|
154886
157624
|
texting_error?: string | null;
|
|
154887
157625
|
/** @description Whether new texts go from this number */
|
|
154888
157626
|
is_main_texting_number: boolean;
|
|
154889
|
-
/** @description
|
|
157627
|
+
/** @description The team whose Inbox texts to it land in (the default team when the number is not set to a team); null while texts don't reach Axivoy */
|
|
157628
|
+
texts_team_key?: string | null;
|
|
157629
|
+
/** @description That team's name */
|
|
157630
|
+
texts_team_name?: string | null;
|
|
157631
|
+
/** @description How the number answers calls: team (rings one team when calls_team_key is set, else everyone available, then voicemail), menu or forward */
|
|
154890
157632
|
answers_with: string;
|
|
157633
|
+
/** @description The team the number rings, when answers_with is team; null rings everyone available */
|
|
157634
|
+
calls_team_key?: string | null;
|
|
157635
|
+
/** @description That team's name */
|
|
157636
|
+
calls_team_name?: string | null;
|
|
154891
157637
|
/** @description The phone menu it answers with, when answers_with is menu */
|
|
154892
157638
|
menu_id?: number | null;
|
|
154893
157639
|
/** @description That phone menu's name */
|
|
@@ -155142,6 +157888,8 @@ export interface operations {
|
|
|
155142
157888
|
* @enum {string}
|
|
155143
157889
|
*/
|
|
155144
157890
|
answer_with: "team" | "menu" | "forward";
|
|
157891
|
+
/** @description The team the number rings, when answer_with is team (a key from communication_teams.list); leave out to ring everyone available */
|
|
157892
|
+
team_key?: string | null;
|
|
155145
157893
|
/** @description The phone menu, when answer_with is menu (or builtin_key) */
|
|
155146
157894
|
menu_id?: number | null;
|
|
155147
157895
|
/**
|
|
@@ -155184,6 +157932,8 @@ export interface operations {
|
|
|
155184
157932
|
number_id: number;
|
|
155185
157933
|
/** @description How it answers calls now: team, menu or forward */
|
|
155186
157934
|
answers_with: string;
|
|
157935
|
+
/** @description The team it rings when it answers with team; null when it rings everyone available */
|
|
157936
|
+
team_key?: string | null;
|
|
155187
157937
|
/** @description What Axivoy does with calls to it now: on, or needs_setup for a number at another provider */
|
|
155188
157938
|
calls: string;
|
|
155189
157939
|
/** @description Whether calls were turned on for the number by this change */
|
|
@@ -155620,6 +158370,113 @@ export interface operations {
|
|
|
155620
158370
|
};
|
|
155621
158371
|
};
|
|
155622
158372
|
};
|
|
158373
|
+
"ops.voice.numbers.texting.set_team": {
|
|
158374
|
+
parameters: {
|
|
158375
|
+
query?: never;
|
|
158376
|
+
header?: {
|
|
158377
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
158378
|
+
"Idempotency-Key"?: string;
|
|
158379
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
158380
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
158381
|
+
};
|
|
158382
|
+
path?: never;
|
|
158383
|
+
cookie?: never;
|
|
158384
|
+
};
|
|
158385
|
+
requestBody?: {
|
|
158386
|
+
content: {
|
|
158387
|
+
"application/json": {
|
|
158388
|
+
/** @description A number the company holds, active, with texts on or receive only (from voice.numbers.list) */
|
|
158389
|
+
number_id: number;
|
|
158390
|
+
/** @description An active team key (from communication_teams.list); empty means the default team */
|
|
158391
|
+
team_key?: string | null;
|
|
158392
|
+
};
|
|
158393
|
+
};
|
|
158394
|
+
};
|
|
158395
|
+
responses: {
|
|
158396
|
+
/** @description The operation ran. */
|
|
158397
|
+
200: {
|
|
158398
|
+
headers: {
|
|
158399
|
+
[name: string]: unknown;
|
|
158400
|
+
};
|
|
158401
|
+
content: {
|
|
158402
|
+
"application/json": {
|
|
158403
|
+
result: {
|
|
158404
|
+
/** @description The phone number */
|
|
158405
|
+
number_id: number;
|
|
158406
|
+
/** @description The team its texts are set to; null when they go to the default team */
|
|
158407
|
+
team_key?: string | null;
|
|
158408
|
+
/** @description What happened, in the operator's words */
|
|
158409
|
+
message: string;
|
|
158410
|
+
};
|
|
158411
|
+
};
|
|
158412
|
+
};
|
|
158413
|
+
};
|
|
158414
|
+
202: components["responses"]["Proposal"];
|
|
158415
|
+
/** @description Refused: credits_exhausted. */
|
|
158416
|
+
402: {
|
|
158417
|
+
headers: {
|
|
158418
|
+
[name: string]: unknown;
|
|
158419
|
+
};
|
|
158420
|
+
content: {
|
|
158421
|
+
"application/json": components["schemas"]["OperationError"];
|
|
158422
|
+
};
|
|
158423
|
+
};
|
|
158424
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
158425
|
+
403: {
|
|
158426
|
+
headers: {
|
|
158427
|
+
[name: string]: unknown;
|
|
158428
|
+
};
|
|
158429
|
+
content: {
|
|
158430
|
+
"application/json": components["schemas"]["OperationError"];
|
|
158431
|
+
};
|
|
158432
|
+
};
|
|
158433
|
+
/** @description Refused: not_found. */
|
|
158434
|
+
404: {
|
|
158435
|
+
headers: {
|
|
158436
|
+
[name: string]: unknown;
|
|
158437
|
+
};
|
|
158438
|
+
content: {
|
|
158439
|
+
"application/json": components["schemas"]["OperationError"];
|
|
158440
|
+
};
|
|
158441
|
+
};
|
|
158442
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
158443
|
+
409: {
|
|
158444
|
+
headers: {
|
|
158445
|
+
[name: string]: unknown;
|
|
158446
|
+
};
|
|
158447
|
+
content: {
|
|
158448
|
+
"application/json": components["schemas"]["OperationError"];
|
|
158449
|
+
};
|
|
158450
|
+
};
|
|
158451
|
+
/** @description Refused: operation_retired. */
|
|
158452
|
+
410: {
|
|
158453
|
+
headers: {
|
|
158454
|
+
[name: string]: unknown;
|
|
158455
|
+
};
|
|
158456
|
+
content: {
|
|
158457
|
+
"application/json": components["schemas"]["OperationError"];
|
|
158458
|
+
};
|
|
158459
|
+
};
|
|
158460
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
158461
|
+
422: {
|
|
158462
|
+
headers: {
|
|
158463
|
+
[name: string]: unknown;
|
|
158464
|
+
};
|
|
158465
|
+
content: {
|
|
158466
|
+
"application/json": components["schemas"]["OperationError"];
|
|
158467
|
+
};
|
|
158468
|
+
};
|
|
158469
|
+
/** @description Refused: rate_limited. */
|
|
158470
|
+
429: {
|
|
158471
|
+
headers: {
|
|
158472
|
+
[name: string]: unknown;
|
|
158473
|
+
};
|
|
158474
|
+
content: {
|
|
158475
|
+
"application/json": components["schemas"]["OperationError"];
|
|
158476
|
+
};
|
|
158477
|
+
};
|
|
158478
|
+
};
|
|
158479
|
+
};
|
|
155623
158480
|
"ops.voice.port_in.cancel": {
|
|
155624
158481
|
parameters: {
|
|
155625
158482
|
query?: never;
|