@arbol-ai/cli 3.67.0 → 3.69.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 +2464 -573
- 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,128 +1535,11 @@ var commands = {
|
|
|
1460
1535
|
confirmation: null,
|
|
1461
1536
|
hidden: false
|
|
1462
1537
|
},
|
|
1463
|
-
"account
|
|
1464
|
-
operation: "account.
|
|
1538
|
+
"account invoices list": {
|
|
1539
|
+
operation: "account.invoices.list",
|
|
1465
1540
|
sdkPath: [
|
|
1466
1541
|
"account",
|
|
1467
|
-
"
|
|
1468
|
-
"create"
|
|
1469
|
-
],
|
|
1470
|
-
pathField: null,
|
|
1471
|
-
fields: [
|
|
1472
|
-
{
|
|
1473
|
-
name: "email",
|
|
1474
|
-
flag: "email",
|
|
1475
|
-
kind: "string",
|
|
1476
|
-
required: true,
|
|
1477
|
-
description: "The email of someone with an existing Arbol account, in this organization or another."
|
|
1478
|
-
},
|
|
1479
|
-
{
|
|
1480
|
-
name: "product",
|
|
1481
|
-
flag: "product",
|
|
1482
|
-
kind: "string",
|
|
1483
|
-
required: true,
|
|
1484
|
-
description: "A product whose team Account administers: Raíz, Agenda, Ámbar or Account itself.",
|
|
1485
|
-
choices: [
|
|
1486
|
-
"raiz",
|
|
1487
|
-
"agenda",
|
|
1488
|
-
"ambar",
|
|
1489
|
-
"account"
|
|
1490
|
-
]
|
|
1491
|
-
},
|
|
1492
|
-
{
|
|
1493
|
-
name: "role",
|
|
1494
|
-
flag: "role",
|
|
1495
|
-
kind: "string",
|
|
1496
|
-
required: true,
|
|
1497
|
-
description: "A role name, such as calendar:operator."
|
|
1498
|
-
}
|
|
1499
|
-
],
|
|
1500
|
-
inputSchema: {
|
|
1501
|
-
type: "object",
|
|
1502
|
-
required: [
|
|
1503
|
-
"email",
|
|
1504
|
-
"product",
|
|
1505
|
-
"role"
|
|
1506
|
-
],
|
|
1507
|
-
properties: {
|
|
1508
|
-
email: {
|
|
1509
|
-
type: "string",
|
|
1510
|
-
format: "email",
|
|
1511
|
-
maxLength: 320,
|
|
1512
|
-
description: "The email of someone with an existing Arbol account, in this organization or another."
|
|
1513
|
-
},
|
|
1514
|
-
product: {
|
|
1515
|
-
anyOf: [
|
|
1516
|
-
{
|
|
1517
|
-
type: "string",
|
|
1518
|
-
const: "raiz"
|
|
1519
|
-
},
|
|
1520
|
-
{
|
|
1521
|
-
type: "string",
|
|
1522
|
-
const: "agenda"
|
|
1523
|
-
},
|
|
1524
|
-
{
|
|
1525
|
-
type: "string",
|
|
1526
|
-
const: "ambar"
|
|
1527
|
-
},
|
|
1528
|
-
{
|
|
1529
|
-
type: "string",
|
|
1530
|
-
const: "account"
|
|
1531
|
-
}
|
|
1532
|
-
],
|
|
1533
|
-
description: "A product whose team Account administers: Raíz, Agenda, Ámbar or Account itself."
|
|
1534
|
-
},
|
|
1535
|
-
role: {
|
|
1536
|
-
type: "string",
|
|
1537
|
-
minLength: 1,
|
|
1538
|
-
maxLength: 128,
|
|
1539
|
-
description: "A role name, such as calendar:operator."
|
|
1540
|
-
}
|
|
1541
|
-
},
|
|
1542
|
-
additionalProperties: false
|
|
1543
|
-
},
|
|
1544
|
-
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`.",
|
|
1546
|
-
effect: "write",
|
|
1547
|
-
confirmation: null,
|
|
1548
|
-
hidden: false
|
|
1549
|
-
},
|
|
1550
|
-
"account members delete": {
|
|
1551
|
-
operation: "account.members.delete",
|
|
1552
|
-
sdkPath: [
|
|
1553
|
-
"account",
|
|
1554
|
-
"members",
|
|
1555
|
-
"delete"
|
|
1556
|
-
],
|
|
1557
|
-
pathField: "memberId",
|
|
1558
|
-
fields: [],
|
|
1559
|
-
inputSchema: {
|
|
1560
|
-
type: "object",
|
|
1561
|
-
required: [
|
|
1562
|
-
"memberId"
|
|
1563
|
-
],
|
|
1564
|
-
properties: {
|
|
1565
|
-
memberId: {
|
|
1566
|
-
type: "string",
|
|
1567
|
-
minLength: 1,
|
|
1568
|
-
maxLength: 256,
|
|
1569
|
-
description: "The member's id, as members.list answers it."
|
|
1570
|
-
}
|
|
1571
|
-
},
|
|
1572
|
-
additionalProperties: false
|
|
1573
|
-
},
|
|
1574
|
-
title: "Remove someone's access",
|
|
1575
|
-
description: "Revokes the member's roles in every product the caller administers. They leave the organization only when no other role is left.",
|
|
1576
|
-
effect: "delete",
|
|
1577
|
-
confirmation: "Remove someone's access. This cannot be undone.",
|
|
1578
|
-
hidden: false
|
|
1579
|
-
},
|
|
1580
|
-
"account members list": {
|
|
1581
|
-
operation: "account.members.list",
|
|
1582
|
-
sdkPath: [
|
|
1583
|
-
"account",
|
|
1584
|
-
"members",
|
|
1542
|
+
"invoices",
|
|
1585
1543
|
"list"
|
|
1586
1544
|
],
|
|
1587
1545
|
pathField: null,
|
|
@@ -1646,21 +1604,28 @@ var commands = {
|
|
|
1646
1604
|
},
|
|
1647
1605
|
additionalProperties: false
|
|
1648
1606
|
},
|
|
1649
|
-
title: "List
|
|
1650
|
-
description: "The organization's
|
|
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`.",
|
|
1651
1609
|
effect: "read",
|
|
1652
1610
|
confirmation: null,
|
|
1653
1611
|
hidden: false
|
|
1654
1612
|
},
|
|
1655
|
-
"account members
|
|
1656
|
-
operation: "account.members.
|
|
1613
|
+
"account members create": {
|
|
1614
|
+
operation: "account.members.create",
|
|
1657
1615
|
sdkPath: [
|
|
1658
1616
|
"account",
|
|
1659
1617
|
"members",
|
|
1660
|
-
"
|
|
1618
|
+
"create"
|
|
1661
1619
|
],
|
|
1662
|
-
pathField:
|
|
1620
|
+
pathField: null,
|
|
1663
1621
|
fields: [
|
|
1622
|
+
{
|
|
1623
|
+
name: "email",
|
|
1624
|
+
flag: "email",
|
|
1625
|
+
kind: "string",
|
|
1626
|
+
required: true,
|
|
1627
|
+
description: "The email of someone with an existing Arbol account, in this organization or another."
|
|
1628
|
+
},
|
|
1664
1629
|
{
|
|
1665
1630
|
name: "product",
|
|
1666
1631
|
flag: "product",
|
|
@@ -1679,22 +1644,22 @@ var commands = {
|
|
|
1679
1644
|
flag: "role",
|
|
1680
1645
|
kind: "string",
|
|
1681
1646
|
required: true,
|
|
1682
|
-
description: "
|
|
1647
|
+
description: "A role name, such as calendar:operator."
|
|
1683
1648
|
}
|
|
1684
1649
|
],
|
|
1685
1650
|
inputSchema: {
|
|
1686
1651
|
type: "object",
|
|
1687
1652
|
required: [
|
|
1688
|
-
"
|
|
1653
|
+
"email",
|
|
1689
1654
|
"product",
|
|
1690
1655
|
"role"
|
|
1691
1656
|
],
|
|
1692
1657
|
properties: {
|
|
1693
|
-
|
|
1658
|
+
email: {
|
|
1694
1659
|
type: "string",
|
|
1695
|
-
|
|
1696
|
-
maxLength:
|
|
1697
|
-
description: "The
|
|
1660
|
+
format: "email",
|
|
1661
|
+
maxLength: 320,
|
|
1662
|
+
description: "The email of someone with an existing Arbol account, in this organization or another."
|
|
1698
1663
|
},
|
|
1699
1664
|
product: {
|
|
1700
1665
|
anyOf: [
|
|
@@ -1718,147 +1683,332 @@ var commands = {
|
|
|
1718
1683
|
description: "A product whose team Account administers: Raíz, Agenda, Ámbar or Account itself."
|
|
1719
1684
|
},
|
|
1720
1685
|
role: {
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
maxLength: 128,
|
|
1726
|
-
description: "A role name, such as calendar:operator."
|
|
1727
|
-
},
|
|
1728
|
-
{
|
|
1729
|
-
type: "null"
|
|
1730
|
-
}
|
|
1731
|
-
],
|
|
1732
|
-
description: "The role in this product; null removes their access to it."
|
|
1686
|
+
type: "string",
|
|
1687
|
+
minLength: 1,
|
|
1688
|
+
maxLength: 128,
|
|
1689
|
+
description: "A role name, such as calendar:operator."
|
|
1733
1690
|
}
|
|
1734
1691
|
},
|
|
1735
1692
|
additionalProperties: false
|
|
1736
1693
|
},
|
|
1737
|
-
title: "
|
|
1738
|
-
description: "
|
|
1694
|
+
title: "Give a member a role in a product",
|
|
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.",
|
|
1739
1696
|
effect: "write",
|
|
1740
1697
|
confirmation: null,
|
|
1741
1698
|
hidden: false
|
|
1742
1699
|
},
|
|
1743
|
-
"account
|
|
1744
|
-
operation: "account.
|
|
1700
|
+
"account members delete": {
|
|
1701
|
+
operation: "account.members.delete",
|
|
1745
1702
|
sdkPath: [
|
|
1746
1703
|
"account",
|
|
1747
|
-
"
|
|
1748
|
-
"
|
|
1704
|
+
"members",
|
|
1705
|
+
"delete"
|
|
1749
1706
|
],
|
|
1750
|
-
pathField:
|
|
1707
|
+
pathField: "memberId",
|
|
1751
1708
|
fields: [],
|
|
1752
1709
|
inputSchema: {
|
|
1753
1710
|
type: "object",
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
title: "Get the current organization",
|
|
1758
|
-
description: "The organization the caller's token is for, the caller's roles in each of its products and their permissions in Account.",
|
|
1759
|
-
effect: "read",
|
|
1760
|
-
confirmation: null,
|
|
1761
|
-
hidden: false
|
|
1762
|
-
},
|
|
1763
|
-
"account organization update": {
|
|
1764
|
-
operation: "account.organization.update",
|
|
1765
|
-
sdkPath: [
|
|
1766
|
-
"account",
|
|
1767
|
-
"organization",
|
|
1768
|
-
"update"
|
|
1769
|
-
],
|
|
1770
|
-
pathField: null,
|
|
1771
|
-
fields: [
|
|
1772
|
-
{
|
|
1773
|
-
name: "name",
|
|
1774
|
-
flag: "name",
|
|
1775
|
-
kind: "string",
|
|
1776
|
-
required: false,
|
|
1777
|
-
description: "The name people see."
|
|
1778
|
-
},
|
|
1779
|
-
{
|
|
1780
|
-
name: "logoUrl",
|
|
1781
|
-
flag: "logo-url",
|
|
1782
|
-
kind: "string",
|
|
1783
|
-
required: false,
|
|
1784
|
-
description: "An https address of the organization's logo; null removes it."
|
|
1785
|
-
},
|
|
1786
|
-
{
|
|
1787
|
-
name: "primaryColor",
|
|
1788
|
-
flag: "primary-color",
|
|
1789
|
-
kind: "string",
|
|
1790
|
-
required: false,
|
|
1791
|
-
description: ""
|
|
1792
|
-
},
|
|
1793
|
-
{
|
|
1794
|
-
name: "pageBackground",
|
|
1795
|
-
flag: "page-background",
|
|
1796
|
-
kind: "string",
|
|
1797
|
-
required: false,
|
|
1798
|
-
description: ""
|
|
1799
|
-
}
|
|
1800
|
-
],
|
|
1801
|
-
inputSchema: {
|
|
1802
|
-
type: "object",
|
|
1711
|
+
required: [
|
|
1712
|
+
"memberId"
|
|
1713
|
+
],
|
|
1803
1714
|
properties: {
|
|
1804
|
-
|
|
1715
|
+
memberId: {
|
|
1805
1716
|
type: "string",
|
|
1806
1717
|
minLength: 1,
|
|
1807
|
-
maxLength:
|
|
1808
|
-
description: "The
|
|
1809
|
-
},
|
|
1810
|
-
logoUrl: {
|
|
1811
|
-
anyOf: [
|
|
1812
|
-
{
|
|
1813
|
-
type: "string",
|
|
1814
|
-
format: "uri",
|
|
1815
|
-
pattern: "^https://",
|
|
1816
|
-
maxLength: 2048
|
|
1817
|
-
},
|
|
1818
|
-
{
|
|
1819
|
-
type: "null"
|
|
1820
|
-
}
|
|
1821
|
-
],
|
|
1822
|
-
description: "An https address of the organization's logo; null removes it."
|
|
1823
|
-
},
|
|
1824
|
-
primaryColor: {
|
|
1825
|
-
anyOf: [
|
|
1826
|
-
{
|
|
1827
|
-
type: "string",
|
|
1828
|
-
pattern: "^#[0-9a-fA-F]{6}$",
|
|
1829
|
-
description: "A color, as #rrggbb."
|
|
1830
|
-
},
|
|
1831
|
-
{
|
|
1832
|
-
type: "null"
|
|
1833
|
-
}
|
|
1834
|
-
]
|
|
1835
|
-
},
|
|
1836
|
-
pageBackground: {
|
|
1837
|
-
anyOf: [
|
|
1838
|
-
{
|
|
1839
|
-
type: "string",
|
|
1840
|
-
pattern: "^#[0-9a-fA-F]{6}$",
|
|
1841
|
-
description: "A color, as #rrggbb."
|
|
1842
|
-
},
|
|
1843
|
-
{
|
|
1844
|
-
type: "null"
|
|
1845
|
-
}
|
|
1846
|
-
]
|
|
1718
|
+
maxLength: 256,
|
|
1719
|
+
description: "The member's id, as members.list answers it."
|
|
1847
1720
|
}
|
|
1848
1721
|
},
|
|
1849
1722
|
additionalProperties: false
|
|
1850
1723
|
},
|
|
1851
|
-
title: "
|
|
1852
|
-
description: "
|
|
1853
|
-
effect: "
|
|
1854
|
-
confirmation:
|
|
1724
|
+
title: "Remove someone's access",
|
|
1725
|
+
description: "Revokes the member's roles in every product the caller administers. They leave the organization only when no other role is left.",
|
|
1726
|
+
effect: "delete",
|
|
1727
|
+
confirmation: "Remove someone's access. This cannot be undone.",
|
|
1855
1728
|
hidden: false
|
|
1856
1729
|
},
|
|
1857
|
-
"account
|
|
1858
|
-
operation: "account.
|
|
1730
|
+
"account members list": {
|
|
1731
|
+
operation: "account.members.list",
|
|
1859
1732
|
sdkPath: [
|
|
1860
1733
|
"account",
|
|
1861
|
-
"
|
|
1734
|
+
"members",
|
|
1735
|
+
"list"
|
|
1736
|
+
],
|
|
1737
|
+
pathField: null,
|
|
1738
|
+
fields: [
|
|
1739
|
+
{
|
|
1740
|
+
name: "cursor",
|
|
1741
|
+
flag: "cursor",
|
|
1742
|
+
kind: "string",
|
|
1743
|
+
required: false,
|
|
1744
|
+
description: "Opaque cursor returned by pageInfo; omit it to request the first page."
|
|
1745
|
+
},
|
|
1746
|
+
{
|
|
1747
|
+
name: "direction",
|
|
1748
|
+
flag: "direction",
|
|
1749
|
+
kind: "string",
|
|
1750
|
+
required: false,
|
|
1751
|
+
description: "Direction to traverse the stable keyset ordering from the supplied cursor.",
|
|
1752
|
+
choices: [
|
|
1753
|
+
"forward",
|
|
1754
|
+
"backward"
|
|
1755
|
+
],
|
|
1756
|
+
default: "forward"
|
|
1757
|
+
},
|
|
1758
|
+
{
|
|
1759
|
+
name: "limit",
|
|
1760
|
+
flag: "limit",
|
|
1761
|
+
kind: "integer",
|
|
1762
|
+
required: false,
|
|
1763
|
+
description: "Maximum items returned in one page. Defaults to 25; larger reads require another cursor.",
|
|
1764
|
+
default: 25
|
|
1765
|
+
}
|
|
1766
|
+
],
|
|
1767
|
+
inputSchema: {
|
|
1768
|
+
type: "object",
|
|
1769
|
+
required: [],
|
|
1770
|
+
properties: {
|
|
1771
|
+
cursor: {
|
|
1772
|
+
type: "string",
|
|
1773
|
+
description: "Opaque cursor returned by pageInfo; omit it to request the first page."
|
|
1774
|
+
},
|
|
1775
|
+
direction: {
|
|
1776
|
+
anyOf: [
|
|
1777
|
+
{
|
|
1778
|
+
type: "string",
|
|
1779
|
+
const: "forward"
|
|
1780
|
+
},
|
|
1781
|
+
{
|
|
1782
|
+
type: "string",
|
|
1783
|
+
const: "backward"
|
|
1784
|
+
}
|
|
1785
|
+
],
|
|
1786
|
+
description: "Direction to traverse the stable keyset ordering from the supplied cursor.",
|
|
1787
|
+
default: "forward"
|
|
1788
|
+
},
|
|
1789
|
+
limit: {
|
|
1790
|
+
type: "integer",
|
|
1791
|
+
minimum: 1,
|
|
1792
|
+
maximum: 100,
|
|
1793
|
+
description: "Maximum items returned in one page. Defaults to 25; larger reads require another cursor.",
|
|
1794
|
+
default: 25
|
|
1795
|
+
}
|
|
1796
|
+
},
|
|
1797
|
+
additionalProperties: false
|
|
1798
|
+
},
|
|
1799
|
+
title: "List the members",
|
|
1800
|
+
description: "The organization's members with their roles in Raíz, Agenda, Ámbar and Account, by name.",
|
|
1801
|
+
effect: "read",
|
|
1802
|
+
confirmation: null,
|
|
1803
|
+
hidden: false
|
|
1804
|
+
},
|
|
1805
|
+
"account members update": {
|
|
1806
|
+
operation: "account.members.update",
|
|
1807
|
+
sdkPath: [
|
|
1808
|
+
"account",
|
|
1809
|
+
"members",
|
|
1810
|
+
"update"
|
|
1811
|
+
],
|
|
1812
|
+
pathField: "memberId",
|
|
1813
|
+
fields: [
|
|
1814
|
+
{
|
|
1815
|
+
name: "product",
|
|
1816
|
+
flag: "product",
|
|
1817
|
+
kind: "string",
|
|
1818
|
+
required: true,
|
|
1819
|
+
description: "A product whose team Account administers: Raíz, Agenda, Ámbar or Account itself.",
|
|
1820
|
+
choices: [
|
|
1821
|
+
"raiz",
|
|
1822
|
+
"agenda",
|
|
1823
|
+
"ambar",
|
|
1824
|
+
"account"
|
|
1825
|
+
]
|
|
1826
|
+
},
|
|
1827
|
+
{
|
|
1828
|
+
name: "role",
|
|
1829
|
+
flag: "role",
|
|
1830
|
+
kind: "string",
|
|
1831
|
+
required: true,
|
|
1832
|
+
description: "The role in this product; null removes their access to it."
|
|
1833
|
+
}
|
|
1834
|
+
],
|
|
1835
|
+
inputSchema: {
|
|
1836
|
+
type: "object",
|
|
1837
|
+
required: [
|
|
1838
|
+
"memberId",
|
|
1839
|
+
"product",
|
|
1840
|
+
"role"
|
|
1841
|
+
],
|
|
1842
|
+
properties: {
|
|
1843
|
+
memberId: {
|
|
1844
|
+
type: "string",
|
|
1845
|
+
minLength: 1,
|
|
1846
|
+
maxLength: 256,
|
|
1847
|
+
description: "The member's id, as members.list answers it."
|
|
1848
|
+
},
|
|
1849
|
+
product: {
|
|
1850
|
+
anyOf: [
|
|
1851
|
+
{
|
|
1852
|
+
type: "string",
|
|
1853
|
+
const: "raiz"
|
|
1854
|
+
},
|
|
1855
|
+
{
|
|
1856
|
+
type: "string",
|
|
1857
|
+
const: "agenda"
|
|
1858
|
+
},
|
|
1859
|
+
{
|
|
1860
|
+
type: "string",
|
|
1861
|
+
const: "ambar"
|
|
1862
|
+
},
|
|
1863
|
+
{
|
|
1864
|
+
type: "string",
|
|
1865
|
+
const: "account"
|
|
1866
|
+
}
|
|
1867
|
+
],
|
|
1868
|
+
description: "A product whose team Account administers: Raíz, Agenda, Ámbar or Account itself."
|
|
1869
|
+
},
|
|
1870
|
+
role: {
|
|
1871
|
+
anyOf: [
|
|
1872
|
+
{
|
|
1873
|
+
type: "string",
|
|
1874
|
+
minLength: 1,
|
|
1875
|
+
maxLength: 128,
|
|
1876
|
+
description: "A role name, such as calendar:operator."
|
|
1877
|
+
},
|
|
1878
|
+
{
|
|
1879
|
+
type: "null"
|
|
1880
|
+
}
|
|
1881
|
+
],
|
|
1882
|
+
description: "The role in this product; null removes their access to it."
|
|
1883
|
+
}
|
|
1884
|
+
},
|
|
1885
|
+
additionalProperties: false
|
|
1886
|
+
},
|
|
1887
|
+
title: "Change someone's role in a product",
|
|
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.",
|
|
1889
|
+
effect: "write",
|
|
1890
|
+
confirmation: null,
|
|
1891
|
+
hidden: false
|
|
1892
|
+
},
|
|
1893
|
+
"account organization get": {
|
|
1894
|
+
operation: "account.organization.get",
|
|
1895
|
+
sdkPath: [
|
|
1896
|
+
"account",
|
|
1897
|
+
"organization",
|
|
1898
|
+
"get"
|
|
1899
|
+
],
|
|
1900
|
+
pathField: null,
|
|
1901
|
+
fields: [],
|
|
1902
|
+
inputSchema: {
|
|
1903
|
+
type: "object",
|
|
1904
|
+
properties: {},
|
|
1905
|
+
additionalProperties: false
|
|
1906
|
+
},
|
|
1907
|
+
title: "Get the current organization",
|
|
1908
|
+
description: "The organization the caller's token is for, the caller's roles in each of its products and their permissions in Account.",
|
|
1909
|
+
effect: "read",
|
|
1910
|
+
confirmation: null,
|
|
1911
|
+
hidden: false
|
|
1912
|
+
},
|
|
1913
|
+
"account organization update": {
|
|
1914
|
+
operation: "account.organization.update",
|
|
1915
|
+
sdkPath: [
|
|
1916
|
+
"account",
|
|
1917
|
+
"organization",
|
|
1918
|
+
"update"
|
|
1919
|
+
],
|
|
1920
|
+
pathField: null,
|
|
1921
|
+
fields: [
|
|
1922
|
+
{
|
|
1923
|
+
name: "name",
|
|
1924
|
+
flag: "name",
|
|
1925
|
+
kind: "string",
|
|
1926
|
+
required: false,
|
|
1927
|
+
description: "The name people see."
|
|
1928
|
+
},
|
|
1929
|
+
{
|
|
1930
|
+
name: "logoUrl",
|
|
1931
|
+
flag: "logo-url",
|
|
1932
|
+
kind: "string",
|
|
1933
|
+
required: false,
|
|
1934
|
+
description: "An https address of the organization's logo; null removes it."
|
|
1935
|
+
},
|
|
1936
|
+
{
|
|
1937
|
+
name: "primaryColor",
|
|
1938
|
+
flag: "primary-color",
|
|
1939
|
+
kind: "string",
|
|
1940
|
+
required: false,
|
|
1941
|
+
description: ""
|
|
1942
|
+
},
|
|
1943
|
+
{
|
|
1944
|
+
name: "pageBackground",
|
|
1945
|
+
flag: "page-background",
|
|
1946
|
+
kind: "string",
|
|
1947
|
+
required: false,
|
|
1948
|
+
description: ""
|
|
1949
|
+
}
|
|
1950
|
+
],
|
|
1951
|
+
inputSchema: {
|
|
1952
|
+
type: "object",
|
|
1953
|
+
properties: {
|
|
1954
|
+
name: {
|
|
1955
|
+
type: "string",
|
|
1956
|
+
minLength: 1,
|
|
1957
|
+
maxLength: 255,
|
|
1958
|
+
description: "The name people see."
|
|
1959
|
+
},
|
|
1960
|
+
logoUrl: {
|
|
1961
|
+
anyOf: [
|
|
1962
|
+
{
|
|
1963
|
+
type: "string",
|
|
1964
|
+
format: "uri",
|
|
1965
|
+
pattern: "^https://",
|
|
1966
|
+
maxLength: 2048
|
|
1967
|
+
},
|
|
1968
|
+
{
|
|
1969
|
+
type: "null"
|
|
1970
|
+
}
|
|
1971
|
+
],
|
|
1972
|
+
description: "An https address of the organization's logo; null removes it."
|
|
1973
|
+
},
|
|
1974
|
+
primaryColor: {
|
|
1975
|
+
anyOf: [
|
|
1976
|
+
{
|
|
1977
|
+
type: "string",
|
|
1978
|
+
pattern: "^#[0-9a-fA-F]{6}$",
|
|
1979
|
+
description: "A color, as #rrggbb."
|
|
1980
|
+
},
|
|
1981
|
+
{
|
|
1982
|
+
type: "null"
|
|
1983
|
+
}
|
|
1984
|
+
]
|
|
1985
|
+
},
|
|
1986
|
+
pageBackground: {
|
|
1987
|
+
anyOf: [
|
|
1988
|
+
{
|
|
1989
|
+
type: "string",
|
|
1990
|
+
pattern: "^#[0-9a-fA-F]{6}$",
|
|
1991
|
+
description: "A color, as #rrggbb."
|
|
1992
|
+
},
|
|
1993
|
+
{
|
|
1994
|
+
type: "null"
|
|
1995
|
+
}
|
|
1996
|
+
]
|
|
1997
|
+
}
|
|
1998
|
+
},
|
|
1999
|
+
additionalProperties: false
|
|
2000
|
+
},
|
|
2001
|
+
title: "Update the organization",
|
|
2002
|
+
description: "Changes the current organization's name, logo and sign-in colors, as people see them in every Arbol application and on its sign-in page.",
|
|
2003
|
+
effect: "write",
|
|
2004
|
+
confirmation: null,
|
|
2005
|
+
hidden: false
|
|
2006
|
+
},
|
|
2007
|
+
"account organizations list": {
|
|
2008
|
+
operation: "account.organizations.list",
|
|
2009
|
+
sdkPath: [
|
|
2010
|
+
"account",
|
|
2011
|
+
"organizations",
|
|
1862
2012
|
"list"
|
|
1863
2013
|
],
|
|
1864
2014
|
pathField: null,
|
|
@@ -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
|
|
@@ -12499,7 +12692,7 @@ var commands = {
|
|
|
12499
12692
|
}
|
|
12500
12693
|
},
|
|
12501
12694
|
title: "Create patient",
|
|
12502
|
-
description: "Use the organization gMedic account. No automatic write retries; reconcile an unknown outcome before repeating.",
|
|
12695
|
+
description: "Use the organization gMedic account. Some clinics need every detail of a patient an agent registers (names, document, birth date, sex, mobilePhone, email, address); a refusal names what is missing. No automatic write retries; reconcile an unknown outcome before repeating.",
|
|
12503
12696
|
effect: "write",
|
|
12504
12697
|
confirmation: null,
|
|
12505
12698
|
hidden: false
|
|
@@ -12993,10 +13186,6 @@ var commands = {
|
|
|
12993
13186
|
data: {
|
|
12994
13187
|
additionalProperties: false,
|
|
12995
13188
|
type: "object",
|
|
12996
|
-
required: [
|
|
12997
|
-
"documentNumber",
|
|
12998
|
-
"documentTypeId"
|
|
12999
|
-
],
|
|
13000
13189
|
properties: {
|
|
13001
13190
|
documentNumber: {
|
|
13002
13191
|
maxLength: 255,
|
|
@@ -13203,7 +13392,7 @@ var commands = {
|
|
|
13203
13392
|
}
|
|
13204
13393
|
},
|
|
13205
13394
|
title: "Update patient",
|
|
13206
|
-
description: "Use the organization gMedic account. No automatic write retries; reconcile an unknown outcome before repeating.",
|
|
13395
|
+
description: "Use the organization gMedic account. Send only the fields that change: every other field gMedic stores is kept. An agent cannot change a patient’s document, names or birth date. No automatic write retries; reconcile an unknown outcome before repeating.",
|
|
13207
13396
|
effect: "write",
|
|
13208
13397
|
confirmation: null,
|
|
13209
13398
|
hidden: false
|
|
@@ -20711,7 +20900,7 @@ var commands = {
|
|
|
20711
20900
|
additionalProperties: false
|
|
20712
20901
|
},
|
|
20713
20902
|
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
|
|
20903
|
+
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
20904
|
effect: "read",
|
|
20716
20905
|
confirmation: null,
|
|
20717
20906
|
hidden: false
|
|
@@ -20901,7 +21090,7 @@ var commands = {
|
|
|
20901
21090
|
]
|
|
20902
21091
|
},
|
|
20903
21092
|
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.",
|
|
21093
|
+
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
21094
|
effect: "write",
|
|
20906
21095
|
confirmation: null,
|
|
20907
21096
|
hidden: false
|
|
@@ -27179,6 +27368,10 @@ var commands = {
|
|
|
27179
27368
|
type: "string",
|
|
27180
27369
|
const: "channel-restored"
|
|
27181
27370
|
},
|
|
27371
|
+
{
|
|
27372
|
+
type: "string",
|
|
27373
|
+
const: "credits-exhausted"
|
|
27374
|
+
},
|
|
27182
27375
|
{
|
|
27183
27376
|
type: "string",
|
|
27184
27377
|
const: "import-finished"
|
|
@@ -27219,7 +27412,7 @@ var commands = {
|
|
|
27219
27412
|
},
|
|
27220
27413
|
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
27414
|
uniqueItems: true,
|
|
27222
|
-
maxItems:
|
|
27415
|
+
maxItems: 19
|
|
27223
27416
|
},
|
|
27224
27417
|
{
|
|
27225
27418
|
type: "null"
|
|
@@ -28165,7 +28358,7 @@ var commands = {
|
|
|
28165
28358
|
flag: "name",
|
|
28166
28359
|
kind: "string",
|
|
28167
28360
|
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).",
|
|
28361
|
+
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
28362
|
choices: [
|
|
28170
28363
|
"conversations_daily",
|
|
28171
28364
|
"handoffs_daily",
|
|
@@ -28175,7 +28368,8 @@ var commands = {
|
|
|
28175
28368
|
"booking_outcomes",
|
|
28176
28369
|
"booking_details",
|
|
28177
28370
|
"assessment_results_daily",
|
|
28178
|
-
"campaign_progress"
|
|
28371
|
+
"campaign_progress",
|
|
28372
|
+
"usage_daily"
|
|
28179
28373
|
]
|
|
28180
28374
|
},
|
|
28181
28375
|
{
|
|
@@ -28277,9 +28471,13 @@ var commands = {
|
|
|
28277
28471
|
{
|
|
28278
28472
|
type: "string",
|
|
28279
28473
|
const: "campaign_progress"
|
|
28474
|
+
},
|
|
28475
|
+
{
|
|
28476
|
+
type: "string",
|
|
28477
|
+
const: "usage_daily"
|
|
28280
28478
|
}
|
|
28281
28479
|
],
|
|
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)."
|
|
28480
|
+
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
28481
|
},
|
|
28284
28482
|
to: {
|
|
28285
28483
|
type: "string",
|
|
@@ -36059,7 +36257,12 @@ var schemaComponents = {
|
|
|
36059
36257
|
"nextResetAt",
|
|
36060
36258
|
"plans",
|
|
36061
36259
|
"card",
|
|
36062
|
-
"topUp"
|
|
36260
|
+
"topUp",
|
|
36261
|
+
"autoTopUp",
|
|
36262
|
+
"lowBalanceAlert",
|
|
36263
|
+
"toppedUp",
|
|
36264
|
+
"grants",
|
|
36265
|
+
"bundles"
|
|
36063
36266
|
],
|
|
36064
36267
|
properties: {
|
|
36065
36268
|
status: {
|
|
@@ -36158,6 +36361,280 @@ var schemaComponents = {
|
|
|
36158
36361
|
},
|
|
36159
36362
|
additionalProperties: false,
|
|
36160
36363
|
description: "The credits one top-up may buy, in whole credits."
|
|
36364
|
+
},
|
|
36365
|
+
autoTopUp: {
|
|
36366
|
+
anyOf: [
|
|
36367
|
+
{
|
|
36368
|
+
type: "object",
|
|
36369
|
+
required: [
|
|
36370
|
+
"enabled",
|
|
36371
|
+
"threshold",
|
|
36372
|
+
"credits",
|
|
36373
|
+
"perMonth"
|
|
36374
|
+
],
|
|
36375
|
+
properties: {
|
|
36376
|
+
enabled: {
|
|
36377
|
+
type: "boolean"
|
|
36378
|
+
},
|
|
36379
|
+
threshold: {
|
|
36380
|
+
type: "number",
|
|
36381
|
+
description: "When the balance falls below this many credits…"
|
|
36382
|
+
},
|
|
36383
|
+
credits: {
|
|
36384
|
+
type: "integer",
|
|
36385
|
+
description: "…buy this many credits with the saved card…"
|
|
36386
|
+
},
|
|
36387
|
+
perMonth: {
|
|
36388
|
+
anyOf: [
|
|
36389
|
+
{
|
|
36390
|
+
type: "integer"
|
|
36391
|
+
},
|
|
36392
|
+
{
|
|
36393
|
+
type: "null"
|
|
36394
|
+
}
|
|
36395
|
+
],
|
|
36396
|
+
description: "…at most this many times a month."
|
|
36397
|
+
}
|
|
36398
|
+
},
|
|
36399
|
+
additionalProperties: false
|
|
36400
|
+
},
|
|
36401
|
+
{
|
|
36402
|
+
type: "null"
|
|
36403
|
+
}
|
|
36404
|
+
],
|
|
36405
|
+
description: "The automatic top-up; null when it was never set."
|
|
36406
|
+
},
|
|
36407
|
+
lowBalanceAlert: {
|
|
36408
|
+
anyOf: [
|
|
36409
|
+
{
|
|
36410
|
+
type: "number"
|
|
36411
|
+
},
|
|
36412
|
+
{
|
|
36413
|
+
type: "null"
|
|
36414
|
+
}
|
|
36415
|
+
],
|
|
36416
|
+
description: "The balance at which the organization's administrators are emailed; null when off."
|
|
36417
|
+
},
|
|
36418
|
+
toppedUp: {
|
|
36419
|
+
type: "object",
|
|
36420
|
+
required: [
|
|
36421
|
+
"thisMonth",
|
|
36422
|
+
"allTime"
|
|
36423
|
+
],
|
|
36424
|
+
properties: {
|
|
36425
|
+
thisMonth: {
|
|
36426
|
+
anyOf: [
|
|
36427
|
+
{
|
|
36428
|
+
type: "number"
|
|
36429
|
+
},
|
|
36430
|
+
{
|
|
36431
|
+
type: "null"
|
|
36432
|
+
}
|
|
36433
|
+
],
|
|
36434
|
+
description: "Credits paid with money this calendar month (UTC): top-ups and transfers."
|
|
36435
|
+
},
|
|
36436
|
+
allTime: {
|
|
36437
|
+
anyOf: [
|
|
36438
|
+
{
|
|
36439
|
+
type: "number"
|
|
36440
|
+
},
|
|
36441
|
+
{
|
|
36442
|
+
type: "null"
|
|
36443
|
+
}
|
|
36444
|
+
],
|
|
36445
|
+
description: "Credits paid with money since the beginning."
|
|
36446
|
+
}
|
|
36447
|
+
},
|
|
36448
|
+
additionalProperties: false,
|
|
36449
|
+
description: "How much the organization has topped up; null when it could not be read."
|
|
36450
|
+
},
|
|
36451
|
+
grants: {
|
|
36452
|
+
type: "array",
|
|
36453
|
+
items: {
|
|
36454
|
+
type: "object",
|
|
36455
|
+
required: [
|
|
36456
|
+
"id",
|
|
36457
|
+
"kind",
|
|
36458
|
+
"label",
|
|
36459
|
+
"credits",
|
|
36460
|
+
"remaining",
|
|
36461
|
+
"expiresAt"
|
|
36462
|
+
],
|
|
36463
|
+
properties: {
|
|
36464
|
+
id: {
|
|
36465
|
+
type: "string"
|
|
36466
|
+
},
|
|
36467
|
+
kind: {
|
|
36468
|
+
anyOf: [
|
|
36469
|
+
{
|
|
36470
|
+
type: "string",
|
|
36471
|
+
const: "trial"
|
|
36472
|
+
},
|
|
36473
|
+
{
|
|
36474
|
+
type: "string",
|
|
36475
|
+
const: "promo"
|
|
36476
|
+
},
|
|
36477
|
+
{
|
|
36478
|
+
type: "string",
|
|
36479
|
+
const: "subsidy"
|
|
36480
|
+
},
|
|
36481
|
+
{
|
|
36482
|
+
type: "string",
|
|
36483
|
+
const: "courtesy"
|
|
36484
|
+
},
|
|
36485
|
+
{
|
|
36486
|
+
type: "string",
|
|
36487
|
+
const: "correction"
|
|
36488
|
+
},
|
|
36489
|
+
{
|
|
36490
|
+
type: "string",
|
|
36491
|
+
const: "other"
|
|
36492
|
+
}
|
|
36493
|
+
]
|
|
36494
|
+
},
|
|
36495
|
+
label: {
|
|
36496
|
+
anyOf: [
|
|
36497
|
+
{
|
|
36498
|
+
type: "string"
|
|
36499
|
+
},
|
|
36500
|
+
{
|
|
36501
|
+
type: "null"
|
|
36502
|
+
}
|
|
36503
|
+
],
|
|
36504
|
+
description: "The name Arbol gave it."
|
|
36505
|
+
},
|
|
36506
|
+
credits: {
|
|
36507
|
+
type: "number",
|
|
36508
|
+
description: "Credits it granted."
|
|
36509
|
+
},
|
|
36510
|
+
remaining: {
|
|
36511
|
+
type: "number",
|
|
36512
|
+
description: "Credits left of it."
|
|
36513
|
+
},
|
|
36514
|
+
expiresAt: {
|
|
36515
|
+
anyOf: [
|
|
36516
|
+
{
|
|
36517
|
+
type: "string",
|
|
36518
|
+
format: "date-time"
|
|
36519
|
+
},
|
|
36520
|
+
{
|
|
36521
|
+
type: "null"
|
|
36522
|
+
}
|
|
36523
|
+
],
|
|
36524
|
+
description: "When what is left of it ends."
|
|
36525
|
+
}
|
|
36526
|
+
},
|
|
36527
|
+
additionalProperties: false
|
|
36528
|
+
},
|
|
36529
|
+
maxItems: 50,
|
|
36530
|
+
description: "Credits Arbol gave that are still in force, spent before paid credits when they end sooner."
|
|
36531
|
+
},
|
|
36532
|
+
bundles: {
|
|
36533
|
+
type: "array",
|
|
36534
|
+
items: {
|
|
36535
|
+
type: "object",
|
|
36536
|
+
required: [
|
|
36537
|
+
"feature",
|
|
36538
|
+
"included",
|
|
36539
|
+
"remaining",
|
|
36540
|
+
"resetsAt"
|
|
36541
|
+
],
|
|
36542
|
+
properties: {
|
|
36543
|
+
feature: {
|
|
36544
|
+
anyOf: [
|
|
36545
|
+
{
|
|
36546
|
+
type: "string",
|
|
36547
|
+
const: "voice_minutes"
|
|
36548
|
+
},
|
|
36549
|
+
{
|
|
36550
|
+
type: "string",
|
|
36551
|
+
const: "telephony_minutes"
|
|
36552
|
+
},
|
|
36553
|
+
{
|
|
36554
|
+
type: "string",
|
|
36555
|
+
const: "telephony_cost"
|
|
36556
|
+
},
|
|
36557
|
+
{
|
|
36558
|
+
type: "string",
|
|
36559
|
+
const: "whatsapp_conversations"
|
|
36560
|
+
},
|
|
36561
|
+
{
|
|
36562
|
+
type: "string",
|
|
36563
|
+
const: "whatsapp_messages"
|
|
36564
|
+
},
|
|
36565
|
+
{
|
|
36566
|
+
type: "string",
|
|
36567
|
+
const: "whatsapp_templates"
|
|
36568
|
+
},
|
|
36569
|
+
{
|
|
36570
|
+
type: "string",
|
|
36571
|
+
const: "tool_calls"
|
|
36572
|
+
},
|
|
36573
|
+
{
|
|
36574
|
+
type: "string",
|
|
36575
|
+
const: "ai_cost"
|
|
36576
|
+
},
|
|
36577
|
+
{
|
|
36578
|
+
type: "string",
|
|
36579
|
+
const: "phone_numbers"
|
|
36580
|
+
},
|
|
36581
|
+
{
|
|
36582
|
+
type: "string",
|
|
36583
|
+
const: "sisben_lookups"
|
|
36584
|
+
},
|
|
36585
|
+
{
|
|
36586
|
+
type: "string",
|
|
36587
|
+
const: "adres_lookups"
|
|
36588
|
+
},
|
|
36589
|
+
{
|
|
36590
|
+
type: "string",
|
|
36591
|
+
const: "policia_colombia_lookups"
|
|
36592
|
+
},
|
|
36593
|
+
{
|
|
36594
|
+
type: "string",
|
|
36595
|
+
const: "postconsultations"
|
|
36596
|
+
},
|
|
36597
|
+
{
|
|
36598
|
+
type: "string",
|
|
36599
|
+
const: "agenda_users"
|
|
36600
|
+
},
|
|
36601
|
+
{
|
|
36602
|
+
type: "string",
|
|
36603
|
+
const: "sms_messages"
|
|
36604
|
+
},
|
|
36605
|
+
{
|
|
36606
|
+
type: "string",
|
|
36607
|
+
const: "agenda_plan"
|
|
36608
|
+
},
|
|
36609
|
+
{
|
|
36610
|
+
type: "string",
|
|
36611
|
+
const: "support_fee"
|
|
36612
|
+
}
|
|
36613
|
+
]
|
|
36614
|
+
},
|
|
36615
|
+
included: {
|
|
36616
|
+
type: "number",
|
|
36617
|
+
description: "Units the plan includes in the period, in the fact's units."
|
|
36618
|
+
},
|
|
36619
|
+
remaining: {
|
|
36620
|
+
type: "number"
|
|
36621
|
+
},
|
|
36622
|
+
resetsAt: {
|
|
36623
|
+
anyOf: [
|
|
36624
|
+
{
|
|
36625
|
+
type: "string",
|
|
36626
|
+
format: "date-time"
|
|
36627
|
+
},
|
|
36628
|
+
{
|
|
36629
|
+
type: "null"
|
|
36630
|
+
}
|
|
36631
|
+
]
|
|
36632
|
+
}
|
|
36633
|
+
},
|
|
36634
|
+
additionalProperties: false
|
|
36635
|
+
},
|
|
36636
|
+
maxItems: 50,
|
|
36637
|
+
description: "Allowances of one fact on the plan (600 minutes a month), spent before credits."
|
|
36161
36638
|
}
|
|
36162
36639
|
},
|
|
36163
36640
|
additionalProperties: false
|
|
@@ -36210,7 +36687,7 @@ var schemaComponents = {
|
|
|
36210
36687
|
properties: {
|
|
36211
36688
|
id: {
|
|
36212
36689
|
type: "string",
|
|
36213
|
-
description: "The plan's id
|
|
36690
|
+
description: "The plan's id, such as `arbol_prepaid` or a customer's own plan."
|
|
36214
36691
|
},
|
|
36215
36692
|
name: {
|
|
36216
36693
|
type: "string"
|
|
@@ -36293,6 +36770,10 @@ var schemaComponents = {
|
|
|
36293
36770
|
type: "string",
|
|
36294
36771
|
const: "telephony_minutes"
|
|
36295
36772
|
},
|
|
36773
|
+
{
|
|
36774
|
+
type: "string",
|
|
36775
|
+
const: "telephony_cost"
|
|
36776
|
+
},
|
|
36296
36777
|
{
|
|
36297
36778
|
type: "string",
|
|
36298
36779
|
const: "whatsapp_conversations"
|
|
@@ -36323,16 +36804,28 @@ var schemaComponents = {
|
|
|
36323
36804
|
},
|
|
36324
36805
|
{
|
|
36325
36806
|
type: "string",
|
|
36326
|
-
const: "
|
|
36807
|
+
const: "adres_lookups"
|
|
36327
36808
|
},
|
|
36328
36809
|
{
|
|
36329
36810
|
type: "string",
|
|
36330
|
-
const: "
|
|
36811
|
+
const: "policia_colombia_lookups"
|
|
36812
|
+
},
|
|
36813
|
+
{
|
|
36814
|
+
type: "string",
|
|
36815
|
+
const: "postconsultations"
|
|
36331
36816
|
},
|
|
36332
36817
|
{
|
|
36333
36818
|
type: "string",
|
|
36334
36819
|
const: "agenda_users"
|
|
36335
36820
|
},
|
|
36821
|
+
{
|
|
36822
|
+
type: "string",
|
|
36823
|
+
const: "sms_messages"
|
|
36824
|
+
},
|
|
36825
|
+
{
|
|
36826
|
+
type: "string",
|
|
36827
|
+
const: "agenda_plan"
|
|
36828
|
+
},
|
|
36336
36829
|
{
|
|
36337
36830
|
type: "string",
|
|
36338
36831
|
const: "support_fee"
|
|
@@ -36367,7 +36860,7 @@ var schemaComponents = {
|
|
|
36367
36860
|
properties: {
|
|
36368
36861
|
url: {
|
|
36369
36862
|
type: "string",
|
|
36370
|
-
description: "
|
|
36863
|
+
description: "The payment processor's portal, for the organization's cards and receipts."
|
|
36371
36864
|
}
|
|
36372
36865
|
},
|
|
36373
36866
|
additionalProperties: false
|
|
@@ -36462,6 +36955,68 @@ var schemaComponents = {
|
|
|
36462
36955
|
}
|
|
36463
36956
|
}
|
|
36464
36957
|
},
|
|
36958
|
+
AccountBillingRefusedError: {
|
|
36959
|
+
type: "object",
|
|
36960
|
+
description: "A failed answer.",
|
|
36961
|
+
additionalProperties: false,
|
|
36962
|
+
required: [
|
|
36963
|
+
"success",
|
|
36964
|
+
"data",
|
|
36965
|
+
"error",
|
|
36966
|
+
"metadata"
|
|
36967
|
+
],
|
|
36968
|
+
properties: {
|
|
36969
|
+
success: {
|
|
36970
|
+
type: "boolean",
|
|
36971
|
+
enum: [
|
|
36972
|
+
false
|
|
36973
|
+
]
|
|
36974
|
+
},
|
|
36975
|
+
data: {
|
|
36976
|
+
const: null
|
|
36977
|
+
},
|
|
36978
|
+
error: {
|
|
36979
|
+
$ref: "#/components/schemas/AccountBillingRefusedFailure"
|
|
36980
|
+
},
|
|
36981
|
+
metadata: {
|
|
36982
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
36983
|
+
}
|
|
36984
|
+
}
|
|
36985
|
+
},
|
|
36986
|
+
AccountBillingRefusedFailure: {
|
|
36987
|
+
type: "object",
|
|
36988
|
+
description: "The billing service refused the change; nothing was changed.",
|
|
36989
|
+
additionalProperties: false,
|
|
36990
|
+
required: [
|
|
36991
|
+
"code",
|
|
36992
|
+
"message",
|
|
36993
|
+
"retryable",
|
|
36994
|
+
"data"
|
|
36995
|
+
],
|
|
36996
|
+
properties: {
|
|
36997
|
+
code: {
|
|
36998
|
+
type: "string",
|
|
36999
|
+
enum: [
|
|
37000
|
+
"BILLING_REFUSED"
|
|
37001
|
+
],
|
|
37002
|
+
description: "The failure code, stable across releases."
|
|
37003
|
+
},
|
|
37004
|
+
message: {
|
|
37005
|
+
type: "string",
|
|
37006
|
+
description: "What went wrong, for people; it never contains input values."
|
|
37007
|
+
},
|
|
37008
|
+
retryable: {
|
|
37009
|
+
type: "boolean",
|
|
37010
|
+
enum: [
|
|
37011
|
+
false
|
|
37012
|
+
],
|
|
37013
|
+
description: "Whether repeating the same request may succeed."
|
|
37014
|
+
},
|
|
37015
|
+
data: {
|
|
37016
|
+
$ref: "#/components/schemas/Empty"
|
|
37017
|
+
}
|
|
37018
|
+
}
|
|
37019
|
+
},
|
|
36465
37020
|
AccountBillingResponse: {
|
|
36466
37021
|
type: "object",
|
|
36467
37022
|
description: "A successful answer.",
|
|
@@ -38217,6 +38772,55 @@ var schemaComponents = {
|
|
|
38217
38772
|
}
|
|
38218
38773
|
}
|
|
38219
38774
|
},
|
|
38775
|
+
AccountCreatePaymentMethodSetupServiceUnavailableError: {
|
|
38776
|
+
type: "object",
|
|
38777
|
+
description: "A failed answer.",
|
|
38778
|
+
additionalProperties: false,
|
|
38779
|
+
required: [
|
|
38780
|
+
"success",
|
|
38781
|
+
"data",
|
|
38782
|
+
"error",
|
|
38783
|
+
"metadata"
|
|
38784
|
+
],
|
|
38785
|
+
properties: {
|
|
38786
|
+
success: {
|
|
38787
|
+
type: "boolean",
|
|
38788
|
+
enum: [
|
|
38789
|
+
false
|
|
38790
|
+
]
|
|
38791
|
+
},
|
|
38792
|
+
data: {
|
|
38793
|
+
const: null
|
|
38794
|
+
},
|
|
38795
|
+
error: {
|
|
38796
|
+
$ref: "#/components/schemas/AccountCreatePaymentMethodSetupServiceUnavailableFailure"
|
|
38797
|
+
},
|
|
38798
|
+
metadata: {
|
|
38799
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
38800
|
+
}
|
|
38801
|
+
}
|
|
38802
|
+
},
|
|
38803
|
+
AccountCreatePaymentMethodSetupServiceUnavailableFailure: {
|
|
38804
|
+
oneOf: [
|
|
38805
|
+
{
|
|
38806
|
+
$ref: "#/components/schemas/UpstreamUnavailableFailure"
|
|
38807
|
+
},
|
|
38808
|
+
{
|
|
38809
|
+
$ref: "#/components/schemas/AccountBillingNotConfiguredFailure"
|
|
38810
|
+
},
|
|
38811
|
+
{
|
|
38812
|
+
$ref: "#/components/schemas/AccountBillingUnavailableFailure"
|
|
38813
|
+
}
|
|
38814
|
+
],
|
|
38815
|
+
discriminator: {
|
|
38816
|
+
propertyName: "code",
|
|
38817
|
+
mapping: {
|
|
38818
|
+
UPSTREAM_UNAVAILABLE: "#/components/schemas/UpstreamUnavailableFailure",
|
|
38819
|
+
BILLING_NOT_CONFIGURED: "#/components/schemas/AccountBillingNotConfiguredFailure",
|
|
38820
|
+
BILLING_UNAVAILABLE: "#/components/schemas/AccountBillingUnavailableFailure"
|
|
38821
|
+
}
|
|
38822
|
+
}
|
|
38823
|
+
},
|
|
38220
38824
|
AccountCreateServerBody: {
|
|
38221
38825
|
type: "object",
|
|
38222
38826
|
required: [
|
|
@@ -39200,6 +39804,68 @@ var schemaComponents = {
|
|
|
39200
39804
|
}
|
|
39201
39805
|
}
|
|
39202
39806
|
},
|
|
39807
|
+
AccountInsufficientCreditsError: {
|
|
39808
|
+
type: "object",
|
|
39809
|
+
description: "A failed answer.",
|
|
39810
|
+
additionalProperties: false,
|
|
39811
|
+
required: [
|
|
39812
|
+
"success",
|
|
39813
|
+
"data",
|
|
39814
|
+
"error",
|
|
39815
|
+
"metadata"
|
|
39816
|
+
],
|
|
39817
|
+
properties: {
|
|
39818
|
+
success: {
|
|
39819
|
+
type: "boolean",
|
|
39820
|
+
enum: [
|
|
39821
|
+
false
|
|
39822
|
+
]
|
|
39823
|
+
},
|
|
39824
|
+
data: {
|
|
39825
|
+
const: null
|
|
39826
|
+
},
|
|
39827
|
+
error: {
|
|
39828
|
+
$ref: "#/components/schemas/AccountInsufficientCreditsFailure"
|
|
39829
|
+
},
|
|
39830
|
+
metadata: {
|
|
39831
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
39832
|
+
}
|
|
39833
|
+
}
|
|
39834
|
+
},
|
|
39835
|
+
AccountInsufficientCreditsFailure: {
|
|
39836
|
+
type: "object",
|
|
39837
|
+
description: "The organization's wallet has no credits for this; nothing was changed. Top up, then try again.",
|
|
39838
|
+
additionalProperties: false,
|
|
39839
|
+
required: [
|
|
39840
|
+
"code",
|
|
39841
|
+
"message",
|
|
39842
|
+
"retryable",
|
|
39843
|
+
"data"
|
|
39844
|
+
],
|
|
39845
|
+
properties: {
|
|
39846
|
+
code: {
|
|
39847
|
+
type: "string",
|
|
39848
|
+
enum: [
|
|
39849
|
+
"INSUFFICIENT_CREDITS"
|
|
39850
|
+
],
|
|
39851
|
+
description: "The failure code, stable across releases."
|
|
39852
|
+
},
|
|
39853
|
+
message: {
|
|
39854
|
+
type: "string",
|
|
39855
|
+
description: "What went wrong, for people; it never contains input values."
|
|
39856
|
+
},
|
|
39857
|
+
retryable: {
|
|
39858
|
+
type: "boolean",
|
|
39859
|
+
enum: [
|
|
39860
|
+
false
|
|
39861
|
+
],
|
|
39862
|
+
description: "Whether repeating the same request may succeed."
|
|
39863
|
+
},
|
|
39864
|
+
data: {
|
|
39865
|
+
$ref: "#/components/schemas/Empty"
|
|
39866
|
+
}
|
|
39867
|
+
}
|
|
39868
|
+
},
|
|
39203
39869
|
AccountIntegrationUnsupportedError: {
|
|
39204
39870
|
type: "object",
|
|
39205
39871
|
description: "A failed answer.",
|
|
@@ -39483,6 +40149,275 @@ var schemaComponents = {
|
|
|
39483
40149
|
}
|
|
39484
40150
|
}
|
|
39485
40151
|
},
|
|
40152
|
+
AccountInvoice: {
|
|
40153
|
+
type: "object",
|
|
40154
|
+
required: [
|
|
40155
|
+
"id",
|
|
40156
|
+
"source",
|
|
40157
|
+
"number",
|
|
40158
|
+
"issuedAt",
|
|
40159
|
+
"periodStartsAt",
|
|
40160
|
+
"periodEndsAt",
|
|
40161
|
+
"total",
|
|
40162
|
+
"currency",
|
|
40163
|
+
"status",
|
|
40164
|
+
"hostedUrl",
|
|
40165
|
+
"files",
|
|
40166
|
+
"taxAuthorityNumber"
|
|
40167
|
+
],
|
|
40168
|
+
properties: {
|
|
40169
|
+
id: {
|
|
40170
|
+
type: "string"
|
|
40171
|
+
},
|
|
40172
|
+
source: {
|
|
40173
|
+
anyOf: [
|
|
40174
|
+
{
|
|
40175
|
+
type: "string",
|
|
40176
|
+
const: "generated"
|
|
40177
|
+
},
|
|
40178
|
+
{
|
|
40179
|
+
type: "string",
|
|
40180
|
+
const: "uploaded"
|
|
40181
|
+
}
|
|
40182
|
+
],
|
|
40183
|
+
description: "`generated`: issued by the payment processor, opened on `hostedUrl`; `uploaded`: issued by Arbol, downloaded as a file."
|
|
40184
|
+
},
|
|
40185
|
+
number: {
|
|
40186
|
+
anyOf: [
|
|
40187
|
+
{
|
|
40188
|
+
type: "string"
|
|
40189
|
+
},
|
|
40190
|
+
{
|
|
40191
|
+
type: "null"
|
|
40192
|
+
}
|
|
40193
|
+
]
|
|
40194
|
+
},
|
|
40195
|
+
issuedAt: {
|
|
40196
|
+
anyOf: [
|
|
40197
|
+
{
|
|
40198
|
+
type: "string",
|
|
40199
|
+
format: "date-time"
|
|
40200
|
+
},
|
|
40201
|
+
{
|
|
40202
|
+
type: "null"
|
|
40203
|
+
}
|
|
40204
|
+
]
|
|
40205
|
+
},
|
|
40206
|
+
periodStartsAt: {
|
|
40207
|
+
anyOf: [
|
|
40208
|
+
{
|
|
40209
|
+
type: "string",
|
|
40210
|
+
format: "date-time"
|
|
40211
|
+
},
|
|
40212
|
+
{
|
|
40213
|
+
type: "null"
|
|
40214
|
+
}
|
|
40215
|
+
]
|
|
40216
|
+
},
|
|
40217
|
+
periodEndsAt: {
|
|
40218
|
+
anyOf: [
|
|
40219
|
+
{
|
|
40220
|
+
type: "string",
|
|
40221
|
+
format: "date-time"
|
|
40222
|
+
},
|
|
40223
|
+
{
|
|
40224
|
+
type: "null"
|
|
40225
|
+
}
|
|
40226
|
+
]
|
|
40227
|
+
},
|
|
40228
|
+
total: {
|
|
40229
|
+
anyOf: [
|
|
40230
|
+
{
|
|
40231
|
+
type: "number"
|
|
40232
|
+
},
|
|
40233
|
+
{
|
|
40234
|
+
type: "null"
|
|
40235
|
+
}
|
|
40236
|
+
]
|
|
40237
|
+
},
|
|
40238
|
+
currency: {
|
|
40239
|
+
type: "string",
|
|
40240
|
+
description: "ISO 4217, such as USD."
|
|
40241
|
+
},
|
|
40242
|
+
status: {
|
|
40243
|
+
anyOf: [
|
|
40244
|
+
{
|
|
40245
|
+
type: "string",
|
|
40246
|
+
const: "open"
|
|
40247
|
+
},
|
|
40248
|
+
{
|
|
40249
|
+
type: "string",
|
|
40250
|
+
const: "paid"
|
|
40251
|
+
},
|
|
40252
|
+
{
|
|
40253
|
+
type: "string",
|
|
40254
|
+
const: "void"
|
|
40255
|
+
},
|
|
40256
|
+
{
|
|
40257
|
+
type: "string",
|
|
40258
|
+
const: "uncollectible"
|
|
40259
|
+
}
|
|
40260
|
+
]
|
|
40261
|
+
},
|
|
40262
|
+
hostedUrl: {
|
|
40263
|
+
anyOf: [
|
|
40264
|
+
{
|
|
40265
|
+
type: "string"
|
|
40266
|
+
},
|
|
40267
|
+
{
|
|
40268
|
+
type: "null"
|
|
40269
|
+
}
|
|
40270
|
+
],
|
|
40271
|
+
description: "The generated invoice's own page."
|
|
40272
|
+
},
|
|
40273
|
+
files: {
|
|
40274
|
+
type: "array",
|
|
40275
|
+
items: {
|
|
40276
|
+
anyOf: [
|
|
40277
|
+
{
|
|
40278
|
+
type: "string",
|
|
40279
|
+
const: "pdf"
|
|
40280
|
+
},
|
|
40281
|
+
{
|
|
40282
|
+
type: "string",
|
|
40283
|
+
const: "xml"
|
|
40284
|
+
}
|
|
40285
|
+
]
|
|
40286
|
+
},
|
|
40287
|
+
maxItems: 2,
|
|
40288
|
+
description: "The files of an uploaded invoice, served by GET /v1/invoice-files/{invoiceId}."
|
|
40289
|
+
},
|
|
40290
|
+
taxAuthorityNumber: {
|
|
40291
|
+
anyOf: [
|
|
40292
|
+
{
|
|
40293
|
+
type: "string"
|
|
40294
|
+
},
|
|
40295
|
+
{
|
|
40296
|
+
type: "null"
|
|
40297
|
+
}
|
|
40298
|
+
],
|
|
40299
|
+
description: "An electronic invoice's number at the tax authority (Colombia's CUFE)."
|
|
40300
|
+
}
|
|
40301
|
+
},
|
|
40302
|
+
additionalProperties: false
|
|
40303
|
+
},
|
|
40304
|
+
AccountInvoiceNotFoundError: {
|
|
40305
|
+
type: "object",
|
|
40306
|
+
description: "A failed answer.",
|
|
40307
|
+
additionalProperties: false,
|
|
40308
|
+
required: [
|
|
40309
|
+
"success",
|
|
40310
|
+
"data",
|
|
40311
|
+
"error",
|
|
40312
|
+
"metadata"
|
|
40313
|
+
],
|
|
40314
|
+
properties: {
|
|
40315
|
+
success: {
|
|
40316
|
+
type: "boolean",
|
|
40317
|
+
enum: [
|
|
40318
|
+
false
|
|
40319
|
+
]
|
|
40320
|
+
},
|
|
40321
|
+
data: {
|
|
40322
|
+
const: null
|
|
40323
|
+
},
|
|
40324
|
+
error: {
|
|
40325
|
+
$ref: "#/components/schemas/AccountInvoiceNotFoundFailure"
|
|
40326
|
+
},
|
|
40327
|
+
metadata: {
|
|
40328
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
40329
|
+
}
|
|
40330
|
+
}
|
|
40331
|
+
},
|
|
40332
|
+
AccountInvoiceNotFoundFailure: {
|
|
40333
|
+
type: "object",
|
|
40334
|
+
description: "This organization has no such invoice file.",
|
|
40335
|
+
additionalProperties: false,
|
|
40336
|
+
required: [
|
|
40337
|
+
"code",
|
|
40338
|
+
"message",
|
|
40339
|
+
"retryable",
|
|
40340
|
+
"data"
|
|
40341
|
+
],
|
|
40342
|
+
properties: {
|
|
40343
|
+
code: {
|
|
40344
|
+
type: "string",
|
|
40345
|
+
enum: [
|
|
40346
|
+
"INVOICE_NOT_FOUND"
|
|
40347
|
+
],
|
|
40348
|
+
description: "The failure code, stable across releases."
|
|
40349
|
+
},
|
|
40350
|
+
message: {
|
|
40351
|
+
type: "string",
|
|
40352
|
+
description: "What went wrong, for people; it never contains input values."
|
|
40353
|
+
},
|
|
40354
|
+
retryable: {
|
|
40355
|
+
type: "boolean",
|
|
40356
|
+
enum: [
|
|
40357
|
+
false
|
|
40358
|
+
],
|
|
40359
|
+
description: "Whether repeating the same request may succeed."
|
|
40360
|
+
},
|
|
40361
|
+
data: {
|
|
40362
|
+
$ref: "#/components/schemas/Empty"
|
|
40363
|
+
}
|
|
40364
|
+
}
|
|
40365
|
+
},
|
|
40366
|
+
AccountInvoicePage: {
|
|
40367
|
+
type: "object",
|
|
40368
|
+
required: [
|
|
40369
|
+
"data",
|
|
40370
|
+
"object",
|
|
40371
|
+
"pageInfo"
|
|
40372
|
+
],
|
|
40373
|
+
properties: {
|
|
40374
|
+
data: {
|
|
40375
|
+
type: "array",
|
|
40376
|
+
items: {
|
|
40377
|
+
$ref: "#/components/schemas/AccountInvoice"
|
|
40378
|
+
},
|
|
40379
|
+
description: "Items admitted by this resource contract within the verified organization."
|
|
40380
|
+
},
|
|
40381
|
+
object: {
|
|
40382
|
+
type: "string",
|
|
40383
|
+
const: "list",
|
|
40384
|
+
description: "Discriminator for a resource list response."
|
|
40385
|
+
},
|
|
40386
|
+
pageInfo: {
|
|
40387
|
+
$ref: "#/components/schemas/PageInfo",
|
|
40388
|
+
description: "Opaque navigation cursors for this page’s stable keyset order."
|
|
40389
|
+
}
|
|
40390
|
+
},
|
|
40391
|
+
additionalProperties: false
|
|
40392
|
+
},
|
|
40393
|
+
AccountInvoicePageResponse: {
|
|
40394
|
+
type: "object",
|
|
40395
|
+
description: "A successful answer.",
|
|
40396
|
+
additionalProperties: false,
|
|
40397
|
+
required: [
|
|
40398
|
+
"success",
|
|
40399
|
+
"data",
|
|
40400
|
+
"error",
|
|
40401
|
+
"metadata"
|
|
40402
|
+
],
|
|
40403
|
+
properties: {
|
|
40404
|
+
success: {
|
|
40405
|
+
type: "boolean",
|
|
40406
|
+
enum: [
|
|
40407
|
+
true
|
|
40408
|
+
]
|
|
40409
|
+
},
|
|
40410
|
+
data: {
|
|
40411
|
+
$ref: "#/components/schemas/AccountInvoicePage"
|
|
40412
|
+
},
|
|
40413
|
+
error: {
|
|
40414
|
+
const: null
|
|
40415
|
+
},
|
|
40416
|
+
metadata: {
|
|
40417
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
40418
|
+
}
|
|
40419
|
+
}
|
|
40420
|
+
},
|
|
39486
40421
|
AccountIssuedApiKey: {
|
|
39487
40422
|
type: "object",
|
|
39488
40423
|
required: [
|
|
@@ -39660,6 +40595,55 @@ var schemaComponents = {
|
|
|
39660
40595
|
}
|
|
39661
40596
|
}
|
|
39662
40597
|
},
|
|
40598
|
+
AccountListInvoicesServiceUnavailableError: {
|
|
40599
|
+
type: "object",
|
|
40600
|
+
description: "A failed answer.",
|
|
40601
|
+
additionalProperties: false,
|
|
40602
|
+
required: [
|
|
40603
|
+
"success",
|
|
40604
|
+
"data",
|
|
40605
|
+
"error",
|
|
40606
|
+
"metadata"
|
|
40607
|
+
],
|
|
40608
|
+
properties: {
|
|
40609
|
+
success: {
|
|
40610
|
+
type: "boolean",
|
|
40611
|
+
enum: [
|
|
40612
|
+
false
|
|
40613
|
+
]
|
|
40614
|
+
},
|
|
40615
|
+
data: {
|
|
40616
|
+
const: null
|
|
40617
|
+
},
|
|
40618
|
+
error: {
|
|
40619
|
+
$ref: "#/components/schemas/AccountListInvoicesServiceUnavailableFailure"
|
|
40620
|
+
},
|
|
40621
|
+
metadata: {
|
|
40622
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
40623
|
+
}
|
|
40624
|
+
}
|
|
40625
|
+
},
|
|
40626
|
+
AccountListInvoicesServiceUnavailableFailure: {
|
|
40627
|
+
oneOf: [
|
|
40628
|
+
{
|
|
40629
|
+
$ref: "#/components/schemas/UpstreamUnavailableFailure"
|
|
40630
|
+
},
|
|
40631
|
+
{
|
|
40632
|
+
$ref: "#/components/schemas/AccountBillingNotConfiguredFailure"
|
|
40633
|
+
},
|
|
40634
|
+
{
|
|
40635
|
+
$ref: "#/components/schemas/AccountBillingUnavailableFailure"
|
|
40636
|
+
}
|
|
40637
|
+
],
|
|
40638
|
+
discriminator: {
|
|
40639
|
+
propertyName: "code",
|
|
40640
|
+
mapping: {
|
|
40641
|
+
UPSTREAM_UNAVAILABLE: "#/components/schemas/UpstreamUnavailableFailure",
|
|
40642
|
+
BILLING_NOT_CONFIGURED: "#/components/schemas/AccountBillingNotConfiguredFailure",
|
|
40643
|
+
BILLING_UNAVAILABLE: "#/components/schemas/AccountBillingUnavailableFailure"
|
|
40644
|
+
}
|
|
40645
|
+
}
|
|
40646
|
+
},
|
|
39663
40647
|
AccountListMembersServiceUnavailableError: {
|
|
39664
40648
|
type: "object",
|
|
39665
40649
|
description: "A failed answer.",
|
|
@@ -40313,6 +41297,47 @@ var schemaComponents = {
|
|
|
40313
41297
|
}
|
|
40314
41298
|
}
|
|
40315
41299
|
},
|
|
41300
|
+
AccountPaymentMethodSetup: {
|
|
41301
|
+
type: "object",
|
|
41302
|
+
required: [
|
|
41303
|
+
"url"
|
|
41304
|
+
],
|
|
41305
|
+
properties: {
|
|
41306
|
+
url: {
|
|
41307
|
+
type: "string",
|
|
41308
|
+
description: "The payment processor's page to add or change the card, with no purchase."
|
|
41309
|
+
}
|
|
41310
|
+
},
|
|
41311
|
+
additionalProperties: false
|
|
41312
|
+
},
|
|
41313
|
+
AccountPaymentMethodSetupResponse: {
|
|
41314
|
+
type: "object",
|
|
41315
|
+
description: "A successful answer.",
|
|
41316
|
+
additionalProperties: false,
|
|
41317
|
+
required: [
|
|
41318
|
+
"success",
|
|
41319
|
+
"data",
|
|
41320
|
+
"error",
|
|
41321
|
+
"metadata"
|
|
41322
|
+
],
|
|
41323
|
+
properties: {
|
|
41324
|
+
success: {
|
|
41325
|
+
type: "boolean",
|
|
41326
|
+
enum: [
|
|
41327
|
+
true
|
|
41328
|
+
]
|
|
41329
|
+
},
|
|
41330
|
+
data: {
|
|
41331
|
+
$ref: "#/components/schemas/AccountPaymentMethodSetup"
|
|
41332
|
+
},
|
|
41333
|
+
error: {
|
|
41334
|
+
const: null
|
|
41335
|
+
},
|
|
41336
|
+
metadata: {
|
|
41337
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
41338
|
+
}
|
|
41339
|
+
}
|
|
41340
|
+
},
|
|
40316
41341
|
AccountPermission: {
|
|
40317
41342
|
type: "object",
|
|
40318
41343
|
required: [
|
|
@@ -41582,6 +42607,107 @@ var schemaComponents = {
|
|
|
41582
42607
|
}
|
|
41583
42608
|
}
|
|
41584
42609
|
},
|
|
42610
|
+
AccountUpdateBillingBody: {
|
|
42611
|
+
type: "object",
|
|
42612
|
+
properties: {
|
|
42613
|
+
autoTopUp: {
|
|
42614
|
+
type: "object",
|
|
42615
|
+
required: [
|
|
42616
|
+
"enabled",
|
|
42617
|
+
"threshold",
|
|
42618
|
+
"credits",
|
|
42619
|
+
"perMonth"
|
|
42620
|
+
],
|
|
42621
|
+
properties: {
|
|
42622
|
+
enabled: {
|
|
42623
|
+
type: "boolean"
|
|
42624
|
+
},
|
|
42625
|
+
threshold: {
|
|
42626
|
+
type: "number",
|
|
42627
|
+
minimum: 0,
|
|
42628
|
+
maximum: 1e5,
|
|
42629
|
+
description: "When the balance falls below this…"
|
|
42630
|
+
},
|
|
42631
|
+
credits: {
|
|
42632
|
+
type: "integer",
|
|
42633
|
+
minimum: 10,
|
|
42634
|
+
maximum: 1e4,
|
|
42635
|
+
description: "…buy this many credits with the saved card…"
|
|
42636
|
+
},
|
|
42637
|
+
perMonth: {
|
|
42638
|
+
type: "integer",
|
|
42639
|
+
minimum: 1,
|
|
42640
|
+
maximum: 31,
|
|
42641
|
+
description: "…at most this many times a month."
|
|
42642
|
+
}
|
|
42643
|
+
},
|
|
42644
|
+
additionalProperties: false
|
|
42645
|
+
},
|
|
42646
|
+
lowBalanceAlert: {
|
|
42647
|
+
anyOf: [
|
|
42648
|
+
{
|
|
42649
|
+
type: "number",
|
|
42650
|
+
minimum: 0,
|
|
42651
|
+
maximum: 1e5
|
|
42652
|
+
},
|
|
42653
|
+
{
|
|
42654
|
+
type: "null"
|
|
42655
|
+
}
|
|
42656
|
+
],
|
|
42657
|
+
description: "The balance at which administrators are emailed; null turns it off."
|
|
42658
|
+
}
|
|
42659
|
+
},
|
|
42660
|
+
additionalProperties: false
|
|
42661
|
+
},
|
|
42662
|
+
AccountUpdateBillingServiceUnavailableError: {
|
|
42663
|
+
type: "object",
|
|
42664
|
+
description: "A failed answer.",
|
|
42665
|
+
additionalProperties: false,
|
|
42666
|
+
required: [
|
|
42667
|
+
"success",
|
|
42668
|
+
"data",
|
|
42669
|
+
"error",
|
|
42670
|
+
"metadata"
|
|
42671
|
+
],
|
|
42672
|
+
properties: {
|
|
42673
|
+
success: {
|
|
42674
|
+
type: "boolean",
|
|
42675
|
+
enum: [
|
|
42676
|
+
false
|
|
42677
|
+
]
|
|
42678
|
+
},
|
|
42679
|
+
data: {
|
|
42680
|
+
const: null
|
|
42681
|
+
},
|
|
42682
|
+
error: {
|
|
42683
|
+
$ref: "#/components/schemas/AccountUpdateBillingServiceUnavailableFailure"
|
|
42684
|
+
},
|
|
42685
|
+
metadata: {
|
|
42686
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
42687
|
+
}
|
|
42688
|
+
}
|
|
42689
|
+
},
|
|
42690
|
+
AccountUpdateBillingServiceUnavailableFailure: {
|
|
42691
|
+
oneOf: [
|
|
42692
|
+
{
|
|
42693
|
+
$ref: "#/components/schemas/UpstreamUnavailableFailure"
|
|
42694
|
+
},
|
|
42695
|
+
{
|
|
42696
|
+
$ref: "#/components/schemas/AccountBillingNotConfiguredFailure"
|
|
42697
|
+
},
|
|
42698
|
+
{
|
|
42699
|
+
$ref: "#/components/schemas/AccountBillingUnavailableFailure"
|
|
42700
|
+
}
|
|
42701
|
+
],
|
|
42702
|
+
discriminator: {
|
|
42703
|
+
propertyName: "code",
|
|
42704
|
+
mapping: {
|
|
42705
|
+
UPSTREAM_UNAVAILABLE: "#/components/schemas/UpstreamUnavailableFailure",
|
|
42706
|
+
BILLING_NOT_CONFIGURED: "#/components/schemas/AccountBillingNotConfiguredFailure",
|
|
42707
|
+
BILLING_UNAVAILABLE: "#/components/schemas/AccountBillingUnavailableFailure"
|
|
42708
|
+
}
|
|
42709
|
+
}
|
|
42710
|
+
},
|
|
41585
42711
|
AccountUpdateMemberBody: {
|
|
41586
42712
|
type: "object",
|
|
41587
42713
|
required: [
|
|
@@ -41797,6 +42923,7 @@ var schemaComponents = {
|
|
|
41797
42923
|
"feature",
|
|
41798
42924
|
"units",
|
|
41799
42925
|
"events",
|
|
42926
|
+
"credits",
|
|
41800
42927
|
"groups"
|
|
41801
42928
|
],
|
|
41802
42929
|
properties: {
|
|
@@ -41810,6 +42937,10 @@ var schemaComponents = {
|
|
|
41810
42937
|
type: "string",
|
|
41811
42938
|
const: "telephony_minutes"
|
|
41812
42939
|
},
|
|
42940
|
+
{
|
|
42941
|
+
type: "string",
|
|
42942
|
+
const: "telephony_cost"
|
|
42943
|
+
},
|
|
41813
42944
|
{
|
|
41814
42945
|
type: "string",
|
|
41815
42946
|
const: "whatsapp_conversations"
|
|
@@ -41840,16 +42971,28 @@ var schemaComponents = {
|
|
|
41840
42971
|
},
|
|
41841
42972
|
{
|
|
41842
42973
|
type: "string",
|
|
41843
|
-
const: "
|
|
42974
|
+
const: "adres_lookups"
|
|
41844
42975
|
},
|
|
41845
42976
|
{
|
|
41846
42977
|
type: "string",
|
|
41847
|
-
const: "
|
|
42978
|
+
const: "policia_colombia_lookups"
|
|
42979
|
+
},
|
|
42980
|
+
{
|
|
42981
|
+
type: "string",
|
|
42982
|
+
const: "postconsultations"
|
|
41848
42983
|
},
|
|
41849
42984
|
{
|
|
41850
42985
|
type: "string",
|
|
41851
42986
|
const: "agenda_users"
|
|
41852
42987
|
},
|
|
42988
|
+
{
|
|
42989
|
+
type: "string",
|
|
42990
|
+
const: "sms_messages"
|
|
42991
|
+
},
|
|
42992
|
+
{
|
|
42993
|
+
type: "string",
|
|
42994
|
+
const: "agenda_plan"
|
|
42995
|
+
},
|
|
41853
42996
|
{
|
|
41854
42997
|
type: "string",
|
|
41855
42998
|
const: "support_fee"
|
|
@@ -41858,27 +43001,36 @@ var schemaComponents = {
|
|
|
41858
43001
|
},
|
|
41859
43002
|
units: {
|
|
41860
43003
|
type: "number",
|
|
41861
|
-
description: "What was used, in the feature's units: minutes, conversations, lookups… For `ai_cost`, the
|
|
43004
|
+
description: "What was used, in the feature's units: minutes, conversations, lookups… For `ai_cost` and `telephony_cost`, the reports."
|
|
41862
43005
|
},
|
|
41863
43006
|
events: {
|
|
41864
43007
|
type: "integer",
|
|
41865
43008
|
description: "How many reports made it up."
|
|
41866
43009
|
},
|
|
43010
|
+
credits: {
|
|
43011
|
+
type: "number",
|
|
43012
|
+
description: "Its value at the organization's own rates."
|
|
43013
|
+
},
|
|
41867
43014
|
groups: {
|
|
41868
43015
|
type: "array",
|
|
41869
43016
|
items: {
|
|
41870
43017
|
type: "object",
|
|
41871
43018
|
required: [
|
|
41872
43019
|
"key",
|
|
41873
|
-
"units"
|
|
43020
|
+
"units",
|
|
43021
|
+
"credits"
|
|
41874
43022
|
],
|
|
41875
43023
|
properties: {
|
|
41876
43024
|
key: {
|
|
41877
43025
|
type: "string",
|
|
41878
|
-
description: "The product (`raiz`)
|
|
43026
|
+
description: "The product (`raiz`), the channel (`voice`), the Agent or the campaign id."
|
|
41879
43027
|
},
|
|
41880
43028
|
units: {
|
|
41881
43029
|
type: "number"
|
|
43030
|
+
},
|
|
43031
|
+
credits: {
|
|
43032
|
+
type: "number",
|
|
43033
|
+
description: "Its value at the organization's own rates."
|
|
41882
43034
|
}
|
|
41883
43035
|
},
|
|
41884
43036
|
additionalProperties: false
|
|
@@ -41893,9 +43045,11 @@ var schemaComponents = {
|
|
|
41893
43045
|
required: [
|
|
41894
43046
|
"from",
|
|
41895
43047
|
"to",
|
|
43048
|
+
"timezone",
|
|
41896
43049
|
"groupBy",
|
|
41897
43050
|
"credits",
|
|
41898
|
-
"features"
|
|
43051
|
+
"features",
|
|
43052
|
+
"days"
|
|
41899
43053
|
],
|
|
41900
43054
|
properties: {
|
|
41901
43055
|
from: {
|
|
@@ -41906,6 +43060,9 @@ var schemaComponents = {
|
|
|
41906
43060
|
type: "string",
|
|
41907
43061
|
format: "date-time"
|
|
41908
43062
|
},
|
|
43063
|
+
timezone: {
|
|
43064
|
+
type: "string"
|
|
43065
|
+
},
|
|
41909
43066
|
groupBy: {
|
|
41910
43067
|
anyOf: [
|
|
41911
43068
|
{
|
|
@@ -41915,6 +43072,14 @@ var schemaComponents = {
|
|
|
41915
43072
|
{
|
|
41916
43073
|
type: "string",
|
|
41917
43074
|
const: "channel"
|
|
43075
|
+
},
|
|
43076
|
+
{
|
|
43077
|
+
type: "string",
|
|
43078
|
+
const: "agent"
|
|
43079
|
+
},
|
|
43080
|
+
{
|
|
43081
|
+
type: "string",
|
|
43082
|
+
const: "campaign"
|
|
41918
43083
|
}
|
|
41919
43084
|
]
|
|
41920
43085
|
},
|
|
@@ -41927,7 +43092,40 @@ var schemaComponents = {
|
|
|
41927
43092
|
items: {
|
|
41928
43093
|
$ref: "#/components/schemas/AccountUsageFeature"
|
|
41929
43094
|
},
|
|
41930
|
-
maxItems:
|
|
43095
|
+
maxItems: 17
|
|
43096
|
+
},
|
|
43097
|
+
days: {
|
|
43098
|
+
type: "array",
|
|
43099
|
+
items: {
|
|
43100
|
+
type: "object",
|
|
43101
|
+
required: [
|
|
43102
|
+
"date",
|
|
43103
|
+
"credits",
|
|
43104
|
+
"units"
|
|
43105
|
+
],
|
|
43106
|
+
properties: {
|
|
43107
|
+
date: {
|
|
43108
|
+
type: "string",
|
|
43109
|
+
format: "date",
|
|
43110
|
+
description: "The day, in the summary's time zone."
|
|
43111
|
+
},
|
|
43112
|
+
credits: {
|
|
43113
|
+
type: "number",
|
|
43114
|
+
description: "Credits the wallet paid that day."
|
|
43115
|
+
},
|
|
43116
|
+
units: {
|
|
43117
|
+
type: "object",
|
|
43118
|
+
patternProperties: {
|
|
43119
|
+
"^.*$": {
|
|
43120
|
+
type: "number"
|
|
43121
|
+
}
|
|
43122
|
+
},
|
|
43123
|
+
description: "Each feature's units that day."
|
|
43124
|
+
}
|
|
43125
|
+
},
|
|
43126
|
+
additionalProperties: false
|
|
43127
|
+
},
|
|
43128
|
+
maxItems: 367
|
|
41931
43129
|
}
|
|
41932
43130
|
},
|
|
41933
43131
|
additionalProperties: false
|
|
@@ -41989,7 +43187,7 @@ var schemaComponents = {
|
|
|
41989
43187
|
type: "null"
|
|
41990
43188
|
}
|
|
41991
43189
|
],
|
|
41992
|
-
description: "
|
|
43190
|
+
description: "The payment processor's page to pay on, for `checkout`."
|
|
41993
43191
|
}
|
|
41994
43192
|
},
|
|
41995
43193
|
additionalProperties: false
|
|
@@ -42027,6 +43225,9 @@ var schemaComponents = {
|
|
|
42027
43225
|
required: [
|
|
42028
43226
|
"id",
|
|
42029
43227
|
"kind",
|
|
43228
|
+
"label",
|
|
43229
|
+
"grantKind",
|
|
43230
|
+
"funding",
|
|
42030
43231
|
"occurredAt",
|
|
42031
43232
|
"endsAt",
|
|
42032
43233
|
"count",
|
|
@@ -42048,6 +43249,14 @@ var schemaComponents = {
|
|
|
42048
43249
|
type: "string",
|
|
42049
43250
|
const: "top_up"
|
|
42050
43251
|
},
|
|
43252
|
+
{
|
|
43253
|
+
type: "string",
|
|
43254
|
+
const: "transfer"
|
|
43255
|
+
},
|
|
43256
|
+
{
|
|
43257
|
+
type: "string",
|
|
43258
|
+
const: "grant"
|
|
43259
|
+
},
|
|
42051
43260
|
{
|
|
42052
43261
|
type: "string",
|
|
42053
43262
|
const: "plan"
|
|
@@ -42061,7 +43270,66 @@ var schemaComponents = {
|
|
|
42061
43270
|
const: "adjustment"
|
|
42062
43271
|
}
|
|
42063
43272
|
],
|
|
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`:
|
|
43273
|
+
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."
|
|
43274
|
+
},
|
|
43275
|
+
label: {
|
|
43276
|
+
anyOf: [
|
|
43277
|
+
{
|
|
43278
|
+
type: "string"
|
|
43279
|
+
},
|
|
43280
|
+
{
|
|
43281
|
+
type: "null"
|
|
43282
|
+
}
|
|
43283
|
+
],
|
|
43284
|
+
description: 'The name Arbol gave a grant or a transfer ("Arbol promo", "Bank transfer").'
|
|
43285
|
+
},
|
|
43286
|
+
grantKind: {
|
|
43287
|
+
anyOf: [
|
|
43288
|
+
{
|
|
43289
|
+
anyOf: [
|
|
43290
|
+
{
|
|
43291
|
+
type: "string",
|
|
43292
|
+
const: "promo"
|
|
43293
|
+
},
|
|
43294
|
+
{
|
|
43295
|
+
type: "string",
|
|
43296
|
+
const: "subsidy"
|
|
43297
|
+
},
|
|
43298
|
+
{
|
|
43299
|
+
type: "string",
|
|
43300
|
+
const: "courtesy"
|
|
43301
|
+
},
|
|
43302
|
+
{
|
|
43303
|
+
type: "string",
|
|
43304
|
+
const: "correction"
|
|
43305
|
+
}
|
|
43306
|
+
]
|
|
43307
|
+
},
|
|
43308
|
+
{
|
|
43309
|
+
type: "null"
|
|
43310
|
+
}
|
|
43311
|
+
],
|
|
43312
|
+
description: "For a `grant`, what Arbol gave it as; its name when `label` is null."
|
|
43313
|
+
},
|
|
43314
|
+
funding: {
|
|
43315
|
+
anyOf: [
|
|
43316
|
+
{
|
|
43317
|
+
anyOf: [
|
|
43318
|
+
{
|
|
43319
|
+
type: "string",
|
|
43320
|
+
const: "paid"
|
|
43321
|
+
},
|
|
43322
|
+
{
|
|
43323
|
+
type: "string",
|
|
43324
|
+
const: "granted"
|
|
43325
|
+
}
|
|
43326
|
+
]
|
|
43327
|
+
},
|
|
43328
|
+
{
|
|
43329
|
+
type: "null"
|
|
43330
|
+
}
|
|
43331
|
+
],
|
|
43332
|
+
description: "`paid`: money came in; `granted`: Arbol gave the credits; null for spending and renewals."
|
|
42065
43333
|
},
|
|
42066
43334
|
occurredAt: {
|
|
42067
43335
|
type: "string",
|
|
@@ -42100,7 +43368,7 @@ var schemaComponents = {
|
|
|
42100
43368
|
type: "null"
|
|
42101
43369
|
}
|
|
42102
43370
|
],
|
|
42103
|
-
description: "Credits it added (positive) or took (negative); null when
|
|
43371
|
+
description: "Credits it added (positive) or took (negative); null when billing could not tell."
|
|
42104
43372
|
},
|
|
42105
43373
|
balanceAfter: {
|
|
42106
43374
|
anyOf: [
|
|
@@ -42115,7 +43383,7 @@ var schemaComponents = {
|
|
|
42115
43383
|
},
|
|
42116
43384
|
approximate: {
|
|
42117
43385
|
type: "boolean",
|
|
42118
|
-
description: "Its amounts are
|
|
43386
|
+
description: "Its amounts are an estimate, not an exact record."
|
|
42119
43387
|
}
|
|
42120
43388
|
},
|
|
42121
43389
|
additionalProperties: false
|
|
@@ -169894,10 +171162,6 @@ var schemaComponents = {
|
|
|
169894
171162
|
data: {
|
|
169895
171163
|
additionalProperties: false,
|
|
169896
171164
|
type: "object",
|
|
169897
|
-
required: [
|
|
169898
|
-
"documentNumber",
|
|
169899
|
-
"documentTypeId"
|
|
169900
|
-
],
|
|
169901
171165
|
properties: {
|
|
169902
171166
|
documentNumber: {
|
|
169903
171167
|
maxLength: 255,
|
|
@@ -197526,7 +198790,7 @@ var schemaComponents = {
|
|
|
197526
198790
|
},
|
|
197527
198791
|
readiness: {
|
|
197528
198792
|
$ref: "#/components/schemas/RaizCampaignReadiness",
|
|
197529
|
-
description: "Whether the campaign can start, checked against its Agent, line, template and
|
|
198793
|
+
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
198794
|
},
|
|
197531
198795
|
recipients: {
|
|
197532
198796
|
$ref: "#/components/schemas/RaizCampaignRecipientPage",
|
|
@@ -197589,7 +198853,7 @@ var schemaComponents = {
|
|
|
197589
198853
|
},
|
|
197590
198854
|
code: {
|
|
197591
198855
|
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`."
|
|
198856
|
+
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
198857
|
},
|
|
197594
198858
|
variable: {
|
|
197595
198859
|
type: "string",
|
|
@@ -197598,6 +198862,77 @@ var schemaComponents = {
|
|
|
197598
198862
|
},
|
|
197599
198863
|
additionalProperties: false
|
|
197600
198864
|
},
|
|
198865
|
+
RaizCampaignEstimate: {
|
|
198866
|
+
type: "object",
|
|
198867
|
+
required: [
|
|
198868
|
+
"callMinutes",
|
|
198869
|
+
"covered",
|
|
198870
|
+
"credits",
|
|
198871
|
+
"degraded",
|
|
198872
|
+
"enforced",
|
|
198873
|
+
"people"
|
|
198874
|
+
],
|
|
198875
|
+
properties: {
|
|
198876
|
+
callMinutes: {
|
|
198877
|
+
anyOf: [
|
|
198878
|
+
{
|
|
198879
|
+
type: "object",
|
|
198880
|
+
required: [
|
|
198881
|
+
"calls",
|
|
198882
|
+
"perCall"
|
|
198883
|
+
],
|
|
198884
|
+
properties: {
|
|
198885
|
+
calls: {
|
|
198886
|
+
type: "integer",
|
|
198887
|
+
description: "How many of those calls the figure comes from.",
|
|
198888
|
+
minimum: 0
|
|
198889
|
+
},
|
|
198890
|
+
perCall: {
|
|
198891
|
+
type: "number",
|
|
198892
|
+
description: "Minutes billed per call on average, a call nobody answered counting zero.",
|
|
198893
|
+
minimum: 0
|
|
198894
|
+
}
|
|
198895
|
+
},
|
|
198896
|
+
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.",
|
|
198897
|
+
additionalProperties: false
|
|
198898
|
+
},
|
|
198899
|
+
{
|
|
198900
|
+
type: "null"
|
|
198901
|
+
}
|
|
198902
|
+
]
|
|
198903
|
+
},
|
|
198904
|
+
covered: {
|
|
198905
|
+
type: "boolean",
|
|
198906
|
+
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`)."
|
|
198907
|
+
},
|
|
198908
|
+
credits: {
|
|
198909
|
+
anyOf: [
|
|
198910
|
+
{
|
|
198911
|
+
type: "number",
|
|
198912
|
+
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.",
|
|
198913
|
+
minimum: 0
|
|
198914
|
+
},
|
|
198915
|
+
{
|
|
198916
|
+
type: "null"
|
|
198917
|
+
}
|
|
198918
|
+
]
|
|
198919
|
+
},
|
|
198920
|
+
degraded: {
|
|
198921
|
+
type: "boolean",
|
|
198922
|
+
description: "Billing did not answer in time: `credits` may be null, and `covered` is assumed."
|
|
198923
|
+
},
|
|
198924
|
+
enforced: {
|
|
198925
|
+
type: "boolean",
|
|
198926
|
+
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."
|
|
198927
|
+
},
|
|
198928
|
+
people: {
|
|
198929
|
+
type: "integer",
|
|
198930
|
+
description: "The recipients still to be reached, each counted once.",
|
|
198931
|
+
minimum: 0
|
|
198932
|
+
}
|
|
198933
|
+
},
|
|
198934
|
+
additionalProperties: false
|
|
198935
|
+
},
|
|
197601
198936
|
RaizCampaignHeaderMissingFailure: {
|
|
197602
198937
|
type: "object",
|
|
197603
198938
|
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 +199215,7 @@ var schemaComponents = {
|
|
|
197880
199215
|
type: "object",
|
|
197881
199216
|
required: [
|
|
197882
199217
|
"blockers",
|
|
199218
|
+
"estimate",
|
|
197883
199219
|
"preview",
|
|
197884
199220
|
"ready"
|
|
197885
199221
|
],
|
|
@@ -197891,6 +199227,10 @@ var schemaComponents = {
|
|
|
197891
199227
|
},
|
|
197892
199228
|
description: "What has to be fixed first. Empty when it can start."
|
|
197893
199229
|
},
|
|
199230
|
+
estimate: {
|
|
199231
|
+
$ref: "#/components/schemas/RaizCampaignEstimate",
|
|
199232
|
+
description: "What reaching each pending recipient once would cost, checked against the organization's balance without reaching anyone."
|
|
199233
|
+
},
|
|
197894
199234
|
preview: {
|
|
197895
199235
|
anyOf: [
|
|
197896
199236
|
{
|
|
@@ -201106,6 +202446,7 @@ var schemaComponents = {
|
|
|
201106
202446
|
"waitingSinceAt",
|
|
201107
202447
|
"workers",
|
|
201108
202448
|
"toolCalls",
|
|
202449
|
+
"usage",
|
|
201109
202450
|
"analysisErrorCode",
|
|
201110
202451
|
"facts"
|
|
201111
202452
|
],
|
|
@@ -201765,6 +203106,10 @@ var schemaComponents = {
|
|
|
201765
203106
|
toolCalls: {
|
|
201766
203107
|
$ref: "#/components/schemas/RaizConversationToolCalls"
|
|
201767
203108
|
},
|
|
203109
|
+
usage: {
|
|
203110
|
+
$ref: "#/components/schemas/RaizConversationUsage",
|
|
203111
|
+
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."
|
|
203112
|
+
},
|
|
201768
203113
|
outcomeReview: {
|
|
201769
203114
|
anyOf: [
|
|
201770
203115
|
{
|
|
@@ -202631,6 +203976,105 @@ var schemaComponents = {
|
|
|
202631
203976
|
},
|
|
202632
203977
|
additionalProperties: false
|
|
202633
203978
|
},
|
|
203979
|
+
RaizConversationUsage: {
|
|
203980
|
+
type: "object",
|
|
203981
|
+
required: [
|
|
203982
|
+
"credits",
|
|
203983
|
+
"items",
|
|
203984
|
+
"pending"
|
|
203985
|
+
],
|
|
203986
|
+
properties: {
|
|
203987
|
+
credits: {
|
|
203988
|
+
anyOf: [
|
|
203989
|
+
{
|
|
203990
|
+
type: "number",
|
|
203991
|
+
description: "What the conversation used, in credits at the organization's rates when each part was reported; null while nothing has its value yet.",
|
|
203992
|
+
minimum: 0
|
|
203993
|
+
},
|
|
203994
|
+
{
|
|
203995
|
+
type: "null"
|
|
203996
|
+
}
|
|
203997
|
+
]
|
|
203998
|
+
},
|
|
203999
|
+
items: {
|
|
204000
|
+
type: "array",
|
|
204001
|
+
items: {
|
|
204002
|
+
$ref: "#/components/schemas/RaizConversationUsageItem"
|
|
204003
|
+
},
|
|
204004
|
+
maxItems: 8
|
|
204005
|
+
},
|
|
204006
|
+
pending: {
|
|
204007
|
+
type: "boolean",
|
|
204008
|
+
description: "Part of the usage is still waiting for its value in credits."
|
|
204009
|
+
}
|
|
204010
|
+
},
|
|
204011
|
+
additionalProperties: false
|
|
204012
|
+
},
|
|
204013
|
+
RaizConversationUsageItem: {
|
|
204014
|
+
type: "object",
|
|
204015
|
+
required: [
|
|
204016
|
+
"credits",
|
|
204017
|
+
"kind",
|
|
204018
|
+
"units"
|
|
204019
|
+
],
|
|
204020
|
+
properties: {
|
|
204021
|
+
credits: {
|
|
204022
|
+
anyOf: [
|
|
204023
|
+
{
|
|
204024
|
+
type: "number",
|
|
204025
|
+
description: "Credits of this kind; null while none of it has its value yet.",
|
|
204026
|
+
minimum: 0
|
|
204027
|
+
},
|
|
204028
|
+
{
|
|
204029
|
+
type: "null"
|
|
204030
|
+
}
|
|
204031
|
+
]
|
|
204032
|
+
},
|
|
204033
|
+
kind: {
|
|
204034
|
+
anyOf: [
|
|
204035
|
+
{
|
|
204036
|
+
type: "string",
|
|
204037
|
+
const: "voice"
|
|
204038
|
+
},
|
|
204039
|
+
{
|
|
204040
|
+
type: "string",
|
|
204041
|
+
const: "phone_line"
|
|
204042
|
+
},
|
|
204043
|
+
{
|
|
204044
|
+
type: "string",
|
|
204045
|
+
const: "phone_numbers"
|
|
204046
|
+
},
|
|
204047
|
+
{
|
|
204048
|
+
type: "string",
|
|
204049
|
+
const: "messages"
|
|
204050
|
+
},
|
|
204051
|
+
{
|
|
204052
|
+
type: "string",
|
|
204053
|
+
const: "templates"
|
|
204054
|
+
},
|
|
204055
|
+
{
|
|
204056
|
+
type: "string",
|
|
204057
|
+
const: "conversations"
|
|
204058
|
+
},
|
|
204059
|
+
{
|
|
204060
|
+
type: "string",
|
|
204061
|
+
const: "tools"
|
|
204062
|
+
},
|
|
204063
|
+
{
|
|
204064
|
+
type: "string",
|
|
204065
|
+
const: "ai"
|
|
204066
|
+
}
|
|
204067
|
+
],
|
|
204068
|
+
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."
|
|
204069
|
+
},
|
|
204070
|
+
units: {
|
|
204071
|
+
type: "number",
|
|
204072
|
+
description: "How much of it: minutes, messages, templates, conversations, tool runs or model calls.",
|
|
204073
|
+
minimum: 0
|
|
204074
|
+
}
|
|
204075
|
+
},
|
|
204076
|
+
additionalProperties: false
|
|
204077
|
+
},
|
|
202634
204078
|
RaizConversationView: {
|
|
202635
204079
|
type: "object",
|
|
202636
204080
|
required: [
|
|
@@ -209310,6 +210754,68 @@ var schemaComponents = {
|
|
|
209310
210754
|
}
|
|
209311
210755
|
}
|
|
209312
210756
|
},
|
|
210757
|
+
RaizCreditsExhaustedError: {
|
|
210758
|
+
type: "object",
|
|
210759
|
+
description: "A failed answer.",
|
|
210760
|
+
additionalProperties: false,
|
|
210761
|
+
required: [
|
|
210762
|
+
"success",
|
|
210763
|
+
"data",
|
|
210764
|
+
"error",
|
|
210765
|
+
"metadata"
|
|
210766
|
+
],
|
|
210767
|
+
properties: {
|
|
210768
|
+
success: {
|
|
210769
|
+
type: "boolean",
|
|
210770
|
+
enum: [
|
|
210771
|
+
false
|
|
210772
|
+
]
|
|
210773
|
+
},
|
|
210774
|
+
data: {
|
|
210775
|
+
const: null
|
|
210776
|
+
},
|
|
210777
|
+
error: {
|
|
210778
|
+
$ref: "#/components/schemas/RaizCreditsExhaustedFailure"
|
|
210779
|
+
},
|
|
210780
|
+
metadata: {
|
|
210781
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
210782
|
+
}
|
|
210783
|
+
}
|
|
210784
|
+
},
|
|
210785
|
+
RaizCreditsExhaustedFailure: {
|
|
210786
|
+
type: "object",
|
|
210787
|
+
description: "The organization's credits do not cover this, so nothing was started. Try again once the organization adds credits.",
|
|
210788
|
+
additionalProperties: false,
|
|
210789
|
+
required: [
|
|
210790
|
+
"code",
|
|
210791
|
+
"message",
|
|
210792
|
+
"retryable",
|
|
210793
|
+
"data"
|
|
210794
|
+
],
|
|
210795
|
+
properties: {
|
|
210796
|
+
code: {
|
|
210797
|
+
type: "string",
|
|
210798
|
+
enum: [
|
|
210799
|
+
"CREDITS_EXHAUSTED"
|
|
210800
|
+
],
|
|
210801
|
+
description: "The failure code, stable across releases."
|
|
210802
|
+
},
|
|
210803
|
+
message: {
|
|
210804
|
+
type: "string",
|
|
210805
|
+
description: "What went wrong, for people; it never contains input values."
|
|
210806
|
+
},
|
|
210807
|
+
retryable: {
|
|
210808
|
+
type: "boolean",
|
|
210809
|
+
enum: [
|
|
210810
|
+
false
|
|
210811
|
+
],
|
|
210812
|
+
description: "Whether repeating the same request may succeed."
|
|
210813
|
+
},
|
|
210814
|
+
data: {
|
|
210815
|
+
$ref: "#/components/schemas/Empty"
|
|
210816
|
+
}
|
|
210817
|
+
}
|
|
210818
|
+
},
|
|
209313
210819
|
RaizDailyReportInProgressError: {
|
|
209314
210820
|
type: "object",
|
|
209315
210821
|
description: "A failed answer.",
|
|
@@ -217255,6 +218761,10 @@ var schemaComponents = {
|
|
|
217255
218761
|
type: "string",
|
|
217256
218762
|
const: "channel-restored"
|
|
217257
218763
|
},
|
|
218764
|
+
{
|
|
218765
|
+
type: "string",
|
|
218766
|
+
const: "credits-exhausted"
|
|
218767
|
+
},
|
|
217258
218768
|
{
|
|
217259
218769
|
type: "string",
|
|
217260
218770
|
const: "import-finished"
|
|
@@ -217295,7 +218805,7 @@ var schemaComponents = {
|
|
|
217295
218805
|
},
|
|
217296
218806
|
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
218807
|
uniqueItems: true,
|
|
217298
|
-
maxItems:
|
|
218808
|
+
maxItems: 19
|
|
217299
218809
|
},
|
|
217300
218810
|
recipients: {
|
|
217301
218811
|
type: "array",
|
|
@@ -219787,6 +221297,234 @@ var schemaComponents = {
|
|
|
219787
221297
|
}
|
|
219788
221298
|
},
|
|
219789
221299
|
additionalProperties: false
|
|
221300
|
+
},
|
|
221301
|
+
{
|
|
221302
|
+
type: "object",
|
|
221303
|
+
required: [
|
|
221304
|
+
"from",
|
|
221305
|
+
"hasMore",
|
|
221306
|
+
"to",
|
|
221307
|
+
"name",
|
|
221308
|
+
"rows"
|
|
221309
|
+
],
|
|
221310
|
+
properties: {
|
|
221311
|
+
from: {
|
|
221312
|
+
type: "string",
|
|
221313
|
+
description: "A calendar day in the organization's time zone.",
|
|
221314
|
+
format: "date"
|
|
221315
|
+
},
|
|
221316
|
+
hasMore: {
|
|
221317
|
+
type: "boolean",
|
|
221318
|
+
description: "More than 1000 rows matched: narrow the range or the filters."
|
|
221319
|
+
},
|
|
221320
|
+
to: {
|
|
221321
|
+
type: "string",
|
|
221322
|
+
description: "A calendar day in the organization's time zone.",
|
|
221323
|
+
format: "date"
|
|
221324
|
+
},
|
|
221325
|
+
name: {
|
|
221326
|
+
type: "string",
|
|
221327
|
+
const: "usage_daily"
|
|
221328
|
+
},
|
|
221329
|
+
rows: {
|
|
221330
|
+
type: "array",
|
|
221331
|
+
items: {
|
|
221332
|
+
type: "object",
|
|
221333
|
+
required: [
|
|
221334
|
+
"agentId",
|
|
221335
|
+
"agentName",
|
|
221336
|
+
"cacheReadTokens",
|
|
221337
|
+
"cacheWriteTokens",
|
|
221338
|
+
"campaignId",
|
|
221339
|
+
"channelType",
|
|
221340
|
+
"credits",
|
|
221341
|
+
"day",
|
|
221342
|
+
"inputTokens",
|
|
221343
|
+
"kind",
|
|
221344
|
+
"model",
|
|
221345
|
+
"outputTokens",
|
|
221346
|
+
"pendingCount",
|
|
221347
|
+
"units"
|
|
221348
|
+
],
|
|
221349
|
+
properties: {
|
|
221350
|
+
agentId: {
|
|
221351
|
+
anyOf: [
|
|
221352
|
+
{
|
|
221353
|
+
type: "string",
|
|
221354
|
+
description: "Agent id.",
|
|
221355
|
+
examples: [
|
|
221356
|
+
"agt_01m45h8q2rf3t9w6y7z0b1c2d3"
|
|
221357
|
+
],
|
|
221358
|
+
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}))$"
|
|
221359
|
+
},
|
|
221360
|
+
{
|
|
221361
|
+
type: "null"
|
|
221362
|
+
}
|
|
221363
|
+
]
|
|
221364
|
+
},
|
|
221365
|
+
agentName: {
|
|
221366
|
+
anyOf: [
|
|
221367
|
+
{
|
|
221368
|
+
type: "string"
|
|
221369
|
+
},
|
|
221370
|
+
{
|
|
221371
|
+
type: "null"
|
|
221372
|
+
}
|
|
221373
|
+
]
|
|
221374
|
+
},
|
|
221375
|
+
cacheReadTokens: {
|
|
221376
|
+
type: "integer",
|
|
221377
|
+
minimum: 0
|
|
221378
|
+
},
|
|
221379
|
+
cacheWriteTokens: {
|
|
221380
|
+
type: "integer",
|
|
221381
|
+
minimum: 0
|
|
221382
|
+
},
|
|
221383
|
+
campaignId: {
|
|
221384
|
+
anyOf: [
|
|
221385
|
+
{
|
|
221386
|
+
type: "string",
|
|
221387
|
+
description: "Campaign id.",
|
|
221388
|
+
examples: [
|
|
221389
|
+
"cmp_01m45h8q2rf3t9w6y7z0b1c2d3"
|
|
221390
|
+
],
|
|
221391
|
+
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}))$"
|
|
221392
|
+
},
|
|
221393
|
+
{
|
|
221394
|
+
type: "null"
|
|
221395
|
+
}
|
|
221396
|
+
]
|
|
221397
|
+
},
|
|
221398
|
+
channelType: {
|
|
221399
|
+
anyOf: [
|
|
221400
|
+
{
|
|
221401
|
+
anyOf: [
|
|
221402
|
+
{
|
|
221403
|
+
type: "string",
|
|
221404
|
+
const: "voice"
|
|
221405
|
+
},
|
|
221406
|
+
{
|
|
221407
|
+
type: "string",
|
|
221408
|
+
const: "whatsapp"
|
|
221409
|
+
},
|
|
221410
|
+
{
|
|
221411
|
+
type: "string",
|
|
221412
|
+
const: "web"
|
|
221413
|
+
}
|
|
221414
|
+
]
|
|
221415
|
+
},
|
|
221416
|
+
{
|
|
221417
|
+
type: "null"
|
|
221418
|
+
}
|
|
221419
|
+
]
|
|
221420
|
+
},
|
|
221421
|
+
credits: {
|
|
221422
|
+
anyOf: [
|
|
221423
|
+
{
|
|
221424
|
+
type: "number",
|
|
221425
|
+
description: "Credits at the organization's rates when each part was reported; null while none has its value yet.",
|
|
221426
|
+
minimum: 0
|
|
221427
|
+
},
|
|
221428
|
+
{
|
|
221429
|
+
type: "null"
|
|
221430
|
+
}
|
|
221431
|
+
]
|
|
221432
|
+
},
|
|
221433
|
+
day: {
|
|
221434
|
+
type: "string",
|
|
221435
|
+
description: "A calendar day in the organization's time zone.",
|
|
221436
|
+
format: "date"
|
|
221437
|
+
},
|
|
221438
|
+
inputTokens: {
|
|
221439
|
+
type: "integer",
|
|
221440
|
+
minimum: 0
|
|
221441
|
+
},
|
|
221442
|
+
kind: {
|
|
221443
|
+
anyOf: [
|
|
221444
|
+
{
|
|
221445
|
+
type: "string",
|
|
221446
|
+
const: "voice"
|
|
221447
|
+
},
|
|
221448
|
+
{
|
|
221449
|
+
type: "string",
|
|
221450
|
+
const: "phone_line"
|
|
221451
|
+
},
|
|
221452
|
+
{
|
|
221453
|
+
type: "string",
|
|
221454
|
+
const: "phone_numbers"
|
|
221455
|
+
},
|
|
221456
|
+
{
|
|
221457
|
+
type: "string",
|
|
221458
|
+
const: "messages"
|
|
221459
|
+
},
|
|
221460
|
+
{
|
|
221461
|
+
type: "string",
|
|
221462
|
+
const: "templates"
|
|
221463
|
+
},
|
|
221464
|
+
{
|
|
221465
|
+
type: "string",
|
|
221466
|
+
const: "conversations"
|
|
221467
|
+
},
|
|
221468
|
+
{
|
|
221469
|
+
type: "string",
|
|
221470
|
+
const: "tools"
|
|
221471
|
+
},
|
|
221472
|
+
{
|
|
221473
|
+
type: "string",
|
|
221474
|
+
const: "ai"
|
|
221475
|
+
}
|
|
221476
|
+
],
|
|
221477
|
+
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."
|
|
221478
|
+
},
|
|
221479
|
+
model: {
|
|
221480
|
+
anyOf: [
|
|
221481
|
+
{
|
|
221482
|
+
anyOf: [
|
|
221483
|
+
{
|
|
221484
|
+
type: "string",
|
|
221485
|
+
const: "arbolito/agile"
|
|
221486
|
+
},
|
|
221487
|
+
{
|
|
221488
|
+
type: "string",
|
|
221489
|
+
const: "arbolito/balanced"
|
|
221490
|
+
},
|
|
221491
|
+
{
|
|
221492
|
+
type: "string",
|
|
221493
|
+
const: "arbolito/advanced"
|
|
221494
|
+
},
|
|
221495
|
+
{
|
|
221496
|
+
type: "string",
|
|
221497
|
+
const: "arbolito/top"
|
|
221498
|
+
}
|
|
221499
|
+
],
|
|
221500
|
+
description: "For `ai`: the tier of the model that answered. Null for every other kind."
|
|
221501
|
+
},
|
|
221502
|
+
{
|
|
221503
|
+
type: "null"
|
|
221504
|
+
}
|
|
221505
|
+
]
|
|
221506
|
+
},
|
|
221507
|
+
outputTokens: {
|
|
221508
|
+
type: "integer",
|
|
221509
|
+
minimum: 0
|
|
221510
|
+
},
|
|
221511
|
+
pendingCount: {
|
|
221512
|
+
type: "integer",
|
|
221513
|
+
description: "Parts still waiting for their value in credits.",
|
|
221514
|
+
minimum: 0
|
|
221515
|
+
},
|
|
221516
|
+
units: {
|
|
221517
|
+
type: "number",
|
|
221518
|
+
description: "Minutes, messages, templates, conversations, numbers, tool runs or model calls.",
|
|
221519
|
+
minimum: 0
|
|
221520
|
+
}
|
|
221521
|
+
},
|
|
221522
|
+
additionalProperties: false
|
|
221523
|
+
},
|
|
221524
|
+
maxItems: 1000
|
|
221525
|
+
}
|
|
221526
|
+
},
|
|
221527
|
+
additionalProperties: false
|
|
219790
221528
|
}
|
|
219791
221529
|
]
|
|
219792
221530
|
},
|
|
@@ -225486,6 +227224,10 @@ var schemaComponents = {
|
|
|
225486
227224
|
type: "string",
|
|
225487
227225
|
const: "channel-restored"
|
|
225488
227226
|
},
|
|
227227
|
+
{
|
|
227228
|
+
type: "string",
|
|
227229
|
+
const: "credits-exhausted"
|
|
227230
|
+
},
|
|
225489
227231
|
{
|
|
225490
227232
|
type: "string",
|
|
225491
227233
|
const: "import-finished"
|
|
@@ -225526,7 +227268,7 @@ var schemaComponents = {
|
|
|
225526
227268
|
},
|
|
225527
227269
|
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
227270
|
uniqueItems: true,
|
|
225529
|
-
maxItems:
|
|
227271
|
+
maxItems: 19
|
|
225530
227272
|
},
|
|
225531
227273
|
{
|
|
225532
227274
|
type: "null"
|
|
@@ -232827,6 +234569,9 @@ var schemaComponents = {
|
|
|
232827
234569
|
{
|
|
232828
234570
|
$ref: "#/components/schemas/SanitasProviderUnavailableFailure"
|
|
232829
234571
|
},
|
|
234572
|
+
{
|
|
234573
|
+
$ref: "#/components/schemas/SanitasProviderAccessDeniedFailure"
|
|
234574
|
+
},
|
|
232830
234575
|
{
|
|
232831
234576
|
$ref: "#/components/schemas/SanitasProviderChallengeRequiredFailure"
|
|
232832
234577
|
}
|
|
@@ -232836,6 +234581,7 @@ var schemaComponents = {
|
|
|
232836
234581
|
mapping: {
|
|
232837
234582
|
UPSTREAM_UNAVAILABLE: "#/components/schemas/UpstreamUnavailableFailure",
|
|
232838
234583
|
PROVIDER_UNAVAILABLE: "#/components/schemas/SanitasProviderUnavailableFailure",
|
|
234584
|
+
PROVIDER_ACCESS_DENIED: "#/components/schemas/SanitasProviderAccessDeniedFailure",
|
|
232839
234585
|
PROVIDER_CHALLENGE_REQUIRED: "#/components/schemas/SanitasProviderChallengeRequiredFailure"
|
|
232840
234586
|
}
|
|
232841
234587
|
}
|
|
@@ -233195,6 +234941,9 @@ var schemaComponents = {
|
|
|
233195
234941
|
{
|
|
233196
234942
|
$ref: "#/components/schemas/SanitasProviderUnavailableFailure"
|
|
233197
234943
|
},
|
|
234944
|
+
{
|
|
234945
|
+
$ref: "#/components/schemas/SanitasProviderAccessDeniedFailure"
|
|
234946
|
+
},
|
|
233198
234947
|
{
|
|
233199
234948
|
$ref: "#/components/schemas/SanitasProviderChallengeRequiredFailure"
|
|
233200
234949
|
}
|
|
@@ -233204,6 +234953,7 @@ var schemaComponents = {
|
|
|
233204
234953
|
mapping: {
|
|
233205
234954
|
UPSTREAM_UNAVAILABLE: "#/components/schemas/UpstreamUnavailableFailure",
|
|
233206
234955
|
PROVIDER_UNAVAILABLE: "#/components/schemas/SanitasProviderUnavailableFailure",
|
|
234956
|
+
PROVIDER_ACCESS_DENIED: "#/components/schemas/SanitasProviderAccessDeniedFailure",
|
|
233207
234957
|
PROVIDER_CHALLENGE_REQUIRED: "#/components/schemas/SanitasProviderChallengeRequiredFailure"
|
|
233208
234958
|
}
|
|
233209
234959
|
}
|
|
@@ -233287,6 +235037,40 @@ var schemaComponents = {
|
|
|
233287
235037
|
}
|
|
233288
235038
|
}
|
|
233289
235039
|
},
|
|
235040
|
+
SanitasProviderAccessDeniedFailure: {
|
|
235041
|
+
type: "object",
|
|
235042
|
+
description: "Sanitas denied the validator request. Coverage is unknown.",
|
|
235043
|
+
additionalProperties: false,
|
|
235044
|
+
required: [
|
|
235045
|
+
"code",
|
|
235046
|
+
"message",
|
|
235047
|
+
"retryable",
|
|
235048
|
+
"data"
|
|
235049
|
+
],
|
|
235050
|
+
properties: {
|
|
235051
|
+
code: {
|
|
235052
|
+
type: "string",
|
|
235053
|
+
enum: [
|
|
235054
|
+
"PROVIDER_ACCESS_DENIED"
|
|
235055
|
+
],
|
|
235056
|
+
description: "The failure code, stable across releases."
|
|
235057
|
+
},
|
|
235058
|
+
message: {
|
|
235059
|
+
type: "string",
|
|
235060
|
+
description: "What went wrong, for people; it never contains input values."
|
|
235061
|
+
},
|
|
235062
|
+
retryable: {
|
|
235063
|
+
type: "boolean",
|
|
235064
|
+
enum: [
|
|
235065
|
+
false
|
|
235066
|
+
],
|
|
235067
|
+
description: "Whether repeating the same request may succeed."
|
|
235068
|
+
},
|
|
235069
|
+
data: {
|
|
235070
|
+
$ref: "#/components/schemas/Empty"
|
|
235071
|
+
}
|
|
235072
|
+
}
|
|
235073
|
+
},
|
|
233290
235074
|
SanitasProviderChallengeRequiredFailure: {
|
|
233291
235075
|
type: "object",
|
|
233292
235076
|
description: "The provider requires an interactive challenge. Coverage is unknown.",
|
|
@@ -245721,249 +247505,392 @@ var schemaComponents = {
|
|
|
245721
247505
|
},
|
|
245722
247506
|
additionalProperties: false
|
|
245723
247507
|
},
|
|
245724
|
-
AccountApiKeysCreateInput: {
|
|
247508
|
+
AccountApiKeysCreateInput: {
|
|
247509
|
+
type: "object",
|
|
247510
|
+
required: [
|
|
247511
|
+
"name",
|
|
247512
|
+
"scopes"
|
|
247513
|
+
],
|
|
247514
|
+
properties: {
|
|
247515
|
+
name: {
|
|
247516
|
+
type: "string",
|
|
247517
|
+
minLength: 1,
|
|
247518
|
+
maxLength: 60,
|
|
247519
|
+
description: 'What uses it, such as "Billing backend".'
|
|
247520
|
+
},
|
|
247521
|
+
scopes: {
|
|
247522
|
+
type: "array",
|
|
247523
|
+
items: {
|
|
247524
|
+
type: "string",
|
|
247525
|
+
minLength: 1,
|
|
247526
|
+
maxLength: 280,
|
|
247527
|
+
pattern: "^[a-z][a-z0-9-]*(?::[a-z][a-z0-9-]*){2,}$"
|
|
247528
|
+
},
|
|
247529
|
+
minItems: 1,
|
|
247530
|
+
maxItems: 100,
|
|
247531
|
+
uniqueItems: true
|
|
247532
|
+
},
|
|
247533
|
+
expiresAt: {
|
|
247534
|
+
type: "string",
|
|
247535
|
+
format: "date-time",
|
|
247536
|
+
description: "Exclusive expiration instant, with timezone. Defaults to seven days from creation."
|
|
247537
|
+
},
|
|
247538
|
+
restrictions: {
|
|
247539
|
+
type: "object",
|
|
247540
|
+
patternProperties: {
|
|
247541
|
+
"^[a-z][a-z0-9-]{1,63}$": {
|
|
247542
|
+
type: "object",
|
|
247543
|
+
required: [
|
|
247544
|
+
"operations",
|
|
247545
|
+
"connections"
|
|
247546
|
+
],
|
|
247547
|
+
properties: {
|
|
247548
|
+
operations: {
|
|
247549
|
+
anyOf: [
|
|
247550
|
+
{
|
|
247551
|
+
type: "array",
|
|
247552
|
+
items: {
|
|
247553
|
+
type: "string",
|
|
247554
|
+
minLength: 5,
|
|
247555
|
+
maxLength: 200,
|
|
247556
|
+
pattern: "^[a-z][a-z0-9-]*(?:\\.[a-zA-Z][a-zA-Z0-9-]*){2,}$"
|
|
247557
|
+
},
|
|
247558
|
+
minItems: 1,
|
|
247559
|
+
maxItems: 200,
|
|
247560
|
+
uniqueItems: true
|
|
247561
|
+
},
|
|
247562
|
+
{
|
|
247563
|
+
type: "null"
|
|
247564
|
+
}
|
|
247565
|
+
],
|
|
247566
|
+
description: "The tools the key may call in this integration; null: every one its scopes admit."
|
|
247567
|
+
},
|
|
247568
|
+
connections: {
|
|
247569
|
+
anyOf: [
|
|
247570
|
+
{
|
|
247571
|
+
type: "array",
|
|
247572
|
+
items: {
|
|
247573
|
+
type: "string",
|
|
247574
|
+
pattern: "^con_[0-7][0-9a-hjkmnp-tv-z]{25}$"
|
|
247575
|
+
},
|
|
247576
|
+
minItems: 1,
|
|
247577
|
+
maxItems: 50,
|
|
247578
|
+
uniqueItems: true
|
|
247579
|
+
},
|
|
247580
|
+
{
|
|
247581
|
+
type: "null"
|
|
247582
|
+
}
|
|
247583
|
+
],
|
|
247584
|
+
description: "The organization's connections of this integration the key may use; null: all of them."
|
|
247585
|
+
}
|
|
247586
|
+
},
|
|
247587
|
+
additionalProperties: false
|
|
247588
|
+
}
|
|
247589
|
+
},
|
|
247590
|
+
additionalProperties: false,
|
|
247591
|
+
maxProperties: 20,
|
|
247592
|
+
description: "Per integration (sura, visoft, agenda): what the key may use there. An integration left out is decided by the key's scopes alone."
|
|
247593
|
+
}
|
|
247594
|
+
},
|
|
247595
|
+
additionalProperties: false
|
|
247596
|
+
},
|
|
247597
|
+
AccountApiKeysDeleteInput: {
|
|
247598
|
+
type: "object",
|
|
247599
|
+
required: [
|
|
247600
|
+
"apiKeyId"
|
|
247601
|
+
],
|
|
247602
|
+
properties: {
|
|
247603
|
+
apiKeyId: {
|
|
247604
|
+
type: "string",
|
|
247605
|
+
minLength: 1,
|
|
247606
|
+
maxLength: 256,
|
|
247607
|
+
description: "The API key's id, as apiKeys.list answers it."
|
|
247608
|
+
}
|
|
247609
|
+
},
|
|
247610
|
+
additionalProperties: false
|
|
247611
|
+
},
|
|
247612
|
+
AccountApiKeysRotateInput: {
|
|
247613
|
+
type: "object",
|
|
247614
|
+
required: [
|
|
247615
|
+
"apiKeyId"
|
|
247616
|
+
],
|
|
247617
|
+
properties: {
|
|
247618
|
+
apiKeyId: {
|
|
247619
|
+
type: "string",
|
|
247620
|
+
minLength: 1,
|
|
247621
|
+
maxLength: 256,
|
|
247622
|
+
description: "The API key's id, as apiKeys.list answers it."
|
|
247623
|
+
}
|
|
247624
|
+
},
|
|
247625
|
+
additionalProperties: false
|
|
247626
|
+
},
|
|
247627
|
+
AccountBillingGetInput: {
|
|
247628
|
+
type: "object",
|
|
247629
|
+
properties: {},
|
|
247630
|
+
additionalProperties: false
|
|
247631
|
+
},
|
|
247632
|
+
AccountBillingUpdateInput: {
|
|
247633
|
+
type: "object",
|
|
247634
|
+
properties: {
|
|
247635
|
+
autoTopUp: {
|
|
247636
|
+
type: "object",
|
|
247637
|
+
required: [
|
|
247638
|
+
"enabled",
|
|
247639
|
+
"threshold",
|
|
247640
|
+
"credits",
|
|
247641
|
+
"perMonth"
|
|
247642
|
+
],
|
|
247643
|
+
properties: {
|
|
247644
|
+
enabled: {
|
|
247645
|
+
type: "boolean"
|
|
247646
|
+
},
|
|
247647
|
+
threshold: {
|
|
247648
|
+
type: "number",
|
|
247649
|
+
minimum: 0,
|
|
247650
|
+
maximum: 1e5,
|
|
247651
|
+
description: "When the balance falls below this…"
|
|
247652
|
+
},
|
|
247653
|
+
credits: {
|
|
247654
|
+
type: "integer",
|
|
247655
|
+
minimum: 10,
|
|
247656
|
+
maximum: 1e4,
|
|
247657
|
+
description: "…buy this many credits with the saved card…"
|
|
247658
|
+
},
|
|
247659
|
+
perMonth: {
|
|
247660
|
+
type: "integer",
|
|
247661
|
+
minimum: 1,
|
|
247662
|
+
maximum: 31,
|
|
247663
|
+
description: "…at most this many times a month."
|
|
247664
|
+
}
|
|
247665
|
+
},
|
|
247666
|
+
additionalProperties: false
|
|
247667
|
+
},
|
|
247668
|
+
lowBalanceAlert: {
|
|
247669
|
+
anyOf: [
|
|
247670
|
+
{
|
|
247671
|
+
type: "number",
|
|
247672
|
+
minimum: 0,
|
|
247673
|
+
maximum: 1e5
|
|
247674
|
+
},
|
|
247675
|
+
{
|
|
247676
|
+
type: "null"
|
|
247677
|
+
}
|
|
247678
|
+
],
|
|
247679
|
+
description: "The balance at which administrators are emailed; null turns it off."
|
|
247680
|
+
}
|
|
247681
|
+
},
|
|
247682
|
+
additionalProperties: false
|
|
247683
|
+
},
|
|
247684
|
+
AccountBillingPortalSessionsCreateInput: {
|
|
247685
|
+
type: "object",
|
|
247686
|
+
properties: {},
|
|
247687
|
+
additionalProperties: false
|
|
247688
|
+
},
|
|
247689
|
+
AccountColombianRecordsLookupInput: {
|
|
247690
|
+
type: "object",
|
|
247691
|
+
required: [
|
|
247692
|
+
"integration"
|
|
247693
|
+
],
|
|
247694
|
+
properties: {
|
|
247695
|
+
integration: {
|
|
247696
|
+
anyOf: [
|
|
247697
|
+
{
|
|
247698
|
+
type: "string",
|
|
247699
|
+
const: "adres"
|
|
247700
|
+
},
|
|
247701
|
+
{
|
|
247702
|
+
type: "string",
|
|
247703
|
+
const: "sisben"
|
|
247704
|
+
},
|
|
247705
|
+
{
|
|
247706
|
+
type: "string",
|
|
247707
|
+
const: "policia-colombia"
|
|
247708
|
+
}
|
|
247709
|
+
]
|
|
247710
|
+
},
|
|
247711
|
+
documentType: {
|
|
247712
|
+
type: "string",
|
|
247713
|
+
pattern: "^[A-Z]{2}$",
|
|
247714
|
+
description: "Required for ADRES and Sisbén."
|
|
247715
|
+
},
|
|
247716
|
+
documentNumber: {
|
|
247717
|
+
type: "string",
|
|
247718
|
+
pattern: "^(?:[0-9]{1,14}|[A-Z0-9]{8,10})$",
|
|
247719
|
+
description: "Required for ADRES and Sisbén. Preserve leading zeros."
|
|
247720
|
+
},
|
|
247721
|
+
agentMode: {
|
|
247722
|
+
type: "boolean",
|
|
247723
|
+
default: false,
|
|
247724
|
+
description: "Return a concise Spanish tool answer. Authorization is the same in both formats."
|
|
247725
|
+
}
|
|
247726
|
+
},
|
|
247727
|
+
additionalProperties: false,
|
|
247728
|
+
anyOf: [
|
|
247729
|
+
{
|
|
247730
|
+
properties: {
|
|
247731
|
+
integration: {
|
|
247732
|
+
const: "policia-colombia"
|
|
247733
|
+
}
|
|
247734
|
+
}
|
|
247735
|
+
},
|
|
247736
|
+
{
|
|
247737
|
+
required: [
|
|
247738
|
+
"documentType",
|
|
247739
|
+
"documentNumber"
|
|
247740
|
+
]
|
|
247741
|
+
}
|
|
247742
|
+
]
|
|
247743
|
+
},
|
|
247744
|
+
AccountConnectionsListInput: {
|
|
247745
|
+
type: "object",
|
|
247746
|
+
required: [],
|
|
247747
|
+
properties: {
|
|
247748
|
+
cursor: {
|
|
247749
|
+
type: "string",
|
|
247750
|
+
description: "Opaque cursor returned by pageInfo; omit it to request the first page."
|
|
247751
|
+
},
|
|
247752
|
+
direction: {
|
|
247753
|
+
anyOf: [
|
|
247754
|
+
{
|
|
247755
|
+
type: "string",
|
|
247756
|
+
const: "forward"
|
|
247757
|
+
},
|
|
247758
|
+
{
|
|
247759
|
+
type: "string",
|
|
247760
|
+
const: "backward"
|
|
247761
|
+
}
|
|
247762
|
+
],
|
|
247763
|
+
description: "Direction to traverse the stable keyset ordering from the supplied cursor.",
|
|
247764
|
+
default: "forward"
|
|
247765
|
+
},
|
|
247766
|
+
limit: {
|
|
247767
|
+
type: "integer",
|
|
247768
|
+
minimum: 1,
|
|
247769
|
+
maximum: 100,
|
|
247770
|
+
description: "Maximum items returned in one page. Defaults to 25; larger reads require another cursor.",
|
|
247771
|
+
default: 25
|
|
247772
|
+
},
|
|
247773
|
+
tag: {
|
|
247774
|
+
anyOf: [
|
|
247775
|
+
{
|
|
247776
|
+
type: "string",
|
|
247777
|
+
const: "postconsulta"
|
|
247778
|
+
},
|
|
247779
|
+
{
|
|
247780
|
+
type: "string",
|
|
247781
|
+
const: "facturacion"
|
|
247782
|
+
}
|
|
247783
|
+
]
|
|
247784
|
+
}
|
|
247785
|
+
},
|
|
247786
|
+
additionalProperties: false
|
|
247787
|
+
},
|
|
247788
|
+
AccountConnectionsRefreshInput: {
|
|
247789
|
+
type: "object",
|
|
247790
|
+
required: [
|
|
247791
|
+
"connectionId"
|
|
247792
|
+
],
|
|
247793
|
+
properties: {
|
|
247794
|
+
connectionId: {
|
|
247795
|
+
type: "string",
|
|
247796
|
+
pattern: "^con_[0-7][0-9a-hjkmnp-tv-z]{25}$",
|
|
247797
|
+
description: "A connection's id: con_ and 26 characters, stable and unique across the platform."
|
|
247798
|
+
}
|
|
247799
|
+
},
|
|
247800
|
+
additionalProperties: false
|
|
247801
|
+
},
|
|
247802
|
+
AccountInvitationsListInput: {
|
|
247803
|
+
type: "object",
|
|
247804
|
+
required: [],
|
|
247805
|
+
properties: {
|
|
247806
|
+
cursor: {
|
|
247807
|
+
type: "string",
|
|
247808
|
+
description: "Opaque cursor returned by pageInfo; omit it to request the first page."
|
|
247809
|
+
},
|
|
247810
|
+
direction: {
|
|
247811
|
+
anyOf: [
|
|
247812
|
+
{
|
|
247813
|
+
type: "string",
|
|
247814
|
+
const: "forward"
|
|
247815
|
+
},
|
|
247816
|
+
{
|
|
247817
|
+
type: "string",
|
|
247818
|
+
const: "backward"
|
|
247819
|
+
}
|
|
247820
|
+
],
|
|
247821
|
+
description: "Direction to traverse the stable keyset ordering from the supplied cursor.",
|
|
247822
|
+
default: "forward"
|
|
247823
|
+
},
|
|
247824
|
+
limit: {
|
|
247825
|
+
type: "integer",
|
|
247826
|
+
minimum: 1,
|
|
247827
|
+
maximum: 100,
|
|
247828
|
+
description: "Maximum items returned in one page. Defaults to 25; larger reads require another cursor.",
|
|
247829
|
+
default: 25
|
|
247830
|
+
}
|
|
247831
|
+
},
|
|
247832
|
+
additionalProperties: false
|
|
247833
|
+
},
|
|
247834
|
+
AccountInvitationsCreateInput: {
|
|
245725
247835
|
type: "object",
|
|
245726
247836
|
required: [
|
|
245727
|
-
"
|
|
245728
|
-
"
|
|
247837
|
+
"email",
|
|
247838
|
+
"product",
|
|
247839
|
+
"role"
|
|
245729
247840
|
],
|
|
245730
247841
|
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: {
|
|
247842
|
+
email: {
|
|
245750
247843
|
type: "string",
|
|
245751
|
-
format: "
|
|
245752
|
-
|
|
247844
|
+
format: "email",
|
|
247845
|
+
maxLength: 320,
|
|
247846
|
+
description: "Who to invite: someone who does not have an Arbol account yet."
|
|
245753
247847
|
},
|
|
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: {
|
|
247848
|
+
product: {
|
|
245860
247849
|
anyOf: [
|
|
245861
247850
|
{
|
|
245862
247851
|
type: "string",
|
|
245863
|
-
const: "
|
|
247852
|
+
const: "raiz"
|
|
245864
247853
|
},
|
|
245865
247854
|
{
|
|
245866
247855
|
type: "string",
|
|
245867
|
-
const: "
|
|
247856
|
+
const: "agenda"
|
|
245868
247857
|
},
|
|
245869
247858
|
{
|
|
245870
247859
|
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"
|
|
247860
|
+
const: "ambar"
|
|
245921
247861
|
},
|
|
245922
247862
|
{
|
|
245923
247863
|
type: "string",
|
|
245924
|
-
const: "
|
|
247864
|
+
const: "account"
|
|
245925
247865
|
}
|
|
245926
247866
|
],
|
|
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
|
|
247867
|
+
description: "A product whose team Account administers: Raíz, Agenda, Ámbar or Account itself."
|
|
245936
247868
|
},
|
|
245937
|
-
|
|
245938
|
-
|
|
245939
|
-
|
|
245940
|
-
|
|
245941
|
-
|
|
245942
|
-
},
|
|
245943
|
-
{
|
|
245944
|
-
type: "string",
|
|
245945
|
-
const: "facturacion"
|
|
245946
|
-
}
|
|
245947
|
-
]
|
|
247869
|
+
role: {
|
|
247870
|
+
type: "string",
|
|
247871
|
+
minLength: 1,
|
|
247872
|
+
maxLength: 128,
|
|
247873
|
+
description: "A role name, such as calendar:operator."
|
|
245948
247874
|
}
|
|
245949
247875
|
},
|
|
245950
247876
|
additionalProperties: false
|
|
245951
247877
|
},
|
|
245952
|
-
|
|
247878
|
+
AccountInvitationsDeleteInput: {
|
|
245953
247879
|
type: "object",
|
|
245954
247880
|
required: [
|
|
245955
|
-
"
|
|
247881
|
+
"invitationId"
|
|
245956
247882
|
],
|
|
245957
247883
|
properties: {
|
|
245958
|
-
|
|
247884
|
+
invitationId: {
|
|
245959
247885
|
type: "string",
|
|
245960
|
-
|
|
245961
|
-
|
|
247886
|
+
minLength: 1,
|
|
247887
|
+
maxLength: 256,
|
|
247888
|
+
description: "The invitation's id, as invitations.list answers it."
|
|
245962
247889
|
}
|
|
245963
247890
|
},
|
|
245964
247891
|
additionalProperties: false
|
|
245965
247892
|
},
|
|
245966
|
-
|
|
247893
|
+
AccountInvoicesListInput: {
|
|
245967
247894
|
type: "object",
|
|
245968
247895
|
required: [],
|
|
245969
247896
|
properties: {
|
|
@@ -245995,65 +247922,6 @@ var schemaComponents = {
|
|
|
245995
247922
|
},
|
|
245996
247923
|
additionalProperties: false
|
|
245997
247924
|
},
|
|
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
247925
|
AccountMembersListInput: {
|
|
246058
247926
|
type: "object",
|
|
246059
247927
|
required: [],
|
|
@@ -246284,6 +248152,11 @@ var schemaComponents = {
|
|
|
246284
248152
|
},
|
|
246285
248153
|
additionalProperties: false
|
|
246286
248154
|
},
|
|
248155
|
+
AccountPaymentMethodSetupsCreateInput: {
|
|
248156
|
+
type: "object",
|
|
248157
|
+
properties: {},
|
|
248158
|
+
additionalProperties: false
|
|
248159
|
+
},
|
|
246287
248160
|
AccountPermissionsListInput: {
|
|
246288
248161
|
type: "object",
|
|
246289
248162
|
required: [],
|
|
@@ -246485,7 +248358,7 @@ var schemaComponents = {
|
|
|
246485
248358
|
to: {
|
|
246486
248359
|
type: "string",
|
|
246487
248360
|
format: "date-time",
|
|
246488
|
-
description: "End of the range; now by default."
|
|
248361
|
+
description: "End of the range; now by default. At most 366 days after `from`."
|
|
246489
248362
|
},
|
|
246490
248363
|
groupBy: {
|
|
246491
248364
|
anyOf: [
|
|
@@ -246496,9 +248369,23 @@ var schemaComponents = {
|
|
|
246496
248369
|
{
|
|
246497
248370
|
type: "string",
|
|
246498
248371
|
const: "channel"
|
|
248372
|
+
},
|
|
248373
|
+
{
|
|
248374
|
+
type: "string",
|
|
248375
|
+
const: "agent"
|
|
248376
|
+
},
|
|
248377
|
+
{
|
|
248378
|
+
type: "string",
|
|
248379
|
+
const: "campaign"
|
|
246499
248380
|
}
|
|
246500
248381
|
],
|
|
246501
248382
|
description: "Breaks each feature down; by product by default."
|
|
248383
|
+
},
|
|
248384
|
+
timezone: {
|
|
248385
|
+
type: "string",
|
|
248386
|
+
minLength: 1,
|
|
248387
|
+
maxLength: 64,
|
|
248388
|
+
description: "An IANA time zone (`America/Bogota`) that days and the default month follow; UTC by default."
|
|
246502
248389
|
}
|
|
246503
248390
|
},
|
|
246504
248391
|
additionalProperties: false
|
|
@@ -252176,10 +254063,6 @@ var schemaComponents = {
|
|
|
252176
254063
|
data: {
|
|
252177
254064
|
additionalProperties: false,
|
|
252178
254065
|
type: "object",
|
|
252179
|
-
required: [
|
|
252180
|
-
"documentNumber",
|
|
252181
|
-
"documentTypeId"
|
|
252182
|
-
],
|
|
252183
254066
|
properties: {
|
|
252184
254067
|
documentNumber: {
|
|
252185
254068
|
maxLength: 255,
|
|
@@ -260370,6 +262253,10 @@ var schemaComponents = {
|
|
|
260370
262253
|
type: "string",
|
|
260371
262254
|
const: "channel-restored"
|
|
260372
262255
|
},
|
|
262256
|
+
{
|
|
262257
|
+
type: "string",
|
|
262258
|
+
const: "credits-exhausted"
|
|
262259
|
+
},
|
|
260373
262260
|
{
|
|
260374
262261
|
type: "string",
|
|
260375
262262
|
const: "import-finished"
|
|
@@ -260410,7 +262297,7 @@ var schemaComponents = {
|
|
|
260410
262297
|
},
|
|
260411
262298
|
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
262299
|
uniqueItems: true,
|
|
260413
|
-
maxItems:
|
|
262300
|
+
maxItems: 19
|
|
260414
262301
|
},
|
|
260415
262302
|
{
|
|
260416
262303
|
type: "null"
|
|
@@ -261230,9 +263117,13 @@ var schemaComponents = {
|
|
|
261230
263117
|
{
|
|
261231
263118
|
type: "string",
|
|
261232
263119
|
const: "campaign_progress"
|
|
263120
|
+
},
|
|
263121
|
+
{
|
|
263122
|
+
type: "string",
|
|
263123
|
+
const: "usage_daily"
|
|
261233
263124
|
}
|
|
261234
263125
|
],
|
|
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)."
|
|
263126
|
+
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
263127
|
},
|
|
261237
263128
|
to: {
|
|
261238
263129
|
type: "string",
|
|
@@ -265302,9 +267193,9 @@ var schemaComponents = {
|
|
|
265302
267193
|
// src/generated/generation.json
|
|
265303
267194
|
var generation_default = {
|
|
265304
267195
|
formatVersion: 6,
|
|
265305
|
-
release: "1.
|
|
265306
|
-
openapiSha256: "
|
|
265307
|
-
openapiContentSha256: "
|
|
267196
|
+
release: "1.20261120.163816",
|
|
267197
|
+
openapiSha256: "205288fed167aaad0fcb36eb6a4727a12310ea3c72b5b421b4dae7bdc09bcc23",
|
|
267198
|
+
openapiContentSha256: "4dcce28a0d0634fb55805f72d6db8dc586e0a4e9930a869f650c9460d06be606",
|
|
265308
267199
|
forge: {
|
|
265309
267200
|
repository: "https://github.com/cloudflare/forge",
|
|
265310
267201
|
commit: "7f86447210b7bea3779bfdab3cd5655eade0eadb",
|
|
@@ -265317,7 +267208,7 @@ var generation_default = {
|
|
|
265317
267208
|
outputs: [
|
|
265318
267209
|
{
|
|
265319
267210
|
path: "src/generated/commands.ts",
|
|
265320
|
-
sha256: "
|
|
267211
|
+
sha256: "d5f20b1c90ab737c0d06a435737f29e29873411a65c24e50df5b76a7964603d1"
|
|
265321
267212
|
}
|
|
265322
267213
|
]
|
|
265323
267214
|
};
|
|
@@ -266917,7 +268808,7 @@ ${name}`);
|
|
|
266917
268808
|
}
|
|
266918
268809
|
|
|
266919
268810
|
// src/index.ts
|
|
266920
|
-
var VERSION = "3.
|
|
268811
|
+
var VERSION = "3.69.0";
|
|
266921
268812
|
var RELEASE = generation_default.release;
|
|
266922
268813
|
var commands2 = { ...commands, ...accountOperatorCommands };
|
|
266923
268814
|
var SDK_PATHS = new Map(Object.values(commands2).map((command) => [command.operation, command.sdkPath]));
|