@ravi-os/sdk 0.260716.1 → 0.260725.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +53 -0
- package/dist/channel-backend.d.ts +246 -0
- package/dist/channel-backend.d.ts.map +1 -0
- package/dist/channel-backend.js +193 -0
- package/dist/channel-backend.js.map +1 -0
- package/dist/channel-runtime-events.d.ts +801 -0
- package/dist/channel-runtime-events.d.ts.map +1 -0
- package/dist/channel-runtime-events.js +184 -0
- package/dist/channel-runtime-events.js.map +1 -0
- package/dist/client.d.ts +74 -2
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +48 -2
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/local-agent-reconciliation.d.ts +172 -0
- package/dist/local-agent-reconciliation.d.ts.map +1 -0
- package/dist/local-agent-reconciliation.js +597 -0
- package/dist/local-agent-reconciliation.js.map +1 -0
- package/dist/native-channel-driver.d.ts +199 -0
- package/dist/native-channel-driver.d.ts.map +1 -0
- package/dist/native-channel-driver.js +55 -0
- package/dist/native-channel-driver.js.map +1 -0
- package/dist/schemas.d.ts +2936 -84
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +3970 -209
- package/dist/schemas.js.map +1 -1
- package/dist/types.d.ts +716 -15
- package/dist/types.d.ts.map +1 -1
- package/dist/version.d.ts +2 -2
- package/dist/version.js +2 -2
- package/package.json +17 -1
package/dist/schemas.js
CHANGED
|
@@ -858,12 +858,341 @@ export const AgentsListInputSchema = {
|
|
|
858
858
|
};
|
|
859
859
|
/** JSON Schema for the return shape of `agents.list`. */
|
|
860
860
|
export const AgentsListReturnSchema = {
|
|
861
|
-
"
|
|
861
|
+
"$defs": {
|
|
862
|
+
"__schema0": {
|
|
863
|
+
"anyOf": [
|
|
864
|
+
{
|
|
865
|
+
"anyOf": [
|
|
866
|
+
{
|
|
867
|
+
"type": "string"
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
"type": "number"
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
"type": "boolean"
|
|
874
|
+
},
|
|
875
|
+
{
|
|
876
|
+
"type": "null"
|
|
877
|
+
}
|
|
878
|
+
]
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
"items": {
|
|
882
|
+
"$ref": "#/$defs/__schema0"
|
|
883
|
+
},
|
|
884
|
+
"type": "array"
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
"additionalProperties": {
|
|
888
|
+
"$ref": "#/$defs/__schema0"
|
|
889
|
+
},
|
|
890
|
+
"propertyNames": {
|
|
891
|
+
"type": "string"
|
|
892
|
+
},
|
|
893
|
+
"type": "object"
|
|
894
|
+
}
|
|
895
|
+
]
|
|
896
|
+
}
|
|
897
|
+
},
|
|
898
|
+
"additionalProperties": false,
|
|
862
899
|
"properties": {
|
|
863
900
|
"agents": {
|
|
864
901
|
"items": {
|
|
865
|
-
"additionalProperties":
|
|
866
|
-
"properties": {
|
|
902
|
+
"additionalProperties": false,
|
|
903
|
+
"properties": {
|
|
904
|
+
"allowedSessions": {
|
|
905
|
+
"items": {
|
|
906
|
+
"type": "string"
|
|
907
|
+
},
|
|
908
|
+
"type": "array"
|
|
909
|
+
},
|
|
910
|
+
"contactScope": {
|
|
911
|
+
"type": "string"
|
|
912
|
+
},
|
|
913
|
+
"cwd": {
|
|
914
|
+
"type": "string"
|
|
915
|
+
},
|
|
916
|
+
"debounceMs": {
|
|
917
|
+
"type": "number"
|
|
918
|
+
},
|
|
919
|
+
"defaults": {
|
|
920
|
+
"anyOf": [
|
|
921
|
+
{
|
|
922
|
+
"additionalProperties": {
|
|
923
|
+
"$ref": "#/$defs/__schema0"
|
|
924
|
+
},
|
|
925
|
+
"propertyNames": {
|
|
926
|
+
"type": "string"
|
|
927
|
+
},
|
|
928
|
+
"type": "object"
|
|
929
|
+
},
|
|
930
|
+
{
|
|
931
|
+
"type": "null"
|
|
932
|
+
}
|
|
933
|
+
]
|
|
934
|
+
},
|
|
935
|
+
"dmScope": {
|
|
936
|
+
"enum": [
|
|
937
|
+
"main",
|
|
938
|
+
"per-peer",
|
|
939
|
+
"per-channel-peer",
|
|
940
|
+
"per-account-channel-peer"
|
|
941
|
+
],
|
|
942
|
+
"type": "string"
|
|
943
|
+
},
|
|
944
|
+
"effectiveModel": {
|
|
945
|
+
"anyOf": [
|
|
946
|
+
{
|
|
947
|
+
"type": "string"
|
|
948
|
+
},
|
|
949
|
+
{
|
|
950
|
+
"type": "null"
|
|
951
|
+
}
|
|
952
|
+
]
|
|
953
|
+
},
|
|
954
|
+
"effectiveProvider": {
|
|
955
|
+
"type": "string"
|
|
956
|
+
},
|
|
957
|
+
"effort": {
|
|
958
|
+
"enum": [
|
|
959
|
+
"none",
|
|
960
|
+
"minimal",
|
|
961
|
+
"low",
|
|
962
|
+
"medium",
|
|
963
|
+
"high",
|
|
964
|
+
"xhigh",
|
|
965
|
+
"max",
|
|
966
|
+
"ultra"
|
|
967
|
+
],
|
|
968
|
+
"type": "string"
|
|
969
|
+
},
|
|
970
|
+
"groupDebounceMs": {
|
|
971
|
+
"type": "number"
|
|
972
|
+
},
|
|
973
|
+
"heartbeat": {
|
|
974
|
+
"additionalProperties": false,
|
|
975
|
+
"properties": {
|
|
976
|
+
"accountId": {
|
|
977
|
+
"type": "string"
|
|
978
|
+
},
|
|
979
|
+
"activeEnd": {
|
|
980
|
+
"type": "string"
|
|
981
|
+
},
|
|
982
|
+
"activeStart": {
|
|
983
|
+
"type": "string"
|
|
984
|
+
},
|
|
985
|
+
"enabled": {
|
|
986
|
+
"type": "boolean"
|
|
987
|
+
},
|
|
988
|
+
"intervalMs": {
|
|
989
|
+
"type": "number"
|
|
990
|
+
},
|
|
991
|
+
"lastRunAt": {
|
|
992
|
+
"type": "number"
|
|
993
|
+
},
|
|
994
|
+
"model": {
|
|
995
|
+
"type": "string"
|
|
996
|
+
}
|
|
997
|
+
},
|
|
998
|
+
"required": [
|
|
999
|
+
"enabled",
|
|
1000
|
+
"intervalMs"
|
|
1001
|
+
],
|
|
1002
|
+
"type": "object"
|
|
1003
|
+
},
|
|
1004
|
+
"id": {
|
|
1005
|
+
"type": "string"
|
|
1006
|
+
},
|
|
1007
|
+
"isDefault": {
|
|
1008
|
+
"type": "boolean"
|
|
1009
|
+
},
|
|
1010
|
+
"matrixAccount": {
|
|
1011
|
+
"type": "string"
|
|
1012
|
+
},
|
|
1013
|
+
"memoryModel": {
|
|
1014
|
+
"type": "string"
|
|
1015
|
+
},
|
|
1016
|
+
"mode": {
|
|
1017
|
+
"enum": [
|
|
1018
|
+
"active",
|
|
1019
|
+
"sentinel"
|
|
1020
|
+
],
|
|
1021
|
+
"type": "string"
|
|
1022
|
+
},
|
|
1023
|
+
"model": {
|
|
1024
|
+
"type": "string"
|
|
1025
|
+
},
|
|
1026
|
+
"modelPresetId": {
|
|
1027
|
+
"anyOf": [
|
|
1028
|
+
{
|
|
1029
|
+
"type": "string"
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
"type": "null"
|
|
1033
|
+
}
|
|
1034
|
+
]
|
|
1035
|
+
},
|
|
1036
|
+
"modelPresetVersion": {
|
|
1037
|
+
"anyOf": [
|
|
1038
|
+
{
|
|
1039
|
+
"type": "number"
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
"type": "null"
|
|
1043
|
+
}
|
|
1044
|
+
]
|
|
1045
|
+
},
|
|
1046
|
+
"modelSource": {
|
|
1047
|
+
"anyOf": [
|
|
1048
|
+
{
|
|
1049
|
+
"enum": [
|
|
1050
|
+
"agent_preset",
|
|
1051
|
+
"agent_default",
|
|
1052
|
+
"global_default"
|
|
1053
|
+
],
|
|
1054
|
+
"type": "string"
|
|
1055
|
+
},
|
|
1056
|
+
{
|
|
1057
|
+
"type": "null"
|
|
1058
|
+
}
|
|
1059
|
+
]
|
|
1060
|
+
},
|
|
1061
|
+
"name": {
|
|
1062
|
+
"type": "string"
|
|
1063
|
+
},
|
|
1064
|
+
"provider": {
|
|
1065
|
+
"type": "string"
|
|
1066
|
+
},
|
|
1067
|
+
"remote": {
|
|
1068
|
+
"type": "string"
|
|
1069
|
+
},
|
|
1070
|
+
"remoteUser": {
|
|
1071
|
+
"type": "string"
|
|
1072
|
+
},
|
|
1073
|
+
"settingSources": {
|
|
1074
|
+
"items": {
|
|
1075
|
+
"enum": [
|
|
1076
|
+
"user",
|
|
1077
|
+
"project"
|
|
1078
|
+
],
|
|
1079
|
+
"type": "string"
|
|
1080
|
+
},
|
|
1081
|
+
"type": "array"
|
|
1082
|
+
},
|
|
1083
|
+
"specMode": {
|
|
1084
|
+
"type": "boolean"
|
|
1085
|
+
},
|
|
1086
|
+
"systemPromptAppend": {
|
|
1087
|
+
"type": "string"
|
|
1088
|
+
},
|
|
1089
|
+
"tags": {
|
|
1090
|
+
"items": {
|
|
1091
|
+
"additionalProperties": false,
|
|
1092
|
+
"properties": {
|
|
1093
|
+
"assetId": {
|
|
1094
|
+
"type": "string"
|
|
1095
|
+
},
|
|
1096
|
+
"assetType": {
|
|
1097
|
+
"enum": [
|
|
1098
|
+
"agent",
|
|
1099
|
+
"automation",
|
|
1100
|
+
"app",
|
|
1101
|
+
"session",
|
|
1102
|
+
"task",
|
|
1103
|
+
"project",
|
|
1104
|
+
"profile",
|
|
1105
|
+
"contact",
|
|
1106
|
+
"chat",
|
|
1107
|
+
"route",
|
|
1108
|
+
"instance",
|
|
1109
|
+
"artifact",
|
|
1110
|
+
"insight",
|
|
1111
|
+
"workflow_spec",
|
|
1112
|
+
"workflow_run",
|
|
1113
|
+
"workflow_node",
|
|
1114
|
+
"cron_job",
|
|
1115
|
+
"trigger",
|
|
1116
|
+
"hook",
|
|
1117
|
+
"task_automation",
|
|
1118
|
+
"observer_rule",
|
|
1119
|
+
"observer_binding",
|
|
1120
|
+
"observer_profile",
|
|
1121
|
+
"command",
|
|
1122
|
+
"skill",
|
|
1123
|
+
"skill_gate_rule",
|
|
1124
|
+
"context",
|
|
1125
|
+
"call_profile",
|
|
1126
|
+
"call_request",
|
|
1127
|
+
"call_voice_agent",
|
|
1128
|
+
"call_tool",
|
|
1129
|
+
"outbound_queue",
|
|
1130
|
+
"outbound_entry",
|
|
1131
|
+
"spec",
|
|
1132
|
+
"devin_session"
|
|
1133
|
+
],
|
|
1134
|
+
"type": "string"
|
|
1135
|
+
},
|
|
1136
|
+
"createdAt": {
|
|
1137
|
+
"type": "number"
|
|
1138
|
+
},
|
|
1139
|
+
"createdBy": {
|
|
1140
|
+
"type": "string"
|
|
1141
|
+
},
|
|
1142
|
+
"id": {
|
|
1143
|
+
"type": "string"
|
|
1144
|
+
},
|
|
1145
|
+
"metadata": {
|
|
1146
|
+
"additionalProperties": {
|
|
1147
|
+
"$ref": "#/$defs/__schema0"
|
|
1148
|
+
},
|
|
1149
|
+
"propertyNames": {
|
|
1150
|
+
"type": "string"
|
|
1151
|
+
},
|
|
1152
|
+
"type": "object"
|
|
1153
|
+
},
|
|
1154
|
+
"source": {
|
|
1155
|
+
"type": "string"
|
|
1156
|
+
},
|
|
1157
|
+
"tagId": {
|
|
1158
|
+
"type": "string"
|
|
1159
|
+
},
|
|
1160
|
+
"tagSlug": {
|
|
1161
|
+
"type": "string"
|
|
1162
|
+
},
|
|
1163
|
+
"updatedAt": {
|
|
1164
|
+
"type": "number"
|
|
1165
|
+
},
|
|
1166
|
+
"updatedBy": {
|
|
1167
|
+
"type": "string"
|
|
1168
|
+
}
|
|
1169
|
+
},
|
|
1170
|
+
"required": [
|
|
1171
|
+
"id",
|
|
1172
|
+
"tagId",
|
|
1173
|
+
"tagSlug",
|
|
1174
|
+
"assetType",
|
|
1175
|
+
"assetId",
|
|
1176
|
+
"source",
|
|
1177
|
+
"createdAt",
|
|
1178
|
+
"updatedAt"
|
|
1179
|
+
],
|
|
1180
|
+
"type": "object"
|
|
1181
|
+
},
|
|
1182
|
+
"type": "array"
|
|
1183
|
+
}
|
|
1184
|
+
},
|
|
1185
|
+
"required": [
|
|
1186
|
+
"id",
|
|
1187
|
+
"cwd",
|
|
1188
|
+
"modelPresetId",
|
|
1189
|
+
"isDefault",
|
|
1190
|
+
"effectiveProvider",
|
|
1191
|
+
"effectiveModel",
|
|
1192
|
+
"modelSource",
|
|
1193
|
+
"modelPresetVersion",
|
|
1194
|
+
"tags"
|
|
1195
|
+
],
|
|
867
1196
|
"type": "object"
|
|
868
1197
|
},
|
|
869
1198
|
"type": "array"
|
|
@@ -872,20 +1201,326 @@ export const AgentsListReturnSchema = {
|
|
|
872
1201
|
"type": "string"
|
|
873
1202
|
},
|
|
874
1203
|
"filters": {
|
|
875
|
-
"additionalProperties":
|
|
876
|
-
"properties": {
|
|
1204
|
+
"additionalProperties": false,
|
|
1205
|
+
"properties": {
|
|
1206
|
+
"tag": {
|
|
1207
|
+
"anyOf": [
|
|
1208
|
+
{
|
|
1209
|
+
"type": "string"
|
|
1210
|
+
},
|
|
1211
|
+
{
|
|
1212
|
+
"type": "null"
|
|
1213
|
+
}
|
|
1214
|
+
]
|
|
1215
|
+
}
|
|
1216
|
+
},
|
|
1217
|
+
"required": [
|
|
1218
|
+
"tag"
|
|
1219
|
+
],
|
|
877
1220
|
"type": "object"
|
|
878
1221
|
},
|
|
879
1222
|
"items": {
|
|
880
1223
|
"items": {
|
|
881
|
-
"additionalProperties":
|
|
882
|
-
"properties": {
|
|
1224
|
+
"additionalProperties": false,
|
|
1225
|
+
"properties": {
|
|
1226
|
+
"allowedSessions": {
|
|
1227
|
+
"items": {
|
|
1228
|
+
"type": "string"
|
|
1229
|
+
},
|
|
1230
|
+
"type": "array"
|
|
1231
|
+
},
|
|
1232
|
+
"contactScope": {
|
|
1233
|
+
"type": "string"
|
|
1234
|
+
},
|
|
1235
|
+
"cwd": {
|
|
1236
|
+
"type": "string"
|
|
1237
|
+
},
|
|
1238
|
+
"debounceMs": {
|
|
1239
|
+
"type": "number"
|
|
1240
|
+
},
|
|
1241
|
+
"defaults": {
|
|
1242
|
+
"anyOf": [
|
|
1243
|
+
{
|
|
1244
|
+
"additionalProperties": {
|
|
1245
|
+
"$ref": "#/$defs/__schema0"
|
|
1246
|
+
},
|
|
1247
|
+
"propertyNames": {
|
|
1248
|
+
"type": "string"
|
|
1249
|
+
},
|
|
1250
|
+
"type": "object"
|
|
1251
|
+
},
|
|
1252
|
+
{
|
|
1253
|
+
"type": "null"
|
|
1254
|
+
}
|
|
1255
|
+
]
|
|
1256
|
+
},
|
|
1257
|
+
"dmScope": {
|
|
1258
|
+
"enum": [
|
|
1259
|
+
"main",
|
|
1260
|
+
"per-peer",
|
|
1261
|
+
"per-channel-peer",
|
|
1262
|
+
"per-account-channel-peer"
|
|
1263
|
+
],
|
|
1264
|
+
"type": "string"
|
|
1265
|
+
},
|
|
1266
|
+
"effectiveModel": {
|
|
1267
|
+
"anyOf": [
|
|
1268
|
+
{
|
|
1269
|
+
"type": "string"
|
|
1270
|
+
},
|
|
1271
|
+
{
|
|
1272
|
+
"type": "null"
|
|
1273
|
+
}
|
|
1274
|
+
]
|
|
1275
|
+
},
|
|
1276
|
+
"effectiveProvider": {
|
|
1277
|
+
"type": "string"
|
|
1278
|
+
},
|
|
1279
|
+
"effort": {
|
|
1280
|
+
"enum": [
|
|
1281
|
+
"none",
|
|
1282
|
+
"minimal",
|
|
1283
|
+
"low",
|
|
1284
|
+
"medium",
|
|
1285
|
+
"high",
|
|
1286
|
+
"xhigh",
|
|
1287
|
+
"max",
|
|
1288
|
+
"ultra"
|
|
1289
|
+
],
|
|
1290
|
+
"type": "string"
|
|
1291
|
+
},
|
|
1292
|
+
"groupDebounceMs": {
|
|
1293
|
+
"type": "number"
|
|
1294
|
+
},
|
|
1295
|
+
"heartbeat": {
|
|
1296
|
+
"additionalProperties": false,
|
|
1297
|
+
"properties": {
|
|
1298
|
+
"accountId": {
|
|
1299
|
+
"type": "string"
|
|
1300
|
+
},
|
|
1301
|
+
"activeEnd": {
|
|
1302
|
+
"type": "string"
|
|
1303
|
+
},
|
|
1304
|
+
"activeStart": {
|
|
1305
|
+
"type": "string"
|
|
1306
|
+
},
|
|
1307
|
+
"enabled": {
|
|
1308
|
+
"type": "boolean"
|
|
1309
|
+
},
|
|
1310
|
+
"intervalMs": {
|
|
1311
|
+
"type": "number"
|
|
1312
|
+
},
|
|
1313
|
+
"lastRunAt": {
|
|
1314
|
+
"type": "number"
|
|
1315
|
+
},
|
|
1316
|
+
"model": {
|
|
1317
|
+
"type": "string"
|
|
1318
|
+
}
|
|
1319
|
+
},
|
|
1320
|
+
"required": [
|
|
1321
|
+
"enabled",
|
|
1322
|
+
"intervalMs"
|
|
1323
|
+
],
|
|
1324
|
+
"type": "object"
|
|
1325
|
+
},
|
|
1326
|
+
"id": {
|
|
1327
|
+
"type": "string"
|
|
1328
|
+
},
|
|
1329
|
+
"isDefault": {
|
|
1330
|
+
"type": "boolean"
|
|
1331
|
+
},
|
|
1332
|
+
"matrixAccount": {
|
|
1333
|
+
"type": "string"
|
|
1334
|
+
},
|
|
1335
|
+
"memoryModel": {
|
|
1336
|
+
"type": "string"
|
|
1337
|
+
},
|
|
1338
|
+
"mode": {
|
|
1339
|
+
"enum": [
|
|
1340
|
+
"active",
|
|
1341
|
+
"sentinel"
|
|
1342
|
+
],
|
|
1343
|
+
"type": "string"
|
|
1344
|
+
},
|
|
1345
|
+
"model": {
|
|
1346
|
+
"type": "string"
|
|
1347
|
+
},
|
|
1348
|
+
"modelPresetId": {
|
|
1349
|
+
"anyOf": [
|
|
1350
|
+
{
|
|
1351
|
+
"type": "string"
|
|
1352
|
+
},
|
|
1353
|
+
{
|
|
1354
|
+
"type": "null"
|
|
1355
|
+
}
|
|
1356
|
+
]
|
|
1357
|
+
},
|
|
1358
|
+
"modelPresetVersion": {
|
|
1359
|
+
"anyOf": [
|
|
1360
|
+
{
|
|
1361
|
+
"type": "number"
|
|
1362
|
+
},
|
|
1363
|
+
{
|
|
1364
|
+
"type": "null"
|
|
1365
|
+
}
|
|
1366
|
+
]
|
|
1367
|
+
},
|
|
1368
|
+
"modelSource": {
|
|
1369
|
+
"anyOf": [
|
|
1370
|
+
{
|
|
1371
|
+
"enum": [
|
|
1372
|
+
"agent_preset",
|
|
1373
|
+
"agent_default",
|
|
1374
|
+
"global_default"
|
|
1375
|
+
],
|
|
1376
|
+
"type": "string"
|
|
1377
|
+
},
|
|
1378
|
+
{
|
|
1379
|
+
"type": "null"
|
|
1380
|
+
}
|
|
1381
|
+
]
|
|
1382
|
+
},
|
|
1383
|
+
"name": {
|
|
1384
|
+
"type": "string"
|
|
1385
|
+
},
|
|
1386
|
+
"provider": {
|
|
1387
|
+
"type": "string"
|
|
1388
|
+
},
|
|
1389
|
+
"remote": {
|
|
1390
|
+
"type": "string"
|
|
1391
|
+
},
|
|
1392
|
+
"remoteUser": {
|
|
1393
|
+
"type": "string"
|
|
1394
|
+
},
|
|
1395
|
+
"settingSources": {
|
|
1396
|
+
"items": {
|
|
1397
|
+
"enum": [
|
|
1398
|
+
"user",
|
|
1399
|
+
"project"
|
|
1400
|
+
],
|
|
1401
|
+
"type": "string"
|
|
1402
|
+
},
|
|
1403
|
+
"type": "array"
|
|
1404
|
+
},
|
|
1405
|
+
"specMode": {
|
|
1406
|
+
"type": "boolean"
|
|
1407
|
+
},
|
|
1408
|
+
"systemPromptAppend": {
|
|
1409
|
+
"type": "string"
|
|
1410
|
+
},
|
|
1411
|
+
"tags": {
|
|
1412
|
+
"items": {
|
|
1413
|
+
"additionalProperties": false,
|
|
1414
|
+
"properties": {
|
|
1415
|
+
"assetId": {
|
|
1416
|
+
"type": "string"
|
|
1417
|
+
},
|
|
1418
|
+
"assetType": {
|
|
1419
|
+
"enum": [
|
|
1420
|
+
"agent",
|
|
1421
|
+
"automation",
|
|
1422
|
+
"app",
|
|
1423
|
+
"session",
|
|
1424
|
+
"task",
|
|
1425
|
+
"project",
|
|
1426
|
+
"profile",
|
|
1427
|
+
"contact",
|
|
1428
|
+
"chat",
|
|
1429
|
+
"route",
|
|
1430
|
+
"instance",
|
|
1431
|
+
"artifact",
|
|
1432
|
+
"insight",
|
|
1433
|
+
"workflow_spec",
|
|
1434
|
+
"workflow_run",
|
|
1435
|
+
"workflow_node",
|
|
1436
|
+
"cron_job",
|
|
1437
|
+
"trigger",
|
|
1438
|
+
"hook",
|
|
1439
|
+
"task_automation",
|
|
1440
|
+
"observer_rule",
|
|
1441
|
+
"observer_binding",
|
|
1442
|
+
"observer_profile",
|
|
1443
|
+
"command",
|
|
1444
|
+
"skill",
|
|
1445
|
+
"skill_gate_rule",
|
|
1446
|
+
"context",
|
|
1447
|
+
"call_profile",
|
|
1448
|
+
"call_request",
|
|
1449
|
+
"call_voice_agent",
|
|
1450
|
+
"call_tool",
|
|
1451
|
+
"outbound_queue",
|
|
1452
|
+
"outbound_entry",
|
|
1453
|
+
"spec",
|
|
1454
|
+
"devin_session"
|
|
1455
|
+
],
|
|
1456
|
+
"type": "string"
|
|
1457
|
+
},
|
|
1458
|
+
"createdAt": {
|
|
1459
|
+
"type": "number"
|
|
1460
|
+
},
|
|
1461
|
+
"createdBy": {
|
|
1462
|
+
"type": "string"
|
|
1463
|
+
},
|
|
1464
|
+
"id": {
|
|
1465
|
+
"type": "string"
|
|
1466
|
+
},
|
|
1467
|
+
"metadata": {
|
|
1468
|
+
"additionalProperties": {
|
|
1469
|
+
"$ref": "#/$defs/__schema0"
|
|
1470
|
+
},
|
|
1471
|
+
"propertyNames": {
|
|
1472
|
+
"type": "string"
|
|
1473
|
+
},
|
|
1474
|
+
"type": "object"
|
|
1475
|
+
},
|
|
1476
|
+
"source": {
|
|
1477
|
+
"type": "string"
|
|
1478
|
+
},
|
|
1479
|
+
"tagId": {
|
|
1480
|
+
"type": "string"
|
|
1481
|
+
},
|
|
1482
|
+
"tagSlug": {
|
|
1483
|
+
"type": "string"
|
|
1484
|
+
},
|
|
1485
|
+
"updatedAt": {
|
|
1486
|
+
"type": "number"
|
|
1487
|
+
},
|
|
1488
|
+
"updatedBy": {
|
|
1489
|
+
"type": "string"
|
|
1490
|
+
}
|
|
1491
|
+
},
|
|
1492
|
+
"required": [
|
|
1493
|
+
"id",
|
|
1494
|
+
"tagId",
|
|
1495
|
+
"tagSlug",
|
|
1496
|
+
"assetType",
|
|
1497
|
+
"assetId",
|
|
1498
|
+
"source",
|
|
1499
|
+
"createdAt",
|
|
1500
|
+
"updatedAt"
|
|
1501
|
+
],
|
|
1502
|
+
"type": "object"
|
|
1503
|
+
},
|
|
1504
|
+
"type": "array"
|
|
1505
|
+
}
|
|
1506
|
+
},
|
|
1507
|
+
"required": [
|
|
1508
|
+
"id",
|
|
1509
|
+
"cwd",
|
|
1510
|
+
"modelPresetId",
|
|
1511
|
+
"isDefault",
|
|
1512
|
+
"effectiveProvider",
|
|
1513
|
+
"effectiveModel",
|
|
1514
|
+
"modelSource",
|
|
1515
|
+
"modelPresetVersion",
|
|
1516
|
+
"tags"
|
|
1517
|
+
],
|
|
883
1518
|
"type": "object"
|
|
884
1519
|
},
|
|
885
1520
|
"type": "array"
|
|
886
1521
|
},
|
|
887
1522
|
"pagination": {
|
|
888
|
-
"additionalProperties":
|
|
1523
|
+
"additionalProperties": false,
|
|
889
1524
|
"properties": {
|
|
890
1525
|
"hasMore": {
|
|
891
1526
|
"type": "boolean"
|
|
@@ -927,10 +1562,7 @@ export const AgentsListReturnSchema = {
|
|
|
927
1562
|
"limit",
|
|
928
1563
|
"offset",
|
|
929
1564
|
"returned",
|
|
930
|
-
"total"
|
|
931
|
-
"hasMore",
|
|
932
|
-
"nextOffset",
|
|
933
|
-
"nextCommand"
|
|
1565
|
+
"total"
|
|
934
1566
|
],
|
|
935
1567
|
"type": "object"
|
|
936
1568
|
},
|
|
@@ -941,9 +1573,9 @@ export const AgentsListReturnSchema = {
|
|
|
941
1573
|
"required": [
|
|
942
1574
|
"total",
|
|
943
1575
|
"pagination",
|
|
944
|
-
"items",
|
|
945
1576
|
"defaultAgent",
|
|
946
1577
|
"filters",
|
|
1578
|
+
"items",
|
|
947
1579
|
"agents"
|
|
948
1580
|
],
|
|
949
1581
|
"type": "object"
|
|
@@ -1432,26 +2064,404 @@ export const AgentsShowInputSchema = {
|
|
|
1432
2064
|
};
|
|
1433
2065
|
/** JSON Schema for the return shape of `agents.show`. */
|
|
1434
2066
|
export const AgentsShowReturnSchema = {
|
|
1435
|
-
"
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
}
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
2067
|
+
"$defs": {
|
|
2068
|
+
"__schema0": {
|
|
2069
|
+
"anyOf": [
|
|
2070
|
+
{
|
|
2071
|
+
"anyOf": [
|
|
2072
|
+
{
|
|
2073
|
+
"type": "string"
|
|
2074
|
+
},
|
|
2075
|
+
{
|
|
2076
|
+
"type": "number"
|
|
2077
|
+
},
|
|
2078
|
+
{
|
|
2079
|
+
"type": "boolean"
|
|
2080
|
+
},
|
|
2081
|
+
{
|
|
2082
|
+
"type": "null"
|
|
2083
|
+
}
|
|
2084
|
+
]
|
|
2085
|
+
},
|
|
2086
|
+
{
|
|
2087
|
+
"items": {
|
|
2088
|
+
"$ref": "#/$defs/__schema0"
|
|
2089
|
+
},
|
|
2090
|
+
"type": "array"
|
|
2091
|
+
},
|
|
2092
|
+
{
|
|
2093
|
+
"additionalProperties": {
|
|
2094
|
+
"$ref": "#/$defs/__schema0"
|
|
2095
|
+
},
|
|
2096
|
+
"propertyNames": {
|
|
2097
|
+
"type": "string"
|
|
2098
|
+
},
|
|
2099
|
+
"type": "object"
|
|
2100
|
+
}
|
|
2101
|
+
]
|
|
2102
|
+
}
|
|
2103
|
+
},
|
|
2104
|
+
"additionalProperties": false,
|
|
2105
|
+
"properties": {
|
|
2106
|
+
"agent": {
|
|
2107
|
+
"additionalProperties": false,
|
|
2108
|
+
"properties": {
|
|
2109
|
+
"allowedSessions": {
|
|
2110
|
+
"items": {
|
|
2111
|
+
"type": "string"
|
|
2112
|
+
},
|
|
2113
|
+
"type": "array"
|
|
2114
|
+
},
|
|
2115
|
+
"contactScope": {
|
|
2116
|
+
"type": "string"
|
|
2117
|
+
},
|
|
2118
|
+
"cwd": {
|
|
2119
|
+
"type": "string"
|
|
2120
|
+
},
|
|
2121
|
+
"debounceMs": {
|
|
2122
|
+
"type": "number"
|
|
2123
|
+
},
|
|
2124
|
+
"defaults": {
|
|
2125
|
+
"anyOf": [
|
|
2126
|
+
{
|
|
2127
|
+
"additionalProperties": {
|
|
2128
|
+
"$ref": "#/$defs/__schema0"
|
|
2129
|
+
},
|
|
2130
|
+
"propertyNames": {
|
|
2131
|
+
"type": "string"
|
|
2132
|
+
},
|
|
2133
|
+
"type": "object"
|
|
2134
|
+
},
|
|
2135
|
+
{
|
|
2136
|
+
"type": "null"
|
|
2137
|
+
}
|
|
2138
|
+
]
|
|
2139
|
+
},
|
|
2140
|
+
"dmScope": {
|
|
2141
|
+
"enum": [
|
|
2142
|
+
"main",
|
|
2143
|
+
"per-peer",
|
|
2144
|
+
"per-channel-peer",
|
|
2145
|
+
"per-account-channel-peer"
|
|
2146
|
+
],
|
|
2147
|
+
"type": "string"
|
|
2148
|
+
},
|
|
2149
|
+
"effectiveModel": {
|
|
2150
|
+
"anyOf": [
|
|
2151
|
+
{
|
|
2152
|
+
"type": "string"
|
|
2153
|
+
},
|
|
2154
|
+
{
|
|
2155
|
+
"type": "null"
|
|
2156
|
+
}
|
|
2157
|
+
]
|
|
2158
|
+
},
|
|
2159
|
+
"effectiveProvider": {
|
|
2160
|
+
"type": "string"
|
|
2161
|
+
},
|
|
2162
|
+
"effort": {
|
|
2163
|
+
"enum": [
|
|
2164
|
+
"none",
|
|
2165
|
+
"minimal",
|
|
2166
|
+
"low",
|
|
2167
|
+
"medium",
|
|
2168
|
+
"high",
|
|
2169
|
+
"xhigh",
|
|
2170
|
+
"max",
|
|
2171
|
+
"ultra"
|
|
2172
|
+
],
|
|
2173
|
+
"type": "string"
|
|
2174
|
+
},
|
|
2175
|
+
"groupDebounceMs": {
|
|
2176
|
+
"type": "number"
|
|
2177
|
+
},
|
|
2178
|
+
"heartbeat": {
|
|
2179
|
+
"additionalProperties": false,
|
|
2180
|
+
"properties": {
|
|
2181
|
+
"accountId": {
|
|
2182
|
+
"type": "string"
|
|
2183
|
+
},
|
|
2184
|
+
"activeEnd": {
|
|
2185
|
+
"type": "string"
|
|
2186
|
+
},
|
|
2187
|
+
"activeStart": {
|
|
2188
|
+
"type": "string"
|
|
2189
|
+
},
|
|
2190
|
+
"enabled": {
|
|
2191
|
+
"type": "boolean"
|
|
2192
|
+
},
|
|
2193
|
+
"intervalMs": {
|
|
2194
|
+
"type": "number"
|
|
2195
|
+
},
|
|
2196
|
+
"lastRunAt": {
|
|
2197
|
+
"type": "number"
|
|
2198
|
+
},
|
|
2199
|
+
"model": {
|
|
2200
|
+
"type": "string"
|
|
2201
|
+
}
|
|
2202
|
+
},
|
|
2203
|
+
"required": [
|
|
2204
|
+
"enabled",
|
|
2205
|
+
"intervalMs"
|
|
2206
|
+
],
|
|
2207
|
+
"type": "object"
|
|
2208
|
+
},
|
|
2209
|
+
"id": {
|
|
2210
|
+
"type": "string"
|
|
2211
|
+
},
|
|
2212
|
+
"isDefault": {
|
|
2213
|
+
"type": "boolean"
|
|
2214
|
+
},
|
|
2215
|
+
"matrixAccount": {
|
|
2216
|
+
"type": "string"
|
|
2217
|
+
},
|
|
2218
|
+
"memoryModel": {
|
|
2219
|
+
"type": "string"
|
|
2220
|
+
},
|
|
2221
|
+
"mode": {
|
|
2222
|
+
"enum": [
|
|
2223
|
+
"active",
|
|
2224
|
+
"sentinel"
|
|
2225
|
+
],
|
|
2226
|
+
"type": "string"
|
|
2227
|
+
},
|
|
2228
|
+
"model": {
|
|
2229
|
+
"type": "string"
|
|
2230
|
+
},
|
|
2231
|
+
"modelPresetId": {
|
|
2232
|
+
"anyOf": [
|
|
2233
|
+
{
|
|
2234
|
+
"type": "string"
|
|
2235
|
+
},
|
|
2236
|
+
{
|
|
2237
|
+
"type": "null"
|
|
2238
|
+
}
|
|
2239
|
+
]
|
|
2240
|
+
},
|
|
2241
|
+
"modelPresetVersion": {
|
|
2242
|
+
"anyOf": [
|
|
2243
|
+
{
|
|
2244
|
+
"type": "number"
|
|
2245
|
+
},
|
|
2246
|
+
{
|
|
2247
|
+
"type": "null"
|
|
2248
|
+
}
|
|
2249
|
+
]
|
|
2250
|
+
},
|
|
2251
|
+
"modelSource": {
|
|
2252
|
+
"anyOf": [
|
|
2253
|
+
{
|
|
2254
|
+
"enum": [
|
|
2255
|
+
"agent_preset",
|
|
2256
|
+
"agent_default",
|
|
2257
|
+
"global_default"
|
|
2258
|
+
],
|
|
2259
|
+
"type": "string"
|
|
2260
|
+
},
|
|
2261
|
+
{
|
|
2262
|
+
"type": "null"
|
|
2263
|
+
}
|
|
2264
|
+
]
|
|
2265
|
+
},
|
|
2266
|
+
"name": {
|
|
2267
|
+
"type": "string"
|
|
2268
|
+
},
|
|
2269
|
+
"provider": {
|
|
2270
|
+
"type": "string"
|
|
2271
|
+
},
|
|
2272
|
+
"remote": {
|
|
2273
|
+
"type": "string"
|
|
2274
|
+
},
|
|
2275
|
+
"remoteUser": {
|
|
2276
|
+
"type": "string"
|
|
2277
|
+
},
|
|
2278
|
+
"settingSources": {
|
|
2279
|
+
"items": {
|
|
2280
|
+
"enum": [
|
|
2281
|
+
"user",
|
|
2282
|
+
"project"
|
|
2283
|
+
],
|
|
2284
|
+
"type": "string"
|
|
2285
|
+
},
|
|
2286
|
+
"type": "array"
|
|
2287
|
+
},
|
|
2288
|
+
"specMode": {
|
|
2289
|
+
"type": "boolean"
|
|
2290
|
+
},
|
|
2291
|
+
"systemPromptAppend": {
|
|
2292
|
+
"type": "string"
|
|
2293
|
+
},
|
|
2294
|
+
"tags": {
|
|
2295
|
+
"items": {
|
|
2296
|
+
"additionalProperties": false,
|
|
2297
|
+
"properties": {
|
|
2298
|
+
"assetId": {
|
|
2299
|
+
"type": "string"
|
|
2300
|
+
},
|
|
2301
|
+
"assetType": {
|
|
2302
|
+
"enum": [
|
|
2303
|
+
"agent",
|
|
2304
|
+
"automation",
|
|
2305
|
+
"app",
|
|
2306
|
+
"session",
|
|
2307
|
+
"task",
|
|
2308
|
+
"project",
|
|
2309
|
+
"profile",
|
|
2310
|
+
"contact",
|
|
2311
|
+
"chat",
|
|
2312
|
+
"route",
|
|
2313
|
+
"instance",
|
|
2314
|
+
"artifact",
|
|
2315
|
+
"insight",
|
|
2316
|
+
"workflow_spec",
|
|
2317
|
+
"workflow_run",
|
|
2318
|
+
"workflow_node",
|
|
2319
|
+
"cron_job",
|
|
2320
|
+
"trigger",
|
|
2321
|
+
"hook",
|
|
2322
|
+
"task_automation",
|
|
2323
|
+
"observer_rule",
|
|
2324
|
+
"observer_binding",
|
|
2325
|
+
"observer_profile",
|
|
2326
|
+
"command",
|
|
2327
|
+
"skill",
|
|
2328
|
+
"skill_gate_rule",
|
|
2329
|
+
"context",
|
|
2330
|
+
"call_profile",
|
|
2331
|
+
"call_request",
|
|
2332
|
+
"call_voice_agent",
|
|
2333
|
+
"call_tool",
|
|
2334
|
+
"outbound_queue",
|
|
2335
|
+
"outbound_entry",
|
|
2336
|
+
"spec",
|
|
2337
|
+
"devin_session"
|
|
2338
|
+
],
|
|
2339
|
+
"type": "string"
|
|
2340
|
+
},
|
|
2341
|
+
"createdAt": {
|
|
2342
|
+
"type": "number"
|
|
2343
|
+
},
|
|
2344
|
+
"createdBy": {
|
|
2345
|
+
"type": "string"
|
|
2346
|
+
},
|
|
2347
|
+
"id": {
|
|
2348
|
+
"type": "string"
|
|
2349
|
+
},
|
|
2350
|
+
"metadata": {
|
|
2351
|
+
"additionalProperties": {
|
|
2352
|
+
"$ref": "#/$defs/__schema0"
|
|
2353
|
+
},
|
|
2354
|
+
"propertyNames": {
|
|
2355
|
+
"type": "string"
|
|
2356
|
+
},
|
|
2357
|
+
"type": "object"
|
|
2358
|
+
},
|
|
2359
|
+
"source": {
|
|
2360
|
+
"type": "string"
|
|
2361
|
+
},
|
|
2362
|
+
"tagId": {
|
|
2363
|
+
"type": "string"
|
|
2364
|
+
},
|
|
2365
|
+
"tagSlug": {
|
|
2366
|
+
"type": "string"
|
|
2367
|
+
},
|
|
2368
|
+
"updatedAt": {
|
|
2369
|
+
"type": "number"
|
|
2370
|
+
},
|
|
2371
|
+
"updatedBy": {
|
|
2372
|
+
"type": "string"
|
|
2373
|
+
}
|
|
2374
|
+
},
|
|
2375
|
+
"required": [
|
|
2376
|
+
"id",
|
|
2377
|
+
"tagId",
|
|
2378
|
+
"tagSlug",
|
|
2379
|
+
"assetType",
|
|
2380
|
+
"assetId",
|
|
2381
|
+
"source",
|
|
2382
|
+
"createdAt",
|
|
2383
|
+
"updatedAt"
|
|
2384
|
+
],
|
|
2385
|
+
"type": "object"
|
|
2386
|
+
},
|
|
2387
|
+
"type": "array"
|
|
2388
|
+
}
|
|
2389
|
+
},
|
|
2390
|
+
"required": [
|
|
2391
|
+
"id",
|
|
2392
|
+
"cwd",
|
|
2393
|
+
"modelPresetId",
|
|
2394
|
+
"isDefault",
|
|
2395
|
+
"effectiveProvider",
|
|
2396
|
+
"effectiveModel",
|
|
2397
|
+
"modelSource",
|
|
2398
|
+
"modelPresetVersion",
|
|
2399
|
+
"tags"
|
|
2400
|
+
],
|
|
2401
|
+
"type": "object"
|
|
2402
|
+
},
|
|
2403
|
+
"permissionsCommand": {
|
|
2404
|
+
"type": "string"
|
|
2405
|
+
},
|
|
2406
|
+
"runtimePermissions": {
|
|
2407
|
+
"anyOf": [
|
|
2408
|
+
{
|
|
2409
|
+
"additionalProperties": false,
|
|
2410
|
+
"properties": {
|
|
2411
|
+
"capabilities": {
|
|
2412
|
+
"items": {
|
|
2413
|
+
"anyOf": [
|
|
2414
|
+
{
|
|
2415
|
+
"type": "string"
|
|
2416
|
+
},
|
|
2417
|
+
{
|
|
2418
|
+
"additionalProperties": false,
|
|
2419
|
+
"properties": {
|
|
2420
|
+
"objectId": {
|
|
2421
|
+
"type": "string"
|
|
2422
|
+
},
|
|
2423
|
+
"objectType": {
|
|
2424
|
+
"type": "string"
|
|
2425
|
+
},
|
|
2426
|
+
"permission": {
|
|
2427
|
+
"type": "string"
|
|
2428
|
+
},
|
|
2429
|
+
"source": {
|
|
2430
|
+
"type": "string"
|
|
2431
|
+
}
|
|
2432
|
+
},
|
|
2433
|
+
"type": "object"
|
|
2434
|
+
}
|
|
2435
|
+
]
|
|
2436
|
+
},
|
|
2437
|
+
"type": "array"
|
|
2438
|
+
},
|
|
2439
|
+
"profile": {
|
|
2440
|
+
"enum": [
|
|
2441
|
+
"bootstrap",
|
|
2442
|
+
"full-access"
|
|
2443
|
+
],
|
|
2444
|
+
"type": "string"
|
|
2445
|
+
}
|
|
2446
|
+
},
|
|
2447
|
+
"type": "object"
|
|
2448
|
+
},
|
|
2449
|
+
{
|
|
2450
|
+
"type": "null"
|
|
2451
|
+
}
|
|
2452
|
+
]
|
|
2453
|
+
}
|
|
2454
|
+
},
|
|
2455
|
+
"required": [
|
|
2456
|
+
"agent",
|
|
2457
|
+
"runtimePermissions",
|
|
2458
|
+
"permissionsCommand"
|
|
2459
|
+
],
|
|
2460
|
+
"type": "object"
|
|
2461
|
+
};
|
|
2462
|
+
/** JSON Schema for the input body of `agents.spec-mode`. */
|
|
2463
|
+
export const AgentsSpecModeInputSchema = {
|
|
2464
|
+
"additionalProperties": false,
|
|
1455
2465
|
"properties": {
|
|
1456
2466
|
"enabled": {
|
|
1457
2467
|
"description": "true/false",
|
|
@@ -4922,7 +5932,7 @@ export const ArtifactsPublishInputSchema = {
|
|
|
4922
5932
|
"type": "string"
|
|
4923
5933
|
},
|
|
4924
5934
|
"noActivate": {
|
|
4925
|
-
"default":
|
|
5935
|
+
"default": false,
|
|
4926
5936
|
"description": "Create publish records without activating a site release",
|
|
4927
5937
|
"type": "boolean"
|
|
4928
5938
|
},
|
|
@@ -6190,7 +7200,7 @@ export const AudioTtsInputSchema = {
|
|
|
6190
7200
|
"type": "string"
|
|
6191
7201
|
},
|
|
6192
7202
|
"noAutoplay": {
|
|
6193
|
-
"default":
|
|
7203
|
+
"default": false,
|
|
6194
7204
|
"description": "Do not autoplay in extension clients",
|
|
6195
7205
|
"type": "boolean"
|
|
6196
7206
|
},
|
|
@@ -12300,6 +13310,637 @@ export const CalendarsShowReturnSchema = {
|
|
|
12300
13310
|
],
|
|
12301
13311
|
"type": "object"
|
|
12302
13312
|
};
|
|
13313
|
+
/** JSON Schema for the input body of `channels.backend.ingress`. */
|
|
13314
|
+
export const ChannelsBackendIngressInputSchema = {
|
|
13315
|
+
"additionalProperties": false,
|
|
13316
|
+
"properties": {
|
|
13317
|
+
"agentId": {
|
|
13318
|
+
"description": "Concrete local agent id used for authorization",
|
|
13319
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13320
|
+
"type": "string"
|
|
13321
|
+
},
|
|
13322
|
+
"request": {
|
|
13323
|
+
"additionalProperties": false,
|
|
13324
|
+
"description": "Channel ingress request object (JSON when invoked from the CLI)",
|
|
13325
|
+
"properties": {
|
|
13326
|
+
"agentId": {
|
|
13327
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13328
|
+
"type": "string"
|
|
13329
|
+
},
|
|
13330
|
+
"channelInstanceId": {
|
|
13331
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13332
|
+
"type": "string"
|
|
13333
|
+
},
|
|
13334
|
+
"content": {
|
|
13335
|
+
"items": {
|
|
13336
|
+
"oneOf": [
|
|
13337
|
+
{
|
|
13338
|
+
"additionalProperties": false,
|
|
13339
|
+
"properties": {
|
|
13340
|
+
"text": {
|
|
13341
|
+
"type": "string"
|
|
13342
|
+
},
|
|
13343
|
+
"type": {
|
|
13344
|
+
"const": "text",
|
|
13345
|
+
"type": "string"
|
|
13346
|
+
}
|
|
13347
|
+
},
|
|
13348
|
+
"required": [
|
|
13349
|
+
"type",
|
|
13350
|
+
"text"
|
|
13351
|
+
],
|
|
13352
|
+
"type": "object"
|
|
13353
|
+
},
|
|
13354
|
+
{
|
|
13355
|
+
"additionalProperties": false,
|
|
13356
|
+
"properties": {
|
|
13357
|
+
"artifactId": {
|
|
13358
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13359
|
+
"type": "string"
|
|
13360
|
+
},
|
|
13361
|
+
"mediaType": {
|
|
13362
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9!#$&^_.+-]*\\/[A-Za-z0-9][A-Za-z0-9!#$&^_.+-]*$",
|
|
13363
|
+
"type": "string"
|
|
13364
|
+
},
|
|
13365
|
+
"name": {
|
|
13366
|
+
"type": "string"
|
|
13367
|
+
},
|
|
13368
|
+
"sizeBytes": {
|
|
13369
|
+
"maximum": 9007199254740991,
|
|
13370
|
+
"minimum": 0,
|
|
13371
|
+
"type": "integer"
|
|
13372
|
+
},
|
|
13373
|
+
"type": {
|
|
13374
|
+
"const": "artifact",
|
|
13375
|
+
"type": "string"
|
|
13376
|
+
}
|
|
13377
|
+
},
|
|
13378
|
+
"required": [
|
|
13379
|
+
"type",
|
|
13380
|
+
"artifactId"
|
|
13381
|
+
],
|
|
13382
|
+
"type": "object"
|
|
13383
|
+
}
|
|
13384
|
+
]
|
|
13385
|
+
},
|
|
13386
|
+
"maxItems": 256,
|
|
13387
|
+
"minItems": 1,
|
|
13388
|
+
"type": "array"
|
|
13389
|
+
},
|
|
13390
|
+
"external": {
|
|
13391
|
+
"additionalProperties": false,
|
|
13392
|
+
"properties": {
|
|
13393
|
+
"channelKind": {
|
|
13394
|
+
"pattern": "^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)*$",
|
|
13395
|
+
"type": "string"
|
|
13396
|
+
},
|
|
13397
|
+
"connectionId": {
|
|
13398
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13399
|
+
"type": "string"
|
|
13400
|
+
},
|
|
13401
|
+
"conversationId": {
|
|
13402
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13403
|
+
"type": "string"
|
|
13404
|
+
},
|
|
13405
|
+
"messageId": {
|
|
13406
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13407
|
+
"type": "string"
|
|
13408
|
+
},
|
|
13409
|
+
"senderId": {
|
|
13410
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13411
|
+
"type": "string"
|
|
13412
|
+
}
|
|
13413
|
+
},
|
|
13414
|
+
"required": [
|
|
13415
|
+
"channelKind",
|
|
13416
|
+
"connectionId",
|
|
13417
|
+
"conversationId",
|
|
13418
|
+
"senderId",
|
|
13419
|
+
"messageId"
|
|
13420
|
+
],
|
|
13421
|
+
"type": "object"
|
|
13422
|
+
},
|
|
13423
|
+
"idempotencyKey": {
|
|
13424
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13425
|
+
"type": "string"
|
|
13426
|
+
},
|
|
13427
|
+
"localActorId": {
|
|
13428
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13429
|
+
"type": "string"
|
|
13430
|
+
},
|
|
13431
|
+
"protocol": {
|
|
13432
|
+
"const": "ravi.channel.backend",
|
|
13433
|
+
"type": "string"
|
|
13434
|
+
},
|
|
13435
|
+
"receivedAt": {
|
|
13436
|
+
"format": "date-time",
|
|
13437
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
|
|
13438
|
+
"type": "string"
|
|
13439
|
+
},
|
|
13440
|
+
"requestId": {
|
|
13441
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13442
|
+
"type": "string"
|
|
13443
|
+
},
|
|
13444
|
+
"schemaVersion": {
|
|
13445
|
+
"const": 1,
|
|
13446
|
+
"type": "number"
|
|
13447
|
+
}
|
|
13448
|
+
},
|
|
13449
|
+
"required": [
|
|
13450
|
+
"protocol",
|
|
13451
|
+
"schemaVersion",
|
|
13452
|
+
"requestId",
|
|
13453
|
+
"idempotencyKey",
|
|
13454
|
+
"localActorId",
|
|
13455
|
+
"channelInstanceId",
|
|
13456
|
+
"agentId",
|
|
13457
|
+
"external",
|
|
13458
|
+
"content",
|
|
13459
|
+
"receivedAt"
|
|
13460
|
+
],
|
|
13461
|
+
"type": "object"
|
|
13462
|
+
}
|
|
13463
|
+
},
|
|
13464
|
+
"required": [
|
|
13465
|
+
"agentId",
|
|
13466
|
+
"request"
|
|
13467
|
+
],
|
|
13468
|
+
"type": "object"
|
|
13469
|
+
};
|
|
13470
|
+
/** JSON Schema for the return shape of `channels.backend.ingress`. */
|
|
13471
|
+
export const ChannelsBackendIngressReturnSchema = {
|
|
13472
|
+
"additionalProperties": false,
|
|
13473
|
+
"properties": {
|
|
13474
|
+
"acceptedAt": {
|
|
13475
|
+
"format": "date-time",
|
|
13476
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
|
|
13477
|
+
"type": "string"
|
|
13478
|
+
},
|
|
13479
|
+
"binding": {
|
|
13480
|
+
"additionalProperties": false,
|
|
13481
|
+
"properties": {
|
|
13482
|
+
"agentId": {
|
|
13483
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13484
|
+
"type": "string"
|
|
13485
|
+
},
|
|
13486
|
+
"channelInstanceId": {
|
|
13487
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13488
|
+
"type": "string"
|
|
13489
|
+
},
|
|
13490
|
+
"chatId": {
|
|
13491
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13492
|
+
"type": "string"
|
|
13493
|
+
},
|
|
13494
|
+
"messageId": {
|
|
13495
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13496
|
+
"type": "string"
|
|
13497
|
+
},
|
|
13498
|
+
"sessionId": {
|
|
13499
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13500
|
+
"type": "string"
|
|
13501
|
+
},
|
|
13502
|
+
"turnId": {
|
|
13503
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13504
|
+
"type": "string"
|
|
13505
|
+
}
|
|
13506
|
+
},
|
|
13507
|
+
"required": [
|
|
13508
|
+
"channelInstanceId",
|
|
13509
|
+
"agentId",
|
|
13510
|
+
"chatId",
|
|
13511
|
+
"messageId",
|
|
13512
|
+
"sessionId",
|
|
13513
|
+
"turnId"
|
|
13514
|
+
],
|
|
13515
|
+
"type": "object"
|
|
13516
|
+
},
|
|
13517
|
+
"disposition": {
|
|
13518
|
+
"enum": [
|
|
13519
|
+
"accepted",
|
|
13520
|
+
"duplicate",
|
|
13521
|
+
"rejected"
|
|
13522
|
+
],
|
|
13523
|
+
"type": "string"
|
|
13524
|
+
},
|
|
13525
|
+
"error": {
|
|
13526
|
+
"additionalProperties": false,
|
|
13527
|
+
"properties": {
|
|
13528
|
+
"category": {
|
|
13529
|
+
"enum": [
|
|
13530
|
+
"validation",
|
|
13531
|
+
"authentication",
|
|
13532
|
+
"authorization",
|
|
13533
|
+
"capacity",
|
|
13534
|
+
"availability",
|
|
13535
|
+
"internal"
|
|
13536
|
+
],
|
|
13537
|
+
"type": "string"
|
|
13538
|
+
},
|
|
13539
|
+
"code": {
|
|
13540
|
+
"enum": [
|
|
13541
|
+
"INVALID_REQUEST",
|
|
13542
|
+
"IDEMPOTENCY_CONFLICT",
|
|
13543
|
+
"UNAUTHENTICATED",
|
|
13544
|
+
"PERMISSION_DENIED",
|
|
13545
|
+
"LOCAL_PERMISSION_DENIED",
|
|
13546
|
+
"NOT_FOUND",
|
|
13547
|
+
"RATE_LIMITED",
|
|
13548
|
+
"OVERLOADED",
|
|
13549
|
+
"UNAVAILABLE",
|
|
13550
|
+
"INTERNAL"
|
|
13551
|
+
],
|
|
13552
|
+
"type": "string"
|
|
13553
|
+
},
|
|
13554
|
+
"correlationId": {
|
|
13555
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13556
|
+
"type": "string"
|
|
13557
|
+
},
|
|
13558
|
+
"retryAfterMs": {
|
|
13559
|
+
"exclusiveMinimum": 0,
|
|
13560
|
+
"maximum": 86400000,
|
|
13561
|
+
"type": "integer"
|
|
13562
|
+
},
|
|
13563
|
+
"retryable": {
|
|
13564
|
+
"type": "boolean"
|
|
13565
|
+
}
|
|
13566
|
+
},
|
|
13567
|
+
"required": [
|
|
13568
|
+
"code",
|
|
13569
|
+
"category",
|
|
13570
|
+
"retryable"
|
|
13571
|
+
],
|
|
13572
|
+
"type": "object"
|
|
13573
|
+
},
|
|
13574
|
+
"protocol": {
|
|
13575
|
+
"const": "ravi.channel.backend",
|
|
13576
|
+
"type": "string"
|
|
13577
|
+
},
|
|
13578
|
+
"requestId": {
|
|
13579
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13580
|
+
"type": "string"
|
|
13581
|
+
},
|
|
13582
|
+
"schemaVersion": {
|
|
13583
|
+
"const": 1,
|
|
13584
|
+
"type": "number"
|
|
13585
|
+
}
|
|
13586
|
+
},
|
|
13587
|
+
"required": [
|
|
13588
|
+
"protocol",
|
|
13589
|
+
"schemaVersion",
|
|
13590
|
+
"requestId",
|
|
13591
|
+
"disposition",
|
|
13592
|
+
"acceptedAt"
|
|
13593
|
+
],
|
|
13594
|
+
"type": "object"
|
|
13595
|
+
};
|
|
13596
|
+
/** JSON Schema for the input body of `channels.backend.runtime.interrupt`. */
|
|
13597
|
+
export const ChannelsBackendRuntimeInterruptInputSchema = {
|
|
13598
|
+
"additionalProperties": false,
|
|
13599
|
+
"properties": {
|
|
13600
|
+
"agentId": {
|
|
13601
|
+
"description": "Concrete local agent id used for authorization",
|
|
13602
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13603
|
+
"type": "string"
|
|
13604
|
+
},
|
|
13605
|
+
"request": {
|
|
13606
|
+
"additionalProperties": false,
|
|
13607
|
+
"description": "Channel runtime interrupt request object (JSON when invoked from the CLI)",
|
|
13608
|
+
"properties": {
|
|
13609
|
+
"binding": {
|
|
13610
|
+
"additionalProperties": false,
|
|
13611
|
+
"properties": {
|
|
13612
|
+
"agentId": {
|
|
13613
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13614
|
+
"type": "string"
|
|
13615
|
+
},
|
|
13616
|
+
"channelInstanceId": {
|
|
13617
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13618
|
+
"type": "string"
|
|
13619
|
+
},
|
|
13620
|
+
"chatId": {
|
|
13621
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13622
|
+
"type": "string"
|
|
13623
|
+
},
|
|
13624
|
+
"messageId": {
|
|
13625
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13626
|
+
"type": "string"
|
|
13627
|
+
},
|
|
13628
|
+
"sessionId": {
|
|
13629
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13630
|
+
"type": "string"
|
|
13631
|
+
},
|
|
13632
|
+
"turnId": {
|
|
13633
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13634
|
+
"type": "string"
|
|
13635
|
+
}
|
|
13636
|
+
},
|
|
13637
|
+
"required": [
|
|
13638
|
+
"channelInstanceId",
|
|
13639
|
+
"agentId",
|
|
13640
|
+
"chatId",
|
|
13641
|
+
"messageId",
|
|
13642
|
+
"sessionId",
|
|
13643
|
+
"turnId"
|
|
13644
|
+
],
|
|
13645
|
+
"type": "object"
|
|
13646
|
+
},
|
|
13647
|
+
"idempotencyKey": {
|
|
13648
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13649
|
+
"type": "string"
|
|
13650
|
+
},
|
|
13651
|
+
"protocol": {
|
|
13652
|
+
"const": "ravi.channel.runtime-events",
|
|
13653
|
+
"type": "string"
|
|
13654
|
+
},
|
|
13655
|
+
"requestId": {
|
|
13656
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13657
|
+
"type": "string"
|
|
13658
|
+
},
|
|
13659
|
+
"requestedAt": {
|
|
13660
|
+
"format": "date-time",
|
|
13661
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
|
|
13662
|
+
"type": "string"
|
|
13663
|
+
},
|
|
13664
|
+
"schemaVersion": {
|
|
13665
|
+
"const": 1,
|
|
13666
|
+
"type": "number"
|
|
13667
|
+
}
|
|
13668
|
+
},
|
|
13669
|
+
"required": [
|
|
13670
|
+
"protocol",
|
|
13671
|
+
"schemaVersion",
|
|
13672
|
+
"requestId",
|
|
13673
|
+
"idempotencyKey",
|
|
13674
|
+
"binding",
|
|
13675
|
+
"requestedAt"
|
|
13676
|
+
],
|
|
13677
|
+
"type": "object"
|
|
13678
|
+
}
|
|
13679
|
+
},
|
|
13680
|
+
"required": [
|
|
13681
|
+
"agentId",
|
|
13682
|
+
"request"
|
|
13683
|
+
],
|
|
13684
|
+
"type": "object"
|
|
13685
|
+
};
|
|
13686
|
+
/** JSON Schema for the return shape of `channels.backend.runtime.interrupt`. */
|
|
13687
|
+
export const ChannelsBackendRuntimeInterruptReturnSchema = {
|
|
13688
|
+
"additionalProperties": false,
|
|
13689
|
+
"properties": {
|
|
13690
|
+
"acceptedAt": {
|
|
13691
|
+
"format": "date-time",
|
|
13692
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
|
|
13693
|
+
"type": "string"
|
|
13694
|
+
},
|
|
13695
|
+
"disposition": {
|
|
13696
|
+
"enum": [
|
|
13697
|
+
"requested",
|
|
13698
|
+
"duplicate",
|
|
13699
|
+
"rejected"
|
|
13700
|
+
],
|
|
13701
|
+
"type": "string"
|
|
13702
|
+
},
|
|
13703
|
+
"error": {
|
|
13704
|
+
"additionalProperties": false,
|
|
13705
|
+
"properties": {
|
|
13706
|
+
"category": {
|
|
13707
|
+
"enum": [
|
|
13708
|
+
"validation",
|
|
13709
|
+
"authentication",
|
|
13710
|
+
"authorization",
|
|
13711
|
+
"capacity",
|
|
13712
|
+
"availability",
|
|
13713
|
+
"internal"
|
|
13714
|
+
],
|
|
13715
|
+
"type": "string"
|
|
13716
|
+
},
|
|
13717
|
+
"code": {
|
|
13718
|
+
"enum": [
|
|
13719
|
+
"INVALID_REQUEST",
|
|
13720
|
+
"IDEMPOTENCY_CONFLICT",
|
|
13721
|
+
"UNAUTHENTICATED",
|
|
13722
|
+
"PERMISSION_DENIED",
|
|
13723
|
+
"LOCAL_PERMISSION_DENIED",
|
|
13724
|
+
"NOT_FOUND",
|
|
13725
|
+
"RATE_LIMITED",
|
|
13726
|
+
"OVERLOADED",
|
|
13727
|
+
"UNAVAILABLE",
|
|
13728
|
+
"INTERNAL"
|
|
13729
|
+
],
|
|
13730
|
+
"type": "string"
|
|
13731
|
+
},
|
|
13732
|
+
"correlationId": {
|
|
13733
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13734
|
+
"type": "string"
|
|
13735
|
+
},
|
|
13736
|
+
"retryAfterMs": {
|
|
13737
|
+
"exclusiveMinimum": 0,
|
|
13738
|
+
"maximum": 86400000,
|
|
13739
|
+
"type": "integer"
|
|
13740
|
+
},
|
|
13741
|
+
"retryable": {
|
|
13742
|
+
"type": "boolean"
|
|
13743
|
+
}
|
|
13744
|
+
},
|
|
13745
|
+
"required": [
|
|
13746
|
+
"code",
|
|
13747
|
+
"category",
|
|
13748
|
+
"retryable"
|
|
13749
|
+
],
|
|
13750
|
+
"type": "object"
|
|
13751
|
+
},
|
|
13752
|
+
"protocol": {
|
|
13753
|
+
"const": "ravi.channel.runtime-events",
|
|
13754
|
+
"type": "string"
|
|
13755
|
+
},
|
|
13756
|
+
"requestId": {
|
|
13757
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13758
|
+
"type": "string"
|
|
13759
|
+
},
|
|
13760
|
+
"schemaVersion": {
|
|
13761
|
+
"const": 1,
|
|
13762
|
+
"type": "number"
|
|
13763
|
+
}
|
|
13764
|
+
},
|
|
13765
|
+
"required": [
|
|
13766
|
+
"protocol",
|
|
13767
|
+
"schemaVersion",
|
|
13768
|
+
"requestId",
|
|
13769
|
+
"disposition",
|
|
13770
|
+
"acceptedAt"
|
|
13771
|
+
],
|
|
13772
|
+
"type": "object"
|
|
13773
|
+
};
|
|
13774
|
+
/** JSON Schema for the input body of `channels.backend.runtime.readback`. */
|
|
13775
|
+
export const ChannelsBackendRuntimeReadbackInputSchema = {
|
|
13776
|
+
"additionalProperties": false,
|
|
13777
|
+
"properties": {
|
|
13778
|
+
"agentId": {
|
|
13779
|
+
"description": "Concrete local agent id used for authorization",
|
|
13780
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13781
|
+
"type": "string"
|
|
13782
|
+
},
|
|
13783
|
+
"request": {
|
|
13784
|
+
"additionalProperties": false,
|
|
13785
|
+
"description": "Channel runtime readback request object (JSON when invoked from the CLI)",
|
|
13786
|
+
"properties": {
|
|
13787
|
+
"binding": {
|
|
13788
|
+
"additionalProperties": false,
|
|
13789
|
+
"properties": {
|
|
13790
|
+
"agentId": {
|
|
13791
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13792
|
+
"type": "string"
|
|
13793
|
+
},
|
|
13794
|
+
"channelInstanceId": {
|
|
13795
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13796
|
+
"type": "string"
|
|
13797
|
+
},
|
|
13798
|
+
"chatId": {
|
|
13799
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13800
|
+
"type": "string"
|
|
13801
|
+
},
|
|
13802
|
+
"messageId": {
|
|
13803
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13804
|
+
"type": "string"
|
|
13805
|
+
},
|
|
13806
|
+
"sessionId": {
|
|
13807
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13808
|
+
"type": "string"
|
|
13809
|
+
},
|
|
13810
|
+
"turnId": {
|
|
13811
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13812
|
+
"type": "string"
|
|
13813
|
+
}
|
|
13814
|
+
},
|
|
13815
|
+
"required": [
|
|
13816
|
+
"channelInstanceId",
|
|
13817
|
+
"agentId",
|
|
13818
|
+
"chatId",
|
|
13819
|
+
"messageId",
|
|
13820
|
+
"sessionId",
|
|
13821
|
+
"turnId"
|
|
13822
|
+
],
|
|
13823
|
+
"type": "object"
|
|
13824
|
+
},
|
|
13825
|
+
"protocol": {
|
|
13826
|
+
"const": "ravi.channel.runtime-events",
|
|
13827
|
+
"type": "string"
|
|
13828
|
+
},
|
|
13829
|
+
"requestId": {
|
|
13830
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13831
|
+
"type": "string"
|
|
13832
|
+
},
|
|
13833
|
+
"schemaVersion": {
|
|
13834
|
+
"const": 1,
|
|
13835
|
+
"type": "number"
|
|
13836
|
+
}
|
|
13837
|
+
},
|
|
13838
|
+
"required": [
|
|
13839
|
+
"protocol",
|
|
13840
|
+
"schemaVersion",
|
|
13841
|
+
"requestId",
|
|
13842
|
+
"binding"
|
|
13843
|
+
],
|
|
13844
|
+
"type": "object"
|
|
13845
|
+
}
|
|
13846
|
+
},
|
|
13847
|
+
"required": [
|
|
13848
|
+
"agentId",
|
|
13849
|
+
"request"
|
|
13850
|
+
],
|
|
13851
|
+
"type": "object"
|
|
13852
|
+
};
|
|
13853
|
+
/** JSON Schema for the return shape of `channels.backend.runtime.readback`. */
|
|
13854
|
+
export const ChannelsBackendRuntimeReadbackReturnSchema = {
|
|
13855
|
+
"additionalProperties": false,
|
|
13856
|
+
"properties": {
|
|
13857
|
+
"assistantMessageId": {
|
|
13858
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13859
|
+
"type": "string"
|
|
13860
|
+
},
|
|
13861
|
+
"binding": {
|
|
13862
|
+
"additionalProperties": false,
|
|
13863
|
+
"properties": {
|
|
13864
|
+
"agentId": {
|
|
13865
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13866
|
+
"type": "string"
|
|
13867
|
+
},
|
|
13868
|
+
"channelInstanceId": {
|
|
13869
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13870
|
+
"type": "string"
|
|
13871
|
+
},
|
|
13872
|
+
"chatId": {
|
|
13873
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13874
|
+
"type": "string"
|
|
13875
|
+
},
|
|
13876
|
+
"messageId": {
|
|
13877
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13878
|
+
"type": "string"
|
|
13879
|
+
},
|
|
13880
|
+
"sessionId": {
|
|
13881
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13882
|
+
"type": "string"
|
|
13883
|
+
},
|
|
13884
|
+
"turnId": {
|
|
13885
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13886
|
+
"type": "string"
|
|
13887
|
+
}
|
|
13888
|
+
},
|
|
13889
|
+
"required": [
|
|
13890
|
+
"channelInstanceId",
|
|
13891
|
+
"agentId",
|
|
13892
|
+
"chatId",
|
|
13893
|
+
"messageId",
|
|
13894
|
+
"sessionId",
|
|
13895
|
+
"turnId"
|
|
13896
|
+
],
|
|
13897
|
+
"type": "object"
|
|
13898
|
+
},
|
|
13899
|
+
"lastSequence": {
|
|
13900
|
+
"maximum": 9007199254740991,
|
|
13901
|
+
"minimum": 0,
|
|
13902
|
+
"type": "integer"
|
|
13903
|
+
},
|
|
13904
|
+
"observedAt": {
|
|
13905
|
+
"format": "date-time",
|
|
13906
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
|
|
13907
|
+
"type": "string"
|
|
13908
|
+
},
|
|
13909
|
+
"protocol": {
|
|
13910
|
+
"const": "ravi.channel.runtime-events",
|
|
13911
|
+
"type": "string"
|
|
13912
|
+
},
|
|
13913
|
+
"requestId": {
|
|
13914
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]*$",
|
|
13915
|
+
"type": "string"
|
|
13916
|
+
},
|
|
13917
|
+
"schemaVersion": {
|
|
13918
|
+
"const": 1,
|
|
13919
|
+
"type": "number"
|
|
13920
|
+
},
|
|
13921
|
+
"state": {
|
|
13922
|
+
"enum": [
|
|
13923
|
+
"accepted",
|
|
13924
|
+
"running",
|
|
13925
|
+
"waiting_approval",
|
|
13926
|
+
"completed",
|
|
13927
|
+
"failed",
|
|
13928
|
+
"interrupted"
|
|
13929
|
+
],
|
|
13930
|
+
"type": "string"
|
|
13931
|
+
}
|
|
13932
|
+
},
|
|
13933
|
+
"required": [
|
|
13934
|
+
"protocol",
|
|
13935
|
+
"schemaVersion",
|
|
13936
|
+
"requestId",
|
|
13937
|
+
"binding",
|
|
13938
|
+
"state",
|
|
13939
|
+
"lastSequence",
|
|
13940
|
+
"observedAt"
|
|
13941
|
+
],
|
|
13942
|
+
"type": "object"
|
|
13943
|
+
};
|
|
12303
13944
|
/** JSON Schema for the input body of `channels.create`. */
|
|
12304
13945
|
export const ChannelsCreateInputSchema = {
|
|
12305
13946
|
"additionalProperties": false,
|
|
@@ -12854,6 +14495,36 @@ export const ChannelsRestartReturnSchema = {
|
|
|
12854
14495
|
],
|
|
12855
14496
|
"type": "object"
|
|
12856
14497
|
},
|
|
14498
|
+
"health": {
|
|
14499
|
+
"additionalProperties": false,
|
|
14500
|
+
"properties": {
|
|
14501
|
+
"checkedAt": {
|
|
14502
|
+
"type": "number"
|
|
14503
|
+
},
|
|
14504
|
+
"reachable": {
|
|
14505
|
+
"type": "boolean"
|
|
14506
|
+
},
|
|
14507
|
+
"reason": {
|
|
14508
|
+
"type": "string"
|
|
14509
|
+
},
|
|
14510
|
+
"status": {
|
|
14511
|
+
"enum": [
|
|
14512
|
+
"ready",
|
|
14513
|
+
"starting",
|
|
14514
|
+
"degraded",
|
|
14515
|
+
"unreachable",
|
|
14516
|
+
"stopped"
|
|
14517
|
+
],
|
|
14518
|
+
"type": "string"
|
|
14519
|
+
}
|
|
14520
|
+
},
|
|
14521
|
+
"required": [
|
|
14522
|
+
"status",
|
|
14523
|
+
"reachable",
|
|
14524
|
+
"checkedAt"
|
|
14525
|
+
],
|
|
14526
|
+
"type": "object"
|
|
14527
|
+
},
|
|
12857
14528
|
"pm2Available": {
|
|
12858
14529
|
"type": "boolean"
|
|
12859
14530
|
},
|
|
@@ -12941,6 +14612,190 @@ export const ChannelsRestartReturnSchema = {
|
|
|
12941
14612
|
"type": "object"
|
|
12942
14613
|
},
|
|
12943
14614
|
"type": "array"
|
|
14615
|
+
},
|
|
14616
|
+
"runner": {
|
|
14617
|
+
"anyOf": [
|
|
14618
|
+
{
|
|
14619
|
+
"additionalProperties": false,
|
|
14620
|
+
"properties": {
|
|
14621
|
+
"adapters": {
|
|
14622
|
+
"items": {
|
|
14623
|
+
"additionalProperties": false,
|
|
14624
|
+
"properties": {
|
|
14625
|
+
"channelId": {
|
|
14626
|
+
"type": "string"
|
|
14627
|
+
},
|
|
14628
|
+
"connectedAt": {
|
|
14629
|
+
"type": "number"
|
|
14630
|
+
},
|
|
14631
|
+
"id": {
|
|
14632
|
+
"type": "string"
|
|
14633
|
+
},
|
|
14634
|
+
"lastPongAt": {
|
|
14635
|
+
"type": "number"
|
|
14636
|
+
},
|
|
14637
|
+
"reason": {
|
|
14638
|
+
"type": "string"
|
|
14639
|
+
},
|
|
14640
|
+
"reconnectCount": {
|
|
14641
|
+
"maximum": 9007199254740991,
|
|
14642
|
+
"minimum": 0,
|
|
14643
|
+
"type": "integer"
|
|
14644
|
+
},
|
|
14645
|
+
"status": {
|
|
14646
|
+
"enum": [
|
|
14647
|
+
"disabled",
|
|
14648
|
+
"starting",
|
|
14649
|
+
"connected",
|
|
14650
|
+
"degraded",
|
|
14651
|
+
"reconnecting",
|
|
14652
|
+
"disconnected",
|
|
14653
|
+
"failed"
|
|
14654
|
+
],
|
|
14655
|
+
"type": "string"
|
|
14656
|
+
}
|
|
14657
|
+
},
|
|
14658
|
+
"required": [
|
|
14659
|
+
"id",
|
|
14660
|
+
"channelId",
|
|
14661
|
+
"status"
|
|
14662
|
+
],
|
|
14663
|
+
"type": "object"
|
|
14664
|
+
},
|
|
14665
|
+
"type": "array"
|
|
14666
|
+
},
|
|
14667
|
+
"observedAt": {
|
|
14668
|
+
"type": "number"
|
|
14669
|
+
},
|
|
14670
|
+
"outbound": {
|
|
14671
|
+
"additionalProperties": false,
|
|
14672
|
+
"properties": {
|
|
14673
|
+
"consumer": {
|
|
14674
|
+
"type": "string"
|
|
14675
|
+
},
|
|
14676
|
+
"consuming": {
|
|
14677
|
+
"type": "boolean"
|
|
14678
|
+
},
|
|
14679
|
+
"enabled": {
|
|
14680
|
+
"type": "boolean"
|
|
14681
|
+
},
|
|
14682
|
+
"infrastructureReady": {
|
|
14683
|
+
"type": "boolean"
|
|
14684
|
+
},
|
|
14685
|
+
"lastError": {
|
|
14686
|
+
"additionalProperties": false,
|
|
14687
|
+
"properties": {
|
|
14688
|
+
"at": {
|
|
14689
|
+
"type": "number"
|
|
14690
|
+
},
|
|
14691
|
+
"message": {
|
|
14692
|
+
"type": "string"
|
|
14693
|
+
},
|
|
14694
|
+
"phase": {
|
|
14695
|
+
"const": "consume_loop",
|
|
14696
|
+
"type": "string"
|
|
14697
|
+
}
|
|
14698
|
+
},
|
|
14699
|
+
"required": [
|
|
14700
|
+
"phase",
|
|
14701
|
+
"message",
|
|
14702
|
+
"at"
|
|
14703
|
+
],
|
|
14704
|
+
"type": "object"
|
|
14705
|
+
},
|
|
14706
|
+
"lastMessageAt": {
|
|
14707
|
+
"type": "number"
|
|
14708
|
+
},
|
|
14709
|
+
"publishOutbox": {
|
|
14710
|
+
"additionalProperties": false,
|
|
14711
|
+
"properties": {
|
|
14712
|
+
"lastError": {
|
|
14713
|
+
"additionalProperties": false,
|
|
14714
|
+
"properties": {
|
|
14715
|
+
"at": {
|
|
14716
|
+
"type": "number"
|
|
14717
|
+
},
|
|
14718
|
+
"message": {
|
|
14719
|
+
"type": "string"
|
|
14720
|
+
}
|
|
14721
|
+
},
|
|
14722
|
+
"required": [
|
|
14723
|
+
"message",
|
|
14724
|
+
"at"
|
|
14725
|
+
],
|
|
14726
|
+
"type": "object"
|
|
14727
|
+
},
|
|
14728
|
+
"lastPublishedAt": {
|
|
14729
|
+
"type": "number"
|
|
14730
|
+
},
|
|
14731
|
+
"nextAttemptAt": {
|
|
14732
|
+
"type": "number"
|
|
14733
|
+
},
|
|
14734
|
+
"oldestPendingAt": {
|
|
14735
|
+
"type": "number"
|
|
14736
|
+
},
|
|
14737
|
+
"pendingCount": {
|
|
14738
|
+
"maximum": 9007199254740991,
|
|
14739
|
+
"minimum": 0,
|
|
14740
|
+
"type": "integer"
|
|
14741
|
+
}
|
|
14742
|
+
},
|
|
14743
|
+
"required": [
|
|
14744
|
+
"pendingCount"
|
|
14745
|
+
],
|
|
14746
|
+
"type": "object"
|
|
14747
|
+
},
|
|
14748
|
+
"stream": {
|
|
14749
|
+
"type": "string"
|
|
14750
|
+
}
|
|
14751
|
+
},
|
|
14752
|
+
"required": [
|
|
14753
|
+
"stream",
|
|
14754
|
+
"consumer",
|
|
14755
|
+
"enabled",
|
|
14756
|
+
"infrastructureReady",
|
|
14757
|
+
"consuming"
|
|
14758
|
+
],
|
|
14759
|
+
"type": "object"
|
|
14760
|
+
},
|
|
14761
|
+
"pid": {
|
|
14762
|
+
"exclusiveMinimum": 0,
|
|
14763
|
+
"maximum": 9007199254740991,
|
|
14764
|
+
"type": "integer"
|
|
14765
|
+
},
|
|
14766
|
+
"running": {
|
|
14767
|
+
"type": "boolean"
|
|
14768
|
+
},
|
|
14769
|
+
"schemaVersion": {
|
|
14770
|
+
"const": 1,
|
|
14771
|
+
"type": "number"
|
|
14772
|
+
},
|
|
14773
|
+
"startedAt": {
|
|
14774
|
+
"anyOf": [
|
|
14775
|
+
{
|
|
14776
|
+
"type": "number"
|
|
14777
|
+
},
|
|
14778
|
+
{
|
|
14779
|
+
"type": "null"
|
|
14780
|
+
}
|
|
14781
|
+
]
|
|
14782
|
+
}
|
|
14783
|
+
},
|
|
14784
|
+
"required": [
|
|
14785
|
+
"schemaVersion",
|
|
14786
|
+
"observedAt",
|
|
14787
|
+
"running",
|
|
14788
|
+
"startedAt",
|
|
14789
|
+
"pid",
|
|
14790
|
+
"outbound",
|
|
14791
|
+
"adapters"
|
|
14792
|
+
],
|
|
14793
|
+
"type": "object"
|
|
14794
|
+
},
|
|
14795
|
+
{
|
|
14796
|
+
"type": "null"
|
|
14797
|
+
}
|
|
14798
|
+
]
|
|
12944
14799
|
}
|
|
12945
14800
|
},
|
|
12946
14801
|
"required": [
|
|
@@ -13324,6 +15179,36 @@ export const ChannelsStartReturnSchema = {
|
|
|
13324
15179
|
],
|
|
13325
15180
|
"type": "object"
|
|
13326
15181
|
},
|
|
15182
|
+
"health": {
|
|
15183
|
+
"additionalProperties": false,
|
|
15184
|
+
"properties": {
|
|
15185
|
+
"checkedAt": {
|
|
15186
|
+
"type": "number"
|
|
15187
|
+
},
|
|
15188
|
+
"reachable": {
|
|
15189
|
+
"type": "boolean"
|
|
15190
|
+
},
|
|
15191
|
+
"reason": {
|
|
15192
|
+
"type": "string"
|
|
15193
|
+
},
|
|
15194
|
+
"status": {
|
|
15195
|
+
"enum": [
|
|
15196
|
+
"ready",
|
|
15197
|
+
"starting",
|
|
15198
|
+
"degraded",
|
|
15199
|
+
"unreachable",
|
|
15200
|
+
"stopped"
|
|
15201
|
+
],
|
|
15202
|
+
"type": "string"
|
|
15203
|
+
}
|
|
15204
|
+
},
|
|
15205
|
+
"required": [
|
|
15206
|
+
"status",
|
|
15207
|
+
"reachable",
|
|
15208
|
+
"checkedAt"
|
|
15209
|
+
],
|
|
15210
|
+
"type": "object"
|
|
15211
|
+
},
|
|
13327
15212
|
"pm2Available": {
|
|
13328
15213
|
"type": "boolean"
|
|
13329
15214
|
},
|
|
@@ -13411,6 +15296,190 @@ export const ChannelsStartReturnSchema = {
|
|
|
13411
15296
|
"type": "object"
|
|
13412
15297
|
},
|
|
13413
15298
|
"type": "array"
|
|
15299
|
+
},
|
|
15300
|
+
"runner": {
|
|
15301
|
+
"anyOf": [
|
|
15302
|
+
{
|
|
15303
|
+
"additionalProperties": false,
|
|
15304
|
+
"properties": {
|
|
15305
|
+
"adapters": {
|
|
15306
|
+
"items": {
|
|
15307
|
+
"additionalProperties": false,
|
|
15308
|
+
"properties": {
|
|
15309
|
+
"channelId": {
|
|
15310
|
+
"type": "string"
|
|
15311
|
+
},
|
|
15312
|
+
"connectedAt": {
|
|
15313
|
+
"type": "number"
|
|
15314
|
+
},
|
|
15315
|
+
"id": {
|
|
15316
|
+
"type": "string"
|
|
15317
|
+
},
|
|
15318
|
+
"lastPongAt": {
|
|
15319
|
+
"type": "number"
|
|
15320
|
+
},
|
|
15321
|
+
"reason": {
|
|
15322
|
+
"type": "string"
|
|
15323
|
+
},
|
|
15324
|
+
"reconnectCount": {
|
|
15325
|
+
"maximum": 9007199254740991,
|
|
15326
|
+
"minimum": 0,
|
|
15327
|
+
"type": "integer"
|
|
15328
|
+
},
|
|
15329
|
+
"status": {
|
|
15330
|
+
"enum": [
|
|
15331
|
+
"disabled",
|
|
15332
|
+
"starting",
|
|
15333
|
+
"connected",
|
|
15334
|
+
"degraded",
|
|
15335
|
+
"reconnecting",
|
|
15336
|
+
"disconnected",
|
|
15337
|
+
"failed"
|
|
15338
|
+
],
|
|
15339
|
+
"type": "string"
|
|
15340
|
+
}
|
|
15341
|
+
},
|
|
15342
|
+
"required": [
|
|
15343
|
+
"id",
|
|
15344
|
+
"channelId",
|
|
15345
|
+
"status"
|
|
15346
|
+
],
|
|
15347
|
+
"type": "object"
|
|
15348
|
+
},
|
|
15349
|
+
"type": "array"
|
|
15350
|
+
},
|
|
15351
|
+
"observedAt": {
|
|
15352
|
+
"type": "number"
|
|
15353
|
+
},
|
|
15354
|
+
"outbound": {
|
|
15355
|
+
"additionalProperties": false,
|
|
15356
|
+
"properties": {
|
|
15357
|
+
"consumer": {
|
|
15358
|
+
"type": "string"
|
|
15359
|
+
},
|
|
15360
|
+
"consuming": {
|
|
15361
|
+
"type": "boolean"
|
|
15362
|
+
},
|
|
15363
|
+
"enabled": {
|
|
15364
|
+
"type": "boolean"
|
|
15365
|
+
},
|
|
15366
|
+
"infrastructureReady": {
|
|
15367
|
+
"type": "boolean"
|
|
15368
|
+
},
|
|
15369
|
+
"lastError": {
|
|
15370
|
+
"additionalProperties": false,
|
|
15371
|
+
"properties": {
|
|
15372
|
+
"at": {
|
|
15373
|
+
"type": "number"
|
|
15374
|
+
},
|
|
15375
|
+
"message": {
|
|
15376
|
+
"type": "string"
|
|
15377
|
+
},
|
|
15378
|
+
"phase": {
|
|
15379
|
+
"const": "consume_loop",
|
|
15380
|
+
"type": "string"
|
|
15381
|
+
}
|
|
15382
|
+
},
|
|
15383
|
+
"required": [
|
|
15384
|
+
"phase",
|
|
15385
|
+
"message",
|
|
15386
|
+
"at"
|
|
15387
|
+
],
|
|
15388
|
+
"type": "object"
|
|
15389
|
+
},
|
|
15390
|
+
"lastMessageAt": {
|
|
15391
|
+
"type": "number"
|
|
15392
|
+
},
|
|
15393
|
+
"publishOutbox": {
|
|
15394
|
+
"additionalProperties": false,
|
|
15395
|
+
"properties": {
|
|
15396
|
+
"lastError": {
|
|
15397
|
+
"additionalProperties": false,
|
|
15398
|
+
"properties": {
|
|
15399
|
+
"at": {
|
|
15400
|
+
"type": "number"
|
|
15401
|
+
},
|
|
15402
|
+
"message": {
|
|
15403
|
+
"type": "string"
|
|
15404
|
+
}
|
|
15405
|
+
},
|
|
15406
|
+
"required": [
|
|
15407
|
+
"message",
|
|
15408
|
+
"at"
|
|
15409
|
+
],
|
|
15410
|
+
"type": "object"
|
|
15411
|
+
},
|
|
15412
|
+
"lastPublishedAt": {
|
|
15413
|
+
"type": "number"
|
|
15414
|
+
},
|
|
15415
|
+
"nextAttemptAt": {
|
|
15416
|
+
"type": "number"
|
|
15417
|
+
},
|
|
15418
|
+
"oldestPendingAt": {
|
|
15419
|
+
"type": "number"
|
|
15420
|
+
},
|
|
15421
|
+
"pendingCount": {
|
|
15422
|
+
"maximum": 9007199254740991,
|
|
15423
|
+
"minimum": 0,
|
|
15424
|
+
"type": "integer"
|
|
15425
|
+
}
|
|
15426
|
+
},
|
|
15427
|
+
"required": [
|
|
15428
|
+
"pendingCount"
|
|
15429
|
+
],
|
|
15430
|
+
"type": "object"
|
|
15431
|
+
},
|
|
15432
|
+
"stream": {
|
|
15433
|
+
"type": "string"
|
|
15434
|
+
}
|
|
15435
|
+
},
|
|
15436
|
+
"required": [
|
|
15437
|
+
"stream",
|
|
15438
|
+
"consumer",
|
|
15439
|
+
"enabled",
|
|
15440
|
+
"infrastructureReady",
|
|
15441
|
+
"consuming"
|
|
15442
|
+
],
|
|
15443
|
+
"type": "object"
|
|
15444
|
+
},
|
|
15445
|
+
"pid": {
|
|
15446
|
+
"exclusiveMinimum": 0,
|
|
15447
|
+
"maximum": 9007199254740991,
|
|
15448
|
+
"type": "integer"
|
|
15449
|
+
},
|
|
15450
|
+
"running": {
|
|
15451
|
+
"type": "boolean"
|
|
15452
|
+
},
|
|
15453
|
+
"schemaVersion": {
|
|
15454
|
+
"const": 1,
|
|
15455
|
+
"type": "number"
|
|
15456
|
+
},
|
|
15457
|
+
"startedAt": {
|
|
15458
|
+
"anyOf": [
|
|
15459
|
+
{
|
|
15460
|
+
"type": "number"
|
|
15461
|
+
},
|
|
15462
|
+
{
|
|
15463
|
+
"type": "null"
|
|
15464
|
+
}
|
|
15465
|
+
]
|
|
15466
|
+
}
|
|
15467
|
+
},
|
|
15468
|
+
"required": [
|
|
15469
|
+
"schemaVersion",
|
|
15470
|
+
"observedAt",
|
|
15471
|
+
"running",
|
|
15472
|
+
"startedAt",
|
|
15473
|
+
"pid",
|
|
15474
|
+
"outbound",
|
|
15475
|
+
"adapters"
|
|
15476
|
+
],
|
|
15477
|
+
"type": "object"
|
|
15478
|
+
},
|
|
15479
|
+
{
|
|
15480
|
+
"type": "null"
|
|
15481
|
+
}
|
|
15482
|
+
]
|
|
13414
15483
|
}
|
|
13415
15484
|
},
|
|
13416
15485
|
"required": [
|
|
@@ -13536,6 +15605,36 @@ export const ChannelsStatusReturnSchema = {
|
|
|
13536
15605
|
],
|
|
13537
15606
|
"type": "object"
|
|
13538
15607
|
},
|
|
15608
|
+
"health": {
|
|
15609
|
+
"additionalProperties": false,
|
|
15610
|
+
"properties": {
|
|
15611
|
+
"checkedAt": {
|
|
15612
|
+
"type": "number"
|
|
15613
|
+
},
|
|
15614
|
+
"reachable": {
|
|
15615
|
+
"type": "boolean"
|
|
15616
|
+
},
|
|
15617
|
+
"reason": {
|
|
15618
|
+
"type": "string"
|
|
15619
|
+
},
|
|
15620
|
+
"status": {
|
|
15621
|
+
"enum": [
|
|
15622
|
+
"ready",
|
|
15623
|
+
"starting",
|
|
15624
|
+
"degraded",
|
|
15625
|
+
"unreachable",
|
|
15626
|
+
"stopped"
|
|
15627
|
+
],
|
|
15628
|
+
"type": "string"
|
|
15629
|
+
}
|
|
15630
|
+
},
|
|
15631
|
+
"required": [
|
|
15632
|
+
"status",
|
|
15633
|
+
"reachable",
|
|
15634
|
+
"checkedAt"
|
|
15635
|
+
],
|
|
15636
|
+
"type": "object"
|
|
15637
|
+
},
|
|
13539
15638
|
"pm2Available": {
|
|
13540
15639
|
"type": "boolean"
|
|
13541
15640
|
},
|
|
@@ -13623,6 +15722,190 @@ export const ChannelsStatusReturnSchema = {
|
|
|
13623
15722
|
"type": "object"
|
|
13624
15723
|
},
|
|
13625
15724
|
"type": "array"
|
|
15725
|
+
},
|
|
15726
|
+
"runner": {
|
|
15727
|
+
"anyOf": [
|
|
15728
|
+
{
|
|
15729
|
+
"additionalProperties": false,
|
|
15730
|
+
"properties": {
|
|
15731
|
+
"adapters": {
|
|
15732
|
+
"items": {
|
|
15733
|
+
"additionalProperties": false,
|
|
15734
|
+
"properties": {
|
|
15735
|
+
"channelId": {
|
|
15736
|
+
"type": "string"
|
|
15737
|
+
},
|
|
15738
|
+
"connectedAt": {
|
|
15739
|
+
"type": "number"
|
|
15740
|
+
},
|
|
15741
|
+
"id": {
|
|
15742
|
+
"type": "string"
|
|
15743
|
+
},
|
|
15744
|
+
"lastPongAt": {
|
|
15745
|
+
"type": "number"
|
|
15746
|
+
},
|
|
15747
|
+
"reason": {
|
|
15748
|
+
"type": "string"
|
|
15749
|
+
},
|
|
15750
|
+
"reconnectCount": {
|
|
15751
|
+
"maximum": 9007199254740991,
|
|
15752
|
+
"minimum": 0,
|
|
15753
|
+
"type": "integer"
|
|
15754
|
+
},
|
|
15755
|
+
"status": {
|
|
15756
|
+
"enum": [
|
|
15757
|
+
"disabled",
|
|
15758
|
+
"starting",
|
|
15759
|
+
"connected",
|
|
15760
|
+
"degraded",
|
|
15761
|
+
"reconnecting",
|
|
15762
|
+
"disconnected",
|
|
15763
|
+
"failed"
|
|
15764
|
+
],
|
|
15765
|
+
"type": "string"
|
|
15766
|
+
}
|
|
15767
|
+
},
|
|
15768
|
+
"required": [
|
|
15769
|
+
"id",
|
|
15770
|
+
"channelId",
|
|
15771
|
+
"status"
|
|
15772
|
+
],
|
|
15773
|
+
"type": "object"
|
|
15774
|
+
},
|
|
15775
|
+
"type": "array"
|
|
15776
|
+
},
|
|
15777
|
+
"observedAt": {
|
|
15778
|
+
"type": "number"
|
|
15779
|
+
},
|
|
15780
|
+
"outbound": {
|
|
15781
|
+
"additionalProperties": false,
|
|
15782
|
+
"properties": {
|
|
15783
|
+
"consumer": {
|
|
15784
|
+
"type": "string"
|
|
15785
|
+
},
|
|
15786
|
+
"consuming": {
|
|
15787
|
+
"type": "boolean"
|
|
15788
|
+
},
|
|
15789
|
+
"enabled": {
|
|
15790
|
+
"type": "boolean"
|
|
15791
|
+
},
|
|
15792
|
+
"infrastructureReady": {
|
|
15793
|
+
"type": "boolean"
|
|
15794
|
+
},
|
|
15795
|
+
"lastError": {
|
|
15796
|
+
"additionalProperties": false,
|
|
15797
|
+
"properties": {
|
|
15798
|
+
"at": {
|
|
15799
|
+
"type": "number"
|
|
15800
|
+
},
|
|
15801
|
+
"message": {
|
|
15802
|
+
"type": "string"
|
|
15803
|
+
},
|
|
15804
|
+
"phase": {
|
|
15805
|
+
"const": "consume_loop",
|
|
15806
|
+
"type": "string"
|
|
15807
|
+
}
|
|
15808
|
+
},
|
|
15809
|
+
"required": [
|
|
15810
|
+
"phase",
|
|
15811
|
+
"message",
|
|
15812
|
+
"at"
|
|
15813
|
+
],
|
|
15814
|
+
"type": "object"
|
|
15815
|
+
},
|
|
15816
|
+
"lastMessageAt": {
|
|
15817
|
+
"type": "number"
|
|
15818
|
+
},
|
|
15819
|
+
"publishOutbox": {
|
|
15820
|
+
"additionalProperties": false,
|
|
15821
|
+
"properties": {
|
|
15822
|
+
"lastError": {
|
|
15823
|
+
"additionalProperties": false,
|
|
15824
|
+
"properties": {
|
|
15825
|
+
"at": {
|
|
15826
|
+
"type": "number"
|
|
15827
|
+
},
|
|
15828
|
+
"message": {
|
|
15829
|
+
"type": "string"
|
|
15830
|
+
}
|
|
15831
|
+
},
|
|
15832
|
+
"required": [
|
|
15833
|
+
"message",
|
|
15834
|
+
"at"
|
|
15835
|
+
],
|
|
15836
|
+
"type": "object"
|
|
15837
|
+
},
|
|
15838
|
+
"lastPublishedAt": {
|
|
15839
|
+
"type": "number"
|
|
15840
|
+
},
|
|
15841
|
+
"nextAttemptAt": {
|
|
15842
|
+
"type": "number"
|
|
15843
|
+
},
|
|
15844
|
+
"oldestPendingAt": {
|
|
15845
|
+
"type": "number"
|
|
15846
|
+
},
|
|
15847
|
+
"pendingCount": {
|
|
15848
|
+
"maximum": 9007199254740991,
|
|
15849
|
+
"minimum": 0,
|
|
15850
|
+
"type": "integer"
|
|
15851
|
+
}
|
|
15852
|
+
},
|
|
15853
|
+
"required": [
|
|
15854
|
+
"pendingCount"
|
|
15855
|
+
],
|
|
15856
|
+
"type": "object"
|
|
15857
|
+
},
|
|
15858
|
+
"stream": {
|
|
15859
|
+
"type": "string"
|
|
15860
|
+
}
|
|
15861
|
+
},
|
|
15862
|
+
"required": [
|
|
15863
|
+
"stream",
|
|
15864
|
+
"consumer",
|
|
15865
|
+
"enabled",
|
|
15866
|
+
"infrastructureReady",
|
|
15867
|
+
"consuming"
|
|
15868
|
+
],
|
|
15869
|
+
"type": "object"
|
|
15870
|
+
},
|
|
15871
|
+
"pid": {
|
|
15872
|
+
"exclusiveMinimum": 0,
|
|
15873
|
+
"maximum": 9007199254740991,
|
|
15874
|
+
"type": "integer"
|
|
15875
|
+
},
|
|
15876
|
+
"running": {
|
|
15877
|
+
"type": "boolean"
|
|
15878
|
+
},
|
|
15879
|
+
"schemaVersion": {
|
|
15880
|
+
"const": 1,
|
|
15881
|
+
"type": "number"
|
|
15882
|
+
},
|
|
15883
|
+
"startedAt": {
|
|
15884
|
+
"anyOf": [
|
|
15885
|
+
{
|
|
15886
|
+
"type": "number"
|
|
15887
|
+
},
|
|
15888
|
+
{
|
|
15889
|
+
"type": "null"
|
|
15890
|
+
}
|
|
15891
|
+
]
|
|
15892
|
+
}
|
|
15893
|
+
},
|
|
15894
|
+
"required": [
|
|
15895
|
+
"schemaVersion",
|
|
15896
|
+
"observedAt",
|
|
15897
|
+
"running",
|
|
15898
|
+
"startedAt",
|
|
15899
|
+
"pid",
|
|
15900
|
+
"outbound",
|
|
15901
|
+
"adapters"
|
|
15902
|
+
],
|
|
15903
|
+
"type": "object"
|
|
15904
|
+
},
|
|
15905
|
+
{
|
|
15906
|
+
"type": "null"
|
|
15907
|
+
}
|
|
15908
|
+
]
|
|
13626
15909
|
}
|
|
13627
15910
|
},
|
|
13628
15911
|
"required": [
|
|
@@ -13760,203 +16043,1115 @@ export const ChannelsStopReturnSchema = {
|
|
|
13760
16043
|
],
|
|
13761
16044
|
"type": "object"
|
|
13762
16045
|
},
|
|
16046
|
+
"health": {
|
|
16047
|
+
"additionalProperties": false,
|
|
16048
|
+
"properties": {
|
|
16049
|
+
"checkedAt": {
|
|
16050
|
+
"type": "number"
|
|
16051
|
+
},
|
|
16052
|
+
"reachable": {
|
|
16053
|
+
"type": "boolean"
|
|
16054
|
+
},
|
|
16055
|
+
"reason": {
|
|
16056
|
+
"type": "string"
|
|
16057
|
+
},
|
|
16058
|
+
"status": {
|
|
16059
|
+
"enum": [
|
|
16060
|
+
"ready",
|
|
16061
|
+
"starting",
|
|
16062
|
+
"degraded",
|
|
16063
|
+
"unreachable",
|
|
16064
|
+
"stopped"
|
|
16065
|
+
],
|
|
16066
|
+
"type": "string"
|
|
16067
|
+
}
|
|
16068
|
+
},
|
|
16069
|
+
"required": [
|
|
16070
|
+
"status",
|
|
16071
|
+
"reachable",
|
|
16072
|
+
"checkedAt"
|
|
16073
|
+
],
|
|
16074
|
+
"type": "object"
|
|
16075
|
+
},
|
|
13763
16076
|
"pm2Available": {
|
|
13764
16077
|
"type": "boolean"
|
|
13765
16078
|
},
|
|
13766
16079
|
"processName": {
|
|
13767
16080
|
"type": "string"
|
|
13768
16081
|
},
|
|
13769
|
-
"processes": {
|
|
13770
|
-
"items": {
|
|
16082
|
+
"processes": {
|
|
16083
|
+
"items": {
|
|
16084
|
+
"additionalProperties": false,
|
|
16085
|
+
"properties": {
|
|
16086
|
+
"cpu": {
|
|
16087
|
+
"anyOf": [
|
|
16088
|
+
{
|
|
16089
|
+
"type": "number"
|
|
16090
|
+
},
|
|
16091
|
+
{
|
|
16092
|
+
"type": "null"
|
|
16093
|
+
}
|
|
16094
|
+
]
|
|
16095
|
+
},
|
|
16096
|
+
"managed": {
|
|
16097
|
+
"type": "boolean"
|
|
16098
|
+
},
|
|
16099
|
+
"memoryBytes": {
|
|
16100
|
+
"anyOf": [
|
|
16101
|
+
{
|
|
16102
|
+
"type": "number"
|
|
16103
|
+
},
|
|
16104
|
+
{
|
|
16105
|
+
"type": "null"
|
|
16106
|
+
}
|
|
16107
|
+
]
|
|
16108
|
+
},
|
|
16109
|
+
"memoryMb": {
|
|
16110
|
+
"anyOf": [
|
|
16111
|
+
{
|
|
16112
|
+
"type": "number"
|
|
16113
|
+
},
|
|
16114
|
+
{
|
|
16115
|
+
"type": "null"
|
|
16116
|
+
}
|
|
16117
|
+
]
|
|
16118
|
+
},
|
|
16119
|
+
"name": {
|
|
16120
|
+
"type": "string"
|
|
16121
|
+
},
|
|
16122
|
+
"pid": {
|
|
16123
|
+
"anyOf": [
|
|
16124
|
+
{
|
|
16125
|
+
"type": "number"
|
|
16126
|
+
},
|
|
16127
|
+
{
|
|
16128
|
+
"type": "null"
|
|
16129
|
+
}
|
|
16130
|
+
]
|
|
16131
|
+
},
|
|
16132
|
+
"pmId": {
|
|
16133
|
+
"anyOf": [
|
|
16134
|
+
{
|
|
16135
|
+
"type": "number"
|
|
16136
|
+
},
|
|
16137
|
+
{
|
|
16138
|
+
"type": "null"
|
|
16139
|
+
}
|
|
16140
|
+
]
|
|
16141
|
+
},
|
|
16142
|
+
"running": {
|
|
16143
|
+
"type": "boolean"
|
|
16144
|
+
},
|
|
16145
|
+
"status": {
|
|
16146
|
+
"type": "string"
|
|
16147
|
+
}
|
|
16148
|
+
},
|
|
16149
|
+
"required": [
|
|
16150
|
+
"name",
|
|
16151
|
+
"managed",
|
|
16152
|
+
"running",
|
|
16153
|
+
"status",
|
|
16154
|
+
"pid",
|
|
16155
|
+
"pmId",
|
|
16156
|
+
"cpu",
|
|
16157
|
+
"memoryBytes",
|
|
16158
|
+
"memoryMb"
|
|
16159
|
+
],
|
|
16160
|
+
"type": "object"
|
|
16161
|
+
},
|
|
16162
|
+
"type": "array"
|
|
16163
|
+
},
|
|
16164
|
+
"runner": {
|
|
16165
|
+
"anyOf": [
|
|
16166
|
+
{
|
|
16167
|
+
"additionalProperties": false,
|
|
16168
|
+
"properties": {
|
|
16169
|
+
"adapters": {
|
|
16170
|
+
"items": {
|
|
16171
|
+
"additionalProperties": false,
|
|
16172
|
+
"properties": {
|
|
16173
|
+
"channelId": {
|
|
16174
|
+
"type": "string"
|
|
16175
|
+
},
|
|
16176
|
+
"connectedAt": {
|
|
16177
|
+
"type": "number"
|
|
16178
|
+
},
|
|
16179
|
+
"id": {
|
|
16180
|
+
"type": "string"
|
|
16181
|
+
},
|
|
16182
|
+
"lastPongAt": {
|
|
16183
|
+
"type": "number"
|
|
16184
|
+
},
|
|
16185
|
+
"reason": {
|
|
16186
|
+
"type": "string"
|
|
16187
|
+
},
|
|
16188
|
+
"reconnectCount": {
|
|
16189
|
+
"maximum": 9007199254740991,
|
|
16190
|
+
"minimum": 0,
|
|
16191
|
+
"type": "integer"
|
|
16192
|
+
},
|
|
16193
|
+
"status": {
|
|
16194
|
+
"enum": [
|
|
16195
|
+
"disabled",
|
|
16196
|
+
"starting",
|
|
16197
|
+
"connected",
|
|
16198
|
+
"degraded",
|
|
16199
|
+
"reconnecting",
|
|
16200
|
+
"disconnected",
|
|
16201
|
+
"failed"
|
|
16202
|
+
],
|
|
16203
|
+
"type": "string"
|
|
16204
|
+
}
|
|
16205
|
+
},
|
|
16206
|
+
"required": [
|
|
16207
|
+
"id",
|
|
16208
|
+
"channelId",
|
|
16209
|
+
"status"
|
|
16210
|
+
],
|
|
16211
|
+
"type": "object"
|
|
16212
|
+
},
|
|
16213
|
+
"type": "array"
|
|
16214
|
+
},
|
|
16215
|
+
"observedAt": {
|
|
16216
|
+
"type": "number"
|
|
16217
|
+
},
|
|
16218
|
+
"outbound": {
|
|
16219
|
+
"additionalProperties": false,
|
|
16220
|
+
"properties": {
|
|
16221
|
+
"consumer": {
|
|
16222
|
+
"type": "string"
|
|
16223
|
+
},
|
|
16224
|
+
"consuming": {
|
|
16225
|
+
"type": "boolean"
|
|
16226
|
+
},
|
|
16227
|
+
"enabled": {
|
|
16228
|
+
"type": "boolean"
|
|
16229
|
+
},
|
|
16230
|
+
"infrastructureReady": {
|
|
16231
|
+
"type": "boolean"
|
|
16232
|
+
},
|
|
16233
|
+
"lastError": {
|
|
16234
|
+
"additionalProperties": false,
|
|
16235
|
+
"properties": {
|
|
16236
|
+
"at": {
|
|
16237
|
+
"type": "number"
|
|
16238
|
+
},
|
|
16239
|
+
"message": {
|
|
16240
|
+
"type": "string"
|
|
16241
|
+
},
|
|
16242
|
+
"phase": {
|
|
16243
|
+
"const": "consume_loop",
|
|
16244
|
+
"type": "string"
|
|
16245
|
+
}
|
|
16246
|
+
},
|
|
16247
|
+
"required": [
|
|
16248
|
+
"phase",
|
|
16249
|
+
"message",
|
|
16250
|
+
"at"
|
|
16251
|
+
],
|
|
16252
|
+
"type": "object"
|
|
16253
|
+
},
|
|
16254
|
+
"lastMessageAt": {
|
|
16255
|
+
"type": "number"
|
|
16256
|
+
},
|
|
16257
|
+
"publishOutbox": {
|
|
16258
|
+
"additionalProperties": false,
|
|
16259
|
+
"properties": {
|
|
16260
|
+
"lastError": {
|
|
16261
|
+
"additionalProperties": false,
|
|
16262
|
+
"properties": {
|
|
16263
|
+
"at": {
|
|
16264
|
+
"type": "number"
|
|
16265
|
+
},
|
|
16266
|
+
"message": {
|
|
16267
|
+
"type": "string"
|
|
16268
|
+
}
|
|
16269
|
+
},
|
|
16270
|
+
"required": [
|
|
16271
|
+
"message",
|
|
16272
|
+
"at"
|
|
16273
|
+
],
|
|
16274
|
+
"type": "object"
|
|
16275
|
+
},
|
|
16276
|
+
"lastPublishedAt": {
|
|
16277
|
+
"type": "number"
|
|
16278
|
+
},
|
|
16279
|
+
"nextAttemptAt": {
|
|
16280
|
+
"type": "number"
|
|
16281
|
+
},
|
|
16282
|
+
"oldestPendingAt": {
|
|
16283
|
+
"type": "number"
|
|
16284
|
+
},
|
|
16285
|
+
"pendingCount": {
|
|
16286
|
+
"maximum": 9007199254740991,
|
|
16287
|
+
"minimum": 0,
|
|
16288
|
+
"type": "integer"
|
|
16289
|
+
}
|
|
16290
|
+
},
|
|
16291
|
+
"required": [
|
|
16292
|
+
"pendingCount"
|
|
16293
|
+
],
|
|
16294
|
+
"type": "object"
|
|
16295
|
+
},
|
|
16296
|
+
"stream": {
|
|
16297
|
+
"type": "string"
|
|
16298
|
+
}
|
|
16299
|
+
},
|
|
16300
|
+
"required": [
|
|
16301
|
+
"stream",
|
|
16302
|
+
"consumer",
|
|
16303
|
+
"enabled",
|
|
16304
|
+
"infrastructureReady",
|
|
16305
|
+
"consuming"
|
|
16306
|
+
],
|
|
16307
|
+
"type": "object"
|
|
16308
|
+
},
|
|
16309
|
+
"pid": {
|
|
16310
|
+
"exclusiveMinimum": 0,
|
|
16311
|
+
"maximum": 9007199254740991,
|
|
16312
|
+
"type": "integer"
|
|
16313
|
+
},
|
|
16314
|
+
"running": {
|
|
16315
|
+
"type": "boolean"
|
|
16316
|
+
},
|
|
16317
|
+
"schemaVersion": {
|
|
16318
|
+
"const": 1,
|
|
16319
|
+
"type": "number"
|
|
16320
|
+
},
|
|
16321
|
+
"startedAt": {
|
|
16322
|
+
"anyOf": [
|
|
16323
|
+
{
|
|
16324
|
+
"type": "number"
|
|
16325
|
+
},
|
|
16326
|
+
{
|
|
16327
|
+
"type": "null"
|
|
16328
|
+
}
|
|
16329
|
+
]
|
|
16330
|
+
}
|
|
16331
|
+
},
|
|
16332
|
+
"required": [
|
|
16333
|
+
"schemaVersion",
|
|
16334
|
+
"observedAt",
|
|
16335
|
+
"running",
|
|
16336
|
+
"startedAt",
|
|
16337
|
+
"pid",
|
|
16338
|
+
"outbound",
|
|
16339
|
+
"adapters"
|
|
16340
|
+
],
|
|
16341
|
+
"type": "object"
|
|
16342
|
+
},
|
|
16343
|
+
{
|
|
16344
|
+
"type": "null"
|
|
16345
|
+
}
|
|
16346
|
+
]
|
|
16347
|
+
}
|
|
16348
|
+
},
|
|
16349
|
+
"required": [
|
|
16350
|
+
"pm2Available",
|
|
16351
|
+
"processName",
|
|
16352
|
+
"channels",
|
|
16353
|
+
"processes"
|
|
16354
|
+
],
|
|
16355
|
+
"type": "object"
|
|
16356
|
+
},
|
|
16357
|
+
"target": {
|
|
16358
|
+
"additionalProperties": false,
|
|
16359
|
+
"properties": {
|
|
16360
|
+
"bundlePath": {
|
|
16361
|
+
"type": "string"
|
|
16362
|
+
},
|
|
16363
|
+
"cwd": {
|
|
16364
|
+
"type": "string"
|
|
16365
|
+
},
|
|
16366
|
+
"sourceProjectRoot": {
|
|
16367
|
+
"type": "string"
|
|
16368
|
+
}
|
|
16369
|
+
},
|
|
16370
|
+
"required": [
|
|
16371
|
+
"bundlePath",
|
|
16372
|
+
"cwd"
|
|
16373
|
+
],
|
|
16374
|
+
"type": "object"
|
|
16375
|
+
}
|
|
16376
|
+
},
|
|
16377
|
+
"required": [
|
|
16378
|
+
"action",
|
|
16379
|
+
"changed"
|
|
16380
|
+
],
|
|
16381
|
+
"type": "object"
|
|
16382
|
+
};
|
|
16383
|
+
/** JSON Schema for the input body of `chats.backfill-provider-timestamps`. */
|
|
16384
|
+
export const ChatsBackfillProviderTimestampsInputSchema = {
|
|
16385
|
+
"additionalProperties": false,
|
|
16386
|
+
"properties": {
|
|
16387
|
+
"apply": {
|
|
16388
|
+
"description": "Write corrected provider timestamps. Without this, runs dry-run.",
|
|
16389
|
+
"type": "boolean"
|
|
16390
|
+
},
|
|
16391
|
+
"dryRun": {
|
|
16392
|
+
"description": "Force preview mode even if --apply is present",
|
|
16393
|
+
"type": "boolean"
|
|
16394
|
+
},
|
|
16395
|
+
"limit": {
|
|
16396
|
+
"description": "Maximum matching messages to inspect/apply",
|
|
16397
|
+
"type": "string"
|
|
16398
|
+
}
|
|
16399
|
+
},
|
|
16400
|
+
"type": "object"
|
|
16401
|
+
};
|
|
16402
|
+
/** JSON Schema for the return shape of `chats.backfill-provider-timestamps`. */
|
|
16403
|
+
export const ChatsBackfillProviderTimestampsReturnSchema = {
|
|
16404
|
+
"additionalProperties": {},
|
|
16405
|
+
"properties": {},
|
|
16406
|
+
"type": "object"
|
|
16407
|
+
};
|
|
16408
|
+
/** JSON Schema for the input body of `chats.ensure`. */
|
|
16409
|
+
export const ChatsEnsureInputSchema = {
|
|
16410
|
+
"additionalProperties": false,
|
|
16411
|
+
"properties": {
|
|
16412
|
+
"actorId": {
|
|
16413
|
+
"description": "Canonical actor id",
|
|
16414
|
+
"maxLength": 128,
|
|
16415
|
+
"minLength": 1,
|
|
16416
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]{0,127}$",
|
|
16417
|
+
"type": "string"
|
|
16418
|
+
},
|
|
16419
|
+
"agentId": {
|
|
16420
|
+
"description": "Target agent id",
|
|
16421
|
+
"maxLength": 128,
|
|
16422
|
+
"minLength": 1,
|
|
16423
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]{0,127}$",
|
|
16424
|
+
"type": "string"
|
|
16425
|
+
},
|
|
16426
|
+
"clientRequestId": {
|
|
16427
|
+
"description": "Caller-owned request id",
|
|
16428
|
+
"maxLength": 128,
|
|
16429
|
+
"minLength": 1,
|
|
16430
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]{0,127}$",
|
|
16431
|
+
"type": "string"
|
|
16432
|
+
}
|
|
16433
|
+
},
|
|
16434
|
+
"required": [
|
|
16435
|
+
"actorId",
|
|
16436
|
+
"agentId",
|
|
16437
|
+
"clientRequestId"
|
|
16438
|
+
],
|
|
16439
|
+
"type": "object"
|
|
16440
|
+
};
|
|
16441
|
+
/** JSON Schema for the return shape of `chats.ensure`. */
|
|
16442
|
+
export const ChatsEnsureReturnSchema = {
|
|
16443
|
+
"$defs": {
|
|
16444
|
+
"__schema0": {
|
|
16445
|
+
"anyOf": [
|
|
16446
|
+
{
|
|
16447
|
+
"anyOf": [
|
|
16448
|
+
{
|
|
16449
|
+
"type": "string"
|
|
16450
|
+
},
|
|
16451
|
+
{
|
|
16452
|
+
"type": "number"
|
|
16453
|
+
},
|
|
16454
|
+
{
|
|
16455
|
+
"type": "boolean"
|
|
16456
|
+
},
|
|
16457
|
+
{
|
|
16458
|
+
"type": "null"
|
|
16459
|
+
}
|
|
16460
|
+
]
|
|
16461
|
+
},
|
|
16462
|
+
{
|
|
16463
|
+
"items": {
|
|
16464
|
+
"$ref": "#/$defs/__schema0"
|
|
16465
|
+
},
|
|
16466
|
+
"type": "array"
|
|
16467
|
+
},
|
|
16468
|
+
{
|
|
16469
|
+
"additionalProperties": {
|
|
16470
|
+
"$ref": "#/$defs/__schema0"
|
|
16471
|
+
},
|
|
16472
|
+
"propertyNames": {
|
|
16473
|
+
"type": "string"
|
|
16474
|
+
},
|
|
16475
|
+
"type": "object"
|
|
16476
|
+
}
|
|
16477
|
+
]
|
|
16478
|
+
}
|
|
16479
|
+
},
|
|
16480
|
+
"additionalProperties": false,
|
|
16481
|
+
"properties": {
|
|
16482
|
+
"chat": {
|
|
16483
|
+
"additionalProperties": false,
|
|
16484
|
+
"properties": {
|
|
16485
|
+
"actorId": {
|
|
16486
|
+
"type": "string"
|
|
16487
|
+
},
|
|
16488
|
+
"agentId": {
|
|
16489
|
+
"type": "string"
|
|
16490
|
+
},
|
|
16491
|
+
"avatarUrl": {
|
|
16492
|
+
"type": "string"
|
|
16493
|
+
},
|
|
16494
|
+
"channel": {
|
|
16495
|
+
"type": "string"
|
|
16496
|
+
},
|
|
16497
|
+
"chatType": {
|
|
16498
|
+
"enum": [
|
|
16499
|
+
"dm",
|
|
16500
|
+
"group",
|
|
16501
|
+
"room",
|
|
16502
|
+
"thread",
|
|
16503
|
+
"channel",
|
|
16504
|
+
"unknown"
|
|
16505
|
+
],
|
|
16506
|
+
"type": "string"
|
|
16507
|
+
},
|
|
16508
|
+
"createdAt": {
|
|
16509
|
+
"type": "number"
|
|
16510
|
+
},
|
|
16511
|
+
"firstSeenAt": {
|
|
16512
|
+
"type": "number"
|
|
16513
|
+
},
|
|
16514
|
+
"id": {
|
|
16515
|
+
"type": "string"
|
|
16516
|
+
},
|
|
16517
|
+
"instanceId": {
|
|
16518
|
+
"type": "string"
|
|
16519
|
+
},
|
|
16520
|
+
"lastSeenAt": {
|
|
16521
|
+
"type": "number"
|
|
16522
|
+
},
|
|
16523
|
+
"metadata": {
|
|
16524
|
+
"additionalProperties": {
|
|
16525
|
+
"$ref": "#/$defs/__schema0"
|
|
16526
|
+
},
|
|
16527
|
+
"propertyNames": {
|
|
16528
|
+
"type": "string"
|
|
16529
|
+
},
|
|
16530
|
+
"type": "object"
|
|
16531
|
+
},
|
|
16532
|
+
"normalizedChatId": {
|
|
16533
|
+
"type": "string"
|
|
16534
|
+
},
|
|
16535
|
+
"platformChatId": {
|
|
16536
|
+
"type": "string"
|
|
16537
|
+
},
|
|
16538
|
+
"rawProvenance": {
|
|
16539
|
+
"additionalProperties": {
|
|
16540
|
+
"$ref": "#/$defs/__schema0"
|
|
16541
|
+
},
|
|
16542
|
+
"propertyNames": {
|
|
16543
|
+
"type": "string"
|
|
16544
|
+
},
|
|
16545
|
+
"type": "object"
|
|
16546
|
+
},
|
|
16547
|
+
"title": {
|
|
16548
|
+
"type": "string"
|
|
16549
|
+
},
|
|
16550
|
+
"updatedAt": {
|
|
16551
|
+
"type": "number"
|
|
16552
|
+
}
|
|
16553
|
+
},
|
|
16554
|
+
"required": [
|
|
16555
|
+
"id",
|
|
16556
|
+
"channel",
|
|
16557
|
+
"instanceId",
|
|
16558
|
+
"actorId",
|
|
16559
|
+
"agentId",
|
|
16560
|
+
"chatType",
|
|
16561
|
+
"firstSeenAt",
|
|
16562
|
+
"lastSeenAt",
|
|
16563
|
+
"createdAt",
|
|
16564
|
+
"updatedAt"
|
|
16565
|
+
],
|
|
16566
|
+
"type": "object"
|
|
16567
|
+
},
|
|
16568
|
+
"clientRequestId": {
|
|
16569
|
+
"type": "string"
|
|
16570
|
+
},
|
|
16571
|
+
"disposition": {
|
|
16572
|
+
"enum": [
|
|
16573
|
+
"created",
|
|
16574
|
+
"existing"
|
|
16575
|
+
],
|
|
16576
|
+
"type": "string"
|
|
16577
|
+
}
|
|
16578
|
+
},
|
|
16579
|
+
"required": [
|
|
16580
|
+
"disposition",
|
|
16581
|
+
"clientRequestId",
|
|
16582
|
+
"chat"
|
|
16583
|
+
],
|
|
16584
|
+
"type": "object"
|
|
16585
|
+
};
|
|
16586
|
+
/** JSON Schema for the input body of `chats.list`. */
|
|
16587
|
+
export const ChatsListInputSchema = {
|
|
16588
|
+
"additionalProperties": false,
|
|
16589
|
+
"properties": {
|
|
16590
|
+
"agent": {
|
|
16591
|
+
"description": "Filter by agent id",
|
|
16592
|
+
"type": "string"
|
|
16593
|
+
},
|
|
16594
|
+
"channel": {
|
|
16595
|
+
"description": "Filter by channel, e.g. whatsapp",
|
|
16596
|
+
"type": "string"
|
|
16597
|
+
},
|
|
16598
|
+
"contact": {
|
|
16599
|
+
"description": "Filter by contact id, phone, or identity",
|
|
16600
|
+
"type": "string"
|
|
16601
|
+
},
|
|
16602
|
+
"includeRaw": {
|
|
16603
|
+
"description": "Include raw provider ids and provenance in JSON output",
|
|
16604
|
+
"type": "boolean"
|
|
16605
|
+
},
|
|
16606
|
+
"instance": {
|
|
16607
|
+
"description": "Filter by instance name or Omni instance id",
|
|
16608
|
+
"type": "string"
|
|
16609
|
+
},
|
|
16610
|
+
"limit": {
|
|
16611
|
+
"description": "Page size (default: 25, max: 500)",
|
|
16612
|
+
"type": "string"
|
|
16613
|
+
},
|
|
16614
|
+
"offset": {
|
|
16615
|
+
"description": "Number of matching chats to skip (default: 0)",
|
|
16616
|
+
"type": "string"
|
|
16617
|
+
},
|
|
16618
|
+
"query": {
|
|
16619
|
+
"description": "Search chat ids, titles, and message content",
|
|
16620
|
+
"type": "string"
|
|
16621
|
+
},
|
|
16622
|
+
"type": {
|
|
16623
|
+
"description": "Filter by chat type: dm|group|thread|room",
|
|
16624
|
+
"type": "string"
|
|
16625
|
+
}
|
|
16626
|
+
},
|
|
16627
|
+
"type": "object"
|
|
16628
|
+
};
|
|
16629
|
+
/** JSON Schema for the return shape of `chats.list`. */
|
|
16630
|
+
export const ChatsListReturnSchema = {
|
|
16631
|
+
"$defs": {
|
|
16632
|
+
"__schema0": {
|
|
16633
|
+
"anyOf": [
|
|
16634
|
+
{
|
|
16635
|
+
"anyOf": [
|
|
16636
|
+
{
|
|
16637
|
+
"type": "string"
|
|
16638
|
+
},
|
|
16639
|
+
{
|
|
16640
|
+
"type": "number"
|
|
16641
|
+
},
|
|
16642
|
+
{
|
|
16643
|
+
"type": "boolean"
|
|
16644
|
+
},
|
|
16645
|
+
{
|
|
16646
|
+
"type": "null"
|
|
16647
|
+
}
|
|
16648
|
+
]
|
|
16649
|
+
},
|
|
16650
|
+
{
|
|
16651
|
+
"items": {
|
|
16652
|
+
"$ref": "#/$defs/__schema0"
|
|
16653
|
+
},
|
|
16654
|
+
"type": "array"
|
|
16655
|
+
},
|
|
16656
|
+
{
|
|
16657
|
+
"additionalProperties": {
|
|
16658
|
+
"$ref": "#/$defs/__schema0"
|
|
16659
|
+
},
|
|
16660
|
+
"propertyNames": {
|
|
16661
|
+
"type": "string"
|
|
16662
|
+
},
|
|
16663
|
+
"type": "object"
|
|
16664
|
+
}
|
|
16665
|
+
]
|
|
16666
|
+
}
|
|
16667
|
+
},
|
|
16668
|
+
"additionalProperties": false,
|
|
16669
|
+
"properties": {
|
|
16670
|
+
"chats": {
|
|
16671
|
+
"items": {
|
|
16672
|
+
"additionalProperties": false,
|
|
16673
|
+
"properties": {
|
|
16674
|
+
"chat": {
|
|
16675
|
+
"additionalProperties": false,
|
|
16676
|
+
"properties": {
|
|
16677
|
+
"actorId": {
|
|
16678
|
+
"type": "string"
|
|
16679
|
+
},
|
|
16680
|
+
"agentId": {
|
|
16681
|
+
"type": "string"
|
|
16682
|
+
},
|
|
16683
|
+
"avatarUrl": {
|
|
16684
|
+
"type": "string"
|
|
16685
|
+
},
|
|
16686
|
+
"channel": {
|
|
16687
|
+
"type": "string"
|
|
16688
|
+
},
|
|
16689
|
+
"chatType": {
|
|
16690
|
+
"enum": [
|
|
16691
|
+
"dm",
|
|
16692
|
+
"group",
|
|
16693
|
+
"room",
|
|
16694
|
+
"thread",
|
|
16695
|
+
"channel",
|
|
16696
|
+
"unknown"
|
|
16697
|
+
],
|
|
16698
|
+
"type": "string"
|
|
16699
|
+
},
|
|
16700
|
+
"createdAt": {
|
|
16701
|
+
"type": "number"
|
|
16702
|
+
},
|
|
16703
|
+
"firstSeenAt": {
|
|
16704
|
+
"type": "number"
|
|
16705
|
+
},
|
|
16706
|
+
"id": {
|
|
16707
|
+
"type": "string"
|
|
16708
|
+
},
|
|
16709
|
+
"instanceId": {
|
|
16710
|
+
"type": "string"
|
|
16711
|
+
},
|
|
16712
|
+
"lastSeenAt": {
|
|
16713
|
+
"type": "number"
|
|
16714
|
+
},
|
|
16715
|
+
"metadata": {
|
|
16716
|
+
"additionalProperties": {
|
|
16717
|
+
"$ref": "#/$defs/__schema0"
|
|
16718
|
+
},
|
|
16719
|
+
"propertyNames": {
|
|
16720
|
+
"type": "string"
|
|
16721
|
+
},
|
|
16722
|
+
"type": "object"
|
|
16723
|
+
},
|
|
16724
|
+
"normalizedChatId": {
|
|
16725
|
+
"type": "string"
|
|
16726
|
+
},
|
|
16727
|
+
"platformChatId": {
|
|
16728
|
+
"type": "string"
|
|
16729
|
+
},
|
|
16730
|
+
"rawProvenance": {
|
|
16731
|
+
"additionalProperties": {
|
|
16732
|
+
"$ref": "#/$defs/__schema0"
|
|
16733
|
+
},
|
|
16734
|
+
"propertyNames": {
|
|
16735
|
+
"type": "string"
|
|
16736
|
+
},
|
|
16737
|
+
"type": "object"
|
|
16738
|
+
},
|
|
16739
|
+
"title": {
|
|
16740
|
+
"type": "string"
|
|
16741
|
+
},
|
|
16742
|
+
"updatedAt": {
|
|
16743
|
+
"type": "number"
|
|
16744
|
+
}
|
|
16745
|
+
},
|
|
16746
|
+
"required": [
|
|
16747
|
+
"id",
|
|
16748
|
+
"channel",
|
|
16749
|
+
"instanceId",
|
|
16750
|
+
"chatType",
|
|
16751
|
+
"firstSeenAt",
|
|
16752
|
+
"lastSeenAt",
|
|
16753
|
+
"createdAt",
|
|
16754
|
+
"updatedAt"
|
|
16755
|
+
],
|
|
16756
|
+
"type": "object"
|
|
16757
|
+
},
|
|
16758
|
+
"lastMessage": {
|
|
16759
|
+
"anyOf": [
|
|
16760
|
+
{
|
|
16761
|
+
"additionalProperties": false,
|
|
16762
|
+
"properties": {
|
|
16763
|
+
"actorId": {
|
|
16764
|
+
"type": "string"
|
|
16765
|
+
},
|
|
16766
|
+
"actorType": {
|
|
16767
|
+
"type": "string"
|
|
16768
|
+
},
|
|
16769
|
+
"agentId": {
|
|
16770
|
+
"type": "string"
|
|
16771
|
+
},
|
|
16772
|
+
"channel": {
|
|
16773
|
+
"type": "string"
|
|
16774
|
+
},
|
|
16775
|
+
"chatId": {
|
|
16776
|
+
"type": "string"
|
|
16777
|
+
},
|
|
16778
|
+
"clientMessageId": {
|
|
16779
|
+
"type": "string"
|
|
16780
|
+
},
|
|
16781
|
+
"contactId": {
|
|
16782
|
+
"type": "string"
|
|
16783
|
+
},
|
|
16784
|
+
"content": {
|
|
16785
|
+
"additionalProperties": {
|
|
16786
|
+
"$ref": "#/$defs/__schema0"
|
|
16787
|
+
},
|
|
16788
|
+
"propertyNames": {
|
|
16789
|
+
"type": "string"
|
|
16790
|
+
},
|
|
16791
|
+
"type": "object"
|
|
16792
|
+
},
|
|
16793
|
+
"createdAt": {
|
|
16794
|
+
"type": "number"
|
|
16795
|
+
},
|
|
16796
|
+
"id": {
|
|
16797
|
+
"type": "string"
|
|
16798
|
+
},
|
|
16799
|
+
"ingestedAt": {
|
|
16800
|
+
"type": "number"
|
|
16801
|
+
},
|
|
16802
|
+
"instanceId": {
|
|
16803
|
+
"type": "string"
|
|
16804
|
+
},
|
|
16805
|
+
"messageType": {
|
|
16806
|
+
"type": "string"
|
|
16807
|
+
},
|
|
16808
|
+
"normalizedSenderId": {
|
|
16809
|
+
"type": "string"
|
|
16810
|
+
},
|
|
16811
|
+
"platformIdentityId": {
|
|
16812
|
+
"type": "string"
|
|
16813
|
+
},
|
|
16814
|
+
"providerMessageId": {
|
|
16815
|
+
"type": "string"
|
|
16816
|
+
},
|
|
16817
|
+
"providerTimestamp": {
|
|
16818
|
+
"type": "number"
|
|
16819
|
+
},
|
|
16820
|
+
"rawChatId": {
|
|
16821
|
+
"type": "string"
|
|
16822
|
+
},
|
|
16823
|
+
"rawProvenance": {
|
|
16824
|
+
"additionalProperties": {
|
|
16825
|
+
"$ref": "#/$defs/__schema0"
|
|
16826
|
+
},
|
|
16827
|
+
"propertyNames": {
|
|
16828
|
+
"type": "string"
|
|
16829
|
+
},
|
|
16830
|
+
"type": "object"
|
|
16831
|
+
},
|
|
16832
|
+
"rawSenderId": {
|
|
16833
|
+
"type": "string"
|
|
16834
|
+
},
|
|
16835
|
+
"revision": {
|
|
16836
|
+
"exclusiveMinimum": 0,
|
|
16837
|
+
"maximum": 9007199254740991,
|
|
16838
|
+
"type": "integer"
|
|
16839
|
+
},
|
|
16840
|
+
"sortKey": {
|
|
16841
|
+
"type": "string"
|
|
16842
|
+
},
|
|
16843
|
+
"state": {
|
|
16844
|
+
"type": "string"
|
|
16845
|
+
},
|
|
16846
|
+
"updatedAt": {
|
|
16847
|
+
"type": "number"
|
|
16848
|
+
}
|
|
16849
|
+
},
|
|
16850
|
+
"required": [
|
|
16851
|
+
"id",
|
|
16852
|
+
"chatId",
|
|
16853
|
+
"actorType",
|
|
16854
|
+
"ingestedAt",
|
|
16855
|
+
"sortKey",
|
|
16856
|
+
"createdAt",
|
|
16857
|
+
"updatedAt"
|
|
16858
|
+
],
|
|
16859
|
+
"type": "object"
|
|
16860
|
+
},
|
|
16861
|
+
{
|
|
16862
|
+
"type": "null"
|
|
16863
|
+
}
|
|
16864
|
+
]
|
|
16865
|
+
},
|
|
16866
|
+
"messageCount": {
|
|
16867
|
+
"type": "number"
|
|
16868
|
+
},
|
|
16869
|
+
"participantCount": {
|
|
16870
|
+
"type": "number"
|
|
16871
|
+
}
|
|
16872
|
+
},
|
|
16873
|
+
"required": [
|
|
16874
|
+
"chat",
|
|
16875
|
+
"messageCount",
|
|
16876
|
+
"participantCount",
|
|
16877
|
+
"lastMessage"
|
|
16878
|
+
],
|
|
16879
|
+
"type": "object"
|
|
16880
|
+
},
|
|
16881
|
+
"type": "array"
|
|
16882
|
+
},
|
|
16883
|
+
"items": {
|
|
16884
|
+
"items": {
|
|
16885
|
+
"additionalProperties": false,
|
|
16886
|
+
"properties": {
|
|
16887
|
+
"chat": {
|
|
13771
16888
|
"additionalProperties": false,
|
|
13772
16889
|
"properties": {
|
|
13773
|
-
"
|
|
13774
|
-
"
|
|
13775
|
-
{
|
|
13776
|
-
"type": "number"
|
|
13777
|
-
},
|
|
13778
|
-
{
|
|
13779
|
-
"type": "null"
|
|
13780
|
-
}
|
|
13781
|
-
]
|
|
16890
|
+
"actorId": {
|
|
16891
|
+
"type": "string"
|
|
13782
16892
|
},
|
|
13783
|
-
"
|
|
13784
|
-
"type": "
|
|
16893
|
+
"agentId": {
|
|
16894
|
+
"type": "string"
|
|
13785
16895
|
},
|
|
13786
|
-
"
|
|
13787
|
-
"
|
|
13788
|
-
{
|
|
13789
|
-
"type": "number"
|
|
13790
|
-
},
|
|
13791
|
-
{
|
|
13792
|
-
"type": "null"
|
|
13793
|
-
}
|
|
13794
|
-
]
|
|
16896
|
+
"avatarUrl": {
|
|
16897
|
+
"type": "string"
|
|
13795
16898
|
},
|
|
13796
|
-
"
|
|
13797
|
-
"
|
|
13798
|
-
{
|
|
13799
|
-
"type": "number"
|
|
13800
|
-
},
|
|
13801
|
-
{
|
|
13802
|
-
"type": "null"
|
|
13803
|
-
}
|
|
13804
|
-
]
|
|
16899
|
+
"channel": {
|
|
16900
|
+
"type": "string"
|
|
13805
16901
|
},
|
|
13806
|
-
"
|
|
16902
|
+
"chatType": {
|
|
16903
|
+
"enum": [
|
|
16904
|
+
"dm",
|
|
16905
|
+
"group",
|
|
16906
|
+
"room",
|
|
16907
|
+
"thread",
|
|
16908
|
+
"channel",
|
|
16909
|
+
"unknown"
|
|
16910
|
+
],
|
|
13807
16911
|
"type": "string"
|
|
13808
16912
|
},
|
|
13809
|
-
"
|
|
13810
|
-
"
|
|
13811
|
-
{
|
|
13812
|
-
"type": "number"
|
|
13813
|
-
},
|
|
13814
|
-
{
|
|
13815
|
-
"type": "null"
|
|
13816
|
-
}
|
|
13817
|
-
]
|
|
16913
|
+
"createdAt": {
|
|
16914
|
+
"type": "number"
|
|
13818
16915
|
},
|
|
13819
|
-
"
|
|
13820
|
-
"
|
|
13821
|
-
{
|
|
13822
|
-
"type": "number"
|
|
13823
|
-
},
|
|
13824
|
-
{
|
|
13825
|
-
"type": "null"
|
|
13826
|
-
}
|
|
13827
|
-
]
|
|
16916
|
+
"firstSeenAt": {
|
|
16917
|
+
"type": "number"
|
|
13828
16918
|
},
|
|
13829
|
-
"
|
|
13830
|
-
"type": "
|
|
16919
|
+
"id": {
|
|
16920
|
+
"type": "string"
|
|
13831
16921
|
},
|
|
13832
|
-
"
|
|
16922
|
+
"instanceId": {
|
|
16923
|
+
"type": "string"
|
|
16924
|
+
},
|
|
16925
|
+
"lastSeenAt": {
|
|
16926
|
+
"type": "number"
|
|
16927
|
+
},
|
|
16928
|
+
"metadata": {
|
|
16929
|
+
"additionalProperties": {
|
|
16930
|
+
"$ref": "#/$defs/__schema0"
|
|
16931
|
+
},
|
|
16932
|
+
"propertyNames": {
|
|
16933
|
+
"type": "string"
|
|
16934
|
+
},
|
|
16935
|
+
"type": "object"
|
|
16936
|
+
},
|
|
16937
|
+
"normalizedChatId": {
|
|
16938
|
+
"type": "string"
|
|
16939
|
+
},
|
|
16940
|
+
"platformChatId": {
|
|
16941
|
+
"type": "string"
|
|
16942
|
+
},
|
|
16943
|
+
"rawProvenance": {
|
|
16944
|
+
"additionalProperties": {
|
|
16945
|
+
"$ref": "#/$defs/__schema0"
|
|
16946
|
+
},
|
|
16947
|
+
"propertyNames": {
|
|
16948
|
+
"type": "string"
|
|
16949
|
+
},
|
|
16950
|
+
"type": "object"
|
|
16951
|
+
},
|
|
16952
|
+
"title": {
|
|
13833
16953
|
"type": "string"
|
|
16954
|
+
},
|
|
16955
|
+
"updatedAt": {
|
|
16956
|
+
"type": "number"
|
|
13834
16957
|
}
|
|
13835
16958
|
},
|
|
13836
16959
|
"required": [
|
|
13837
|
-
"
|
|
13838
|
-
"
|
|
13839
|
-
"
|
|
13840
|
-
"
|
|
13841
|
-
"
|
|
13842
|
-
"
|
|
13843
|
-
"
|
|
13844
|
-
"
|
|
13845
|
-
"memoryMb"
|
|
16960
|
+
"id",
|
|
16961
|
+
"channel",
|
|
16962
|
+
"instanceId",
|
|
16963
|
+
"chatType",
|
|
16964
|
+
"firstSeenAt",
|
|
16965
|
+
"lastSeenAt",
|
|
16966
|
+
"createdAt",
|
|
16967
|
+
"updatedAt"
|
|
13846
16968
|
],
|
|
13847
16969
|
"type": "object"
|
|
13848
16970
|
},
|
|
13849
|
-
"
|
|
13850
|
-
|
|
16971
|
+
"lastMessage": {
|
|
16972
|
+
"anyOf": [
|
|
16973
|
+
{
|
|
16974
|
+
"additionalProperties": false,
|
|
16975
|
+
"properties": {
|
|
16976
|
+
"actorId": {
|
|
16977
|
+
"type": "string"
|
|
16978
|
+
},
|
|
16979
|
+
"actorType": {
|
|
16980
|
+
"type": "string"
|
|
16981
|
+
},
|
|
16982
|
+
"agentId": {
|
|
16983
|
+
"type": "string"
|
|
16984
|
+
},
|
|
16985
|
+
"channel": {
|
|
16986
|
+
"type": "string"
|
|
16987
|
+
},
|
|
16988
|
+
"chatId": {
|
|
16989
|
+
"type": "string"
|
|
16990
|
+
},
|
|
16991
|
+
"clientMessageId": {
|
|
16992
|
+
"type": "string"
|
|
16993
|
+
},
|
|
16994
|
+
"contactId": {
|
|
16995
|
+
"type": "string"
|
|
16996
|
+
},
|
|
16997
|
+
"content": {
|
|
16998
|
+
"additionalProperties": {
|
|
16999
|
+
"$ref": "#/$defs/__schema0"
|
|
17000
|
+
},
|
|
17001
|
+
"propertyNames": {
|
|
17002
|
+
"type": "string"
|
|
17003
|
+
},
|
|
17004
|
+
"type": "object"
|
|
17005
|
+
},
|
|
17006
|
+
"createdAt": {
|
|
17007
|
+
"type": "number"
|
|
17008
|
+
},
|
|
17009
|
+
"id": {
|
|
17010
|
+
"type": "string"
|
|
17011
|
+
},
|
|
17012
|
+
"ingestedAt": {
|
|
17013
|
+
"type": "number"
|
|
17014
|
+
},
|
|
17015
|
+
"instanceId": {
|
|
17016
|
+
"type": "string"
|
|
17017
|
+
},
|
|
17018
|
+
"messageType": {
|
|
17019
|
+
"type": "string"
|
|
17020
|
+
},
|
|
17021
|
+
"normalizedSenderId": {
|
|
17022
|
+
"type": "string"
|
|
17023
|
+
},
|
|
17024
|
+
"platformIdentityId": {
|
|
17025
|
+
"type": "string"
|
|
17026
|
+
},
|
|
17027
|
+
"providerMessageId": {
|
|
17028
|
+
"type": "string"
|
|
17029
|
+
},
|
|
17030
|
+
"providerTimestamp": {
|
|
17031
|
+
"type": "number"
|
|
17032
|
+
},
|
|
17033
|
+
"rawChatId": {
|
|
17034
|
+
"type": "string"
|
|
17035
|
+
},
|
|
17036
|
+
"rawProvenance": {
|
|
17037
|
+
"additionalProperties": {
|
|
17038
|
+
"$ref": "#/$defs/__schema0"
|
|
17039
|
+
},
|
|
17040
|
+
"propertyNames": {
|
|
17041
|
+
"type": "string"
|
|
17042
|
+
},
|
|
17043
|
+
"type": "object"
|
|
17044
|
+
},
|
|
17045
|
+
"rawSenderId": {
|
|
17046
|
+
"type": "string"
|
|
17047
|
+
},
|
|
17048
|
+
"revision": {
|
|
17049
|
+
"exclusiveMinimum": 0,
|
|
17050
|
+
"maximum": 9007199254740991,
|
|
17051
|
+
"type": "integer"
|
|
17052
|
+
},
|
|
17053
|
+
"sortKey": {
|
|
17054
|
+
"type": "string"
|
|
17055
|
+
},
|
|
17056
|
+
"state": {
|
|
17057
|
+
"type": "string"
|
|
17058
|
+
},
|
|
17059
|
+
"updatedAt": {
|
|
17060
|
+
"type": "number"
|
|
17061
|
+
}
|
|
17062
|
+
},
|
|
17063
|
+
"required": [
|
|
17064
|
+
"id",
|
|
17065
|
+
"chatId",
|
|
17066
|
+
"actorType",
|
|
17067
|
+
"ingestedAt",
|
|
17068
|
+
"sortKey",
|
|
17069
|
+
"createdAt",
|
|
17070
|
+
"updatedAt"
|
|
17071
|
+
],
|
|
17072
|
+
"type": "object"
|
|
17073
|
+
},
|
|
17074
|
+
{
|
|
17075
|
+
"type": "null"
|
|
17076
|
+
}
|
|
17077
|
+
]
|
|
17078
|
+
},
|
|
17079
|
+
"messageCount": {
|
|
17080
|
+
"type": "number"
|
|
17081
|
+
},
|
|
17082
|
+
"participantCount": {
|
|
17083
|
+
"type": "number"
|
|
17084
|
+
}
|
|
17085
|
+
},
|
|
17086
|
+
"required": [
|
|
17087
|
+
"chat",
|
|
17088
|
+
"messageCount",
|
|
17089
|
+
"participantCount",
|
|
17090
|
+
"lastMessage"
|
|
17091
|
+
],
|
|
17092
|
+
"type": "object"
|
|
13851
17093
|
},
|
|
13852
|
-
"
|
|
13853
|
-
"pm2Available",
|
|
13854
|
-
"processName",
|
|
13855
|
-
"channels",
|
|
13856
|
-
"processes"
|
|
13857
|
-
],
|
|
13858
|
-
"type": "object"
|
|
17094
|
+
"type": "array"
|
|
13859
17095
|
},
|
|
13860
|
-
"
|
|
17096
|
+
"pagination": {
|
|
13861
17097
|
"additionalProperties": false,
|
|
13862
17098
|
"properties": {
|
|
13863
|
-
"
|
|
13864
|
-
"type": "
|
|
17099
|
+
"hasMore": {
|
|
17100
|
+
"type": "boolean"
|
|
13865
17101
|
},
|
|
13866
|
-
"
|
|
13867
|
-
"type": "
|
|
17102
|
+
"limit": {
|
|
17103
|
+
"type": "number"
|
|
13868
17104
|
},
|
|
13869
|
-
"
|
|
13870
|
-
"
|
|
17105
|
+
"nextCommand": {
|
|
17106
|
+
"anyOf": [
|
|
17107
|
+
{
|
|
17108
|
+
"type": "string"
|
|
17109
|
+
},
|
|
17110
|
+
{
|
|
17111
|
+
"type": "null"
|
|
17112
|
+
}
|
|
17113
|
+
]
|
|
17114
|
+
},
|
|
17115
|
+
"nextOffset": {
|
|
17116
|
+
"anyOf": [
|
|
17117
|
+
{
|
|
17118
|
+
"type": "number"
|
|
17119
|
+
},
|
|
17120
|
+
{
|
|
17121
|
+
"type": "null"
|
|
17122
|
+
}
|
|
17123
|
+
]
|
|
17124
|
+
},
|
|
17125
|
+
"offset": {
|
|
17126
|
+
"type": "number"
|
|
17127
|
+
},
|
|
17128
|
+
"returned": {
|
|
17129
|
+
"type": "number"
|
|
17130
|
+
},
|
|
17131
|
+
"total": {
|
|
17132
|
+
"type": "number"
|
|
13871
17133
|
}
|
|
13872
17134
|
},
|
|
13873
17135
|
"required": [
|
|
13874
|
-
"
|
|
13875
|
-
"
|
|
17136
|
+
"limit",
|
|
17137
|
+
"offset",
|
|
17138
|
+
"returned",
|
|
17139
|
+
"total"
|
|
13876
17140
|
],
|
|
13877
17141
|
"type": "object"
|
|
17142
|
+
},
|
|
17143
|
+
"total": {
|
|
17144
|
+
"type": "number"
|
|
13878
17145
|
}
|
|
13879
17146
|
},
|
|
13880
17147
|
"required": [
|
|
13881
|
-
"
|
|
13882
|
-
"
|
|
17148
|
+
"total",
|
|
17149
|
+
"pagination",
|
|
17150
|
+
"items",
|
|
17151
|
+
"chats"
|
|
13883
17152
|
],
|
|
13884
17153
|
"type": "object"
|
|
13885
17154
|
};
|
|
13886
|
-
/** JSON Schema for the input body of `chats.backfill-provider-timestamps`. */
|
|
13887
|
-
export const ChatsBackfillProviderTimestampsInputSchema = {
|
|
13888
|
-
"additionalProperties": false,
|
|
13889
|
-
"properties": {
|
|
13890
|
-
"apply": {
|
|
13891
|
-
"description": "Write corrected provider timestamps. Without this, runs dry-run.",
|
|
13892
|
-
"type": "boolean"
|
|
13893
|
-
},
|
|
13894
|
-
"dryRun": {
|
|
13895
|
-
"description": "Force preview mode even if --apply is present",
|
|
13896
|
-
"type": "boolean"
|
|
13897
|
-
},
|
|
13898
|
-
"limit": {
|
|
13899
|
-
"description": "Maximum matching messages to inspect/apply",
|
|
13900
|
-
"type": "string"
|
|
13901
|
-
}
|
|
13902
|
-
},
|
|
13903
|
-
"type": "object"
|
|
13904
|
-
};
|
|
13905
|
-
/** JSON Schema for the return shape of `chats.backfill-provider-timestamps`. */
|
|
13906
|
-
export const ChatsBackfillProviderTimestampsReturnSchema = {
|
|
13907
|
-
"additionalProperties": {},
|
|
13908
|
-
"properties": {},
|
|
13909
|
-
"type": "object"
|
|
13910
|
-
};
|
|
13911
|
-
/** JSON Schema for the input body of `chats.list`. */
|
|
13912
|
-
export const ChatsListInputSchema = {
|
|
13913
|
-
"additionalProperties": false,
|
|
13914
|
-
"properties": {
|
|
13915
|
-
"agent": {
|
|
13916
|
-
"description": "Filter by agent id",
|
|
13917
|
-
"type": "string"
|
|
13918
|
-
},
|
|
13919
|
-
"channel": {
|
|
13920
|
-
"description": "Filter by channel, e.g. whatsapp",
|
|
13921
|
-
"type": "string"
|
|
13922
|
-
},
|
|
13923
|
-
"contact": {
|
|
13924
|
-
"description": "Filter by contact id, phone, or identity",
|
|
13925
|
-
"type": "string"
|
|
13926
|
-
},
|
|
13927
|
-
"includeRaw": {
|
|
13928
|
-
"description": "Include raw provider ids and provenance in JSON output",
|
|
13929
|
-
"type": "boolean"
|
|
13930
|
-
},
|
|
13931
|
-
"instance": {
|
|
13932
|
-
"description": "Filter by instance name or Omni instance id",
|
|
13933
|
-
"type": "string"
|
|
13934
|
-
},
|
|
13935
|
-
"limit": {
|
|
13936
|
-
"description": "Page size (default: 25, max: 500)",
|
|
13937
|
-
"type": "string"
|
|
13938
|
-
},
|
|
13939
|
-
"offset": {
|
|
13940
|
-
"description": "Number of matching chats to skip (default: 0)",
|
|
13941
|
-
"type": "string"
|
|
13942
|
-
},
|
|
13943
|
-
"query": {
|
|
13944
|
-
"description": "Search chat ids, titles, and message content",
|
|
13945
|
-
"type": "string"
|
|
13946
|
-
},
|
|
13947
|
-
"type": {
|
|
13948
|
-
"description": "Filter by chat type: dm|group|thread|room",
|
|
13949
|
-
"type": "string"
|
|
13950
|
-
}
|
|
13951
|
-
},
|
|
13952
|
-
"type": "object"
|
|
13953
|
-
};
|
|
13954
|
-
/** JSON Schema for the return shape of `chats.list`. */
|
|
13955
|
-
export const ChatsListReturnSchema = {
|
|
13956
|
-
"additionalProperties": {},
|
|
13957
|
-
"properties": {},
|
|
13958
|
-
"type": "object"
|
|
13959
|
-
};
|
|
13960
17155
|
/** JSON Schema for the input body of `chats.lists.add`. */
|
|
13961
17156
|
export const ChatsListsAddInputSchema = {
|
|
13962
17157
|
"additionalProperties": false,
|
|
@@ -14888,6 +18083,214 @@ export const ChatsListsShowReturnSchema = {
|
|
|
14888
18083
|
],
|
|
14889
18084
|
"type": "object"
|
|
14890
18085
|
};
|
|
18086
|
+
/** JSON Schema for the input body of `chats.messages.create`. */
|
|
18087
|
+
export const ChatsMessagesCreateInputSchema = {
|
|
18088
|
+
"additionalProperties": false,
|
|
18089
|
+
"properties": {
|
|
18090
|
+
"actorId": {
|
|
18091
|
+
"description": "Canonical actor id",
|
|
18092
|
+
"maxLength": 128,
|
|
18093
|
+
"minLength": 1,
|
|
18094
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]{0,127}$",
|
|
18095
|
+
"type": "string"
|
|
18096
|
+
},
|
|
18097
|
+
"chatId": {
|
|
18098
|
+
"description": "Canonical chat id",
|
|
18099
|
+
"pattern": "^chat_[0-9a-f]{24}$",
|
|
18100
|
+
"type": "string"
|
|
18101
|
+
},
|
|
18102
|
+
"clientMessageId": {
|
|
18103
|
+
"description": "Caller-owned message id",
|
|
18104
|
+
"maxLength": 128,
|
|
18105
|
+
"minLength": 1,
|
|
18106
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._~-]{0,127}$",
|
|
18107
|
+
"type": "string"
|
|
18108
|
+
},
|
|
18109
|
+
"content": {
|
|
18110
|
+
"description": "Message text",
|
|
18111
|
+
"maxLength": 1000000,
|
|
18112
|
+
"minLength": 1,
|
|
18113
|
+
"type": "string"
|
|
18114
|
+
}
|
|
18115
|
+
},
|
|
18116
|
+
"required": [
|
|
18117
|
+
"actorId",
|
|
18118
|
+
"chatId",
|
|
18119
|
+
"clientMessageId",
|
|
18120
|
+
"content"
|
|
18121
|
+
],
|
|
18122
|
+
"type": "object"
|
|
18123
|
+
};
|
|
18124
|
+
/** JSON Schema for the return shape of `chats.messages.create`. */
|
|
18125
|
+
export const ChatsMessagesCreateReturnSchema = {
|
|
18126
|
+
"$defs": {
|
|
18127
|
+
"__schema0": {
|
|
18128
|
+
"anyOf": [
|
|
18129
|
+
{
|
|
18130
|
+
"anyOf": [
|
|
18131
|
+
{
|
|
18132
|
+
"type": "string"
|
|
18133
|
+
},
|
|
18134
|
+
{
|
|
18135
|
+
"type": "number"
|
|
18136
|
+
},
|
|
18137
|
+
{
|
|
18138
|
+
"type": "boolean"
|
|
18139
|
+
},
|
|
18140
|
+
{
|
|
18141
|
+
"type": "null"
|
|
18142
|
+
}
|
|
18143
|
+
]
|
|
18144
|
+
},
|
|
18145
|
+
{
|
|
18146
|
+
"items": {
|
|
18147
|
+
"$ref": "#/$defs/__schema0"
|
|
18148
|
+
},
|
|
18149
|
+
"type": "array"
|
|
18150
|
+
},
|
|
18151
|
+
{
|
|
18152
|
+
"additionalProperties": {
|
|
18153
|
+
"$ref": "#/$defs/__schema0"
|
|
18154
|
+
},
|
|
18155
|
+
"propertyNames": {
|
|
18156
|
+
"type": "string"
|
|
18157
|
+
},
|
|
18158
|
+
"type": "object"
|
|
18159
|
+
}
|
|
18160
|
+
]
|
|
18161
|
+
}
|
|
18162
|
+
},
|
|
18163
|
+
"additionalProperties": false,
|
|
18164
|
+
"properties": {
|
|
18165
|
+
"clientMessageId": {
|
|
18166
|
+
"type": "string"
|
|
18167
|
+
},
|
|
18168
|
+
"disposition": {
|
|
18169
|
+
"enum": [
|
|
18170
|
+
"created",
|
|
18171
|
+
"duplicate"
|
|
18172
|
+
],
|
|
18173
|
+
"type": "string"
|
|
18174
|
+
},
|
|
18175
|
+
"message": {
|
|
18176
|
+
"additionalProperties": false,
|
|
18177
|
+
"properties": {
|
|
18178
|
+
"actorId": {
|
|
18179
|
+
"type": "string"
|
|
18180
|
+
},
|
|
18181
|
+
"actorType": {
|
|
18182
|
+
"const": "actor",
|
|
18183
|
+
"type": "string"
|
|
18184
|
+
},
|
|
18185
|
+
"agentId": {
|
|
18186
|
+
"type": "string"
|
|
18187
|
+
},
|
|
18188
|
+
"channel": {
|
|
18189
|
+
"type": "string"
|
|
18190
|
+
},
|
|
18191
|
+
"chatId": {
|
|
18192
|
+
"type": "string"
|
|
18193
|
+
},
|
|
18194
|
+
"clientMessageId": {
|
|
18195
|
+
"type": "string"
|
|
18196
|
+
},
|
|
18197
|
+
"contactId": {
|
|
18198
|
+
"type": "string"
|
|
18199
|
+
},
|
|
18200
|
+
"content": {
|
|
18201
|
+
"additionalProperties": {
|
|
18202
|
+
"$ref": "#/$defs/__schema0"
|
|
18203
|
+
},
|
|
18204
|
+
"propertyNames": {
|
|
18205
|
+
"type": "string"
|
|
18206
|
+
},
|
|
18207
|
+
"type": "object"
|
|
18208
|
+
},
|
|
18209
|
+
"createdAt": {
|
|
18210
|
+
"type": "number"
|
|
18211
|
+
},
|
|
18212
|
+
"id": {
|
|
18213
|
+
"type": "string"
|
|
18214
|
+
},
|
|
18215
|
+
"ingestedAt": {
|
|
18216
|
+
"type": "number"
|
|
18217
|
+
},
|
|
18218
|
+
"instanceId": {
|
|
18219
|
+
"type": "string"
|
|
18220
|
+
},
|
|
18221
|
+
"messageType": {
|
|
18222
|
+
"type": "string"
|
|
18223
|
+
},
|
|
18224
|
+
"normalizedSenderId": {
|
|
18225
|
+
"type": "string"
|
|
18226
|
+
},
|
|
18227
|
+
"platformIdentityId": {
|
|
18228
|
+
"type": "string"
|
|
18229
|
+
},
|
|
18230
|
+
"providerMessageId": {
|
|
18231
|
+
"type": "string"
|
|
18232
|
+
},
|
|
18233
|
+
"providerTimestamp": {
|
|
18234
|
+
"type": "number"
|
|
18235
|
+
},
|
|
18236
|
+
"rawChatId": {
|
|
18237
|
+
"type": "string"
|
|
18238
|
+
},
|
|
18239
|
+
"rawProvenance": {
|
|
18240
|
+
"additionalProperties": {
|
|
18241
|
+
"$ref": "#/$defs/__schema0"
|
|
18242
|
+
},
|
|
18243
|
+
"propertyNames": {
|
|
18244
|
+
"type": "string"
|
|
18245
|
+
},
|
|
18246
|
+
"type": "object"
|
|
18247
|
+
},
|
|
18248
|
+
"rawSenderId": {
|
|
18249
|
+
"type": "string"
|
|
18250
|
+
},
|
|
18251
|
+
"revision": {
|
|
18252
|
+
"const": 1,
|
|
18253
|
+
"type": "number"
|
|
18254
|
+
},
|
|
18255
|
+
"sortKey": {
|
|
18256
|
+
"type": "string"
|
|
18257
|
+
},
|
|
18258
|
+
"state": {
|
|
18259
|
+
"const": "created",
|
|
18260
|
+
"type": "string"
|
|
18261
|
+
},
|
|
18262
|
+
"updatedAt": {
|
|
18263
|
+
"type": "number"
|
|
18264
|
+
}
|
|
18265
|
+
},
|
|
18266
|
+
"required": [
|
|
18267
|
+
"id",
|
|
18268
|
+
"chatId",
|
|
18269
|
+
"clientMessageId",
|
|
18270
|
+
"actorType",
|
|
18271
|
+
"actorId",
|
|
18272
|
+
"content",
|
|
18273
|
+
"revision",
|
|
18274
|
+
"state",
|
|
18275
|
+
"ingestedAt",
|
|
18276
|
+
"sortKey",
|
|
18277
|
+
"createdAt",
|
|
18278
|
+
"updatedAt"
|
|
18279
|
+
],
|
|
18280
|
+
"type": "object"
|
|
18281
|
+
},
|
|
18282
|
+
"messageId": {
|
|
18283
|
+
"type": "string"
|
|
18284
|
+
}
|
|
18285
|
+
},
|
|
18286
|
+
"required": [
|
|
18287
|
+
"disposition",
|
|
18288
|
+
"clientMessageId",
|
|
18289
|
+
"messageId",
|
|
18290
|
+
"message"
|
|
18291
|
+
],
|
|
18292
|
+
"type": "object"
|
|
18293
|
+
};
|
|
14891
18294
|
/** JSON Schema for the input body of `chats.read`. */
|
|
14892
18295
|
export const ChatsReadInputSchema = {
|
|
14893
18296
|
"additionalProperties": false,
|
|
@@ -14932,8 +18335,290 @@ export const ChatsReadInputSchema = {
|
|
|
14932
18335
|
};
|
|
14933
18336
|
/** JSON Schema for the return shape of `chats.read`. */
|
|
14934
18337
|
export const ChatsReadReturnSchema = {
|
|
14935
|
-
"
|
|
14936
|
-
|
|
18338
|
+
"$defs": {
|
|
18339
|
+
"__schema0": {
|
|
18340
|
+
"anyOf": [
|
|
18341
|
+
{
|
|
18342
|
+
"anyOf": [
|
|
18343
|
+
{
|
|
18344
|
+
"type": "string"
|
|
18345
|
+
},
|
|
18346
|
+
{
|
|
18347
|
+
"type": "number"
|
|
18348
|
+
},
|
|
18349
|
+
{
|
|
18350
|
+
"type": "boolean"
|
|
18351
|
+
},
|
|
18352
|
+
{
|
|
18353
|
+
"type": "null"
|
|
18354
|
+
}
|
|
18355
|
+
]
|
|
18356
|
+
},
|
|
18357
|
+
{
|
|
18358
|
+
"items": {
|
|
18359
|
+
"$ref": "#/$defs/__schema0"
|
|
18360
|
+
},
|
|
18361
|
+
"type": "array"
|
|
18362
|
+
},
|
|
18363
|
+
{
|
|
18364
|
+
"additionalProperties": {
|
|
18365
|
+
"$ref": "#/$defs/__schema0"
|
|
18366
|
+
},
|
|
18367
|
+
"propertyNames": {
|
|
18368
|
+
"type": "string"
|
|
18369
|
+
},
|
|
18370
|
+
"type": "object"
|
|
18371
|
+
}
|
|
18372
|
+
]
|
|
18373
|
+
}
|
|
18374
|
+
},
|
|
18375
|
+
"additionalProperties": false,
|
|
18376
|
+
"properties": {
|
|
18377
|
+
"chat": {
|
|
18378
|
+
"additionalProperties": false,
|
|
18379
|
+
"properties": {
|
|
18380
|
+
"actorId": {
|
|
18381
|
+
"type": "string"
|
|
18382
|
+
},
|
|
18383
|
+
"agentId": {
|
|
18384
|
+
"type": "string"
|
|
18385
|
+
},
|
|
18386
|
+
"avatarUrl": {
|
|
18387
|
+
"type": "string"
|
|
18388
|
+
},
|
|
18389
|
+
"channel": {
|
|
18390
|
+
"type": "string"
|
|
18391
|
+
},
|
|
18392
|
+
"chatType": {
|
|
18393
|
+
"enum": [
|
|
18394
|
+
"dm",
|
|
18395
|
+
"group",
|
|
18396
|
+
"room",
|
|
18397
|
+
"thread",
|
|
18398
|
+
"channel",
|
|
18399
|
+
"unknown"
|
|
18400
|
+
],
|
|
18401
|
+
"type": "string"
|
|
18402
|
+
},
|
|
18403
|
+
"createdAt": {
|
|
18404
|
+
"type": "number"
|
|
18405
|
+
},
|
|
18406
|
+
"firstSeenAt": {
|
|
18407
|
+
"type": "number"
|
|
18408
|
+
},
|
|
18409
|
+
"id": {
|
|
18410
|
+
"type": "string"
|
|
18411
|
+
},
|
|
18412
|
+
"instanceId": {
|
|
18413
|
+
"type": "string"
|
|
18414
|
+
},
|
|
18415
|
+
"lastSeenAt": {
|
|
18416
|
+
"type": "number"
|
|
18417
|
+
},
|
|
18418
|
+
"metadata": {
|
|
18419
|
+
"additionalProperties": {
|
|
18420
|
+
"$ref": "#/$defs/__schema0"
|
|
18421
|
+
},
|
|
18422
|
+
"propertyNames": {
|
|
18423
|
+
"type": "string"
|
|
18424
|
+
},
|
|
18425
|
+
"type": "object"
|
|
18426
|
+
},
|
|
18427
|
+
"normalizedChatId": {
|
|
18428
|
+
"type": "string"
|
|
18429
|
+
},
|
|
18430
|
+
"platformChatId": {
|
|
18431
|
+
"type": "string"
|
|
18432
|
+
},
|
|
18433
|
+
"rawProvenance": {
|
|
18434
|
+
"additionalProperties": {
|
|
18435
|
+
"$ref": "#/$defs/__schema0"
|
|
18436
|
+
},
|
|
18437
|
+
"propertyNames": {
|
|
18438
|
+
"type": "string"
|
|
18439
|
+
},
|
|
18440
|
+
"type": "object"
|
|
18441
|
+
},
|
|
18442
|
+
"title": {
|
|
18443
|
+
"type": "string"
|
|
18444
|
+
},
|
|
18445
|
+
"updatedAt": {
|
|
18446
|
+
"type": "number"
|
|
18447
|
+
}
|
|
18448
|
+
},
|
|
18449
|
+
"required": [
|
|
18450
|
+
"id",
|
|
18451
|
+
"channel",
|
|
18452
|
+
"instanceId",
|
|
18453
|
+
"chatType",
|
|
18454
|
+
"firstSeenAt",
|
|
18455
|
+
"lastSeenAt",
|
|
18456
|
+
"createdAt",
|
|
18457
|
+
"updatedAt"
|
|
18458
|
+
],
|
|
18459
|
+
"type": "object"
|
|
18460
|
+
},
|
|
18461
|
+
"messages": {
|
|
18462
|
+
"items": {
|
|
18463
|
+
"additionalProperties": false,
|
|
18464
|
+
"properties": {
|
|
18465
|
+
"actorId": {
|
|
18466
|
+
"type": "string"
|
|
18467
|
+
},
|
|
18468
|
+
"actorType": {
|
|
18469
|
+
"type": "string"
|
|
18470
|
+
},
|
|
18471
|
+
"agentId": {
|
|
18472
|
+
"type": "string"
|
|
18473
|
+
},
|
|
18474
|
+
"channel": {
|
|
18475
|
+
"type": "string"
|
|
18476
|
+
},
|
|
18477
|
+
"chatId": {
|
|
18478
|
+
"type": "string"
|
|
18479
|
+
},
|
|
18480
|
+
"clientMessageId": {
|
|
18481
|
+
"type": "string"
|
|
18482
|
+
},
|
|
18483
|
+
"contactId": {
|
|
18484
|
+
"type": "string"
|
|
18485
|
+
},
|
|
18486
|
+
"content": {
|
|
18487
|
+
"additionalProperties": {
|
|
18488
|
+
"$ref": "#/$defs/__schema0"
|
|
18489
|
+
},
|
|
18490
|
+
"propertyNames": {
|
|
18491
|
+
"type": "string"
|
|
18492
|
+
},
|
|
18493
|
+
"type": "object"
|
|
18494
|
+
},
|
|
18495
|
+
"createdAt": {
|
|
18496
|
+
"type": "number"
|
|
18497
|
+
},
|
|
18498
|
+
"id": {
|
|
18499
|
+
"type": "string"
|
|
18500
|
+
},
|
|
18501
|
+
"ingestedAt": {
|
|
18502
|
+
"type": "number"
|
|
18503
|
+
},
|
|
18504
|
+
"instanceId": {
|
|
18505
|
+
"type": "string"
|
|
18506
|
+
},
|
|
18507
|
+
"messageType": {
|
|
18508
|
+
"type": "string"
|
|
18509
|
+
},
|
|
18510
|
+
"normalizedSenderId": {
|
|
18511
|
+
"type": "string"
|
|
18512
|
+
},
|
|
18513
|
+
"platformIdentityId": {
|
|
18514
|
+
"type": "string"
|
|
18515
|
+
},
|
|
18516
|
+
"providerMessageId": {
|
|
18517
|
+
"type": "string"
|
|
18518
|
+
},
|
|
18519
|
+
"providerTimestamp": {
|
|
18520
|
+
"type": "number"
|
|
18521
|
+
},
|
|
18522
|
+
"rawChatId": {
|
|
18523
|
+
"type": "string"
|
|
18524
|
+
},
|
|
18525
|
+
"rawProvenance": {
|
|
18526
|
+
"additionalProperties": {
|
|
18527
|
+
"$ref": "#/$defs/__schema0"
|
|
18528
|
+
},
|
|
18529
|
+
"propertyNames": {
|
|
18530
|
+
"type": "string"
|
|
18531
|
+
},
|
|
18532
|
+
"type": "object"
|
|
18533
|
+
},
|
|
18534
|
+
"rawSenderId": {
|
|
18535
|
+
"type": "string"
|
|
18536
|
+
},
|
|
18537
|
+
"revision": {
|
|
18538
|
+
"exclusiveMinimum": 0,
|
|
18539
|
+
"maximum": 9007199254740991,
|
|
18540
|
+
"type": "integer"
|
|
18541
|
+
},
|
|
18542
|
+
"sortKey": {
|
|
18543
|
+
"type": "string"
|
|
18544
|
+
},
|
|
18545
|
+
"state": {
|
|
18546
|
+
"type": "string"
|
|
18547
|
+
},
|
|
18548
|
+
"updatedAt": {
|
|
18549
|
+
"type": "number"
|
|
18550
|
+
}
|
|
18551
|
+
},
|
|
18552
|
+
"required": [
|
|
18553
|
+
"id",
|
|
18554
|
+
"chatId",
|
|
18555
|
+
"actorType",
|
|
18556
|
+
"ingestedAt",
|
|
18557
|
+
"sortKey",
|
|
18558
|
+
"createdAt",
|
|
18559
|
+
"updatedAt"
|
|
18560
|
+
],
|
|
18561
|
+
"type": "object"
|
|
18562
|
+
},
|
|
18563
|
+
"type": "array"
|
|
18564
|
+
},
|
|
18565
|
+
"pagination": {
|
|
18566
|
+
"additionalProperties": false,
|
|
18567
|
+
"properties": {
|
|
18568
|
+
"hasMore": {
|
|
18569
|
+
"type": "boolean"
|
|
18570
|
+
},
|
|
18571
|
+
"limit": {
|
|
18572
|
+
"type": "number"
|
|
18573
|
+
},
|
|
18574
|
+
"nextCommand": {
|
|
18575
|
+
"anyOf": [
|
|
18576
|
+
{
|
|
18577
|
+
"type": "string"
|
|
18578
|
+
},
|
|
18579
|
+
{
|
|
18580
|
+
"type": "null"
|
|
18581
|
+
}
|
|
18582
|
+
]
|
|
18583
|
+
},
|
|
18584
|
+
"nextOffset": {
|
|
18585
|
+
"anyOf": [
|
|
18586
|
+
{
|
|
18587
|
+
"type": "number"
|
|
18588
|
+
},
|
|
18589
|
+
{
|
|
18590
|
+
"type": "null"
|
|
18591
|
+
}
|
|
18592
|
+
]
|
|
18593
|
+
},
|
|
18594
|
+
"offset": {
|
|
18595
|
+
"type": "number"
|
|
18596
|
+
},
|
|
18597
|
+
"returned": {
|
|
18598
|
+
"type": "number"
|
|
18599
|
+
},
|
|
18600
|
+
"total": {
|
|
18601
|
+
"type": "number"
|
|
18602
|
+
}
|
|
18603
|
+
},
|
|
18604
|
+
"required": [
|
|
18605
|
+
"limit",
|
|
18606
|
+
"offset",
|
|
18607
|
+
"returned",
|
|
18608
|
+
"total"
|
|
18609
|
+
],
|
|
18610
|
+
"type": "object"
|
|
18611
|
+
},
|
|
18612
|
+
"total": {
|
|
18613
|
+
"type": "number"
|
|
18614
|
+
}
|
|
18615
|
+
},
|
|
18616
|
+
"required": [
|
|
18617
|
+
"chat",
|
|
18618
|
+
"total",
|
|
18619
|
+
"pagination",
|
|
18620
|
+
"messages"
|
|
18621
|
+
],
|
|
14937
18622
|
"type": "object"
|
|
14938
18623
|
};
|
|
14939
18624
|
/** JSON Schema for the input body of `cloud.projects.create`. */
|
|
@@ -20814,7 +24499,7 @@ export const ContextRevokeInputSchema = {
|
|
|
20814
24499
|
"type": "string"
|
|
20815
24500
|
},
|
|
20816
24501
|
"noCascade": {
|
|
20817
|
-
"default":
|
|
24502
|
+
"default": false,
|
|
20818
24503
|
"description": "Do not revoke descendant contexts (use only for narrow rotation; emits a loud warning)",
|
|
20819
24504
|
"type": "boolean"
|
|
20820
24505
|
},
|
|
@@ -25861,6 +29546,10 @@ export const CronAddInputSchema = {
|
|
|
25861
29546
|
"description": "Alias for --shell",
|
|
25862
29547
|
"type": "string"
|
|
25863
29548
|
},
|
|
29549
|
+
"idempotencyKey": {
|
|
29550
|
+
"description": "Durable create idempotency key",
|
|
29551
|
+
"type": "string"
|
|
29552
|
+
},
|
|
25864
29553
|
"isolated": {
|
|
25865
29554
|
"description": "Run in isolated session",
|
|
25866
29555
|
"type": "boolean"
|
|
@@ -26420,7 +30109,7 @@ export const DaemonInitAdminKeyInputSchema = {
|
|
|
26420
30109
|
"type": "string"
|
|
26421
30110
|
},
|
|
26422
30111
|
"noStore": {
|
|
26423
|
-
"default":
|
|
30112
|
+
"default": false,
|
|
26424
30113
|
"description": "Alias for --print-only (do not write to ~/.ravi/credentials.json)",
|
|
26425
30114
|
"type": "boolean"
|
|
26426
30115
|
},
|
|
@@ -27060,12 +30749,12 @@ export const DevinSessionsCreateInputSchema = {
|
|
|
27060
30749
|
"type": "string"
|
|
27061
30750
|
},
|
|
27062
30751
|
"noMaxAcuLimit": {
|
|
27063
|
-
"default":
|
|
30752
|
+
"default": false,
|
|
27064
30753
|
"description": "Intentionally omit max_acu_limit",
|
|
27065
30754
|
"type": "boolean"
|
|
27066
30755
|
},
|
|
27067
30756
|
"noResumable": {
|
|
27068
|
-
"default":
|
|
30757
|
+
"default": false,
|
|
27069
30758
|
"description": "Disposable session, do not preserve VM state",
|
|
27070
30759
|
"type": "boolean"
|
|
27071
30760
|
},
|
|
@@ -40326,7 +44015,7 @@ export const MeetingsFinalizeInputSchema = {
|
|
|
40326
44015
|
"additionalProperties": false,
|
|
40327
44016
|
"properties": {
|
|
40328
44017
|
"noPostTranscribe": {
|
|
40329
|
-
"default":
|
|
44018
|
+
"default": false,
|
|
40330
44019
|
"description": "Skip post-call audio transcription",
|
|
40331
44020
|
"type": "boolean"
|
|
40332
44021
|
},
|
|
@@ -41692,6 +45381,10 @@ export const ObserversProfilesValidateReturnSchema = {
|
|
|
41692
45381
|
export const ObserversRefreshInputSchema = {
|
|
41693
45382
|
"additionalProperties": false,
|
|
41694
45383
|
"properties": {
|
|
45384
|
+
"reconcile": {
|
|
45385
|
+
"description": "attach-missing|detach-disabled|refresh-profile|full-reconcile",
|
|
45386
|
+
"type": "string"
|
|
45387
|
+
},
|
|
41695
45388
|
"session": {
|
|
41696
45389
|
"description": "Source session name or key",
|
|
41697
45390
|
"type": "string"
|
|
@@ -41722,6 +45415,31 @@ export const ObserversRefreshReturnSchema = {
|
|
|
41722
45415
|
},
|
|
41723
45416
|
"type": "array"
|
|
41724
45417
|
},
|
|
45418
|
+
"disabled": {
|
|
45419
|
+
"items": {
|
|
45420
|
+
"additionalProperties": {},
|
|
45421
|
+
"properties": {},
|
|
45422
|
+
"type": "object"
|
|
45423
|
+
},
|
|
45424
|
+
"type": "array"
|
|
45425
|
+
},
|
|
45426
|
+
"mode": {
|
|
45427
|
+
"enum": [
|
|
45428
|
+
"attach-missing",
|
|
45429
|
+
"detach-disabled",
|
|
45430
|
+
"refresh-profile",
|
|
45431
|
+
"full-reconcile"
|
|
45432
|
+
],
|
|
45433
|
+
"type": "string"
|
|
45434
|
+
},
|
|
45435
|
+
"refreshedProfiles": {
|
|
45436
|
+
"items": {
|
|
45437
|
+
"additionalProperties": {},
|
|
45438
|
+
"properties": {},
|
|
45439
|
+
"type": "object"
|
|
45440
|
+
},
|
|
45441
|
+
"type": "array"
|
|
45442
|
+
},
|
|
41725
45443
|
"skipped": {
|
|
41726
45444
|
"items": {
|
|
41727
45445
|
"additionalProperties": {},
|
|
@@ -41731,9 +45449,16 @@ export const ObserversRefreshReturnSchema = {
|
|
|
41731
45449
|
"type": "array"
|
|
41732
45450
|
},
|
|
41733
45451
|
"source": {
|
|
41734
|
-
"
|
|
41735
|
-
|
|
41736
|
-
|
|
45452
|
+
"anyOf": [
|
|
45453
|
+
{
|
|
45454
|
+
"additionalProperties": {},
|
|
45455
|
+
"properties": {},
|
|
45456
|
+
"type": "object"
|
|
45457
|
+
},
|
|
45458
|
+
{
|
|
45459
|
+
"type": "null"
|
|
45460
|
+
}
|
|
45461
|
+
]
|
|
41737
45462
|
},
|
|
41738
45463
|
"total": {
|
|
41739
45464
|
"type": "number"
|
|
@@ -41741,8 +45466,11 @@ export const ObserversRefreshReturnSchema = {
|
|
|
41741
45466
|
},
|
|
41742
45467
|
"required": [
|
|
41743
45468
|
"source",
|
|
45469
|
+
"mode",
|
|
41744
45470
|
"total",
|
|
41745
45471
|
"created",
|
|
45472
|
+
"disabled",
|
|
45473
|
+
"refreshedProfiles",
|
|
41746
45474
|
"bindings",
|
|
41747
45475
|
"skipped"
|
|
41748
45476
|
],
|
|
@@ -42050,6 +45778,10 @@ export const ObserversRulesSetInputSchema = {
|
|
|
42050
45778
|
"description": "global|agent|session|task|profile|project|tag",
|
|
42051
45779
|
"type": "string"
|
|
42052
45780
|
},
|
|
45781
|
+
"selector": {
|
|
45782
|
+
"description": "Predicate over source.*, turn.* and event.*; use 'clear' to remove",
|
|
45783
|
+
"type": "string"
|
|
45784
|
+
},
|
|
42053
45785
|
"sourceAgent": {
|
|
42054
45786
|
"description": "Match source agent id",
|
|
42055
45787
|
"type": "string"
|
|
@@ -42649,7 +46381,7 @@ export const PagesPublishInputSchema = {
|
|
|
42649
46381
|
"type": "string"
|
|
42650
46382
|
},
|
|
42651
46383
|
"noActivate": {
|
|
42652
|
-
"default":
|
|
46384
|
+
"default": false,
|
|
42653
46385
|
"description": "Create publish records without activating a site release",
|
|
42654
46386
|
"type": "boolean"
|
|
42655
46387
|
},
|
|
@@ -46403,6 +50135,28 @@ export const ReactSendReturnSchema = {
|
|
|
46403
50135
|
],
|
|
46404
50136
|
"type": "object"
|
|
46405
50137
|
},
|
|
50138
|
+
"executionMode": {
|
|
50139
|
+
"enum": [
|
|
50140
|
+
"durable",
|
|
50141
|
+
"legacy"
|
|
50142
|
+
],
|
|
50143
|
+
"type": "string"
|
|
50144
|
+
},
|
|
50145
|
+
"idempotencyKey": {
|
|
50146
|
+
"type": "string"
|
|
50147
|
+
},
|
|
50148
|
+
"nextAttemptAt": {
|
|
50149
|
+
"type": "number"
|
|
50150
|
+
},
|
|
50151
|
+
"publishPending": {
|
|
50152
|
+
"type": "boolean"
|
|
50153
|
+
},
|
|
50154
|
+
"publishedNow": {
|
|
50155
|
+
"type": "boolean"
|
|
50156
|
+
},
|
|
50157
|
+
"queued": {
|
|
50158
|
+
"type": "boolean"
|
|
50159
|
+
},
|
|
46406
50160
|
"reaction": {
|
|
46407
50161
|
"additionalProperties": false,
|
|
46408
50162
|
"properties": {
|
|
@@ -46419,9 +50173,15 @@ export const ReactSendReturnSchema = {
|
|
|
46419
50173
|
],
|
|
46420
50174
|
"type": "object"
|
|
46421
50175
|
},
|
|
46422
|
-
"
|
|
46423
|
-
"
|
|
46424
|
-
|
|
50176
|
+
"requestId": {
|
|
50177
|
+
"type": "string"
|
|
50178
|
+
},
|
|
50179
|
+
"status": {
|
|
50180
|
+
"enum": [
|
|
50181
|
+
"queued",
|
|
50182
|
+
"accepted"
|
|
50183
|
+
],
|
|
50184
|
+
"type": "string"
|
|
46425
50185
|
},
|
|
46426
50186
|
"target": {
|
|
46427
50187
|
"additionalProperties": false,
|
|
@@ -46444,12 +50204,13 @@ export const ReactSendReturnSchema = {
|
|
|
46444
50204
|
"type": "object"
|
|
46445
50205
|
},
|
|
46446
50206
|
"topic": {
|
|
46447
|
-
"const": "ravi.outbound.reaction",
|
|
46448
50207
|
"type": "string"
|
|
46449
50208
|
}
|
|
46450
50209
|
},
|
|
46451
50210
|
"required": [
|
|
46452
|
-
"
|
|
50211
|
+
"status",
|
|
50212
|
+
"queued",
|
|
50213
|
+
"executionMode",
|
|
46453
50214
|
"topic",
|
|
46454
50215
|
"reaction",
|
|
46455
50216
|
"target",
|
|
@@ -48469,7 +52230,7 @@ export const SdkOpenapiEmitInputSchema = {
|
|
|
48469
52230
|
"additionalProperties": false,
|
|
48470
52231
|
"properties": {
|
|
48471
52232
|
"out": {
|
|
48472
|
-
"description": "Write spec JSON to this path",
|
|
52233
|
+
"description": "Write spec JSON to this path (default: docs/openapi.json)",
|
|
48473
52234
|
"type": "string"
|
|
48474
52235
|
},
|
|
48475
52236
|
"stdout": {
|
|
@@ -66817,7 +70578,7 @@ export const WhatsappDmReadInputSchema = {
|
|
|
66817
70578
|
"type": "string"
|
|
66818
70579
|
},
|
|
66819
70580
|
"noAck": {
|
|
66820
|
-
"default":
|
|
70581
|
+
"default": false,
|
|
66821
70582
|
"description": "Don't send read receipt",
|
|
66822
70583
|
"type": "boolean"
|
|
66823
70584
|
}
|