@arbol-ai/cli 3.62.0 → 3.64.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -0
- package/dist/index.js +2893 -434
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -23,6 +23,222 @@ function chosenApi(env = process.env) {
|
|
|
23
23
|
return origin(env.ARBOL_API_URL ?? DEFAULT_API);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
// src/connections.ts
|
|
27
|
+
var CONNECTIONS = "connections";
|
|
28
|
+
var CONNECTION_FLAGS = { arguments: { type: "string" } };
|
|
29
|
+
var CONNECTIONS_HELP = `An organization's own servers: the custom connections in Arbol Account, through the Arbol API.
|
|
30
|
+
|
|
31
|
+
Usage
|
|
32
|
+
arbol connections tools list <connectionId>
|
|
33
|
+
The connection's tools: name, description, input schema and whether it only reads.
|
|
34
|
+
arbol connections tools run <connectionId> <tool> [--arguments <json> | --input <file|->]
|
|
35
|
+
Run one tool with a JSON object of arguments, and print the server's answer.
|
|
36
|
+
|
|
37
|
+
Flags
|
|
38
|
+
--arguments <json> The tool's arguments, inline: --arguments '{"documentNumber":"123"}'
|
|
39
|
+
--input <file|-> The tool's arguments from a JSON file (- reads stdin)
|
|
40
|
+
--profile <name> The login profile to use (default: ARBOL_PROFILE, then the default)
|
|
41
|
+
--dry-run Show the request without sending it
|
|
42
|
+
|
|
43
|
+
These routes take a person's login (arbol auth login) with access to the organization's connections
|
|
44
|
+
(account:connections:read, write or operate). The API does not accept API keys here, so an API key
|
|
45
|
+
profile, --api-key-stdin and ARBOL_API_KEY are refused before anything is sent. A run is sent once and
|
|
46
|
+
never retried: a tool that changes something and gets no answer may still have run, so check before
|
|
47
|
+
repeating it. A server's refusal (isError) is printed and exits nonzero.
|
|
48
|
+
|
|
49
|
+
Examples
|
|
50
|
+
arbol account connections list
|
|
51
|
+
arbol connections tools list con_01jcz6k7m8n9p0q1r2s3t4v5w6
|
|
52
|
+
arbol connections tools run con_01jcz6k7m8n9p0q1r2s3t4v5w6 buscar_citas --arguments '{"documento":"123"}'
|
|
53
|
+
arbol connections tools run con_01jcz6k7m8n9p0q1r2s3t4v5w6 crear_cita --input cita.json
|
|
54
|
+
`;
|
|
55
|
+
var MAX_ANSWER_BYTES = 4 * 1024 * 1024;
|
|
56
|
+
var LIST_TIMEOUT_MS = 60000;
|
|
57
|
+
var RUN_TIMEOUT_MS = 180000;
|
|
58
|
+
var MCP_PROTOCOL_VERSION = "2025-11-25";
|
|
59
|
+
var MAX_PAGES = 20;
|
|
60
|
+
|
|
61
|
+
class ConnectionRefusal extends Error {
|
|
62
|
+
code;
|
|
63
|
+
requestId;
|
|
64
|
+
outcomeUnknown;
|
|
65
|
+
constructor(code, message, requestId, outcomeUnknown = false) {
|
|
66
|
+
super(`${code}: ${message}${outcomeUnknown ? " (the outcome is unknown; check before repeating it)" : ""}${requestId ? ` [request ${requestId}]` : ""}`);
|
|
67
|
+
this.code = code;
|
|
68
|
+
this.requestId = requestId;
|
|
69
|
+
this.outcomeUnknown = outcomeUnknown;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
function isRecord(value) {
|
|
73
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
74
|
+
}
|
|
75
|
+
function validSegment(value) {
|
|
76
|
+
if (!value || value === "." || value === "..") {
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
for (const character of value) {
|
|
80
|
+
if ((character.codePointAt(0) ?? 0) <= 32 || character === "" || "/\\?#".includes(character)) {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
function connectionUrl(api, connectionId) {
|
|
87
|
+
return `${api}/v1/connections/${encodeURIComponent(connectionId)}`;
|
|
88
|
+
}
|
|
89
|
+
function toolsListRequest(api, connectionId, cursor) {
|
|
90
|
+
return {
|
|
91
|
+
operation: "connections.tools.list",
|
|
92
|
+
method: "POST",
|
|
93
|
+
url: `${connectionUrl(api, connectionId)}/mcp`,
|
|
94
|
+
body: { jsonrpc: "2.0", id: 1, method: "tools/list", params: cursor ? { cursor } : {} }
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
function toolRunRequest(api, connectionId, tool, args) {
|
|
98
|
+
return {
|
|
99
|
+
operation: "connections.tools.run",
|
|
100
|
+
method: "POST",
|
|
101
|
+
url: `${connectionUrl(api, connectionId)}/tools/${encodeURIComponent(tool)}`,
|
|
102
|
+
body: args
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
async function boundedText(response) {
|
|
106
|
+
const reader = response.body?.getReader();
|
|
107
|
+
if (!reader) {
|
|
108
|
+
return "";
|
|
109
|
+
}
|
|
110
|
+
const chunks = [];
|
|
111
|
+
let size = 0;
|
|
112
|
+
try {
|
|
113
|
+
for (;; ) {
|
|
114
|
+
const chunk = await reader.read();
|
|
115
|
+
if (chunk.done) {
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
size += chunk.value.byteLength;
|
|
119
|
+
if (size > MAX_ANSWER_BYTES) {
|
|
120
|
+
await reader.cancel();
|
|
121
|
+
throw new Error("The answer exceeded its bound");
|
|
122
|
+
}
|
|
123
|
+
chunks.push(chunk.value);
|
|
124
|
+
}
|
|
125
|
+
} finally {
|
|
126
|
+
reader.releaseLock();
|
|
127
|
+
}
|
|
128
|
+
return Buffer.concat(chunks).toString("utf8");
|
|
129
|
+
}
|
|
130
|
+
async function send(request, token, headers, timeoutMs) {
|
|
131
|
+
const response = await fetch(request.url, {
|
|
132
|
+
method: request.method,
|
|
133
|
+
headers: { ...headers, authorization: `Bearer ${token}`, "content-type": "application/json" },
|
|
134
|
+
body: JSON.stringify(request.body),
|
|
135
|
+
redirect: "manual",
|
|
136
|
+
signal: AbortSignal.timeout(timeoutMs)
|
|
137
|
+
});
|
|
138
|
+
const requestId = response.headers.get("x-request-id");
|
|
139
|
+
if (response.status >= 300 && response.status < 400) {
|
|
140
|
+
await response.body?.cancel();
|
|
141
|
+
throw new ConnectionRefusal("REDIRECT_REFUSED", "The API answered with a redirect", requestId);
|
|
142
|
+
}
|
|
143
|
+
const type = (response.headers.get("content-type") ?? "").split(";")[0]?.trim().toLowerCase() ?? "";
|
|
144
|
+
return { requestId, status: response.status, text: await boundedText(response), type };
|
|
145
|
+
}
|
|
146
|
+
var UNKNOWN_CODES = new Set(["OUTCOME_UNKNOWN", "INTERNAL_ERROR"]);
|
|
147
|
+
function refusalOf(answer, mayHaveRun) {
|
|
148
|
+
let envelope;
|
|
149
|
+
try {
|
|
150
|
+
envelope = JSON.parse(answer.text);
|
|
151
|
+
} catch {
|
|
152
|
+
envelope = null;
|
|
153
|
+
}
|
|
154
|
+
const error = isRecord(envelope) && isRecord(envelope.error) ? envelope.error : {};
|
|
155
|
+
const message = typeof error.message === "string" ? error.message : "The request was refused";
|
|
156
|
+
if (typeof error.code === "string" && /^[A-Z][A-Z0-9_]{0,79}$/.test(error.code)) {
|
|
157
|
+
return new ConnectionRefusal(error.code, message, answer.requestId, mayHaveRun && UNKNOWN_CODES.has(error.code));
|
|
158
|
+
}
|
|
159
|
+
return new ConnectionRefusal(`HTTP_${answer.status}`, message, answer.requestId, mayHaveRun && answer.status >= 500);
|
|
160
|
+
}
|
|
161
|
+
function rpcMessages(answer) {
|
|
162
|
+
if (answer.type !== "text/event-stream") {
|
|
163
|
+
const value = JSON.parse(answer.text);
|
|
164
|
+
return Array.isArray(value) ? value : [value];
|
|
165
|
+
}
|
|
166
|
+
const messages = [];
|
|
167
|
+
for (const event of answer.text.split(/\r?\n\r?\n/)) {
|
|
168
|
+
const data = event.split(/\r?\n/).filter((line) => line.startsWith("data:")).map((line) => line.slice("data:".length).replace(/^ /, "")).join(`
|
|
169
|
+
`);
|
|
170
|
+
if (data) {
|
|
171
|
+
messages.push(JSON.parse(data));
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
return messages;
|
|
175
|
+
}
|
|
176
|
+
async function toolsPage(api, token, connectionId, cursor) {
|
|
177
|
+
const answer = await send(toolsListRequest(api, connectionId, cursor), token, { accept: "application/json, text/event-stream", "mcp-protocol-version": MCP_PROTOCOL_VERSION }, LIST_TIMEOUT_MS);
|
|
178
|
+
if (answer.status < 200 || answer.status >= 300) {
|
|
179
|
+
throw refusalOf(answer, false);
|
|
180
|
+
}
|
|
181
|
+
let messages;
|
|
182
|
+
try {
|
|
183
|
+
messages = rpcMessages(answer);
|
|
184
|
+
} catch {
|
|
185
|
+
throw new ConnectionRefusal("INVALID_RESPONSE", "The answer was not MCP", answer.requestId);
|
|
186
|
+
}
|
|
187
|
+
const reply = messages.find((message) => isRecord(message) && message.id === 1);
|
|
188
|
+
if (isRecord(reply) && isRecord(reply.error)) {
|
|
189
|
+
const message = typeof reply.error.message === "string" ? reply.error.message : "The request was refused";
|
|
190
|
+
throw new ConnectionRefusal("MCP_ERROR", message, answer.requestId);
|
|
191
|
+
}
|
|
192
|
+
const result = isRecord(reply) && isRecord(reply.result) ? reply.result : null;
|
|
193
|
+
if (!(result && Array.isArray(result.tools))) {
|
|
194
|
+
throw new ConnectionRefusal("INVALID_RESPONSE", "The answer listed no tools", answer.requestId);
|
|
195
|
+
}
|
|
196
|
+
const next = typeof result.nextCursor === "string" && result.nextCursor ? result.nextCursor : null;
|
|
197
|
+
return { nextCursor: next, tools: result.tools };
|
|
198
|
+
}
|
|
199
|
+
async function listConnectionTools(api, token, connectionId) {
|
|
200
|
+
const tools = [];
|
|
201
|
+
const seen = new Set;
|
|
202
|
+
let cursor;
|
|
203
|
+
for (let page = 0;page < MAX_PAGES; page++) {
|
|
204
|
+
const listed = await toolsPage(api, token, connectionId, cursor);
|
|
205
|
+
tools.push(...listed.tools);
|
|
206
|
+
if (!listed.nextCursor) {
|
|
207
|
+
return tools;
|
|
208
|
+
}
|
|
209
|
+
if (seen.has(listed.nextCursor)) {
|
|
210
|
+
break;
|
|
211
|
+
}
|
|
212
|
+
seen.add(listed.nextCursor);
|
|
213
|
+
cursor = listed.nextCursor;
|
|
214
|
+
}
|
|
215
|
+
throw new ConnectionRefusal("INVALID_RESPONSE", "The tools list did not end", null);
|
|
216
|
+
}
|
|
217
|
+
async function runConnectionTool(api, token, connectionId, tool, args) {
|
|
218
|
+
let answer;
|
|
219
|
+
try {
|
|
220
|
+
answer = await send(toolRunRequest(api, connectionId, tool, args), token, { accept: "application/json" }, RUN_TIMEOUT_MS);
|
|
221
|
+
} catch (error) {
|
|
222
|
+
if (error instanceof ConnectionRefusal) {
|
|
223
|
+
throw new ConnectionRefusal(error.code, "The API answered with a redirect", error.requestId, true);
|
|
224
|
+
}
|
|
225
|
+
throw new ConnectionRefusal("NETWORK_ERROR", "The request got no complete answer and was not retried", null, true);
|
|
226
|
+
}
|
|
227
|
+
let envelope;
|
|
228
|
+
try {
|
|
229
|
+
envelope = JSON.parse(answer.text);
|
|
230
|
+
} catch {
|
|
231
|
+
envelope = null;
|
|
232
|
+
}
|
|
233
|
+
if (answer.status >= 200 && answer.status < 300 && isRecord(envelope) && envelope.success === true) {
|
|
234
|
+
return { data: envelope.data, requestId: answer.requestId };
|
|
235
|
+
}
|
|
236
|
+
if (answer.status >= 200 && answer.status < 300) {
|
|
237
|
+
throw new ConnectionRefusal("INVALID_RESPONSE", "The answer was not the API's", answer.requestId, true);
|
|
238
|
+
}
|
|
239
|
+
throw refusalOf(answer, true);
|
|
240
|
+
}
|
|
241
|
+
|
|
26
242
|
// src/credentials.ts
|
|
27
243
|
import { createHash, randomUUID as randomUUID2 } from "node:crypto";
|
|
28
244
|
import { mkdir as mkdir2, readFile as readFile2, writeFile as writeFile2, rename as rename2, unlink as unlink2, open as open2, lstat } from "node:fs/promises";
|
|
@@ -1023,203 +1239,40 @@ var commands = {
|
|
|
1023
1239
|
confirmation: null,
|
|
1024
1240
|
hidden: false
|
|
1025
1241
|
},
|
|
1026
|
-
"account
|
|
1027
|
-
operation: "account.
|
|
1242
|
+
"account connections refresh": {
|
|
1243
|
+
operation: "account.connections.refresh",
|
|
1028
1244
|
sdkPath: [
|
|
1029
1245
|
"account",
|
|
1030
|
-
"
|
|
1031
|
-
"
|
|
1032
|
-
],
|
|
1033
|
-
pathField: null,
|
|
1034
|
-
fields: [
|
|
1035
|
-
{
|
|
1036
|
-
name: "email",
|
|
1037
|
-
flag: "email",
|
|
1038
|
-
kind: "string",
|
|
1039
|
-
required: true,
|
|
1040
|
-
description: "Who to invite: someone who does not have an Arbol account yet."
|
|
1041
|
-
},
|
|
1042
|
-
{
|
|
1043
|
-
name: "product",
|
|
1044
|
-
flag: "product",
|
|
1045
|
-
kind: "string",
|
|
1046
|
-
required: true,
|
|
1047
|
-
description: "A product whose team Account administers: Raíz, Agenda, Ámbar or Account itself.",
|
|
1048
|
-
choices: [
|
|
1049
|
-
"raiz",
|
|
1050
|
-
"agenda",
|
|
1051
|
-
"ambar",
|
|
1052
|
-
"account"
|
|
1053
|
-
]
|
|
1054
|
-
},
|
|
1055
|
-
{
|
|
1056
|
-
name: "role",
|
|
1057
|
-
flag: "role",
|
|
1058
|
-
kind: "string",
|
|
1059
|
-
required: true,
|
|
1060
|
-
description: "A role name, such as calendar:operator."
|
|
1061
|
-
}
|
|
1246
|
+
"connections",
|
|
1247
|
+
"refresh"
|
|
1062
1248
|
],
|
|
1249
|
+
pathField: "connectionId",
|
|
1250
|
+
fields: [],
|
|
1063
1251
|
inputSchema: {
|
|
1064
1252
|
type: "object",
|
|
1065
1253
|
required: [
|
|
1066
|
-
"
|
|
1067
|
-
"product",
|
|
1068
|
-
"role"
|
|
1254
|
+
"connectionId"
|
|
1069
1255
|
],
|
|
1070
1256
|
properties: {
|
|
1071
|
-
|
|
1072
|
-
type: "string",
|
|
1073
|
-
format: "email",
|
|
1074
|
-
maxLength: 320,
|
|
1075
|
-
description: "Who to invite: someone who does not have an Arbol account yet."
|
|
1076
|
-
},
|
|
1077
|
-
product: {
|
|
1078
|
-
anyOf: [
|
|
1079
|
-
{
|
|
1080
|
-
type: "string",
|
|
1081
|
-
const: "raiz"
|
|
1082
|
-
},
|
|
1083
|
-
{
|
|
1084
|
-
type: "string",
|
|
1085
|
-
const: "agenda"
|
|
1086
|
-
},
|
|
1087
|
-
{
|
|
1088
|
-
type: "string",
|
|
1089
|
-
const: "ambar"
|
|
1090
|
-
},
|
|
1091
|
-
{
|
|
1092
|
-
type: "string",
|
|
1093
|
-
const: "account"
|
|
1094
|
-
}
|
|
1095
|
-
],
|
|
1096
|
-
description: "A product whose team Account administers: Raíz, Agenda, Ámbar or Account itself."
|
|
1097
|
-
},
|
|
1098
|
-
role: {
|
|
1257
|
+
connectionId: {
|
|
1099
1258
|
type: "string",
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
description: "A role name, such as calendar:operator."
|
|
1259
|
+
pattern: "^con_[0-7][0-9a-hjkmnp-tv-z]{25}$",
|
|
1260
|
+
description: "A connection's id: con_ and 26 characters, stable and unique across the platform."
|
|
1103
1261
|
}
|
|
1104
1262
|
},
|
|
1105
1263
|
additionalProperties: false
|
|
1106
1264
|
},
|
|
1107
|
-
title: "
|
|
1108
|
-
description: "
|
|
1265
|
+
title: "Read a custom server's tools again now",
|
|
1266
|
+
description: "Read the organization's own server again now, as Account does by itself every 30 minutes, so a deploy of the server reaches its agents at their next turn. What a tool says and takes follows the server. A new tool, or one that now writes or writes through more integrations, waits for Arbol staff and counts as held, as its writes do until Arbol verifies the server's domain. A server's deploy calls this with an API key holding account:connections:write.",
|
|
1109
1267
|
effect: "write",
|
|
1110
1268
|
confirmation: null,
|
|
1111
1269
|
hidden: false
|
|
1112
1270
|
},
|
|
1113
|
-
"account invitations
|
|
1114
|
-
operation: "account.invitations.
|
|
1115
|
-
sdkPath: [
|
|
1116
|
-
"account",
|
|
1117
|
-
"invitations",
|
|
1118
|
-
"delete"
|
|
1119
|
-
],
|
|
1120
|
-
pathField: "invitationId",
|
|
1121
|
-
fields: [],
|
|
1122
|
-
inputSchema: {
|
|
1123
|
-
type: "object",
|
|
1124
|
-
required: [
|
|
1125
|
-
"invitationId"
|
|
1126
|
-
],
|
|
1127
|
-
properties: {
|
|
1128
|
-
invitationId: {
|
|
1129
|
-
type: "string",
|
|
1130
|
-
minLength: 1,
|
|
1131
|
-
maxLength: 256,
|
|
1132
|
-
description: "The invitation's id, as invitations.list answers it."
|
|
1133
|
-
}
|
|
1134
|
-
},
|
|
1135
|
-
additionalProperties: false
|
|
1136
|
-
},
|
|
1137
|
-
title: "Revoke an invitation",
|
|
1138
|
-
description: "Revokes a pending invitation whose roles all belong to products the caller administers.",
|
|
1139
|
-
effect: "delete",
|
|
1140
|
-
confirmation: "Revoke an invitation. This cannot be undone.",
|
|
1141
|
-
hidden: false
|
|
1142
|
-
},
|
|
1143
|
-
"account invitations list": {
|
|
1144
|
-
operation: "account.invitations.list",
|
|
1271
|
+
"account invitations create": {
|
|
1272
|
+
operation: "account.invitations.create",
|
|
1145
1273
|
sdkPath: [
|
|
1146
1274
|
"account",
|
|
1147
1275
|
"invitations",
|
|
1148
|
-
"list"
|
|
1149
|
-
],
|
|
1150
|
-
pathField: null,
|
|
1151
|
-
fields: [
|
|
1152
|
-
{
|
|
1153
|
-
name: "cursor",
|
|
1154
|
-
flag: "cursor",
|
|
1155
|
-
kind: "string",
|
|
1156
|
-
required: false,
|
|
1157
|
-
description: "Opaque cursor returned by pageInfo; omit it to request the first page."
|
|
1158
|
-
},
|
|
1159
|
-
{
|
|
1160
|
-
name: "direction",
|
|
1161
|
-
flag: "direction",
|
|
1162
|
-
kind: "string",
|
|
1163
|
-
required: false,
|
|
1164
|
-
description: "Direction to traverse the stable keyset ordering from the supplied cursor.",
|
|
1165
|
-
choices: [
|
|
1166
|
-
"forward",
|
|
1167
|
-
"backward"
|
|
1168
|
-
],
|
|
1169
|
-
default: "forward"
|
|
1170
|
-
},
|
|
1171
|
-
{
|
|
1172
|
-
name: "limit",
|
|
1173
|
-
flag: "limit",
|
|
1174
|
-
kind: "integer",
|
|
1175
|
-
required: false,
|
|
1176
|
-
description: "Maximum items returned in one page. Defaults to 25; larger reads require another cursor.",
|
|
1177
|
-
default: 25
|
|
1178
|
-
}
|
|
1179
|
-
],
|
|
1180
|
-
inputSchema: {
|
|
1181
|
-
type: "object",
|
|
1182
|
-
required: [],
|
|
1183
|
-
properties: {
|
|
1184
|
-
cursor: {
|
|
1185
|
-
type: "string",
|
|
1186
|
-
description: "Opaque cursor returned by pageInfo; omit it to request the first page."
|
|
1187
|
-
},
|
|
1188
|
-
direction: {
|
|
1189
|
-
anyOf: [
|
|
1190
|
-
{
|
|
1191
|
-
type: "string",
|
|
1192
|
-
const: "forward"
|
|
1193
|
-
},
|
|
1194
|
-
{
|
|
1195
|
-
type: "string",
|
|
1196
|
-
const: "backward"
|
|
1197
|
-
}
|
|
1198
|
-
],
|
|
1199
|
-
description: "Direction to traverse the stable keyset ordering from the supplied cursor.",
|
|
1200
|
-
default: "forward"
|
|
1201
|
-
},
|
|
1202
|
-
limit: {
|
|
1203
|
-
type: "integer",
|
|
1204
|
-
minimum: 1,
|
|
1205
|
-
maximum: 100,
|
|
1206
|
-
description: "Maximum items returned in one page. Defaults to 25; larger reads require another cursor.",
|
|
1207
|
-
default: 25
|
|
1208
|
-
}
|
|
1209
|
-
},
|
|
1210
|
-
additionalProperties: false
|
|
1211
|
-
},
|
|
1212
|
-
title: "List the invitations",
|
|
1213
|
-
description: "The organization's pending invitations, newest first, and whether the caller may revoke each.",
|
|
1214
|
-
effect: "read",
|
|
1215
|
-
confirmation: null,
|
|
1216
|
-
hidden: false
|
|
1217
|
-
},
|
|
1218
|
-
"account members create": {
|
|
1219
|
-
operation: "account.members.create",
|
|
1220
|
-
sdkPath: [
|
|
1221
|
-
"account",
|
|
1222
|
-
"members",
|
|
1223
1276
|
"create"
|
|
1224
1277
|
],
|
|
1225
1278
|
pathField: null,
|
|
@@ -1229,7 +1282,199 @@ var commands = {
|
|
|
1229
1282
|
flag: "email",
|
|
1230
1283
|
kind: "string",
|
|
1231
1284
|
required: true,
|
|
1232
|
-
description: "
|
|
1285
|
+
description: "Who to invite: someone who does not have an Arbol account yet."
|
|
1286
|
+
},
|
|
1287
|
+
{
|
|
1288
|
+
name: "product",
|
|
1289
|
+
flag: "product",
|
|
1290
|
+
kind: "string",
|
|
1291
|
+
required: true,
|
|
1292
|
+
description: "A product whose team Account administers: Raíz, Agenda, Ámbar or Account itself.",
|
|
1293
|
+
choices: [
|
|
1294
|
+
"raiz",
|
|
1295
|
+
"agenda",
|
|
1296
|
+
"ambar",
|
|
1297
|
+
"account"
|
|
1298
|
+
]
|
|
1299
|
+
},
|
|
1300
|
+
{
|
|
1301
|
+
name: "role",
|
|
1302
|
+
flag: "role",
|
|
1303
|
+
kind: "string",
|
|
1304
|
+
required: true,
|
|
1305
|
+
description: "A role name, such as calendar:operator."
|
|
1306
|
+
}
|
|
1307
|
+
],
|
|
1308
|
+
inputSchema: {
|
|
1309
|
+
type: "object",
|
|
1310
|
+
required: [
|
|
1311
|
+
"email",
|
|
1312
|
+
"product",
|
|
1313
|
+
"role"
|
|
1314
|
+
],
|
|
1315
|
+
properties: {
|
|
1316
|
+
email: {
|
|
1317
|
+
type: "string",
|
|
1318
|
+
format: "email",
|
|
1319
|
+
maxLength: 320,
|
|
1320
|
+
description: "Who to invite: someone who does not have an Arbol account yet."
|
|
1321
|
+
},
|
|
1322
|
+
product: {
|
|
1323
|
+
anyOf: [
|
|
1324
|
+
{
|
|
1325
|
+
type: "string",
|
|
1326
|
+
const: "raiz"
|
|
1327
|
+
},
|
|
1328
|
+
{
|
|
1329
|
+
type: "string",
|
|
1330
|
+
const: "agenda"
|
|
1331
|
+
},
|
|
1332
|
+
{
|
|
1333
|
+
type: "string",
|
|
1334
|
+
const: "ambar"
|
|
1335
|
+
},
|
|
1336
|
+
{
|
|
1337
|
+
type: "string",
|
|
1338
|
+
const: "account"
|
|
1339
|
+
}
|
|
1340
|
+
],
|
|
1341
|
+
description: "A product whose team Account administers: Raíz, Agenda, Ámbar or Account itself."
|
|
1342
|
+
},
|
|
1343
|
+
role: {
|
|
1344
|
+
type: "string",
|
|
1345
|
+
minLength: 1,
|
|
1346
|
+
maxLength: 128,
|
|
1347
|
+
description: "A role name, such as calendar:operator."
|
|
1348
|
+
}
|
|
1349
|
+
},
|
|
1350
|
+
additionalProperties: false
|
|
1351
|
+
},
|
|
1352
|
+
title: "Invite someone to a product",
|
|
1353
|
+
description: "Invites someone without an Arbol account by email with a role in Raíz, Agenda, Ámbar or Account. The invitation email comes from the product's own application. Existing accounts receive access with `members.create` and sign in with their current password.",
|
|
1354
|
+
effect: "write",
|
|
1355
|
+
confirmation: null,
|
|
1356
|
+
hidden: false
|
|
1357
|
+
},
|
|
1358
|
+
"account invitations delete": {
|
|
1359
|
+
operation: "account.invitations.delete",
|
|
1360
|
+
sdkPath: [
|
|
1361
|
+
"account",
|
|
1362
|
+
"invitations",
|
|
1363
|
+
"delete"
|
|
1364
|
+
],
|
|
1365
|
+
pathField: "invitationId",
|
|
1366
|
+
fields: [],
|
|
1367
|
+
inputSchema: {
|
|
1368
|
+
type: "object",
|
|
1369
|
+
required: [
|
|
1370
|
+
"invitationId"
|
|
1371
|
+
],
|
|
1372
|
+
properties: {
|
|
1373
|
+
invitationId: {
|
|
1374
|
+
type: "string",
|
|
1375
|
+
minLength: 1,
|
|
1376
|
+
maxLength: 256,
|
|
1377
|
+
description: "The invitation's id, as invitations.list answers it."
|
|
1378
|
+
}
|
|
1379
|
+
},
|
|
1380
|
+
additionalProperties: false
|
|
1381
|
+
},
|
|
1382
|
+
title: "Revoke an invitation",
|
|
1383
|
+
description: "Revokes a pending invitation whose roles all belong to products the caller administers.",
|
|
1384
|
+
effect: "delete",
|
|
1385
|
+
confirmation: "Revoke an invitation. This cannot be undone.",
|
|
1386
|
+
hidden: false
|
|
1387
|
+
},
|
|
1388
|
+
"account invitations list": {
|
|
1389
|
+
operation: "account.invitations.list",
|
|
1390
|
+
sdkPath: [
|
|
1391
|
+
"account",
|
|
1392
|
+
"invitations",
|
|
1393
|
+
"list"
|
|
1394
|
+
],
|
|
1395
|
+
pathField: null,
|
|
1396
|
+
fields: [
|
|
1397
|
+
{
|
|
1398
|
+
name: "cursor",
|
|
1399
|
+
flag: "cursor",
|
|
1400
|
+
kind: "string",
|
|
1401
|
+
required: false,
|
|
1402
|
+
description: "Opaque cursor returned by pageInfo; omit it to request the first page."
|
|
1403
|
+
},
|
|
1404
|
+
{
|
|
1405
|
+
name: "direction",
|
|
1406
|
+
flag: "direction",
|
|
1407
|
+
kind: "string",
|
|
1408
|
+
required: false,
|
|
1409
|
+
description: "Direction to traverse the stable keyset ordering from the supplied cursor.",
|
|
1410
|
+
choices: [
|
|
1411
|
+
"forward",
|
|
1412
|
+
"backward"
|
|
1413
|
+
],
|
|
1414
|
+
default: "forward"
|
|
1415
|
+
},
|
|
1416
|
+
{
|
|
1417
|
+
name: "limit",
|
|
1418
|
+
flag: "limit",
|
|
1419
|
+
kind: "integer",
|
|
1420
|
+
required: false,
|
|
1421
|
+
description: "Maximum items returned in one page. Defaults to 25; larger reads require another cursor.",
|
|
1422
|
+
default: 25
|
|
1423
|
+
}
|
|
1424
|
+
],
|
|
1425
|
+
inputSchema: {
|
|
1426
|
+
type: "object",
|
|
1427
|
+
required: [],
|
|
1428
|
+
properties: {
|
|
1429
|
+
cursor: {
|
|
1430
|
+
type: "string",
|
|
1431
|
+
description: "Opaque cursor returned by pageInfo; omit it to request the first page."
|
|
1432
|
+
},
|
|
1433
|
+
direction: {
|
|
1434
|
+
anyOf: [
|
|
1435
|
+
{
|
|
1436
|
+
type: "string",
|
|
1437
|
+
const: "forward"
|
|
1438
|
+
},
|
|
1439
|
+
{
|
|
1440
|
+
type: "string",
|
|
1441
|
+
const: "backward"
|
|
1442
|
+
}
|
|
1443
|
+
],
|
|
1444
|
+
description: "Direction to traverse the stable keyset ordering from the supplied cursor.",
|
|
1445
|
+
default: "forward"
|
|
1446
|
+
},
|
|
1447
|
+
limit: {
|
|
1448
|
+
type: "integer",
|
|
1449
|
+
minimum: 1,
|
|
1450
|
+
maximum: 100,
|
|
1451
|
+
description: "Maximum items returned in one page. Defaults to 25; larger reads require another cursor.",
|
|
1452
|
+
default: 25
|
|
1453
|
+
}
|
|
1454
|
+
},
|
|
1455
|
+
additionalProperties: false
|
|
1456
|
+
},
|
|
1457
|
+
title: "List the invitations",
|
|
1458
|
+
description: "The organization's pending invitations, newest first, and whether the caller may revoke each.",
|
|
1459
|
+
effect: "read",
|
|
1460
|
+
confirmation: null,
|
|
1461
|
+
hidden: false
|
|
1462
|
+
},
|
|
1463
|
+
"account members create": {
|
|
1464
|
+
operation: "account.members.create",
|
|
1465
|
+
sdkPath: [
|
|
1466
|
+
"account",
|
|
1467
|
+
"members",
|
|
1468
|
+
"create"
|
|
1469
|
+
],
|
|
1470
|
+
pathField: null,
|
|
1471
|
+
fields: [
|
|
1472
|
+
{
|
|
1473
|
+
name: "email",
|
|
1474
|
+
flag: "email",
|
|
1475
|
+
kind: "string",
|
|
1476
|
+
required: true,
|
|
1477
|
+
description: "The email of someone with an existing Arbol account, in this organization or another."
|
|
1233
1478
|
},
|
|
1234
1479
|
{
|
|
1235
1480
|
name: "product",
|
|
@@ -1881,6 +2126,218 @@ var commands = {
|
|
|
1881
2126
|
confirmation: null,
|
|
1882
2127
|
hidden: false
|
|
1883
2128
|
},
|
|
2129
|
+
"account servers create": {
|
|
2130
|
+
operation: "account.servers.create",
|
|
2131
|
+
sdkPath: [
|
|
2132
|
+
"account",
|
|
2133
|
+
"servers",
|
|
2134
|
+
"create"
|
|
2135
|
+
],
|
|
2136
|
+
pathField: null,
|
|
2137
|
+
fields: [
|
|
2138
|
+
{
|
|
2139
|
+
name: "name",
|
|
2140
|
+
flag: "name",
|
|
2141
|
+
kind: "string",
|
|
2142
|
+
required: true,
|
|
2143
|
+
description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'."
|
|
2144
|
+
},
|
|
2145
|
+
{
|
|
2146
|
+
name: "url",
|
|
2147
|
+
flag: "url",
|
|
2148
|
+
kind: "string",
|
|
2149
|
+
required: true,
|
|
2150
|
+
description: "The OpenAPI document or the MCP endpoint: https, at a public address, without a query or a fragment."
|
|
2151
|
+
},
|
|
2152
|
+
{
|
|
2153
|
+
name: "transport",
|
|
2154
|
+
flag: "transport",
|
|
2155
|
+
kind: "string",
|
|
2156
|
+
required: false,
|
|
2157
|
+
description: "http: an OpenAPI 3 document (or a server whose /openapi.json serves one). mcp: an MCP endpoint (Streamable HTTP). Leave it out and Account finds which the address serves.",
|
|
2158
|
+
choices: [
|
|
2159
|
+
"http",
|
|
2160
|
+
"mcp"
|
|
2161
|
+
]
|
|
2162
|
+
},
|
|
2163
|
+
{
|
|
2164
|
+
name: "authHeader",
|
|
2165
|
+
flag: "auth-header",
|
|
2166
|
+
kind: "string",
|
|
2167
|
+
required: false,
|
|
2168
|
+
description: "The header the secret travels in, or null for Authorization: Bearer. Leave it out and Account uses the API key header the server's OpenAPI document declares, else Authorization: Bearer."
|
|
2169
|
+
},
|
|
2170
|
+
{
|
|
2171
|
+
name: "secret",
|
|
2172
|
+
flag: "secret",
|
|
2173
|
+
kind: "string",
|
|
2174
|
+
required: true,
|
|
2175
|
+
description: "The secret the server admits calls with. Arbol keeps it encrypted, sends it only to this server and never shows it again."
|
|
2176
|
+
}
|
|
2177
|
+
],
|
|
2178
|
+
inputSchema: {
|
|
2179
|
+
type: "object",
|
|
2180
|
+
required: [
|
|
2181
|
+
"name",
|
|
2182
|
+
"url",
|
|
2183
|
+
"secret"
|
|
2184
|
+
],
|
|
2185
|
+
properties: {
|
|
2186
|
+
name: {
|
|
2187
|
+
type: "string",
|
|
2188
|
+
description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'."
|
|
2189
|
+
},
|
|
2190
|
+
url: {
|
|
2191
|
+
type: "string",
|
|
2192
|
+
format: "uri",
|
|
2193
|
+
maxLength: 2048,
|
|
2194
|
+
pattern: "^https://[^?#]+$",
|
|
2195
|
+
description: "The OpenAPI document or the MCP endpoint: https, at a public address, without a query or a fragment."
|
|
2196
|
+
},
|
|
2197
|
+
transport: {
|
|
2198
|
+
anyOf: [
|
|
2199
|
+
{
|
|
2200
|
+
type: "string",
|
|
2201
|
+
const: "http"
|
|
2202
|
+
},
|
|
2203
|
+
{
|
|
2204
|
+
type: "string",
|
|
2205
|
+
const: "mcp"
|
|
2206
|
+
}
|
|
2207
|
+
],
|
|
2208
|
+
description: "http: an OpenAPI 3 document (or a server whose /openapi.json serves one). mcp: an MCP endpoint (Streamable HTTP). Leave it out and Account finds which the address serves."
|
|
2209
|
+
},
|
|
2210
|
+
authHeader: {
|
|
2211
|
+
anyOf: [
|
|
2212
|
+
{
|
|
2213
|
+
type: "string",
|
|
2214
|
+
pattern: "^[A-Za-z][A-Za-z0-9-]{0,63}$",
|
|
2215
|
+
description: "The header that carries the secret; without it the secret is sent as Authorization: Bearer."
|
|
2216
|
+
},
|
|
2217
|
+
{
|
|
2218
|
+
type: "null"
|
|
2219
|
+
}
|
|
2220
|
+
],
|
|
2221
|
+
description: "The header the secret travels in, or null for Authorization: Bearer. Leave it out and Account uses the API key header the server's OpenAPI document declares, else Authorization: Bearer."
|
|
2222
|
+
},
|
|
2223
|
+
secret: {
|
|
2224
|
+
type: "string",
|
|
2225
|
+
secret: true,
|
|
2226
|
+
writeOnly: true,
|
|
2227
|
+
minLength: 1,
|
|
2228
|
+
maxLength: 4096,
|
|
2229
|
+
pattern: "^[^\\r\\n]+$",
|
|
2230
|
+
description: "The secret the server admits calls with. Arbol keeps it encrypted, sends it only to this server and never shows it again."
|
|
2231
|
+
}
|
|
2232
|
+
},
|
|
2233
|
+
additionalProperties: false
|
|
2234
|
+
},
|
|
2235
|
+
title: "Register the organization's own server",
|
|
2236
|
+
description: "Register an organization's own server as one of its connections, read again as servers.discover reads it. Its agents may use its reads at once; its writes wait until Arbol verifies that the server's domain belongs to the organization. The secret is kept encrypted, sent only to this server and never shown again.",
|
|
2237
|
+
effect: "write",
|
|
2238
|
+
confirmation: null,
|
|
2239
|
+
hidden: false
|
|
2240
|
+
},
|
|
2241
|
+
"account servers discover": {
|
|
2242
|
+
operation: "account.servers.discover",
|
|
2243
|
+
sdkPath: [
|
|
2244
|
+
"account",
|
|
2245
|
+
"servers",
|
|
2246
|
+
"discover"
|
|
2247
|
+
],
|
|
2248
|
+
pathField: null,
|
|
2249
|
+
fields: [
|
|
2250
|
+
{
|
|
2251
|
+
name: "url",
|
|
2252
|
+
flag: "url",
|
|
2253
|
+
kind: "string",
|
|
2254
|
+
required: true,
|
|
2255
|
+
description: "The OpenAPI document or the MCP endpoint: https, at a public address, without a query or a fragment."
|
|
2256
|
+
},
|
|
2257
|
+
{
|
|
2258
|
+
name: "transport",
|
|
2259
|
+
flag: "transport",
|
|
2260
|
+
kind: "string",
|
|
2261
|
+
required: false,
|
|
2262
|
+
description: "http: an OpenAPI 3 document (or a server whose /openapi.json serves one). mcp: an MCP endpoint (Streamable HTTP). Leave it out and Account finds which the address serves.",
|
|
2263
|
+
choices: [
|
|
2264
|
+
"http",
|
|
2265
|
+
"mcp"
|
|
2266
|
+
]
|
|
2267
|
+
},
|
|
2268
|
+
{
|
|
2269
|
+
name: "authHeader",
|
|
2270
|
+
flag: "auth-header",
|
|
2271
|
+
kind: "string",
|
|
2272
|
+
required: false,
|
|
2273
|
+
description: "The header the secret travels in, or null for Authorization: Bearer. Leave it out and Account uses the API key header the server's OpenAPI document declares, else Authorization: Bearer."
|
|
2274
|
+
},
|
|
2275
|
+
{
|
|
2276
|
+
name: "secret",
|
|
2277
|
+
flag: "secret",
|
|
2278
|
+
kind: "string",
|
|
2279
|
+
required: true,
|
|
2280
|
+
description: "The secret the server admits calls with. Arbol keeps it encrypted, sends it only to this server and never shows it again."
|
|
2281
|
+
}
|
|
2282
|
+
],
|
|
2283
|
+
inputSchema: {
|
|
2284
|
+
type: "object",
|
|
2285
|
+
required: [
|
|
2286
|
+
"url",
|
|
2287
|
+
"secret"
|
|
2288
|
+
],
|
|
2289
|
+
properties: {
|
|
2290
|
+
url: {
|
|
2291
|
+
type: "string",
|
|
2292
|
+
format: "uri",
|
|
2293
|
+
maxLength: 2048,
|
|
2294
|
+
pattern: "^https://[^?#]+$",
|
|
2295
|
+
description: "The OpenAPI document or the MCP endpoint: https, at a public address, without a query or a fragment."
|
|
2296
|
+
},
|
|
2297
|
+
transport: {
|
|
2298
|
+
anyOf: [
|
|
2299
|
+
{
|
|
2300
|
+
type: "string",
|
|
2301
|
+
const: "http"
|
|
2302
|
+
},
|
|
2303
|
+
{
|
|
2304
|
+
type: "string",
|
|
2305
|
+
const: "mcp"
|
|
2306
|
+
}
|
|
2307
|
+
],
|
|
2308
|
+
description: "http: an OpenAPI 3 document (or a server whose /openapi.json serves one). mcp: an MCP endpoint (Streamable HTTP). Leave it out and Account finds which the address serves."
|
|
2309
|
+
},
|
|
2310
|
+
authHeader: {
|
|
2311
|
+
anyOf: [
|
|
2312
|
+
{
|
|
2313
|
+
type: "string",
|
|
2314
|
+
pattern: "^[A-Za-z][A-Za-z0-9-]{0,63}$",
|
|
2315
|
+
description: "The header that carries the secret; without it the secret is sent as Authorization: Bearer."
|
|
2316
|
+
},
|
|
2317
|
+
{
|
|
2318
|
+
type: "null"
|
|
2319
|
+
}
|
|
2320
|
+
],
|
|
2321
|
+
description: "The header the secret travels in, or null for Authorization: Bearer. Leave it out and Account uses the API key header the server's OpenAPI document declares, else Authorization: Bearer."
|
|
2322
|
+
},
|
|
2323
|
+
secret: {
|
|
2324
|
+
type: "string",
|
|
2325
|
+
secret: true,
|
|
2326
|
+
writeOnly: true,
|
|
2327
|
+
minLength: 1,
|
|
2328
|
+
maxLength: 4096,
|
|
2329
|
+
pattern: "^[^\\r\\n]+$",
|
|
2330
|
+
description: "The secret the server admits calls with. Arbol keeps it encrypted, sends it only to this server and never shows it again."
|
|
2331
|
+
}
|
|
2332
|
+
},
|
|
2333
|
+
additionalProperties: false
|
|
2334
|
+
},
|
|
2335
|
+
title: "Read the organization's own server",
|
|
2336
|
+
description: "Read an organization's own server before registering it: its https address and the secret it admits calls with. Account finds whether it serves an OpenAPI document or MCP, and which header the secret travels in, and answers the tools an agent would get. Its writes wait until Arbol verifies that the server's domain belongs to the organization. Nothing is stored. It is a write because it sends the secret to the server.",
|
|
2337
|
+
effect: "write",
|
|
2338
|
+
confirmation: null,
|
|
2339
|
+
hidden: false
|
|
2340
|
+
},
|
|
1884
2341
|
"account usage-summary get": {
|
|
1885
2342
|
operation: "account.usageSummary.get",
|
|
1886
2343
|
sdkPath: [
|
|
@@ -18433,7 +18890,7 @@ var commands = {
|
|
|
18433
18890
|
items: {
|
|
18434
18891
|
$ref: "#/components/schemas/RaizAgentIntegrationToolInput"
|
|
18435
18892
|
},
|
|
18436
|
-
description: "The integrations' tools the Agent may call, each on one of the organization's connections (`listConnections`, checked live in Account).
|
|
18893
|
+
description: "The integrations' tools the Agent may call, each on one of the organization's connections (`listConnections`, checked live in Account). The Agent runs each as its connection lists it at every turn. In an update, the complete new set.",
|
|
18437
18894
|
maxItems: 200
|
|
18438
18895
|
},
|
|
18439
18896
|
knowledgeDocumentIds: {
|
|
@@ -18887,7 +19344,7 @@ var commands = {
|
|
|
18887
19344
|
items: {
|
|
18888
19345
|
$ref: "#/components/schemas/RaizAgentIntegrationToolInput"
|
|
18889
19346
|
},
|
|
18890
|
-
description: "The integrations' tools the Agent may call, each on one of the organization's connections (`listConnections`, checked live in Account).
|
|
19347
|
+
description: "The integrations' tools the Agent may call, each on one of the organization's connections (`listConnections`, checked live in Account). The Agent runs each as its connection lists it at every turn. In an update, the complete new set.",
|
|
18891
19348
|
maxItems: 200
|
|
18892
19349
|
},
|
|
18893
19350
|
knowledgeDocumentIds: {
|
|
@@ -26416,6 +26873,10 @@ var commands = {
|
|
|
26416
26873
|
type: "string",
|
|
26417
26874
|
const: "outage-resolved"
|
|
26418
26875
|
},
|
|
26876
|
+
{
|
|
26877
|
+
type: "string",
|
|
26878
|
+
const: "spam-blocked"
|
|
26879
|
+
},
|
|
26419
26880
|
{
|
|
26420
26881
|
type: "string",
|
|
26421
26882
|
const: "template-approved"
|
|
@@ -26432,7 +26893,7 @@ var commands = {
|
|
|
26432
26893
|
},
|
|
26433
26894
|
description: "Product emails enabled for this organization. All are enabled unless the organization saves a selection. An empty selection turns all of them off.",
|
|
26434
26895
|
uniqueItems: true,
|
|
26435
|
-
maxItems:
|
|
26896
|
+
maxItems: 18
|
|
26436
26897
|
},
|
|
26437
26898
|
{
|
|
26438
26899
|
type: "null"
|
|
@@ -26591,6 +27052,149 @@ var commands = {
|
|
|
26591
27052
|
},
|
|
26592
27053
|
additionalProperties: false
|
|
26593
27054
|
},
|
|
27055
|
+
protection: {
|
|
27056
|
+
type: "object",
|
|
27057
|
+
properties: {
|
|
27058
|
+
spamHours: {
|
|
27059
|
+
anyOf: [
|
|
27060
|
+
{
|
|
27061
|
+
type: "integer",
|
|
27062
|
+
description: "Hours someone stays in spam once they pass a limit (default 6). A person can lift the rule earlier by deleting it.",
|
|
27063
|
+
maximum: 720,
|
|
27064
|
+
minimum: 1
|
|
27065
|
+
},
|
|
27066
|
+
{
|
|
27067
|
+
type: "null"
|
|
27068
|
+
}
|
|
27069
|
+
]
|
|
27070
|
+
},
|
|
27071
|
+
voiceCallsPerHour: {
|
|
27072
|
+
anyOf: [
|
|
27073
|
+
{
|
|
27074
|
+
type: "integer",
|
|
27075
|
+
description: "Inbound calls one number may make in an hour, whoever spoke (default 10). A number that reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier.",
|
|
27076
|
+
maximum: 1000,
|
|
27077
|
+
minimum: 1
|
|
27078
|
+
},
|
|
27079
|
+
{
|
|
27080
|
+
type: "null"
|
|
27081
|
+
}
|
|
27082
|
+
]
|
|
27083
|
+
},
|
|
27084
|
+
voiceEnabled: {
|
|
27085
|
+
anyOf: [
|
|
27086
|
+
{
|
|
27087
|
+
type: "boolean",
|
|
27088
|
+
description: "Whether callers can fall into spam (default true). False: no call is ever refused for what its number consumed."
|
|
27089
|
+
},
|
|
27090
|
+
{
|
|
27091
|
+
type: "null"
|
|
27092
|
+
}
|
|
27093
|
+
]
|
|
27094
|
+
},
|
|
27095
|
+
voiceMinutesPerDay: {
|
|
27096
|
+
anyOf: [
|
|
27097
|
+
{
|
|
27098
|
+
type: "integer",
|
|
27099
|
+
description: "Minutes of inbound calls one number may use in 24 hours (default 60). A number that reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier; while it lasts, its calls are not answered.",
|
|
27100
|
+
maximum: 1440,
|
|
27101
|
+
minimum: 1
|
|
27102
|
+
},
|
|
27103
|
+
{
|
|
27104
|
+
type: "null"
|
|
27105
|
+
}
|
|
27106
|
+
]
|
|
27107
|
+
},
|
|
27108
|
+
voiceSilentCallsPerHour: {
|
|
27109
|
+
anyOf: [
|
|
27110
|
+
{
|
|
27111
|
+
type: "integer",
|
|
27112
|
+
description: "Inbound calls of one number in an hour in which the caller never spoke (default 5). A number that reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier. A call that failed does not count.",
|
|
27113
|
+
maximum: 1000,
|
|
27114
|
+
minimum: 1
|
|
27115
|
+
},
|
|
27116
|
+
{
|
|
27117
|
+
type: "null"
|
|
27118
|
+
}
|
|
27119
|
+
]
|
|
27120
|
+
},
|
|
27121
|
+
webConversationTokens: {
|
|
27122
|
+
anyOf: [
|
|
27123
|
+
{
|
|
27124
|
+
type: "integer",
|
|
27125
|
+
description: "Tokens one web conversation may use (default 10000000). A conversation that reaches it takes no more messages.",
|
|
27126
|
+
maximum: 1000000000000,
|
|
27127
|
+
minimum: 1e4
|
|
27128
|
+
},
|
|
27129
|
+
{
|
|
27130
|
+
type: "null"
|
|
27131
|
+
}
|
|
27132
|
+
]
|
|
27133
|
+
},
|
|
27134
|
+
webEnabled: {
|
|
27135
|
+
anyOf: [
|
|
27136
|
+
{
|
|
27137
|
+
type: "boolean",
|
|
27138
|
+
description: "Whether web chat visitors can fall into spam (default true)."
|
|
27139
|
+
},
|
|
27140
|
+
{
|
|
27141
|
+
type: "null"
|
|
27142
|
+
}
|
|
27143
|
+
]
|
|
27144
|
+
},
|
|
27145
|
+
webMessagesPerDay: {
|
|
27146
|
+
anyOf: [
|
|
27147
|
+
{
|
|
27148
|
+
type: "integer",
|
|
27149
|
+
description: "Messages one web visitor may send in 24 hours, across their chats (default 100). A visitor who reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier; while it lasts they cannot open a chat. Visitors are told apart by network address, so people who share one count together.",
|
|
27150
|
+
maximum: 1e5,
|
|
27151
|
+
minimum: 1
|
|
27152
|
+
},
|
|
27153
|
+
{
|
|
27154
|
+
type: "null"
|
|
27155
|
+
}
|
|
27156
|
+
]
|
|
27157
|
+
},
|
|
27158
|
+
whatsappConversationTokens: {
|
|
27159
|
+
anyOf: [
|
|
27160
|
+
{
|
|
27161
|
+
type: "integer",
|
|
27162
|
+
description: "Tokens (input, cached input included, plus output) one WhatsApp conversation may use since the AI last took it (default 10000000). A contact whose conversation reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier.",
|
|
27163
|
+
maximum: 1000000000000,
|
|
27164
|
+
minimum: 1e4
|
|
27165
|
+
},
|
|
27166
|
+
{
|
|
27167
|
+
type: "null"
|
|
27168
|
+
}
|
|
27169
|
+
]
|
|
27170
|
+
},
|
|
27171
|
+
whatsappEnabled: {
|
|
27172
|
+
anyOf: [
|
|
27173
|
+
{
|
|
27174
|
+
type: "boolean",
|
|
27175
|
+
description: "Whether WhatsApp contacts can fall into spam (default true)."
|
|
27176
|
+
},
|
|
27177
|
+
{
|
|
27178
|
+
type: "null"
|
|
27179
|
+
}
|
|
27180
|
+
]
|
|
27181
|
+
},
|
|
27182
|
+
whatsappRepliesPerHour: {
|
|
27183
|
+
anyOf: [
|
|
27184
|
+
{
|
|
27185
|
+
type: "integer",
|
|
27186
|
+
description: "Replies the AI may write in one WhatsApp conversation in an hour (default 60). A contact whose conversation reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier; while it lasts the AI does not answer them, and their messages are still stored for the team.",
|
|
27187
|
+
maximum: 1e4,
|
|
27188
|
+
minimum: 1
|
|
27189
|
+
},
|
|
27190
|
+
{
|
|
27191
|
+
type: "null"
|
|
27192
|
+
}
|
|
27193
|
+
]
|
|
27194
|
+
}
|
|
27195
|
+
},
|
|
27196
|
+
additionalProperties: false
|
|
27197
|
+
},
|
|
26594
27198
|
whatsapp: {
|
|
26595
27199
|
type: "object",
|
|
26596
27200
|
properties: {
|
|
@@ -32930,7 +33534,7 @@ var commands = {
|
|
|
32930
33534
|
limit: {
|
|
32931
33535
|
type: "integer",
|
|
32932
33536
|
minimum: 1,
|
|
32933
|
-
maximum:
|
|
33537
|
+
maximum: 500,
|
|
32934
33538
|
description: "Maximum items returned in one page. Defaults to 25; larger reads require another cursor.",
|
|
32935
33539
|
default: 25
|
|
32936
33540
|
},
|
|
@@ -32959,7 +33563,7 @@ var commands = {
|
|
|
32959
33563
|
additionalProperties: false
|
|
32960
33564
|
},
|
|
32961
33565
|
title: "List assigned appointments",
|
|
32962
|
-
description: "Read assigned appointments for one day at a cost centre, ordered by moment and reference, with the patient's document number, the contact phone and the state (`status`) SIIPS records.
|
|
33566
|
+
description: "Read assigned appointments for one day at a cost centre, ordered by moment and reference, with the patient's document number, the contact phone and the state (`status`) SIIPS records. The centre-wide list covers the professionals in its live directory. Each agenda is checked against the daily assigned report; an incomplete read is PROVIDER_UNAVAILABLE. Never cached. This operation changes no appointment and sends no message.",
|
|
32963
33567
|
effect: "read",
|
|
32964
33568
|
confirmation: null,
|
|
32965
33569
|
hidden: false
|
|
@@ -36033,6 +36637,179 @@ var schemaComponents = {
|
|
|
36033
36637
|
},
|
|
36034
36638
|
maxItems: 200
|
|
36035
36639
|
},
|
|
36640
|
+
heldTools: {
|
|
36641
|
+
type: "array",
|
|
36642
|
+
items: {
|
|
36643
|
+
type: "object",
|
|
36644
|
+
required: [
|
|
36645
|
+
"name",
|
|
36646
|
+
"description",
|
|
36647
|
+
"input",
|
|
36648
|
+
"effect"
|
|
36649
|
+
],
|
|
36650
|
+
properties: {
|
|
36651
|
+
runtimeInputs: {
|
|
36652
|
+
type: "array",
|
|
36653
|
+
items: {
|
|
36654
|
+
anyOf: [
|
|
36655
|
+
{
|
|
36656
|
+
type: "string",
|
|
36657
|
+
const: "connectionId"
|
|
36658
|
+
},
|
|
36659
|
+
{
|
|
36660
|
+
type: "string",
|
|
36661
|
+
const: "channel"
|
|
36662
|
+
},
|
|
36663
|
+
{
|
|
36664
|
+
type: "string",
|
|
36665
|
+
const: "conversationUrl"
|
|
36666
|
+
},
|
|
36667
|
+
{
|
|
36668
|
+
type: "string",
|
|
36669
|
+
const: "verifiedContact"
|
|
36670
|
+
},
|
|
36671
|
+
{
|
|
36672
|
+
type: "string",
|
|
36673
|
+
const: "outboundRecipient"
|
|
36674
|
+
}
|
|
36675
|
+
]
|
|
36676
|
+
},
|
|
36677
|
+
maxItems: 5
|
|
36678
|
+
},
|
|
36679
|
+
name: {
|
|
36680
|
+
type: "string",
|
|
36681
|
+
minLength: 1,
|
|
36682
|
+
maxLength: 64,
|
|
36683
|
+
description: "The tool name an agent calls: the MCP tool name, or the OpenAPI operationId."
|
|
36684
|
+
},
|
|
36685
|
+
operation: {
|
|
36686
|
+
type: "string",
|
|
36687
|
+
maxLength: 200,
|
|
36688
|
+
description: "The published operation (arbol only): sura.appointments.create."
|
|
36689
|
+
},
|
|
36690
|
+
description: {
|
|
36691
|
+
type: "string",
|
|
36692
|
+
maxLength: 8000
|
|
36693
|
+
},
|
|
36694
|
+
input: {
|
|
36695
|
+
type: "object",
|
|
36696
|
+
patternProperties: {
|
|
36697
|
+
"^.*$": {}
|
|
36698
|
+
},
|
|
36699
|
+
description: "The tool's input, as a JSON Schema object."
|
|
36700
|
+
},
|
|
36701
|
+
effect: {
|
|
36702
|
+
anyOf: [
|
|
36703
|
+
{
|
|
36704
|
+
type: "string",
|
|
36705
|
+
const: "read"
|
|
36706
|
+
},
|
|
36707
|
+
{
|
|
36708
|
+
type: "string",
|
|
36709
|
+
const: "write"
|
|
36710
|
+
}
|
|
36711
|
+
],
|
|
36712
|
+
description: "read changes nothing; write may."
|
|
36713
|
+
},
|
|
36714
|
+
rpcMethod: {
|
|
36715
|
+
anyOf: [
|
|
36716
|
+
{
|
|
36717
|
+
type: "string",
|
|
36718
|
+
minLength: 1,
|
|
36719
|
+
maxLength: 128
|
|
36720
|
+
},
|
|
36721
|
+
{
|
|
36722
|
+
type: "null"
|
|
36723
|
+
}
|
|
36724
|
+
],
|
|
36725
|
+
description: "The owner's own method for the operation on its native RPC entrypoint (arbol only): bookAppointment for sura.appointments.create, or null when it serves none."
|
|
36726
|
+
},
|
|
36727
|
+
writesThrough: {
|
|
36728
|
+
type: "array",
|
|
36729
|
+
items: {
|
|
36730
|
+
type: "string",
|
|
36731
|
+
pattern: "^[a-z][a-z0-9-]{1,63}$"
|
|
36732
|
+
},
|
|
36733
|
+
maxItems: 10,
|
|
36734
|
+
description: "The Arbol integrations this tool writes through (custom only): Raíz fences them jointly."
|
|
36735
|
+
},
|
|
36736
|
+
rest: {
|
|
36737
|
+
type: "object",
|
|
36738
|
+
required: [
|
|
36739
|
+
"method",
|
|
36740
|
+
"path"
|
|
36741
|
+
],
|
|
36742
|
+
properties: {
|
|
36743
|
+
method: {
|
|
36744
|
+
anyOf: [
|
|
36745
|
+
{
|
|
36746
|
+
type: "string",
|
|
36747
|
+
const: "GET"
|
|
36748
|
+
},
|
|
36749
|
+
{
|
|
36750
|
+
type: "string",
|
|
36751
|
+
const: "POST"
|
|
36752
|
+
},
|
|
36753
|
+
{
|
|
36754
|
+
type: "string",
|
|
36755
|
+
const: "PUT"
|
|
36756
|
+
},
|
|
36757
|
+
{
|
|
36758
|
+
type: "string",
|
|
36759
|
+
const: "PATCH"
|
|
36760
|
+
},
|
|
36761
|
+
{
|
|
36762
|
+
type: "string",
|
|
36763
|
+
const: "DELETE"
|
|
36764
|
+
}
|
|
36765
|
+
]
|
|
36766
|
+
},
|
|
36767
|
+
path: {
|
|
36768
|
+
type: "string",
|
|
36769
|
+
maxLength: 1000
|
|
36770
|
+
}
|
|
36771
|
+
},
|
|
36772
|
+
additionalProperties: false,
|
|
36773
|
+
description: "The REST request the tool is: its method and path template."
|
|
36774
|
+
},
|
|
36775
|
+
capabilities: {
|
|
36776
|
+
type: "object",
|
|
36777
|
+
required: [
|
|
36778
|
+
"match",
|
|
36779
|
+
"scopes"
|
|
36780
|
+
],
|
|
36781
|
+
properties: {
|
|
36782
|
+
match: {
|
|
36783
|
+
anyOf: [
|
|
36784
|
+
{
|
|
36785
|
+
type: "string",
|
|
36786
|
+
const: "any"
|
|
36787
|
+
},
|
|
36788
|
+
{
|
|
36789
|
+
type: "string",
|
|
36790
|
+
const: "all"
|
|
36791
|
+
}
|
|
36792
|
+
]
|
|
36793
|
+
},
|
|
36794
|
+
scopes: {
|
|
36795
|
+
type: "array",
|
|
36796
|
+
items: {
|
|
36797
|
+
type: "string",
|
|
36798
|
+
minLength: 1,
|
|
36799
|
+
maxLength: 128
|
|
36800
|
+
},
|
|
36801
|
+
maxItems: 20
|
|
36802
|
+
}
|
|
36803
|
+
},
|
|
36804
|
+
additionalProperties: false,
|
|
36805
|
+
description: "The scopes its caller needs (arbol only), as the release admits it: any one of them, or all."
|
|
36806
|
+
}
|
|
36807
|
+
},
|
|
36808
|
+
additionalProperties: false
|
|
36809
|
+
},
|
|
36810
|
+
maxItems: 200,
|
|
36811
|
+
description: "A custom server's tools that agents do not get yet: its writes, until Arbol verifies that the server's domain belongs to the organization."
|
|
36812
|
+
},
|
|
36036
36813
|
skills: {
|
|
36037
36814
|
type: "array",
|
|
36038
36815
|
items: {
|
|
@@ -36281,6 +37058,130 @@ var schemaComponents = {
|
|
|
36281
37058
|
},
|
|
36282
37059
|
additionalProperties: false
|
|
36283
37060
|
},
|
|
37061
|
+
AccountConnectionNameTakenError: {
|
|
37062
|
+
type: "object",
|
|
37063
|
+
description: "A failed answer.",
|
|
37064
|
+
additionalProperties: false,
|
|
37065
|
+
required: [
|
|
37066
|
+
"success",
|
|
37067
|
+
"data",
|
|
37068
|
+
"error",
|
|
37069
|
+
"metadata"
|
|
37070
|
+
],
|
|
37071
|
+
properties: {
|
|
37072
|
+
success: {
|
|
37073
|
+
type: "boolean",
|
|
37074
|
+
enum: [
|
|
37075
|
+
false
|
|
37076
|
+
]
|
|
37077
|
+
},
|
|
37078
|
+
data: {
|
|
37079
|
+
const: null
|
|
37080
|
+
},
|
|
37081
|
+
error: {
|
|
37082
|
+
$ref: "#/components/schemas/AccountConnectionNameTakenFailure"
|
|
37083
|
+
},
|
|
37084
|
+
metadata: {
|
|
37085
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
37086
|
+
}
|
|
37087
|
+
}
|
|
37088
|
+
},
|
|
37089
|
+
AccountConnectionNameTakenFailure: {
|
|
37090
|
+
type: "object",
|
|
37091
|
+
description: "Another connection of this integration already has this name.",
|
|
37092
|
+
additionalProperties: false,
|
|
37093
|
+
required: [
|
|
37094
|
+
"code",
|
|
37095
|
+
"message",
|
|
37096
|
+
"retryable",
|
|
37097
|
+
"data"
|
|
37098
|
+
],
|
|
37099
|
+
properties: {
|
|
37100
|
+
code: {
|
|
37101
|
+
type: "string",
|
|
37102
|
+
enum: [
|
|
37103
|
+
"CONNECTION_NAME_TAKEN"
|
|
37104
|
+
],
|
|
37105
|
+
description: "The failure code, stable across releases."
|
|
37106
|
+
},
|
|
37107
|
+
message: {
|
|
37108
|
+
type: "string",
|
|
37109
|
+
description: "What went wrong, for people; it never contains input values."
|
|
37110
|
+
},
|
|
37111
|
+
retryable: {
|
|
37112
|
+
type: "boolean",
|
|
37113
|
+
enum: [
|
|
37114
|
+
false
|
|
37115
|
+
],
|
|
37116
|
+
description: "Whether repeating the same request may succeed."
|
|
37117
|
+
},
|
|
37118
|
+
data: {
|
|
37119
|
+
$ref: "#/components/schemas/Empty"
|
|
37120
|
+
}
|
|
37121
|
+
}
|
|
37122
|
+
},
|
|
37123
|
+
AccountConnectionNotFoundError: {
|
|
37124
|
+
type: "object",
|
|
37125
|
+
description: "A failed answer.",
|
|
37126
|
+
additionalProperties: false,
|
|
37127
|
+
required: [
|
|
37128
|
+
"success",
|
|
37129
|
+
"data",
|
|
37130
|
+
"error",
|
|
37131
|
+
"metadata"
|
|
37132
|
+
],
|
|
37133
|
+
properties: {
|
|
37134
|
+
success: {
|
|
37135
|
+
type: "boolean",
|
|
37136
|
+
enum: [
|
|
37137
|
+
false
|
|
37138
|
+
]
|
|
37139
|
+
},
|
|
37140
|
+
data: {
|
|
37141
|
+
const: null
|
|
37142
|
+
},
|
|
37143
|
+
error: {
|
|
37144
|
+
$ref: "#/components/schemas/AccountConnectionNotFoundFailure"
|
|
37145
|
+
},
|
|
37146
|
+
metadata: {
|
|
37147
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
37148
|
+
}
|
|
37149
|
+
}
|
|
37150
|
+
},
|
|
37151
|
+
AccountConnectionNotFoundFailure: {
|
|
37152
|
+
type: "object",
|
|
37153
|
+
description: "This connection does not exist.",
|
|
37154
|
+
additionalProperties: false,
|
|
37155
|
+
required: [
|
|
37156
|
+
"code",
|
|
37157
|
+
"message",
|
|
37158
|
+
"retryable",
|
|
37159
|
+
"data"
|
|
37160
|
+
],
|
|
37161
|
+
properties: {
|
|
37162
|
+
code: {
|
|
37163
|
+
type: "string",
|
|
37164
|
+
enum: [
|
|
37165
|
+
"CONNECTION_NOT_FOUND"
|
|
37166
|
+
],
|
|
37167
|
+
description: "The failure code, stable across releases."
|
|
37168
|
+
},
|
|
37169
|
+
message: {
|
|
37170
|
+
type: "string",
|
|
37171
|
+
description: "What went wrong, for people; it never contains input values."
|
|
37172
|
+
},
|
|
37173
|
+
retryable: {
|
|
37174
|
+
type: "boolean",
|
|
37175
|
+
enum: [
|
|
37176
|
+
false
|
|
37177
|
+
],
|
|
37178
|
+
description: "Whether repeating the same request may succeed."
|
|
37179
|
+
},
|
|
37180
|
+
data: {
|
|
37181
|
+
$ref: "#/components/schemas/Empty"
|
|
37182
|
+
}
|
|
37183
|
+
}
|
|
37184
|
+
},
|
|
36284
37185
|
AccountConnectionPage: {
|
|
36285
37186
|
type: "object",
|
|
36286
37187
|
required: [
|
|
@@ -36337,6 +37238,35 @@ var schemaComponents = {
|
|
|
36337
37238
|
}
|
|
36338
37239
|
}
|
|
36339
37240
|
},
|
|
37241
|
+
AccountConnectionResponse: {
|
|
37242
|
+
type: "object",
|
|
37243
|
+
description: "A successful answer.",
|
|
37244
|
+
additionalProperties: false,
|
|
37245
|
+
required: [
|
|
37246
|
+
"success",
|
|
37247
|
+
"data",
|
|
37248
|
+
"error",
|
|
37249
|
+
"metadata"
|
|
37250
|
+
],
|
|
37251
|
+
properties: {
|
|
37252
|
+
success: {
|
|
37253
|
+
type: "boolean",
|
|
37254
|
+
enum: [
|
|
37255
|
+
true
|
|
37256
|
+
]
|
|
37257
|
+
},
|
|
37258
|
+
data: {
|
|
37259
|
+
$ref: "#/components/schemas/AccountConnection",
|
|
37260
|
+
description: "One connection of an integration: what it is, its state and the tools it offers."
|
|
37261
|
+
},
|
|
37262
|
+
error: {
|
|
37263
|
+
const: null
|
|
37264
|
+
},
|
|
37265
|
+
metadata: {
|
|
37266
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
37267
|
+
}
|
|
37268
|
+
}
|
|
37269
|
+
},
|
|
36340
37270
|
AccountConsultIncludedRecordBody: {
|
|
36341
37271
|
type: "object",
|
|
36342
37272
|
required: [
|
|
@@ -36961,6 +37891,62 @@ var schemaComponents = {
|
|
|
36961
37891
|
}
|
|
36962
37892
|
}
|
|
36963
37893
|
},
|
|
37894
|
+
AccountCreateServerBody: {
|
|
37895
|
+
type: "object",
|
|
37896
|
+
required: [
|
|
37897
|
+
"name",
|
|
37898
|
+
"url",
|
|
37899
|
+
"secret"
|
|
37900
|
+
],
|
|
37901
|
+
properties: {
|
|
37902
|
+
name: {
|
|
37903
|
+
type: "string",
|
|
37904
|
+
description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'."
|
|
37905
|
+
},
|
|
37906
|
+
url: {
|
|
37907
|
+
type: "string",
|
|
37908
|
+
format: "uri",
|
|
37909
|
+
maxLength: 2048,
|
|
37910
|
+
pattern: "^https://[^?#]+$",
|
|
37911
|
+
description: "The OpenAPI document or the MCP endpoint: https, at a public address, without a query or a fragment."
|
|
37912
|
+
},
|
|
37913
|
+
transport: {
|
|
37914
|
+
anyOf: [
|
|
37915
|
+
{
|
|
37916
|
+
type: "string",
|
|
37917
|
+
const: "http"
|
|
37918
|
+
},
|
|
37919
|
+
{
|
|
37920
|
+
type: "string",
|
|
37921
|
+
const: "mcp"
|
|
37922
|
+
}
|
|
37923
|
+
],
|
|
37924
|
+
description: "http: an OpenAPI 3 document (or a server whose /openapi.json serves one). mcp: an MCP endpoint (Streamable HTTP). Leave it out and Account finds which the address serves."
|
|
37925
|
+
},
|
|
37926
|
+
authHeader: {
|
|
37927
|
+
anyOf: [
|
|
37928
|
+
{
|
|
37929
|
+
type: "string",
|
|
37930
|
+
pattern: "^[A-Za-z][A-Za-z0-9-]{0,63}$",
|
|
37931
|
+
description: "The header that carries the secret; without it the secret is sent as Authorization: Bearer."
|
|
37932
|
+
},
|
|
37933
|
+
{
|
|
37934
|
+
type: "null"
|
|
37935
|
+
}
|
|
37936
|
+
],
|
|
37937
|
+
description: "The header the secret travels in, or null for Authorization: Bearer. Leave it out and Account uses the API key header the server's OpenAPI document declares, else Authorization: Bearer."
|
|
37938
|
+
},
|
|
37939
|
+
secret: {
|
|
37940
|
+
type: "string",
|
|
37941
|
+
writeOnly: true,
|
|
37942
|
+
minLength: 1,
|
|
37943
|
+
maxLength: 4096,
|
|
37944
|
+
pattern: "^[^\\r\\n]+$",
|
|
37945
|
+
description: "The secret the server admits calls with. Arbol keeps it encrypted, sends it only to this server and never shows it again."
|
|
37946
|
+
}
|
|
37947
|
+
},
|
|
37948
|
+
additionalProperties: false
|
|
37949
|
+
},
|
|
36964
37950
|
AccountCreateWalletTopUpBody: {
|
|
36965
37951
|
type: "object",
|
|
36966
37952
|
required: [
|
|
@@ -37200,6 +38186,114 @@ var schemaComponents = {
|
|
|
37200
38186
|
}
|
|
37201
38187
|
}
|
|
37202
38188
|
},
|
|
38189
|
+
AccountCustomServerUnreachableError: {
|
|
38190
|
+
type: "object",
|
|
38191
|
+
description: "A failed answer.",
|
|
38192
|
+
additionalProperties: false,
|
|
38193
|
+
required: [
|
|
38194
|
+
"success",
|
|
38195
|
+
"data",
|
|
38196
|
+
"error",
|
|
38197
|
+
"metadata"
|
|
38198
|
+
],
|
|
38199
|
+
properties: {
|
|
38200
|
+
success: {
|
|
38201
|
+
type: "boolean",
|
|
38202
|
+
enum: [
|
|
38203
|
+
false
|
|
38204
|
+
]
|
|
38205
|
+
},
|
|
38206
|
+
data: {
|
|
38207
|
+
const: null
|
|
38208
|
+
},
|
|
38209
|
+
error: {
|
|
38210
|
+
$ref: "#/components/schemas/AccountCustomServerUnreachableFailure"
|
|
38211
|
+
},
|
|
38212
|
+
metadata: {
|
|
38213
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
38214
|
+
}
|
|
38215
|
+
}
|
|
38216
|
+
},
|
|
38217
|
+
AccountCustomServerUnreachableFailure: {
|
|
38218
|
+
type: "object",
|
|
38219
|
+
description: "The server's tools could not be read.",
|
|
38220
|
+
additionalProperties: false,
|
|
38221
|
+
required: [
|
|
38222
|
+
"code",
|
|
38223
|
+
"message",
|
|
38224
|
+
"retryable",
|
|
38225
|
+
"data"
|
|
38226
|
+
],
|
|
38227
|
+
properties: {
|
|
38228
|
+
code: {
|
|
38229
|
+
type: "string",
|
|
38230
|
+
enum: [
|
|
38231
|
+
"CUSTOM_SERVER_UNREACHABLE"
|
|
38232
|
+
],
|
|
38233
|
+
description: "The failure code, stable across releases."
|
|
38234
|
+
},
|
|
38235
|
+
message: {
|
|
38236
|
+
type: "string",
|
|
38237
|
+
description: "What went wrong, for people; it never contains input values."
|
|
38238
|
+
},
|
|
38239
|
+
retryable: {
|
|
38240
|
+
type: "boolean",
|
|
38241
|
+
enum: [
|
|
38242
|
+
false
|
|
38243
|
+
],
|
|
38244
|
+
description: "Whether repeating the same request may succeed."
|
|
38245
|
+
},
|
|
38246
|
+
data: {
|
|
38247
|
+
$ref: "#/components/schemas/AccountCustomServerUnreachableFailureData"
|
|
38248
|
+
}
|
|
38249
|
+
}
|
|
38250
|
+
},
|
|
38251
|
+
AccountCustomServerUnreachableFailureData: {
|
|
38252
|
+
type: "object",
|
|
38253
|
+
required: [
|
|
38254
|
+
"reason"
|
|
38255
|
+
],
|
|
38256
|
+
properties: {
|
|
38257
|
+
reason: {
|
|
38258
|
+
anyOf: [
|
|
38259
|
+
{
|
|
38260
|
+
type: "string",
|
|
38261
|
+
const: "destination"
|
|
38262
|
+
},
|
|
38263
|
+
{
|
|
38264
|
+
type: "string",
|
|
38265
|
+
const: "redirect"
|
|
38266
|
+
},
|
|
38267
|
+
{
|
|
38268
|
+
type: "string",
|
|
38269
|
+
const: "status"
|
|
38270
|
+
},
|
|
38271
|
+
{
|
|
38272
|
+
type: "string",
|
|
38273
|
+
const: "too_large"
|
|
38274
|
+
},
|
|
38275
|
+
{
|
|
38276
|
+
type: "string",
|
|
38277
|
+
const: "timeout"
|
|
38278
|
+
},
|
|
38279
|
+
{
|
|
38280
|
+
type: "string",
|
|
38281
|
+
const: "network"
|
|
38282
|
+
},
|
|
38283
|
+
{
|
|
38284
|
+
type: "string",
|
|
38285
|
+
const: "document"
|
|
38286
|
+
},
|
|
38287
|
+
{
|
|
38288
|
+
type: "string",
|
|
38289
|
+
const: "no_tools"
|
|
38290
|
+
}
|
|
38291
|
+
],
|
|
38292
|
+
description: "What stopped the read."
|
|
38293
|
+
}
|
|
38294
|
+
},
|
|
38295
|
+
additionalProperties: false
|
|
38296
|
+
},
|
|
37203
38297
|
AccountDeleteApiKeyServiceUnavailableError: {
|
|
37204
38298
|
type: "object",
|
|
37205
38299
|
description: "A failed answer.",
|
|
@@ -37486,6 +38580,57 @@ var schemaComponents = {
|
|
|
37486
38580
|
}
|
|
37487
38581
|
}
|
|
37488
38582
|
},
|
|
38583
|
+
AccountDiscoverServersBody: {
|
|
38584
|
+
type: "object",
|
|
38585
|
+
required: [
|
|
38586
|
+
"url",
|
|
38587
|
+
"secret"
|
|
38588
|
+
],
|
|
38589
|
+
properties: {
|
|
38590
|
+
url: {
|
|
38591
|
+
type: "string",
|
|
38592
|
+
format: "uri",
|
|
38593
|
+
maxLength: 2048,
|
|
38594
|
+
pattern: "^https://[^?#]+$",
|
|
38595
|
+
description: "The OpenAPI document or the MCP endpoint: https, at a public address, without a query or a fragment."
|
|
38596
|
+
},
|
|
38597
|
+
transport: {
|
|
38598
|
+
anyOf: [
|
|
38599
|
+
{
|
|
38600
|
+
type: "string",
|
|
38601
|
+
const: "http"
|
|
38602
|
+
},
|
|
38603
|
+
{
|
|
38604
|
+
type: "string",
|
|
38605
|
+
const: "mcp"
|
|
38606
|
+
}
|
|
38607
|
+
],
|
|
38608
|
+
description: "http: an OpenAPI 3 document (or a server whose /openapi.json serves one). mcp: an MCP endpoint (Streamable HTTP). Leave it out and Account finds which the address serves."
|
|
38609
|
+
},
|
|
38610
|
+
authHeader: {
|
|
38611
|
+
anyOf: [
|
|
38612
|
+
{
|
|
38613
|
+
type: "string",
|
|
38614
|
+
pattern: "^[A-Za-z][A-Za-z0-9-]{0,63}$",
|
|
38615
|
+
description: "The header that carries the secret; without it the secret is sent as Authorization: Bearer."
|
|
38616
|
+
},
|
|
38617
|
+
{
|
|
38618
|
+
type: "null"
|
|
38619
|
+
}
|
|
38620
|
+
],
|
|
38621
|
+
description: "The header the secret travels in, or null for Authorization: Bearer. Leave it out and Account uses the API key header the server's OpenAPI document declares, else Authorization: Bearer."
|
|
38622
|
+
},
|
|
38623
|
+
secret: {
|
|
38624
|
+
type: "string",
|
|
38625
|
+
writeOnly: true,
|
|
38626
|
+
minLength: 1,
|
|
38627
|
+
maxLength: 4096,
|
|
38628
|
+
pattern: "^[^\\r\\n]+$",
|
|
38629
|
+
description: "The secret the server admits calls with. Arbol keeps it encrypted, sends it only to this server and never shows it again."
|
|
38630
|
+
}
|
|
38631
|
+
},
|
|
38632
|
+
additionalProperties: false
|
|
38633
|
+
},
|
|
37489
38634
|
AccountGetBillingServiceUnavailableError: {
|
|
37490
38635
|
type: "object",
|
|
37491
38636
|
description: "A failed answer.",
|
|
@@ -37729,6 +38874,68 @@ var schemaComponents = {
|
|
|
37729
38874
|
}
|
|
37730
38875
|
}
|
|
37731
38876
|
},
|
|
38877
|
+
AccountIntegrationUnsupportedError: {
|
|
38878
|
+
type: "object",
|
|
38879
|
+
description: "A failed answer.",
|
|
38880
|
+
additionalProperties: false,
|
|
38881
|
+
required: [
|
|
38882
|
+
"success",
|
|
38883
|
+
"data",
|
|
38884
|
+
"error",
|
|
38885
|
+
"metadata"
|
|
38886
|
+
],
|
|
38887
|
+
properties: {
|
|
38888
|
+
success: {
|
|
38889
|
+
type: "boolean",
|
|
38890
|
+
enum: [
|
|
38891
|
+
false
|
|
38892
|
+
]
|
|
38893
|
+
},
|
|
38894
|
+
data: {
|
|
38895
|
+
const: null
|
|
38896
|
+
},
|
|
38897
|
+
error: {
|
|
38898
|
+
$ref: "#/components/schemas/AccountIntegrationUnsupportedFailure"
|
|
38899
|
+
},
|
|
38900
|
+
metadata: {
|
|
38901
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
38902
|
+
}
|
|
38903
|
+
}
|
|
38904
|
+
},
|
|
38905
|
+
AccountIntegrationUnsupportedFailure: {
|
|
38906
|
+
type: "object",
|
|
38907
|
+
description: "This integration's connections are not managed from Account.",
|
|
38908
|
+
additionalProperties: false,
|
|
38909
|
+
required: [
|
|
38910
|
+
"code",
|
|
38911
|
+
"message",
|
|
38912
|
+
"retryable",
|
|
38913
|
+
"data"
|
|
38914
|
+
],
|
|
38915
|
+
properties: {
|
|
38916
|
+
code: {
|
|
38917
|
+
type: "string",
|
|
38918
|
+
enum: [
|
|
38919
|
+
"INTEGRATION_UNSUPPORTED"
|
|
38920
|
+
],
|
|
38921
|
+
description: "The failure code, stable across releases."
|
|
38922
|
+
},
|
|
38923
|
+
message: {
|
|
38924
|
+
type: "string",
|
|
38925
|
+
description: "What went wrong, for people; it never contains input values."
|
|
38926
|
+
},
|
|
38927
|
+
retryable: {
|
|
38928
|
+
type: "boolean",
|
|
38929
|
+
enum: [
|
|
38930
|
+
false
|
|
38931
|
+
],
|
|
38932
|
+
description: "Whether repeating the same request may succeed."
|
|
38933
|
+
},
|
|
38934
|
+
data: {
|
|
38935
|
+
$ref: "#/components/schemas/Empty"
|
|
38936
|
+
}
|
|
38937
|
+
}
|
|
38938
|
+
},
|
|
37732
38939
|
AccountInvitation: {
|
|
37733
38940
|
type: "object",
|
|
37734
38941
|
required: [
|
|
@@ -39129,6 +40336,70 @@ var schemaComponents = {
|
|
|
39129
40336
|
}
|
|
39130
40337
|
}
|
|
39131
40338
|
},
|
|
40339
|
+
AccountRefreshConnectionResult: {
|
|
40340
|
+
type: "object",
|
|
40341
|
+
required: [
|
|
40342
|
+
"connectionId",
|
|
40343
|
+
"updated",
|
|
40344
|
+
"tools",
|
|
40345
|
+
"held",
|
|
40346
|
+
"toolsVersion"
|
|
40347
|
+
],
|
|
40348
|
+
properties: {
|
|
40349
|
+
connectionId: {
|
|
40350
|
+
type: "string",
|
|
40351
|
+
pattern: "^con_[0-7][0-9a-hjkmnp-tv-z]{25}$",
|
|
40352
|
+
description: "A connection's id: con_ and 26 characters, stable and unique across the platform."
|
|
40353
|
+
},
|
|
40354
|
+
updated: {
|
|
40355
|
+
type: "boolean",
|
|
40356
|
+
description: "Whether this read changed the connection's tools."
|
|
40357
|
+
},
|
|
40358
|
+
tools: {
|
|
40359
|
+
type: "integer",
|
|
40360
|
+
minimum: 0,
|
|
40361
|
+
description: "How many tools the connection offers now."
|
|
40362
|
+
},
|
|
40363
|
+
held: {
|
|
40364
|
+
type: "integer",
|
|
40365
|
+
minimum: 0,
|
|
40366
|
+
description: "How many tools the server offers that wait for Arbol staff: new ones, ones that now write or write through more integrations, and its writes until Arbol verifies the server's domain."
|
|
40367
|
+
},
|
|
40368
|
+
toolsVersion: {
|
|
40369
|
+
type: "string",
|
|
40370
|
+
description: "The version of the connection's tools, which changes with them."
|
|
40371
|
+
}
|
|
40372
|
+
},
|
|
40373
|
+
additionalProperties: false
|
|
40374
|
+
},
|
|
40375
|
+
AccountRefreshConnectionResultResponse: {
|
|
40376
|
+
type: "object",
|
|
40377
|
+
description: "A successful answer.",
|
|
40378
|
+
additionalProperties: false,
|
|
40379
|
+
required: [
|
|
40380
|
+
"success",
|
|
40381
|
+
"data",
|
|
40382
|
+
"error",
|
|
40383
|
+
"metadata"
|
|
40384
|
+
],
|
|
40385
|
+
properties: {
|
|
40386
|
+
success: {
|
|
40387
|
+
type: "boolean",
|
|
40388
|
+
enum: [
|
|
40389
|
+
true
|
|
40390
|
+
]
|
|
40391
|
+
},
|
|
40392
|
+
data: {
|
|
40393
|
+
$ref: "#/components/schemas/AccountRefreshConnectionResult"
|
|
40394
|
+
},
|
|
40395
|
+
error: {
|
|
40396
|
+
const: null
|
|
40397
|
+
},
|
|
40398
|
+
metadata: {
|
|
40399
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
40400
|
+
}
|
|
40401
|
+
}
|
|
40402
|
+
},
|
|
39132
40403
|
AccountRegistryInstallation: {
|
|
39133
40404
|
type: "object",
|
|
39134
40405
|
required: [
|
|
@@ -39257,6 +40528,362 @@ var schemaComponents = {
|
|
|
39257
40528
|
}
|
|
39258
40529
|
}
|
|
39259
40530
|
},
|
|
40531
|
+
AccountServerDiscovery: {
|
|
40532
|
+
type: "object",
|
|
40533
|
+
required: [
|
|
40534
|
+
"transport",
|
|
40535
|
+
"authHeader",
|
|
40536
|
+
"tools",
|
|
40537
|
+
"skills",
|
|
40538
|
+
"skipped",
|
|
40539
|
+
"toolsVersion",
|
|
40540
|
+
"baseUrl"
|
|
40541
|
+
],
|
|
40542
|
+
properties: {
|
|
40543
|
+
transport: {
|
|
40544
|
+
anyOf: [
|
|
40545
|
+
{
|
|
40546
|
+
type: "string",
|
|
40547
|
+
const: "http"
|
|
40548
|
+
},
|
|
40549
|
+
{
|
|
40550
|
+
type: "string",
|
|
40551
|
+
const: "mcp"
|
|
40552
|
+
}
|
|
40553
|
+
],
|
|
40554
|
+
description: "What the address serves: an OpenAPI document (http) or an MCP endpoint (mcp)."
|
|
40555
|
+
},
|
|
40556
|
+
authHeader: {
|
|
40557
|
+
anyOf: [
|
|
40558
|
+
{
|
|
40559
|
+
type: "string"
|
|
40560
|
+
},
|
|
40561
|
+
{
|
|
40562
|
+
type: "null"
|
|
40563
|
+
}
|
|
40564
|
+
],
|
|
40565
|
+
description: "The header the secret travels in, or null for Authorization: Bearer."
|
|
40566
|
+
},
|
|
40567
|
+
tools: {
|
|
40568
|
+
type: "array",
|
|
40569
|
+
items: {
|
|
40570
|
+
type: "object",
|
|
40571
|
+
required: [
|
|
40572
|
+
"name",
|
|
40573
|
+
"description",
|
|
40574
|
+
"input",
|
|
40575
|
+
"effect"
|
|
40576
|
+
],
|
|
40577
|
+
properties: {
|
|
40578
|
+
runtimeInputs: {
|
|
40579
|
+
type: "array",
|
|
40580
|
+
items: {
|
|
40581
|
+
anyOf: [
|
|
40582
|
+
{
|
|
40583
|
+
type: "string",
|
|
40584
|
+
const: "connectionId"
|
|
40585
|
+
},
|
|
40586
|
+
{
|
|
40587
|
+
type: "string",
|
|
40588
|
+
const: "channel"
|
|
40589
|
+
},
|
|
40590
|
+
{
|
|
40591
|
+
type: "string",
|
|
40592
|
+
const: "conversationUrl"
|
|
40593
|
+
},
|
|
40594
|
+
{
|
|
40595
|
+
type: "string",
|
|
40596
|
+
const: "verifiedContact"
|
|
40597
|
+
},
|
|
40598
|
+
{
|
|
40599
|
+
type: "string",
|
|
40600
|
+
const: "outboundRecipient"
|
|
40601
|
+
}
|
|
40602
|
+
]
|
|
40603
|
+
},
|
|
40604
|
+
maxItems: 5
|
|
40605
|
+
},
|
|
40606
|
+
name: {
|
|
40607
|
+
type: "string",
|
|
40608
|
+
minLength: 1,
|
|
40609
|
+
maxLength: 64,
|
|
40610
|
+
description: "The tool name an agent calls: the MCP tool name, or the OpenAPI operationId."
|
|
40611
|
+
},
|
|
40612
|
+
operation: {
|
|
40613
|
+
type: "string",
|
|
40614
|
+
maxLength: 200,
|
|
40615
|
+
description: "The published operation (arbol only): sura.appointments.create."
|
|
40616
|
+
},
|
|
40617
|
+
description: {
|
|
40618
|
+
type: "string",
|
|
40619
|
+
maxLength: 8000
|
|
40620
|
+
},
|
|
40621
|
+
input: {
|
|
40622
|
+
type: "object",
|
|
40623
|
+
patternProperties: {
|
|
40624
|
+
"^.*$": {}
|
|
40625
|
+
},
|
|
40626
|
+
description: "The tool's input, as a JSON Schema object."
|
|
40627
|
+
},
|
|
40628
|
+
effect: {
|
|
40629
|
+
anyOf: [
|
|
40630
|
+
{
|
|
40631
|
+
type: "string",
|
|
40632
|
+
const: "read"
|
|
40633
|
+
},
|
|
40634
|
+
{
|
|
40635
|
+
type: "string",
|
|
40636
|
+
const: "write"
|
|
40637
|
+
}
|
|
40638
|
+
],
|
|
40639
|
+
description: "read changes nothing; write may."
|
|
40640
|
+
},
|
|
40641
|
+
rpcMethod: {
|
|
40642
|
+
anyOf: [
|
|
40643
|
+
{
|
|
40644
|
+
type: "string",
|
|
40645
|
+
minLength: 1,
|
|
40646
|
+
maxLength: 128
|
|
40647
|
+
},
|
|
40648
|
+
{
|
|
40649
|
+
type: "null"
|
|
40650
|
+
}
|
|
40651
|
+
],
|
|
40652
|
+
description: "The owner's own method for the operation on its native RPC entrypoint (arbol only): bookAppointment for sura.appointments.create, or null when it serves none."
|
|
40653
|
+
},
|
|
40654
|
+
writesThrough: {
|
|
40655
|
+
type: "array",
|
|
40656
|
+
items: {
|
|
40657
|
+
type: "string",
|
|
40658
|
+
pattern: "^[a-z][a-z0-9-]{1,63}$"
|
|
40659
|
+
},
|
|
40660
|
+
maxItems: 10,
|
|
40661
|
+
description: "The Arbol integrations this tool writes through (custom only): Raíz fences them jointly."
|
|
40662
|
+
},
|
|
40663
|
+
rest: {
|
|
40664
|
+
type: "object",
|
|
40665
|
+
required: [
|
|
40666
|
+
"method",
|
|
40667
|
+
"path"
|
|
40668
|
+
],
|
|
40669
|
+
properties: {
|
|
40670
|
+
method: {
|
|
40671
|
+
anyOf: [
|
|
40672
|
+
{
|
|
40673
|
+
type: "string",
|
|
40674
|
+
const: "GET"
|
|
40675
|
+
},
|
|
40676
|
+
{
|
|
40677
|
+
type: "string",
|
|
40678
|
+
const: "POST"
|
|
40679
|
+
},
|
|
40680
|
+
{
|
|
40681
|
+
type: "string",
|
|
40682
|
+
const: "PUT"
|
|
40683
|
+
},
|
|
40684
|
+
{
|
|
40685
|
+
type: "string",
|
|
40686
|
+
const: "PATCH"
|
|
40687
|
+
},
|
|
40688
|
+
{
|
|
40689
|
+
type: "string",
|
|
40690
|
+
const: "DELETE"
|
|
40691
|
+
}
|
|
40692
|
+
]
|
|
40693
|
+
},
|
|
40694
|
+
path: {
|
|
40695
|
+
type: "string",
|
|
40696
|
+
maxLength: 1000
|
|
40697
|
+
}
|
|
40698
|
+
},
|
|
40699
|
+
additionalProperties: false,
|
|
40700
|
+
description: "The REST request the tool is: its method and path template."
|
|
40701
|
+
},
|
|
40702
|
+
capabilities: {
|
|
40703
|
+
type: "object",
|
|
40704
|
+
required: [
|
|
40705
|
+
"match",
|
|
40706
|
+
"scopes"
|
|
40707
|
+
],
|
|
40708
|
+
properties: {
|
|
40709
|
+
match: {
|
|
40710
|
+
anyOf: [
|
|
40711
|
+
{
|
|
40712
|
+
type: "string",
|
|
40713
|
+
const: "any"
|
|
40714
|
+
},
|
|
40715
|
+
{
|
|
40716
|
+
type: "string",
|
|
40717
|
+
const: "all"
|
|
40718
|
+
}
|
|
40719
|
+
]
|
|
40720
|
+
},
|
|
40721
|
+
scopes: {
|
|
40722
|
+
type: "array",
|
|
40723
|
+
items: {
|
|
40724
|
+
type: "string",
|
|
40725
|
+
minLength: 1,
|
|
40726
|
+
maxLength: 128
|
|
40727
|
+
},
|
|
40728
|
+
maxItems: 20
|
|
40729
|
+
}
|
|
40730
|
+
},
|
|
40731
|
+
additionalProperties: false,
|
|
40732
|
+
description: "The scopes its caller needs (arbol only), as the release admits it: any one of them, or all."
|
|
40733
|
+
}
|
|
40734
|
+
},
|
|
40735
|
+
additionalProperties: false
|
|
40736
|
+
},
|
|
40737
|
+
maxItems: 200,
|
|
40738
|
+
description: "The tools an agent would get. Its reads are offered once the server is registered; its writes wait until Arbol verifies that the server's domain belongs to the organization."
|
|
40739
|
+
},
|
|
40740
|
+
skills: {
|
|
40741
|
+
type: "array",
|
|
40742
|
+
items: {
|
|
40743
|
+
type: "object",
|
|
40744
|
+
required: [
|
|
40745
|
+
"name",
|
|
40746
|
+
"description",
|
|
40747
|
+
"instructions"
|
|
40748
|
+
],
|
|
40749
|
+
properties: {
|
|
40750
|
+
name: {
|
|
40751
|
+
type: "string",
|
|
40752
|
+
minLength: 1,
|
|
40753
|
+
maxLength: 64,
|
|
40754
|
+
pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$"
|
|
40755
|
+
},
|
|
40756
|
+
description: {
|
|
40757
|
+
type: "string",
|
|
40758
|
+
minLength: 1,
|
|
40759
|
+
maxLength: 1024,
|
|
40760
|
+
pattern: "^[^\\r\\n]+$",
|
|
40761
|
+
description: "One line: what the procedure achieves and when to load it."
|
|
40762
|
+
},
|
|
40763
|
+
instructions: {
|
|
40764
|
+
type: "string",
|
|
40765
|
+
minLength: 1,
|
|
40766
|
+
maxLength: 30000,
|
|
40767
|
+
description: "The Markdown procedure."
|
|
40768
|
+
}
|
|
40769
|
+
},
|
|
40770
|
+
additionalProperties: false
|
|
40771
|
+
},
|
|
40772
|
+
maxItems: 32
|
|
40773
|
+
},
|
|
40774
|
+
skipped: {
|
|
40775
|
+
type: "array",
|
|
40776
|
+
items: {
|
|
40777
|
+
type: "object",
|
|
40778
|
+
required: [
|
|
40779
|
+
"name",
|
|
40780
|
+
"reason"
|
|
40781
|
+
],
|
|
40782
|
+
properties: {
|
|
40783
|
+
name: {
|
|
40784
|
+
type: "string"
|
|
40785
|
+
},
|
|
40786
|
+
reason: {
|
|
40787
|
+
anyOf: [
|
|
40788
|
+
{
|
|
40789
|
+
type: "string",
|
|
40790
|
+
const: "no_operation_id"
|
|
40791
|
+
},
|
|
40792
|
+
{
|
|
40793
|
+
type: "string",
|
|
40794
|
+
const: "invalid_name"
|
|
40795
|
+
},
|
|
40796
|
+
{
|
|
40797
|
+
type: "string",
|
|
40798
|
+
const: "duplicate_name"
|
|
40799
|
+
},
|
|
40800
|
+
{
|
|
40801
|
+
type: "string",
|
|
40802
|
+
const: "non_json_body"
|
|
40803
|
+
},
|
|
40804
|
+
{
|
|
40805
|
+
type: "string",
|
|
40806
|
+
const: "unsupported_parameter"
|
|
40807
|
+
},
|
|
40808
|
+
{
|
|
40809
|
+
type: "string",
|
|
40810
|
+
const: "parameter_conflict"
|
|
40811
|
+
},
|
|
40812
|
+
{
|
|
40813
|
+
type: "string",
|
|
40814
|
+
const: "unresolvable_schema"
|
|
40815
|
+
},
|
|
40816
|
+
{
|
|
40817
|
+
type: "string",
|
|
40818
|
+
const: "no_read_only_hint"
|
|
40819
|
+
},
|
|
40820
|
+
{
|
|
40821
|
+
type: "string",
|
|
40822
|
+
const: "invalid_input_schema"
|
|
40823
|
+
},
|
|
40824
|
+
{
|
|
40825
|
+
type: "string",
|
|
40826
|
+
const: "too_many"
|
|
40827
|
+
},
|
|
40828
|
+
{
|
|
40829
|
+
type: "string",
|
|
40830
|
+
const: "invalid_skill"
|
|
40831
|
+
},
|
|
40832
|
+
{
|
|
40833
|
+
type: "string",
|
|
40834
|
+
const: "duplicate_skill"
|
|
40835
|
+
},
|
|
40836
|
+
{
|
|
40837
|
+
type: "string",
|
|
40838
|
+
const: "too_many_skills"
|
|
40839
|
+
}
|
|
40840
|
+
]
|
|
40841
|
+
}
|
|
40842
|
+
},
|
|
40843
|
+
additionalProperties: false,
|
|
40844
|
+
description: "An operation, tool or skill that is not offered, and why."
|
|
40845
|
+
},
|
|
40846
|
+
maxItems: 500
|
|
40847
|
+
},
|
|
40848
|
+
toolsVersion: {
|
|
40849
|
+
type: "string"
|
|
40850
|
+
},
|
|
40851
|
+
baseUrl: {
|
|
40852
|
+
type: "string",
|
|
40853
|
+
description: "Where the tools' requests go."
|
|
40854
|
+
}
|
|
40855
|
+
},
|
|
40856
|
+
additionalProperties: false
|
|
40857
|
+
},
|
|
40858
|
+
AccountServerDiscoveryResponse: {
|
|
40859
|
+
type: "object",
|
|
40860
|
+
description: "A successful answer.",
|
|
40861
|
+
additionalProperties: false,
|
|
40862
|
+
required: [
|
|
40863
|
+
"success",
|
|
40864
|
+
"data",
|
|
40865
|
+
"error",
|
|
40866
|
+
"metadata"
|
|
40867
|
+
],
|
|
40868
|
+
properties: {
|
|
40869
|
+
success: {
|
|
40870
|
+
type: "boolean",
|
|
40871
|
+
enum: [
|
|
40872
|
+
true
|
|
40873
|
+
]
|
|
40874
|
+
},
|
|
40875
|
+
data: {
|
|
40876
|
+
$ref: "#/components/schemas/AccountServerDiscovery",
|
|
40877
|
+
description: "An organization's own server as Account read it, before it is registered."
|
|
40878
|
+
},
|
|
40879
|
+
error: {
|
|
40880
|
+
const: null
|
|
40881
|
+
},
|
|
40882
|
+
metadata: {
|
|
40883
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
40884
|
+
}
|
|
40885
|
+
}
|
|
40886
|
+
},
|
|
39260
40887
|
AccountSisbenClassification: {
|
|
39261
40888
|
anyOf: [
|
|
39262
40889
|
{
|
|
@@ -188177,7 +189804,7 @@ var schemaComponents = {
|
|
|
188177
189804
|
},
|
|
188178
189805
|
digest: {
|
|
188179
189806
|
type: "string",
|
|
188180
|
-
description: "The digest of the definition the Agent was saved with.
|
|
189807
|
+
description: "The digest of the definition the Agent was saved with. The Agent runs the tool as its connection lists it now (`listConnections`): another digest there only says the tool changed since.",
|
|
188181
189808
|
maxLength: 64,
|
|
188182
189809
|
minLength: 1
|
|
188183
189810
|
},
|
|
@@ -188208,7 +189835,7 @@ var schemaComponents = {
|
|
|
188208
189835
|
},
|
|
188209
189836
|
additionalProperties: false
|
|
188210
189837
|
},
|
|
188211
|
-
description: "The integrations' tools the Agent may call, each on the connection it runs on
|
|
189838
|
+
description: "The integrations' tools the Agent may call, each on the connection it runs on. The Agent runs each as its connection lists it now.",
|
|
188212
189839
|
maxItems: 200
|
|
188213
189840
|
},
|
|
188214
189841
|
knowledgeDocumentIds: {
|
|
@@ -190849,6 +192476,7 @@ var schemaComponents = {
|
|
|
190849
192476
|
"pauseOnHumanReply",
|
|
190850
192477
|
"policy",
|
|
190851
192478
|
"pollPendingOperations",
|
|
192479
|
+
"protection",
|
|
190852
192480
|
"reasoningEffort",
|
|
190853
192481
|
"replyChoices",
|
|
190854
192482
|
"sessionCloseAfterMinutes",
|
|
@@ -191247,6 +192875,80 @@ var schemaComponents = {
|
|
|
191247
192875
|
}
|
|
191248
192876
|
]
|
|
191249
192877
|
},
|
|
192878
|
+
protection: {
|
|
192879
|
+
anyOf: [
|
|
192880
|
+
{
|
|
192881
|
+
type: "object",
|
|
192882
|
+
properties: {
|
|
192883
|
+
spamHours: {
|
|
192884
|
+
type: "integer",
|
|
192885
|
+
description: "Hours someone stays in spam once they pass a limit (default 6). A person can lift the rule earlier by deleting it.",
|
|
192886
|
+
maximum: 720,
|
|
192887
|
+
minimum: 1
|
|
192888
|
+
},
|
|
192889
|
+
voiceCallsPerHour: {
|
|
192890
|
+
type: "integer",
|
|
192891
|
+
description: "Inbound calls one number may make in an hour, whoever spoke (default 10). A number that reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier.",
|
|
192892
|
+
maximum: 1000,
|
|
192893
|
+
minimum: 1
|
|
192894
|
+
},
|
|
192895
|
+
voiceEnabled: {
|
|
192896
|
+
type: "boolean",
|
|
192897
|
+
description: "Whether callers can fall into spam (default true). False: no call is ever refused for what its number consumed."
|
|
192898
|
+
},
|
|
192899
|
+
voiceMinutesPerDay: {
|
|
192900
|
+
type: "integer",
|
|
192901
|
+
description: "Minutes of inbound calls one number may use in 24 hours (default 60). A number that reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier; while it lasts, its calls are not answered.",
|
|
192902
|
+
maximum: 1440,
|
|
192903
|
+
minimum: 1
|
|
192904
|
+
},
|
|
192905
|
+
voiceSilentCallsPerHour: {
|
|
192906
|
+
type: "integer",
|
|
192907
|
+
description: "Inbound calls of one number in an hour in which the caller never spoke (default 5). A number that reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier. A call that failed does not count.",
|
|
192908
|
+
maximum: 1000,
|
|
192909
|
+
minimum: 1
|
|
192910
|
+
},
|
|
192911
|
+
webConversationTokens: {
|
|
192912
|
+
type: "integer",
|
|
192913
|
+
description: "Tokens one web conversation may use (default 10000000). A conversation that reaches it takes no more messages.",
|
|
192914
|
+
maximum: 1000000000000,
|
|
192915
|
+
minimum: 1e4
|
|
192916
|
+
},
|
|
192917
|
+
webEnabled: {
|
|
192918
|
+
type: "boolean",
|
|
192919
|
+
description: "Whether web chat visitors can fall into spam (default true)."
|
|
192920
|
+
},
|
|
192921
|
+
webMessagesPerDay: {
|
|
192922
|
+
type: "integer",
|
|
192923
|
+
description: "Messages one web visitor may send in 24 hours, across their chats (default 100). A visitor who reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier; while it lasts they cannot open a chat. Visitors are told apart by network address, so people who share one count together.",
|
|
192924
|
+
maximum: 1e5,
|
|
192925
|
+
minimum: 1
|
|
192926
|
+
},
|
|
192927
|
+
whatsappConversationTokens: {
|
|
192928
|
+
type: "integer",
|
|
192929
|
+
description: "Tokens (input, cached input included, plus output) one WhatsApp conversation may use since the AI last took it (default 10000000). A contact whose conversation reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier.",
|
|
192930
|
+
maximum: 1000000000000,
|
|
192931
|
+
minimum: 1e4
|
|
192932
|
+
},
|
|
192933
|
+
whatsappEnabled: {
|
|
192934
|
+
type: "boolean",
|
|
192935
|
+
description: "Whether WhatsApp contacts can fall into spam (default true)."
|
|
192936
|
+
},
|
|
192937
|
+
whatsappRepliesPerHour: {
|
|
192938
|
+
type: "integer",
|
|
192939
|
+
description: "Replies the AI may write in one WhatsApp conversation in an hour (default 60). A contact whose conversation reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier; while it lasts the AI does not answer them, and their messages are still stored for the team.",
|
|
192940
|
+
maximum: 1e4,
|
|
192941
|
+
minimum: 1
|
|
192942
|
+
}
|
|
192943
|
+
},
|
|
192944
|
+
description: "This Agent's own spam limits, written whole: each limit it names replaces the organization's (`settings.protection` of the organization) for the Agent's conversations and calls, and one left out keeps the organization's. Null: the organization's limits.",
|
|
192945
|
+
additionalProperties: false
|
|
192946
|
+
},
|
|
192947
|
+
{
|
|
192948
|
+
type: "null"
|
|
192949
|
+
}
|
|
192950
|
+
]
|
|
192951
|
+
},
|
|
191250
192952
|
reasoningEffort: {
|
|
191251
192953
|
anyOf: [
|
|
191252
192954
|
{
|
|
@@ -191758,6 +193460,80 @@ var schemaComponents = {
|
|
|
191758
193460
|
}
|
|
191759
193461
|
]
|
|
191760
193462
|
},
|
|
193463
|
+
protection: {
|
|
193464
|
+
anyOf: [
|
|
193465
|
+
{
|
|
193466
|
+
type: "object",
|
|
193467
|
+
properties: {
|
|
193468
|
+
spamHours: {
|
|
193469
|
+
type: "integer",
|
|
193470
|
+
description: "Hours someone stays in spam once they pass a limit (default 6). A person can lift the rule earlier by deleting it.",
|
|
193471
|
+
maximum: 720,
|
|
193472
|
+
minimum: 1
|
|
193473
|
+
},
|
|
193474
|
+
voiceCallsPerHour: {
|
|
193475
|
+
type: "integer",
|
|
193476
|
+
description: "Inbound calls one number may make in an hour, whoever spoke (default 10). A number that reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier.",
|
|
193477
|
+
maximum: 1000,
|
|
193478
|
+
minimum: 1
|
|
193479
|
+
},
|
|
193480
|
+
voiceEnabled: {
|
|
193481
|
+
type: "boolean",
|
|
193482
|
+
description: "Whether callers can fall into spam (default true). False: no call is ever refused for what its number consumed."
|
|
193483
|
+
},
|
|
193484
|
+
voiceMinutesPerDay: {
|
|
193485
|
+
type: "integer",
|
|
193486
|
+
description: "Minutes of inbound calls one number may use in 24 hours (default 60). A number that reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier; while it lasts, its calls are not answered.",
|
|
193487
|
+
maximum: 1440,
|
|
193488
|
+
minimum: 1
|
|
193489
|
+
},
|
|
193490
|
+
voiceSilentCallsPerHour: {
|
|
193491
|
+
type: "integer",
|
|
193492
|
+
description: "Inbound calls of one number in an hour in which the caller never spoke (default 5). A number that reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier. A call that failed does not count.",
|
|
193493
|
+
maximum: 1000,
|
|
193494
|
+
minimum: 1
|
|
193495
|
+
},
|
|
193496
|
+
webConversationTokens: {
|
|
193497
|
+
type: "integer",
|
|
193498
|
+
description: "Tokens one web conversation may use (default 10000000). A conversation that reaches it takes no more messages.",
|
|
193499
|
+
maximum: 1000000000000,
|
|
193500
|
+
minimum: 1e4
|
|
193501
|
+
},
|
|
193502
|
+
webEnabled: {
|
|
193503
|
+
type: "boolean",
|
|
193504
|
+
description: "Whether web chat visitors can fall into spam (default true)."
|
|
193505
|
+
},
|
|
193506
|
+
webMessagesPerDay: {
|
|
193507
|
+
type: "integer",
|
|
193508
|
+
description: "Messages one web visitor may send in 24 hours, across their chats (default 100). A visitor who reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier; while it lasts they cannot open a chat. Visitors are told apart by network address, so people who share one count together.",
|
|
193509
|
+
maximum: 1e5,
|
|
193510
|
+
minimum: 1
|
|
193511
|
+
},
|
|
193512
|
+
whatsappConversationTokens: {
|
|
193513
|
+
type: "integer",
|
|
193514
|
+
description: "Tokens (input, cached input included, plus output) one WhatsApp conversation may use since the AI last took it (default 10000000). A contact whose conversation reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier.",
|
|
193515
|
+
maximum: 1000000000000,
|
|
193516
|
+
minimum: 1e4
|
|
193517
|
+
},
|
|
193518
|
+
whatsappEnabled: {
|
|
193519
|
+
type: "boolean",
|
|
193520
|
+
description: "Whether WhatsApp contacts can fall into spam (default true)."
|
|
193521
|
+
},
|
|
193522
|
+
whatsappRepliesPerHour: {
|
|
193523
|
+
type: "integer",
|
|
193524
|
+
description: "Replies the AI may write in one WhatsApp conversation in an hour (default 60). A contact whose conversation reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier; while it lasts the AI does not answer them, and their messages are still stored for the team.",
|
|
193525
|
+
maximum: 1e4,
|
|
193526
|
+
minimum: 1
|
|
193527
|
+
}
|
|
193528
|
+
},
|
|
193529
|
+
description: "This Agent's own spam limits, written whole: each limit it names replaces the organization's (`settings.protection` of the organization) for the Agent's conversations and calls, and one left out keeps the organization's. Null: the organization's limits.",
|
|
193530
|
+
additionalProperties: false
|
|
193531
|
+
},
|
|
193532
|
+
{
|
|
193533
|
+
type: "null"
|
|
193534
|
+
}
|
|
193535
|
+
]
|
|
193536
|
+
},
|
|
191761
193537
|
reasoningEffort: {
|
|
191762
193538
|
anyOf: [
|
|
191763
193539
|
{
|
|
@@ -192330,10 +194106,18 @@ var schemaComponents = {
|
|
|
192330
194106
|
silenceEndCallTimeoutSeconds: {
|
|
192331
194107
|
anyOf: [
|
|
192332
194108
|
{
|
|
192333
|
-
|
|
192334
|
-
|
|
192335
|
-
|
|
192336
|
-
|
|
194109
|
+
anyOf: [
|
|
194110
|
+
{
|
|
194111
|
+
type: "number",
|
|
194112
|
+
const: 0
|
|
194113
|
+
},
|
|
194114
|
+
{
|
|
194115
|
+
type: "integer",
|
|
194116
|
+
maximum: 600,
|
|
194117
|
+
minimum: 10
|
|
194118
|
+
}
|
|
194119
|
+
],
|
|
194120
|
+
description: "Hang up after this many seconds (10 to 600) without the caller speaking. `0`: never hang up on silence. Null: the platform default, 120 seconds."
|
|
192337
194121
|
},
|
|
192338
194122
|
{
|
|
192339
194123
|
type: "null"
|
|
@@ -195961,7 +197745,7 @@ var schemaComponents = {
|
|
|
195961
197745
|
},
|
|
195962
197746
|
toolsVersion: {
|
|
195963
197747
|
type: "string",
|
|
195964
|
-
description: "The version of the connection's tool list
|
|
197748
|
+
description: "The version of the connection's tool list. An Agent always runs the tools as the connection lists them now."
|
|
195965
197749
|
}
|
|
195966
197750
|
},
|
|
195967
197751
|
additionalProperties: false
|
|
@@ -199881,7 +201665,7 @@ var schemaComponents = {
|
|
|
199881
201665
|
items: {
|
|
199882
201666
|
$ref: "#/components/schemas/RaizAgentIntegrationToolInput"
|
|
199883
201667
|
},
|
|
199884
|
-
description: "The integrations' tools the Agent may call, each on one of the organization's connections (`listConnections`, checked live in Account).
|
|
201668
|
+
description: "The integrations' tools the Agent may call, each on one of the organization's connections (`listConnections`, checked live in Account). The Agent runs each as its connection lists it at every turn. In an update, the complete new set.",
|
|
199885
201669
|
maxItems: 200
|
|
199886
201670
|
},
|
|
199887
201671
|
knowledgeDocumentIds: {
|
|
@@ -213443,6 +215227,7 @@ var schemaComponents = {
|
|
|
213443
215227
|
"dailyReport",
|
|
213444
215228
|
"productNotices",
|
|
213445
215229
|
"notifications",
|
|
215230
|
+
"protection",
|
|
213446
215231
|
"whatsapp"
|
|
213447
215232
|
],
|
|
213448
215233
|
properties: {
|
|
@@ -213566,6 +215351,10 @@ var schemaComponents = {
|
|
|
213566
215351
|
type: "string",
|
|
213567
215352
|
const: "outage-resolved"
|
|
213568
215353
|
},
|
|
215354
|
+
{
|
|
215355
|
+
type: "string",
|
|
215356
|
+
const: "spam-blocked"
|
|
215357
|
+
},
|
|
213569
215358
|
{
|
|
213570
215359
|
type: "string",
|
|
213571
215360
|
const: "template-approved"
|
|
@@ -213582,7 +215371,7 @@ var schemaComponents = {
|
|
|
213582
215371
|
},
|
|
213583
215372
|
description: "Product emails enabled for this organization. All are enabled unless the organization saves a selection. An empty selection turns all of them off.",
|
|
213584
215373
|
uniqueItems: true,
|
|
213585
|
-
maxItems:
|
|
215374
|
+
maxItems: 18
|
|
213586
215375
|
},
|
|
213587
215376
|
recipients: {
|
|
213588
215377
|
type: "array",
|
|
@@ -213682,6 +215471,85 @@ var schemaComponents = {
|
|
|
213682
215471
|
},
|
|
213683
215472
|
additionalProperties: false
|
|
213684
215473
|
},
|
|
215474
|
+
protection: {
|
|
215475
|
+
type: "object",
|
|
215476
|
+
required: [
|
|
215477
|
+
"spamHours",
|
|
215478
|
+
"voiceCallsPerHour",
|
|
215479
|
+
"voiceEnabled",
|
|
215480
|
+
"voiceMinutesPerDay",
|
|
215481
|
+
"voiceSilentCallsPerHour",
|
|
215482
|
+
"webConversationTokens",
|
|
215483
|
+
"webEnabled",
|
|
215484
|
+
"webMessagesPerDay",
|
|
215485
|
+
"whatsappConversationTokens",
|
|
215486
|
+
"whatsappEnabled",
|
|
215487
|
+
"whatsappRepliesPerHour"
|
|
215488
|
+
],
|
|
215489
|
+
properties: {
|
|
215490
|
+
spamHours: {
|
|
215491
|
+
type: "integer",
|
|
215492
|
+
description: "Hours someone stays in spam once they pass a limit (default 6). A person can lift the rule earlier by deleting it.",
|
|
215493
|
+
maximum: 720,
|
|
215494
|
+
minimum: 1
|
|
215495
|
+
},
|
|
215496
|
+
voiceCallsPerHour: {
|
|
215497
|
+
type: "integer",
|
|
215498
|
+
description: "Inbound calls one number may make in an hour, whoever spoke (default 10). A number that reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier.",
|
|
215499
|
+
maximum: 1000,
|
|
215500
|
+
minimum: 1
|
|
215501
|
+
},
|
|
215502
|
+
voiceEnabled: {
|
|
215503
|
+
type: "boolean",
|
|
215504
|
+
description: "Whether callers can fall into spam (default true). False: no call is ever refused for what its number consumed."
|
|
215505
|
+
},
|
|
215506
|
+
voiceMinutesPerDay: {
|
|
215507
|
+
type: "integer",
|
|
215508
|
+
description: "Minutes of inbound calls one number may use in 24 hours (default 60). A number that reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier; while it lasts, its calls are not answered.",
|
|
215509
|
+
maximum: 1440,
|
|
215510
|
+
minimum: 1
|
|
215511
|
+
},
|
|
215512
|
+
voiceSilentCallsPerHour: {
|
|
215513
|
+
type: "integer",
|
|
215514
|
+
description: "Inbound calls of one number in an hour in which the caller never spoke (default 5). A number that reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier. A call that failed does not count.",
|
|
215515
|
+
maximum: 1000,
|
|
215516
|
+
minimum: 1
|
|
215517
|
+
},
|
|
215518
|
+
webConversationTokens: {
|
|
215519
|
+
type: "integer",
|
|
215520
|
+
description: "Tokens one web conversation may use (default 10000000). A conversation that reaches it takes no more messages.",
|
|
215521
|
+
maximum: 1000000000000,
|
|
215522
|
+
minimum: 1e4
|
|
215523
|
+
},
|
|
215524
|
+
webEnabled: {
|
|
215525
|
+
type: "boolean",
|
|
215526
|
+
description: "Whether web chat visitors can fall into spam (default true)."
|
|
215527
|
+
},
|
|
215528
|
+
webMessagesPerDay: {
|
|
215529
|
+
type: "integer",
|
|
215530
|
+
description: "Messages one web visitor may send in 24 hours, across their chats (default 100). A visitor who reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier; while it lasts they cannot open a chat. Visitors are told apart by network address, so people who share one count together.",
|
|
215531
|
+
maximum: 1e5,
|
|
215532
|
+
minimum: 1
|
|
215533
|
+
},
|
|
215534
|
+
whatsappConversationTokens: {
|
|
215535
|
+
type: "integer",
|
|
215536
|
+
description: "Tokens (input, cached input included, plus output) one WhatsApp conversation may use since the AI last took it (default 10000000). A contact whose conversation reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier.",
|
|
215537
|
+
maximum: 1000000000000,
|
|
215538
|
+
minimum: 1e4
|
|
215539
|
+
},
|
|
215540
|
+
whatsappEnabled: {
|
|
215541
|
+
type: "boolean",
|
|
215542
|
+
description: "Whether WhatsApp contacts can fall into spam (default true)."
|
|
215543
|
+
},
|
|
215544
|
+
whatsappRepliesPerHour: {
|
|
215545
|
+
type: "integer",
|
|
215546
|
+
description: "Replies the AI may write in one WhatsApp conversation in an hour (default 60). A contact whose conversation reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier; while it lasts the AI does not answer them, and their messages are still stored for the team.",
|
|
215547
|
+
maximum: 1e4,
|
|
215548
|
+
minimum: 1
|
|
215549
|
+
}
|
|
215550
|
+
},
|
|
215551
|
+
additionalProperties: false
|
|
215552
|
+
},
|
|
213685
215553
|
whatsapp: {
|
|
213686
215554
|
type: "object",
|
|
213687
215555
|
required: [
|
|
@@ -217276,16 +219144,59 @@ var schemaComponents = {
|
|
|
217276
219144
|
RaizSuppression: {
|
|
217277
219145
|
type: "object",
|
|
217278
219146
|
required: [
|
|
219147
|
+
"cause",
|
|
217279
219148
|
"countryCode",
|
|
217280
219149
|
"createdAt",
|
|
219150
|
+
"expiresAt",
|
|
217281
219151
|
"id",
|
|
217282
219152
|
"ipNetwork",
|
|
217283
219153
|
"kind",
|
|
217284
219154
|
"phone",
|
|
217285
219155
|
"phonePrefix",
|
|
217286
|
-
"reason"
|
|
219156
|
+
"reason",
|
|
219157
|
+
"scope"
|
|
217287
219158
|
],
|
|
217288
219159
|
properties: {
|
|
219160
|
+
cause: {
|
|
219161
|
+
anyOf: [
|
|
219162
|
+
{
|
|
219163
|
+
anyOf: [
|
|
219164
|
+
{
|
|
219165
|
+
type: "string",
|
|
219166
|
+
const: "VOICE_CALLS"
|
|
219167
|
+
},
|
|
219168
|
+
{
|
|
219169
|
+
type: "string",
|
|
219170
|
+
const: "VOICE_MINUTES"
|
|
219171
|
+
},
|
|
219172
|
+
{
|
|
219173
|
+
type: "string",
|
|
219174
|
+
const: "VOICE_SILENT_CALLS"
|
|
219175
|
+
},
|
|
219176
|
+
{
|
|
219177
|
+
type: "string",
|
|
219178
|
+
const: "WEB_MESSAGES"
|
|
219179
|
+
},
|
|
219180
|
+
{
|
|
219181
|
+
type: "string",
|
|
219182
|
+
const: "WEB_TOKENS"
|
|
219183
|
+
},
|
|
219184
|
+
{
|
|
219185
|
+
type: "string",
|
|
219186
|
+
const: "WHATSAPP_REPLIES"
|
|
219187
|
+
},
|
|
219188
|
+
{
|
|
219189
|
+
type: "string",
|
|
219190
|
+
const: "WHATSAPP_TOKENS"
|
|
219191
|
+
}
|
|
219192
|
+
],
|
|
219193
|
+
description: "The limit someone passed to fall into spam: `VOICE_CALLS` (`voiceCallsPerHour`), `VOICE_MINUTES` (`voiceMinutesPerDay`), `VOICE_SILENT_CALLS` (`voiceSilentCallsPerHour`), `WEB_MESSAGES` (`webMessagesPerDay`), `WEB_TOKENS` (`webConversationTokens`), `WHATSAPP_REPLIES` (`whatsappRepliesPerHour`) or `WHATSAPP_TOKENS` (`whatsappConversationTokens`)."
|
|
219194
|
+
},
|
|
219195
|
+
{
|
|
219196
|
+
type: "null"
|
|
219197
|
+
}
|
|
219198
|
+
]
|
|
219199
|
+
},
|
|
217289
219200
|
countryCode: {
|
|
217290
219201
|
anyOf: [
|
|
217291
219202
|
{
|
|
@@ -217303,6 +219214,18 @@ var schemaComponents = {
|
|
|
217303
219214
|
description: "An instant in RFC 3339 format, in UTC.",
|
|
217304
219215
|
format: "date-time"
|
|
217305
219216
|
},
|
|
219217
|
+
expiresAt: {
|
|
219218
|
+
anyOf: [
|
|
219219
|
+
{
|
|
219220
|
+
type: "string",
|
|
219221
|
+
format: "date-time",
|
|
219222
|
+
description: "When a spam rule stops applying. An expired rule is no longer listed. Null: a rule a person wrote, which applies until deleted."
|
|
219223
|
+
},
|
|
219224
|
+
{
|
|
219225
|
+
type: "null"
|
|
219226
|
+
}
|
|
219227
|
+
]
|
|
219228
|
+
},
|
|
217306
219229
|
id: {
|
|
217307
219230
|
type: "string",
|
|
217308
219231
|
description: "Suppression id.",
|
|
@@ -217366,6 +219289,30 @@ var schemaComponents = {
|
|
|
217366
219289
|
},
|
|
217367
219290
|
reason: {
|
|
217368
219291
|
type: "string"
|
|
219292
|
+
},
|
|
219293
|
+
scope: {
|
|
219294
|
+
anyOf: [
|
|
219295
|
+
{
|
|
219296
|
+
anyOf: [
|
|
219297
|
+
{
|
|
219298
|
+
type: "string",
|
|
219299
|
+
const: "voice"
|
|
219300
|
+
},
|
|
219301
|
+
{
|
|
219302
|
+
type: "string",
|
|
219303
|
+
const: "whatsapp"
|
|
219304
|
+
},
|
|
219305
|
+
{
|
|
219306
|
+
type: "string",
|
|
219307
|
+
const: "web"
|
|
219308
|
+
}
|
|
219309
|
+
],
|
|
219310
|
+
description: "The one channel a spam rule applies to, and only to what arrives on it: calls from the number are not answered (`voice`), the AI does not reply to the contact while their messages are still stored (`whatsapp`), or the visitor cannot open or continue a chat (`web`). Messages and calls the organization sends are never held back by spam."
|
|
219311
|
+
},
|
|
219312
|
+
{
|
|
219313
|
+
type: "null"
|
|
219314
|
+
}
|
|
219315
|
+
]
|
|
217369
219316
|
}
|
|
217370
219317
|
},
|
|
217371
219318
|
additionalProperties: false
|
|
@@ -218458,7 +220405,7 @@ var schemaComponents = {
|
|
|
218458
220405
|
items: {
|
|
218459
220406
|
$ref: "#/components/schemas/RaizAgentIntegrationToolInput"
|
|
218460
220407
|
},
|
|
218461
|
-
description: "The integrations' tools the Agent may call, each on one of the organization's connections (`listConnections`, checked live in Account).
|
|
220408
|
+
description: "The integrations' tools the Agent may call, each on one of the organization's connections (`listConnections`, checked live in Account). The Agent runs each as its connection lists it at every turn. In an update, the complete new set.",
|
|
218462
220409
|
maxItems: 200
|
|
218463
220410
|
},
|
|
218464
220411
|
knowledgeDocumentIds: {
|
|
@@ -221635,6 +223582,10 @@ var schemaComponents = {
|
|
|
221635
223582
|
type: "string",
|
|
221636
223583
|
const: "outage-resolved"
|
|
221637
223584
|
},
|
|
223585
|
+
{
|
|
223586
|
+
type: "string",
|
|
223587
|
+
const: "spam-blocked"
|
|
223588
|
+
},
|
|
221638
223589
|
{
|
|
221639
223590
|
type: "string",
|
|
221640
223591
|
const: "template-approved"
|
|
@@ -221651,7 +223602,7 @@ var schemaComponents = {
|
|
|
221651
223602
|
},
|
|
221652
223603
|
description: "Product emails enabled for this organization. All are enabled unless the organization saves a selection. An empty selection turns all of them off.",
|
|
221653
223604
|
uniqueItems: true,
|
|
221654
|
-
maxItems:
|
|
223605
|
+
maxItems: 18
|
|
221655
223606
|
},
|
|
221656
223607
|
{
|
|
221657
223608
|
type: "null"
|
|
@@ -221810,6 +223761,149 @@ var schemaComponents = {
|
|
|
221810
223761
|
},
|
|
221811
223762
|
additionalProperties: false
|
|
221812
223763
|
},
|
|
223764
|
+
protection: {
|
|
223765
|
+
type: "object",
|
|
223766
|
+
properties: {
|
|
223767
|
+
spamHours: {
|
|
223768
|
+
anyOf: [
|
|
223769
|
+
{
|
|
223770
|
+
type: "integer",
|
|
223771
|
+
description: "Hours someone stays in spam once they pass a limit (default 6). A person can lift the rule earlier by deleting it.",
|
|
223772
|
+
maximum: 720,
|
|
223773
|
+
minimum: 1
|
|
223774
|
+
},
|
|
223775
|
+
{
|
|
223776
|
+
type: "null"
|
|
223777
|
+
}
|
|
223778
|
+
]
|
|
223779
|
+
},
|
|
223780
|
+
voiceCallsPerHour: {
|
|
223781
|
+
anyOf: [
|
|
223782
|
+
{
|
|
223783
|
+
type: "integer",
|
|
223784
|
+
description: "Inbound calls one number may make in an hour, whoever spoke (default 10). A number that reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier.",
|
|
223785
|
+
maximum: 1000,
|
|
223786
|
+
minimum: 1
|
|
223787
|
+
},
|
|
223788
|
+
{
|
|
223789
|
+
type: "null"
|
|
223790
|
+
}
|
|
223791
|
+
]
|
|
223792
|
+
},
|
|
223793
|
+
voiceEnabled: {
|
|
223794
|
+
anyOf: [
|
|
223795
|
+
{
|
|
223796
|
+
type: "boolean",
|
|
223797
|
+
description: "Whether callers can fall into spam (default true). False: no call is ever refused for what its number consumed."
|
|
223798
|
+
},
|
|
223799
|
+
{
|
|
223800
|
+
type: "null"
|
|
223801
|
+
}
|
|
223802
|
+
]
|
|
223803
|
+
},
|
|
223804
|
+
voiceMinutesPerDay: {
|
|
223805
|
+
anyOf: [
|
|
223806
|
+
{
|
|
223807
|
+
type: "integer",
|
|
223808
|
+
description: "Minutes of inbound calls one number may use in 24 hours (default 60). A number that reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier; while it lasts, its calls are not answered.",
|
|
223809
|
+
maximum: 1440,
|
|
223810
|
+
minimum: 1
|
|
223811
|
+
},
|
|
223812
|
+
{
|
|
223813
|
+
type: "null"
|
|
223814
|
+
}
|
|
223815
|
+
]
|
|
223816
|
+
},
|
|
223817
|
+
voiceSilentCallsPerHour: {
|
|
223818
|
+
anyOf: [
|
|
223819
|
+
{
|
|
223820
|
+
type: "integer",
|
|
223821
|
+
description: "Inbound calls of one number in an hour in which the caller never spoke (default 5). A number that reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier. A call that failed does not count.",
|
|
223822
|
+
maximum: 1000,
|
|
223823
|
+
minimum: 1
|
|
223824
|
+
},
|
|
223825
|
+
{
|
|
223826
|
+
type: "null"
|
|
223827
|
+
}
|
|
223828
|
+
]
|
|
223829
|
+
},
|
|
223830
|
+
webConversationTokens: {
|
|
223831
|
+
anyOf: [
|
|
223832
|
+
{
|
|
223833
|
+
type: "integer",
|
|
223834
|
+
description: "Tokens one web conversation may use (default 10000000). A conversation that reaches it takes no more messages.",
|
|
223835
|
+
maximum: 1000000000000,
|
|
223836
|
+
minimum: 1e4
|
|
223837
|
+
},
|
|
223838
|
+
{
|
|
223839
|
+
type: "null"
|
|
223840
|
+
}
|
|
223841
|
+
]
|
|
223842
|
+
},
|
|
223843
|
+
webEnabled: {
|
|
223844
|
+
anyOf: [
|
|
223845
|
+
{
|
|
223846
|
+
type: "boolean",
|
|
223847
|
+
description: "Whether web chat visitors can fall into spam (default true)."
|
|
223848
|
+
},
|
|
223849
|
+
{
|
|
223850
|
+
type: "null"
|
|
223851
|
+
}
|
|
223852
|
+
]
|
|
223853
|
+
},
|
|
223854
|
+
webMessagesPerDay: {
|
|
223855
|
+
anyOf: [
|
|
223856
|
+
{
|
|
223857
|
+
type: "integer",
|
|
223858
|
+
description: "Messages one web visitor may send in 24 hours, across their chats (default 100). A visitor who reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier; while it lasts they cannot open a chat. Visitors are told apart by network address, so people who share one count together.",
|
|
223859
|
+
maximum: 1e5,
|
|
223860
|
+
minimum: 1
|
|
223861
|
+
},
|
|
223862
|
+
{
|
|
223863
|
+
type: "null"
|
|
223864
|
+
}
|
|
223865
|
+
]
|
|
223866
|
+
},
|
|
223867
|
+
whatsappConversationTokens: {
|
|
223868
|
+
anyOf: [
|
|
223869
|
+
{
|
|
223870
|
+
type: "integer",
|
|
223871
|
+
description: "Tokens (input, cached input included, plus output) one WhatsApp conversation may use since the AI last took it (default 10000000). A contact whose conversation reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier.",
|
|
223872
|
+
maximum: 1000000000000,
|
|
223873
|
+
minimum: 1e4
|
|
223874
|
+
},
|
|
223875
|
+
{
|
|
223876
|
+
type: "null"
|
|
223877
|
+
}
|
|
223878
|
+
]
|
|
223879
|
+
},
|
|
223880
|
+
whatsappEnabled: {
|
|
223881
|
+
anyOf: [
|
|
223882
|
+
{
|
|
223883
|
+
type: "boolean",
|
|
223884
|
+
description: "Whether WhatsApp contacts can fall into spam (default true)."
|
|
223885
|
+
},
|
|
223886
|
+
{
|
|
223887
|
+
type: "null"
|
|
223888
|
+
}
|
|
223889
|
+
]
|
|
223890
|
+
},
|
|
223891
|
+
whatsappRepliesPerHour: {
|
|
223892
|
+
anyOf: [
|
|
223893
|
+
{
|
|
223894
|
+
type: "integer",
|
|
223895
|
+
description: "Replies the AI may write in one WhatsApp conversation in an hour (default 60). A contact whose conversation reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier; while it lasts the AI does not answer them, and their messages are still stored for the team.",
|
|
223896
|
+
maximum: 1e4,
|
|
223897
|
+
minimum: 1
|
|
223898
|
+
},
|
|
223899
|
+
{
|
|
223900
|
+
type: "null"
|
|
223901
|
+
}
|
|
223902
|
+
]
|
|
223903
|
+
}
|
|
223904
|
+
},
|
|
223905
|
+
additionalProperties: false
|
|
223906
|
+
},
|
|
221813
223907
|
whatsapp: {
|
|
221814
223908
|
type: "object",
|
|
221815
223909
|
properties: {
|
|
@@ -241931,6 +244025,20 @@ var schemaComponents = {
|
|
|
241931
244025
|
},
|
|
241932
244026
|
additionalProperties: false
|
|
241933
244027
|
},
|
|
244028
|
+
AccountConnectionsRefreshInput: {
|
|
244029
|
+
type: "object",
|
|
244030
|
+
required: [
|
|
244031
|
+
"connectionId"
|
|
244032
|
+
],
|
|
244033
|
+
properties: {
|
|
244034
|
+
connectionId: {
|
|
244035
|
+
type: "string",
|
|
244036
|
+
pattern: "^con_[0-7][0-9a-hjkmnp-tv-z]{25}$",
|
|
244037
|
+
description: "A connection's id: con_ and 26 characters, stable and unique across the platform."
|
|
244038
|
+
}
|
|
244039
|
+
},
|
|
244040
|
+
additionalProperties: false
|
|
244041
|
+
},
|
|
241934
244042
|
AccountInvitationsListInput: {
|
|
241935
244043
|
type: "object",
|
|
241936
244044
|
required: [],
|
|
@@ -242333,6 +244441,115 @@ var schemaComponents = {
|
|
|
242333
244441
|
},
|
|
242334
244442
|
additionalProperties: false
|
|
242335
244443
|
},
|
|
244444
|
+
AccountServersCreateInput: {
|
|
244445
|
+
type: "object",
|
|
244446
|
+
required: [
|
|
244447
|
+
"name",
|
|
244448
|
+
"url",
|
|
244449
|
+
"secret"
|
|
244450
|
+
],
|
|
244451
|
+
properties: {
|
|
244452
|
+
name: {
|
|
244453
|
+
type: "string",
|
|
244454
|
+
description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'."
|
|
244455
|
+
},
|
|
244456
|
+
url: {
|
|
244457
|
+
type: "string",
|
|
244458
|
+
format: "uri",
|
|
244459
|
+
maxLength: 2048,
|
|
244460
|
+
pattern: "^https://[^?#]+$",
|
|
244461
|
+
description: "The OpenAPI document or the MCP endpoint: https, at a public address, without a query or a fragment."
|
|
244462
|
+
},
|
|
244463
|
+
transport: {
|
|
244464
|
+
anyOf: [
|
|
244465
|
+
{
|
|
244466
|
+
type: "string",
|
|
244467
|
+
const: "http"
|
|
244468
|
+
},
|
|
244469
|
+
{
|
|
244470
|
+
type: "string",
|
|
244471
|
+
const: "mcp"
|
|
244472
|
+
}
|
|
244473
|
+
],
|
|
244474
|
+
description: "http: an OpenAPI 3 document (or a server whose /openapi.json serves one). mcp: an MCP endpoint (Streamable HTTP). Leave it out and Account finds which the address serves."
|
|
244475
|
+
},
|
|
244476
|
+
authHeader: {
|
|
244477
|
+
anyOf: [
|
|
244478
|
+
{
|
|
244479
|
+
type: "string",
|
|
244480
|
+
pattern: "^[A-Za-z][A-Za-z0-9-]{0,63}$",
|
|
244481
|
+
description: "The header that carries the secret; without it the secret is sent as Authorization: Bearer."
|
|
244482
|
+
},
|
|
244483
|
+
{
|
|
244484
|
+
type: "null"
|
|
244485
|
+
}
|
|
244486
|
+
],
|
|
244487
|
+
description: "The header the secret travels in, or null for Authorization: Bearer. Leave it out and Account uses the API key header the server's OpenAPI document declares, else Authorization: Bearer."
|
|
244488
|
+
},
|
|
244489
|
+
secret: {
|
|
244490
|
+
type: "string",
|
|
244491
|
+
secret: true,
|
|
244492
|
+
writeOnly: true,
|
|
244493
|
+
minLength: 1,
|
|
244494
|
+
maxLength: 4096,
|
|
244495
|
+
pattern: "^[^\\r\\n]+$",
|
|
244496
|
+
description: "The secret the server admits calls with. Arbol keeps it encrypted, sends it only to this server and never shows it again."
|
|
244497
|
+
}
|
|
244498
|
+
},
|
|
244499
|
+
additionalProperties: false
|
|
244500
|
+
},
|
|
244501
|
+
AccountServersDiscoverInput: {
|
|
244502
|
+
type: "object",
|
|
244503
|
+
required: [
|
|
244504
|
+
"url",
|
|
244505
|
+
"secret"
|
|
244506
|
+
],
|
|
244507
|
+
properties: {
|
|
244508
|
+
url: {
|
|
244509
|
+
type: "string",
|
|
244510
|
+
format: "uri",
|
|
244511
|
+
maxLength: 2048,
|
|
244512
|
+
pattern: "^https://[^?#]+$",
|
|
244513
|
+
description: "The OpenAPI document or the MCP endpoint: https, at a public address, without a query or a fragment."
|
|
244514
|
+
},
|
|
244515
|
+
transport: {
|
|
244516
|
+
anyOf: [
|
|
244517
|
+
{
|
|
244518
|
+
type: "string",
|
|
244519
|
+
const: "http"
|
|
244520
|
+
},
|
|
244521
|
+
{
|
|
244522
|
+
type: "string",
|
|
244523
|
+
const: "mcp"
|
|
244524
|
+
}
|
|
244525
|
+
],
|
|
244526
|
+
description: "http: an OpenAPI 3 document (or a server whose /openapi.json serves one). mcp: an MCP endpoint (Streamable HTTP). Leave it out and Account finds which the address serves."
|
|
244527
|
+
},
|
|
244528
|
+
authHeader: {
|
|
244529
|
+
anyOf: [
|
|
244530
|
+
{
|
|
244531
|
+
type: "string",
|
|
244532
|
+
pattern: "^[A-Za-z][A-Za-z0-9-]{0,63}$",
|
|
244533
|
+
description: "The header that carries the secret; without it the secret is sent as Authorization: Bearer."
|
|
244534
|
+
},
|
|
244535
|
+
{
|
|
244536
|
+
type: "null"
|
|
244537
|
+
}
|
|
244538
|
+
],
|
|
244539
|
+
description: "The header the secret travels in, or null for Authorization: Bearer. Leave it out and Account uses the API key header the server's OpenAPI document declares, else Authorization: Bearer."
|
|
244540
|
+
},
|
|
244541
|
+
secret: {
|
|
244542
|
+
type: "string",
|
|
244543
|
+
secret: true,
|
|
244544
|
+
writeOnly: true,
|
|
244545
|
+
minLength: 1,
|
|
244546
|
+
maxLength: 4096,
|
|
244547
|
+
pattern: "^[^\\r\\n]+$",
|
|
244548
|
+
description: "The secret the server admits calls with. Arbol keeps it encrypted, sends it only to this server and never shows it again."
|
|
244549
|
+
}
|
|
244550
|
+
},
|
|
244551
|
+
additionalProperties: false
|
|
244552
|
+
},
|
|
242336
244553
|
AccountUsageSummaryGetInput: {
|
|
242337
244554
|
type: "object",
|
|
242338
244555
|
properties: {
|
|
@@ -251337,7 +253554,7 @@ var schemaComponents = {
|
|
|
251337
253554
|
items: {
|
|
251338
253555
|
$ref: "#/components/schemas/RaizAgentIntegrationToolInput"
|
|
251339
253556
|
},
|
|
251340
|
-
description: "The integrations' tools the Agent may call, each on one of the organization's connections (`listConnections`, checked live in Account).
|
|
253557
|
+
description: "The integrations' tools the Agent may call, each on one of the organization's connections (`listConnections`, checked live in Account). The Agent runs each as its connection lists it at every turn. In an update, the complete new set.",
|
|
251341
253558
|
maxItems: 200
|
|
251342
253559
|
},
|
|
251343
253560
|
knowledgeDocumentIds: {
|
|
@@ -251508,7 +253725,7 @@ var schemaComponents = {
|
|
|
251508
253725
|
items: {
|
|
251509
253726
|
$ref: "#/components/schemas/RaizAgentIntegrationToolInput"
|
|
251510
253727
|
},
|
|
251511
|
-
description: "The integrations' tools the Agent may call, each on one of the organization's connections (`listConnections`, checked live in Account).
|
|
253728
|
+
description: "The integrations' tools the Agent may call, each on one of the organization's connections (`listConnections`, checked live in Account). The Agent runs each as its connection lists it at every turn. In an update, the complete new set.",
|
|
251512
253729
|
maxItems: 200
|
|
251513
253730
|
},
|
|
251514
253731
|
knowledgeDocumentIds: {
|
|
@@ -256061,6 +258278,10 @@ var schemaComponents = {
|
|
|
256061
258278
|
type: "string",
|
|
256062
258279
|
const: "outage-resolved"
|
|
256063
258280
|
},
|
|
258281
|
+
{
|
|
258282
|
+
type: "string",
|
|
258283
|
+
const: "spam-blocked"
|
|
258284
|
+
},
|
|
256064
258285
|
{
|
|
256065
258286
|
type: "string",
|
|
256066
258287
|
const: "template-approved"
|
|
@@ -256077,7 +258298,7 @@ var schemaComponents = {
|
|
|
256077
258298
|
},
|
|
256078
258299
|
description: "Product emails enabled for this organization. All are enabled unless the organization saves a selection. An empty selection turns all of them off.",
|
|
256079
258300
|
uniqueItems: true,
|
|
256080
|
-
maxItems:
|
|
258301
|
+
maxItems: 18
|
|
256081
258302
|
},
|
|
256082
258303
|
{
|
|
256083
258304
|
type: "null"
|
|
@@ -256236,6 +258457,149 @@ var schemaComponents = {
|
|
|
256236
258457
|
},
|
|
256237
258458
|
additionalProperties: false
|
|
256238
258459
|
},
|
|
258460
|
+
protection: {
|
|
258461
|
+
type: "object",
|
|
258462
|
+
properties: {
|
|
258463
|
+
spamHours: {
|
|
258464
|
+
anyOf: [
|
|
258465
|
+
{
|
|
258466
|
+
type: "integer",
|
|
258467
|
+
description: "Hours someone stays in spam once they pass a limit (default 6). A person can lift the rule earlier by deleting it.",
|
|
258468
|
+
maximum: 720,
|
|
258469
|
+
minimum: 1
|
|
258470
|
+
},
|
|
258471
|
+
{
|
|
258472
|
+
type: "null"
|
|
258473
|
+
}
|
|
258474
|
+
]
|
|
258475
|
+
},
|
|
258476
|
+
voiceCallsPerHour: {
|
|
258477
|
+
anyOf: [
|
|
258478
|
+
{
|
|
258479
|
+
type: "integer",
|
|
258480
|
+
description: "Inbound calls one number may make in an hour, whoever spoke (default 10). A number that reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier.",
|
|
258481
|
+
maximum: 1000,
|
|
258482
|
+
minimum: 1
|
|
258483
|
+
},
|
|
258484
|
+
{
|
|
258485
|
+
type: "null"
|
|
258486
|
+
}
|
|
258487
|
+
]
|
|
258488
|
+
},
|
|
258489
|
+
voiceEnabled: {
|
|
258490
|
+
anyOf: [
|
|
258491
|
+
{
|
|
258492
|
+
type: "boolean",
|
|
258493
|
+
description: "Whether callers can fall into spam (default true). False: no call is ever refused for what its number consumed."
|
|
258494
|
+
},
|
|
258495
|
+
{
|
|
258496
|
+
type: "null"
|
|
258497
|
+
}
|
|
258498
|
+
]
|
|
258499
|
+
},
|
|
258500
|
+
voiceMinutesPerDay: {
|
|
258501
|
+
anyOf: [
|
|
258502
|
+
{
|
|
258503
|
+
type: "integer",
|
|
258504
|
+
description: "Minutes of inbound calls one number may use in 24 hours (default 60). A number that reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier; while it lasts, its calls are not answered.",
|
|
258505
|
+
maximum: 1440,
|
|
258506
|
+
minimum: 1
|
|
258507
|
+
},
|
|
258508
|
+
{
|
|
258509
|
+
type: "null"
|
|
258510
|
+
}
|
|
258511
|
+
]
|
|
258512
|
+
},
|
|
258513
|
+
voiceSilentCallsPerHour: {
|
|
258514
|
+
anyOf: [
|
|
258515
|
+
{
|
|
258516
|
+
type: "integer",
|
|
258517
|
+
description: "Inbound calls of one number in an hour in which the caller never spoke (default 5). A number that reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier. A call that failed does not count.",
|
|
258518
|
+
maximum: 1000,
|
|
258519
|
+
minimum: 1
|
|
258520
|
+
},
|
|
258521
|
+
{
|
|
258522
|
+
type: "null"
|
|
258523
|
+
}
|
|
258524
|
+
]
|
|
258525
|
+
},
|
|
258526
|
+
webConversationTokens: {
|
|
258527
|
+
anyOf: [
|
|
258528
|
+
{
|
|
258529
|
+
type: "integer",
|
|
258530
|
+
description: "Tokens one web conversation may use (default 10000000). A conversation that reaches it takes no more messages.",
|
|
258531
|
+
maximum: 1000000000000,
|
|
258532
|
+
minimum: 1e4
|
|
258533
|
+
},
|
|
258534
|
+
{
|
|
258535
|
+
type: "null"
|
|
258536
|
+
}
|
|
258537
|
+
]
|
|
258538
|
+
},
|
|
258539
|
+
webEnabled: {
|
|
258540
|
+
anyOf: [
|
|
258541
|
+
{
|
|
258542
|
+
type: "boolean",
|
|
258543
|
+
description: "Whether web chat visitors can fall into spam (default true)."
|
|
258544
|
+
},
|
|
258545
|
+
{
|
|
258546
|
+
type: "null"
|
|
258547
|
+
}
|
|
258548
|
+
]
|
|
258549
|
+
},
|
|
258550
|
+
webMessagesPerDay: {
|
|
258551
|
+
anyOf: [
|
|
258552
|
+
{
|
|
258553
|
+
type: "integer",
|
|
258554
|
+
description: "Messages one web visitor may send in 24 hours, across their chats (default 100). A visitor who reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier; while it lasts they cannot open a chat. Visitors are told apart by network address, so people who share one count together.",
|
|
258555
|
+
maximum: 1e5,
|
|
258556
|
+
minimum: 1
|
|
258557
|
+
},
|
|
258558
|
+
{
|
|
258559
|
+
type: "null"
|
|
258560
|
+
}
|
|
258561
|
+
]
|
|
258562
|
+
},
|
|
258563
|
+
whatsappConversationTokens: {
|
|
258564
|
+
anyOf: [
|
|
258565
|
+
{
|
|
258566
|
+
type: "integer",
|
|
258567
|
+
description: "Tokens (input, cached input included, plus output) one WhatsApp conversation may use since the AI last took it (default 10000000). A contact whose conversation reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier.",
|
|
258568
|
+
maximum: 1000000000000,
|
|
258569
|
+
minimum: 1e4
|
|
258570
|
+
},
|
|
258571
|
+
{
|
|
258572
|
+
type: "null"
|
|
258573
|
+
}
|
|
258574
|
+
]
|
|
258575
|
+
},
|
|
258576
|
+
whatsappEnabled: {
|
|
258577
|
+
anyOf: [
|
|
258578
|
+
{
|
|
258579
|
+
type: "boolean",
|
|
258580
|
+
description: "Whether WhatsApp contacts can fall into spam (default true)."
|
|
258581
|
+
},
|
|
258582
|
+
{
|
|
258583
|
+
type: "null"
|
|
258584
|
+
}
|
|
258585
|
+
]
|
|
258586
|
+
},
|
|
258587
|
+
whatsappRepliesPerHour: {
|
|
258588
|
+
anyOf: [
|
|
258589
|
+
{
|
|
258590
|
+
type: "integer",
|
|
258591
|
+
description: "Replies the AI may write in one WhatsApp conversation in an hour (default 60). A contact whose conversation reaches it falls into spam: an automatic suppression of that channel, inbound only, that expires after `spamHours` and that a person can lift earlier; while it lasts the AI does not answer them, and their messages are still stored for the team.",
|
|
258592
|
+
maximum: 1e4,
|
|
258593
|
+
minimum: 1
|
|
258594
|
+
},
|
|
258595
|
+
{
|
|
258596
|
+
type: "null"
|
|
258597
|
+
}
|
|
258598
|
+
]
|
|
258599
|
+
}
|
|
258600
|
+
},
|
|
258601
|
+
additionalProperties: false
|
|
258602
|
+
},
|
|
256239
258603
|
whatsapp: {
|
|
256240
258604
|
type: "object",
|
|
256241
258605
|
properties: {
|
|
@@ -259626,235 +261990,235 @@ var schemaComponents = {
|
|
|
259626
261990
|
description: "Maximum items returned in one page. Defaults to 25; larger reads require another cursor.",
|
|
259627
261991
|
default: 25
|
|
259628
261992
|
},
|
|
259629
|
-
agentMode: {
|
|
259630
|
-
type: "boolean",
|
|
259631
|
-
default: false,
|
|
259632
|
-
description: "Set agentMode=true when calling this tool for an AI agent. The answer is concise Spanish text instead of JSON. Omit it for structured machine data. This changes presentation only, never authorization, consent or idempotency."
|
|
259633
|
-
},
|
|
259634
|
-
connectionId: {
|
|
259635
|
-
type: "string",
|
|
259636
|
-
description: "Which of the organization's SURA connections to run on, by its id. Optional while the organization has one; required when it has several.",
|
|
259637
|
-
maxLength: 128,
|
|
259638
|
-
minLength: 1
|
|
259639
|
-
},
|
|
259640
|
-
channel: {
|
|
259641
|
-
anyOf: [
|
|
259642
|
-
{
|
|
259643
|
-
type: "string",
|
|
259644
|
-
const: "voice"
|
|
259645
|
-
},
|
|
259646
|
-
{
|
|
259647
|
-
type: "string",
|
|
259648
|
-
const: "whatsapp"
|
|
259649
|
-
},
|
|
259650
|
-
{
|
|
259651
|
-
type: "string",
|
|
259652
|
-
const: "web"
|
|
259653
|
-
}
|
|
259654
|
-
],
|
|
259655
|
-
description: "The channel the caller is waiting on, which sets how long it waits before an answer comes back pending, and puts a phone call's reads ahead of others. Defaults to web."
|
|
259656
|
-
}
|
|
259657
|
-
},
|
|
259658
|
-
additionalProperties: false
|
|
259659
|
-
},
|
|
259660
|
-
VisoftAppointmentReceiptsLookupInput: {
|
|
259661
|
-
type: "object",
|
|
259662
|
-
required: [
|
|
259663
|
-
"reference"
|
|
259664
|
-
],
|
|
259665
|
-
properties: {
|
|
259666
|
-
connectionId: {
|
|
259667
|
-
type: "string",
|
|
259668
|
-
minLength: 5,
|
|
259669
|
-
maxLength: 68,
|
|
259670
|
-
pattern: "^con_[0-9A-Za-z]+$",
|
|
259671
|
-
description: "The connection to run on. Optional when the organization has one Visoft connection; required when it has several. Another organization's connection is CONNECTION_NOT_FOUND."
|
|
259672
|
-
},
|
|
259673
|
-
reference: {
|
|
259674
|
-
type: "string",
|
|
259675
|
-
minLength: 1,
|
|
259676
|
-
maxLength: 300,
|
|
259677
|
-
pattern: "^[A-Za-z0-9:._-]+(?:=[A-Za-z0-9:._-]*){8,24}$",
|
|
259678
|
-
description: "The appointment's opaque reference, as visoft.appointments.list answered it."
|
|
259679
|
-
}
|
|
259680
|
-
},
|
|
259681
|
-
additionalProperties: false
|
|
259682
|
-
},
|
|
259683
|
-
VisoftAppointmentsCreateInput: {
|
|
259684
|
-
type: "object",
|
|
259685
|
-
required: [
|
|
259686
|
-
"documentNumber",
|
|
259687
|
-
"slot"
|
|
259688
|
-
],
|
|
259689
|
-
properties: {
|
|
259690
|
-
connectionId: {
|
|
259691
|
-
type: "string",
|
|
259692
|
-
minLength: 5,
|
|
259693
|
-
maxLength: 68,
|
|
259694
|
-
pattern: "^con_[0-9A-Za-z]+$",
|
|
259695
|
-
description: "The connection to run on. Optional when the organization has one Visoft connection; required when it has several. Another organization's connection is CONNECTION_NOT_FOUND."
|
|
259696
|
-
},
|
|
259697
|
-
documentType: {
|
|
259698
|
-
anyOf: [
|
|
259699
|
-
{
|
|
259700
|
-
type: "string",
|
|
259701
|
-
const: "CC"
|
|
259702
|
-
},
|
|
259703
|
-
{
|
|
259704
|
-
type: "string",
|
|
259705
|
-
const: "TI"
|
|
259706
|
-
},
|
|
259707
|
-
{
|
|
259708
|
-
type: "string",
|
|
259709
|
-
const: "RC"
|
|
259710
|
-
},
|
|
259711
|
-
{
|
|
259712
|
-
type: "string",
|
|
259713
|
-
const: "AS"
|
|
259714
|
-
},
|
|
259715
|
-
{
|
|
259716
|
-
type: "string",
|
|
259717
|
-
const: "CD"
|
|
259718
|
-
},
|
|
259719
|
-
{
|
|
259720
|
-
type: "string",
|
|
259721
|
-
const: "CE"
|
|
259722
|
-
},
|
|
259723
|
-
{
|
|
259724
|
-
type: "string",
|
|
259725
|
-
const: "DE"
|
|
259726
|
-
},
|
|
259727
|
-
{
|
|
259728
|
-
type: "string",
|
|
259729
|
-
const: "CN"
|
|
259730
|
-
},
|
|
259731
|
-
{
|
|
259732
|
-
type: "string",
|
|
259733
|
-
const: "MS"
|
|
259734
|
-
},
|
|
259735
|
-
{
|
|
259736
|
-
type: "string",
|
|
259737
|
-
const: "SC"
|
|
259738
|
-
},
|
|
259739
|
-
{
|
|
259740
|
-
type: "string",
|
|
259741
|
-
const: "PE"
|
|
259742
|
-
},
|
|
259743
|
-
{
|
|
259744
|
-
type: "string",
|
|
259745
|
-
const: "PT"
|
|
259746
|
-
},
|
|
259747
|
-
{
|
|
259748
|
-
type: "string",
|
|
259749
|
-
const: "SI"
|
|
259750
|
-
},
|
|
259751
|
-
{
|
|
259752
|
-
type: "string",
|
|
259753
|
-
const: "PA"
|
|
259754
|
-
}
|
|
259755
|
-
],
|
|
259756
|
-
description: "The document's type, as SIIPS codes it: CC (Cédula de Ciudadanía), TI (Tarjeta de Identidad), RC (Registro Civil), AS (Adulto sin Identificación), CD (Carné Diplomático), CE (Cédula de Extranjería), DE (Documento de Extranjero), CN (Certificado de Nacido Vivo), MS (Menor sin Identificación), SC (Salvoconducto), PE (Permiso Especial de Permanencia), PT (Permiso de Protección Temporal), SI (Sin Identificación), PA (Pasaporte). CC by default."
|
|
259757
|
-
},
|
|
259758
|
-
documentNumber: {
|
|
259759
|
-
type: "string",
|
|
259760
|
-
pattern: "^[A-Za-z0-9]{1,20}$",
|
|
259761
|
-
description: "The patient's document number: letters and digits only, without dots, spaces or hyphens."
|
|
259762
|
-
},
|
|
259763
|
-
slot: {
|
|
259764
|
-
type: "object",
|
|
259765
|
-
required: [
|
|
259766
|
-
"reference",
|
|
259767
|
-
"contractCode",
|
|
259768
|
-
"serviceCode"
|
|
259769
|
-
],
|
|
259770
|
-
properties: {
|
|
259771
|
-
reference: {
|
|
259772
|
-
type: "string",
|
|
259773
|
-
minLength: 7,
|
|
259774
|
-
maxLength: 200,
|
|
259775
|
-
description: "The free slot's SIIPS key, as visoft.availability.lookup answered it: pass it unchanged to visoft.appointments.create."
|
|
259776
|
-
},
|
|
259777
|
-
contractCode: {
|
|
259778
|
-
type: "string",
|
|
259779
|
-
minLength: 1,
|
|
259780
|
-
maxLength: 40,
|
|
259781
|
-
pattern: "^[A-Za-z0-9_-]+$",
|
|
259782
|
-
description: "The contract, by the code visoft.contracts.list answers."
|
|
259783
|
-
},
|
|
259784
|
-
serviceCode: {
|
|
259785
|
-
type: "string",
|
|
259786
|
-
minLength: 3,
|
|
259787
|
-
maxLength: 60,
|
|
259788
|
-
pattern: "^[A-Za-z0-9]+-[A-Za-z0-9._-]+$",
|
|
259789
|
-
description: `The service, by the code a contract's services answer ("CUPS-890208").`
|
|
259790
|
-
}
|
|
259791
|
-
},
|
|
259792
|
-
additionalProperties: false,
|
|
259793
|
-
description: "The free slot, by its reference, and the contract and service the search that found it named."
|
|
259794
|
-
},
|
|
259795
|
-
visitType: {
|
|
259796
|
-
anyOf: [
|
|
259797
|
-
{
|
|
259798
|
-
type: "string",
|
|
259799
|
-
const: "1"
|
|
259800
|
-
},
|
|
259801
|
-
{
|
|
259802
|
-
type: "string",
|
|
259803
|
-
const: "C"
|
|
259804
|
-
},
|
|
259805
|
-
{
|
|
259806
|
-
type: "string",
|
|
259807
|
-
const: "G"
|
|
259808
|
-
},
|
|
259809
|
-
{
|
|
259810
|
-
type: "string",
|
|
259811
|
-
const: "R"
|
|
259812
|
-
},
|
|
259813
|
-
{
|
|
259814
|
-
type: "string",
|
|
259815
|
-
const: "S"
|
|
259816
|
-
},
|
|
259817
|
-
{
|
|
259818
|
-
type: "string",
|
|
259819
|
-
const: "V"
|
|
259820
|
-
}
|
|
259821
|
-
],
|
|
259822
|
-
description: "How SIIPS classifies the visit: 1 (1ra Vez), C (Control), G (General), R (Remision), S (Sesion), V (Valoracion). 1 by default."
|
|
259823
|
-
}
|
|
259824
|
-
},
|
|
259825
|
-
additionalProperties: false
|
|
259826
|
-
},
|
|
259827
|
-
VisoftAppointmentsListInput: {
|
|
259828
|
-
type: "object",
|
|
259829
|
-
required: [
|
|
259830
|
-
"date"
|
|
259831
|
-
],
|
|
259832
|
-
properties: {
|
|
259833
|
-
cursor: {
|
|
259834
|
-
type: "string",
|
|
259835
|
-
description: "Opaque cursor returned by pageInfo; omit it to request the first page."
|
|
259836
|
-
},
|
|
259837
|
-
direction: {
|
|
259838
|
-
anyOf: [
|
|
259839
|
-
{
|
|
259840
|
-
type: "string",
|
|
259841
|
-
const: "forward"
|
|
259842
|
-
},
|
|
259843
|
-
{
|
|
259844
|
-
type: "string",
|
|
259845
|
-
const: "backward"
|
|
259846
|
-
}
|
|
259847
|
-
],
|
|
259848
|
-
description: "Direction to traverse the stable keyset ordering from the supplied cursor.",
|
|
259849
|
-
default: "forward"
|
|
259850
|
-
},
|
|
259851
|
-
limit: {
|
|
259852
|
-
type: "integer",
|
|
259853
|
-
minimum: 1,
|
|
259854
|
-
maximum:
|
|
259855
|
-
description: "Maximum items returned in one page. Defaults to 25; larger reads require another cursor.",
|
|
259856
|
-
default: 25
|
|
259857
|
-
},
|
|
261993
|
+
agentMode: {
|
|
261994
|
+
type: "boolean",
|
|
261995
|
+
default: false,
|
|
261996
|
+
description: "Set agentMode=true when calling this tool for an AI agent. The answer is concise Spanish text instead of JSON. Omit it for structured machine data. This changes presentation only, never authorization, consent or idempotency."
|
|
261997
|
+
},
|
|
261998
|
+
connectionId: {
|
|
261999
|
+
type: "string",
|
|
262000
|
+
description: "Which of the organization's SURA connections to run on, by its id. Optional while the organization has one; required when it has several.",
|
|
262001
|
+
maxLength: 128,
|
|
262002
|
+
minLength: 1
|
|
262003
|
+
},
|
|
262004
|
+
channel: {
|
|
262005
|
+
anyOf: [
|
|
262006
|
+
{
|
|
262007
|
+
type: "string",
|
|
262008
|
+
const: "voice"
|
|
262009
|
+
},
|
|
262010
|
+
{
|
|
262011
|
+
type: "string",
|
|
262012
|
+
const: "whatsapp"
|
|
262013
|
+
},
|
|
262014
|
+
{
|
|
262015
|
+
type: "string",
|
|
262016
|
+
const: "web"
|
|
262017
|
+
}
|
|
262018
|
+
],
|
|
262019
|
+
description: "The channel the caller is waiting on, which sets how long it waits before an answer comes back pending, and puts a phone call's reads ahead of others. Defaults to web."
|
|
262020
|
+
}
|
|
262021
|
+
},
|
|
262022
|
+
additionalProperties: false
|
|
262023
|
+
},
|
|
262024
|
+
VisoftAppointmentReceiptsLookupInput: {
|
|
262025
|
+
type: "object",
|
|
262026
|
+
required: [
|
|
262027
|
+
"reference"
|
|
262028
|
+
],
|
|
262029
|
+
properties: {
|
|
262030
|
+
connectionId: {
|
|
262031
|
+
type: "string",
|
|
262032
|
+
minLength: 5,
|
|
262033
|
+
maxLength: 68,
|
|
262034
|
+
pattern: "^con_[0-9A-Za-z]+$",
|
|
262035
|
+
description: "The connection to run on. Optional when the organization has one Visoft connection; required when it has several. Another organization's connection is CONNECTION_NOT_FOUND."
|
|
262036
|
+
},
|
|
262037
|
+
reference: {
|
|
262038
|
+
type: "string",
|
|
262039
|
+
minLength: 1,
|
|
262040
|
+
maxLength: 300,
|
|
262041
|
+
pattern: "^[A-Za-z0-9:._-]+(?:=[A-Za-z0-9:._-]*){8,24}$",
|
|
262042
|
+
description: "The appointment's opaque reference, as visoft.appointments.list answered it."
|
|
262043
|
+
}
|
|
262044
|
+
},
|
|
262045
|
+
additionalProperties: false
|
|
262046
|
+
},
|
|
262047
|
+
VisoftAppointmentsCreateInput: {
|
|
262048
|
+
type: "object",
|
|
262049
|
+
required: [
|
|
262050
|
+
"documentNumber",
|
|
262051
|
+
"slot"
|
|
262052
|
+
],
|
|
262053
|
+
properties: {
|
|
262054
|
+
connectionId: {
|
|
262055
|
+
type: "string",
|
|
262056
|
+
minLength: 5,
|
|
262057
|
+
maxLength: 68,
|
|
262058
|
+
pattern: "^con_[0-9A-Za-z]+$",
|
|
262059
|
+
description: "The connection to run on. Optional when the organization has one Visoft connection; required when it has several. Another organization's connection is CONNECTION_NOT_FOUND."
|
|
262060
|
+
},
|
|
262061
|
+
documentType: {
|
|
262062
|
+
anyOf: [
|
|
262063
|
+
{
|
|
262064
|
+
type: "string",
|
|
262065
|
+
const: "CC"
|
|
262066
|
+
},
|
|
262067
|
+
{
|
|
262068
|
+
type: "string",
|
|
262069
|
+
const: "TI"
|
|
262070
|
+
},
|
|
262071
|
+
{
|
|
262072
|
+
type: "string",
|
|
262073
|
+
const: "RC"
|
|
262074
|
+
},
|
|
262075
|
+
{
|
|
262076
|
+
type: "string",
|
|
262077
|
+
const: "AS"
|
|
262078
|
+
},
|
|
262079
|
+
{
|
|
262080
|
+
type: "string",
|
|
262081
|
+
const: "CD"
|
|
262082
|
+
},
|
|
262083
|
+
{
|
|
262084
|
+
type: "string",
|
|
262085
|
+
const: "CE"
|
|
262086
|
+
},
|
|
262087
|
+
{
|
|
262088
|
+
type: "string",
|
|
262089
|
+
const: "DE"
|
|
262090
|
+
},
|
|
262091
|
+
{
|
|
262092
|
+
type: "string",
|
|
262093
|
+
const: "CN"
|
|
262094
|
+
},
|
|
262095
|
+
{
|
|
262096
|
+
type: "string",
|
|
262097
|
+
const: "MS"
|
|
262098
|
+
},
|
|
262099
|
+
{
|
|
262100
|
+
type: "string",
|
|
262101
|
+
const: "SC"
|
|
262102
|
+
},
|
|
262103
|
+
{
|
|
262104
|
+
type: "string",
|
|
262105
|
+
const: "PE"
|
|
262106
|
+
},
|
|
262107
|
+
{
|
|
262108
|
+
type: "string",
|
|
262109
|
+
const: "PT"
|
|
262110
|
+
},
|
|
262111
|
+
{
|
|
262112
|
+
type: "string",
|
|
262113
|
+
const: "SI"
|
|
262114
|
+
},
|
|
262115
|
+
{
|
|
262116
|
+
type: "string",
|
|
262117
|
+
const: "PA"
|
|
262118
|
+
}
|
|
262119
|
+
],
|
|
262120
|
+
description: "The document's type, as SIIPS codes it: CC (Cédula de Ciudadanía), TI (Tarjeta de Identidad), RC (Registro Civil), AS (Adulto sin Identificación), CD (Carné Diplomático), CE (Cédula de Extranjería), DE (Documento de Extranjero), CN (Certificado de Nacido Vivo), MS (Menor sin Identificación), SC (Salvoconducto), PE (Permiso Especial de Permanencia), PT (Permiso de Protección Temporal), SI (Sin Identificación), PA (Pasaporte). CC by default."
|
|
262121
|
+
},
|
|
262122
|
+
documentNumber: {
|
|
262123
|
+
type: "string",
|
|
262124
|
+
pattern: "^[A-Za-z0-9]{1,20}$",
|
|
262125
|
+
description: "The patient's document number: letters and digits only, without dots, spaces or hyphens."
|
|
262126
|
+
},
|
|
262127
|
+
slot: {
|
|
262128
|
+
type: "object",
|
|
262129
|
+
required: [
|
|
262130
|
+
"reference",
|
|
262131
|
+
"contractCode",
|
|
262132
|
+
"serviceCode"
|
|
262133
|
+
],
|
|
262134
|
+
properties: {
|
|
262135
|
+
reference: {
|
|
262136
|
+
type: "string",
|
|
262137
|
+
minLength: 7,
|
|
262138
|
+
maxLength: 200,
|
|
262139
|
+
description: "The free slot's SIIPS key, as visoft.availability.lookup answered it: pass it unchanged to visoft.appointments.create."
|
|
262140
|
+
},
|
|
262141
|
+
contractCode: {
|
|
262142
|
+
type: "string",
|
|
262143
|
+
minLength: 1,
|
|
262144
|
+
maxLength: 40,
|
|
262145
|
+
pattern: "^[A-Za-z0-9_-]+$",
|
|
262146
|
+
description: "The contract, by the code visoft.contracts.list answers."
|
|
262147
|
+
},
|
|
262148
|
+
serviceCode: {
|
|
262149
|
+
type: "string",
|
|
262150
|
+
minLength: 3,
|
|
262151
|
+
maxLength: 60,
|
|
262152
|
+
pattern: "^[A-Za-z0-9]+-[A-Za-z0-9._-]+$",
|
|
262153
|
+
description: `The service, by the code a contract's services answer ("CUPS-890208").`
|
|
262154
|
+
}
|
|
262155
|
+
},
|
|
262156
|
+
additionalProperties: false,
|
|
262157
|
+
description: "The free slot, by its reference, and the contract and service the search that found it named."
|
|
262158
|
+
},
|
|
262159
|
+
visitType: {
|
|
262160
|
+
anyOf: [
|
|
262161
|
+
{
|
|
262162
|
+
type: "string",
|
|
262163
|
+
const: "1"
|
|
262164
|
+
},
|
|
262165
|
+
{
|
|
262166
|
+
type: "string",
|
|
262167
|
+
const: "C"
|
|
262168
|
+
},
|
|
262169
|
+
{
|
|
262170
|
+
type: "string",
|
|
262171
|
+
const: "G"
|
|
262172
|
+
},
|
|
262173
|
+
{
|
|
262174
|
+
type: "string",
|
|
262175
|
+
const: "R"
|
|
262176
|
+
},
|
|
262177
|
+
{
|
|
262178
|
+
type: "string",
|
|
262179
|
+
const: "S"
|
|
262180
|
+
},
|
|
262181
|
+
{
|
|
262182
|
+
type: "string",
|
|
262183
|
+
const: "V"
|
|
262184
|
+
}
|
|
262185
|
+
],
|
|
262186
|
+
description: "How SIIPS classifies the visit: 1 (1ra Vez), C (Control), G (General), R (Remision), S (Sesion), V (Valoracion). 1 by default."
|
|
262187
|
+
}
|
|
262188
|
+
},
|
|
262189
|
+
additionalProperties: false
|
|
262190
|
+
},
|
|
262191
|
+
VisoftAppointmentsListInput: {
|
|
262192
|
+
type: "object",
|
|
262193
|
+
required: [
|
|
262194
|
+
"date"
|
|
262195
|
+
],
|
|
262196
|
+
properties: {
|
|
262197
|
+
cursor: {
|
|
262198
|
+
type: "string",
|
|
262199
|
+
description: "Opaque cursor returned by pageInfo; omit it to request the first page."
|
|
262200
|
+
},
|
|
262201
|
+
direction: {
|
|
262202
|
+
anyOf: [
|
|
262203
|
+
{
|
|
262204
|
+
type: "string",
|
|
262205
|
+
const: "forward"
|
|
262206
|
+
},
|
|
262207
|
+
{
|
|
262208
|
+
type: "string",
|
|
262209
|
+
const: "backward"
|
|
262210
|
+
}
|
|
262211
|
+
],
|
|
262212
|
+
description: "Direction to traverse the stable keyset ordering from the supplied cursor.",
|
|
262213
|
+
default: "forward"
|
|
262214
|
+
},
|
|
262215
|
+
limit: {
|
|
262216
|
+
type: "integer",
|
|
262217
|
+
minimum: 1,
|
|
262218
|
+
maximum: 500,
|
|
262219
|
+
description: "Maximum items returned in one page. Defaults to 25; larger reads require another cursor.",
|
|
262220
|
+
default: 25
|
|
262221
|
+
},
|
|
259858
262222
|
connectionId: {
|
|
259859
262223
|
type: "string",
|
|
259860
262224
|
minLength: 5,
|
|
@@ -260826,9 +263190,9 @@ var schemaComponents = {
|
|
|
260826
263190
|
// src/generated/generation.json
|
|
260827
263191
|
var generation_default = {
|
|
260828
263192
|
formatVersion: 6,
|
|
260829
|
-
release: "1.
|
|
260830
|
-
openapiSha256: "
|
|
260831
|
-
openapiContentSha256: "
|
|
263193
|
+
release: "1.20261118.42105",
|
|
263194
|
+
openapiSha256: "ead5f97302cf0be6a8565825707add74177dc90185df57878d64abdce2396650",
|
|
263195
|
+
openapiContentSha256: "f98cfd70300bba52a0443c5ad5e04e4c84abd6a0cc0024c7fa72155b3ddb21ce",
|
|
260832
263196
|
forge: {
|
|
260833
263197
|
repository: "https://github.com/cloudflare/forge",
|
|
260834
263198
|
commit: "7f86447210b7bea3779bfdab3cd5655eade0eadb",
|
|
@@ -260841,7 +263205,7 @@ var generation_default = {
|
|
|
260841
263205
|
outputs: [
|
|
260842
263206
|
{
|
|
260843
263207
|
path: "src/generated/commands.ts",
|
|
260844
|
-
sha256: "
|
|
263208
|
+
sha256: "34da3394ed556af5f436f9e355949b43a86c341084107328c64a2ac6e033d756"
|
|
260845
263209
|
}
|
|
260846
263210
|
]
|
|
260847
263211
|
};
|
|
@@ -262441,7 +264805,7 @@ ${name}`);
|
|
|
262441
264805
|
}
|
|
262442
264806
|
|
|
262443
264807
|
// src/index.ts
|
|
262444
|
-
var VERSION = "3.
|
|
264808
|
+
var VERSION = "3.64.0";
|
|
262445
264809
|
var RELEASE = generation_default.release;
|
|
262446
264810
|
var commands2 = { ...commands, ...accountOperatorCommands };
|
|
262447
264811
|
var SDK_PATHS = new Map(Object.values(commands2).map((command) => [command.operation, command.sdkPath]));
|
|
@@ -262472,6 +264836,10 @@ Auth
|
|
|
262472
264836
|
Operations
|
|
262473
264837
|
<service> <resource> <verb> Run one; arbol <service> lists its commands
|
|
262474
264838
|
|
|
264839
|
+
Your organization's own servers (a person's login, never an API key; arbol connections --help)
|
|
264840
|
+
connections tools list <connectionId> The tools a connection offers
|
|
264841
|
+
connections tools run <connectionId> <tool> Run one, with --arguments <json> or --input <file|->
|
|
264842
|
+
|
|
262475
264843
|
Services
|
|
262476
264844
|
${SERVICES.join(", ")}
|
|
262477
264845
|
|
|
@@ -262637,6 +265005,7 @@ Run one with --help to see its fields.
|
|
|
262637
265005
|
async function main(argv, { root, keys } = {}) {
|
|
262638
265006
|
const words = commandWords(parseArgs({ args: argv, allowPositionals: true, strict: false, options: GLOBAL }).positionals);
|
|
262639
265007
|
const found = words[0] === "auth" ? null : findCommand(words);
|
|
265008
|
+
const servers = words[0] === CONNECTIONS;
|
|
262640
265009
|
const fieldOptions = Object.fromEntries((found?.command.fields ?? []).map((field) => [field.flag, { type: "string" }]));
|
|
262641
265010
|
let parsed;
|
|
262642
265011
|
try {
|
|
@@ -262644,7 +265013,7 @@ async function main(argv, { root, keys } = {}) {
|
|
|
262644
265013
|
args: argv,
|
|
262645
265014
|
allowPositionals: true,
|
|
262646
265015
|
strict: true,
|
|
262647
|
-
options: { ...GLOBAL, ...fieldOptions }
|
|
265016
|
+
options: { ...GLOBAL, ...fieldOptions, ...servers ? CONNECTION_FLAGS : {} }
|
|
262648
265017
|
});
|
|
262649
265018
|
} catch (error) {
|
|
262650
265019
|
throw new UsageError(`${error instanceof Error ? error.message : String(error)}
|
|
@@ -262662,7 +265031,7 @@ Run arbol --help.`);
|
|
|
262662
265031
|
process.stdout.write(listing);
|
|
262663
265032
|
return;
|
|
262664
265033
|
}
|
|
262665
|
-
if (!positionals.length || values.help && !found || positionals[0] === "auth" && positionals.length === 1) {
|
|
265034
|
+
if (!positionals.length || values.help && !found && !servers || positionals[0] === "auth" && positionals.length === 1) {
|
|
262666
265035
|
process.stdout.write(HELP);
|
|
262667
265036
|
return;
|
|
262668
265037
|
}
|
|
@@ -262698,6 +265067,18 @@ Run arbol --help.`);
|
|
|
262698
265067
|
if (machine && values.profile) {
|
|
262699
265068
|
throw new UsageError("An API key from --api-key-stdin or ARBOL_API_KEY and --profile both name a credential");
|
|
262700
265069
|
}
|
|
265070
|
+
if (servers) {
|
|
265071
|
+
const flags = {
|
|
265072
|
+
arguments: values.arguments,
|
|
265073
|
+
dryRun: values["dry-run"],
|
|
265074
|
+
help: values.help,
|
|
265075
|
+
input: values.input,
|
|
265076
|
+
json: values.json,
|
|
265077
|
+
noBrowser: values["no-browser"]
|
|
265078
|
+
};
|
|
265079
|
+
await connectionCommand(positionals, flags, { machine, selected, required, credentialsFor });
|
|
265080
|
+
return;
|
|
265081
|
+
}
|
|
262701
265082
|
if (positionals[0] === "auth") {
|
|
262702
265083
|
const action = positionals[1];
|
|
262703
265084
|
if (values.input || values["api-key-stdin"]) {
|
|
@@ -263048,6 +265429,84 @@ Services: ${SERVICES.join(", ")}. Run arbol --help.`);
|
|
|
263048
265429
|
`);
|
|
263049
265430
|
}
|
|
263050
265431
|
}
|
|
265432
|
+
var PERSON_ONLY = "Organization servers take a person's login (arbol auth login): the API refuses API keys on these routes";
|
|
265433
|
+
var CONNECTIONS_USAGE = `Usage:
|
|
265434
|
+
arbol connections tools list <connectionId>
|
|
265435
|
+
arbol connections tools run <connectionId> <tool> [--arguments <json> | --input <file|->]
|
|
265436
|
+
Run arbol connections --help.`;
|
|
265437
|
+
async function toolArguments(flags) {
|
|
265438
|
+
const text = flags.arguments ?? (flags.input === undefined ? "{}" : await readInput(flags.input));
|
|
265439
|
+
let value;
|
|
265440
|
+
try {
|
|
265441
|
+
value = JSON.parse(text);
|
|
265442
|
+
} catch {
|
|
265443
|
+
throw new UsageError("The arguments must be one JSON object");
|
|
265444
|
+
}
|
|
265445
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
265446
|
+
throw new UsageError("The arguments must be one JSON object");
|
|
265447
|
+
}
|
|
265448
|
+
return value;
|
|
265449
|
+
}
|
|
265450
|
+
async function connectionCommand(positionals, flags, access) {
|
|
265451
|
+
const [, resource, verb, connectionId, tool, ...extra] = positionals;
|
|
265452
|
+
if (flags.help || resource === undefined) {
|
|
265453
|
+
process.stdout.write(CONNECTIONS_HELP);
|
|
265454
|
+
return;
|
|
265455
|
+
}
|
|
265456
|
+
const list = verb === "list" && tool === undefined;
|
|
265457
|
+
const run = verb === "run" && tool !== undefined && extra.length === 0;
|
|
265458
|
+
if (resource !== "tools" || connectionId === undefined || !(list || run)) {
|
|
265459
|
+
throw new UsageError(CONNECTIONS_USAGE);
|
|
265460
|
+
}
|
|
265461
|
+
if (!validSegment(connectionId) || tool !== undefined && !validSegment(tool)) {
|
|
265462
|
+
throw new UsageError("A connection id and a tool name are one path segment each: no spaces, /, \\, ? or #");
|
|
265463
|
+
}
|
|
265464
|
+
if (flags.json) {
|
|
265465
|
+
throw new UsageError("--json applies to arbol auth status; these commands always print JSON");
|
|
265466
|
+
}
|
|
265467
|
+
if (flags.noBrowser) {
|
|
265468
|
+
throw new UsageError("--no-browser applies only to arbol auth login and arbol auth switch");
|
|
265469
|
+
}
|
|
265470
|
+
if (access.machine) {
|
|
265471
|
+
throw new UsageError(`${PERSON_ONLY}; unset ARBOL_API_KEY or drop --api-key-stdin`);
|
|
265472
|
+
}
|
|
265473
|
+
if (list && (flags.arguments !== undefined || flags.input !== undefined)) {
|
|
265474
|
+
throw new UsageError("arbol connections tools list takes no arguments");
|
|
265475
|
+
}
|
|
265476
|
+
if (flags.arguments !== undefined && flags.input !== undefined) {
|
|
265477
|
+
throw new UsageError("Give the arguments once: --arguments or --input");
|
|
265478
|
+
}
|
|
265479
|
+
const args = run ? await toolArguments(flags) : {};
|
|
265480
|
+
if (flags.dryRun) {
|
|
265481
|
+
const chosen = await access.selected();
|
|
265482
|
+
const api = chosen ? apiOf(chosen.profile) : chosenApi();
|
|
265483
|
+
const request = tool === undefined ? toolsListRequest(api, connectionId) : toolRunRequest(api, connectionId, tool, args);
|
|
265484
|
+
process.stdout.write(`${JSON.stringify(request, null, 2)}
|
|
265485
|
+
`);
|
|
265486
|
+
return;
|
|
265487
|
+
}
|
|
265488
|
+
const { name, profile } = await access.required();
|
|
265489
|
+
if (profile.kind !== "login") {
|
|
265490
|
+
throw new UsageError(`Profile ${name} holds an API key. ${PERSON_ONLY}`);
|
|
265491
|
+
}
|
|
265492
|
+
const { api } = profile.auth;
|
|
265493
|
+
if (process.env.ARBOL_API_URL && chosenApi() !== api) {
|
|
265494
|
+
throw new UsageError(`Profile ${name} is for ${api}, not ${chosenApi()} (ARBOL_API_URL)`);
|
|
265495
|
+
}
|
|
265496
|
+
const token = await accessToken(access.credentialsFor(name, profile.auth));
|
|
265497
|
+
if (tool === undefined) {
|
|
265498
|
+
const tools = await listConnectionTools(api, token, connectionId);
|
|
265499
|
+
process.stdout.write(`${JSON.stringify(tools, null, 2)}
|
|
265500
|
+
`);
|
|
265501
|
+
return;
|
|
265502
|
+
}
|
|
265503
|
+
const { data, requestId } = await runConnectionTool(api, token, connectionId, tool, args);
|
|
265504
|
+
process.stdout.write(`${JSON.stringify(data, null, 2)}
|
|
265505
|
+
`);
|
|
265506
|
+
if (data && typeof data === "object" && data.isError === true) {
|
|
265507
|
+
throw new ConnectionRefusal("TOOL_REFUSED", "The server refused this call; its answer is above", requestId);
|
|
265508
|
+
}
|
|
265509
|
+
}
|
|
263051
265510
|
async function call(client, name, input) {
|
|
263052
265511
|
const method = SDK_PATHS.get(name)?.reduce((node, key) => node?.[key], client);
|
|
263053
265512
|
if (typeof method !== "function") {
|