@arbol-ai/cli 3.67.0 → 3.68.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2216 -313
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1017,11 +1017,86 @@ var commands = {
|
|
|
1017
1017
|
additionalProperties: false
|
|
1018
1018
|
},
|
|
1019
1019
|
title: "Get billing",
|
|
1020
|
-
description: "The organization's wallet in credits (one credit is one US dollar): credits left, granted and spent in the current period, whether running out stops service, its plans
|
|
1020
|
+
description: "The organization's wallet in credits (one credit is one US dollar): credits left, granted and spent in the current period, whether running out stops service, its plans, the card a top-up charges, how much it has topped up, the credits Arbol gave that are still in force, and its plan's allowances.",
|
|
1021
1021
|
effect: "read",
|
|
1022
1022
|
confirmation: null,
|
|
1023
1023
|
hidden: false
|
|
1024
1024
|
},
|
|
1025
|
+
"account billing update": {
|
|
1026
|
+
operation: "account.billing.update",
|
|
1027
|
+
sdkPath: [
|
|
1028
|
+
"account",
|
|
1029
|
+
"billing",
|
|
1030
|
+
"update"
|
|
1031
|
+
],
|
|
1032
|
+
pathField: null,
|
|
1033
|
+
fields: [
|
|
1034
|
+
{
|
|
1035
|
+
name: "lowBalanceAlert",
|
|
1036
|
+
flag: "low-balance-alert",
|
|
1037
|
+
kind: "number",
|
|
1038
|
+
required: false,
|
|
1039
|
+
description: "The balance at which administrators are emailed; null turns it off."
|
|
1040
|
+
}
|
|
1041
|
+
],
|
|
1042
|
+
inputSchema: {
|
|
1043
|
+
type: "object",
|
|
1044
|
+
properties: {
|
|
1045
|
+
autoTopUp: {
|
|
1046
|
+
type: "object",
|
|
1047
|
+
required: [
|
|
1048
|
+
"enabled",
|
|
1049
|
+
"threshold",
|
|
1050
|
+
"credits",
|
|
1051
|
+
"perMonth"
|
|
1052
|
+
],
|
|
1053
|
+
properties: {
|
|
1054
|
+
enabled: {
|
|
1055
|
+
type: "boolean"
|
|
1056
|
+
},
|
|
1057
|
+
threshold: {
|
|
1058
|
+
type: "number",
|
|
1059
|
+
minimum: 0,
|
|
1060
|
+
maximum: 1e5,
|
|
1061
|
+
description: "When the balance falls below this…"
|
|
1062
|
+
},
|
|
1063
|
+
credits: {
|
|
1064
|
+
type: "integer",
|
|
1065
|
+
minimum: 10,
|
|
1066
|
+
maximum: 1e4,
|
|
1067
|
+
description: "…buy this many credits with the saved card…"
|
|
1068
|
+
},
|
|
1069
|
+
perMonth: {
|
|
1070
|
+
type: "integer",
|
|
1071
|
+
minimum: 1,
|
|
1072
|
+
maximum: 31,
|
|
1073
|
+
description: "…at most this many times a month."
|
|
1074
|
+
}
|
|
1075
|
+
},
|
|
1076
|
+
additionalProperties: false
|
|
1077
|
+
},
|
|
1078
|
+
lowBalanceAlert: {
|
|
1079
|
+
anyOf: [
|
|
1080
|
+
{
|
|
1081
|
+
type: "number",
|
|
1082
|
+
minimum: 0,
|
|
1083
|
+
maximum: 1e5
|
|
1084
|
+
},
|
|
1085
|
+
{
|
|
1086
|
+
type: "null"
|
|
1087
|
+
}
|
|
1088
|
+
],
|
|
1089
|
+
description: "The balance at which administrators are emailed; null turns it off."
|
|
1090
|
+
}
|
|
1091
|
+
},
|
|
1092
|
+
additionalProperties: false
|
|
1093
|
+
},
|
|
1094
|
+
title: "Change the automatic top-up and the low-balance alert",
|
|
1095
|
+
description: "Turns the automatic top-up on or off (the balance that triggers it, the credits it buys with the saved card, the most times a month) and sets the balance at which the organization's administrators are emailed.",
|
|
1096
|
+
effect: "write",
|
|
1097
|
+
confirmation: null,
|
|
1098
|
+
hidden: false
|
|
1099
|
+
},
|
|
1025
1100
|
"account billing-portal-sessions create": {
|
|
1026
1101
|
operation: "account.billingPortalSessions.create",
|
|
1027
1102
|
sdkPath: [
|
|
@@ -1037,7 +1112,7 @@ var commands = {
|
|
|
1037
1112
|
additionalProperties: false
|
|
1038
1113
|
},
|
|
1039
1114
|
title: "Open the card portal",
|
|
1040
|
-
description: "A session of
|
|
1115
|
+
description: "A session of the payment processor's portal, where the organization's people change its saved card and download its card receipts.",
|
|
1041
1116
|
effect: "write",
|
|
1042
1117
|
confirmation: null,
|
|
1043
1118
|
hidden: false
|
|
@@ -1350,7 +1425,7 @@ var commands = {
|
|
|
1350
1425
|
additionalProperties: false
|
|
1351
1426
|
},
|
|
1352
1427
|
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.",
|
|
1428
|
+
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. A new Agenda seat the organization's wallet cannot pay is refused with INSUFFICIENT_CREDITS once billing stops service at zero.",
|
|
1354
1429
|
effect: "write",
|
|
1355
1430
|
confirmation: null,
|
|
1356
1431
|
hidden: false
|
|
@@ -1460,6 +1535,81 @@ var commands = {
|
|
|
1460
1535
|
confirmation: null,
|
|
1461
1536
|
hidden: false
|
|
1462
1537
|
},
|
|
1538
|
+
"account invoices list": {
|
|
1539
|
+
operation: "account.invoices.list",
|
|
1540
|
+
sdkPath: [
|
|
1541
|
+
"account",
|
|
1542
|
+
"invoices",
|
|
1543
|
+
"list"
|
|
1544
|
+
],
|
|
1545
|
+
pathField: null,
|
|
1546
|
+
fields: [
|
|
1547
|
+
{
|
|
1548
|
+
name: "cursor",
|
|
1549
|
+
flag: "cursor",
|
|
1550
|
+
kind: "string",
|
|
1551
|
+
required: false,
|
|
1552
|
+
description: "Opaque cursor returned by pageInfo; omit it to request the first page."
|
|
1553
|
+
},
|
|
1554
|
+
{
|
|
1555
|
+
name: "direction",
|
|
1556
|
+
flag: "direction",
|
|
1557
|
+
kind: "string",
|
|
1558
|
+
required: false,
|
|
1559
|
+
description: "Direction to traverse the stable keyset ordering from the supplied cursor.",
|
|
1560
|
+
choices: [
|
|
1561
|
+
"forward",
|
|
1562
|
+
"backward"
|
|
1563
|
+
],
|
|
1564
|
+
default: "forward"
|
|
1565
|
+
},
|
|
1566
|
+
{
|
|
1567
|
+
name: "limit",
|
|
1568
|
+
flag: "limit",
|
|
1569
|
+
kind: "integer",
|
|
1570
|
+
required: false,
|
|
1571
|
+
description: "Maximum items returned in one page. Defaults to 25; larger reads require another cursor.",
|
|
1572
|
+
default: 25
|
|
1573
|
+
}
|
|
1574
|
+
],
|
|
1575
|
+
inputSchema: {
|
|
1576
|
+
type: "object",
|
|
1577
|
+
required: [],
|
|
1578
|
+
properties: {
|
|
1579
|
+
cursor: {
|
|
1580
|
+
type: "string",
|
|
1581
|
+
description: "Opaque cursor returned by pageInfo; omit it to request the first page."
|
|
1582
|
+
},
|
|
1583
|
+
direction: {
|
|
1584
|
+
anyOf: [
|
|
1585
|
+
{
|
|
1586
|
+
type: "string",
|
|
1587
|
+
const: "forward"
|
|
1588
|
+
},
|
|
1589
|
+
{
|
|
1590
|
+
type: "string",
|
|
1591
|
+
const: "backward"
|
|
1592
|
+
}
|
|
1593
|
+
],
|
|
1594
|
+
description: "Direction to traverse the stable keyset ordering from the supplied cursor.",
|
|
1595
|
+
default: "forward"
|
|
1596
|
+
},
|
|
1597
|
+
limit: {
|
|
1598
|
+
type: "integer",
|
|
1599
|
+
minimum: 1,
|
|
1600
|
+
maximum: 100,
|
|
1601
|
+
description: "Maximum items returned in one page. Defaults to 25; larger reads require another cursor.",
|
|
1602
|
+
default: 25
|
|
1603
|
+
}
|
|
1604
|
+
},
|
|
1605
|
+
additionalProperties: false
|
|
1606
|
+
},
|
|
1607
|
+
title: "List invoices",
|
|
1608
|
+
description: "The organization's invoices in one list, newest first: those the payment processor generated, each with its own page, and those Arbol issued and uploaded, each with its files. One page: the most recent `limit`.",
|
|
1609
|
+
effect: "read",
|
|
1610
|
+
confirmation: null,
|
|
1611
|
+
hidden: false
|
|
1612
|
+
},
|
|
1463
1613
|
"account members create": {
|
|
1464
1614
|
operation: "account.members.create",
|
|
1465
1615
|
sdkPath: [
|
|
@@ -1542,7 +1692,7 @@ var commands = {
|
|
|
1542
1692
|
additionalProperties: false
|
|
1543
1693
|
},
|
|
1544
1694
|
title: "Give a member a role in a product",
|
|
1545
|
-
description: "Gives someone with an existing Arbol account a role in Raíz, Agenda, Ámbar or Account, joining them to this organization when needed. They sign in with their current password. Someone without an account is invited with `invitations.create`.",
|
|
1695
|
+
description: "Gives someone with an existing Arbol account a role in Raíz, Agenda, Ámbar or Account, joining them to this organization when needed. They sign in with their current password. Someone without an account is invited with `invitations.create`. A new Agenda seat the organization's wallet cannot pay is refused with INSUFFICIENT_CREDITS once billing stops service at zero.",
|
|
1546
1696
|
effect: "write",
|
|
1547
1697
|
confirmation: null,
|
|
1548
1698
|
hidden: false
|
|
@@ -1735,7 +1885,7 @@ var commands = {
|
|
|
1735
1885
|
additionalProperties: false
|
|
1736
1886
|
},
|
|
1737
1887
|
title: "Change someone's role in a product",
|
|
1738
|
-
description: "Sets a member's role in Raíz, Agenda, Ámbar or Account, or removes their access to that product with null. Their other roles stay.",
|
|
1888
|
+
description: "Sets a member's role in Raíz, Agenda, Ámbar or Account, or removes their access to that product with null. Their other roles stay. A new Agenda seat the organization's wallet cannot pay is refused with INSUFFICIENT_CREDITS once billing stops service at zero.",
|
|
1739
1889
|
effect: "write",
|
|
1740
1890
|
confirmation: null,
|
|
1741
1891
|
hidden: false
|
|
@@ -1929,6 +2079,26 @@ var commands = {
|
|
|
1929
2079
|
confirmation: null,
|
|
1930
2080
|
hidden: false
|
|
1931
2081
|
},
|
|
2082
|
+
"account payment-method-setups create": {
|
|
2083
|
+
operation: "account.paymentMethodSetups.create",
|
|
2084
|
+
sdkPath: [
|
|
2085
|
+
"account",
|
|
2086
|
+
"paymentMethodSetups",
|
|
2087
|
+
"create"
|
|
2088
|
+
],
|
|
2089
|
+
pathField: null,
|
|
2090
|
+
fields: [],
|
|
2091
|
+
inputSchema: {
|
|
2092
|
+
type: "object",
|
|
2093
|
+
properties: {},
|
|
2094
|
+
additionalProperties: false
|
|
2095
|
+
},
|
|
2096
|
+
title: "Add or change the card",
|
|
2097
|
+
description: "A page of the payment processor to add or change the organization's card without buying anything; the card becomes the one top-ups charge, and the person comes back to the Payment page.",
|
|
2098
|
+
effect: "write",
|
|
2099
|
+
confirmation: null,
|
|
2100
|
+
hidden: false
|
|
2101
|
+
},
|
|
1932
2102
|
"account permissions list": {
|
|
1933
2103
|
operation: "account.permissions.list",
|
|
1934
2104
|
sdkPath: [
|
|
@@ -2359,7 +2529,7 @@ var commands = {
|
|
|
2359
2529
|
flag: "to",
|
|
2360
2530
|
kind: "string",
|
|
2361
2531
|
required: false,
|
|
2362
|
-
description: "End of the range; now by default."
|
|
2532
|
+
description: "End of the range; now by default. At most 366 days after `from`."
|
|
2363
2533
|
},
|
|
2364
2534
|
{
|
|
2365
2535
|
name: "groupBy",
|
|
@@ -2369,8 +2539,17 @@ var commands = {
|
|
|
2369
2539
|
description: "Breaks each feature down; by product by default.",
|
|
2370
2540
|
choices: [
|
|
2371
2541
|
"product",
|
|
2372
|
-
"channel"
|
|
2542
|
+
"channel",
|
|
2543
|
+
"agent",
|
|
2544
|
+
"campaign"
|
|
2373
2545
|
]
|
|
2546
|
+
},
|
|
2547
|
+
{
|
|
2548
|
+
name: "timezone",
|
|
2549
|
+
flag: "timezone",
|
|
2550
|
+
kind: "string",
|
|
2551
|
+
required: false,
|
|
2552
|
+
description: "An IANA time zone (`America/Bogota`) that days and the default month follow; UTC by default."
|
|
2374
2553
|
}
|
|
2375
2554
|
],
|
|
2376
2555
|
inputSchema: {
|
|
@@ -2384,7 +2563,7 @@ var commands = {
|
|
|
2384
2563
|
to: {
|
|
2385
2564
|
type: "string",
|
|
2386
2565
|
format: "date-time",
|
|
2387
|
-
description: "End of the range; now by default."
|
|
2566
|
+
description: "End of the range; now by default. At most 366 days after `from`."
|
|
2388
2567
|
},
|
|
2389
2568
|
groupBy: {
|
|
2390
2569
|
anyOf: [
|
|
@@ -2395,15 +2574,29 @@ var commands = {
|
|
|
2395
2574
|
{
|
|
2396
2575
|
type: "string",
|
|
2397
2576
|
const: "channel"
|
|
2577
|
+
},
|
|
2578
|
+
{
|
|
2579
|
+
type: "string",
|
|
2580
|
+
const: "agent"
|
|
2581
|
+
},
|
|
2582
|
+
{
|
|
2583
|
+
type: "string",
|
|
2584
|
+
const: "campaign"
|
|
2398
2585
|
}
|
|
2399
2586
|
],
|
|
2400
2587
|
description: "Breaks each feature down; by product by default."
|
|
2588
|
+
},
|
|
2589
|
+
timezone: {
|
|
2590
|
+
type: "string",
|
|
2591
|
+
minLength: 1,
|
|
2592
|
+
maxLength: 64,
|
|
2593
|
+
description: "An IANA time zone (`America/Bogota`) that days and the default month follow; UTC by default."
|
|
2401
2594
|
}
|
|
2402
2595
|
},
|
|
2403
2596
|
additionalProperties: false
|
|
2404
2597
|
},
|
|
2405
2598
|
title: "Get the usage summary",
|
|
2406
|
-
description: "What the organization used in a range
|
|
2599
|
+
description: "What the organization used in a range (the current month by default, at most 366 days): each metered feature in its own units (minutes, conversations, lookups…) and its value in credits at the organization's own rates, broken down by product, channel, Agent or campaign, a series by day in the organization's time zone, and the credits its wallet paid.",
|
|
2407
2600
|
effect: "read",
|
|
2408
2601
|
confirmation: null,
|
|
2409
2602
|
hidden: false
|
|
@@ -2441,7 +2634,7 @@ var commands = {
|
|
|
2441
2634
|
additionalProperties: false
|
|
2442
2635
|
},
|
|
2443
2636
|
title: "Top up the wallet",
|
|
2444
|
-
description: "Buys credits at one US dollar each. The organization's saved card is charged at once; without one, or when the bank asks to confirm, the answer is
|
|
2637
|
+
description: "Buys credits at one US dollar each. The organization's saved card is charged at once; without one, or when the bank asks to confirm, the answer is the payment processor's page to pay on. Never repeated on its own: a lost answer is OUTCOME_UNKNOWN, and the wallet's transactions say whether it was paid.",
|
|
2445
2638
|
effect: "write",
|
|
2446
2639
|
confirmation: null,
|
|
2447
2640
|
hidden: false
|
|
@@ -2516,7 +2709,7 @@ var commands = {
|
|
|
2516
2709
|
additionalProperties: false
|
|
2517
2710
|
},
|
|
2518
2711
|
title: "List wallet transactions",
|
|
2519
|
-
description: "What moved the organization's wallet, newest first: top-ups, plan grants and renewals, adjustments
|
|
2712
|
+
description: "What moved the organization's wallet, newest first: top-ups, transfers, credits Arbol gave (by name), plan grants and renewals, adjustments, and the credits spent, one entry per UTC day, each with whether it was paid or granted and the balance right after it. Listed forward only.",
|
|
2520
2713
|
effect: "read",
|
|
2521
2714
|
confirmation: null,
|
|
2522
2715
|
hidden: false
|
|
@@ -20711,7 +20904,7 @@ var commands = {
|
|
|
20711
20904
|
additionalProperties: false
|
|
20712
20905
|
},
|
|
20713
20906
|
title: "Get a campaign",
|
|
20714
|
-
description: "Read one campaign: Agent, schedule, contact hours, retries, progress and, in `errorCode`, why it cannot reach anyone now. `expand=recipients` adds its recipients in the order they were added, each with attempts, next attempt, error and latest call or message; continue with `recipientsCursor` (`recipientsDirection` reads the other way). `expand=readiness` says whether it can start
|
|
20907
|
+
description: "Read one campaign: Agent, schedule, contact hours, retries, progress and, in `errorCode`, why it cannot reach anyone now. `expand=recipients` adds its recipients in the order they were added, each with attempts, next attempt, error and latest call or message; continue with `recipientsCursor` (`recipientsDirection` reads the other way). `expand=readiness` says whether it can start, lists what has to be fixed first and estimates what reaching each pending recipient once would cost in credits against the organization's balance (`estimate`), without reaching anyone. `expand=results` counts what people answered, by the Agent's data definitions with options; each recipient also says their own. Read it before `update_campaign` and send `expectedVersion`.",
|
|
20715
20908
|
effect: "read",
|
|
20716
20909
|
confirmation: null,
|
|
20717
20910
|
hidden: false
|
|
@@ -20901,7 +21094,7 @@ var commands = {
|
|
|
20901
21094
|
]
|
|
20902
21095
|
},
|
|
20903
21096
|
title: "Start a campaign",
|
|
20904
|
-
description: "Start reaching people: from now on the campaign's due recipients are called, at most `settings.channels.maxConcurrentOutboundCalls` (five by default) at once across the organization, or sent their message, a few a second. A call campaign needs an active, published voice Agent (VOICE_AGENT_NOT_READY). A WhatsApp campaign needs an active text Agent (CAMPAIGN_AGENT_NOT_READY), a line that can send (CHANNEL_NOT_READY), an approved template whose parameters fit (a `TEMPLATE_*` code), a value for every variable (CAMPAIGN_VARIABLE_MISSING) and, when the template's header is a document, image or video, the first pending recipient's own `header` file (CAMPAIGN_HEADER_MISSING). A recipient must be pending (CAMPAIGN_NO_RECIPIENTS). `get_campaign` with `expand=readiness` lists all of this beforehand. A campaign starts once: starting a running one changes nothing, and a paused one resumes with `update_campaign` and `paused: false`. Not an AI tool: it reaches real people.",
|
|
21097
|
+
description: "Start reaching people: from now on the campaign's due recipients are called, at most `settings.channels.maxConcurrentOutboundCalls` (five by default) at once across the organization, or sent their message, a few a second. A call campaign needs an active, published voice Agent (VOICE_AGENT_NOT_READY). A WhatsApp campaign needs an active text Agent (CAMPAIGN_AGENT_NOT_READY), a line that can send (CHANNEL_NOT_READY), an approved template whose parameters fit (a `TEMPLATE_*` code), a value for every variable (CAMPAIGN_VARIABLE_MISSING) and, when the template's header is a document, image or video, the first pending recipient's own `header` file (CAMPAIGN_HEADER_MISSING). A recipient must be pending (CAMPAIGN_NO_RECIPIENTS). What reaching each pending recipient once would cost is checked against the organization's balance: when the balance does not cover it and billing stops the organization's work for that, it does not start (CREDITS_EXHAUSTED). `get_campaign` with `expand=readiness` lists all of this beforehand, with the estimate. A campaign starts once: starting a running one changes nothing, and a paused one resumes with `update_campaign` and `paused: false`. Not an AI tool: it reaches real people.",
|
|
20905
21098
|
effect: "write",
|
|
20906
21099
|
confirmation: null,
|
|
20907
21100
|
hidden: false
|
|
@@ -27179,6 +27372,10 @@ var commands = {
|
|
|
27179
27372
|
type: "string",
|
|
27180
27373
|
const: "channel-restored"
|
|
27181
27374
|
},
|
|
27375
|
+
{
|
|
27376
|
+
type: "string",
|
|
27377
|
+
const: "credits-exhausted"
|
|
27378
|
+
},
|
|
27182
27379
|
{
|
|
27183
27380
|
type: "string",
|
|
27184
27381
|
const: "import-finished"
|
|
@@ -27219,7 +27416,7 @@ var commands = {
|
|
|
27219
27416
|
},
|
|
27220
27417
|
description: "Product emails enabled for this organization. All are enabled unless the organization saves a selection. An empty selection turns all of them off.",
|
|
27221
27418
|
uniqueItems: true,
|
|
27222
|
-
maxItems:
|
|
27419
|
+
maxItems: 19
|
|
27223
27420
|
},
|
|
27224
27421
|
{
|
|
27225
27422
|
type: "null"
|
|
@@ -28165,7 +28362,7 @@ var commands = {
|
|
|
28165
28362
|
flag: "name",
|
|
28166
28363
|
kind: "string",
|
|
28167
28364
|
required: true,
|
|
28168
|
-
description: "`conversations_daily`: conversations the AI took part in per day, Agent, channel type and direction, with outcomes and escalations (filters `agentId`, `channelType`). `handoffs_daily`: the conversations the AI handed to the team, per day of the handoff, Agent and person (who answered first, else the case's owner), with how many were answered, answered in time, still waiting, closed unattended or returned to the AI, and the average seconds to the first answer (filter `agentId`). `booking_details`: individual patients and appointments from explicit successful creation receipts, including specialty, paired exams, deduplication, matched patient names and later recorded cancellations; filters agentId and specialty; requires conversation read/write permission too. Historical receipts with created=true, not current provider status or all provider protocols. unverifiedCount covers explicit creations missing a stable patient/slot. `booking_outcomes`: verified saved booking receipts per completion day, Agent and integration, excluding test/import/deleted conversations; confirmed new bookings, reschedules, cancellations, failed, pending, unverified and duplicate receipts separately (filter `agentId`). Historical evidence, not current appointment status; hasMore requires splitting the range and returns no partial totals. `tool_calls_daily`: tool calls per day, Agent and tool with failures/durations (filter `agentId`). `tool_calls`: individual calls, never inputs/outputs (filter `agentId`). `assessment_results_daily`: assessments per day/definition (filter `definitionId`). `pqrsf_daily`: classification, confirmed resolution and referral-link counts from the pqrsf_* definitions, including pending/unclassified conversations, excluding tests/imports/deleted records (filters `agentId`, `channelType`); no measured filing reduction is inferred. `campaign_progress`: recipients by status (filter `campaignId`; no dates).",
|
|
28365
|
+
description: "`conversations_daily`: conversations the AI took part in per day, Agent, channel type and direction, with outcomes and escalations (filters `agentId`, `channelType`). `handoffs_daily`: the conversations the AI handed to the team, per day of the handoff, Agent and person (who answered first, else the case's owner), with how many were answered, answered in time, still waiting, closed unattended or returned to the AI, and the average seconds to the first answer (filter `agentId`). `booking_details`: individual patients and appointments from explicit successful creation receipts, including specialty, paired exams, deduplication, matched patient names and later recorded cancellations; filters agentId and specialty; requires conversation read/write permission too. Historical receipts with created=true, not current provider status or all provider protocols. unverifiedCount covers explicit creations missing a stable patient/slot. `booking_outcomes`: verified saved booking receipts per completion day, Agent and integration, excluding test/import/deleted conversations; confirmed new bookings, reschedules, cancellations, failed, pending, unverified and duplicate receipts separately (filter `agentId`). Historical evidence, not current appointment status; hasMore requires splitting the range and returns no partial totals. `tool_calls_daily`: tool calls per day, Agent and tool with failures/durations (filter `agentId`). `tool_calls`: individual calls, never inputs/outputs (filter `agentId`). `assessment_results_daily`: assessments per day/definition (filter `definitionId`). `pqrsf_daily`: classification, confirmed resolution and referral-link counts from the pqrsf_* definitions, including pending/unclassified conversations, excluding tests/imports/deleted records (filters `agentId`, `channelType`); no measured filing reduction is inferred. `campaign_progress`: recipients by status (filter `campaignId`; no dates). `usage_daily`: what was used per day, Agent, channel type, campaign and kind, with its credits at the organization's rates and, for AI, the model tier and its tokens (filters `agentId`, `channelType`, `campaignId`); test conversations count like any other.",
|
|
28169
28366
|
choices: [
|
|
28170
28367
|
"conversations_daily",
|
|
28171
28368
|
"handoffs_daily",
|
|
@@ -28175,7 +28372,8 @@ var commands = {
|
|
|
28175
28372
|
"booking_outcomes",
|
|
28176
28373
|
"booking_details",
|
|
28177
28374
|
"assessment_results_daily",
|
|
28178
|
-
"campaign_progress"
|
|
28375
|
+
"campaign_progress",
|
|
28376
|
+
"usage_daily"
|
|
28179
28377
|
]
|
|
28180
28378
|
},
|
|
28181
28379
|
{
|
|
@@ -28277,9 +28475,13 @@ var commands = {
|
|
|
28277
28475
|
{
|
|
28278
28476
|
type: "string",
|
|
28279
28477
|
const: "campaign_progress"
|
|
28478
|
+
},
|
|
28479
|
+
{
|
|
28480
|
+
type: "string",
|
|
28481
|
+
const: "usage_daily"
|
|
28280
28482
|
}
|
|
28281
28483
|
],
|
|
28282
|
-
description: "`conversations_daily`: conversations the AI took part in per day, Agent, channel type and direction, with outcomes and escalations (filters `agentId`, `channelType`). `handoffs_daily`: the conversations the AI handed to the team, per day of the handoff, Agent and person (who answered first, else the case's owner), with how many were answered, answered in time, still waiting, closed unattended or returned to the AI, and the average seconds to the first answer (filter `agentId`). `booking_details`: individual patients and appointments from explicit successful creation receipts, including specialty, paired exams, deduplication, matched patient names and later recorded cancellations; filters agentId and specialty; requires conversation read/write permission too. Historical receipts with created=true, not current provider status or all provider protocols. unverifiedCount covers explicit creations missing a stable patient/slot. `booking_outcomes`: verified saved booking receipts per completion day, Agent and integration, excluding test/import/deleted conversations; confirmed new bookings, reschedules, cancellations, failed, pending, unverified and duplicate receipts separately (filter `agentId`). Historical evidence, not current appointment status; hasMore requires splitting the range and returns no partial totals. `tool_calls_daily`: tool calls per day, Agent and tool with failures/durations (filter `agentId`). `tool_calls`: individual calls, never inputs/outputs (filter `agentId`). `assessment_results_daily`: assessments per day/definition (filter `definitionId`). `pqrsf_daily`: classification, confirmed resolution and referral-link counts from the pqrsf_* definitions, including pending/unclassified conversations, excluding tests/imports/deleted records (filters `agentId`, `channelType`); no measured filing reduction is inferred. `campaign_progress`: recipients by status (filter `campaignId`; no dates)."
|
|
28484
|
+
description: "`conversations_daily`: conversations the AI took part in per day, Agent, channel type and direction, with outcomes and escalations (filters `agentId`, `channelType`). `handoffs_daily`: the conversations the AI handed to the team, per day of the handoff, Agent and person (who answered first, else the case's owner), with how many were answered, answered in time, still waiting, closed unattended or returned to the AI, and the average seconds to the first answer (filter `agentId`). `booking_details`: individual patients and appointments from explicit successful creation receipts, including specialty, paired exams, deduplication, matched patient names and later recorded cancellations; filters agentId and specialty; requires conversation read/write permission too. Historical receipts with created=true, not current provider status or all provider protocols. unverifiedCount covers explicit creations missing a stable patient/slot. `booking_outcomes`: verified saved booking receipts per completion day, Agent and integration, excluding test/import/deleted conversations; confirmed new bookings, reschedules, cancellations, failed, pending, unverified and duplicate receipts separately (filter `agentId`). Historical evidence, not current appointment status; hasMore requires splitting the range and returns no partial totals. `tool_calls_daily`: tool calls per day, Agent and tool with failures/durations (filter `agentId`). `tool_calls`: individual calls, never inputs/outputs (filter `agentId`). `assessment_results_daily`: assessments per day/definition (filter `definitionId`). `pqrsf_daily`: classification, confirmed resolution and referral-link counts from the pqrsf_* definitions, including pending/unclassified conversations, excluding tests/imports/deleted records (filters `agentId`, `channelType`); no measured filing reduction is inferred. `campaign_progress`: recipients by status (filter `campaignId`; no dates). `usage_daily`: what was used per day, Agent, channel type, campaign and kind, with its credits at the organization's rates and, for AI, the model tier and its tokens (filters `agentId`, `channelType`, `campaignId`); test conversations count like any other."
|
|
28283
28485
|
},
|
|
28284
28486
|
to: {
|
|
28285
28487
|
type: "string",
|
|
@@ -36059,7 +36261,12 @@ var schemaComponents = {
|
|
|
36059
36261
|
"nextResetAt",
|
|
36060
36262
|
"plans",
|
|
36061
36263
|
"card",
|
|
36062
|
-
"topUp"
|
|
36264
|
+
"topUp",
|
|
36265
|
+
"autoTopUp",
|
|
36266
|
+
"lowBalanceAlert",
|
|
36267
|
+
"toppedUp",
|
|
36268
|
+
"grants",
|
|
36269
|
+
"bundles"
|
|
36063
36270
|
],
|
|
36064
36271
|
properties: {
|
|
36065
36272
|
status: {
|
|
@@ -36158,6 +36365,280 @@ var schemaComponents = {
|
|
|
36158
36365
|
},
|
|
36159
36366
|
additionalProperties: false,
|
|
36160
36367
|
description: "The credits one top-up may buy, in whole credits."
|
|
36368
|
+
},
|
|
36369
|
+
autoTopUp: {
|
|
36370
|
+
anyOf: [
|
|
36371
|
+
{
|
|
36372
|
+
type: "object",
|
|
36373
|
+
required: [
|
|
36374
|
+
"enabled",
|
|
36375
|
+
"threshold",
|
|
36376
|
+
"credits",
|
|
36377
|
+
"perMonth"
|
|
36378
|
+
],
|
|
36379
|
+
properties: {
|
|
36380
|
+
enabled: {
|
|
36381
|
+
type: "boolean"
|
|
36382
|
+
},
|
|
36383
|
+
threshold: {
|
|
36384
|
+
type: "number",
|
|
36385
|
+
description: "When the balance falls below this many credits…"
|
|
36386
|
+
},
|
|
36387
|
+
credits: {
|
|
36388
|
+
type: "integer",
|
|
36389
|
+
description: "…buy this many credits with the saved card…"
|
|
36390
|
+
},
|
|
36391
|
+
perMonth: {
|
|
36392
|
+
anyOf: [
|
|
36393
|
+
{
|
|
36394
|
+
type: "integer"
|
|
36395
|
+
},
|
|
36396
|
+
{
|
|
36397
|
+
type: "null"
|
|
36398
|
+
}
|
|
36399
|
+
],
|
|
36400
|
+
description: "…at most this many times a month."
|
|
36401
|
+
}
|
|
36402
|
+
},
|
|
36403
|
+
additionalProperties: false
|
|
36404
|
+
},
|
|
36405
|
+
{
|
|
36406
|
+
type: "null"
|
|
36407
|
+
}
|
|
36408
|
+
],
|
|
36409
|
+
description: "The automatic top-up; null when it was never set."
|
|
36410
|
+
},
|
|
36411
|
+
lowBalanceAlert: {
|
|
36412
|
+
anyOf: [
|
|
36413
|
+
{
|
|
36414
|
+
type: "number"
|
|
36415
|
+
},
|
|
36416
|
+
{
|
|
36417
|
+
type: "null"
|
|
36418
|
+
}
|
|
36419
|
+
],
|
|
36420
|
+
description: "The balance at which the organization's administrators are emailed; null when off."
|
|
36421
|
+
},
|
|
36422
|
+
toppedUp: {
|
|
36423
|
+
type: "object",
|
|
36424
|
+
required: [
|
|
36425
|
+
"thisMonth",
|
|
36426
|
+
"allTime"
|
|
36427
|
+
],
|
|
36428
|
+
properties: {
|
|
36429
|
+
thisMonth: {
|
|
36430
|
+
anyOf: [
|
|
36431
|
+
{
|
|
36432
|
+
type: "number"
|
|
36433
|
+
},
|
|
36434
|
+
{
|
|
36435
|
+
type: "null"
|
|
36436
|
+
}
|
|
36437
|
+
],
|
|
36438
|
+
description: "Credits paid with money this calendar month (UTC): top-ups and transfers."
|
|
36439
|
+
},
|
|
36440
|
+
allTime: {
|
|
36441
|
+
anyOf: [
|
|
36442
|
+
{
|
|
36443
|
+
type: "number"
|
|
36444
|
+
},
|
|
36445
|
+
{
|
|
36446
|
+
type: "null"
|
|
36447
|
+
}
|
|
36448
|
+
],
|
|
36449
|
+
description: "Credits paid with money since the beginning."
|
|
36450
|
+
}
|
|
36451
|
+
},
|
|
36452
|
+
additionalProperties: false,
|
|
36453
|
+
description: "How much the organization has topped up; null when it could not be read."
|
|
36454
|
+
},
|
|
36455
|
+
grants: {
|
|
36456
|
+
type: "array",
|
|
36457
|
+
items: {
|
|
36458
|
+
type: "object",
|
|
36459
|
+
required: [
|
|
36460
|
+
"id",
|
|
36461
|
+
"kind",
|
|
36462
|
+
"label",
|
|
36463
|
+
"credits",
|
|
36464
|
+
"remaining",
|
|
36465
|
+
"expiresAt"
|
|
36466
|
+
],
|
|
36467
|
+
properties: {
|
|
36468
|
+
id: {
|
|
36469
|
+
type: "string"
|
|
36470
|
+
},
|
|
36471
|
+
kind: {
|
|
36472
|
+
anyOf: [
|
|
36473
|
+
{
|
|
36474
|
+
type: "string",
|
|
36475
|
+
const: "trial"
|
|
36476
|
+
},
|
|
36477
|
+
{
|
|
36478
|
+
type: "string",
|
|
36479
|
+
const: "promo"
|
|
36480
|
+
},
|
|
36481
|
+
{
|
|
36482
|
+
type: "string",
|
|
36483
|
+
const: "subsidy"
|
|
36484
|
+
},
|
|
36485
|
+
{
|
|
36486
|
+
type: "string",
|
|
36487
|
+
const: "courtesy"
|
|
36488
|
+
},
|
|
36489
|
+
{
|
|
36490
|
+
type: "string",
|
|
36491
|
+
const: "correction"
|
|
36492
|
+
},
|
|
36493
|
+
{
|
|
36494
|
+
type: "string",
|
|
36495
|
+
const: "other"
|
|
36496
|
+
}
|
|
36497
|
+
]
|
|
36498
|
+
},
|
|
36499
|
+
label: {
|
|
36500
|
+
anyOf: [
|
|
36501
|
+
{
|
|
36502
|
+
type: "string"
|
|
36503
|
+
},
|
|
36504
|
+
{
|
|
36505
|
+
type: "null"
|
|
36506
|
+
}
|
|
36507
|
+
],
|
|
36508
|
+
description: "The name Arbol gave it."
|
|
36509
|
+
},
|
|
36510
|
+
credits: {
|
|
36511
|
+
type: "number",
|
|
36512
|
+
description: "Credits it granted."
|
|
36513
|
+
},
|
|
36514
|
+
remaining: {
|
|
36515
|
+
type: "number",
|
|
36516
|
+
description: "Credits left of it."
|
|
36517
|
+
},
|
|
36518
|
+
expiresAt: {
|
|
36519
|
+
anyOf: [
|
|
36520
|
+
{
|
|
36521
|
+
type: "string",
|
|
36522
|
+
format: "date-time"
|
|
36523
|
+
},
|
|
36524
|
+
{
|
|
36525
|
+
type: "null"
|
|
36526
|
+
}
|
|
36527
|
+
],
|
|
36528
|
+
description: "When what is left of it ends."
|
|
36529
|
+
}
|
|
36530
|
+
},
|
|
36531
|
+
additionalProperties: false
|
|
36532
|
+
},
|
|
36533
|
+
maxItems: 50,
|
|
36534
|
+
description: "Credits Arbol gave that are still in force, spent before paid credits when they end sooner."
|
|
36535
|
+
},
|
|
36536
|
+
bundles: {
|
|
36537
|
+
type: "array",
|
|
36538
|
+
items: {
|
|
36539
|
+
type: "object",
|
|
36540
|
+
required: [
|
|
36541
|
+
"feature",
|
|
36542
|
+
"included",
|
|
36543
|
+
"remaining",
|
|
36544
|
+
"resetsAt"
|
|
36545
|
+
],
|
|
36546
|
+
properties: {
|
|
36547
|
+
feature: {
|
|
36548
|
+
anyOf: [
|
|
36549
|
+
{
|
|
36550
|
+
type: "string",
|
|
36551
|
+
const: "voice_minutes"
|
|
36552
|
+
},
|
|
36553
|
+
{
|
|
36554
|
+
type: "string",
|
|
36555
|
+
const: "telephony_minutes"
|
|
36556
|
+
},
|
|
36557
|
+
{
|
|
36558
|
+
type: "string",
|
|
36559
|
+
const: "telephony_cost"
|
|
36560
|
+
},
|
|
36561
|
+
{
|
|
36562
|
+
type: "string",
|
|
36563
|
+
const: "whatsapp_conversations"
|
|
36564
|
+
},
|
|
36565
|
+
{
|
|
36566
|
+
type: "string",
|
|
36567
|
+
const: "whatsapp_messages"
|
|
36568
|
+
},
|
|
36569
|
+
{
|
|
36570
|
+
type: "string",
|
|
36571
|
+
const: "whatsapp_templates"
|
|
36572
|
+
},
|
|
36573
|
+
{
|
|
36574
|
+
type: "string",
|
|
36575
|
+
const: "tool_calls"
|
|
36576
|
+
},
|
|
36577
|
+
{
|
|
36578
|
+
type: "string",
|
|
36579
|
+
const: "ai_cost"
|
|
36580
|
+
},
|
|
36581
|
+
{
|
|
36582
|
+
type: "string",
|
|
36583
|
+
const: "phone_numbers"
|
|
36584
|
+
},
|
|
36585
|
+
{
|
|
36586
|
+
type: "string",
|
|
36587
|
+
const: "sisben_lookups"
|
|
36588
|
+
},
|
|
36589
|
+
{
|
|
36590
|
+
type: "string",
|
|
36591
|
+
const: "adres_lookups"
|
|
36592
|
+
},
|
|
36593
|
+
{
|
|
36594
|
+
type: "string",
|
|
36595
|
+
const: "policia_colombia_lookups"
|
|
36596
|
+
},
|
|
36597
|
+
{
|
|
36598
|
+
type: "string",
|
|
36599
|
+
const: "postconsultations"
|
|
36600
|
+
},
|
|
36601
|
+
{
|
|
36602
|
+
type: "string",
|
|
36603
|
+
const: "agenda_users"
|
|
36604
|
+
},
|
|
36605
|
+
{
|
|
36606
|
+
type: "string",
|
|
36607
|
+
const: "sms_messages"
|
|
36608
|
+
},
|
|
36609
|
+
{
|
|
36610
|
+
type: "string",
|
|
36611
|
+
const: "agenda_plan"
|
|
36612
|
+
},
|
|
36613
|
+
{
|
|
36614
|
+
type: "string",
|
|
36615
|
+
const: "support_fee"
|
|
36616
|
+
}
|
|
36617
|
+
]
|
|
36618
|
+
},
|
|
36619
|
+
included: {
|
|
36620
|
+
type: "number",
|
|
36621
|
+
description: "Units the plan includes in the period, in the fact's units."
|
|
36622
|
+
},
|
|
36623
|
+
remaining: {
|
|
36624
|
+
type: "number"
|
|
36625
|
+
},
|
|
36626
|
+
resetsAt: {
|
|
36627
|
+
anyOf: [
|
|
36628
|
+
{
|
|
36629
|
+
type: "string",
|
|
36630
|
+
format: "date-time"
|
|
36631
|
+
},
|
|
36632
|
+
{
|
|
36633
|
+
type: "null"
|
|
36634
|
+
}
|
|
36635
|
+
]
|
|
36636
|
+
}
|
|
36637
|
+
},
|
|
36638
|
+
additionalProperties: false
|
|
36639
|
+
},
|
|
36640
|
+
maxItems: 50,
|
|
36641
|
+
description: "Allowances of one fact on the plan (600 minutes a month), spent before credits."
|
|
36161
36642
|
}
|
|
36162
36643
|
},
|
|
36163
36644
|
additionalProperties: false
|
|
@@ -36210,7 +36691,7 @@ var schemaComponents = {
|
|
|
36210
36691
|
properties: {
|
|
36211
36692
|
id: {
|
|
36212
36693
|
type: "string",
|
|
36213
|
-
description: "The plan's id
|
|
36694
|
+
description: "The plan's id, such as `arbol_prepaid` or a customer's own plan."
|
|
36214
36695
|
},
|
|
36215
36696
|
name: {
|
|
36216
36697
|
type: "string"
|
|
@@ -36293,6 +36774,10 @@ var schemaComponents = {
|
|
|
36293
36774
|
type: "string",
|
|
36294
36775
|
const: "telephony_minutes"
|
|
36295
36776
|
},
|
|
36777
|
+
{
|
|
36778
|
+
type: "string",
|
|
36779
|
+
const: "telephony_cost"
|
|
36780
|
+
},
|
|
36296
36781
|
{
|
|
36297
36782
|
type: "string",
|
|
36298
36783
|
const: "whatsapp_conversations"
|
|
@@ -36323,16 +36808,28 @@ var schemaComponents = {
|
|
|
36323
36808
|
},
|
|
36324
36809
|
{
|
|
36325
36810
|
type: "string",
|
|
36326
|
-
const: "
|
|
36811
|
+
const: "adres_lookups"
|
|
36327
36812
|
},
|
|
36328
36813
|
{
|
|
36329
36814
|
type: "string",
|
|
36330
|
-
const: "
|
|
36815
|
+
const: "policia_colombia_lookups"
|
|
36816
|
+
},
|
|
36817
|
+
{
|
|
36818
|
+
type: "string",
|
|
36819
|
+
const: "postconsultations"
|
|
36331
36820
|
},
|
|
36332
36821
|
{
|
|
36333
36822
|
type: "string",
|
|
36334
36823
|
const: "agenda_users"
|
|
36335
36824
|
},
|
|
36825
|
+
{
|
|
36826
|
+
type: "string",
|
|
36827
|
+
const: "sms_messages"
|
|
36828
|
+
},
|
|
36829
|
+
{
|
|
36830
|
+
type: "string",
|
|
36831
|
+
const: "agenda_plan"
|
|
36832
|
+
},
|
|
36336
36833
|
{
|
|
36337
36834
|
type: "string",
|
|
36338
36835
|
const: "support_fee"
|
|
@@ -36367,7 +36864,7 @@ var schemaComponents = {
|
|
|
36367
36864
|
properties: {
|
|
36368
36865
|
url: {
|
|
36369
36866
|
type: "string",
|
|
36370
|
-
description: "
|
|
36867
|
+
description: "The payment processor's portal, for the organization's cards and receipts."
|
|
36371
36868
|
}
|
|
36372
36869
|
},
|
|
36373
36870
|
additionalProperties: false
|
|
@@ -36462,6 +36959,68 @@ var schemaComponents = {
|
|
|
36462
36959
|
}
|
|
36463
36960
|
}
|
|
36464
36961
|
},
|
|
36962
|
+
AccountBillingRefusedError: {
|
|
36963
|
+
type: "object",
|
|
36964
|
+
description: "A failed answer.",
|
|
36965
|
+
additionalProperties: false,
|
|
36966
|
+
required: [
|
|
36967
|
+
"success",
|
|
36968
|
+
"data",
|
|
36969
|
+
"error",
|
|
36970
|
+
"metadata"
|
|
36971
|
+
],
|
|
36972
|
+
properties: {
|
|
36973
|
+
success: {
|
|
36974
|
+
type: "boolean",
|
|
36975
|
+
enum: [
|
|
36976
|
+
false
|
|
36977
|
+
]
|
|
36978
|
+
},
|
|
36979
|
+
data: {
|
|
36980
|
+
const: null
|
|
36981
|
+
},
|
|
36982
|
+
error: {
|
|
36983
|
+
$ref: "#/components/schemas/AccountBillingRefusedFailure"
|
|
36984
|
+
},
|
|
36985
|
+
metadata: {
|
|
36986
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
36987
|
+
}
|
|
36988
|
+
}
|
|
36989
|
+
},
|
|
36990
|
+
AccountBillingRefusedFailure: {
|
|
36991
|
+
type: "object",
|
|
36992
|
+
description: "The billing service refused the change; nothing was changed.",
|
|
36993
|
+
additionalProperties: false,
|
|
36994
|
+
required: [
|
|
36995
|
+
"code",
|
|
36996
|
+
"message",
|
|
36997
|
+
"retryable",
|
|
36998
|
+
"data"
|
|
36999
|
+
],
|
|
37000
|
+
properties: {
|
|
37001
|
+
code: {
|
|
37002
|
+
type: "string",
|
|
37003
|
+
enum: [
|
|
37004
|
+
"BILLING_REFUSED"
|
|
37005
|
+
],
|
|
37006
|
+
description: "The failure code, stable across releases."
|
|
37007
|
+
},
|
|
37008
|
+
message: {
|
|
37009
|
+
type: "string",
|
|
37010
|
+
description: "What went wrong, for people; it never contains input values."
|
|
37011
|
+
},
|
|
37012
|
+
retryable: {
|
|
37013
|
+
type: "boolean",
|
|
37014
|
+
enum: [
|
|
37015
|
+
false
|
|
37016
|
+
],
|
|
37017
|
+
description: "Whether repeating the same request may succeed."
|
|
37018
|
+
},
|
|
37019
|
+
data: {
|
|
37020
|
+
$ref: "#/components/schemas/Empty"
|
|
37021
|
+
}
|
|
37022
|
+
}
|
|
37023
|
+
},
|
|
36465
37024
|
AccountBillingResponse: {
|
|
36466
37025
|
type: "object",
|
|
36467
37026
|
description: "A successful answer.",
|
|
@@ -38217,6 +38776,55 @@ var schemaComponents = {
|
|
|
38217
38776
|
}
|
|
38218
38777
|
}
|
|
38219
38778
|
},
|
|
38779
|
+
AccountCreatePaymentMethodSetupServiceUnavailableError: {
|
|
38780
|
+
type: "object",
|
|
38781
|
+
description: "A failed answer.",
|
|
38782
|
+
additionalProperties: false,
|
|
38783
|
+
required: [
|
|
38784
|
+
"success",
|
|
38785
|
+
"data",
|
|
38786
|
+
"error",
|
|
38787
|
+
"metadata"
|
|
38788
|
+
],
|
|
38789
|
+
properties: {
|
|
38790
|
+
success: {
|
|
38791
|
+
type: "boolean",
|
|
38792
|
+
enum: [
|
|
38793
|
+
false
|
|
38794
|
+
]
|
|
38795
|
+
},
|
|
38796
|
+
data: {
|
|
38797
|
+
const: null
|
|
38798
|
+
},
|
|
38799
|
+
error: {
|
|
38800
|
+
$ref: "#/components/schemas/AccountCreatePaymentMethodSetupServiceUnavailableFailure"
|
|
38801
|
+
},
|
|
38802
|
+
metadata: {
|
|
38803
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
38804
|
+
}
|
|
38805
|
+
}
|
|
38806
|
+
},
|
|
38807
|
+
AccountCreatePaymentMethodSetupServiceUnavailableFailure: {
|
|
38808
|
+
oneOf: [
|
|
38809
|
+
{
|
|
38810
|
+
$ref: "#/components/schemas/UpstreamUnavailableFailure"
|
|
38811
|
+
},
|
|
38812
|
+
{
|
|
38813
|
+
$ref: "#/components/schemas/AccountBillingNotConfiguredFailure"
|
|
38814
|
+
},
|
|
38815
|
+
{
|
|
38816
|
+
$ref: "#/components/schemas/AccountBillingUnavailableFailure"
|
|
38817
|
+
}
|
|
38818
|
+
],
|
|
38819
|
+
discriminator: {
|
|
38820
|
+
propertyName: "code",
|
|
38821
|
+
mapping: {
|
|
38822
|
+
UPSTREAM_UNAVAILABLE: "#/components/schemas/UpstreamUnavailableFailure",
|
|
38823
|
+
BILLING_NOT_CONFIGURED: "#/components/schemas/AccountBillingNotConfiguredFailure",
|
|
38824
|
+
BILLING_UNAVAILABLE: "#/components/schemas/AccountBillingUnavailableFailure"
|
|
38825
|
+
}
|
|
38826
|
+
}
|
|
38827
|
+
},
|
|
38220
38828
|
AccountCreateServerBody: {
|
|
38221
38829
|
type: "object",
|
|
38222
38830
|
required: [
|
|
@@ -39200,6 +39808,68 @@ var schemaComponents = {
|
|
|
39200
39808
|
}
|
|
39201
39809
|
}
|
|
39202
39810
|
},
|
|
39811
|
+
AccountInsufficientCreditsError: {
|
|
39812
|
+
type: "object",
|
|
39813
|
+
description: "A failed answer.",
|
|
39814
|
+
additionalProperties: false,
|
|
39815
|
+
required: [
|
|
39816
|
+
"success",
|
|
39817
|
+
"data",
|
|
39818
|
+
"error",
|
|
39819
|
+
"metadata"
|
|
39820
|
+
],
|
|
39821
|
+
properties: {
|
|
39822
|
+
success: {
|
|
39823
|
+
type: "boolean",
|
|
39824
|
+
enum: [
|
|
39825
|
+
false
|
|
39826
|
+
]
|
|
39827
|
+
},
|
|
39828
|
+
data: {
|
|
39829
|
+
const: null
|
|
39830
|
+
},
|
|
39831
|
+
error: {
|
|
39832
|
+
$ref: "#/components/schemas/AccountInsufficientCreditsFailure"
|
|
39833
|
+
},
|
|
39834
|
+
metadata: {
|
|
39835
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
39836
|
+
}
|
|
39837
|
+
}
|
|
39838
|
+
},
|
|
39839
|
+
AccountInsufficientCreditsFailure: {
|
|
39840
|
+
type: "object",
|
|
39841
|
+
description: "The organization's wallet has no credits for this; nothing was changed. Top up, then try again.",
|
|
39842
|
+
additionalProperties: false,
|
|
39843
|
+
required: [
|
|
39844
|
+
"code",
|
|
39845
|
+
"message",
|
|
39846
|
+
"retryable",
|
|
39847
|
+
"data"
|
|
39848
|
+
],
|
|
39849
|
+
properties: {
|
|
39850
|
+
code: {
|
|
39851
|
+
type: "string",
|
|
39852
|
+
enum: [
|
|
39853
|
+
"INSUFFICIENT_CREDITS"
|
|
39854
|
+
],
|
|
39855
|
+
description: "The failure code, stable across releases."
|
|
39856
|
+
},
|
|
39857
|
+
message: {
|
|
39858
|
+
type: "string",
|
|
39859
|
+
description: "What went wrong, for people; it never contains input values."
|
|
39860
|
+
},
|
|
39861
|
+
retryable: {
|
|
39862
|
+
type: "boolean",
|
|
39863
|
+
enum: [
|
|
39864
|
+
false
|
|
39865
|
+
],
|
|
39866
|
+
description: "Whether repeating the same request may succeed."
|
|
39867
|
+
},
|
|
39868
|
+
data: {
|
|
39869
|
+
$ref: "#/components/schemas/Empty"
|
|
39870
|
+
}
|
|
39871
|
+
}
|
|
39872
|
+
},
|
|
39203
39873
|
AccountIntegrationUnsupportedError: {
|
|
39204
39874
|
type: "object",
|
|
39205
39875
|
description: "A failed answer.",
|
|
@@ -39483,6 +40153,275 @@ var schemaComponents = {
|
|
|
39483
40153
|
}
|
|
39484
40154
|
}
|
|
39485
40155
|
},
|
|
40156
|
+
AccountInvoice: {
|
|
40157
|
+
type: "object",
|
|
40158
|
+
required: [
|
|
40159
|
+
"id",
|
|
40160
|
+
"source",
|
|
40161
|
+
"number",
|
|
40162
|
+
"issuedAt",
|
|
40163
|
+
"periodStartsAt",
|
|
40164
|
+
"periodEndsAt",
|
|
40165
|
+
"total",
|
|
40166
|
+
"currency",
|
|
40167
|
+
"status",
|
|
40168
|
+
"hostedUrl",
|
|
40169
|
+
"files",
|
|
40170
|
+
"taxAuthorityNumber"
|
|
40171
|
+
],
|
|
40172
|
+
properties: {
|
|
40173
|
+
id: {
|
|
40174
|
+
type: "string"
|
|
40175
|
+
},
|
|
40176
|
+
source: {
|
|
40177
|
+
anyOf: [
|
|
40178
|
+
{
|
|
40179
|
+
type: "string",
|
|
40180
|
+
const: "generated"
|
|
40181
|
+
},
|
|
40182
|
+
{
|
|
40183
|
+
type: "string",
|
|
40184
|
+
const: "uploaded"
|
|
40185
|
+
}
|
|
40186
|
+
],
|
|
40187
|
+
description: "`generated`: issued by the payment processor, opened on `hostedUrl`; `uploaded`: issued by Arbol, downloaded as a file."
|
|
40188
|
+
},
|
|
40189
|
+
number: {
|
|
40190
|
+
anyOf: [
|
|
40191
|
+
{
|
|
40192
|
+
type: "string"
|
|
40193
|
+
},
|
|
40194
|
+
{
|
|
40195
|
+
type: "null"
|
|
40196
|
+
}
|
|
40197
|
+
]
|
|
40198
|
+
},
|
|
40199
|
+
issuedAt: {
|
|
40200
|
+
anyOf: [
|
|
40201
|
+
{
|
|
40202
|
+
type: "string",
|
|
40203
|
+
format: "date-time"
|
|
40204
|
+
},
|
|
40205
|
+
{
|
|
40206
|
+
type: "null"
|
|
40207
|
+
}
|
|
40208
|
+
]
|
|
40209
|
+
},
|
|
40210
|
+
periodStartsAt: {
|
|
40211
|
+
anyOf: [
|
|
40212
|
+
{
|
|
40213
|
+
type: "string",
|
|
40214
|
+
format: "date-time"
|
|
40215
|
+
},
|
|
40216
|
+
{
|
|
40217
|
+
type: "null"
|
|
40218
|
+
}
|
|
40219
|
+
]
|
|
40220
|
+
},
|
|
40221
|
+
periodEndsAt: {
|
|
40222
|
+
anyOf: [
|
|
40223
|
+
{
|
|
40224
|
+
type: "string",
|
|
40225
|
+
format: "date-time"
|
|
40226
|
+
},
|
|
40227
|
+
{
|
|
40228
|
+
type: "null"
|
|
40229
|
+
}
|
|
40230
|
+
]
|
|
40231
|
+
},
|
|
40232
|
+
total: {
|
|
40233
|
+
anyOf: [
|
|
40234
|
+
{
|
|
40235
|
+
type: "number"
|
|
40236
|
+
},
|
|
40237
|
+
{
|
|
40238
|
+
type: "null"
|
|
40239
|
+
}
|
|
40240
|
+
]
|
|
40241
|
+
},
|
|
40242
|
+
currency: {
|
|
40243
|
+
type: "string",
|
|
40244
|
+
description: "ISO 4217, such as USD."
|
|
40245
|
+
},
|
|
40246
|
+
status: {
|
|
40247
|
+
anyOf: [
|
|
40248
|
+
{
|
|
40249
|
+
type: "string",
|
|
40250
|
+
const: "open"
|
|
40251
|
+
},
|
|
40252
|
+
{
|
|
40253
|
+
type: "string",
|
|
40254
|
+
const: "paid"
|
|
40255
|
+
},
|
|
40256
|
+
{
|
|
40257
|
+
type: "string",
|
|
40258
|
+
const: "void"
|
|
40259
|
+
},
|
|
40260
|
+
{
|
|
40261
|
+
type: "string",
|
|
40262
|
+
const: "uncollectible"
|
|
40263
|
+
}
|
|
40264
|
+
]
|
|
40265
|
+
},
|
|
40266
|
+
hostedUrl: {
|
|
40267
|
+
anyOf: [
|
|
40268
|
+
{
|
|
40269
|
+
type: "string"
|
|
40270
|
+
},
|
|
40271
|
+
{
|
|
40272
|
+
type: "null"
|
|
40273
|
+
}
|
|
40274
|
+
],
|
|
40275
|
+
description: "The generated invoice's own page."
|
|
40276
|
+
},
|
|
40277
|
+
files: {
|
|
40278
|
+
type: "array",
|
|
40279
|
+
items: {
|
|
40280
|
+
anyOf: [
|
|
40281
|
+
{
|
|
40282
|
+
type: "string",
|
|
40283
|
+
const: "pdf"
|
|
40284
|
+
},
|
|
40285
|
+
{
|
|
40286
|
+
type: "string",
|
|
40287
|
+
const: "xml"
|
|
40288
|
+
}
|
|
40289
|
+
]
|
|
40290
|
+
},
|
|
40291
|
+
maxItems: 2,
|
|
40292
|
+
description: "The files of an uploaded invoice, served by GET /v1/invoice-files/{invoiceId}."
|
|
40293
|
+
},
|
|
40294
|
+
taxAuthorityNumber: {
|
|
40295
|
+
anyOf: [
|
|
40296
|
+
{
|
|
40297
|
+
type: "string"
|
|
40298
|
+
},
|
|
40299
|
+
{
|
|
40300
|
+
type: "null"
|
|
40301
|
+
}
|
|
40302
|
+
],
|
|
40303
|
+
description: "An electronic invoice's number at the tax authority (Colombia's CUFE)."
|
|
40304
|
+
}
|
|
40305
|
+
},
|
|
40306
|
+
additionalProperties: false
|
|
40307
|
+
},
|
|
40308
|
+
AccountInvoiceNotFoundError: {
|
|
40309
|
+
type: "object",
|
|
40310
|
+
description: "A failed answer.",
|
|
40311
|
+
additionalProperties: false,
|
|
40312
|
+
required: [
|
|
40313
|
+
"success",
|
|
40314
|
+
"data",
|
|
40315
|
+
"error",
|
|
40316
|
+
"metadata"
|
|
40317
|
+
],
|
|
40318
|
+
properties: {
|
|
40319
|
+
success: {
|
|
40320
|
+
type: "boolean",
|
|
40321
|
+
enum: [
|
|
40322
|
+
false
|
|
40323
|
+
]
|
|
40324
|
+
},
|
|
40325
|
+
data: {
|
|
40326
|
+
const: null
|
|
40327
|
+
},
|
|
40328
|
+
error: {
|
|
40329
|
+
$ref: "#/components/schemas/AccountInvoiceNotFoundFailure"
|
|
40330
|
+
},
|
|
40331
|
+
metadata: {
|
|
40332
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
40333
|
+
}
|
|
40334
|
+
}
|
|
40335
|
+
},
|
|
40336
|
+
AccountInvoiceNotFoundFailure: {
|
|
40337
|
+
type: "object",
|
|
40338
|
+
description: "This organization has no such invoice file.",
|
|
40339
|
+
additionalProperties: false,
|
|
40340
|
+
required: [
|
|
40341
|
+
"code",
|
|
40342
|
+
"message",
|
|
40343
|
+
"retryable",
|
|
40344
|
+
"data"
|
|
40345
|
+
],
|
|
40346
|
+
properties: {
|
|
40347
|
+
code: {
|
|
40348
|
+
type: "string",
|
|
40349
|
+
enum: [
|
|
40350
|
+
"INVOICE_NOT_FOUND"
|
|
40351
|
+
],
|
|
40352
|
+
description: "The failure code, stable across releases."
|
|
40353
|
+
},
|
|
40354
|
+
message: {
|
|
40355
|
+
type: "string",
|
|
40356
|
+
description: "What went wrong, for people; it never contains input values."
|
|
40357
|
+
},
|
|
40358
|
+
retryable: {
|
|
40359
|
+
type: "boolean",
|
|
40360
|
+
enum: [
|
|
40361
|
+
false
|
|
40362
|
+
],
|
|
40363
|
+
description: "Whether repeating the same request may succeed."
|
|
40364
|
+
},
|
|
40365
|
+
data: {
|
|
40366
|
+
$ref: "#/components/schemas/Empty"
|
|
40367
|
+
}
|
|
40368
|
+
}
|
|
40369
|
+
},
|
|
40370
|
+
AccountInvoicePage: {
|
|
40371
|
+
type: "object",
|
|
40372
|
+
required: [
|
|
40373
|
+
"data",
|
|
40374
|
+
"object",
|
|
40375
|
+
"pageInfo"
|
|
40376
|
+
],
|
|
40377
|
+
properties: {
|
|
40378
|
+
data: {
|
|
40379
|
+
type: "array",
|
|
40380
|
+
items: {
|
|
40381
|
+
$ref: "#/components/schemas/AccountInvoice"
|
|
40382
|
+
},
|
|
40383
|
+
description: "Items admitted by this resource contract within the verified organization."
|
|
40384
|
+
},
|
|
40385
|
+
object: {
|
|
40386
|
+
type: "string",
|
|
40387
|
+
const: "list",
|
|
40388
|
+
description: "Discriminator for a resource list response."
|
|
40389
|
+
},
|
|
40390
|
+
pageInfo: {
|
|
40391
|
+
$ref: "#/components/schemas/PageInfo",
|
|
40392
|
+
description: "Opaque navigation cursors for this page’s stable keyset order."
|
|
40393
|
+
}
|
|
40394
|
+
},
|
|
40395
|
+
additionalProperties: false
|
|
40396
|
+
},
|
|
40397
|
+
AccountInvoicePageResponse: {
|
|
40398
|
+
type: "object",
|
|
40399
|
+
description: "A successful answer.",
|
|
40400
|
+
additionalProperties: false,
|
|
40401
|
+
required: [
|
|
40402
|
+
"success",
|
|
40403
|
+
"data",
|
|
40404
|
+
"error",
|
|
40405
|
+
"metadata"
|
|
40406
|
+
],
|
|
40407
|
+
properties: {
|
|
40408
|
+
success: {
|
|
40409
|
+
type: "boolean",
|
|
40410
|
+
enum: [
|
|
40411
|
+
true
|
|
40412
|
+
]
|
|
40413
|
+
},
|
|
40414
|
+
data: {
|
|
40415
|
+
$ref: "#/components/schemas/AccountInvoicePage"
|
|
40416
|
+
},
|
|
40417
|
+
error: {
|
|
40418
|
+
const: null
|
|
40419
|
+
},
|
|
40420
|
+
metadata: {
|
|
40421
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
40422
|
+
}
|
|
40423
|
+
}
|
|
40424
|
+
},
|
|
39486
40425
|
AccountIssuedApiKey: {
|
|
39487
40426
|
type: "object",
|
|
39488
40427
|
required: [
|
|
@@ -39660,6 +40599,55 @@ var schemaComponents = {
|
|
|
39660
40599
|
}
|
|
39661
40600
|
}
|
|
39662
40601
|
},
|
|
40602
|
+
AccountListInvoicesServiceUnavailableError: {
|
|
40603
|
+
type: "object",
|
|
40604
|
+
description: "A failed answer.",
|
|
40605
|
+
additionalProperties: false,
|
|
40606
|
+
required: [
|
|
40607
|
+
"success",
|
|
40608
|
+
"data",
|
|
40609
|
+
"error",
|
|
40610
|
+
"metadata"
|
|
40611
|
+
],
|
|
40612
|
+
properties: {
|
|
40613
|
+
success: {
|
|
40614
|
+
type: "boolean",
|
|
40615
|
+
enum: [
|
|
40616
|
+
false
|
|
40617
|
+
]
|
|
40618
|
+
},
|
|
40619
|
+
data: {
|
|
40620
|
+
const: null
|
|
40621
|
+
},
|
|
40622
|
+
error: {
|
|
40623
|
+
$ref: "#/components/schemas/AccountListInvoicesServiceUnavailableFailure"
|
|
40624
|
+
},
|
|
40625
|
+
metadata: {
|
|
40626
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
40627
|
+
}
|
|
40628
|
+
}
|
|
40629
|
+
},
|
|
40630
|
+
AccountListInvoicesServiceUnavailableFailure: {
|
|
40631
|
+
oneOf: [
|
|
40632
|
+
{
|
|
40633
|
+
$ref: "#/components/schemas/UpstreamUnavailableFailure"
|
|
40634
|
+
},
|
|
40635
|
+
{
|
|
40636
|
+
$ref: "#/components/schemas/AccountBillingNotConfiguredFailure"
|
|
40637
|
+
},
|
|
40638
|
+
{
|
|
40639
|
+
$ref: "#/components/schemas/AccountBillingUnavailableFailure"
|
|
40640
|
+
}
|
|
40641
|
+
],
|
|
40642
|
+
discriminator: {
|
|
40643
|
+
propertyName: "code",
|
|
40644
|
+
mapping: {
|
|
40645
|
+
UPSTREAM_UNAVAILABLE: "#/components/schemas/UpstreamUnavailableFailure",
|
|
40646
|
+
BILLING_NOT_CONFIGURED: "#/components/schemas/AccountBillingNotConfiguredFailure",
|
|
40647
|
+
BILLING_UNAVAILABLE: "#/components/schemas/AccountBillingUnavailableFailure"
|
|
40648
|
+
}
|
|
40649
|
+
}
|
|
40650
|
+
},
|
|
39663
40651
|
AccountListMembersServiceUnavailableError: {
|
|
39664
40652
|
type: "object",
|
|
39665
40653
|
description: "A failed answer.",
|
|
@@ -40313,6 +41301,47 @@ var schemaComponents = {
|
|
|
40313
41301
|
}
|
|
40314
41302
|
}
|
|
40315
41303
|
},
|
|
41304
|
+
AccountPaymentMethodSetup: {
|
|
41305
|
+
type: "object",
|
|
41306
|
+
required: [
|
|
41307
|
+
"url"
|
|
41308
|
+
],
|
|
41309
|
+
properties: {
|
|
41310
|
+
url: {
|
|
41311
|
+
type: "string",
|
|
41312
|
+
description: "The payment processor's page to add or change the card, with no purchase."
|
|
41313
|
+
}
|
|
41314
|
+
},
|
|
41315
|
+
additionalProperties: false
|
|
41316
|
+
},
|
|
41317
|
+
AccountPaymentMethodSetupResponse: {
|
|
41318
|
+
type: "object",
|
|
41319
|
+
description: "A successful answer.",
|
|
41320
|
+
additionalProperties: false,
|
|
41321
|
+
required: [
|
|
41322
|
+
"success",
|
|
41323
|
+
"data",
|
|
41324
|
+
"error",
|
|
41325
|
+
"metadata"
|
|
41326
|
+
],
|
|
41327
|
+
properties: {
|
|
41328
|
+
success: {
|
|
41329
|
+
type: "boolean",
|
|
41330
|
+
enum: [
|
|
41331
|
+
true
|
|
41332
|
+
]
|
|
41333
|
+
},
|
|
41334
|
+
data: {
|
|
41335
|
+
$ref: "#/components/schemas/AccountPaymentMethodSetup"
|
|
41336
|
+
},
|
|
41337
|
+
error: {
|
|
41338
|
+
const: null
|
|
41339
|
+
},
|
|
41340
|
+
metadata: {
|
|
41341
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
41342
|
+
}
|
|
41343
|
+
}
|
|
41344
|
+
},
|
|
40316
41345
|
AccountPermission: {
|
|
40317
41346
|
type: "object",
|
|
40318
41347
|
required: [
|
|
@@ -41582,6 +42611,107 @@ var schemaComponents = {
|
|
|
41582
42611
|
}
|
|
41583
42612
|
}
|
|
41584
42613
|
},
|
|
42614
|
+
AccountUpdateBillingBody: {
|
|
42615
|
+
type: "object",
|
|
42616
|
+
properties: {
|
|
42617
|
+
autoTopUp: {
|
|
42618
|
+
type: "object",
|
|
42619
|
+
required: [
|
|
42620
|
+
"enabled",
|
|
42621
|
+
"threshold",
|
|
42622
|
+
"credits",
|
|
42623
|
+
"perMonth"
|
|
42624
|
+
],
|
|
42625
|
+
properties: {
|
|
42626
|
+
enabled: {
|
|
42627
|
+
type: "boolean"
|
|
42628
|
+
},
|
|
42629
|
+
threshold: {
|
|
42630
|
+
type: "number",
|
|
42631
|
+
minimum: 0,
|
|
42632
|
+
maximum: 1e5,
|
|
42633
|
+
description: "When the balance falls below this…"
|
|
42634
|
+
},
|
|
42635
|
+
credits: {
|
|
42636
|
+
type: "integer",
|
|
42637
|
+
minimum: 10,
|
|
42638
|
+
maximum: 1e4,
|
|
42639
|
+
description: "…buy this many credits with the saved card…"
|
|
42640
|
+
},
|
|
42641
|
+
perMonth: {
|
|
42642
|
+
type: "integer",
|
|
42643
|
+
minimum: 1,
|
|
42644
|
+
maximum: 31,
|
|
42645
|
+
description: "…at most this many times a month."
|
|
42646
|
+
}
|
|
42647
|
+
},
|
|
42648
|
+
additionalProperties: false
|
|
42649
|
+
},
|
|
42650
|
+
lowBalanceAlert: {
|
|
42651
|
+
anyOf: [
|
|
42652
|
+
{
|
|
42653
|
+
type: "number",
|
|
42654
|
+
minimum: 0,
|
|
42655
|
+
maximum: 1e5
|
|
42656
|
+
},
|
|
42657
|
+
{
|
|
42658
|
+
type: "null"
|
|
42659
|
+
}
|
|
42660
|
+
],
|
|
42661
|
+
description: "The balance at which administrators are emailed; null turns it off."
|
|
42662
|
+
}
|
|
42663
|
+
},
|
|
42664
|
+
additionalProperties: false
|
|
42665
|
+
},
|
|
42666
|
+
AccountUpdateBillingServiceUnavailableError: {
|
|
42667
|
+
type: "object",
|
|
42668
|
+
description: "A failed answer.",
|
|
42669
|
+
additionalProperties: false,
|
|
42670
|
+
required: [
|
|
42671
|
+
"success",
|
|
42672
|
+
"data",
|
|
42673
|
+
"error",
|
|
42674
|
+
"metadata"
|
|
42675
|
+
],
|
|
42676
|
+
properties: {
|
|
42677
|
+
success: {
|
|
42678
|
+
type: "boolean",
|
|
42679
|
+
enum: [
|
|
42680
|
+
false
|
|
42681
|
+
]
|
|
42682
|
+
},
|
|
42683
|
+
data: {
|
|
42684
|
+
const: null
|
|
42685
|
+
},
|
|
42686
|
+
error: {
|
|
42687
|
+
$ref: "#/components/schemas/AccountUpdateBillingServiceUnavailableFailure"
|
|
42688
|
+
},
|
|
42689
|
+
metadata: {
|
|
42690
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
42691
|
+
}
|
|
42692
|
+
}
|
|
42693
|
+
},
|
|
42694
|
+
AccountUpdateBillingServiceUnavailableFailure: {
|
|
42695
|
+
oneOf: [
|
|
42696
|
+
{
|
|
42697
|
+
$ref: "#/components/schemas/UpstreamUnavailableFailure"
|
|
42698
|
+
},
|
|
42699
|
+
{
|
|
42700
|
+
$ref: "#/components/schemas/AccountBillingNotConfiguredFailure"
|
|
42701
|
+
},
|
|
42702
|
+
{
|
|
42703
|
+
$ref: "#/components/schemas/AccountBillingUnavailableFailure"
|
|
42704
|
+
}
|
|
42705
|
+
],
|
|
42706
|
+
discriminator: {
|
|
42707
|
+
propertyName: "code",
|
|
42708
|
+
mapping: {
|
|
42709
|
+
UPSTREAM_UNAVAILABLE: "#/components/schemas/UpstreamUnavailableFailure",
|
|
42710
|
+
BILLING_NOT_CONFIGURED: "#/components/schemas/AccountBillingNotConfiguredFailure",
|
|
42711
|
+
BILLING_UNAVAILABLE: "#/components/schemas/AccountBillingUnavailableFailure"
|
|
42712
|
+
}
|
|
42713
|
+
}
|
|
42714
|
+
},
|
|
41585
42715
|
AccountUpdateMemberBody: {
|
|
41586
42716
|
type: "object",
|
|
41587
42717
|
required: [
|
|
@@ -41797,6 +42927,7 @@ var schemaComponents = {
|
|
|
41797
42927
|
"feature",
|
|
41798
42928
|
"units",
|
|
41799
42929
|
"events",
|
|
42930
|
+
"credits",
|
|
41800
42931
|
"groups"
|
|
41801
42932
|
],
|
|
41802
42933
|
properties: {
|
|
@@ -41810,6 +42941,10 @@ var schemaComponents = {
|
|
|
41810
42941
|
type: "string",
|
|
41811
42942
|
const: "telephony_minutes"
|
|
41812
42943
|
},
|
|
42944
|
+
{
|
|
42945
|
+
type: "string",
|
|
42946
|
+
const: "telephony_cost"
|
|
42947
|
+
},
|
|
41813
42948
|
{
|
|
41814
42949
|
type: "string",
|
|
41815
42950
|
const: "whatsapp_conversations"
|
|
@@ -41840,16 +42975,28 @@ var schemaComponents = {
|
|
|
41840
42975
|
},
|
|
41841
42976
|
{
|
|
41842
42977
|
type: "string",
|
|
41843
|
-
const: "
|
|
42978
|
+
const: "adres_lookups"
|
|
41844
42979
|
},
|
|
41845
42980
|
{
|
|
41846
42981
|
type: "string",
|
|
41847
|
-
const: "
|
|
42982
|
+
const: "policia_colombia_lookups"
|
|
42983
|
+
},
|
|
42984
|
+
{
|
|
42985
|
+
type: "string",
|
|
42986
|
+
const: "postconsultations"
|
|
41848
42987
|
},
|
|
41849
42988
|
{
|
|
41850
42989
|
type: "string",
|
|
41851
42990
|
const: "agenda_users"
|
|
41852
42991
|
},
|
|
42992
|
+
{
|
|
42993
|
+
type: "string",
|
|
42994
|
+
const: "sms_messages"
|
|
42995
|
+
},
|
|
42996
|
+
{
|
|
42997
|
+
type: "string",
|
|
42998
|
+
const: "agenda_plan"
|
|
42999
|
+
},
|
|
41853
43000
|
{
|
|
41854
43001
|
type: "string",
|
|
41855
43002
|
const: "support_fee"
|
|
@@ -41858,27 +43005,36 @@ var schemaComponents = {
|
|
|
41858
43005
|
},
|
|
41859
43006
|
units: {
|
|
41860
43007
|
type: "number",
|
|
41861
|
-
description: "What was used, in the feature's units: minutes, conversations, lookups… For `ai_cost`, the
|
|
43008
|
+
description: "What was used, in the feature's units: minutes, conversations, lookups… For `ai_cost` and `telephony_cost`, the reports."
|
|
41862
43009
|
},
|
|
41863
43010
|
events: {
|
|
41864
43011
|
type: "integer",
|
|
41865
43012
|
description: "How many reports made it up."
|
|
41866
43013
|
},
|
|
43014
|
+
credits: {
|
|
43015
|
+
type: "number",
|
|
43016
|
+
description: "Its value at the organization's own rates."
|
|
43017
|
+
},
|
|
41867
43018
|
groups: {
|
|
41868
43019
|
type: "array",
|
|
41869
43020
|
items: {
|
|
41870
43021
|
type: "object",
|
|
41871
43022
|
required: [
|
|
41872
43023
|
"key",
|
|
41873
|
-
"units"
|
|
43024
|
+
"units",
|
|
43025
|
+
"credits"
|
|
41874
43026
|
],
|
|
41875
43027
|
properties: {
|
|
41876
43028
|
key: {
|
|
41877
43029
|
type: "string",
|
|
41878
|
-
description: "The product (`raiz`)
|
|
43030
|
+
description: "The product (`raiz`), the channel (`voice`), the Agent or the campaign id."
|
|
41879
43031
|
},
|
|
41880
43032
|
units: {
|
|
41881
43033
|
type: "number"
|
|
43034
|
+
},
|
|
43035
|
+
credits: {
|
|
43036
|
+
type: "number",
|
|
43037
|
+
description: "Its value at the organization's own rates."
|
|
41882
43038
|
}
|
|
41883
43039
|
},
|
|
41884
43040
|
additionalProperties: false
|
|
@@ -41893,9 +43049,11 @@ var schemaComponents = {
|
|
|
41893
43049
|
required: [
|
|
41894
43050
|
"from",
|
|
41895
43051
|
"to",
|
|
43052
|
+
"timezone",
|
|
41896
43053
|
"groupBy",
|
|
41897
43054
|
"credits",
|
|
41898
|
-
"features"
|
|
43055
|
+
"features",
|
|
43056
|
+
"days"
|
|
41899
43057
|
],
|
|
41900
43058
|
properties: {
|
|
41901
43059
|
from: {
|
|
@@ -41906,6 +43064,9 @@ var schemaComponents = {
|
|
|
41906
43064
|
type: "string",
|
|
41907
43065
|
format: "date-time"
|
|
41908
43066
|
},
|
|
43067
|
+
timezone: {
|
|
43068
|
+
type: "string"
|
|
43069
|
+
},
|
|
41909
43070
|
groupBy: {
|
|
41910
43071
|
anyOf: [
|
|
41911
43072
|
{
|
|
@@ -41915,6 +43076,14 @@ var schemaComponents = {
|
|
|
41915
43076
|
{
|
|
41916
43077
|
type: "string",
|
|
41917
43078
|
const: "channel"
|
|
43079
|
+
},
|
|
43080
|
+
{
|
|
43081
|
+
type: "string",
|
|
43082
|
+
const: "agent"
|
|
43083
|
+
},
|
|
43084
|
+
{
|
|
43085
|
+
type: "string",
|
|
43086
|
+
const: "campaign"
|
|
41918
43087
|
}
|
|
41919
43088
|
]
|
|
41920
43089
|
},
|
|
@@ -41927,7 +43096,40 @@ var schemaComponents = {
|
|
|
41927
43096
|
items: {
|
|
41928
43097
|
$ref: "#/components/schemas/AccountUsageFeature"
|
|
41929
43098
|
},
|
|
41930
|
-
maxItems:
|
|
43099
|
+
maxItems: 17
|
|
43100
|
+
},
|
|
43101
|
+
days: {
|
|
43102
|
+
type: "array",
|
|
43103
|
+
items: {
|
|
43104
|
+
type: "object",
|
|
43105
|
+
required: [
|
|
43106
|
+
"date",
|
|
43107
|
+
"credits",
|
|
43108
|
+
"units"
|
|
43109
|
+
],
|
|
43110
|
+
properties: {
|
|
43111
|
+
date: {
|
|
43112
|
+
type: "string",
|
|
43113
|
+
format: "date",
|
|
43114
|
+
description: "The day, in the summary's time zone."
|
|
43115
|
+
},
|
|
43116
|
+
credits: {
|
|
43117
|
+
type: "number",
|
|
43118
|
+
description: "Credits the wallet paid that day."
|
|
43119
|
+
},
|
|
43120
|
+
units: {
|
|
43121
|
+
type: "object",
|
|
43122
|
+
patternProperties: {
|
|
43123
|
+
"^.*$": {
|
|
43124
|
+
type: "number"
|
|
43125
|
+
}
|
|
43126
|
+
},
|
|
43127
|
+
description: "Each feature's units that day."
|
|
43128
|
+
}
|
|
43129
|
+
},
|
|
43130
|
+
additionalProperties: false
|
|
43131
|
+
},
|
|
43132
|
+
maxItems: 367
|
|
41931
43133
|
}
|
|
41932
43134
|
},
|
|
41933
43135
|
additionalProperties: false
|
|
@@ -41989,7 +43191,7 @@ var schemaComponents = {
|
|
|
41989
43191
|
type: "null"
|
|
41990
43192
|
}
|
|
41991
43193
|
],
|
|
41992
|
-
description: "
|
|
43194
|
+
description: "The payment processor's page to pay on, for `checkout`."
|
|
41993
43195
|
}
|
|
41994
43196
|
},
|
|
41995
43197
|
additionalProperties: false
|
|
@@ -42027,6 +43229,9 @@ var schemaComponents = {
|
|
|
42027
43229
|
required: [
|
|
42028
43230
|
"id",
|
|
42029
43231
|
"kind",
|
|
43232
|
+
"label",
|
|
43233
|
+
"grantKind",
|
|
43234
|
+
"funding",
|
|
42030
43235
|
"occurredAt",
|
|
42031
43236
|
"endsAt",
|
|
42032
43237
|
"count",
|
|
@@ -42048,6 +43253,14 @@ var schemaComponents = {
|
|
|
42048
43253
|
type: "string",
|
|
42049
43254
|
const: "top_up"
|
|
42050
43255
|
},
|
|
43256
|
+
{
|
|
43257
|
+
type: "string",
|
|
43258
|
+
const: "transfer"
|
|
43259
|
+
},
|
|
43260
|
+
{
|
|
43261
|
+
type: "string",
|
|
43262
|
+
const: "grant"
|
|
43263
|
+
},
|
|
42051
43264
|
{
|
|
42052
43265
|
type: "string",
|
|
42053
43266
|
const: "plan"
|
|
@@ -42061,7 +43274,66 @@ var schemaComponents = {
|
|
|
42061
43274
|
const: "adjustment"
|
|
42062
43275
|
}
|
|
42063
43276
|
],
|
|
42064
|
-
description: "`usage`: credits spent, one entry per UTC day; `top_up`: credits bought; `plan`: a plan's grant or change; `reset`: the plan's period renewed; `adjustment`:
|
|
43277
|
+
description: "`usage`: credits spent, one entry per UTC day; `top_up`: credits bought by card; `transfer`: credits paid by bank transfer, which Arbol recorded; `grant`: credits Arbol gave, named by `label`; `plan`: a plan's grant or change; `reset`: the plan's period renewed; `adjustment`: another change Arbol made."
|
|
43278
|
+
},
|
|
43279
|
+
label: {
|
|
43280
|
+
anyOf: [
|
|
43281
|
+
{
|
|
43282
|
+
type: "string"
|
|
43283
|
+
},
|
|
43284
|
+
{
|
|
43285
|
+
type: "null"
|
|
43286
|
+
}
|
|
43287
|
+
],
|
|
43288
|
+
description: 'The name Arbol gave a grant or a transfer ("Arbol promo", "Bank transfer").'
|
|
43289
|
+
},
|
|
43290
|
+
grantKind: {
|
|
43291
|
+
anyOf: [
|
|
43292
|
+
{
|
|
43293
|
+
anyOf: [
|
|
43294
|
+
{
|
|
43295
|
+
type: "string",
|
|
43296
|
+
const: "promo"
|
|
43297
|
+
},
|
|
43298
|
+
{
|
|
43299
|
+
type: "string",
|
|
43300
|
+
const: "subsidy"
|
|
43301
|
+
},
|
|
43302
|
+
{
|
|
43303
|
+
type: "string",
|
|
43304
|
+
const: "courtesy"
|
|
43305
|
+
},
|
|
43306
|
+
{
|
|
43307
|
+
type: "string",
|
|
43308
|
+
const: "correction"
|
|
43309
|
+
}
|
|
43310
|
+
]
|
|
43311
|
+
},
|
|
43312
|
+
{
|
|
43313
|
+
type: "null"
|
|
43314
|
+
}
|
|
43315
|
+
],
|
|
43316
|
+
description: "For a `grant`, what Arbol gave it as; its name when `label` is null."
|
|
43317
|
+
},
|
|
43318
|
+
funding: {
|
|
43319
|
+
anyOf: [
|
|
43320
|
+
{
|
|
43321
|
+
anyOf: [
|
|
43322
|
+
{
|
|
43323
|
+
type: "string",
|
|
43324
|
+
const: "paid"
|
|
43325
|
+
},
|
|
43326
|
+
{
|
|
43327
|
+
type: "string",
|
|
43328
|
+
const: "granted"
|
|
43329
|
+
}
|
|
43330
|
+
]
|
|
43331
|
+
},
|
|
43332
|
+
{
|
|
43333
|
+
type: "null"
|
|
43334
|
+
}
|
|
43335
|
+
],
|
|
43336
|
+
description: "`paid`: money came in; `granted`: Arbol gave the credits; null for spending and renewals."
|
|
42065
43337
|
},
|
|
42066
43338
|
occurredAt: {
|
|
42067
43339
|
type: "string",
|
|
@@ -42100,7 +43372,7 @@ var schemaComponents = {
|
|
|
42100
43372
|
type: "null"
|
|
42101
43373
|
}
|
|
42102
43374
|
],
|
|
42103
|
-
description: "Credits it added (positive) or took (negative); null when
|
|
43375
|
+
description: "Credits it added (positive) or took (negative); null when billing could not tell."
|
|
42104
43376
|
},
|
|
42105
43377
|
balanceAfter: {
|
|
42106
43378
|
anyOf: [
|
|
@@ -42115,7 +43387,7 @@ var schemaComponents = {
|
|
|
42115
43387
|
},
|
|
42116
43388
|
approximate: {
|
|
42117
43389
|
type: "boolean",
|
|
42118
|
-
description: "Its amounts are
|
|
43390
|
+
description: "Its amounts are an estimate, not an exact record."
|
|
42119
43391
|
}
|
|
42120
43392
|
},
|
|
42121
43393
|
additionalProperties: false
|
|
@@ -197526,7 +198798,7 @@ var schemaComponents = {
|
|
|
197526
198798
|
},
|
|
197527
198799
|
readiness: {
|
|
197528
198800
|
$ref: "#/components/schemas/RaizCampaignReadiness",
|
|
197529
|
-
description: "Whether the campaign can start, checked against its Agent, line, template and
|
|
198801
|
+
description: "Whether the campaign can start, checked against its Agent, line, template, recipients and the organization's balance without reaching anyone. Present only when expanded."
|
|
197530
198802
|
},
|
|
197531
198803
|
recipients: {
|
|
197532
198804
|
$ref: "#/components/schemas/RaizCampaignRecipientPage",
|
|
@@ -197589,7 +198861,7 @@ var schemaComponents = {
|
|
|
197589
198861
|
},
|
|
197590
198862
|
code: {
|
|
197591
198863
|
type: "string",
|
|
197592
|
-
description: "The error `startCampaign` would refuse with: `CAMPAIGN_AGENT_NOT_READY`, `CAMPAIGN_NO_RECIPIENTS`, `CAMPAIGN_VARIABLE_MISSING`, `CHANNEL_NOT_READY`, a `TEMPLATE_*` code, `UPSTREAM_UNAVAILABLE` or `VOICE_AGENT_NOT_READY`."
|
|
198864
|
+
description: "The error `startCampaign` would refuse with: `CAMPAIGN_AGENT_NOT_READY`, `CAMPAIGN_NO_RECIPIENTS`, `CAMPAIGN_VARIABLE_MISSING`, `CHANNEL_NOT_READY`, `CREDITS_EXHAUSTED` (see `estimate`), a `TEMPLATE_*` code, `UPSTREAM_UNAVAILABLE` or `VOICE_AGENT_NOT_READY`."
|
|
197593
198865
|
},
|
|
197594
198866
|
variable: {
|
|
197595
198867
|
type: "string",
|
|
@@ -197598,6 +198870,77 @@ var schemaComponents = {
|
|
|
197598
198870
|
},
|
|
197599
198871
|
additionalProperties: false
|
|
197600
198872
|
},
|
|
198873
|
+
RaizCampaignEstimate: {
|
|
198874
|
+
type: "object",
|
|
198875
|
+
required: [
|
|
198876
|
+
"callMinutes",
|
|
198877
|
+
"covered",
|
|
198878
|
+
"credits",
|
|
198879
|
+
"degraded",
|
|
198880
|
+
"enforced",
|
|
198881
|
+
"people"
|
|
198882
|
+
],
|
|
198883
|
+
properties: {
|
|
198884
|
+
callMinutes: {
|
|
198885
|
+
anyOf: [
|
|
198886
|
+
{
|
|
198887
|
+
type: "object",
|
|
198888
|
+
required: [
|
|
198889
|
+
"calls",
|
|
198890
|
+
"perCall"
|
|
198891
|
+
],
|
|
198892
|
+
properties: {
|
|
198893
|
+
calls: {
|
|
198894
|
+
type: "integer",
|
|
198895
|
+
description: "How many of those calls the figure comes from.",
|
|
198896
|
+
minimum: 0
|
|
198897
|
+
},
|
|
198898
|
+
perCall: {
|
|
198899
|
+
type: "number",
|
|
198900
|
+
description: "Minutes billed per call on average, a call nobody answered counting zero.",
|
|
198901
|
+
minimum: 0
|
|
198902
|
+
}
|
|
198903
|
+
},
|
|
198904
|
+
description: "Calls: what each call is counted at, from the organization's own recent outbound calls; an estimate, since a call's length is known only once it happens. Null on WhatsApp, and when the organization has made too few such calls to tell: the calls' minutes are then not counted and `credits` is null.",
|
|
198905
|
+
additionalProperties: false
|
|
198906
|
+
},
|
|
198907
|
+
{
|
|
198908
|
+
type: "null"
|
|
198909
|
+
}
|
|
198910
|
+
]
|
|
198911
|
+
},
|
|
198912
|
+
covered: {
|
|
198913
|
+
type: "boolean",
|
|
198914
|
+
description: "Whether the organization's balance covers `credits`, or the organization is never stopped at zero, as billing answers it now. True when nothing was counted, or billing did not answer (`degraded`)."
|
|
198915
|
+
},
|
|
198916
|
+
credits: {
|
|
198917
|
+
anyOf: [
|
|
198918
|
+
{
|
|
198919
|
+
type: "number",
|
|
198920
|
+
description: "What reaching each of `people` once would cost at the organization's rates, in credits (one credit is one US dollar), valued as billing values what is used. On WhatsApp it counts each opening message, its template and the conversation it opens; on calls, each call's minutes at `callMinutes.perCall`. Never counted: the attempts after the first, the replies, the Agent's answers, what its tools use and a line's own charge when the plan bills it apart. What the plan includes is not discounted, so the real cost can be lower. Null when nothing could be counted or billing did not value it.",
|
|
198921
|
+
minimum: 0
|
|
198922
|
+
},
|
|
198923
|
+
{
|
|
198924
|
+
type: "null"
|
|
198925
|
+
}
|
|
198926
|
+
]
|
|
198927
|
+
},
|
|
198928
|
+
degraded: {
|
|
198929
|
+
type: "boolean",
|
|
198930
|
+
description: "Billing did not answer in time: `credits` may be null, and `covered` is assumed."
|
|
198931
|
+
},
|
|
198932
|
+
enforced: {
|
|
198933
|
+
type: "boolean",
|
|
198934
|
+
description: "Whether a balance that does not cover what is used stops this organization's work now. When it does and `covered` is false, the campaign cannot start (`CREDITS_EXHAUSTED`); while it does not, it starts anyway. False when nothing was counted."
|
|
198935
|
+
},
|
|
198936
|
+
people: {
|
|
198937
|
+
type: "integer",
|
|
198938
|
+
description: "The recipients still to be reached, each counted once.",
|
|
198939
|
+
minimum: 0
|
|
198940
|
+
}
|
|
198941
|
+
},
|
|
198942
|
+
additionalProperties: false
|
|
198943
|
+
},
|
|
197601
198944
|
RaizCampaignHeaderMissingFailure: {
|
|
197602
198945
|
type: "object",
|
|
197603
198946
|
description: "A recipient has no file that fits the template's header (a PDF for a document, JPEG or PNG for an image, MP4 for a video). Each recipient brings its own as `header`.",
|
|
@@ -197880,6 +199223,7 @@ var schemaComponents = {
|
|
|
197880
199223
|
type: "object",
|
|
197881
199224
|
required: [
|
|
197882
199225
|
"blockers",
|
|
199226
|
+
"estimate",
|
|
197883
199227
|
"preview",
|
|
197884
199228
|
"ready"
|
|
197885
199229
|
],
|
|
@@ -197891,6 +199235,10 @@ var schemaComponents = {
|
|
|
197891
199235
|
},
|
|
197892
199236
|
description: "What has to be fixed first. Empty when it can start."
|
|
197893
199237
|
},
|
|
199238
|
+
estimate: {
|
|
199239
|
+
$ref: "#/components/schemas/RaizCampaignEstimate",
|
|
199240
|
+
description: "What reaching each pending recipient once would cost, checked against the organization's balance without reaching anyone."
|
|
199241
|
+
},
|
|
197894
199242
|
preview: {
|
|
197895
199243
|
anyOf: [
|
|
197896
199244
|
{
|
|
@@ -201106,6 +202454,7 @@ var schemaComponents = {
|
|
|
201106
202454
|
"waitingSinceAt",
|
|
201107
202455
|
"workers",
|
|
201108
202456
|
"toolCalls",
|
|
202457
|
+
"usage",
|
|
201109
202458
|
"analysisErrorCode",
|
|
201110
202459
|
"facts"
|
|
201111
202460
|
],
|
|
@@ -201765,6 +203114,10 @@ var schemaComponents = {
|
|
|
201765
203114
|
toolCalls: {
|
|
201766
203115
|
$ref: "#/components/schemas/RaizConversationToolCalls"
|
|
201767
203116
|
},
|
|
203117
|
+
usage: {
|
|
203118
|
+
$ref: "#/components/schemas/RaizConversationUsage",
|
|
203119
|
+
description: "What the conversation used, as billing valued it. What an integration charged for a tool the Agent ran is part of `tools` once billing hands it over, which it does when the integration names the conversation in its report."
|
|
203120
|
+
},
|
|
201768
203121
|
outcomeReview: {
|
|
201769
203122
|
anyOf: [
|
|
201770
203123
|
{
|
|
@@ -202631,6 +203984,105 @@ var schemaComponents = {
|
|
|
202631
203984
|
},
|
|
202632
203985
|
additionalProperties: false
|
|
202633
203986
|
},
|
|
203987
|
+
RaizConversationUsage: {
|
|
203988
|
+
type: "object",
|
|
203989
|
+
required: [
|
|
203990
|
+
"credits",
|
|
203991
|
+
"items",
|
|
203992
|
+
"pending"
|
|
203993
|
+
],
|
|
203994
|
+
properties: {
|
|
203995
|
+
credits: {
|
|
203996
|
+
anyOf: [
|
|
203997
|
+
{
|
|
203998
|
+
type: "number",
|
|
203999
|
+
description: "What the conversation used, in credits at the organization's rates when each part was reported; null while nothing has its value yet.",
|
|
204000
|
+
minimum: 0
|
|
204001
|
+
},
|
|
204002
|
+
{
|
|
204003
|
+
type: "null"
|
|
204004
|
+
}
|
|
204005
|
+
]
|
|
204006
|
+
},
|
|
204007
|
+
items: {
|
|
204008
|
+
type: "array",
|
|
204009
|
+
items: {
|
|
204010
|
+
$ref: "#/components/schemas/RaizConversationUsageItem"
|
|
204011
|
+
},
|
|
204012
|
+
maxItems: 8
|
|
204013
|
+
},
|
|
204014
|
+
pending: {
|
|
204015
|
+
type: "boolean",
|
|
204016
|
+
description: "Part of the usage is still waiting for its value in credits."
|
|
204017
|
+
}
|
|
204018
|
+
},
|
|
204019
|
+
additionalProperties: false
|
|
204020
|
+
},
|
|
204021
|
+
RaizConversationUsageItem: {
|
|
204022
|
+
type: "object",
|
|
204023
|
+
required: [
|
|
204024
|
+
"credits",
|
|
204025
|
+
"kind",
|
|
204026
|
+
"units"
|
|
204027
|
+
],
|
|
204028
|
+
properties: {
|
|
204029
|
+
credits: {
|
|
204030
|
+
anyOf: [
|
|
204031
|
+
{
|
|
204032
|
+
type: "number",
|
|
204033
|
+
description: "Credits of this kind; null while none of it has its value yet.",
|
|
204034
|
+
minimum: 0
|
|
204035
|
+
},
|
|
204036
|
+
{
|
|
204037
|
+
type: "null"
|
|
204038
|
+
}
|
|
204039
|
+
]
|
|
204040
|
+
},
|
|
204041
|
+
kind: {
|
|
204042
|
+
anyOf: [
|
|
204043
|
+
{
|
|
204044
|
+
type: "string",
|
|
204045
|
+
const: "voice"
|
|
204046
|
+
},
|
|
204047
|
+
{
|
|
204048
|
+
type: "string",
|
|
204049
|
+
const: "phone_line"
|
|
204050
|
+
},
|
|
204051
|
+
{
|
|
204052
|
+
type: "string",
|
|
204053
|
+
const: "phone_numbers"
|
|
204054
|
+
},
|
|
204055
|
+
{
|
|
204056
|
+
type: "string",
|
|
204057
|
+
const: "messages"
|
|
204058
|
+
},
|
|
204059
|
+
{
|
|
204060
|
+
type: "string",
|
|
204061
|
+
const: "templates"
|
|
204062
|
+
},
|
|
204063
|
+
{
|
|
204064
|
+
type: "string",
|
|
204065
|
+
const: "conversations"
|
|
204066
|
+
},
|
|
204067
|
+
{
|
|
204068
|
+
type: "string",
|
|
204069
|
+
const: "tools"
|
|
204070
|
+
},
|
|
204071
|
+
{
|
|
204072
|
+
type: "string",
|
|
204073
|
+
const: "ai"
|
|
204074
|
+
}
|
|
204075
|
+
],
|
|
204076
|
+
description: "`voice`: minutes of the voice Agent, rounded up per call. `phone_line`: minutes of the phone line; its credits include what the line was charged when the plan bills it apart. `phone_numbers`: a number's month. `messages`: WhatsApp messages, in and out. `templates`: WhatsApp templates sent. `conversations`: WhatsApp conversations started. `tools`: integration tools the Agent ran; its credits include what an integration charged for a run, once billing hands that over. `ai`: model calls."
|
|
204077
|
+
},
|
|
204078
|
+
units: {
|
|
204079
|
+
type: "number",
|
|
204080
|
+
description: "How much of it: minutes, messages, templates, conversations, tool runs or model calls.",
|
|
204081
|
+
minimum: 0
|
|
204082
|
+
}
|
|
204083
|
+
},
|
|
204084
|
+
additionalProperties: false
|
|
204085
|
+
},
|
|
202634
204086
|
RaizConversationView: {
|
|
202635
204087
|
type: "object",
|
|
202636
204088
|
required: [
|
|
@@ -209310,6 +210762,68 @@ var schemaComponents = {
|
|
|
209310
210762
|
}
|
|
209311
210763
|
}
|
|
209312
210764
|
},
|
|
210765
|
+
RaizCreditsExhaustedError: {
|
|
210766
|
+
type: "object",
|
|
210767
|
+
description: "A failed answer.",
|
|
210768
|
+
additionalProperties: false,
|
|
210769
|
+
required: [
|
|
210770
|
+
"success",
|
|
210771
|
+
"data",
|
|
210772
|
+
"error",
|
|
210773
|
+
"metadata"
|
|
210774
|
+
],
|
|
210775
|
+
properties: {
|
|
210776
|
+
success: {
|
|
210777
|
+
type: "boolean",
|
|
210778
|
+
enum: [
|
|
210779
|
+
false
|
|
210780
|
+
]
|
|
210781
|
+
},
|
|
210782
|
+
data: {
|
|
210783
|
+
const: null
|
|
210784
|
+
},
|
|
210785
|
+
error: {
|
|
210786
|
+
$ref: "#/components/schemas/RaizCreditsExhaustedFailure"
|
|
210787
|
+
},
|
|
210788
|
+
metadata: {
|
|
210789
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
210790
|
+
}
|
|
210791
|
+
}
|
|
210792
|
+
},
|
|
210793
|
+
RaizCreditsExhaustedFailure: {
|
|
210794
|
+
type: "object",
|
|
210795
|
+
description: "The organization's credits do not cover this, so nothing was started. Try again once the organization adds credits.",
|
|
210796
|
+
additionalProperties: false,
|
|
210797
|
+
required: [
|
|
210798
|
+
"code",
|
|
210799
|
+
"message",
|
|
210800
|
+
"retryable",
|
|
210801
|
+
"data"
|
|
210802
|
+
],
|
|
210803
|
+
properties: {
|
|
210804
|
+
code: {
|
|
210805
|
+
type: "string",
|
|
210806
|
+
enum: [
|
|
210807
|
+
"CREDITS_EXHAUSTED"
|
|
210808
|
+
],
|
|
210809
|
+
description: "The failure code, stable across releases."
|
|
210810
|
+
},
|
|
210811
|
+
message: {
|
|
210812
|
+
type: "string",
|
|
210813
|
+
description: "What went wrong, for people; it never contains input values."
|
|
210814
|
+
},
|
|
210815
|
+
retryable: {
|
|
210816
|
+
type: "boolean",
|
|
210817
|
+
enum: [
|
|
210818
|
+
false
|
|
210819
|
+
],
|
|
210820
|
+
description: "Whether repeating the same request may succeed."
|
|
210821
|
+
},
|
|
210822
|
+
data: {
|
|
210823
|
+
$ref: "#/components/schemas/Empty"
|
|
210824
|
+
}
|
|
210825
|
+
}
|
|
210826
|
+
},
|
|
209313
210827
|
RaizDailyReportInProgressError: {
|
|
209314
210828
|
type: "object",
|
|
209315
210829
|
description: "A failed answer.",
|
|
@@ -217255,6 +218769,10 @@ var schemaComponents = {
|
|
|
217255
218769
|
type: "string",
|
|
217256
218770
|
const: "channel-restored"
|
|
217257
218771
|
},
|
|
218772
|
+
{
|
|
218773
|
+
type: "string",
|
|
218774
|
+
const: "credits-exhausted"
|
|
218775
|
+
},
|
|
217258
218776
|
{
|
|
217259
218777
|
type: "string",
|
|
217260
218778
|
const: "import-finished"
|
|
@@ -217295,7 +218813,7 @@ var schemaComponents = {
|
|
|
217295
218813
|
},
|
|
217296
218814
|
description: "Product emails enabled for this organization. All are enabled unless the organization saves a selection. An empty selection turns all of them off.",
|
|
217297
218815
|
uniqueItems: true,
|
|
217298
|
-
maxItems:
|
|
218816
|
+
maxItems: 19
|
|
217299
218817
|
},
|
|
217300
218818
|
recipients: {
|
|
217301
218819
|
type: "array",
|
|
@@ -219787,6 +221305,234 @@ var schemaComponents = {
|
|
|
219787
221305
|
}
|
|
219788
221306
|
},
|
|
219789
221307
|
additionalProperties: false
|
|
221308
|
+
},
|
|
221309
|
+
{
|
|
221310
|
+
type: "object",
|
|
221311
|
+
required: [
|
|
221312
|
+
"from",
|
|
221313
|
+
"hasMore",
|
|
221314
|
+
"to",
|
|
221315
|
+
"name",
|
|
221316
|
+
"rows"
|
|
221317
|
+
],
|
|
221318
|
+
properties: {
|
|
221319
|
+
from: {
|
|
221320
|
+
type: "string",
|
|
221321
|
+
description: "A calendar day in the organization's time zone.",
|
|
221322
|
+
format: "date"
|
|
221323
|
+
},
|
|
221324
|
+
hasMore: {
|
|
221325
|
+
type: "boolean",
|
|
221326
|
+
description: "More than 1000 rows matched: narrow the range or the filters."
|
|
221327
|
+
},
|
|
221328
|
+
to: {
|
|
221329
|
+
type: "string",
|
|
221330
|
+
description: "A calendar day in the organization's time zone.",
|
|
221331
|
+
format: "date"
|
|
221332
|
+
},
|
|
221333
|
+
name: {
|
|
221334
|
+
type: "string",
|
|
221335
|
+
const: "usage_daily"
|
|
221336
|
+
},
|
|
221337
|
+
rows: {
|
|
221338
|
+
type: "array",
|
|
221339
|
+
items: {
|
|
221340
|
+
type: "object",
|
|
221341
|
+
required: [
|
|
221342
|
+
"agentId",
|
|
221343
|
+
"agentName",
|
|
221344
|
+
"cacheReadTokens",
|
|
221345
|
+
"cacheWriteTokens",
|
|
221346
|
+
"campaignId",
|
|
221347
|
+
"channelType",
|
|
221348
|
+
"credits",
|
|
221349
|
+
"day",
|
|
221350
|
+
"inputTokens",
|
|
221351
|
+
"kind",
|
|
221352
|
+
"model",
|
|
221353
|
+
"outputTokens",
|
|
221354
|
+
"pendingCount",
|
|
221355
|
+
"units"
|
|
221356
|
+
],
|
|
221357
|
+
properties: {
|
|
221358
|
+
agentId: {
|
|
221359
|
+
anyOf: [
|
|
221360
|
+
{
|
|
221361
|
+
type: "string",
|
|
221362
|
+
description: "Agent id.",
|
|
221363
|
+
examples: [
|
|
221364
|
+
"agt_01m45h8q2rf3t9w6y7z0b1c2d3"
|
|
221365
|
+
],
|
|
221366
|
+
pattern: "^agt_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$"
|
|
221367
|
+
},
|
|
221368
|
+
{
|
|
221369
|
+
type: "null"
|
|
221370
|
+
}
|
|
221371
|
+
]
|
|
221372
|
+
},
|
|
221373
|
+
agentName: {
|
|
221374
|
+
anyOf: [
|
|
221375
|
+
{
|
|
221376
|
+
type: "string"
|
|
221377
|
+
},
|
|
221378
|
+
{
|
|
221379
|
+
type: "null"
|
|
221380
|
+
}
|
|
221381
|
+
]
|
|
221382
|
+
},
|
|
221383
|
+
cacheReadTokens: {
|
|
221384
|
+
type: "integer",
|
|
221385
|
+
minimum: 0
|
|
221386
|
+
},
|
|
221387
|
+
cacheWriteTokens: {
|
|
221388
|
+
type: "integer",
|
|
221389
|
+
minimum: 0
|
|
221390
|
+
},
|
|
221391
|
+
campaignId: {
|
|
221392
|
+
anyOf: [
|
|
221393
|
+
{
|
|
221394
|
+
type: "string",
|
|
221395
|
+
description: "Campaign id.",
|
|
221396
|
+
examples: [
|
|
221397
|
+
"cmp_01m45h8q2rf3t9w6y7z0b1c2d3"
|
|
221398
|
+
],
|
|
221399
|
+
pattern: "^cmp_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$"
|
|
221400
|
+
},
|
|
221401
|
+
{
|
|
221402
|
+
type: "null"
|
|
221403
|
+
}
|
|
221404
|
+
]
|
|
221405
|
+
},
|
|
221406
|
+
channelType: {
|
|
221407
|
+
anyOf: [
|
|
221408
|
+
{
|
|
221409
|
+
anyOf: [
|
|
221410
|
+
{
|
|
221411
|
+
type: "string",
|
|
221412
|
+
const: "voice"
|
|
221413
|
+
},
|
|
221414
|
+
{
|
|
221415
|
+
type: "string",
|
|
221416
|
+
const: "whatsapp"
|
|
221417
|
+
},
|
|
221418
|
+
{
|
|
221419
|
+
type: "string",
|
|
221420
|
+
const: "web"
|
|
221421
|
+
}
|
|
221422
|
+
]
|
|
221423
|
+
},
|
|
221424
|
+
{
|
|
221425
|
+
type: "null"
|
|
221426
|
+
}
|
|
221427
|
+
]
|
|
221428
|
+
},
|
|
221429
|
+
credits: {
|
|
221430
|
+
anyOf: [
|
|
221431
|
+
{
|
|
221432
|
+
type: "number",
|
|
221433
|
+
description: "Credits at the organization's rates when each part was reported; null while none has its value yet.",
|
|
221434
|
+
minimum: 0
|
|
221435
|
+
},
|
|
221436
|
+
{
|
|
221437
|
+
type: "null"
|
|
221438
|
+
}
|
|
221439
|
+
]
|
|
221440
|
+
},
|
|
221441
|
+
day: {
|
|
221442
|
+
type: "string",
|
|
221443
|
+
description: "A calendar day in the organization's time zone.",
|
|
221444
|
+
format: "date"
|
|
221445
|
+
},
|
|
221446
|
+
inputTokens: {
|
|
221447
|
+
type: "integer",
|
|
221448
|
+
minimum: 0
|
|
221449
|
+
},
|
|
221450
|
+
kind: {
|
|
221451
|
+
anyOf: [
|
|
221452
|
+
{
|
|
221453
|
+
type: "string",
|
|
221454
|
+
const: "voice"
|
|
221455
|
+
},
|
|
221456
|
+
{
|
|
221457
|
+
type: "string",
|
|
221458
|
+
const: "phone_line"
|
|
221459
|
+
},
|
|
221460
|
+
{
|
|
221461
|
+
type: "string",
|
|
221462
|
+
const: "phone_numbers"
|
|
221463
|
+
},
|
|
221464
|
+
{
|
|
221465
|
+
type: "string",
|
|
221466
|
+
const: "messages"
|
|
221467
|
+
},
|
|
221468
|
+
{
|
|
221469
|
+
type: "string",
|
|
221470
|
+
const: "templates"
|
|
221471
|
+
},
|
|
221472
|
+
{
|
|
221473
|
+
type: "string",
|
|
221474
|
+
const: "conversations"
|
|
221475
|
+
},
|
|
221476
|
+
{
|
|
221477
|
+
type: "string",
|
|
221478
|
+
const: "tools"
|
|
221479
|
+
},
|
|
221480
|
+
{
|
|
221481
|
+
type: "string",
|
|
221482
|
+
const: "ai"
|
|
221483
|
+
}
|
|
221484
|
+
],
|
|
221485
|
+
description: "`voice`: minutes of the voice Agent, rounded up per call. `phone_line`: minutes of the phone line; its credits include what the line was charged when the plan bills it apart. `phone_numbers`: a number's month. `messages`: WhatsApp messages, in and out. `templates`: WhatsApp templates sent. `conversations`: WhatsApp conversations started. `tools`: integration tools the Agent ran; its credits include what an integration charged for a run, once billing hands that over. `ai`: model calls."
|
|
221486
|
+
},
|
|
221487
|
+
model: {
|
|
221488
|
+
anyOf: [
|
|
221489
|
+
{
|
|
221490
|
+
anyOf: [
|
|
221491
|
+
{
|
|
221492
|
+
type: "string",
|
|
221493
|
+
const: "arbolito/agile"
|
|
221494
|
+
},
|
|
221495
|
+
{
|
|
221496
|
+
type: "string",
|
|
221497
|
+
const: "arbolito/balanced"
|
|
221498
|
+
},
|
|
221499
|
+
{
|
|
221500
|
+
type: "string",
|
|
221501
|
+
const: "arbolito/advanced"
|
|
221502
|
+
},
|
|
221503
|
+
{
|
|
221504
|
+
type: "string",
|
|
221505
|
+
const: "arbolito/top"
|
|
221506
|
+
}
|
|
221507
|
+
],
|
|
221508
|
+
description: "For `ai`: the tier of the model that answered. Null for every other kind."
|
|
221509
|
+
},
|
|
221510
|
+
{
|
|
221511
|
+
type: "null"
|
|
221512
|
+
}
|
|
221513
|
+
]
|
|
221514
|
+
},
|
|
221515
|
+
outputTokens: {
|
|
221516
|
+
type: "integer",
|
|
221517
|
+
minimum: 0
|
|
221518
|
+
},
|
|
221519
|
+
pendingCount: {
|
|
221520
|
+
type: "integer",
|
|
221521
|
+
description: "Parts still waiting for their value in credits.",
|
|
221522
|
+
minimum: 0
|
|
221523
|
+
},
|
|
221524
|
+
units: {
|
|
221525
|
+
type: "number",
|
|
221526
|
+
description: "Minutes, messages, templates, conversations, numbers, tool runs or model calls.",
|
|
221527
|
+
minimum: 0
|
|
221528
|
+
}
|
|
221529
|
+
},
|
|
221530
|
+
additionalProperties: false
|
|
221531
|
+
},
|
|
221532
|
+
maxItems: 1000
|
|
221533
|
+
}
|
|
221534
|
+
},
|
|
221535
|
+
additionalProperties: false
|
|
219790
221536
|
}
|
|
219791
221537
|
]
|
|
219792
221538
|
},
|
|
@@ -225486,6 +227232,10 @@ var schemaComponents = {
|
|
|
225486
227232
|
type: "string",
|
|
225487
227233
|
const: "channel-restored"
|
|
225488
227234
|
},
|
|
227235
|
+
{
|
|
227236
|
+
type: "string",
|
|
227237
|
+
const: "credits-exhausted"
|
|
227238
|
+
},
|
|
225489
227239
|
{
|
|
225490
227240
|
type: "string",
|
|
225491
227241
|
const: "import-finished"
|
|
@@ -225526,7 +227276,7 @@ var schemaComponents = {
|
|
|
225526
227276
|
},
|
|
225527
227277
|
description: "Product emails enabled for this organization. All are enabled unless the organization saves a selection. An empty selection turns all of them off.",
|
|
225528
227278
|
uniqueItems: true,
|
|
225529
|
-
maxItems:
|
|
227279
|
+
maxItems: 19
|
|
225530
227280
|
},
|
|
225531
227281
|
{
|
|
225532
227282
|
type: "null"
|
|
@@ -232827,6 +234577,9 @@ var schemaComponents = {
|
|
|
232827
234577
|
{
|
|
232828
234578
|
$ref: "#/components/schemas/SanitasProviderUnavailableFailure"
|
|
232829
234579
|
},
|
|
234580
|
+
{
|
|
234581
|
+
$ref: "#/components/schemas/SanitasProviderAccessDeniedFailure"
|
|
234582
|
+
},
|
|
232830
234583
|
{
|
|
232831
234584
|
$ref: "#/components/schemas/SanitasProviderChallengeRequiredFailure"
|
|
232832
234585
|
}
|
|
@@ -232836,6 +234589,7 @@ var schemaComponents = {
|
|
|
232836
234589
|
mapping: {
|
|
232837
234590
|
UPSTREAM_UNAVAILABLE: "#/components/schemas/UpstreamUnavailableFailure",
|
|
232838
234591
|
PROVIDER_UNAVAILABLE: "#/components/schemas/SanitasProviderUnavailableFailure",
|
|
234592
|
+
PROVIDER_ACCESS_DENIED: "#/components/schemas/SanitasProviderAccessDeniedFailure",
|
|
232839
234593
|
PROVIDER_CHALLENGE_REQUIRED: "#/components/schemas/SanitasProviderChallengeRequiredFailure"
|
|
232840
234594
|
}
|
|
232841
234595
|
}
|
|
@@ -233195,6 +234949,9 @@ var schemaComponents = {
|
|
|
233195
234949
|
{
|
|
233196
234950
|
$ref: "#/components/schemas/SanitasProviderUnavailableFailure"
|
|
233197
234951
|
},
|
|
234952
|
+
{
|
|
234953
|
+
$ref: "#/components/schemas/SanitasProviderAccessDeniedFailure"
|
|
234954
|
+
},
|
|
233198
234955
|
{
|
|
233199
234956
|
$ref: "#/components/schemas/SanitasProviderChallengeRequiredFailure"
|
|
233200
234957
|
}
|
|
@@ -233204,6 +234961,7 @@ var schemaComponents = {
|
|
|
233204
234961
|
mapping: {
|
|
233205
234962
|
UPSTREAM_UNAVAILABLE: "#/components/schemas/UpstreamUnavailableFailure",
|
|
233206
234963
|
PROVIDER_UNAVAILABLE: "#/components/schemas/SanitasProviderUnavailableFailure",
|
|
234964
|
+
PROVIDER_ACCESS_DENIED: "#/components/schemas/SanitasProviderAccessDeniedFailure",
|
|
233207
234965
|
PROVIDER_CHALLENGE_REQUIRED: "#/components/schemas/SanitasProviderChallengeRequiredFailure"
|
|
233208
234966
|
}
|
|
233209
234967
|
}
|
|
@@ -233287,6 +235045,40 @@ var schemaComponents = {
|
|
|
233287
235045
|
}
|
|
233288
235046
|
}
|
|
233289
235047
|
},
|
|
235048
|
+
SanitasProviderAccessDeniedFailure: {
|
|
235049
|
+
type: "object",
|
|
235050
|
+
description: "Sanitas denied the validator request. Coverage is unknown.",
|
|
235051
|
+
additionalProperties: false,
|
|
235052
|
+
required: [
|
|
235053
|
+
"code",
|
|
235054
|
+
"message",
|
|
235055
|
+
"retryable",
|
|
235056
|
+
"data"
|
|
235057
|
+
],
|
|
235058
|
+
properties: {
|
|
235059
|
+
code: {
|
|
235060
|
+
type: "string",
|
|
235061
|
+
enum: [
|
|
235062
|
+
"PROVIDER_ACCESS_DENIED"
|
|
235063
|
+
],
|
|
235064
|
+
description: "The failure code, stable across releases."
|
|
235065
|
+
},
|
|
235066
|
+
message: {
|
|
235067
|
+
type: "string",
|
|
235068
|
+
description: "What went wrong, for people; it never contains input values."
|
|
235069
|
+
},
|
|
235070
|
+
retryable: {
|
|
235071
|
+
type: "boolean",
|
|
235072
|
+
enum: [
|
|
235073
|
+
false
|
|
235074
|
+
],
|
|
235075
|
+
description: "Whether repeating the same request may succeed."
|
|
235076
|
+
},
|
|
235077
|
+
data: {
|
|
235078
|
+
$ref: "#/components/schemas/Empty"
|
|
235079
|
+
}
|
|
235080
|
+
}
|
|
235081
|
+
},
|
|
233290
235082
|
SanitasProviderChallengeRequiredFailure: {
|
|
233291
235083
|
type: "object",
|
|
233292
235084
|
description: "The provider requires an interactive challenge. Coverage is unknown.",
|
|
@@ -245721,249 +247513,392 @@ var schemaComponents = {
|
|
|
245721
247513
|
},
|
|
245722
247514
|
additionalProperties: false
|
|
245723
247515
|
},
|
|
245724
|
-
AccountApiKeysCreateInput: {
|
|
247516
|
+
AccountApiKeysCreateInput: {
|
|
247517
|
+
type: "object",
|
|
247518
|
+
required: [
|
|
247519
|
+
"name",
|
|
247520
|
+
"scopes"
|
|
247521
|
+
],
|
|
247522
|
+
properties: {
|
|
247523
|
+
name: {
|
|
247524
|
+
type: "string",
|
|
247525
|
+
minLength: 1,
|
|
247526
|
+
maxLength: 60,
|
|
247527
|
+
description: 'What uses it, such as "Billing backend".'
|
|
247528
|
+
},
|
|
247529
|
+
scopes: {
|
|
247530
|
+
type: "array",
|
|
247531
|
+
items: {
|
|
247532
|
+
type: "string",
|
|
247533
|
+
minLength: 1,
|
|
247534
|
+
maxLength: 280,
|
|
247535
|
+
pattern: "^[a-z][a-z0-9-]*(?::[a-z][a-z0-9-]*){2,}$"
|
|
247536
|
+
},
|
|
247537
|
+
minItems: 1,
|
|
247538
|
+
maxItems: 100,
|
|
247539
|
+
uniqueItems: true
|
|
247540
|
+
},
|
|
247541
|
+
expiresAt: {
|
|
247542
|
+
type: "string",
|
|
247543
|
+
format: "date-time",
|
|
247544
|
+
description: "Exclusive expiration instant, with timezone. Defaults to seven days from creation."
|
|
247545
|
+
},
|
|
247546
|
+
restrictions: {
|
|
247547
|
+
type: "object",
|
|
247548
|
+
patternProperties: {
|
|
247549
|
+
"^[a-z][a-z0-9-]{1,63}$": {
|
|
247550
|
+
type: "object",
|
|
247551
|
+
required: [
|
|
247552
|
+
"operations",
|
|
247553
|
+
"connections"
|
|
247554
|
+
],
|
|
247555
|
+
properties: {
|
|
247556
|
+
operations: {
|
|
247557
|
+
anyOf: [
|
|
247558
|
+
{
|
|
247559
|
+
type: "array",
|
|
247560
|
+
items: {
|
|
247561
|
+
type: "string",
|
|
247562
|
+
minLength: 5,
|
|
247563
|
+
maxLength: 200,
|
|
247564
|
+
pattern: "^[a-z][a-z0-9-]*(?:\\.[a-zA-Z][a-zA-Z0-9-]*){2,}$"
|
|
247565
|
+
},
|
|
247566
|
+
minItems: 1,
|
|
247567
|
+
maxItems: 200,
|
|
247568
|
+
uniqueItems: true
|
|
247569
|
+
},
|
|
247570
|
+
{
|
|
247571
|
+
type: "null"
|
|
247572
|
+
}
|
|
247573
|
+
],
|
|
247574
|
+
description: "The tools the key may call in this integration; null: every one its scopes admit."
|
|
247575
|
+
},
|
|
247576
|
+
connections: {
|
|
247577
|
+
anyOf: [
|
|
247578
|
+
{
|
|
247579
|
+
type: "array",
|
|
247580
|
+
items: {
|
|
247581
|
+
type: "string",
|
|
247582
|
+
pattern: "^con_[0-7][0-9a-hjkmnp-tv-z]{25}$"
|
|
247583
|
+
},
|
|
247584
|
+
minItems: 1,
|
|
247585
|
+
maxItems: 50,
|
|
247586
|
+
uniqueItems: true
|
|
247587
|
+
},
|
|
247588
|
+
{
|
|
247589
|
+
type: "null"
|
|
247590
|
+
}
|
|
247591
|
+
],
|
|
247592
|
+
description: "The organization's connections of this integration the key may use; null: all of them."
|
|
247593
|
+
}
|
|
247594
|
+
},
|
|
247595
|
+
additionalProperties: false
|
|
247596
|
+
}
|
|
247597
|
+
},
|
|
247598
|
+
additionalProperties: false,
|
|
247599
|
+
maxProperties: 20,
|
|
247600
|
+
description: "Per integration (sura, visoft, agenda): what the key may use there. An integration left out is decided by the key's scopes alone."
|
|
247601
|
+
}
|
|
247602
|
+
},
|
|
247603
|
+
additionalProperties: false
|
|
247604
|
+
},
|
|
247605
|
+
AccountApiKeysDeleteInput: {
|
|
247606
|
+
type: "object",
|
|
247607
|
+
required: [
|
|
247608
|
+
"apiKeyId"
|
|
247609
|
+
],
|
|
247610
|
+
properties: {
|
|
247611
|
+
apiKeyId: {
|
|
247612
|
+
type: "string",
|
|
247613
|
+
minLength: 1,
|
|
247614
|
+
maxLength: 256,
|
|
247615
|
+
description: "The API key's id, as apiKeys.list answers it."
|
|
247616
|
+
}
|
|
247617
|
+
},
|
|
247618
|
+
additionalProperties: false
|
|
247619
|
+
},
|
|
247620
|
+
AccountApiKeysRotateInput: {
|
|
247621
|
+
type: "object",
|
|
247622
|
+
required: [
|
|
247623
|
+
"apiKeyId"
|
|
247624
|
+
],
|
|
247625
|
+
properties: {
|
|
247626
|
+
apiKeyId: {
|
|
247627
|
+
type: "string",
|
|
247628
|
+
minLength: 1,
|
|
247629
|
+
maxLength: 256,
|
|
247630
|
+
description: "The API key's id, as apiKeys.list answers it."
|
|
247631
|
+
}
|
|
247632
|
+
},
|
|
247633
|
+
additionalProperties: false
|
|
247634
|
+
},
|
|
247635
|
+
AccountBillingGetInput: {
|
|
247636
|
+
type: "object",
|
|
247637
|
+
properties: {},
|
|
247638
|
+
additionalProperties: false
|
|
247639
|
+
},
|
|
247640
|
+
AccountBillingUpdateInput: {
|
|
247641
|
+
type: "object",
|
|
247642
|
+
properties: {
|
|
247643
|
+
autoTopUp: {
|
|
247644
|
+
type: "object",
|
|
247645
|
+
required: [
|
|
247646
|
+
"enabled",
|
|
247647
|
+
"threshold",
|
|
247648
|
+
"credits",
|
|
247649
|
+
"perMonth"
|
|
247650
|
+
],
|
|
247651
|
+
properties: {
|
|
247652
|
+
enabled: {
|
|
247653
|
+
type: "boolean"
|
|
247654
|
+
},
|
|
247655
|
+
threshold: {
|
|
247656
|
+
type: "number",
|
|
247657
|
+
minimum: 0,
|
|
247658
|
+
maximum: 1e5,
|
|
247659
|
+
description: "When the balance falls below this…"
|
|
247660
|
+
},
|
|
247661
|
+
credits: {
|
|
247662
|
+
type: "integer",
|
|
247663
|
+
minimum: 10,
|
|
247664
|
+
maximum: 1e4,
|
|
247665
|
+
description: "…buy this many credits with the saved card…"
|
|
247666
|
+
},
|
|
247667
|
+
perMonth: {
|
|
247668
|
+
type: "integer",
|
|
247669
|
+
minimum: 1,
|
|
247670
|
+
maximum: 31,
|
|
247671
|
+
description: "…at most this many times a month."
|
|
247672
|
+
}
|
|
247673
|
+
},
|
|
247674
|
+
additionalProperties: false
|
|
247675
|
+
},
|
|
247676
|
+
lowBalanceAlert: {
|
|
247677
|
+
anyOf: [
|
|
247678
|
+
{
|
|
247679
|
+
type: "number",
|
|
247680
|
+
minimum: 0,
|
|
247681
|
+
maximum: 1e5
|
|
247682
|
+
},
|
|
247683
|
+
{
|
|
247684
|
+
type: "null"
|
|
247685
|
+
}
|
|
247686
|
+
],
|
|
247687
|
+
description: "The balance at which administrators are emailed; null turns it off."
|
|
247688
|
+
}
|
|
247689
|
+
},
|
|
247690
|
+
additionalProperties: false
|
|
247691
|
+
},
|
|
247692
|
+
AccountBillingPortalSessionsCreateInput: {
|
|
247693
|
+
type: "object",
|
|
247694
|
+
properties: {},
|
|
247695
|
+
additionalProperties: false
|
|
247696
|
+
},
|
|
247697
|
+
AccountColombianRecordsLookupInput: {
|
|
247698
|
+
type: "object",
|
|
247699
|
+
required: [
|
|
247700
|
+
"integration"
|
|
247701
|
+
],
|
|
247702
|
+
properties: {
|
|
247703
|
+
integration: {
|
|
247704
|
+
anyOf: [
|
|
247705
|
+
{
|
|
247706
|
+
type: "string",
|
|
247707
|
+
const: "adres"
|
|
247708
|
+
},
|
|
247709
|
+
{
|
|
247710
|
+
type: "string",
|
|
247711
|
+
const: "sisben"
|
|
247712
|
+
},
|
|
247713
|
+
{
|
|
247714
|
+
type: "string",
|
|
247715
|
+
const: "policia-colombia"
|
|
247716
|
+
}
|
|
247717
|
+
]
|
|
247718
|
+
},
|
|
247719
|
+
documentType: {
|
|
247720
|
+
type: "string",
|
|
247721
|
+
pattern: "^[A-Z]{2}$",
|
|
247722
|
+
description: "Required for ADRES and Sisbén."
|
|
247723
|
+
},
|
|
247724
|
+
documentNumber: {
|
|
247725
|
+
type: "string",
|
|
247726
|
+
pattern: "^(?:[0-9]{1,14}|[A-Z0-9]{8,10})$",
|
|
247727
|
+
description: "Required for ADRES and Sisbén. Preserve leading zeros."
|
|
247728
|
+
},
|
|
247729
|
+
agentMode: {
|
|
247730
|
+
type: "boolean",
|
|
247731
|
+
default: false,
|
|
247732
|
+
description: "Return a concise Spanish tool answer. Authorization is the same in both formats."
|
|
247733
|
+
}
|
|
247734
|
+
},
|
|
247735
|
+
additionalProperties: false,
|
|
247736
|
+
anyOf: [
|
|
247737
|
+
{
|
|
247738
|
+
properties: {
|
|
247739
|
+
integration: {
|
|
247740
|
+
const: "policia-colombia"
|
|
247741
|
+
}
|
|
247742
|
+
}
|
|
247743
|
+
},
|
|
247744
|
+
{
|
|
247745
|
+
required: [
|
|
247746
|
+
"documentType",
|
|
247747
|
+
"documentNumber"
|
|
247748
|
+
]
|
|
247749
|
+
}
|
|
247750
|
+
]
|
|
247751
|
+
},
|
|
247752
|
+
AccountConnectionsListInput: {
|
|
247753
|
+
type: "object",
|
|
247754
|
+
required: [],
|
|
247755
|
+
properties: {
|
|
247756
|
+
cursor: {
|
|
247757
|
+
type: "string",
|
|
247758
|
+
description: "Opaque cursor returned by pageInfo; omit it to request the first page."
|
|
247759
|
+
},
|
|
247760
|
+
direction: {
|
|
247761
|
+
anyOf: [
|
|
247762
|
+
{
|
|
247763
|
+
type: "string",
|
|
247764
|
+
const: "forward"
|
|
247765
|
+
},
|
|
247766
|
+
{
|
|
247767
|
+
type: "string",
|
|
247768
|
+
const: "backward"
|
|
247769
|
+
}
|
|
247770
|
+
],
|
|
247771
|
+
description: "Direction to traverse the stable keyset ordering from the supplied cursor.",
|
|
247772
|
+
default: "forward"
|
|
247773
|
+
},
|
|
247774
|
+
limit: {
|
|
247775
|
+
type: "integer",
|
|
247776
|
+
minimum: 1,
|
|
247777
|
+
maximum: 100,
|
|
247778
|
+
description: "Maximum items returned in one page. Defaults to 25; larger reads require another cursor.",
|
|
247779
|
+
default: 25
|
|
247780
|
+
},
|
|
247781
|
+
tag: {
|
|
247782
|
+
anyOf: [
|
|
247783
|
+
{
|
|
247784
|
+
type: "string",
|
|
247785
|
+
const: "postconsulta"
|
|
247786
|
+
},
|
|
247787
|
+
{
|
|
247788
|
+
type: "string",
|
|
247789
|
+
const: "facturacion"
|
|
247790
|
+
}
|
|
247791
|
+
]
|
|
247792
|
+
}
|
|
247793
|
+
},
|
|
247794
|
+
additionalProperties: false
|
|
247795
|
+
},
|
|
247796
|
+
AccountConnectionsRefreshInput: {
|
|
247797
|
+
type: "object",
|
|
247798
|
+
required: [
|
|
247799
|
+
"connectionId"
|
|
247800
|
+
],
|
|
247801
|
+
properties: {
|
|
247802
|
+
connectionId: {
|
|
247803
|
+
type: "string",
|
|
247804
|
+
pattern: "^con_[0-7][0-9a-hjkmnp-tv-z]{25}$",
|
|
247805
|
+
description: "A connection's id: con_ and 26 characters, stable and unique across the platform."
|
|
247806
|
+
}
|
|
247807
|
+
},
|
|
247808
|
+
additionalProperties: false
|
|
247809
|
+
},
|
|
247810
|
+
AccountInvitationsListInput: {
|
|
247811
|
+
type: "object",
|
|
247812
|
+
required: [],
|
|
247813
|
+
properties: {
|
|
247814
|
+
cursor: {
|
|
247815
|
+
type: "string",
|
|
247816
|
+
description: "Opaque cursor returned by pageInfo; omit it to request the first page."
|
|
247817
|
+
},
|
|
247818
|
+
direction: {
|
|
247819
|
+
anyOf: [
|
|
247820
|
+
{
|
|
247821
|
+
type: "string",
|
|
247822
|
+
const: "forward"
|
|
247823
|
+
},
|
|
247824
|
+
{
|
|
247825
|
+
type: "string",
|
|
247826
|
+
const: "backward"
|
|
247827
|
+
}
|
|
247828
|
+
],
|
|
247829
|
+
description: "Direction to traverse the stable keyset ordering from the supplied cursor.",
|
|
247830
|
+
default: "forward"
|
|
247831
|
+
},
|
|
247832
|
+
limit: {
|
|
247833
|
+
type: "integer",
|
|
247834
|
+
minimum: 1,
|
|
247835
|
+
maximum: 100,
|
|
247836
|
+
description: "Maximum items returned in one page. Defaults to 25; larger reads require another cursor.",
|
|
247837
|
+
default: 25
|
|
247838
|
+
}
|
|
247839
|
+
},
|
|
247840
|
+
additionalProperties: false
|
|
247841
|
+
},
|
|
247842
|
+
AccountInvitationsCreateInput: {
|
|
245725
247843
|
type: "object",
|
|
245726
247844
|
required: [
|
|
245727
|
-
"
|
|
245728
|
-
"
|
|
247845
|
+
"email",
|
|
247846
|
+
"product",
|
|
247847
|
+
"role"
|
|
245729
247848
|
],
|
|
245730
247849
|
properties: {
|
|
245731
|
-
|
|
245732
|
-
type: "string",
|
|
245733
|
-
minLength: 1,
|
|
245734
|
-
maxLength: 60,
|
|
245735
|
-
description: 'What uses it, such as "Billing backend".'
|
|
245736
|
-
},
|
|
245737
|
-
scopes: {
|
|
245738
|
-
type: "array",
|
|
245739
|
-
items: {
|
|
245740
|
-
type: "string",
|
|
245741
|
-
minLength: 1,
|
|
245742
|
-
maxLength: 280,
|
|
245743
|
-
pattern: "^[a-z][a-z0-9-]*(?::[a-z][a-z0-9-]*){2,}$"
|
|
245744
|
-
},
|
|
245745
|
-
minItems: 1,
|
|
245746
|
-
maxItems: 100,
|
|
245747
|
-
uniqueItems: true
|
|
245748
|
-
},
|
|
245749
|
-
expiresAt: {
|
|
247850
|
+
email: {
|
|
245750
247851
|
type: "string",
|
|
245751
|
-
format: "
|
|
245752
|
-
|
|
247852
|
+
format: "email",
|
|
247853
|
+
maxLength: 320,
|
|
247854
|
+
description: "Who to invite: someone who does not have an Arbol account yet."
|
|
245753
247855
|
},
|
|
245754
|
-
|
|
245755
|
-
type: "object",
|
|
245756
|
-
patternProperties: {
|
|
245757
|
-
"^[a-z][a-z0-9-]{1,63}$": {
|
|
245758
|
-
type: "object",
|
|
245759
|
-
required: [
|
|
245760
|
-
"operations",
|
|
245761
|
-
"connections"
|
|
245762
|
-
],
|
|
245763
|
-
properties: {
|
|
245764
|
-
operations: {
|
|
245765
|
-
anyOf: [
|
|
245766
|
-
{
|
|
245767
|
-
type: "array",
|
|
245768
|
-
items: {
|
|
245769
|
-
type: "string",
|
|
245770
|
-
minLength: 5,
|
|
245771
|
-
maxLength: 200,
|
|
245772
|
-
pattern: "^[a-z][a-z0-9-]*(?:\\.[a-zA-Z][a-zA-Z0-9-]*){2,}$"
|
|
245773
|
-
},
|
|
245774
|
-
minItems: 1,
|
|
245775
|
-
maxItems: 200,
|
|
245776
|
-
uniqueItems: true
|
|
245777
|
-
},
|
|
245778
|
-
{
|
|
245779
|
-
type: "null"
|
|
245780
|
-
}
|
|
245781
|
-
],
|
|
245782
|
-
description: "The tools the key may call in this integration; null: every one its scopes admit."
|
|
245783
|
-
},
|
|
245784
|
-
connections: {
|
|
245785
|
-
anyOf: [
|
|
245786
|
-
{
|
|
245787
|
-
type: "array",
|
|
245788
|
-
items: {
|
|
245789
|
-
type: "string",
|
|
245790
|
-
pattern: "^con_[0-7][0-9a-hjkmnp-tv-z]{25}$"
|
|
245791
|
-
},
|
|
245792
|
-
minItems: 1,
|
|
245793
|
-
maxItems: 50,
|
|
245794
|
-
uniqueItems: true
|
|
245795
|
-
},
|
|
245796
|
-
{
|
|
245797
|
-
type: "null"
|
|
245798
|
-
}
|
|
245799
|
-
],
|
|
245800
|
-
description: "The organization's connections of this integration the key may use; null: all of them."
|
|
245801
|
-
}
|
|
245802
|
-
},
|
|
245803
|
-
additionalProperties: false
|
|
245804
|
-
}
|
|
245805
|
-
},
|
|
245806
|
-
additionalProperties: false,
|
|
245807
|
-
maxProperties: 20,
|
|
245808
|
-
description: "Per integration (sura, visoft, agenda): what the key may use there. An integration left out is decided by the key's scopes alone."
|
|
245809
|
-
}
|
|
245810
|
-
},
|
|
245811
|
-
additionalProperties: false
|
|
245812
|
-
},
|
|
245813
|
-
AccountApiKeysDeleteInput: {
|
|
245814
|
-
type: "object",
|
|
245815
|
-
required: [
|
|
245816
|
-
"apiKeyId"
|
|
245817
|
-
],
|
|
245818
|
-
properties: {
|
|
245819
|
-
apiKeyId: {
|
|
245820
|
-
type: "string",
|
|
245821
|
-
minLength: 1,
|
|
245822
|
-
maxLength: 256,
|
|
245823
|
-
description: "The API key's id, as apiKeys.list answers it."
|
|
245824
|
-
}
|
|
245825
|
-
},
|
|
245826
|
-
additionalProperties: false
|
|
245827
|
-
},
|
|
245828
|
-
AccountApiKeysRotateInput: {
|
|
245829
|
-
type: "object",
|
|
245830
|
-
required: [
|
|
245831
|
-
"apiKeyId"
|
|
245832
|
-
],
|
|
245833
|
-
properties: {
|
|
245834
|
-
apiKeyId: {
|
|
245835
|
-
type: "string",
|
|
245836
|
-
minLength: 1,
|
|
245837
|
-
maxLength: 256,
|
|
245838
|
-
description: "The API key's id, as apiKeys.list answers it."
|
|
245839
|
-
}
|
|
245840
|
-
},
|
|
245841
|
-
additionalProperties: false
|
|
245842
|
-
},
|
|
245843
|
-
AccountBillingGetInput: {
|
|
245844
|
-
type: "object",
|
|
245845
|
-
properties: {},
|
|
245846
|
-
additionalProperties: false
|
|
245847
|
-
},
|
|
245848
|
-
AccountBillingPortalSessionsCreateInput: {
|
|
245849
|
-
type: "object",
|
|
245850
|
-
properties: {},
|
|
245851
|
-
additionalProperties: false
|
|
245852
|
-
},
|
|
245853
|
-
AccountColombianRecordsLookupInput: {
|
|
245854
|
-
type: "object",
|
|
245855
|
-
required: [
|
|
245856
|
-
"integration"
|
|
245857
|
-
],
|
|
245858
|
-
properties: {
|
|
245859
|
-
integration: {
|
|
247856
|
+
product: {
|
|
245860
247857
|
anyOf: [
|
|
245861
247858
|
{
|
|
245862
247859
|
type: "string",
|
|
245863
|
-
const: "
|
|
247860
|
+
const: "raiz"
|
|
245864
247861
|
},
|
|
245865
247862
|
{
|
|
245866
247863
|
type: "string",
|
|
245867
|
-
const: "
|
|
247864
|
+
const: "agenda"
|
|
245868
247865
|
},
|
|
245869
247866
|
{
|
|
245870
247867
|
type: "string",
|
|
245871
|
-
const: "
|
|
245872
|
-
}
|
|
245873
|
-
]
|
|
245874
|
-
},
|
|
245875
|
-
documentType: {
|
|
245876
|
-
type: "string",
|
|
245877
|
-
pattern: "^[A-Z]{2}$",
|
|
245878
|
-
description: "Required for ADRES and Sisbén."
|
|
245879
|
-
},
|
|
245880
|
-
documentNumber: {
|
|
245881
|
-
type: "string",
|
|
245882
|
-
pattern: "^(?:[0-9]{1,14}|[A-Z0-9]{8,10})$",
|
|
245883
|
-
description: "Required for ADRES and Sisbén. Preserve leading zeros."
|
|
245884
|
-
},
|
|
245885
|
-
agentMode: {
|
|
245886
|
-
type: "boolean",
|
|
245887
|
-
default: false,
|
|
245888
|
-
description: "Return a concise Spanish tool answer. Authorization is the same in both formats."
|
|
245889
|
-
}
|
|
245890
|
-
},
|
|
245891
|
-
additionalProperties: false,
|
|
245892
|
-
anyOf: [
|
|
245893
|
-
{
|
|
245894
|
-
properties: {
|
|
245895
|
-
integration: {
|
|
245896
|
-
const: "policia-colombia"
|
|
245897
|
-
}
|
|
245898
|
-
}
|
|
245899
|
-
},
|
|
245900
|
-
{
|
|
245901
|
-
required: [
|
|
245902
|
-
"documentType",
|
|
245903
|
-
"documentNumber"
|
|
245904
|
-
]
|
|
245905
|
-
}
|
|
245906
|
-
]
|
|
245907
|
-
},
|
|
245908
|
-
AccountConnectionsListInput: {
|
|
245909
|
-
type: "object",
|
|
245910
|
-
required: [],
|
|
245911
|
-
properties: {
|
|
245912
|
-
cursor: {
|
|
245913
|
-
type: "string",
|
|
245914
|
-
description: "Opaque cursor returned by pageInfo; omit it to request the first page."
|
|
245915
|
-
},
|
|
245916
|
-
direction: {
|
|
245917
|
-
anyOf: [
|
|
245918
|
-
{
|
|
245919
|
-
type: "string",
|
|
245920
|
-
const: "forward"
|
|
247868
|
+
const: "ambar"
|
|
245921
247869
|
},
|
|
245922
247870
|
{
|
|
245923
247871
|
type: "string",
|
|
245924
|
-
const: "
|
|
247872
|
+
const: "account"
|
|
245925
247873
|
}
|
|
245926
247874
|
],
|
|
245927
|
-
description: "
|
|
245928
|
-
default: "forward"
|
|
245929
|
-
},
|
|
245930
|
-
limit: {
|
|
245931
|
-
type: "integer",
|
|
245932
|
-
minimum: 1,
|
|
245933
|
-
maximum: 100,
|
|
245934
|
-
description: "Maximum items returned in one page. Defaults to 25; larger reads require another cursor.",
|
|
245935
|
-
default: 25
|
|
247875
|
+
description: "A product whose team Account administers: Raíz, Agenda, Ámbar or Account itself."
|
|
245936
247876
|
},
|
|
245937
|
-
|
|
245938
|
-
|
|
245939
|
-
|
|
245940
|
-
|
|
245941
|
-
|
|
245942
|
-
},
|
|
245943
|
-
{
|
|
245944
|
-
type: "string",
|
|
245945
|
-
const: "facturacion"
|
|
245946
|
-
}
|
|
245947
|
-
]
|
|
247877
|
+
role: {
|
|
247878
|
+
type: "string",
|
|
247879
|
+
minLength: 1,
|
|
247880
|
+
maxLength: 128,
|
|
247881
|
+
description: "A role name, such as calendar:operator."
|
|
245948
247882
|
}
|
|
245949
247883
|
},
|
|
245950
247884
|
additionalProperties: false
|
|
245951
247885
|
},
|
|
245952
|
-
|
|
247886
|
+
AccountInvitationsDeleteInput: {
|
|
245953
247887
|
type: "object",
|
|
245954
247888
|
required: [
|
|
245955
|
-
"
|
|
247889
|
+
"invitationId"
|
|
245956
247890
|
],
|
|
245957
247891
|
properties: {
|
|
245958
|
-
|
|
247892
|
+
invitationId: {
|
|
245959
247893
|
type: "string",
|
|
245960
|
-
|
|
245961
|
-
|
|
247894
|
+
minLength: 1,
|
|
247895
|
+
maxLength: 256,
|
|
247896
|
+
description: "The invitation's id, as invitations.list answers it."
|
|
245962
247897
|
}
|
|
245963
247898
|
},
|
|
245964
247899
|
additionalProperties: false
|
|
245965
247900
|
},
|
|
245966
|
-
|
|
247901
|
+
AccountInvoicesListInput: {
|
|
245967
247902
|
type: "object",
|
|
245968
247903
|
required: [],
|
|
245969
247904
|
properties: {
|
|
@@ -245995,65 +247930,6 @@ var schemaComponents = {
|
|
|
245995
247930
|
},
|
|
245996
247931
|
additionalProperties: false
|
|
245997
247932
|
},
|
|
245998
|
-
AccountInvitationsCreateInput: {
|
|
245999
|
-
type: "object",
|
|
246000
|
-
required: [
|
|
246001
|
-
"email",
|
|
246002
|
-
"product",
|
|
246003
|
-
"role"
|
|
246004
|
-
],
|
|
246005
|
-
properties: {
|
|
246006
|
-
email: {
|
|
246007
|
-
type: "string",
|
|
246008
|
-
format: "email",
|
|
246009
|
-
maxLength: 320,
|
|
246010
|
-
description: "Who to invite: someone who does not have an Arbol account yet."
|
|
246011
|
-
},
|
|
246012
|
-
product: {
|
|
246013
|
-
anyOf: [
|
|
246014
|
-
{
|
|
246015
|
-
type: "string",
|
|
246016
|
-
const: "raiz"
|
|
246017
|
-
},
|
|
246018
|
-
{
|
|
246019
|
-
type: "string",
|
|
246020
|
-
const: "agenda"
|
|
246021
|
-
},
|
|
246022
|
-
{
|
|
246023
|
-
type: "string",
|
|
246024
|
-
const: "ambar"
|
|
246025
|
-
},
|
|
246026
|
-
{
|
|
246027
|
-
type: "string",
|
|
246028
|
-
const: "account"
|
|
246029
|
-
}
|
|
246030
|
-
],
|
|
246031
|
-
description: "A product whose team Account administers: Raíz, Agenda, Ámbar or Account itself."
|
|
246032
|
-
},
|
|
246033
|
-
role: {
|
|
246034
|
-
type: "string",
|
|
246035
|
-
minLength: 1,
|
|
246036
|
-
maxLength: 128,
|
|
246037
|
-
description: "A role name, such as calendar:operator."
|
|
246038
|
-
}
|
|
246039
|
-
},
|
|
246040
|
-
additionalProperties: false
|
|
246041
|
-
},
|
|
246042
|
-
AccountInvitationsDeleteInput: {
|
|
246043
|
-
type: "object",
|
|
246044
|
-
required: [
|
|
246045
|
-
"invitationId"
|
|
246046
|
-
],
|
|
246047
|
-
properties: {
|
|
246048
|
-
invitationId: {
|
|
246049
|
-
type: "string",
|
|
246050
|
-
minLength: 1,
|
|
246051
|
-
maxLength: 256,
|
|
246052
|
-
description: "The invitation's id, as invitations.list answers it."
|
|
246053
|
-
}
|
|
246054
|
-
},
|
|
246055
|
-
additionalProperties: false
|
|
246056
|
-
},
|
|
246057
247933
|
AccountMembersListInput: {
|
|
246058
247934
|
type: "object",
|
|
246059
247935
|
required: [],
|
|
@@ -246284,6 +248160,11 @@ var schemaComponents = {
|
|
|
246284
248160
|
},
|
|
246285
248161
|
additionalProperties: false
|
|
246286
248162
|
},
|
|
248163
|
+
AccountPaymentMethodSetupsCreateInput: {
|
|
248164
|
+
type: "object",
|
|
248165
|
+
properties: {},
|
|
248166
|
+
additionalProperties: false
|
|
248167
|
+
},
|
|
246287
248168
|
AccountPermissionsListInput: {
|
|
246288
248169
|
type: "object",
|
|
246289
248170
|
required: [],
|
|
@@ -246485,7 +248366,7 @@ var schemaComponents = {
|
|
|
246485
248366
|
to: {
|
|
246486
248367
|
type: "string",
|
|
246487
248368
|
format: "date-time",
|
|
246488
|
-
description: "End of the range; now by default."
|
|
248369
|
+
description: "End of the range; now by default. At most 366 days after `from`."
|
|
246489
248370
|
},
|
|
246490
248371
|
groupBy: {
|
|
246491
248372
|
anyOf: [
|
|
@@ -246496,9 +248377,23 @@ var schemaComponents = {
|
|
|
246496
248377
|
{
|
|
246497
248378
|
type: "string",
|
|
246498
248379
|
const: "channel"
|
|
248380
|
+
},
|
|
248381
|
+
{
|
|
248382
|
+
type: "string",
|
|
248383
|
+
const: "agent"
|
|
248384
|
+
},
|
|
248385
|
+
{
|
|
248386
|
+
type: "string",
|
|
248387
|
+
const: "campaign"
|
|
246499
248388
|
}
|
|
246500
248389
|
],
|
|
246501
248390
|
description: "Breaks each feature down; by product by default."
|
|
248391
|
+
},
|
|
248392
|
+
timezone: {
|
|
248393
|
+
type: "string",
|
|
248394
|
+
minLength: 1,
|
|
248395
|
+
maxLength: 64,
|
|
248396
|
+
description: "An IANA time zone (`America/Bogota`) that days and the default month follow; UTC by default."
|
|
246502
248397
|
}
|
|
246503
248398
|
},
|
|
246504
248399
|
additionalProperties: false
|
|
@@ -260370,6 +262265,10 @@ var schemaComponents = {
|
|
|
260370
262265
|
type: "string",
|
|
260371
262266
|
const: "channel-restored"
|
|
260372
262267
|
},
|
|
262268
|
+
{
|
|
262269
|
+
type: "string",
|
|
262270
|
+
const: "credits-exhausted"
|
|
262271
|
+
},
|
|
260373
262272
|
{
|
|
260374
262273
|
type: "string",
|
|
260375
262274
|
const: "import-finished"
|
|
@@ -260410,7 +262309,7 @@ var schemaComponents = {
|
|
|
260410
262309
|
},
|
|
260411
262310
|
description: "Product emails enabled for this organization. All are enabled unless the organization saves a selection. An empty selection turns all of them off.",
|
|
260412
262311
|
uniqueItems: true,
|
|
260413
|
-
maxItems:
|
|
262312
|
+
maxItems: 19
|
|
260414
262313
|
},
|
|
260415
262314
|
{
|
|
260416
262315
|
type: "null"
|
|
@@ -261230,9 +263129,13 @@ var schemaComponents = {
|
|
|
261230
263129
|
{
|
|
261231
263130
|
type: "string",
|
|
261232
263131
|
const: "campaign_progress"
|
|
263132
|
+
},
|
|
263133
|
+
{
|
|
263134
|
+
type: "string",
|
|
263135
|
+
const: "usage_daily"
|
|
261233
263136
|
}
|
|
261234
263137
|
],
|
|
261235
|
-
description: "`conversations_daily`: conversations the AI took part in per day, Agent, channel type and direction, with outcomes and escalations (filters `agentId`, `channelType`). `handoffs_daily`: the conversations the AI handed to the team, per day of the handoff, Agent and person (who answered first, else the case's owner), with how many were answered, answered in time, still waiting, closed unattended or returned to the AI, and the average seconds to the first answer (filter `agentId`). `booking_details`: individual patients and appointments from explicit successful creation receipts, including specialty, paired exams, deduplication, matched patient names and later recorded cancellations; filters agentId and specialty; requires conversation read/write permission too. Historical receipts with created=true, not current provider status or all provider protocols. unverifiedCount covers explicit creations missing a stable patient/slot. `booking_outcomes`: verified saved booking receipts per completion day, Agent and integration, excluding test/import/deleted conversations; confirmed new bookings, reschedules, cancellations, failed, pending, unverified and duplicate receipts separately (filter `agentId`). Historical evidence, not current appointment status; hasMore requires splitting the range and returns no partial totals. `tool_calls_daily`: tool calls per day, Agent and tool with failures/durations (filter `agentId`). `tool_calls`: individual calls, never inputs/outputs (filter `agentId`). `assessment_results_daily`: assessments per day/definition (filter `definitionId`). `pqrsf_daily`: classification, confirmed resolution and referral-link counts from the pqrsf_* definitions, including pending/unclassified conversations, excluding tests/imports/deleted records (filters `agentId`, `channelType`); no measured filing reduction is inferred. `campaign_progress`: recipients by status (filter `campaignId`; no dates)."
|
|
263138
|
+
description: "`conversations_daily`: conversations the AI took part in per day, Agent, channel type and direction, with outcomes and escalations (filters `agentId`, `channelType`). `handoffs_daily`: the conversations the AI handed to the team, per day of the handoff, Agent and person (who answered first, else the case's owner), with how many were answered, answered in time, still waiting, closed unattended or returned to the AI, and the average seconds to the first answer (filter `agentId`). `booking_details`: individual patients and appointments from explicit successful creation receipts, including specialty, paired exams, deduplication, matched patient names and later recorded cancellations; filters agentId and specialty; requires conversation read/write permission too. Historical receipts with created=true, not current provider status or all provider protocols. unverifiedCount covers explicit creations missing a stable patient/slot. `booking_outcomes`: verified saved booking receipts per completion day, Agent and integration, excluding test/import/deleted conversations; confirmed new bookings, reschedules, cancellations, failed, pending, unverified and duplicate receipts separately (filter `agentId`). Historical evidence, not current appointment status; hasMore requires splitting the range and returns no partial totals. `tool_calls_daily`: tool calls per day, Agent and tool with failures/durations (filter `agentId`). `tool_calls`: individual calls, never inputs/outputs (filter `agentId`). `assessment_results_daily`: assessments per day/definition (filter `definitionId`). `pqrsf_daily`: classification, confirmed resolution and referral-link counts from the pqrsf_* definitions, including pending/unclassified conversations, excluding tests/imports/deleted records (filters `agentId`, `channelType`); no measured filing reduction is inferred. `campaign_progress`: recipients by status (filter `campaignId`; no dates). `usage_daily`: what was used per day, Agent, channel type, campaign and kind, with its credits at the organization's rates and, for AI, the model tier and its tokens (filters `agentId`, `channelType`, `campaignId`); test conversations count like any other."
|
|
261236
263139
|
},
|
|
261237
263140
|
to: {
|
|
261238
263141
|
type: "string",
|
|
@@ -265302,9 +267205,9 @@ var schemaComponents = {
|
|
|
265302
267205
|
// src/generated/generation.json
|
|
265303
267206
|
var generation_default = {
|
|
265304
267207
|
formatVersion: 6,
|
|
265305
|
-
release: "1.
|
|
265306
|
-
openapiSha256: "
|
|
265307
|
-
openapiContentSha256: "
|
|
267208
|
+
release: "1.20261120.15943",
|
|
267209
|
+
openapiSha256: "67fc62e22e65c53972d0e702ba586a8caeb4f1bf21f6ef0316cb2f13ca84f556",
|
|
267210
|
+
openapiContentSha256: "0917ea00c67135dc2457fd9c36487ca28fc5d2d3ae9da7774490a10c1fff638d",
|
|
265308
267211
|
forge: {
|
|
265309
267212
|
repository: "https://github.com/cloudflare/forge",
|
|
265310
267213
|
commit: "7f86447210b7bea3779bfdab3cd5655eade0eadb",
|
|
@@ -265317,7 +267220,7 @@ var generation_default = {
|
|
|
265317
267220
|
outputs: [
|
|
265318
267221
|
{
|
|
265319
267222
|
path: "src/generated/commands.ts",
|
|
265320
|
-
sha256: "
|
|
267223
|
+
sha256: "e988095c026dc715d3376c8db378467986a240c90b84f29358ac377c77768d06"
|
|
265321
267224
|
}
|
|
265322
267225
|
]
|
|
265323
267226
|
};
|
|
@@ -266917,7 +268820,7 @@ ${name}`);
|
|
|
266917
268820
|
}
|
|
266918
268821
|
|
|
266919
268822
|
// src/index.ts
|
|
266920
|
-
var VERSION = "3.
|
|
268823
|
+
var VERSION = "3.68.0";
|
|
266921
268824
|
var RELEASE = generation_default.release;
|
|
266922
268825
|
var commands2 = { ...commands, ...accountOperatorCommands };
|
|
266923
268826
|
var SDK_PATHS = new Map(Object.values(commands2).map((command) => [command.operation, command.sdkPath]));
|