@arbol-ai/cli 3.63.0 → 3.65.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 +3458 -225
- 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: [
|
|
@@ -18207,6 +18664,158 @@ var commands = {
|
|
|
18207
18664
|
confirmation: null,
|
|
18208
18665
|
hidden: false
|
|
18209
18666
|
},
|
|
18667
|
+
"pijaossalud affiliations lookup": {
|
|
18668
|
+
operation: "pijaos-salud.affiliations.lookup",
|
|
18669
|
+
sdkPath: [
|
|
18670
|
+
"pijaosSalud",
|
|
18671
|
+
"affiliations",
|
|
18672
|
+
"lookup"
|
|
18673
|
+
],
|
|
18674
|
+
pathField: null,
|
|
18675
|
+
fields: [
|
|
18676
|
+
{
|
|
18677
|
+
name: "connectionId",
|
|
18678
|
+
flag: "connection-id",
|
|
18679
|
+
kind: "string",
|
|
18680
|
+
required: true,
|
|
18681
|
+
description: ""
|
|
18682
|
+
},
|
|
18683
|
+
{
|
|
18684
|
+
name: "documentType",
|
|
18685
|
+
flag: "document-type",
|
|
18686
|
+
kind: "string",
|
|
18687
|
+
required: true,
|
|
18688
|
+
description: "",
|
|
18689
|
+
choices: [
|
|
18690
|
+
"NI",
|
|
18691
|
+
"CC",
|
|
18692
|
+
"MS",
|
|
18693
|
+
"RC",
|
|
18694
|
+
"TI",
|
|
18695
|
+
"CE",
|
|
18696
|
+
"PA",
|
|
18697
|
+
"AS",
|
|
18698
|
+
"CD",
|
|
18699
|
+
"CN",
|
|
18700
|
+
"SC",
|
|
18701
|
+
"PE",
|
|
18702
|
+
"PT",
|
|
18703
|
+
"DE",
|
|
18704
|
+
"OT"
|
|
18705
|
+
]
|
|
18706
|
+
},
|
|
18707
|
+
{
|
|
18708
|
+
name: "maxAgeDays",
|
|
18709
|
+
flag: "max-age-days",
|
|
18710
|
+
kind: "integer",
|
|
18711
|
+
required: false,
|
|
18712
|
+
description: "Maximum age in days of a result from this IPS connection. Zero contacts the provider and refreshes the saved result.",
|
|
18713
|
+
default: 7
|
|
18714
|
+
},
|
|
18715
|
+
{
|
|
18716
|
+
name: "documentNumber",
|
|
18717
|
+
flag: "document-number",
|
|
18718
|
+
kind: "string",
|
|
18719
|
+
required: true,
|
|
18720
|
+
description: ""
|
|
18721
|
+
}
|
|
18722
|
+
],
|
|
18723
|
+
inputSchema: {
|
|
18724
|
+
type: "object",
|
|
18725
|
+
required: [
|
|
18726
|
+
"connectionId",
|
|
18727
|
+
"documentType",
|
|
18728
|
+
"documentNumber"
|
|
18729
|
+
],
|
|
18730
|
+
properties: {
|
|
18731
|
+
connectionId: {
|
|
18732
|
+
type: "string",
|
|
18733
|
+
pattern: "^con_[0-9A-Za-z]{26}$"
|
|
18734
|
+
},
|
|
18735
|
+
documentType: {
|
|
18736
|
+
anyOf: [
|
|
18737
|
+
{
|
|
18738
|
+
type: "string",
|
|
18739
|
+
const: "NI"
|
|
18740
|
+
},
|
|
18741
|
+
{
|
|
18742
|
+
type: "string",
|
|
18743
|
+
const: "CC"
|
|
18744
|
+
},
|
|
18745
|
+
{
|
|
18746
|
+
type: "string",
|
|
18747
|
+
const: "MS"
|
|
18748
|
+
},
|
|
18749
|
+
{
|
|
18750
|
+
type: "string",
|
|
18751
|
+
const: "RC"
|
|
18752
|
+
},
|
|
18753
|
+
{
|
|
18754
|
+
type: "string",
|
|
18755
|
+
const: "TI"
|
|
18756
|
+
},
|
|
18757
|
+
{
|
|
18758
|
+
type: "string",
|
|
18759
|
+
const: "CE"
|
|
18760
|
+
},
|
|
18761
|
+
{
|
|
18762
|
+
type: "string",
|
|
18763
|
+
const: "PA"
|
|
18764
|
+
},
|
|
18765
|
+
{
|
|
18766
|
+
type: "string",
|
|
18767
|
+
const: "AS"
|
|
18768
|
+
},
|
|
18769
|
+
{
|
|
18770
|
+
type: "string",
|
|
18771
|
+
const: "CD"
|
|
18772
|
+
},
|
|
18773
|
+
{
|
|
18774
|
+
type: "string",
|
|
18775
|
+
const: "CN"
|
|
18776
|
+
},
|
|
18777
|
+
{
|
|
18778
|
+
type: "string",
|
|
18779
|
+
const: "SC"
|
|
18780
|
+
},
|
|
18781
|
+
{
|
|
18782
|
+
type: "string",
|
|
18783
|
+
const: "PE"
|
|
18784
|
+
},
|
|
18785
|
+
{
|
|
18786
|
+
type: "string",
|
|
18787
|
+
const: "PT"
|
|
18788
|
+
},
|
|
18789
|
+
{
|
|
18790
|
+
type: "string",
|
|
18791
|
+
const: "DE"
|
|
18792
|
+
},
|
|
18793
|
+
{
|
|
18794
|
+
type: "string",
|
|
18795
|
+
const: "OT"
|
|
18796
|
+
}
|
|
18797
|
+
]
|
|
18798
|
+
},
|
|
18799
|
+
maxAgeDays: {
|
|
18800
|
+
type: "integer",
|
|
18801
|
+
minimum: 0,
|
|
18802
|
+
maximum: 30,
|
|
18803
|
+
default: 7,
|
|
18804
|
+
description: "Maximum age in days of a result from this IPS connection. Zero contacts the provider and refreshes the saved result."
|
|
18805
|
+
},
|
|
18806
|
+
documentNumber: {
|
|
18807
|
+
type: "string",
|
|
18808
|
+
pattern: "^[A-Za-z0-9-]{1,40}$"
|
|
18809
|
+
}
|
|
18810
|
+
},
|
|
18811
|
+
additionalProperties: false
|
|
18812
|
+
},
|
|
18813
|
+
title: "Look up affiliation",
|
|
18814
|
+
description: "Read the affiliation status for one document through the organization’s active Pijaos Salud connection. An unconfirmed identity leaves affiliation unknown.",
|
|
18815
|
+
effect: "read",
|
|
18816
|
+
confirmation: null,
|
|
18817
|
+
hidden: false
|
|
18818
|
+
},
|
|
18210
18819
|
"policiacolombia judicial-records lookup": {
|
|
18211
18820
|
operation: "policia-colombia.judicialRecords.lookup",
|
|
18212
18821
|
sdkPath: [
|
|
@@ -18433,7 +19042,7 @@ var commands = {
|
|
|
18433
19042
|
items: {
|
|
18434
19043
|
$ref: "#/components/schemas/RaizAgentIntegrationToolInput"
|
|
18435
19044
|
},
|
|
18436
|
-
description: "The integrations' tools the Agent may call, each on one of the organization's connections (`listConnections`, checked live in Account).
|
|
19045
|
+
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
19046
|
maxItems: 200
|
|
18438
19047
|
},
|
|
18439
19048
|
knowledgeDocumentIds: {
|
|
@@ -18887,7 +19496,7 @@ var commands = {
|
|
|
18887
19496
|
items: {
|
|
18888
19497
|
$ref: "#/components/schemas/RaizAgentIntegrationToolInput"
|
|
18889
19498
|
},
|
|
18890
|
-
description: "The integrations' tools the Agent may call, each on one of the organization's connections (`listConnections`, checked live in Account).
|
|
19499
|
+
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
19500
|
maxItems: 200
|
|
18892
19501
|
},
|
|
18893
19502
|
knowledgeDocumentIds: {
|
|
@@ -26416,6 +27025,10 @@ var commands = {
|
|
|
26416
27025
|
type: "string",
|
|
26417
27026
|
const: "outage-resolved"
|
|
26418
27027
|
},
|
|
27028
|
+
{
|
|
27029
|
+
type: "string",
|
|
27030
|
+
const: "spam-blocked"
|
|
27031
|
+
},
|
|
26419
27032
|
{
|
|
26420
27033
|
type: "string",
|
|
26421
27034
|
const: "template-approved"
|
|
@@ -26432,7 +27045,7 @@ var commands = {
|
|
|
26432
27045
|
},
|
|
26433
27046
|
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
27047
|
uniqueItems: true,
|
|
26435
|
-
maxItems:
|
|
27048
|
+
maxItems: 18
|
|
26436
27049
|
},
|
|
26437
27050
|
{
|
|
26438
27051
|
type: "null"
|
|
@@ -26591,6 +27204,149 @@ var commands = {
|
|
|
26591
27204
|
},
|
|
26592
27205
|
additionalProperties: false
|
|
26593
27206
|
},
|
|
27207
|
+
protection: {
|
|
27208
|
+
type: "object",
|
|
27209
|
+
properties: {
|
|
27210
|
+
spamHours: {
|
|
27211
|
+
anyOf: [
|
|
27212
|
+
{
|
|
27213
|
+
type: "integer",
|
|
27214
|
+
description: "Hours someone stays in spam once they pass a limit (default 6). A person can lift the rule earlier by deleting it.",
|
|
27215
|
+
maximum: 720,
|
|
27216
|
+
minimum: 1
|
|
27217
|
+
},
|
|
27218
|
+
{
|
|
27219
|
+
type: "null"
|
|
27220
|
+
}
|
|
27221
|
+
]
|
|
27222
|
+
},
|
|
27223
|
+
voiceCallsPerHour: {
|
|
27224
|
+
anyOf: [
|
|
27225
|
+
{
|
|
27226
|
+
type: "integer",
|
|
27227
|
+
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.",
|
|
27228
|
+
maximum: 1000,
|
|
27229
|
+
minimum: 1
|
|
27230
|
+
},
|
|
27231
|
+
{
|
|
27232
|
+
type: "null"
|
|
27233
|
+
}
|
|
27234
|
+
]
|
|
27235
|
+
},
|
|
27236
|
+
voiceEnabled: {
|
|
27237
|
+
anyOf: [
|
|
27238
|
+
{
|
|
27239
|
+
type: "boolean",
|
|
27240
|
+
description: "Whether callers can fall into spam (default true). False: no call is ever refused for what its number consumed."
|
|
27241
|
+
},
|
|
27242
|
+
{
|
|
27243
|
+
type: "null"
|
|
27244
|
+
}
|
|
27245
|
+
]
|
|
27246
|
+
},
|
|
27247
|
+
voiceMinutesPerDay: {
|
|
27248
|
+
anyOf: [
|
|
27249
|
+
{
|
|
27250
|
+
type: "integer",
|
|
27251
|
+
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.",
|
|
27252
|
+
maximum: 1440,
|
|
27253
|
+
minimum: 1
|
|
27254
|
+
},
|
|
27255
|
+
{
|
|
27256
|
+
type: "null"
|
|
27257
|
+
}
|
|
27258
|
+
]
|
|
27259
|
+
},
|
|
27260
|
+
voiceSilentCallsPerHour: {
|
|
27261
|
+
anyOf: [
|
|
27262
|
+
{
|
|
27263
|
+
type: "integer",
|
|
27264
|
+
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.",
|
|
27265
|
+
maximum: 1000,
|
|
27266
|
+
minimum: 1
|
|
27267
|
+
},
|
|
27268
|
+
{
|
|
27269
|
+
type: "null"
|
|
27270
|
+
}
|
|
27271
|
+
]
|
|
27272
|
+
},
|
|
27273
|
+
webConversationTokens: {
|
|
27274
|
+
anyOf: [
|
|
27275
|
+
{
|
|
27276
|
+
type: "integer",
|
|
27277
|
+
description: "Tokens one web conversation may use (default 10000000). A conversation that reaches it takes no more messages.",
|
|
27278
|
+
maximum: 1000000000000,
|
|
27279
|
+
minimum: 1e4
|
|
27280
|
+
},
|
|
27281
|
+
{
|
|
27282
|
+
type: "null"
|
|
27283
|
+
}
|
|
27284
|
+
]
|
|
27285
|
+
},
|
|
27286
|
+
webEnabled: {
|
|
27287
|
+
anyOf: [
|
|
27288
|
+
{
|
|
27289
|
+
type: "boolean",
|
|
27290
|
+
description: "Whether web chat visitors can fall into spam (default true)."
|
|
27291
|
+
},
|
|
27292
|
+
{
|
|
27293
|
+
type: "null"
|
|
27294
|
+
}
|
|
27295
|
+
]
|
|
27296
|
+
},
|
|
27297
|
+
webMessagesPerDay: {
|
|
27298
|
+
anyOf: [
|
|
27299
|
+
{
|
|
27300
|
+
type: "integer",
|
|
27301
|
+
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.",
|
|
27302
|
+
maximum: 1e5,
|
|
27303
|
+
minimum: 1
|
|
27304
|
+
},
|
|
27305
|
+
{
|
|
27306
|
+
type: "null"
|
|
27307
|
+
}
|
|
27308
|
+
]
|
|
27309
|
+
},
|
|
27310
|
+
whatsappConversationTokens: {
|
|
27311
|
+
anyOf: [
|
|
27312
|
+
{
|
|
27313
|
+
type: "integer",
|
|
27314
|
+
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.",
|
|
27315
|
+
maximum: 1000000000000,
|
|
27316
|
+
minimum: 1e4
|
|
27317
|
+
},
|
|
27318
|
+
{
|
|
27319
|
+
type: "null"
|
|
27320
|
+
}
|
|
27321
|
+
]
|
|
27322
|
+
},
|
|
27323
|
+
whatsappEnabled: {
|
|
27324
|
+
anyOf: [
|
|
27325
|
+
{
|
|
27326
|
+
type: "boolean",
|
|
27327
|
+
description: "Whether WhatsApp contacts can fall into spam (default true)."
|
|
27328
|
+
},
|
|
27329
|
+
{
|
|
27330
|
+
type: "null"
|
|
27331
|
+
}
|
|
27332
|
+
]
|
|
27333
|
+
},
|
|
27334
|
+
whatsappRepliesPerHour: {
|
|
27335
|
+
anyOf: [
|
|
27336
|
+
{
|
|
27337
|
+
type: "integer",
|
|
27338
|
+
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.",
|
|
27339
|
+
maximum: 1e4,
|
|
27340
|
+
minimum: 1
|
|
27341
|
+
},
|
|
27342
|
+
{
|
|
27343
|
+
type: "null"
|
|
27344
|
+
}
|
|
27345
|
+
]
|
|
27346
|
+
}
|
|
27347
|
+
},
|
|
27348
|
+
additionalProperties: false
|
|
27349
|
+
},
|
|
26594
27350
|
whatsapp: {
|
|
26595
27351
|
type: "object",
|
|
26596
27352
|
properties: {
|
|
@@ -36033,6 +36789,179 @@ var schemaComponents = {
|
|
|
36033
36789
|
},
|
|
36034
36790
|
maxItems: 200
|
|
36035
36791
|
},
|
|
36792
|
+
heldTools: {
|
|
36793
|
+
type: "array",
|
|
36794
|
+
items: {
|
|
36795
|
+
type: "object",
|
|
36796
|
+
required: [
|
|
36797
|
+
"name",
|
|
36798
|
+
"description",
|
|
36799
|
+
"input",
|
|
36800
|
+
"effect"
|
|
36801
|
+
],
|
|
36802
|
+
properties: {
|
|
36803
|
+
runtimeInputs: {
|
|
36804
|
+
type: "array",
|
|
36805
|
+
items: {
|
|
36806
|
+
anyOf: [
|
|
36807
|
+
{
|
|
36808
|
+
type: "string",
|
|
36809
|
+
const: "connectionId"
|
|
36810
|
+
},
|
|
36811
|
+
{
|
|
36812
|
+
type: "string",
|
|
36813
|
+
const: "channel"
|
|
36814
|
+
},
|
|
36815
|
+
{
|
|
36816
|
+
type: "string",
|
|
36817
|
+
const: "conversationUrl"
|
|
36818
|
+
},
|
|
36819
|
+
{
|
|
36820
|
+
type: "string",
|
|
36821
|
+
const: "verifiedContact"
|
|
36822
|
+
},
|
|
36823
|
+
{
|
|
36824
|
+
type: "string",
|
|
36825
|
+
const: "outboundRecipient"
|
|
36826
|
+
}
|
|
36827
|
+
]
|
|
36828
|
+
},
|
|
36829
|
+
maxItems: 5
|
|
36830
|
+
},
|
|
36831
|
+
name: {
|
|
36832
|
+
type: "string",
|
|
36833
|
+
minLength: 1,
|
|
36834
|
+
maxLength: 64,
|
|
36835
|
+
description: "The tool name an agent calls: the MCP tool name, or the OpenAPI operationId."
|
|
36836
|
+
},
|
|
36837
|
+
operation: {
|
|
36838
|
+
type: "string",
|
|
36839
|
+
maxLength: 200,
|
|
36840
|
+
description: "The published operation (arbol only): sura.appointments.create."
|
|
36841
|
+
},
|
|
36842
|
+
description: {
|
|
36843
|
+
type: "string",
|
|
36844
|
+
maxLength: 8000
|
|
36845
|
+
},
|
|
36846
|
+
input: {
|
|
36847
|
+
type: "object",
|
|
36848
|
+
patternProperties: {
|
|
36849
|
+
"^.*$": {}
|
|
36850
|
+
},
|
|
36851
|
+
description: "The tool's input, as a JSON Schema object."
|
|
36852
|
+
},
|
|
36853
|
+
effect: {
|
|
36854
|
+
anyOf: [
|
|
36855
|
+
{
|
|
36856
|
+
type: "string",
|
|
36857
|
+
const: "read"
|
|
36858
|
+
},
|
|
36859
|
+
{
|
|
36860
|
+
type: "string",
|
|
36861
|
+
const: "write"
|
|
36862
|
+
}
|
|
36863
|
+
],
|
|
36864
|
+
description: "read changes nothing; write may."
|
|
36865
|
+
},
|
|
36866
|
+
rpcMethod: {
|
|
36867
|
+
anyOf: [
|
|
36868
|
+
{
|
|
36869
|
+
type: "string",
|
|
36870
|
+
minLength: 1,
|
|
36871
|
+
maxLength: 128
|
|
36872
|
+
},
|
|
36873
|
+
{
|
|
36874
|
+
type: "null"
|
|
36875
|
+
}
|
|
36876
|
+
],
|
|
36877
|
+
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."
|
|
36878
|
+
},
|
|
36879
|
+
writesThrough: {
|
|
36880
|
+
type: "array",
|
|
36881
|
+
items: {
|
|
36882
|
+
type: "string",
|
|
36883
|
+
pattern: "^[a-z][a-z0-9-]{1,63}$"
|
|
36884
|
+
},
|
|
36885
|
+
maxItems: 10,
|
|
36886
|
+
description: "The Arbol integrations this tool writes through (custom only): Raíz fences them jointly."
|
|
36887
|
+
},
|
|
36888
|
+
rest: {
|
|
36889
|
+
type: "object",
|
|
36890
|
+
required: [
|
|
36891
|
+
"method",
|
|
36892
|
+
"path"
|
|
36893
|
+
],
|
|
36894
|
+
properties: {
|
|
36895
|
+
method: {
|
|
36896
|
+
anyOf: [
|
|
36897
|
+
{
|
|
36898
|
+
type: "string",
|
|
36899
|
+
const: "GET"
|
|
36900
|
+
},
|
|
36901
|
+
{
|
|
36902
|
+
type: "string",
|
|
36903
|
+
const: "POST"
|
|
36904
|
+
},
|
|
36905
|
+
{
|
|
36906
|
+
type: "string",
|
|
36907
|
+
const: "PUT"
|
|
36908
|
+
},
|
|
36909
|
+
{
|
|
36910
|
+
type: "string",
|
|
36911
|
+
const: "PATCH"
|
|
36912
|
+
},
|
|
36913
|
+
{
|
|
36914
|
+
type: "string",
|
|
36915
|
+
const: "DELETE"
|
|
36916
|
+
}
|
|
36917
|
+
]
|
|
36918
|
+
},
|
|
36919
|
+
path: {
|
|
36920
|
+
type: "string",
|
|
36921
|
+
maxLength: 1000
|
|
36922
|
+
}
|
|
36923
|
+
},
|
|
36924
|
+
additionalProperties: false,
|
|
36925
|
+
description: "The REST request the tool is: its method and path template."
|
|
36926
|
+
},
|
|
36927
|
+
capabilities: {
|
|
36928
|
+
type: "object",
|
|
36929
|
+
required: [
|
|
36930
|
+
"match",
|
|
36931
|
+
"scopes"
|
|
36932
|
+
],
|
|
36933
|
+
properties: {
|
|
36934
|
+
match: {
|
|
36935
|
+
anyOf: [
|
|
36936
|
+
{
|
|
36937
|
+
type: "string",
|
|
36938
|
+
const: "any"
|
|
36939
|
+
},
|
|
36940
|
+
{
|
|
36941
|
+
type: "string",
|
|
36942
|
+
const: "all"
|
|
36943
|
+
}
|
|
36944
|
+
]
|
|
36945
|
+
},
|
|
36946
|
+
scopes: {
|
|
36947
|
+
type: "array",
|
|
36948
|
+
items: {
|
|
36949
|
+
type: "string",
|
|
36950
|
+
minLength: 1,
|
|
36951
|
+
maxLength: 128
|
|
36952
|
+
},
|
|
36953
|
+
maxItems: 20
|
|
36954
|
+
}
|
|
36955
|
+
},
|
|
36956
|
+
additionalProperties: false,
|
|
36957
|
+
description: "The scopes its caller needs (arbol only), as the release admits it: any one of them, or all."
|
|
36958
|
+
}
|
|
36959
|
+
},
|
|
36960
|
+
additionalProperties: false
|
|
36961
|
+
},
|
|
36962
|
+
maxItems: 200,
|
|
36963
|
+
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."
|
|
36964
|
+
},
|
|
36036
36965
|
skills: {
|
|
36037
36966
|
type: "array",
|
|
36038
36967
|
items: {
|
|
@@ -36281,6 +37210,130 @@ var schemaComponents = {
|
|
|
36281
37210
|
},
|
|
36282
37211
|
additionalProperties: false
|
|
36283
37212
|
},
|
|
37213
|
+
AccountConnectionNameTakenError: {
|
|
37214
|
+
type: "object",
|
|
37215
|
+
description: "A failed answer.",
|
|
37216
|
+
additionalProperties: false,
|
|
37217
|
+
required: [
|
|
37218
|
+
"success",
|
|
37219
|
+
"data",
|
|
37220
|
+
"error",
|
|
37221
|
+
"metadata"
|
|
37222
|
+
],
|
|
37223
|
+
properties: {
|
|
37224
|
+
success: {
|
|
37225
|
+
type: "boolean",
|
|
37226
|
+
enum: [
|
|
37227
|
+
false
|
|
37228
|
+
]
|
|
37229
|
+
},
|
|
37230
|
+
data: {
|
|
37231
|
+
const: null
|
|
37232
|
+
},
|
|
37233
|
+
error: {
|
|
37234
|
+
$ref: "#/components/schemas/AccountConnectionNameTakenFailure"
|
|
37235
|
+
},
|
|
37236
|
+
metadata: {
|
|
37237
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
37238
|
+
}
|
|
37239
|
+
}
|
|
37240
|
+
},
|
|
37241
|
+
AccountConnectionNameTakenFailure: {
|
|
37242
|
+
type: "object",
|
|
37243
|
+
description: "Another connection of this integration already has this name.",
|
|
37244
|
+
additionalProperties: false,
|
|
37245
|
+
required: [
|
|
37246
|
+
"code",
|
|
37247
|
+
"message",
|
|
37248
|
+
"retryable",
|
|
37249
|
+
"data"
|
|
37250
|
+
],
|
|
37251
|
+
properties: {
|
|
37252
|
+
code: {
|
|
37253
|
+
type: "string",
|
|
37254
|
+
enum: [
|
|
37255
|
+
"CONNECTION_NAME_TAKEN"
|
|
37256
|
+
],
|
|
37257
|
+
description: "The failure code, stable across releases."
|
|
37258
|
+
},
|
|
37259
|
+
message: {
|
|
37260
|
+
type: "string",
|
|
37261
|
+
description: "What went wrong, for people; it never contains input values."
|
|
37262
|
+
},
|
|
37263
|
+
retryable: {
|
|
37264
|
+
type: "boolean",
|
|
37265
|
+
enum: [
|
|
37266
|
+
false
|
|
37267
|
+
],
|
|
37268
|
+
description: "Whether repeating the same request may succeed."
|
|
37269
|
+
},
|
|
37270
|
+
data: {
|
|
37271
|
+
$ref: "#/components/schemas/Empty"
|
|
37272
|
+
}
|
|
37273
|
+
}
|
|
37274
|
+
},
|
|
37275
|
+
AccountConnectionNotFoundError: {
|
|
37276
|
+
type: "object",
|
|
37277
|
+
description: "A failed answer.",
|
|
37278
|
+
additionalProperties: false,
|
|
37279
|
+
required: [
|
|
37280
|
+
"success",
|
|
37281
|
+
"data",
|
|
37282
|
+
"error",
|
|
37283
|
+
"metadata"
|
|
37284
|
+
],
|
|
37285
|
+
properties: {
|
|
37286
|
+
success: {
|
|
37287
|
+
type: "boolean",
|
|
37288
|
+
enum: [
|
|
37289
|
+
false
|
|
37290
|
+
]
|
|
37291
|
+
},
|
|
37292
|
+
data: {
|
|
37293
|
+
const: null
|
|
37294
|
+
},
|
|
37295
|
+
error: {
|
|
37296
|
+
$ref: "#/components/schemas/AccountConnectionNotFoundFailure"
|
|
37297
|
+
},
|
|
37298
|
+
metadata: {
|
|
37299
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
37300
|
+
}
|
|
37301
|
+
}
|
|
37302
|
+
},
|
|
37303
|
+
AccountConnectionNotFoundFailure: {
|
|
37304
|
+
type: "object",
|
|
37305
|
+
description: "This connection does not exist.",
|
|
37306
|
+
additionalProperties: false,
|
|
37307
|
+
required: [
|
|
37308
|
+
"code",
|
|
37309
|
+
"message",
|
|
37310
|
+
"retryable",
|
|
37311
|
+
"data"
|
|
37312
|
+
],
|
|
37313
|
+
properties: {
|
|
37314
|
+
code: {
|
|
37315
|
+
type: "string",
|
|
37316
|
+
enum: [
|
|
37317
|
+
"CONNECTION_NOT_FOUND"
|
|
37318
|
+
],
|
|
37319
|
+
description: "The failure code, stable across releases."
|
|
37320
|
+
},
|
|
37321
|
+
message: {
|
|
37322
|
+
type: "string",
|
|
37323
|
+
description: "What went wrong, for people; it never contains input values."
|
|
37324
|
+
},
|
|
37325
|
+
retryable: {
|
|
37326
|
+
type: "boolean",
|
|
37327
|
+
enum: [
|
|
37328
|
+
false
|
|
37329
|
+
],
|
|
37330
|
+
description: "Whether repeating the same request may succeed."
|
|
37331
|
+
},
|
|
37332
|
+
data: {
|
|
37333
|
+
$ref: "#/components/schemas/Empty"
|
|
37334
|
+
}
|
|
37335
|
+
}
|
|
37336
|
+
},
|
|
36284
37337
|
AccountConnectionPage: {
|
|
36285
37338
|
type: "object",
|
|
36286
37339
|
required: [
|
|
@@ -36337,6 +37390,35 @@ var schemaComponents = {
|
|
|
36337
37390
|
}
|
|
36338
37391
|
}
|
|
36339
37392
|
},
|
|
37393
|
+
AccountConnectionResponse: {
|
|
37394
|
+
type: "object",
|
|
37395
|
+
description: "A successful answer.",
|
|
37396
|
+
additionalProperties: false,
|
|
37397
|
+
required: [
|
|
37398
|
+
"success",
|
|
37399
|
+
"data",
|
|
37400
|
+
"error",
|
|
37401
|
+
"metadata"
|
|
37402
|
+
],
|
|
37403
|
+
properties: {
|
|
37404
|
+
success: {
|
|
37405
|
+
type: "boolean",
|
|
37406
|
+
enum: [
|
|
37407
|
+
true
|
|
37408
|
+
]
|
|
37409
|
+
},
|
|
37410
|
+
data: {
|
|
37411
|
+
$ref: "#/components/schemas/AccountConnection",
|
|
37412
|
+
description: "One connection of an integration: what it is, its state and the tools it offers."
|
|
37413
|
+
},
|
|
37414
|
+
error: {
|
|
37415
|
+
const: null
|
|
37416
|
+
},
|
|
37417
|
+
metadata: {
|
|
37418
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
37419
|
+
}
|
|
37420
|
+
}
|
|
37421
|
+
},
|
|
36340
37422
|
AccountConsultIncludedRecordBody: {
|
|
36341
37423
|
type: "object",
|
|
36342
37424
|
required: [
|
|
@@ -36961,6 +38043,62 @@ var schemaComponents = {
|
|
|
36961
38043
|
}
|
|
36962
38044
|
}
|
|
36963
38045
|
},
|
|
38046
|
+
AccountCreateServerBody: {
|
|
38047
|
+
type: "object",
|
|
38048
|
+
required: [
|
|
38049
|
+
"name",
|
|
38050
|
+
"url",
|
|
38051
|
+
"secret"
|
|
38052
|
+
],
|
|
38053
|
+
properties: {
|
|
38054
|
+
name: {
|
|
38055
|
+
type: "string",
|
|
38056
|
+
description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'."
|
|
38057
|
+
},
|
|
38058
|
+
url: {
|
|
38059
|
+
type: "string",
|
|
38060
|
+
format: "uri",
|
|
38061
|
+
maxLength: 2048,
|
|
38062
|
+
pattern: "^https://[^?#]+$",
|
|
38063
|
+
description: "The OpenAPI document or the MCP endpoint: https, at a public address, without a query or a fragment."
|
|
38064
|
+
},
|
|
38065
|
+
transport: {
|
|
38066
|
+
anyOf: [
|
|
38067
|
+
{
|
|
38068
|
+
type: "string",
|
|
38069
|
+
const: "http"
|
|
38070
|
+
},
|
|
38071
|
+
{
|
|
38072
|
+
type: "string",
|
|
38073
|
+
const: "mcp"
|
|
38074
|
+
}
|
|
38075
|
+
],
|
|
38076
|
+
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."
|
|
38077
|
+
},
|
|
38078
|
+
authHeader: {
|
|
38079
|
+
anyOf: [
|
|
38080
|
+
{
|
|
38081
|
+
type: "string",
|
|
38082
|
+
pattern: "^[A-Za-z][A-Za-z0-9-]{0,63}$",
|
|
38083
|
+
description: "The header that carries the secret; without it the secret is sent as Authorization: Bearer."
|
|
38084
|
+
},
|
|
38085
|
+
{
|
|
38086
|
+
type: "null"
|
|
38087
|
+
}
|
|
38088
|
+
],
|
|
38089
|
+
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."
|
|
38090
|
+
},
|
|
38091
|
+
secret: {
|
|
38092
|
+
type: "string",
|
|
38093
|
+
writeOnly: true,
|
|
38094
|
+
minLength: 1,
|
|
38095
|
+
maxLength: 4096,
|
|
38096
|
+
pattern: "^[^\\r\\n]+$",
|
|
38097
|
+
description: "The secret the server admits calls with. Arbol keeps it encrypted, sends it only to this server and never shows it again."
|
|
38098
|
+
}
|
|
38099
|
+
},
|
|
38100
|
+
additionalProperties: false
|
|
38101
|
+
},
|
|
36964
38102
|
AccountCreateWalletTopUpBody: {
|
|
36965
38103
|
type: "object",
|
|
36966
38104
|
required: [
|
|
@@ -37200,6 +38338,114 @@ var schemaComponents = {
|
|
|
37200
38338
|
}
|
|
37201
38339
|
}
|
|
37202
38340
|
},
|
|
38341
|
+
AccountCustomServerUnreachableError: {
|
|
38342
|
+
type: "object",
|
|
38343
|
+
description: "A failed answer.",
|
|
38344
|
+
additionalProperties: false,
|
|
38345
|
+
required: [
|
|
38346
|
+
"success",
|
|
38347
|
+
"data",
|
|
38348
|
+
"error",
|
|
38349
|
+
"metadata"
|
|
38350
|
+
],
|
|
38351
|
+
properties: {
|
|
38352
|
+
success: {
|
|
38353
|
+
type: "boolean",
|
|
38354
|
+
enum: [
|
|
38355
|
+
false
|
|
38356
|
+
]
|
|
38357
|
+
},
|
|
38358
|
+
data: {
|
|
38359
|
+
const: null
|
|
38360
|
+
},
|
|
38361
|
+
error: {
|
|
38362
|
+
$ref: "#/components/schemas/AccountCustomServerUnreachableFailure"
|
|
38363
|
+
},
|
|
38364
|
+
metadata: {
|
|
38365
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
38366
|
+
}
|
|
38367
|
+
}
|
|
38368
|
+
},
|
|
38369
|
+
AccountCustomServerUnreachableFailure: {
|
|
38370
|
+
type: "object",
|
|
38371
|
+
description: "The server's tools could not be read.",
|
|
38372
|
+
additionalProperties: false,
|
|
38373
|
+
required: [
|
|
38374
|
+
"code",
|
|
38375
|
+
"message",
|
|
38376
|
+
"retryable",
|
|
38377
|
+
"data"
|
|
38378
|
+
],
|
|
38379
|
+
properties: {
|
|
38380
|
+
code: {
|
|
38381
|
+
type: "string",
|
|
38382
|
+
enum: [
|
|
38383
|
+
"CUSTOM_SERVER_UNREACHABLE"
|
|
38384
|
+
],
|
|
38385
|
+
description: "The failure code, stable across releases."
|
|
38386
|
+
},
|
|
38387
|
+
message: {
|
|
38388
|
+
type: "string",
|
|
38389
|
+
description: "What went wrong, for people; it never contains input values."
|
|
38390
|
+
},
|
|
38391
|
+
retryable: {
|
|
38392
|
+
type: "boolean",
|
|
38393
|
+
enum: [
|
|
38394
|
+
false
|
|
38395
|
+
],
|
|
38396
|
+
description: "Whether repeating the same request may succeed."
|
|
38397
|
+
},
|
|
38398
|
+
data: {
|
|
38399
|
+
$ref: "#/components/schemas/AccountCustomServerUnreachableFailureData"
|
|
38400
|
+
}
|
|
38401
|
+
}
|
|
38402
|
+
},
|
|
38403
|
+
AccountCustomServerUnreachableFailureData: {
|
|
38404
|
+
type: "object",
|
|
38405
|
+
required: [
|
|
38406
|
+
"reason"
|
|
38407
|
+
],
|
|
38408
|
+
properties: {
|
|
38409
|
+
reason: {
|
|
38410
|
+
anyOf: [
|
|
38411
|
+
{
|
|
38412
|
+
type: "string",
|
|
38413
|
+
const: "destination"
|
|
38414
|
+
},
|
|
38415
|
+
{
|
|
38416
|
+
type: "string",
|
|
38417
|
+
const: "redirect"
|
|
38418
|
+
},
|
|
38419
|
+
{
|
|
38420
|
+
type: "string",
|
|
38421
|
+
const: "status"
|
|
38422
|
+
},
|
|
38423
|
+
{
|
|
38424
|
+
type: "string",
|
|
38425
|
+
const: "too_large"
|
|
38426
|
+
},
|
|
38427
|
+
{
|
|
38428
|
+
type: "string",
|
|
38429
|
+
const: "timeout"
|
|
38430
|
+
},
|
|
38431
|
+
{
|
|
38432
|
+
type: "string",
|
|
38433
|
+
const: "network"
|
|
38434
|
+
},
|
|
38435
|
+
{
|
|
38436
|
+
type: "string",
|
|
38437
|
+
const: "document"
|
|
38438
|
+
},
|
|
38439
|
+
{
|
|
38440
|
+
type: "string",
|
|
38441
|
+
const: "no_tools"
|
|
38442
|
+
}
|
|
38443
|
+
],
|
|
38444
|
+
description: "What stopped the read."
|
|
38445
|
+
}
|
|
38446
|
+
},
|
|
38447
|
+
additionalProperties: false
|
|
38448
|
+
},
|
|
37203
38449
|
AccountDeleteApiKeyServiceUnavailableError: {
|
|
37204
38450
|
type: "object",
|
|
37205
38451
|
description: "A failed answer.",
|
|
@@ -37486,6 +38732,57 @@ var schemaComponents = {
|
|
|
37486
38732
|
}
|
|
37487
38733
|
}
|
|
37488
38734
|
},
|
|
38735
|
+
AccountDiscoverServersBody: {
|
|
38736
|
+
type: "object",
|
|
38737
|
+
required: [
|
|
38738
|
+
"url",
|
|
38739
|
+
"secret"
|
|
38740
|
+
],
|
|
38741
|
+
properties: {
|
|
38742
|
+
url: {
|
|
38743
|
+
type: "string",
|
|
38744
|
+
format: "uri",
|
|
38745
|
+
maxLength: 2048,
|
|
38746
|
+
pattern: "^https://[^?#]+$",
|
|
38747
|
+
description: "The OpenAPI document or the MCP endpoint: https, at a public address, without a query or a fragment."
|
|
38748
|
+
},
|
|
38749
|
+
transport: {
|
|
38750
|
+
anyOf: [
|
|
38751
|
+
{
|
|
38752
|
+
type: "string",
|
|
38753
|
+
const: "http"
|
|
38754
|
+
},
|
|
38755
|
+
{
|
|
38756
|
+
type: "string",
|
|
38757
|
+
const: "mcp"
|
|
38758
|
+
}
|
|
38759
|
+
],
|
|
38760
|
+
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."
|
|
38761
|
+
},
|
|
38762
|
+
authHeader: {
|
|
38763
|
+
anyOf: [
|
|
38764
|
+
{
|
|
38765
|
+
type: "string",
|
|
38766
|
+
pattern: "^[A-Za-z][A-Za-z0-9-]{0,63}$",
|
|
38767
|
+
description: "The header that carries the secret; without it the secret is sent as Authorization: Bearer."
|
|
38768
|
+
},
|
|
38769
|
+
{
|
|
38770
|
+
type: "null"
|
|
38771
|
+
}
|
|
38772
|
+
],
|
|
38773
|
+
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."
|
|
38774
|
+
},
|
|
38775
|
+
secret: {
|
|
38776
|
+
type: "string",
|
|
38777
|
+
writeOnly: true,
|
|
38778
|
+
minLength: 1,
|
|
38779
|
+
maxLength: 4096,
|
|
38780
|
+
pattern: "^[^\\r\\n]+$",
|
|
38781
|
+
description: "The secret the server admits calls with. Arbol keeps it encrypted, sends it only to this server and never shows it again."
|
|
38782
|
+
}
|
|
38783
|
+
},
|
|
38784
|
+
additionalProperties: false
|
|
38785
|
+
},
|
|
37489
38786
|
AccountGetBillingServiceUnavailableError: {
|
|
37490
38787
|
type: "object",
|
|
37491
38788
|
description: "A failed answer.",
|
|
@@ -37729,6 +39026,68 @@ var schemaComponents = {
|
|
|
37729
39026
|
}
|
|
37730
39027
|
}
|
|
37731
39028
|
},
|
|
39029
|
+
AccountIntegrationUnsupportedError: {
|
|
39030
|
+
type: "object",
|
|
39031
|
+
description: "A failed answer.",
|
|
39032
|
+
additionalProperties: false,
|
|
39033
|
+
required: [
|
|
39034
|
+
"success",
|
|
39035
|
+
"data",
|
|
39036
|
+
"error",
|
|
39037
|
+
"metadata"
|
|
39038
|
+
],
|
|
39039
|
+
properties: {
|
|
39040
|
+
success: {
|
|
39041
|
+
type: "boolean",
|
|
39042
|
+
enum: [
|
|
39043
|
+
false
|
|
39044
|
+
]
|
|
39045
|
+
},
|
|
39046
|
+
data: {
|
|
39047
|
+
const: null
|
|
39048
|
+
},
|
|
39049
|
+
error: {
|
|
39050
|
+
$ref: "#/components/schemas/AccountIntegrationUnsupportedFailure"
|
|
39051
|
+
},
|
|
39052
|
+
metadata: {
|
|
39053
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
39054
|
+
}
|
|
39055
|
+
}
|
|
39056
|
+
},
|
|
39057
|
+
AccountIntegrationUnsupportedFailure: {
|
|
39058
|
+
type: "object",
|
|
39059
|
+
description: "This integration's connections are not managed from Account.",
|
|
39060
|
+
additionalProperties: false,
|
|
39061
|
+
required: [
|
|
39062
|
+
"code",
|
|
39063
|
+
"message",
|
|
39064
|
+
"retryable",
|
|
39065
|
+
"data"
|
|
39066
|
+
],
|
|
39067
|
+
properties: {
|
|
39068
|
+
code: {
|
|
39069
|
+
type: "string",
|
|
39070
|
+
enum: [
|
|
39071
|
+
"INTEGRATION_UNSUPPORTED"
|
|
39072
|
+
],
|
|
39073
|
+
description: "The failure code, stable across releases."
|
|
39074
|
+
},
|
|
39075
|
+
message: {
|
|
39076
|
+
type: "string",
|
|
39077
|
+
description: "What went wrong, for people; it never contains input values."
|
|
39078
|
+
},
|
|
39079
|
+
retryable: {
|
|
39080
|
+
type: "boolean",
|
|
39081
|
+
enum: [
|
|
39082
|
+
false
|
|
39083
|
+
],
|
|
39084
|
+
description: "Whether repeating the same request may succeed."
|
|
39085
|
+
},
|
|
39086
|
+
data: {
|
|
39087
|
+
$ref: "#/components/schemas/Empty"
|
|
39088
|
+
}
|
|
39089
|
+
}
|
|
39090
|
+
},
|
|
37732
39091
|
AccountInvitation: {
|
|
37733
39092
|
type: "object",
|
|
37734
39093
|
required: [
|
|
@@ -38842,6 +40201,10 @@ var schemaComponents = {
|
|
|
38842
40201
|
type: "string",
|
|
38843
40202
|
const: "oficlinic"
|
|
38844
40203
|
},
|
|
40204
|
+
{
|
|
40205
|
+
type: "string",
|
|
40206
|
+
const: "pijaos-salud"
|
|
40207
|
+
},
|
|
38845
40208
|
{
|
|
38846
40209
|
type: "string",
|
|
38847
40210
|
const: "sanitas"
|
|
@@ -39129,6 +40492,70 @@ var schemaComponents = {
|
|
|
39129
40492
|
}
|
|
39130
40493
|
}
|
|
39131
40494
|
},
|
|
40495
|
+
AccountRefreshConnectionResult: {
|
|
40496
|
+
type: "object",
|
|
40497
|
+
required: [
|
|
40498
|
+
"connectionId",
|
|
40499
|
+
"updated",
|
|
40500
|
+
"tools",
|
|
40501
|
+
"held",
|
|
40502
|
+
"toolsVersion"
|
|
40503
|
+
],
|
|
40504
|
+
properties: {
|
|
40505
|
+
connectionId: {
|
|
40506
|
+
type: "string",
|
|
40507
|
+
pattern: "^con_[0-7][0-9a-hjkmnp-tv-z]{25}$",
|
|
40508
|
+
description: "A connection's id: con_ and 26 characters, stable and unique across the platform."
|
|
40509
|
+
},
|
|
40510
|
+
updated: {
|
|
40511
|
+
type: "boolean",
|
|
40512
|
+
description: "Whether this read changed the connection's tools."
|
|
40513
|
+
},
|
|
40514
|
+
tools: {
|
|
40515
|
+
type: "integer",
|
|
40516
|
+
minimum: 0,
|
|
40517
|
+
description: "How many tools the connection offers now."
|
|
40518
|
+
},
|
|
40519
|
+
held: {
|
|
40520
|
+
type: "integer",
|
|
40521
|
+
minimum: 0,
|
|
40522
|
+
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."
|
|
40523
|
+
},
|
|
40524
|
+
toolsVersion: {
|
|
40525
|
+
type: "string",
|
|
40526
|
+
description: "The version of the connection's tools, which changes with them."
|
|
40527
|
+
}
|
|
40528
|
+
},
|
|
40529
|
+
additionalProperties: false
|
|
40530
|
+
},
|
|
40531
|
+
AccountRefreshConnectionResultResponse: {
|
|
40532
|
+
type: "object",
|
|
40533
|
+
description: "A successful answer.",
|
|
40534
|
+
additionalProperties: false,
|
|
40535
|
+
required: [
|
|
40536
|
+
"success",
|
|
40537
|
+
"data",
|
|
40538
|
+
"error",
|
|
40539
|
+
"metadata"
|
|
40540
|
+
],
|
|
40541
|
+
properties: {
|
|
40542
|
+
success: {
|
|
40543
|
+
type: "boolean",
|
|
40544
|
+
enum: [
|
|
40545
|
+
true
|
|
40546
|
+
]
|
|
40547
|
+
},
|
|
40548
|
+
data: {
|
|
40549
|
+
$ref: "#/components/schemas/AccountRefreshConnectionResult"
|
|
40550
|
+
},
|
|
40551
|
+
error: {
|
|
40552
|
+
const: null
|
|
40553
|
+
},
|
|
40554
|
+
metadata: {
|
|
40555
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
40556
|
+
}
|
|
40557
|
+
}
|
|
40558
|
+
},
|
|
39132
40559
|
AccountRegistryInstallation: {
|
|
39133
40560
|
type: "object",
|
|
39134
40561
|
required: [
|
|
@@ -39257,6 +40684,362 @@ var schemaComponents = {
|
|
|
39257
40684
|
}
|
|
39258
40685
|
}
|
|
39259
40686
|
},
|
|
40687
|
+
AccountServerDiscovery: {
|
|
40688
|
+
type: "object",
|
|
40689
|
+
required: [
|
|
40690
|
+
"transport",
|
|
40691
|
+
"authHeader",
|
|
40692
|
+
"tools",
|
|
40693
|
+
"skills",
|
|
40694
|
+
"skipped",
|
|
40695
|
+
"toolsVersion",
|
|
40696
|
+
"baseUrl"
|
|
40697
|
+
],
|
|
40698
|
+
properties: {
|
|
40699
|
+
transport: {
|
|
40700
|
+
anyOf: [
|
|
40701
|
+
{
|
|
40702
|
+
type: "string",
|
|
40703
|
+
const: "http"
|
|
40704
|
+
},
|
|
40705
|
+
{
|
|
40706
|
+
type: "string",
|
|
40707
|
+
const: "mcp"
|
|
40708
|
+
}
|
|
40709
|
+
],
|
|
40710
|
+
description: "What the address serves: an OpenAPI document (http) or an MCP endpoint (mcp)."
|
|
40711
|
+
},
|
|
40712
|
+
authHeader: {
|
|
40713
|
+
anyOf: [
|
|
40714
|
+
{
|
|
40715
|
+
type: "string"
|
|
40716
|
+
},
|
|
40717
|
+
{
|
|
40718
|
+
type: "null"
|
|
40719
|
+
}
|
|
40720
|
+
],
|
|
40721
|
+
description: "The header the secret travels in, or null for Authorization: Bearer."
|
|
40722
|
+
},
|
|
40723
|
+
tools: {
|
|
40724
|
+
type: "array",
|
|
40725
|
+
items: {
|
|
40726
|
+
type: "object",
|
|
40727
|
+
required: [
|
|
40728
|
+
"name",
|
|
40729
|
+
"description",
|
|
40730
|
+
"input",
|
|
40731
|
+
"effect"
|
|
40732
|
+
],
|
|
40733
|
+
properties: {
|
|
40734
|
+
runtimeInputs: {
|
|
40735
|
+
type: "array",
|
|
40736
|
+
items: {
|
|
40737
|
+
anyOf: [
|
|
40738
|
+
{
|
|
40739
|
+
type: "string",
|
|
40740
|
+
const: "connectionId"
|
|
40741
|
+
},
|
|
40742
|
+
{
|
|
40743
|
+
type: "string",
|
|
40744
|
+
const: "channel"
|
|
40745
|
+
},
|
|
40746
|
+
{
|
|
40747
|
+
type: "string",
|
|
40748
|
+
const: "conversationUrl"
|
|
40749
|
+
},
|
|
40750
|
+
{
|
|
40751
|
+
type: "string",
|
|
40752
|
+
const: "verifiedContact"
|
|
40753
|
+
},
|
|
40754
|
+
{
|
|
40755
|
+
type: "string",
|
|
40756
|
+
const: "outboundRecipient"
|
|
40757
|
+
}
|
|
40758
|
+
]
|
|
40759
|
+
},
|
|
40760
|
+
maxItems: 5
|
|
40761
|
+
},
|
|
40762
|
+
name: {
|
|
40763
|
+
type: "string",
|
|
40764
|
+
minLength: 1,
|
|
40765
|
+
maxLength: 64,
|
|
40766
|
+
description: "The tool name an agent calls: the MCP tool name, or the OpenAPI operationId."
|
|
40767
|
+
},
|
|
40768
|
+
operation: {
|
|
40769
|
+
type: "string",
|
|
40770
|
+
maxLength: 200,
|
|
40771
|
+
description: "The published operation (arbol only): sura.appointments.create."
|
|
40772
|
+
},
|
|
40773
|
+
description: {
|
|
40774
|
+
type: "string",
|
|
40775
|
+
maxLength: 8000
|
|
40776
|
+
},
|
|
40777
|
+
input: {
|
|
40778
|
+
type: "object",
|
|
40779
|
+
patternProperties: {
|
|
40780
|
+
"^.*$": {}
|
|
40781
|
+
},
|
|
40782
|
+
description: "The tool's input, as a JSON Schema object."
|
|
40783
|
+
},
|
|
40784
|
+
effect: {
|
|
40785
|
+
anyOf: [
|
|
40786
|
+
{
|
|
40787
|
+
type: "string",
|
|
40788
|
+
const: "read"
|
|
40789
|
+
},
|
|
40790
|
+
{
|
|
40791
|
+
type: "string",
|
|
40792
|
+
const: "write"
|
|
40793
|
+
}
|
|
40794
|
+
],
|
|
40795
|
+
description: "read changes nothing; write may."
|
|
40796
|
+
},
|
|
40797
|
+
rpcMethod: {
|
|
40798
|
+
anyOf: [
|
|
40799
|
+
{
|
|
40800
|
+
type: "string",
|
|
40801
|
+
minLength: 1,
|
|
40802
|
+
maxLength: 128
|
|
40803
|
+
},
|
|
40804
|
+
{
|
|
40805
|
+
type: "null"
|
|
40806
|
+
}
|
|
40807
|
+
],
|
|
40808
|
+
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."
|
|
40809
|
+
},
|
|
40810
|
+
writesThrough: {
|
|
40811
|
+
type: "array",
|
|
40812
|
+
items: {
|
|
40813
|
+
type: "string",
|
|
40814
|
+
pattern: "^[a-z][a-z0-9-]{1,63}$"
|
|
40815
|
+
},
|
|
40816
|
+
maxItems: 10,
|
|
40817
|
+
description: "The Arbol integrations this tool writes through (custom only): Raíz fences them jointly."
|
|
40818
|
+
},
|
|
40819
|
+
rest: {
|
|
40820
|
+
type: "object",
|
|
40821
|
+
required: [
|
|
40822
|
+
"method",
|
|
40823
|
+
"path"
|
|
40824
|
+
],
|
|
40825
|
+
properties: {
|
|
40826
|
+
method: {
|
|
40827
|
+
anyOf: [
|
|
40828
|
+
{
|
|
40829
|
+
type: "string",
|
|
40830
|
+
const: "GET"
|
|
40831
|
+
},
|
|
40832
|
+
{
|
|
40833
|
+
type: "string",
|
|
40834
|
+
const: "POST"
|
|
40835
|
+
},
|
|
40836
|
+
{
|
|
40837
|
+
type: "string",
|
|
40838
|
+
const: "PUT"
|
|
40839
|
+
},
|
|
40840
|
+
{
|
|
40841
|
+
type: "string",
|
|
40842
|
+
const: "PATCH"
|
|
40843
|
+
},
|
|
40844
|
+
{
|
|
40845
|
+
type: "string",
|
|
40846
|
+
const: "DELETE"
|
|
40847
|
+
}
|
|
40848
|
+
]
|
|
40849
|
+
},
|
|
40850
|
+
path: {
|
|
40851
|
+
type: "string",
|
|
40852
|
+
maxLength: 1000
|
|
40853
|
+
}
|
|
40854
|
+
},
|
|
40855
|
+
additionalProperties: false,
|
|
40856
|
+
description: "The REST request the tool is: its method and path template."
|
|
40857
|
+
},
|
|
40858
|
+
capabilities: {
|
|
40859
|
+
type: "object",
|
|
40860
|
+
required: [
|
|
40861
|
+
"match",
|
|
40862
|
+
"scopes"
|
|
40863
|
+
],
|
|
40864
|
+
properties: {
|
|
40865
|
+
match: {
|
|
40866
|
+
anyOf: [
|
|
40867
|
+
{
|
|
40868
|
+
type: "string",
|
|
40869
|
+
const: "any"
|
|
40870
|
+
},
|
|
40871
|
+
{
|
|
40872
|
+
type: "string",
|
|
40873
|
+
const: "all"
|
|
40874
|
+
}
|
|
40875
|
+
]
|
|
40876
|
+
},
|
|
40877
|
+
scopes: {
|
|
40878
|
+
type: "array",
|
|
40879
|
+
items: {
|
|
40880
|
+
type: "string",
|
|
40881
|
+
minLength: 1,
|
|
40882
|
+
maxLength: 128
|
|
40883
|
+
},
|
|
40884
|
+
maxItems: 20
|
|
40885
|
+
}
|
|
40886
|
+
},
|
|
40887
|
+
additionalProperties: false,
|
|
40888
|
+
description: "The scopes its caller needs (arbol only), as the release admits it: any one of them, or all."
|
|
40889
|
+
}
|
|
40890
|
+
},
|
|
40891
|
+
additionalProperties: false
|
|
40892
|
+
},
|
|
40893
|
+
maxItems: 200,
|
|
40894
|
+
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."
|
|
40895
|
+
},
|
|
40896
|
+
skills: {
|
|
40897
|
+
type: "array",
|
|
40898
|
+
items: {
|
|
40899
|
+
type: "object",
|
|
40900
|
+
required: [
|
|
40901
|
+
"name",
|
|
40902
|
+
"description",
|
|
40903
|
+
"instructions"
|
|
40904
|
+
],
|
|
40905
|
+
properties: {
|
|
40906
|
+
name: {
|
|
40907
|
+
type: "string",
|
|
40908
|
+
minLength: 1,
|
|
40909
|
+
maxLength: 64,
|
|
40910
|
+
pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$"
|
|
40911
|
+
},
|
|
40912
|
+
description: {
|
|
40913
|
+
type: "string",
|
|
40914
|
+
minLength: 1,
|
|
40915
|
+
maxLength: 1024,
|
|
40916
|
+
pattern: "^[^\\r\\n]+$",
|
|
40917
|
+
description: "One line: what the procedure achieves and when to load it."
|
|
40918
|
+
},
|
|
40919
|
+
instructions: {
|
|
40920
|
+
type: "string",
|
|
40921
|
+
minLength: 1,
|
|
40922
|
+
maxLength: 30000,
|
|
40923
|
+
description: "The Markdown procedure."
|
|
40924
|
+
}
|
|
40925
|
+
},
|
|
40926
|
+
additionalProperties: false
|
|
40927
|
+
},
|
|
40928
|
+
maxItems: 32
|
|
40929
|
+
},
|
|
40930
|
+
skipped: {
|
|
40931
|
+
type: "array",
|
|
40932
|
+
items: {
|
|
40933
|
+
type: "object",
|
|
40934
|
+
required: [
|
|
40935
|
+
"name",
|
|
40936
|
+
"reason"
|
|
40937
|
+
],
|
|
40938
|
+
properties: {
|
|
40939
|
+
name: {
|
|
40940
|
+
type: "string"
|
|
40941
|
+
},
|
|
40942
|
+
reason: {
|
|
40943
|
+
anyOf: [
|
|
40944
|
+
{
|
|
40945
|
+
type: "string",
|
|
40946
|
+
const: "no_operation_id"
|
|
40947
|
+
},
|
|
40948
|
+
{
|
|
40949
|
+
type: "string",
|
|
40950
|
+
const: "invalid_name"
|
|
40951
|
+
},
|
|
40952
|
+
{
|
|
40953
|
+
type: "string",
|
|
40954
|
+
const: "duplicate_name"
|
|
40955
|
+
},
|
|
40956
|
+
{
|
|
40957
|
+
type: "string",
|
|
40958
|
+
const: "non_json_body"
|
|
40959
|
+
},
|
|
40960
|
+
{
|
|
40961
|
+
type: "string",
|
|
40962
|
+
const: "unsupported_parameter"
|
|
40963
|
+
},
|
|
40964
|
+
{
|
|
40965
|
+
type: "string",
|
|
40966
|
+
const: "parameter_conflict"
|
|
40967
|
+
},
|
|
40968
|
+
{
|
|
40969
|
+
type: "string",
|
|
40970
|
+
const: "unresolvable_schema"
|
|
40971
|
+
},
|
|
40972
|
+
{
|
|
40973
|
+
type: "string",
|
|
40974
|
+
const: "no_read_only_hint"
|
|
40975
|
+
},
|
|
40976
|
+
{
|
|
40977
|
+
type: "string",
|
|
40978
|
+
const: "invalid_input_schema"
|
|
40979
|
+
},
|
|
40980
|
+
{
|
|
40981
|
+
type: "string",
|
|
40982
|
+
const: "too_many"
|
|
40983
|
+
},
|
|
40984
|
+
{
|
|
40985
|
+
type: "string",
|
|
40986
|
+
const: "invalid_skill"
|
|
40987
|
+
},
|
|
40988
|
+
{
|
|
40989
|
+
type: "string",
|
|
40990
|
+
const: "duplicate_skill"
|
|
40991
|
+
},
|
|
40992
|
+
{
|
|
40993
|
+
type: "string",
|
|
40994
|
+
const: "too_many_skills"
|
|
40995
|
+
}
|
|
40996
|
+
]
|
|
40997
|
+
}
|
|
40998
|
+
},
|
|
40999
|
+
additionalProperties: false,
|
|
41000
|
+
description: "An operation, tool or skill that is not offered, and why."
|
|
41001
|
+
},
|
|
41002
|
+
maxItems: 500
|
|
41003
|
+
},
|
|
41004
|
+
toolsVersion: {
|
|
41005
|
+
type: "string"
|
|
41006
|
+
},
|
|
41007
|
+
baseUrl: {
|
|
41008
|
+
type: "string",
|
|
41009
|
+
description: "Where the tools' requests go."
|
|
41010
|
+
}
|
|
41011
|
+
},
|
|
41012
|
+
additionalProperties: false
|
|
41013
|
+
},
|
|
41014
|
+
AccountServerDiscoveryResponse: {
|
|
41015
|
+
type: "object",
|
|
41016
|
+
description: "A successful answer.",
|
|
41017
|
+
additionalProperties: false,
|
|
41018
|
+
required: [
|
|
41019
|
+
"success",
|
|
41020
|
+
"data",
|
|
41021
|
+
"error",
|
|
41022
|
+
"metadata"
|
|
41023
|
+
],
|
|
41024
|
+
properties: {
|
|
41025
|
+
success: {
|
|
41026
|
+
type: "boolean",
|
|
41027
|
+
enum: [
|
|
41028
|
+
true
|
|
41029
|
+
]
|
|
41030
|
+
},
|
|
41031
|
+
data: {
|
|
41032
|
+
$ref: "#/components/schemas/AccountServerDiscovery",
|
|
41033
|
+
description: "An organization's own server as Account read it, before it is registered."
|
|
41034
|
+
},
|
|
41035
|
+
error: {
|
|
41036
|
+
const: null
|
|
41037
|
+
},
|
|
41038
|
+
metadata: {
|
|
41039
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
41040
|
+
}
|
|
41041
|
+
}
|
|
41042
|
+
},
|
|
39260
41043
|
AccountSisbenClassification: {
|
|
39261
41044
|
anyOf: [
|
|
39262
41045
|
{
|
|
@@ -187525,6 +189308,534 @@ var schemaComponents = {
|
|
|
187525
189308
|
},
|
|
187526
189309
|
additionalProperties: false
|
|
187527
189310
|
},
|
|
189311
|
+
PijaosSaludAccountUnavailableFailure: {
|
|
189312
|
+
type: "object",
|
|
189313
|
+
description: "The connection could not be read.",
|
|
189314
|
+
additionalProperties: false,
|
|
189315
|
+
required: [
|
|
189316
|
+
"code",
|
|
189317
|
+
"message",
|
|
189318
|
+
"retryable",
|
|
189319
|
+
"data"
|
|
189320
|
+
],
|
|
189321
|
+
properties: {
|
|
189322
|
+
code: {
|
|
189323
|
+
type: "string",
|
|
189324
|
+
enum: [
|
|
189325
|
+
"ACCOUNT_UNAVAILABLE"
|
|
189326
|
+
],
|
|
189327
|
+
description: "The failure code, stable across releases."
|
|
189328
|
+
},
|
|
189329
|
+
message: {
|
|
189330
|
+
type: "string",
|
|
189331
|
+
description: "What went wrong, for people; it never contains input values."
|
|
189332
|
+
},
|
|
189333
|
+
retryable: {
|
|
189334
|
+
type: "boolean",
|
|
189335
|
+
enum: [
|
|
189336
|
+
false
|
|
189337
|
+
],
|
|
189338
|
+
description: "Whether repeating the same request may succeed."
|
|
189339
|
+
},
|
|
189340
|
+
data: {
|
|
189341
|
+
$ref: "#/components/schemas/Empty"
|
|
189342
|
+
}
|
|
189343
|
+
}
|
|
189344
|
+
},
|
|
189345
|
+
PijaosSaludAffiliationUnresolvedFailure: {
|
|
189346
|
+
type: "object",
|
|
189347
|
+
description: "The provider response could not be verified for the requested document.",
|
|
189348
|
+
additionalProperties: false,
|
|
189349
|
+
required: [
|
|
189350
|
+
"code",
|
|
189351
|
+
"message",
|
|
189352
|
+
"retryable",
|
|
189353
|
+
"data"
|
|
189354
|
+
],
|
|
189355
|
+
properties: {
|
|
189356
|
+
code: {
|
|
189357
|
+
type: "string",
|
|
189358
|
+
enum: [
|
|
189359
|
+
"AFFILIATION_UNRESOLVED"
|
|
189360
|
+
],
|
|
189361
|
+
description: "The failure code, stable across releases."
|
|
189362
|
+
},
|
|
189363
|
+
message: {
|
|
189364
|
+
type: "string",
|
|
189365
|
+
description: "What went wrong, for people; it never contains input values."
|
|
189366
|
+
},
|
|
189367
|
+
retryable: {
|
|
189368
|
+
type: "boolean",
|
|
189369
|
+
enum: [
|
|
189370
|
+
false
|
|
189371
|
+
],
|
|
189372
|
+
description: "Whether repeating the same request may succeed."
|
|
189373
|
+
},
|
|
189374
|
+
data: {
|
|
189375
|
+
$ref: "#/components/schemas/Empty"
|
|
189376
|
+
}
|
|
189377
|
+
}
|
|
189378
|
+
},
|
|
189379
|
+
PijaosSaludConnectionUnavailableFailure: {
|
|
189380
|
+
type: "object",
|
|
189381
|
+
description: "Select an active Pijaos Salud connection for this organization.",
|
|
189382
|
+
additionalProperties: false,
|
|
189383
|
+
required: [
|
|
189384
|
+
"code",
|
|
189385
|
+
"message",
|
|
189386
|
+
"retryable",
|
|
189387
|
+
"data"
|
|
189388
|
+
],
|
|
189389
|
+
properties: {
|
|
189390
|
+
code: {
|
|
189391
|
+
type: "string",
|
|
189392
|
+
enum: [
|
|
189393
|
+
"CONNECTION_UNAVAILABLE"
|
|
189394
|
+
],
|
|
189395
|
+
description: "The failure code, stable across releases."
|
|
189396
|
+
},
|
|
189397
|
+
message: {
|
|
189398
|
+
type: "string",
|
|
189399
|
+
description: "What went wrong, for people; it never contains input values."
|
|
189400
|
+
},
|
|
189401
|
+
retryable: {
|
|
189402
|
+
type: "boolean",
|
|
189403
|
+
enum: [
|
|
189404
|
+
false
|
|
189405
|
+
],
|
|
189406
|
+
description: "Whether repeating the same request may succeed."
|
|
189407
|
+
},
|
|
189408
|
+
data: {
|
|
189409
|
+
$ref: "#/components/schemas/Empty"
|
|
189410
|
+
}
|
|
189411
|
+
}
|
|
189412
|
+
},
|
|
189413
|
+
PijaosSaludCredentialsRejectedFailure: {
|
|
189414
|
+
type: "object",
|
|
189415
|
+
description: "Pijaos Salud did not accept the configured IPS login.",
|
|
189416
|
+
additionalProperties: false,
|
|
189417
|
+
required: [
|
|
189418
|
+
"code",
|
|
189419
|
+
"message",
|
|
189420
|
+
"retryable",
|
|
189421
|
+
"data"
|
|
189422
|
+
],
|
|
189423
|
+
properties: {
|
|
189424
|
+
code: {
|
|
189425
|
+
type: "string",
|
|
189426
|
+
enum: [
|
|
189427
|
+
"CREDENTIALS_REJECTED"
|
|
189428
|
+
],
|
|
189429
|
+
description: "The failure code, stable across releases."
|
|
189430
|
+
},
|
|
189431
|
+
message: {
|
|
189432
|
+
type: "string",
|
|
189433
|
+
description: "What went wrong, for people; it never contains input values."
|
|
189434
|
+
},
|
|
189435
|
+
retryable: {
|
|
189436
|
+
type: "boolean",
|
|
189437
|
+
enum: [
|
|
189438
|
+
false
|
|
189439
|
+
],
|
|
189440
|
+
description: "Whether repeating the same request may succeed."
|
|
189441
|
+
},
|
|
189442
|
+
data: {
|
|
189443
|
+
$ref: "#/components/schemas/Empty"
|
|
189444
|
+
}
|
|
189445
|
+
}
|
|
189446
|
+
},
|
|
189447
|
+
PijaosSaludLookupAffiliationBadGatewayError: {
|
|
189448
|
+
type: "object",
|
|
189449
|
+
description: "A failed answer.",
|
|
189450
|
+
additionalProperties: false,
|
|
189451
|
+
required: [
|
|
189452
|
+
"success",
|
|
189453
|
+
"data",
|
|
189454
|
+
"error",
|
|
189455
|
+
"metadata"
|
|
189456
|
+
],
|
|
189457
|
+
properties: {
|
|
189458
|
+
success: {
|
|
189459
|
+
type: "boolean",
|
|
189460
|
+
enum: [
|
|
189461
|
+
false
|
|
189462
|
+
]
|
|
189463
|
+
},
|
|
189464
|
+
data: {
|
|
189465
|
+
const: null
|
|
189466
|
+
},
|
|
189467
|
+
error: {
|
|
189468
|
+
$ref: "#/components/schemas/PijaosSaludLookupAffiliationBadGatewayFailure"
|
|
189469
|
+
},
|
|
189470
|
+
metadata: {
|
|
189471
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
189472
|
+
}
|
|
189473
|
+
}
|
|
189474
|
+
},
|
|
189475
|
+
PijaosSaludLookupAffiliationBadGatewayFailure: {
|
|
189476
|
+
oneOf: [
|
|
189477
|
+
{
|
|
189478
|
+
$ref: "#/components/schemas/OutcomeUnknownFailure"
|
|
189479
|
+
},
|
|
189480
|
+
{
|
|
189481
|
+
$ref: "#/components/schemas/PijaosSaludAffiliationUnresolvedFailure"
|
|
189482
|
+
}
|
|
189483
|
+
],
|
|
189484
|
+
discriminator: {
|
|
189485
|
+
propertyName: "code",
|
|
189486
|
+
mapping: {
|
|
189487
|
+
OUTCOME_UNKNOWN: "#/components/schemas/OutcomeUnknownFailure",
|
|
189488
|
+
AFFILIATION_UNRESOLVED: "#/components/schemas/PijaosSaludAffiliationUnresolvedFailure"
|
|
189489
|
+
}
|
|
189490
|
+
}
|
|
189491
|
+
},
|
|
189492
|
+
PijaosSaludLookupAffiliationBody: {
|
|
189493
|
+
type: "object",
|
|
189494
|
+
required: [
|
|
189495
|
+
"connectionId",
|
|
189496
|
+
"documentType",
|
|
189497
|
+
"documentNumber"
|
|
189498
|
+
],
|
|
189499
|
+
properties: {
|
|
189500
|
+
connectionId: {
|
|
189501
|
+
type: "string",
|
|
189502
|
+
pattern: "^con_[0-9A-Za-z]{26}$"
|
|
189503
|
+
},
|
|
189504
|
+
documentType: {
|
|
189505
|
+
anyOf: [
|
|
189506
|
+
{
|
|
189507
|
+
type: "string",
|
|
189508
|
+
const: "NI"
|
|
189509
|
+
},
|
|
189510
|
+
{
|
|
189511
|
+
type: "string",
|
|
189512
|
+
const: "CC"
|
|
189513
|
+
},
|
|
189514
|
+
{
|
|
189515
|
+
type: "string",
|
|
189516
|
+
const: "MS"
|
|
189517
|
+
},
|
|
189518
|
+
{
|
|
189519
|
+
type: "string",
|
|
189520
|
+
const: "RC"
|
|
189521
|
+
},
|
|
189522
|
+
{
|
|
189523
|
+
type: "string",
|
|
189524
|
+
const: "TI"
|
|
189525
|
+
},
|
|
189526
|
+
{
|
|
189527
|
+
type: "string",
|
|
189528
|
+
const: "CE"
|
|
189529
|
+
},
|
|
189530
|
+
{
|
|
189531
|
+
type: "string",
|
|
189532
|
+
const: "PA"
|
|
189533
|
+
},
|
|
189534
|
+
{
|
|
189535
|
+
type: "string",
|
|
189536
|
+
const: "AS"
|
|
189537
|
+
},
|
|
189538
|
+
{
|
|
189539
|
+
type: "string",
|
|
189540
|
+
const: "CD"
|
|
189541
|
+
},
|
|
189542
|
+
{
|
|
189543
|
+
type: "string",
|
|
189544
|
+
const: "CN"
|
|
189545
|
+
},
|
|
189546
|
+
{
|
|
189547
|
+
type: "string",
|
|
189548
|
+
const: "SC"
|
|
189549
|
+
},
|
|
189550
|
+
{
|
|
189551
|
+
type: "string",
|
|
189552
|
+
const: "PE"
|
|
189553
|
+
},
|
|
189554
|
+
{
|
|
189555
|
+
type: "string",
|
|
189556
|
+
const: "PT"
|
|
189557
|
+
},
|
|
189558
|
+
{
|
|
189559
|
+
type: "string",
|
|
189560
|
+
const: "DE"
|
|
189561
|
+
},
|
|
189562
|
+
{
|
|
189563
|
+
type: "string",
|
|
189564
|
+
const: "OT"
|
|
189565
|
+
}
|
|
189566
|
+
]
|
|
189567
|
+
},
|
|
189568
|
+
maxAgeDays: {
|
|
189569
|
+
type: "integer",
|
|
189570
|
+
minimum: 0,
|
|
189571
|
+
maximum: 30,
|
|
189572
|
+
default: 7,
|
|
189573
|
+
description: "Maximum age in days of a result from this IPS connection. Zero contacts the provider and refreshes the saved result."
|
|
189574
|
+
},
|
|
189575
|
+
documentNumber: {
|
|
189576
|
+
type: "string",
|
|
189577
|
+
pattern: "^[A-Za-z0-9-]{1,40}$"
|
|
189578
|
+
}
|
|
189579
|
+
},
|
|
189580
|
+
additionalProperties: false
|
|
189581
|
+
},
|
|
189582
|
+
PijaosSaludLookupAffiliationConflictError: {
|
|
189583
|
+
type: "object",
|
|
189584
|
+
description: "A failed answer.",
|
|
189585
|
+
additionalProperties: false,
|
|
189586
|
+
required: [
|
|
189587
|
+
"success",
|
|
189588
|
+
"data",
|
|
189589
|
+
"error",
|
|
189590
|
+
"metadata"
|
|
189591
|
+
],
|
|
189592
|
+
properties: {
|
|
189593
|
+
success: {
|
|
189594
|
+
type: "boolean",
|
|
189595
|
+
enum: [
|
|
189596
|
+
false
|
|
189597
|
+
]
|
|
189598
|
+
},
|
|
189599
|
+
data: {
|
|
189600
|
+
const: null
|
|
189601
|
+
},
|
|
189602
|
+
error: {
|
|
189603
|
+
$ref: "#/components/schemas/PijaosSaludLookupAffiliationConflictFailure"
|
|
189604
|
+
},
|
|
189605
|
+
metadata: {
|
|
189606
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
189607
|
+
}
|
|
189608
|
+
}
|
|
189609
|
+
},
|
|
189610
|
+
PijaosSaludLookupAffiliationConflictFailure: {
|
|
189611
|
+
oneOf: [
|
|
189612
|
+
{
|
|
189613
|
+
$ref: "#/components/schemas/PijaosSaludConnectionUnavailableFailure"
|
|
189614
|
+
},
|
|
189615
|
+
{
|
|
189616
|
+
$ref: "#/components/schemas/PijaosSaludCredentialsRejectedFailure"
|
|
189617
|
+
}
|
|
189618
|
+
],
|
|
189619
|
+
discriminator: {
|
|
189620
|
+
propertyName: "code",
|
|
189621
|
+
mapping: {
|
|
189622
|
+
CONNECTION_UNAVAILABLE: "#/components/schemas/PijaosSaludConnectionUnavailableFailure",
|
|
189623
|
+
CREDENTIALS_REJECTED: "#/components/schemas/PijaosSaludCredentialsRejectedFailure"
|
|
189624
|
+
}
|
|
189625
|
+
}
|
|
189626
|
+
},
|
|
189627
|
+
PijaosSaludLookupAffiliationResult: {
|
|
189628
|
+
anyOf: [
|
|
189629
|
+
{
|
|
189630
|
+
type: "object",
|
|
189631
|
+
required: [
|
|
189632
|
+
"outcome",
|
|
189633
|
+
"checkedAt",
|
|
189634
|
+
"source"
|
|
189635
|
+
],
|
|
189636
|
+
properties: {
|
|
189637
|
+
outcome: {
|
|
189638
|
+
type: "string",
|
|
189639
|
+
const: "identity_not_confirmed"
|
|
189640
|
+
},
|
|
189641
|
+
checkedAt: {
|
|
189642
|
+
type: "string",
|
|
189643
|
+
format: "date-time",
|
|
189644
|
+
description: "Time of the original provider lookup."
|
|
189645
|
+
},
|
|
189646
|
+
source: {
|
|
189647
|
+
anyOf: [
|
|
189648
|
+
{
|
|
189649
|
+
type: "string",
|
|
189650
|
+
const: "provider"
|
|
189651
|
+
},
|
|
189652
|
+
{
|
|
189653
|
+
type: "string",
|
|
189654
|
+
const: "cache"
|
|
189655
|
+
}
|
|
189656
|
+
]
|
|
189657
|
+
}
|
|
189658
|
+
},
|
|
189659
|
+
additionalProperties: false
|
|
189660
|
+
},
|
|
189661
|
+
{
|
|
189662
|
+
type: "object",
|
|
189663
|
+
required: [
|
|
189664
|
+
"outcome",
|
|
189665
|
+
"status",
|
|
189666
|
+
"checkedAt",
|
|
189667
|
+
"source"
|
|
189668
|
+
],
|
|
189669
|
+
properties: {
|
|
189670
|
+
outcome: {
|
|
189671
|
+
type: "string",
|
|
189672
|
+
const: "status_reported"
|
|
189673
|
+
},
|
|
189674
|
+
status: {
|
|
189675
|
+
anyOf: [
|
|
189676
|
+
{
|
|
189677
|
+
type: "string",
|
|
189678
|
+
const: "activo"
|
|
189679
|
+
},
|
|
189680
|
+
{
|
|
189681
|
+
type: "string",
|
|
189682
|
+
const: "inactivo"
|
|
189683
|
+
},
|
|
189684
|
+
{
|
|
189685
|
+
type: "string",
|
|
189686
|
+
const: "suspendido"
|
|
189687
|
+
},
|
|
189688
|
+
{
|
|
189689
|
+
type: "string",
|
|
189690
|
+
const: "retirado"
|
|
189691
|
+
},
|
|
189692
|
+
{
|
|
189693
|
+
type: "string",
|
|
189694
|
+
const: "fallecido"
|
|
189695
|
+
},
|
|
189696
|
+
{
|
|
189697
|
+
type: "string",
|
|
189698
|
+
const: "cancelado"
|
|
189699
|
+
},
|
|
189700
|
+
{
|
|
189701
|
+
type: "string",
|
|
189702
|
+
const: "trasladado"
|
|
189703
|
+
}
|
|
189704
|
+
]
|
|
189705
|
+
},
|
|
189706
|
+
checkedAt: {
|
|
189707
|
+
type: "string",
|
|
189708
|
+
format: "date-time",
|
|
189709
|
+
description: "Time of the original provider lookup."
|
|
189710
|
+
},
|
|
189711
|
+
source: {
|
|
189712
|
+
anyOf: [
|
|
189713
|
+
{
|
|
189714
|
+
type: "string",
|
|
189715
|
+
const: "provider"
|
|
189716
|
+
},
|
|
189717
|
+
{
|
|
189718
|
+
type: "string",
|
|
189719
|
+
const: "cache"
|
|
189720
|
+
}
|
|
189721
|
+
]
|
|
189722
|
+
}
|
|
189723
|
+
},
|
|
189724
|
+
additionalProperties: false
|
|
189725
|
+
}
|
|
189726
|
+
]
|
|
189727
|
+
},
|
|
189728
|
+
PijaosSaludLookupAffiliationResultResponse: {
|
|
189729
|
+
type: "object",
|
|
189730
|
+
description: "A successful answer.",
|
|
189731
|
+
additionalProperties: false,
|
|
189732
|
+
required: [
|
|
189733
|
+
"success",
|
|
189734
|
+
"data",
|
|
189735
|
+
"error",
|
|
189736
|
+
"metadata"
|
|
189737
|
+
],
|
|
189738
|
+
properties: {
|
|
189739
|
+
success: {
|
|
189740
|
+
type: "boolean",
|
|
189741
|
+
enum: [
|
|
189742
|
+
true
|
|
189743
|
+
]
|
|
189744
|
+
},
|
|
189745
|
+
data: {
|
|
189746
|
+
$ref: "#/components/schemas/PijaosSaludLookupAffiliationResult"
|
|
189747
|
+
},
|
|
189748
|
+
error: {
|
|
189749
|
+
const: null
|
|
189750
|
+
},
|
|
189751
|
+
metadata: {
|
|
189752
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
189753
|
+
}
|
|
189754
|
+
}
|
|
189755
|
+
},
|
|
189756
|
+
PijaosSaludLookupAffiliationServiceUnavailableError: {
|
|
189757
|
+
type: "object",
|
|
189758
|
+
description: "A failed answer.",
|
|
189759
|
+
additionalProperties: false,
|
|
189760
|
+
required: [
|
|
189761
|
+
"success",
|
|
189762
|
+
"data",
|
|
189763
|
+
"error",
|
|
189764
|
+
"metadata"
|
|
189765
|
+
],
|
|
189766
|
+
properties: {
|
|
189767
|
+
success: {
|
|
189768
|
+
type: "boolean",
|
|
189769
|
+
enum: [
|
|
189770
|
+
false
|
|
189771
|
+
]
|
|
189772
|
+
},
|
|
189773
|
+
data: {
|
|
189774
|
+
const: null
|
|
189775
|
+
},
|
|
189776
|
+
error: {
|
|
189777
|
+
$ref: "#/components/schemas/PijaosSaludLookupAffiliationServiceUnavailableFailure"
|
|
189778
|
+
},
|
|
189779
|
+
metadata: {
|
|
189780
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
189781
|
+
}
|
|
189782
|
+
}
|
|
189783
|
+
},
|
|
189784
|
+
PijaosSaludLookupAffiliationServiceUnavailableFailure: {
|
|
189785
|
+
oneOf: [
|
|
189786
|
+
{
|
|
189787
|
+
$ref: "#/components/schemas/UpstreamUnavailableFailure"
|
|
189788
|
+
},
|
|
189789
|
+
{
|
|
189790
|
+
$ref: "#/components/schemas/PijaosSaludAccountUnavailableFailure"
|
|
189791
|
+
},
|
|
189792
|
+
{
|
|
189793
|
+
$ref: "#/components/schemas/PijaosSaludProviderUnavailableFailure"
|
|
189794
|
+
}
|
|
189795
|
+
],
|
|
189796
|
+
discriminator: {
|
|
189797
|
+
propertyName: "code",
|
|
189798
|
+
mapping: {
|
|
189799
|
+
UPSTREAM_UNAVAILABLE: "#/components/schemas/UpstreamUnavailableFailure",
|
|
189800
|
+
ACCOUNT_UNAVAILABLE: "#/components/schemas/PijaosSaludAccountUnavailableFailure",
|
|
189801
|
+
PROVIDER_UNAVAILABLE: "#/components/schemas/PijaosSaludProviderUnavailableFailure"
|
|
189802
|
+
}
|
|
189803
|
+
}
|
|
189804
|
+
},
|
|
189805
|
+
PijaosSaludProviderUnavailableFailure: {
|
|
189806
|
+
type: "object",
|
|
189807
|
+
description: "Pijaos Salud could not complete the operation.",
|
|
189808
|
+
additionalProperties: false,
|
|
189809
|
+
required: [
|
|
189810
|
+
"code",
|
|
189811
|
+
"message",
|
|
189812
|
+
"retryable",
|
|
189813
|
+
"data"
|
|
189814
|
+
],
|
|
189815
|
+
properties: {
|
|
189816
|
+
code: {
|
|
189817
|
+
type: "string",
|
|
189818
|
+
enum: [
|
|
189819
|
+
"PROVIDER_UNAVAILABLE"
|
|
189820
|
+
],
|
|
189821
|
+
description: "The failure code, stable across releases."
|
|
189822
|
+
},
|
|
189823
|
+
message: {
|
|
189824
|
+
type: "string",
|
|
189825
|
+
description: "What went wrong, for people; it never contains input values."
|
|
189826
|
+
},
|
|
189827
|
+
retryable: {
|
|
189828
|
+
type: "boolean",
|
|
189829
|
+
enum: [
|
|
189830
|
+
false
|
|
189831
|
+
],
|
|
189832
|
+
description: "Whether repeating the same request may succeed."
|
|
189833
|
+
},
|
|
189834
|
+
data: {
|
|
189835
|
+
$ref: "#/components/schemas/Empty"
|
|
189836
|
+
}
|
|
189837
|
+
}
|
|
189838
|
+
},
|
|
187528
189839
|
PoliciaColombiaJudicialRecordPresentation: {
|
|
187529
189840
|
anyOf: [
|
|
187530
189841
|
{
|
|
@@ -188177,7 +190488,7 @@ var schemaComponents = {
|
|
|
188177
190488
|
},
|
|
188178
190489
|
digest: {
|
|
188179
190490
|
type: "string",
|
|
188180
|
-
description: "The digest of the definition the Agent was saved with.
|
|
190491
|
+
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
190492
|
maxLength: 64,
|
|
188182
190493
|
minLength: 1
|
|
188183
190494
|
},
|
|
@@ -188208,7 +190519,7 @@ var schemaComponents = {
|
|
|
188208
190519
|
},
|
|
188209
190520
|
additionalProperties: false
|
|
188210
190521
|
},
|
|
188211
|
-
description: "The integrations' tools the Agent may call, each on the connection it runs on
|
|
190522
|
+
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
190523
|
maxItems: 200
|
|
188213
190524
|
},
|
|
188214
190525
|
knowledgeDocumentIds: {
|
|
@@ -190849,6 +193160,7 @@ var schemaComponents = {
|
|
|
190849
193160
|
"pauseOnHumanReply",
|
|
190850
193161
|
"policy",
|
|
190851
193162
|
"pollPendingOperations",
|
|
193163
|
+
"protection",
|
|
190852
193164
|
"reasoningEffort",
|
|
190853
193165
|
"replyChoices",
|
|
190854
193166
|
"sessionCloseAfterMinutes",
|
|
@@ -191247,6 +193559,80 @@ var schemaComponents = {
|
|
|
191247
193559
|
}
|
|
191248
193560
|
]
|
|
191249
193561
|
},
|
|
193562
|
+
protection: {
|
|
193563
|
+
anyOf: [
|
|
193564
|
+
{
|
|
193565
|
+
type: "object",
|
|
193566
|
+
properties: {
|
|
193567
|
+
spamHours: {
|
|
193568
|
+
type: "integer",
|
|
193569
|
+
description: "Hours someone stays in spam once they pass a limit (default 6). A person can lift the rule earlier by deleting it.",
|
|
193570
|
+
maximum: 720,
|
|
193571
|
+
minimum: 1
|
|
193572
|
+
},
|
|
193573
|
+
voiceCallsPerHour: {
|
|
193574
|
+
type: "integer",
|
|
193575
|
+
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.",
|
|
193576
|
+
maximum: 1000,
|
|
193577
|
+
minimum: 1
|
|
193578
|
+
},
|
|
193579
|
+
voiceEnabled: {
|
|
193580
|
+
type: "boolean",
|
|
193581
|
+
description: "Whether callers can fall into spam (default true). False: no call is ever refused for what its number consumed."
|
|
193582
|
+
},
|
|
193583
|
+
voiceMinutesPerDay: {
|
|
193584
|
+
type: "integer",
|
|
193585
|
+
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.",
|
|
193586
|
+
maximum: 1440,
|
|
193587
|
+
minimum: 1
|
|
193588
|
+
},
|
|
193589
|
+
voiceSilentCallsPerHour: {
|
|
193590
|
+
type: "integer",
|
|
193591
|
+
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.",
|
|
193592
|
+
maximum: 1000,
|
|
193593
|
+
minimum: 1
|
|
193594
|
+
},
|
|
193595
|
+
webConversationTokens: {
|
|
193596
|
+
type: "integer",
|
|
193597
|
+
description: "Tokens one web conversation may use (default 10000000). A conversation that reaches it takes no more messages.",
|
|
193598
|
+
maximum: 1000000000000,
|
|
193599
|
+
minimum: 1e4
|
|
193600
|
+
},
|
|
193601
|
+
webEnabled: {
|
|
193602
|
+
type: "boolean",
|
|
193603
|
+
description: "Whether web chat visitors can fall into spam (default true)."
|
|
193604
|
+
},
|
|
193605
|
+
webMessagesPerDay: {
|
|
193606
|
+
type: "integer",
|
|
193607
|
+
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.",
|
|
193608
|
+
maximum: 1e5,
|
|
193609
|
+
minimum: 1
|
|
193610
|
+
},
|
|
193611
|
+
whatsappConversationTokens: {
|
|
193612
|
+
type: "integer",
|
|
193613
|
+
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.",
|
|
193614
|
+
maximum: 1000000000000,
|
|
193615
|
+
minimum: 1e4
|
|
193616
|
+
},
|
|
193617
|
+
whatsappEnabled: {
|
|
193618
|
+
type: "boolean",
|
|
193619
|
+
description: "Whether WhatsApp contacts can fall into spam (default true)."
|
|
193620
|
+
},
|
|
193621
|
+
whatsappRepliesPerHour: {
|
|
193622
|
+
type: "integer",
|
|
193623
|
+
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.",
|
|
193624
|
+
maximum: 1e4,
|
|
193625
|
+
minimum: 1
|
|
193626
|
+
}
|
|
193627
|
+
},
|
|
193628
|
+
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.",
|
|
193629
|
+
additionalProperties: false
|
|
193630
|
+
},
|
|
193631
|
+
{
|
|
193632
|
+
type: "null"
|
|
193633
|
+
}
|
|
193634
|
+
]
|
|
193635
|
+
},
|
|
191250
193636
|
reasoningEffort: {
|
|
191251
193637
|
anyOf: [
|
|
191252
193638
|
{
|
|
@@ -191758,6 +194144,80 @@ var schemaComponents = {
|
|
|
191758
194144
|
}
|
|
191759
194145
|
]
|
|
191760
194146
|
},
|
|
194147
|
+
protection: {
|
|
194148
|
+
anyOf: [
|
|
194149
|
+
{
|
|
194150
|
+
type: "object",
|
|
194151
|
+
properties: {
|
|
194152
|
+
spamHours: {
|
|
194153
|
+
type: "integer",
|
|
194154
|
+
description: "Hours someone stays in spam once they pass a limit (default 6). A person can lift the rule earlier by deleting it.",
|
|
194155
|
+
maximum: 720,
|
|
194156
|
+
minimum: 1
|
|
194157
|
+
},
|
|
194158
|
+
voiceCallsPerHour: {
|
|
194159
|
+
type: "integer",
|
|
194160
|
+
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.",
|
|
194161
|
+
maximum: 1000,
|
|
194162
|
+
minimum: 1
|
|
194163
|
+
},
|
|
194164
|
+
voiceEnabled: {
|
|
194165
|
+
type: "boolean",
|
|
194166
|
+
description: "Whether callers can fall into spam (default true). False: no call is ever refused for what its number consumed."
|
|
194167
|
+
},
|
|
194168
|
+
voiceMinutesPerDay: {
|
|
194169
|
+
type: "integer",
|
|
194170
|
+
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.",
|
|
194171
|
+
maximum: 1440,
|
|
194172
|
+
minimum: 1
|
|
194173
|
+
},
|
|
194174
|
+
voiceSilentCallsPerHour: {
|
|
194175
|
+
type: "integer",
|
|
194176
|
+
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.",
|
|
194177
|
+
maximum: 1000,
|
|
194178
|
+
minimum: 1
|
|
194179
|
+
},
|
|
194180
|
+
webConversationTokens: {
|
|
194181
|
+
type: "integer",
|
|
194182
|
+
description: "Tokens one web conversation may use (default 10000000). A conversation that reaches it takes no more messages.",
|
|
194183
|
+
maximum: 1000000000000,
|
|
194184
|
+
minimum: 1e4
|
|
194185
|
+
},
|
|
194186
|
+
webEnabled: {
|
|
194187
|
+
type: "boolean",
|
|
194188
|
+
description: "Whether web chat visitors can fall into spam (default true)."
|
|
194189
|
+
},
|
|
194190
|
+
webMessagesPerDay: {
|
|
194191
|
+
type: "integer",
|
|
194192
|
+
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.",
|
|
194193
|
+
maximum: 1e5,
|
|
194194
|
+
minimum: 1
|
|
194195
|
+
},
|
|
194196
|
+
whatsappConversationTokens: {
|
|
194197
|
+
type: "integer",
|
|
194198
|
+
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.",
|
|
194199
|
+
maximum: 1000000000000,
|
|
194200
|
+
minimum: 1e4
|
|
194201
|
+
},
|
|
194202
|
+
whatsappEnabled: {
|
|
194203
|
+
type: "boolean",
|
|
194204
|
+
description: "Whether WhatsApp contacts can fall into spam (default true)."
|
|
194205
|
+
},
|
|
194206
|
+
whatsappRepliesPerHour: {
|
|
194207
|
+
type: "integer",
|
|
194208
|
+
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.",
|
|
194209
|
+
maximum: 1e4,
|
|
194210
|
+
minimum: 1
|
|
194211
|
+
}
|
|
194212
|
+
},
|
|
194213
|
+
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.",
|
|
194214
|
+
additionalProperties: false
|
|
194215
|
+
},
|
|
194216
|
+
{
|
|
194217
|
+
type: "null"
|
|
194218
|
+
}
|
|
194219
|
+
]
|
|
194220
|
+
},
|
|
191761
194221
|
reasoningEffort: {
|
|
191762
194222
|
anyOf: [
|
|
191763
194223
|
{
|
|
@@ -192330,10 +194790,18 @@ var schemaComponents = {
|
|
|
192330
194790
|
silenceEndCallTimeoutSeconds: {
|
|
192331
194791
|
anyOf: [
|
|
192332
194792
|
{
|
|
192333
|
-
|
|
192334
|
-
|
|
192335
|
-
|
|
192336
|
-
|
|
194793
|
+
anyOf: [
|
|
194794
|
+
{
|
|
194795
|
+
type: "number",
|
|
194796
|
+
const: 0
|
|
194797
|
+
},
|
|
194798
|
+
{
|
|
194799
|
+
type: "integer",
|
|
194800
|
+
maximum: 600,
|
|
194801
|
+
minimum: 10
|
|
194802
|
+
}
|
|
194803
|
+
],
|
|
194804
|
+
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
194805
|
},
|
|
192338
194806
|
{
|
|
192339
194807
|
type: "null"
|
|
@@ -195961,7 +198429,7 @@ var schemaComponents = {
|
|
|
195961
198429
|
},
|
|
195962
198430
|
toolsVersion: {
|
|
195963
198431
|
type: "string",
|
|
195964
|
-
description: "The version of the connection's tool list
|
|
198432
|
+
description: "The version of the connection's tool list. An Agent always runs the tools as the connection lists them now."
|
|
195965
198433
|
}
|
|
195966
198434
|
},
|
|
195967
198435
|
additionalProperties: false
|
|
@@ -199881,7 +202349,7 @@ var schemaComponents = {
|
|
|
199881
202349
|
items: {
|
|
199882
202350
|
$ref: "#/components/schemas/RaizAgentIntegrationToolInput"
|
|
199883
202351
|
},
|
|
199884
|
-
description: "The integrations' tools the Agent may call, each on one of the organization's connections (`listConnections`, checked live in Account).
|
|
202352
|
+
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
202353
|
maxItems: 200
|
|
199886
202354
|
},
|
|
199887
202355
|
knowledgeDocumentIds: {
|
|
@@ -213443,6 +215911,7 @@ var schemaComponents = {
|
|
|
213443
215911
|
"dailyReport",
|
|
213444
215912
|
"productNotices",
|
|
213445
215913
|
"notifications",
|
|
215914
|
+
"protection",
|
|
213446
215915
|
"whatsapp"
|
|
213447
215916
|
],
|
|
213448
215917
|
properties: {
|
|
@@ -213566,6 +216035,10 @@ var schemaComponents = {
|
|
|
213566
216035
|
type: "string",
|
|
213567
216036
|
const: "outage-resolved"
|
|
213568
216037
|
},
|
|
216038
|
+
{
|
|
216039
|
+
type: "string",
|
|
216040
|
+
const: "spam-blocked"
|
|
216041
|
+
},
|
|
213569
216042
|
{
|
|
213570
216043
|
type: "string",
|
|
213571
216044
|
const: "template-approved"
|
|
@@ -213582,7 +216055,7 @@ var schemaComponents = {
|
|
|
213582
216055
|
},
|
|
213583
216056
|
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
216057
|
uniqueItems: true,
|
|
213585
|
-
maxItems:
|
|
216058
|
+
maxItems: 18
|
|
213586
216059
|
},
|
|
213587
216060
|
recipients: {
|
|
213588
216061
|
type: "array",
|
|
@@ -213682,6 +216155,85 @@ var schemaComponents = {
|
|
|
213682
216155
|
},
|
|
213683
216156
|
additionalProperties: false
|
|
213684
216157
|
},
|
|
216158
|
+
protection: {
|
|
216159
|
+
type: "object",
|
|
216160
|
+
required: [
|
|
216161
|
+
"spamHours",
|
|
216162
|
+
"voiceCallsPerHour",
|
|
216163
|
+
"voiceEnabled",
|
|
216164
|
+
"voiceMinutesPerDay",
|
|
216165
|
+
"voiceSilentCallsPerHour",
|
|
216166
|
+
"webConversationTokens",
|
|
216167
|
+
"webEnabled",
|
|
216168
|
+
"webMessagesPerDay",
|
|
216169
|
+
"whatsappConversationTokens",
|
|
216170
|
+
"whatsappEnabled",
|
|
216171
|
+
"whatsappRepliesPerHour"
|
|
216172
|
+
],
|
|
216173
|
+
properties: {
|
|
216174
|
+
spamHours: {
|
|
216175
|
+
type: "integer",
|
|
216176
|
+
description: "Hours someone stays in spam once they pass a limit (default 6). A person can lift the rule earlier by deleting it.",
|
|
216177
|
+
maximum: 720,
|
|
216178
|
+
minimum: 1
|
|
216179
|
+
},
|
|
216180
|
+
voiceCallsPerHour: {
|
|
216181
|
+
type: "integer",
|
|
216182
|
+
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.",
|
|
216183
|
+
maximum: 1000,
|
|
216184
|
+
minimum: 1
|
|
216185
|
+
},
|
|
216186
|
+
voiceEnabled: {
|
|
216187
|
+
type: "boolean",
|
|
216188
|
+
description: "Whether callers can fall into spam (default true). False: no call is ever refused for what its number consumed."
|
|
216189
|
+
},
|
|
216190
|
+
voiceMinutesPerDay: {
|
|
216191
|
+
type: "integer",
|
|
216192
|
+
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.",
|
|
216193
|
+
maximum: 1440,
|
|
216194
|
+
minimum: 1
|
|
216195
|
+
},
|
|
216196
|
+
voiceSilentCallsPerHour: {
|
|
216197
|
+
type: "integer",
|
|
216198
|
+
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.",
|
|
216199
|
+
maximum: 1000,
|
|
216200
|
+
minimum: 1
|
|
216201
|
+
},
|
|
216202
|
+
webConversationTokens: {
|
|
216203
|
+
type: "integer",
|
|
216204
|
+
description: "Tokens one web conversation may use (default 10000000). A conversation that reaches it takes no more messages.",
|
|
216205
|
+
maximum: 1000000000000,
|
|
216206
|
+
minimum: 1e4
|
|
216207
|
+
},
|
|
216208
|
+
webEnabled: {
|
|
216209
|
+
type: "boolean",
|
|
216210
|
+
description: "Whether web chat visitors can fall into spam (default true)."
|
|
216211
|
+
},
|
|
216212
|
+
webMessagesPerDay: {
|
|
216213
|
+
type: "integer",
|
|
216214
|
+
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.",
|
|
216215
|
+
maximum: 1e5,
|
|
216216
|
+
minimum: 1
|
|
216217
|
+
},
|
|
216218
|
+
whatsappConversationTokens: {
|
|
216219
|
+
type: "integer",
|
|
216220
|
+
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.",
|
|
216221
|
+
maximum: 1000000000000,
|
|
216222
|
+
minimum: 1e4
|
|
216223
|
+
},
|
|
216224
|
+
whatsappEnabled: {
|
|
216225
|
+
type: "boolean",
|
|
216226
|
+
description: "Whether WhatsApp contacts can fall into spam (default true)."
|
|
216227
|
+
},
|
|
216228
|
+
whatsappRepliesPerHour: {
|
|
216229
|
+
type: "integer",
|
|
216230
|
+
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.",
|
|
216231
|
+
maximum: 1e4,
|
|
216232
|
+
minimum: 1
|
|
216233
|
+
}
|
|
216234
|
+
},
|
|
216235
|
+
additionalProperties: false
|
|
216236
|
+
},
|
|
213685
216237
|
whatsapp: {
|
|
213686
216238
|
type: "object",
|
|
213687
216239
|
required: [
|
|
@@ -217276,16 +219828,59 @@ var schemaComponents = {
|
|
|
217276
219828
|
RaizSuppression: {
|
|
217277
219829
|
type: "object",
|
|
217278
219830
|
required: [
|
|
219831
|
+
"cause",
|
|
217279
219832
|
"countryCode",
|
|
217280
219833
|
"createdAt",
|
|
219834
|
+
"expiresAt",
|
|
217281
219835
|
"id",
|
|
217282
219836
|
"ipNetwork",
|
|
217283
219837
|
"kind",
|
|
217284
219838
|
"phone",
|
|
217285
219839
|
"phonePrefix",
|
|
217286
|
-
"reason"
|
|
219840
|
+
"reason",
|
|
219841
|
+
"scope"
|
|
217287
219842
|
],
|
|
217288
219843
|
properties: {
|
|
219844
|
+
cause: {
|
|
219845
|
+
anyOf: [
|
|
219846
|
+
{
|
|
219847
|
+
anyOf: [
|
|
219848
|
+
{
|
|
219849
|
+
type: "string",
|
|
219850
|
+
const: "VOICE_CALLS"
|
|
219851
|
+
},
|
|
219852
|
+
{
|
|
219853
|
+
type: "string",
|
|
219854
|
+
const: "VOICE_MINUTES"
|
|
219855
|
+
},
|
|
219856
|
+
{
|
|
219857
|
+
type: "string",
|
|
219858
|
+
const: "VOICE_SILENT_CALLS"
|
|
219859
|
+
},
|
|
219860
|
+
{
|
|
219861
|
+
type: "string",
|
|
219862
|
+
const: "WEB_MESSAGES"
|
|
219863
|
+
},
|
|
219864
|
+
{
|
|
219865
|
+
type: "string",
|
|
219866
|
+
const: "WEB_TOKENS"
|
|
219867
|
+
},
|
|
219868
|
+
{
|
|
219869
|
+
type: "string",
|
|
219870
|
+
const: "WHATSAPP_REPLIES"
|
|
219871
|
+
},
|
|
219872
|
+
{
|
|
219873
|
+
type: "string",
|
|
219874
|
+
const: "WHATSAPP_TOKENS"
|
|
219875
|
+
}
|
|
219876
|
+
],
|
|
219877
|
+
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`)."
|
|
219878
|
+
},
|
|
219879
|
+
{
|
|
219880
|
+
type: "null"
|
|
219881
|
+
}
|
|
219882
|
+
]
|
|
219883
|
+
},
|
|
217289
219884
|
countryCode: {
|
|
217290
219885
|
anyOf: [
|
|
217291
219886
|
{
|
|
@@ -217303,6 +219898,18 @@ var schemaComponents = {
|
|
|
217303
219898
|
description: "An instant in RFC 3339 format, in UTC.",
|
|
217304
219899
|
format: "date-time"
|
|
217305
219900
|
},
|
|
219901
|
+
expiresAt: {
|
|
219902
|
+
anyOf: [
|
|
219903
|
+
{
|
|
219904
|
+
type: "string",
|
|
219905
|
+
format: "date-time",
|
|
219906
|
+
description: "When a spam rule stops applying. An expired rule is no longer listed. Null: a rule a person wrote, which applies until deleted."
|
|
219907
|
+
},
|
|
219908
|
+
{
|
|
219909
|
+
type: "null"
|
|
219910
|
+
}
|
|
219911
|
+
]
|
|
219912
|
+
},
|
|
217306
219913
|
id: {
|
|
217307
219914
|
type: "string",
|
|
217308
219915
|
description: "Suppression id.",
|
|
@@ -217366,6 +219973,30 @@ var schemaComponents = {
|
|
|
217366
219973
|
},
|
|
217367
219974
|
reason: {
|
|
217368
219975
|
type: "string"
|
|
219976
|
+
},
|
|
219977
|
+
scope: {
|
|
219978
|
+
anyOf: [
|
|
219979
|
+
{
|
|
219980
|
+
anyOf: [
|
|
219981
|
+
{
|
|
219982
|
+
type: "string",
|
|
219983
|
+
const: "voice"
|
|
219984
|
+
},
|
|
219985
|
+
{
|
|
219986
|
+
type: "string",
|
|
219987
|
+
const: "whatsapp"
|
|
219988
|
+
},
|
|
219989
|
+
{
|
|
219990
|
+
type: "string",
|
|
219991
|
+
const: "web"
|
|
219992
|
+
}
|
|
219993
|
+
],
|
|
219994
|
+
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."
|
|
219995
|
+
},
|
|
219996
|
+
{
|
|
219997
|
+
type: "null"
|
|
219998
|
+
}
|
|
219999
|
+
]
|
|
217369
220000
|
}
|
|
217370
220001
|
},
|
|
217371
220002
|
additionalProperties: false
|
|
@@ -218458,7 +221089,7 @@ var schemaComponents = {
|
|
|
218458
221089
|
items: {
|
|
218459
221090
|
$ref: "#/components/schemas/RaizAgentIntegrationToolInput"
|
|
218460
221091
|
},
|
|
218461
|
-
description: "The integrations' tools the Agent may call, each on one of the organization's connections (`listConnections`, checked live in Account).
|
|
221092
|
+
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
221093
|
maxItems: 200
|
|
218463
221094
|
},
|
|
218464
221095
|
knowledgeDocumentIds: {
|
|
@@ -221635,6 +224266,10 @@ var schemaComponents = {
|
|
|
221635
224266
|
type: "string",
|
|
221636
224267
|
const: "outage-resolved"
|
|
221637
224268
|
},
|
|
224269
|
+
{
|
|
224270
|
+
type: "string",
|
|
224271
|
+
const: "spam-blocked"
|
|
224272
|
+
},
|
|
221638
224273
|
{
|
|
221639
224274
|
type: "string",
|
|
221640
224275
|
const: "template-approved"
|
|
@@ -221651,7 +224286,7 @@ var schemaComponents = {
|
|
|
221651
224286
|
},
|
|
221652
224287
|
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
224288
|
uniqueItems: true,
|
|
221654
|
-
maxItems:
|
|
224289
|
+
maxItems: 18
|
|
221655
224290
|
},
|
|
221656
224291
|
{
|
|
221657
224292
|
type: "null"
|
|
@@ -221810,6 +224445,149 @@ var schemaComponents = {
|
|
|
221810
224445
|
},
|
|
221811
224446
|
additionalProperties: false
|
|
221812
224447
|
},
|
|
224448
|
+
protection: {
|
|
224449
|
+
type: "object",
|
|
224450
|
+
properties: {
|
|
224451
|
+
spamHours: {
|
|
224452
|
+
anyOf: [
|
|
224453
|
+
{
|
|
224454
|
+
type: "integer",
|
|
224455
|
+
description: "Hours someone stays in spam once they pass a limit (default 6). A person can lift the rule earlier by deleting it.",
|
|
224456
|
+
maximum: 720,
|
|
224457
|
+
minimum: 1
|
|
224458
|
+
},
|
|
224459
|
+
{
|
|
224460
|
+
type: "null"
|
|
224461
|
+
}
|
|
224462
|
+
]
|
|
224463
|
+
},
|
|
224464
|
+
voiceCallsPerHour: {
|
|
224465
|
+
anyOf: [
|
|
224466
|
+
{
|
|
224467
|
+
type: "integer",
|
|
224468
|
+
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.",
|
|
224469
|
+
maximum: 1000,
|
|
224470
|
+
minimum: 1
|
|
224471
|
+
},
|
|
224472
|
+
{
|
|
224473
|
+
type: "null"
|
|
224474
|
+
}
|
|
224475
|
+
]
|
|
224476
|
+
},
|
|
224477
|
+
voiceEnabled: {
|
|
224478
|
+
anyOf: [
|
|
224479
|
+
{
|
|
224480
|
+
type: "boolean",
|
|
224481
|
+
description: "Whether callers can fall into spam (default true). False: no call is ever refused for what its number consumed."
|
|
224482
|
+
},
|
|
224483
|
+
{
|
|
224484
|
+
type: "null"
|
|
224485
|
+
}
|
|
224486
|
+
]
|
|
224487
|
+
},
|
|
224488
|
+
voiceMinutesPerDay: {
|
|
224489
|
+
anyOf: [
|
|
224490
|
+
{
|
|
224491
|
+
type: "integer",
|
|
224492
|
+
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.",
|
|
224493
|
+
maximum: 1440,
|
|
224494
|
+
minimum: 1
|
|
224495
|
+
},
|
|
224496
|
+
{
|
|
224497
|
+
type: "null"
|
|
224498
|
+
}
|
|
224499
|
+
]
|
|
224500
|
+
},
|
|
224501
|
+
voiceSilentCallsPerHour: {
|
|
224502
|
+
anyOf: [
|
|
224503
|
+
{
|
|
224504
|
+
type: "integer",
|
|
224505
|
+
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.",
|
|
224506
|
+
maximum: 1000,
|
|
224507
|
+
minimum: 1
|
|
224508
|
+
},
|
|
224509
|
+
{
|
|
224510
|
+
type: "null"
|
|
224511
|
+
}
|
|
224512
|
+
]
|
|
224513
|
+
},
|
|
224514
|
+
webConversationTokens: {
|
|
224515
|
+
anyOf: [
|
|
224516
|
+
{
|
|
224517
|
+
type: "integer",
|
|
224518
|
+
description: "Tokens one web conversation may use (default 10000000). A conversation that reaches it takes no more messages.",
|
|
224519
|
+
maximum: 1000000000000,
|
|
224520
|
+
minimum: 1e4
|
|
224521
|
+
},
|
|
224522
|
+
{
|
|
224523
|
+
type: "null"
|
|
224524
|
+
}
|
|
224525
|
+
]
|
|
224526
|
+
},
|
|
224527
|
+
webEnabled: {
|
|
224528
|
+
anyOf: [
|
|
224529
|
+
{
|
|
224530
|
+
type: "boolean",
|
|
224531
|
+
description: "Whether web chat visitors can fall into spam (default true)."
|
|
224532
|
+
},
|
|
224533
|
+
{
|
|
224534
|
+
type: "null"
|
|
224535
|
+
}
|
|
224536
|
+
]
|
|
224537
|
+
},
|
|
224538
|
+
webMessagesPerDay: {
|
|
224539
|
+
anyOf: [
|
|
224540
|
+
{
|
|
224541
|
+
type: "integer",
|
|
224542
|
+
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.",
|
|
224543
|
+
maximum: 1e5,
|
|
224544
|
+
minimum: 1
|
|
224545
|
+
},
|
|
224546
|
+
{
|
|
224547
|
+
type: "null"
|
|
224548
|
+
}
|
|
224549
|
+
]
|
|
224550
|
+
},
|
|
224551
|
+
whatsappConversationTokens: {
|
|
224552
|
+
anyOf: [
|
|
224553
|
+
{
|
|
224554
|
+
type: "integer",
|
|
224555
|
+
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.",
|
|
224556
|
+
maximum: 1000000000000,
|
|
224557
|
+
minimum: 1e4
|
|
224558
|
+
},
|
|
224559
|
+
{
|
|
224560
|
+
type: "null"
|
|
224561
|
+
}
|
|
224562
|
+
]
|
|
224563
|
+
},
|
|
224564
|
+
whatsappEnabled: {
|
|
224565
|
+
anyOf: [
|
|
224566
|
+
{
|
|
224567
|
+
type: "boolean",
|
|
224568
|
+
description: "Whether WhatsApp contacts can fall into spam (default true)."
|
|
224569
|
+
},
|
|
224570
|
+
{
|
|
224571
|
+
type: "null"
|
|
224572
|
+
}
|
|
224573
|
+
]
|
|
224574
|
+
},
|
|
224575
|
+
whatsappRepliesPerHour: {
|
|
224576
|
+
anyOf: [
|
|
224577
|
+
{
|
|
224578
|
+
type: "integer",
|
|
224579
|
+
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.",
|
|
224580
|
+
maximum: 1e4,
|
|
224581
|
+
minimum: 1
|
|
224582
|
+
},
|
|
224583
|
+
{
|
|
224584
|
+
type: "null"
|
|
224585
|
+
}
|
|
224586
|
+
]
|
|
224587
|
+
}
|
|
224588
|
+
},
|
|
224589
|
+
additionalProperties: false
|
|
224590
|
+
},
|
|
221813
224591
|
whatsapp: {
|
|
221814
224592
|
type: "object",
|
|
221815
224593
|
properties: {
|
|
@@ -241931,6 +244709,20 @@ var schemaComponents = {
|
|
|
241931
244709
|
},
|
|
241932
244710
|
additionalProperties: false
|
|
241933
244711
|
},
|
|
244712
|
+
AccountConnectionsRefreshInput: {
|
|
244713
|
+
type: "object",
|
|
244714
|
+
required: [
|
|
244715
|
+
"connectionId"
|
|
244716
|
+
],
|
|
244717
|
+
properties: {
|
|
244718
|
+
connectionId: {
|
|
244719
|
+
type: "string",
|
|
244720
|
+
pattern: "^con_[0-7][0-9a-hjkmnp-tv-z]{25}$",
|
|
244721
|
+
description: "A connection's id: con_ and 26 characters, stable and unique across the platform."
|
|
244722
|
+
}
|
|
244723
|
+
},
|
|
244724
|
+
additionalProperties: false
|
|
244725
|
+
},
|
|
241934
244726
|
AccountInvitationsListInput: {
|
|
241935
244727
|
type: "object",
|
|
241936
244728
|
required: [],
|
|
@@ -242284,51 +245076,160 @@ var schemaComponents = {
|
|
|
242284
245076
|
},
|
|
242285
245077
|
additionalProperties: false
|
|
242286
245078
|
},
|
|
242287
|
-
AccountRegistryInstallationsUpdateInput: {
|
|
245079
|
+
AccountRegistryInstallationsUpdateInput: {
|
|
245080
|
+
type: "object",
|
|
245081
|
+
required: [
|
|
245082
|
+
"integration",
|
|
245083
|
+
"installed"
|
|
245084
|
+
],
|
|
245085
|
+
properties: {
|
|
245086
|
+
integration: {
|
|
245087
|
+
type: "string",
|
|
245088
|
+
pattern: "^(adres|sisben|policia-colombia)$"
|
|
245089
|
+
},
|
|
245090
|
+
installed: {
|
|
245091
|
+
type: "boolean"
|
|
245092
|
+
}
|
|
245093
|
+
},
|
|
245094
|
+
additionalProperties: false
|
|
245095
|
+
},
|
|
245096
|
+
AccountRolesListInput: {
|
|
245097
|
+
type: "object",
|
|
245098
|
+
required: [],
|
|
245099
|
+
properties: {
|
|
245100
|
+
cursor: {
|
|
245101
|
+
type: "string",
|
|
245102
|
+
description: "Opaque cursor returned by pageInfo; omit it to request the first page."
|
|
245103
|
+
},
|
|
245104
|
+
direction: {
|
|
245105
|
+
anyOf: [
|
|
245106
|
+
{
|
|
245107
|
+
type: "string",
|
|
245108
|
+
const: "forward"
|
|
245109
|
+
},
|
|
245110
|
+
{
|
|
245111
|
+
type: "string",
|
|
245112
|
+
const: "backward"
|
|
245113
|
+
}
|
|
245114
|
+
],
|
|
245115
|
+
description: "Direction to traverse the stable keyset ordering from the supplied cursor.",
|
|
245116
|
+
default: "forward"
|
|
245117
|
+
},
|
|
245118
|
+
limit: {
|
|
245119
|
+
type: "integer",
|
|
245120
|
+
minimum: 1,
|
|
245121
|
+
maximum: 100,
|
|
245122
|
+
description: "Maximum items returned in one page. Defaults to 25; larger reads require another cursor.",
|
|
245123
|
+
default: 25
|
|
245124
|
+
}
|
|
245125
|
+
},
|
|
245126
|
+
additionalProperties: false
|
|
245127
|
+
},
|
|
245128
|
+
AccountServersCreateInput: {
|
|
242288
245129
|
type: "object",
|
|
242289
245130
|
required: [
|
|
242290
|
-
"
|
|
242291
|
-
"
|
|
245131
|
+
"name",
|
|
245132
|
+
"url",
|
|
245133
|
+
"secret"
|
|
242292
245134
|
],
|
|
242293
245135
|
properties: {
|
|
242294
|
-
|
|
245136
|
+
name: {
|
|
242295
245137
|
type: "string",
|
|
242296
|
-
|
|
245138
|
+
description: "The connection's name, as an agent's builder sees it and an agent picks it: 'Sede Norte'."
|
|
242297
245139
|
},
|
|
242298
|
-
|
|
242299
|
-
type: "
|
|
245140
|
+
url: {
|
|
245141
|
+
type: "string",
|
|
245142
|
+
format: "uri",
|
|
245143
|
+
maxLength: 2048,
|
|
245144
|
+
pattern: "^https://[^?#]+$",
|
|
245145
|
+
description: "The OpenAPI document or the MCP endpoint: https, at a public address, without a query or a fragment."
|
|
245146
|
+
},
|
|
245147
|
+
transport: {
|
|
245148
|
+
anyOf: [
|
|
245149
|
+
{
|
|
245150
|
+
type: "string",
|
|
245151
|
+
const: "http"
|
|
245152
|
+
},
|
|
245153
|
+
{
|
|
245154
|
+
type: "string",
|
|
245155
|
+
const: "mcp"
|
|
245156
|
+
}
|
|
245157
|
+
],
|
|
245158
|
+
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."
|
|
245159
|
+
},
|
|
245160
|
+
authHeader: {
|
|
245161
|
+
anyOf: [
|
|
245162
|
+
{
|
|
245163
|
+
type: "string",
|
|
245164
|
+
pattern: "^[A-Za-z][A-Za-z0-9-]{0,63}$",
|
|
245165
|
+
description: "The header that carries the secret; without it the secret is sent as Authorization: Bearer."
|
|
245166
|
+
},
|
|
245167
|
+
{
|
|
245168
|
+
type: "null"
|
|
245169
|
+
}
|
|
245170
|
+
],
|
|
245171
|
+
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."
|
|
245172
|
+
},
|
|
245173
|
+
secret: {
|
|
245174
|
+
type: "string",
|
|
245175
|
+
secret: true,
|
|
245176
|
+
writeOnly: true,
|
|
245177
|
+
minLength: 1,
|
|
245178
|
+
maxLength: 4096,
|
|
245179
|
+
pattern: "^[^\\r\\n]+$",
|
|
245180
|
+
description: "The secret the server admits calls with. Arbol keeps it encrypted, sends it only to this server and never shows it again."
|
|
242300
245181
|
}
|
|
242301
245182
|
},
|
|
242302
245183
|
additionalProperties: false
|
|
242303
245184
|
},
|
|
242304
|
-
|
|
245185
|
+
AccountServersDiscoverInput: {
|
|
242305
245186
|
type: "object",
|
|
242306
|
-
required: [
|
|
245187
|
+
required: [
|
|
245188
|
+
"url",
|
|
245189
|
+
"secret"
|
|
245190
|
+
],
|
|
242307
245191
|
properties: {
|
|
242308
|
-
|
|
245192
|
+
url: {
|
|
242309
245193
|
type: "string",
|
|
242310
|
-
|
|
245194
|
+
format: "uri",
|
|
245195
|
+
maxLength: 2048,
|
|
245196
|
+
pattern: "^https://[^?#]+$",
|
|
245197
|
+
description: "The OpenAPI document or the MCP endpoint: https, at a public address, without a query or a fragment."
|
|
242311
245198
|
},
|
|
242312
|
-
|
|
245199
|
+
transport: {
|
|
242313
245200
|
anyOf: [
|
|
242314
245201
|
{
|
|
242315
245202
|
type: "string",
|
|
242316
|
-
const: "
|
|
245203
|
+
const: "http"
|
|
242317
245204
|
},
|
|
242318
245205
|
{
|
|
242319
245206
|
type: "string",
|
|
242320
|
-
const: "
|
|
245207
|
+
const: "mcp"
|
|
242321
245208
|
}
|
|
242322
245209
|
],
|
|
242323
|
-
description: "
|
|
242324
|
-
default: "forward"
|
|
245210
|
+
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."
|
|
242325
245211
|
},
|
|
242326
|
-
|
|
242327
|
-
|
|
242328
|
-
|
|
242329
|
-
|
|
242330
|
-
|
|
242331
|
-
|
|
245212
|
+
authHeader: {
|
|
245213
|
+
anyOf: [
|
|
245214
|
+
{
|
|
245215
|
+
type: "string",
|
|
245216
|
+
pattern: "^[A-Za-z][A-Za-z0-9-]{0,63}$",
|
|
245217
|
+
description: "The header that carries the secret; without it the secret is sent as Authorization: Bearer."
|
|
245218
|
+
},
|
|
245219
|
+
{
|
|
245220
|
+
type: "null"
|
|
245221
|
+
}
|
|
245222
|
+
],
|
|
245223
|
+
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."
|
|
245224
|
+
},
|
|
245225
|
+
secret: {
|
|
245226
|
+
type: "string",
|
|
245227
|
+
secret: true,
|
|
245228
|
+
writeOnly: true,
|
|
245229
|
+
minLength: 1,
|
|
245230
|
+
maxLength: 4096,
|
|
245231
|
+
pattern: "^[^\\r\\n]+$",
|
|
245232
|
+
description: "The secret the server admits calls with. Arbol keeps it encrypted, sends it only to this server and never shows it again."
|
|
242332
245233
|
}
|
|
242333
245234
|
},
|
|
242334
245235
|
additionalProperties: false
|
|
@@ -251174,6 +254075,96 @@ var schemaComponents = {
|
|
|
251174
254075
|
}
|
|
251175
254076
|
}
|
|
251176
254077
|
},
|
|
254078
|
+
PijaosSaludAffiliationsLookupInput: {
|
|
254079
|
+
type: "object",
|
|
254080
|
+
required: [
|
|
254081
|
+
"connectionId",
|
|
254082
|
+
"documentType",
|
|
254083
|
+
"documentNumber"
|
|
254084
|
+
],
|
|
254085
|
+
properties: {
|
|
254086
|
+
connectionId: {
|
|
254087
|
+
type: "string",
|
|
254088
|
+
pattern: "^con_[0-9A-Za-z]{26}$"
|
|
254089
|
+
},
|
|
254090
|
+
documentType: {
|
|
254091
|
+
anyOf: [
|
|
254092
|
+
{
|
|
254093
|
+
type: "string",
|
|
254094
|
+
const: "NI"
|
|
254095
|
+
},
|
|
254096
|
+
{
|
|
254097
|
+
type: "string",
|
|
254098
|
+
const: "CC"
|
|
254099
|
+
},
|
|
254100
|
+
{
|
|
254101
|
+
type: "string",
|
|
254102
|
+
const: "MS"
|
|
254103
|
+
},
|
|
254104
|
+
{
|
|
254105
|
+
type: "string",
|
|
254106
|
+
const: "RC"
|
|
254107
|
+
},
|
|
254108
|
+
{
|
|
254109
|
+
type: "string",
|
|
254110
|
+
const: "TI"
|
|
254111
|
+
},
|
|
254112
|
+
{
|
|
254113
|
+
type: "string",
|
|
254114
|
+
const: "CE"
|
|
254115
|
+
},
|
|
254116
|
+
{
|
|
254117
|
+
type: "string",
|
|
254118
|
+
const: "PA"
|
|
254119
|
+
},
|
|
254120
|
+
{
|
|
254121
|
+
type: "string",
|
|
254122
|
+
const: "AS"
|
|
254123
|
+
},
|
|
254124
|
+
{
|
|
254125
|
+
type: "string",
|
|
254126
|
+
const: "CD"
|
|
254127
|
+
},
|
|
254128
|
+
{
|
|
254129
|
+
type: "string",
|
|
254130
|
+
const: "CN"
|
|
254131
|
+
},
|
|
254132
|
+
{
|
|
254133
|
+
type: "string",
|
|
254134
|
+
const: "SC"
|
|
254135
|
+
},
|
|
254136
|
+
{
|
|
254137
|
+
type: "string",
|
|
254138
|
+
const: "PE"
|
|
254139
|
+
},
|
|
254140
|
+
{
|
|
254141
|
+
type: "string",
|
|
254142
|
+
const: "PT"
|
|
254143
|
+
},
|
|
254144
|
+
{
|
|
254145
|
+
type: "string",
|
|
254146
|
+
const: "DE"
|
|
254147
|
+
},
|
|
254148
|
+
{
|
|
254149
|
+
type: "string",
|
|
254150
|
+
const: "OT"
|
|
254151
|
+
}
|
|
254152
|
+
]
|
|
254153
|
+
},
|
|
254154
|
+
maxAgeDays: {
|
|
254155
|
+
type: "integer",
|
|
254156
|
+
minimum: 0,
|
|
254157
|
+
maximum: 30,
|
|
254158
|
+
default: 7,
|
|
254159
|
+
description: "Maximum age in days of a result from this IPS connection. Zero contacts the provider and refreshes the saved result."
|
|
254160
|
+
},
|
|
254161
|
+
documentNumber: {
|
|
254162
|
+
type: "string",
|
|
254163
|
+
pattern: "^[A-Za-z0-9-]{1,40}$"
|
|
254164
|
+
}
|
|
254165
|
+
},
|
|
254166
|
+
additionalProperties: false
|
|
254167
|
+
},
|
|
251177
254168
|
PoliciaColombiaJudicialRecordsLookupInput: {
|
|
251178
254169
|
type: "object",
|
|
251179
254170
|
required: [
|
|
@@ -251337,7 +254328,7 @@ var schemaComponents = {
|
|
|
251337
254328
|
items: {
|
|
251338
254329
|
$ref: "#/components/schemas/RaizAgentIntegrationToolInput"
|
|
251339
254330
|
},
|
|
251340
|
-
description: "The integrations' tools the Agent may call, each on one of the organization's connections (`listConnections`, checked live in Account).
|
|
254331
|
+
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
254332
|
maxItems: 200
|
|
251342
254333
|
},
|
|
251343
254334
|
knowledgeDocumentIds: {
|
|
@@ -251508,7 +254499,7 @@ var schemaComponents = {
|
|
|
251508
254499
|
items: {
|
|
251509
254500
|
$ref: "#/components/schemas/RaizAgentIntegrationToolInput"
|
|
251510
254501
|
},
|
|
251511
|
-
description: "The integrations' tools the Agent may call, each on one of the organization's connections (`listConnections`, checked live in Account).
|
|
254502
|
+
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
254503
|
maxItems: 200
|
|
251513
254504
|
},
|
|
251514
254505
|
knowledgeDocumentIds: {
|
|
@@ -256061,6 +259052,10 @@ var schemaComponents = {
|
|
|
256061
259052
|
type: "string",
|
|
256062
259053
|
const: "outage-resolved"
|
|
256063
259054
|
},
|
|
259055
|
+
{
|
|
259056
|
+
type: "string",
|
|
259057
|
+
const: "spam-blocked"
|
|
259058
|
+
},
|
|
256064
259059
|
{
|
|
256065
259060
|
type: "string",
|
|
256066
259061
|
const: "template-approved"
|
|
@@ -256077,7 +259072,7 @@ var schemaComponents = {
|
|
|
256077
259072
|
},
|
|
256078
259073
|
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
259074
|
uniqueItems: true,
|
|
256080
|
-
maxItems:
|
|
259075
|
+
maxItems: 18
|
|
256081
259076
|
},
|
|
256082
259077
|
{
|
|
256083
259078
|
type: "null"
|
|
@@ -256236,6 +259231,149 @@ var schemaComponents = {
|
|
|
256236
259231
|
},
|
|
256237
259232
|
additionalProperties: false
|
|
256238
259233
|
},
|
|
259234
|
+
protection: {
|
|
259235
|
+
type: "object",
|
|
259236
|
+
properties: {
|
|
259237
|
+
spamHours: {
|
|
259238
|
+
anyOf: [
|
|
259239
|
+
{
|
|
259240
|
+
type: "integer",
|
|
259241
|
+
description: "Hours someone stays in spam once they pass a limit (default 6). A person can lift the rule earlier by deleting it.",
|
|
259242
|
+
maximum: 720,
|
|
259243
|
+
minimum: 1
|
|
259244
|
+
},
|
|
259245
|
+
{
|
|
259246
|
+
type: "null"
|
|
259247
|
+
}
|
|
259248
|
+
]
|
|
259249
|
+
},
|
|
259250
|
+
voiceCallsPerHour: {
|
|
259251
|
+
anyOf: [
|
|
259252
|
+
{
|
|
259253
|
+
type: "integer",
|
|
259254
|
+
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.",
|
|
259255
|
+
maximum: 1000,
|
|
259256
|
+
minimum: 1
|
|
259257
|
+
},
|
|
259258
|
+
{
|
|
259259
|
+
type: "null"
|
|
259260
|
+
}
|
|
259261
|
+
]
|
|
259262
|
+
},
|
|
259263
|
+
voiceEnabled: {
|
|
259264
|
+
anyOf: [
|
|
259265
|
+
{
|
|
259266
|
+
type: "boolean",
|
|
259267
|
+
description: "Whether callers can fall into spam (default true). False: no call is ever refused for what its number consumed."
|
|
259268
|
+
},
|
|
259269
|
+
{
|
|
259270
|
+
type: "null"
|
|
259271
|
+
}
|
|
259272
|
+
]
|
|
259273
|
+
},
|
|
259274
|
+
voiceMinutesPerDay: {
|
|
259275
|
+
anyOf: [
|
|
259276
|
+
{
|
|
259277
|
+
type: "integer",
|
|
259278
|
+
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.",
|
|
259279
|
+
maximum: 1440,
|
|
259280
|
+
minimum: 1
|
|
259281
|
+
},
|
|
259282
|
+
{
|
|
259283
|
+
type: "null"
|
|
259284
|
+
}
|
|
259285
|
+
]
|
|
259286
|
+
},
|
|
259287
|
+
voiceSilentCallsPerHour: {
|
|
259288
|
+
anyOf: [
|
|
259289
|
+
{
|
|
259290
|
+
type: "integer",
|
|
259291
|
+
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.",
|
|
259292
|
+
maximum: 1000,
|
|
259293
|
+
minimum: 1
|
|
259294
|
+
},
|
|
259295
|
+
{
|
|
259296
|
+
type: "null"
|
|
259297
|
+
}
|
|
259298
|
+
]
|
|
259299
|
+
},
|
|
259300
|
+
webConversationTokens: {
|
|
259301
|
+
anyOf: [
|
|
259302
|
+
{
|
|
259303
|
+
type: "integer",
|
|
259304
|
+
description: "Tokens one web conversation may use (default 10000000). A conversation that reaches it takes no more messages.",
|
|
259305
|
+
maximum: 1000000000000,
|
|
259306
|
+
minimum: 1e4
|
|
259307
|
+
},
|
|
259308
|
+
{
|
|
259309
|
+
type: "null"
|
|
259310
|
+
}
|
|
259311
|
+
]
|
|
259312
|
+
},
|
|
259313
|
+
webEnabled: {
|
|
259314
|
+
anyOf: [
|
|
259315
|
+
{
|
|
259316
|
+
type: "boolean",
|
|
259317
|
+
description: "Whether web chat visitors can fall into spam (default true)."
|
|
259318
|
+
},
|
|
259319
|
+
{
|
|
259320
|
+
type: "null"
|
|
259321
|
+
}
|
|
259322
|
+
]
|
|
259323
|
+
},
|
|
259324
|
+
webMessagesPerDay: {
|
|
259325
|
+
anyOf: [
|
|
259326
|
+
{
|
|
259327
|
+
type: "integer",
|
|
259328
|
+
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.",
|
|
259329
|
+
maximum: 1e5,
|
|
259330
|
+
minimum: 1
|
|
259331
|
+
},
|
|
259332
|
+
{
|
|
259333
|
+
type: "null"
|
|
259334
|
+
}
|
|
259335
|
+
]
|
|
259336
|
+
},
|
|
259337
|
+
whatsappConversationTokens: {
|
|
259338
|
+
anyOf: [
|
|
259339
|
+
{
|
|
259340
|
+
type: "integer",
|
|
259341
|
+
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.",
|
|
259342
|
+
maximum: 1000000000000,
|
|
259343
|
+
minimum: 1e4
|
|
259344
|
+
},
|
|
259345
|
+
{
|
|
259346
|
+
type: "null"
|
|
259347
|
+
}
|
|
259348
|
+
]
|
|
259349
|
+
},
|
|
259350
|
+
whatsappEnabled: {
|
|
259351
|
+
anyOf: [
|
|
259352
|
+
{
|
|
259353
|
+
type: "boolean",
|
|
259354
|
+
description: "Whether WhatsApp contacts can fall into spam (default true)."
|
|
259355
|
+
},
|
|
259356
|
+
{
|
|
259357
|
+
type: "null"
|
|
259358
|
+
}
|
|
259359
|
+
]
|
|
259360
|
+
},
|
|
259361
|
+
whatsappRepliesPerHour: {
|
|
259362
|
+
anyOf: [
|
|
259363
|
+
{
|
|
259364
|
+
type: "integer",
|
|
259365
|
+
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.",
|
|
259366
|
+
maximum: 1e4,
|
|
259367
|
+
minimum: 1
|
|
259368
|
+
},
|
|
259369
|
+
{
|
|
259370
|
+
type: "null"
|
|
259371
|
+
}
|
|
259372
|
+
]
|
|
259373
|
+
}
|
|
259374
|
+
},
|
|
259375
|
+
additionalProperties: false
|
|
259376
|
+
},
|
|
256239
259377
|
whatsapp: {
|
|
256240
259378
|
type: "object",
|
|
256241
259379
|
properties: {
|
|
@@ -260826,9 +263964,9 @@ var schemaComponents = {
|
|
|
260826
263964
|
// src/generated/generation.json
|
|
260827
263965
|
var generation_default = {
|
|
260828
263966
|
formatVersion: 6,
|
|
260829
|
-
release: "1.
|
|
260830
|
-
openapiSha256: "
|
|
260831
|
-
openapiContentSha256: "
|
|
263967
|
+
release: "1.20261118.215712",
|
|
263968
|
+
openapiSha256: "9c3af7c752e5528df0186b658fd7a2fc914b997f437c53d1eec5e16c6995b78c",
|
|
263969
|
+
openapiContentSha256: "1112b37d65d79b857a0d7b26ab4d7e10d9ba02fe06776ee2dd80a946c425d2d6",
|
|
260832
263970
|
forge: {
|
|
260833
263971
|
repository: "https://github.com/cloudflare/forge",
|
|
260834
263972
|
commit: "7f86447210b7bea3779bfdab3cd5655eade0eadb",
|
|
@@ -260841,7 +263979,7 @@ var generation_default = {
|
|
|
260841
263979
|
outputs: [
|
|
260842
263980
|
{
|
|
260843
263981
|
path: "src/generated/commands.ts",
|
|
260844
|
-
sha256: "
|
|
263982
|
+
sha256: "b851b242dc1b5f44afb21545138e31c8f93d0ff759940fbde107f8daf1ecfe34"
|
|
260845
263983
|
}
|
|
260846
263984
|
]
|
|
260847
263985
|
};
|
|
@@ -262441,7 +265579,7 @@ ${name}`);
|
|
|
262441
265579
|
}
|
|
262442
265580
|
|
|
262443
265581
|
// src/index.ts
|
|
262444
|
-
var VERSION = "3.
|
|
265582
|
+
var VERSION = "3.65.0";
|
|
262445
265583
|
var RELEASE = generation_default.release;
|
|
262446
265584
|
var commands2 = { ...commands, ...accountOperatorCommands };
|
|
262447
265585
|
var SDK_PATHS = new Map(Object.values(commands2).map((command) => [command.operation, command.sdkPath]));
|
|
@@ -262472,6 +265610,10 @@ Auth
|
|
|
262472
265610
|
Operations
|
|
262473
265611
|
<service> <resource> <verb> Run one; arbol <service> lists its commands
|
|
262474
265612
|
|
|
265613
|
+
Your organization's own servers (a person's login, never an API key; arbol connections --help)
|
|
265614
|
+
connections tools list <connectionId> The tools a connection offers
|
|
265615
|
+
connections tools run <connectionId> <tool> Run one, with --arguments <json> or --input <file|->
|
|
265616
|
+
|
|
262475
265617
|
Services
|
|
262476
265618
|
${SERVICES.join(", ")}
|
|
262477
265619
|
|
|
@@ -262637,6 +265779,7 @@ Run one with --help to see its fields.
|
|
|
262637
265779
|
async function main(argv, { root, keys } = {}) {
|
|
262638
265780
|
const words = commandWords(parseArgs({ args: argv, allowPositionals: true, strict: false, options: GLOBAL }).positionals);
|
|
262639
265781
|
const found = words[0] === "auth" ? null : findCommand(words);
|
|
265782
|
+
const servers = words[0] === CONNECTIONS;
|
|
262640
265783
|
const fieldOptions = Object.fromEntries((found?.command.fields ?? []).map((field) => [field.flag, { type: "string" }]));
|
|
262641
265784
|
let parsed;
|
|
262642
265785
|
try {
|
|
@@ -262644,7 +265787,7 @@ async function main(argv, { root, keys } = {}) {
|
|
|
262644
265787
|
args: argv,
|
|
262645
265788
|
allowPositionals: true,
|
|
262646
265789
|
strict: true,
|
|
262647
|
-
options: { ...GLOBAL, ...fieldOptions }
|
|
265790
|
+
options: { ...GLOBAL, ...fieldOptions, ...servers ? CONNECTION_FLAGS : {} }
|
|
262648
265791
|
});
|
|
262649
265792
|
} catch (error) {
|
|
262650
265793
|
throw new UsageError(`${error instanceof Error ? error.message : String(error)}
|
|
@@ -262662,7 +265805,7 @@ Run arbol --help.`);
|
|
|
262662
265805
|
process.stdout.write(listing);
|
|
262663
265806
|
return;
|
|
262664
265807
|
}
|
|
262665
|
-
if (!positionals.length || values.help && !found || positionals[0] === "auth" && positionals.length === 1) {
|
|
265808
|
+
if (!positionals.length || values.help && !found && !servers || positionals[0] === "auth" && positionals.length === 1) {
|
|
262666
265809
|
process.stdout.write(HELP);
|
|
262667
265810
|
return;
|
|
262668
265811
|
}
|
|
@@ -262698,6 +265841,18 @@ Run arbol --help.`);
|
|
|
262698
265841
|
if (machine && values.profile) {
|
|
262699
265842
|
throw new UsageError("An API key from --api-key-stdin or ARBOL_API_KEY and --profile both name a credential");
|
|
262700
265843
|
}
|
|
265844
|
+
if (servers) {
|
|
265845
|
+
const flags = {
|
|
265846
|
+
arguments: values.arguments,
|
|
265847
|
+
dryRun: values["dry-run"],
|
|
265848
|
+
help: values.help,
|
|
265849
|
+
input: values.input,
|
|
265850
|
+
json: values.json,
|
|
265851
|
+
noBrowser: values["no-browser"]
|
|
265852
|
+
};
|
|
265853
|
+
await connectionCommand(positionals, flags, { machine, selected, required, credentialsFor });
|
|
265854
|
+
return;
|
|
265855
|
+
}
|
|
262701
265856
|
if (positionals[0] === "auth") {
|
|
262702
265857
|
const action = positionals[1];
|
|
262703
265858
|
if (values.input || values["api-key-stdin"]) {
|
|
@@ -263048,6 +266203,84 @@ Services: ${SERVICES.join(", ")}. Run arbol --help.`);
|
|
|
263048
266203
|
`);
|
|
263049
266204
|
}
|
|
263050
266205
|
}
|
|
266206
|
+
var PERSON_ONLY = "Organization servers take a person's login (arbol auth login): the API refuses API keys on these routes";
|
|
266207
|
+
var CONNECTIONS_USAGE = `Usage:
|
|
266208
|
+
arbol connections tools list <connectionId>
|
|
266209
|
+
arbol connections tools run <connectionId> <tool> [--arguments <json> | --input <file|->]
|
|
266210
|
+
Run arbol connections --help.`;
|
|
266211
|
+
async function toolArguments(flags) {
|
|
266212
|
+
const text = flags.arguments ?? (flags.input === undefined ? "{}" : await readInput(flags.input));
|
|
266213
|
+
let value;
|
|
266214
|
+
try {
|
|
266215
|
+
value = JSON.parse(text);
|
|
266216
|
+
} catch {
|
|
266217
|
+
throw new UsageError("The arguments must be one JSON object");
|
|
266218
|
+
}
|
|
266219
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
266220
|
+
throw new UsageError("The arguments must be one JSON object");
|
|
266221
|
+
}
|
|
266222
|
+
return value;
|
|
266223
|
+
}
|
|
266224
|
+
async function connectionCommand(positionals, flags, access) {
|
|
266225
|
+
const [, resource, verb, connectionId, tool, ...extra] = positionals;
|
|
266226
|
+
if (flags.help || resource === undefined) {
|
|
266227
|
+
process.stdout.write(CONNECTIONS_HELP);
|
|
266228
|
+
return;
|
|
266229
|
+
}
|
|
266230
|
+
const list = verb === "list" && tool === undefined;
|
|
266231
|
+
const run = verb === "run" && tool !== undefined && extra.length === 0;
|
|
266232
|
+
if (resource !== "tools" || connectionId === undefined || !(list || run)) {
|
|
266233
|
+
throw new UsageError(CONNECTIONS_USAGE);
|
|
266234
|
+
}
|
|
266235
|
+
if (!validSegment(connectionId) || tool !== undefined && !validSegment(tool)) {
|
|
266236
|
+
throw new UsageError("A connection id and a tool name are one path segment each: no spaces, /, \\, ? or #");
|
|
266237
|
+
}
|
|
266238
|
+
if (flags.json) {
|
|
266239
|
+
throw new UsageError("--json applies to arbol auth status; these commands always print JSON");
|
|
266240
|
+
}
|
|
266241
|
+
if (flags.noBrowser) {
|
|
266242
|
+
throw new UsageError("--no-browser applies only to arbol auth login and arbol auth switch");
|
|
266243
|
+
}
|
|
266244
|
+
if (access.machine) {
|
|
266245
|
+
throw new UsageError(`${PERSON_ONLY}; unset ARBOL_API_KEY or drop --api-key-stdin`);
|
|
266246
|
+
}
|
|
266247
|
+
if (list && (flags.arguments !== undefined || flags.input !== undefined)) {
|
|
266248
|
+
throw new UsageError("arbol connections tools list takes no arguments");
|
|
266249
|
+
}
|
|
266250
|
+
if (flags.arguments !== undefined && flags.input !== undefined) {
|
|
266251
|
+
throw new UsageError("Give the arguments once: --arguments or --input");
|
|
266252
|
+
}
|
|
266253
|
+
const args = run ? await toolArguments(flags) : {};
|
|
266254
|
+
if (flags.dryRun) {
|
|
266255
|
+
const chosen = await access.selected();
|
|
266256
|
+
const api = chosen ? apiOf(chosen.profile) : chosenApi();
|
|
266257
|
+
const request = tool === undefined ? toolsListRequest(api, connectionId) : toolRunRequest(api, connectionId, tool, args);
|
|
266258
|
+
process.stdout.write(`${JSON.stringify(request, null, 2)}
|
|
266259
|
+
`);
|
|
266260
|
+
return;
|
|
266261
|
+
}
|
|
266262
|
+
const { name, profile } = await access.required();
|
|
266263
|
+
if (profile.kind !== "login") {
|
|
266264
|
+
throw new UsageError(`Profile ${name} holds an API key. ${PERSON_ONLY}`);
|
|
266265
|
+
}
|
|
266266
|
+
const { api } = profile.auth;
|
|
266267
|
+
if (process.env.ARBOL_API_URL && chosenApi() !== api) {
|
|
266268
|
+
throw new UsageError(`Profile ${name} is for ${api}, not ${chosenApi()} (ARBOL_API_URL)`);
|
|
266269
|
+
}
|
|
266270
|
+
const token = await accessToken(access.credentialsFor(name, profile.auth));
|
|
266271
|
+
if (tool === undefined) {
|
|
266272
|
+
const tools = await listConnectionTools(api, token, connectionId);
|
|
266273
|
+
process.stdout.write(`${JSON.stringify(tools, null, 2)}
|
|
266274
|
+
`);
|
|
266275
|
+
return;
|
|
266276
|
+
}
|
|
266277
|
+
const { data, requestId } = await runConnectionTool(api, token, connectionId, tool, args);
|
|
266278
|
+
process.stdout.write(`${JSON.stringify(data, null, 2)}
|
|
266279
|
+
`);
|
|
266280
|
+
if (data && typeof data === "object" && data.isError === true) {
|
|
266281
|
+
throw new ConnectionRefusal("TOOL_REFUSED", "The server refused this call; its answer is above", requestId);
|
|
266282
|
+
}
|
|
266283
|
+
}
|
|
263051
266284
|
async function call(client, name, input) {
|
|
263052
266285
|
const method = SDK_PATHS.get(name)?.reduce((node, key) => node?.[key], client);
|
|
263053
266286
|
if (typeof method !== "function") {
|