@arbol-ai/cli 3.66.0 → 3.68.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2904 -552
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1017,11 +1017,86 @@ var commands = {
|
|
|
1017
1017
|
additionalProperties: false
|
|
1018
1018
|
},
|
|
1019
1019
|
title: "Get billing",
|
|
1020
|
-
description: "The organization's wallet in credits (one credit is one US dollar): credits left, granted and spent in the current period, whether running out stops service, its plans
|
|
1020
|
+
description: "The organization's wallet in credits (one credit is one US dollar): credits left, granted and spent in the current period, whether running out stops service, its plans, the card a top-up charges, how much it has topped up, the credits Arbol gave that are still in force, and its plan's allowances.",
|
|
1021
1021
|
effect: "read",
|
|
1022
1022
|
confirmation: null,
|
|
1023
1023
|
hidden: false
|
|
1024
1024
|
},
|
|
1025
|
+
"account billing update": {
|
|
1026
|
+
operation: "account.billing.update",
|
|
1027
|
+
sdkPath: [
|
|
1028
|
+
"account",
|
|
1029
|
+
"billing",
|
|
1030
|
+
"update"
|
|
1031
|
+
],
|
|
1032
|
+
pathField: null,
|
|
1033
|
+
fields: [
|
|
1034
|
+
{
|
|
1035
|
+
name: "lowBalanceAlert",
|
|
1036
|
+
flag: "low-balance-alert",
|
|
1037
|
+
kind: "number",
|
|
1038
|
+
required: false,
|
|
1039
|
+
description: "The balance at which administrators are emailed; null turns it off."
|
|
1040
|
+
}
|
|
1041
|
+
],
|
|
1042
|
+
inputSchema: {
|
|
1043
|
+
type: "object",
|
|
1044
|
+
properties: {
|
|
1045
|
+
autoTopUp: {
|
|
1046
|
+
type: "object",
|
|
1047
|
+
required: [
|
|
1048
|
+
"enabled",
|
|
1049
|
+
"threshold",
|
|
1050
|
+
"credits",
|
|
1051
|
+
"perMonth"
|
|
1052
|
+
],
|
|
1053
|
+
properties: {
|
|
1054
|
+
enabled: {
|
|
1055
|
+
type: "boolean"
|
|
1056
|
+
},
|
|
1057
|
+
threshold: {
|
|
1058
|
+
type: "number",
|
|
1059
|
+
minimum: 0,
|
|
1060
|
+
maximum: 1e5,
|
|
1061
|
+
description: "When the balance falls below this…"
|
|
1062
|
+
},
|
|
1063
|
+
credits: {
|
|
1064
|
+
type: "integer",
|
|
1065
|
+
minimum: 10,
|
|
1066
|
+
maximum: 1e4,
|
|
1067
|
+
description: "…buy this many credits with the saved card…"
|
|
1068
|
+
},
|
|
1069
|
+
perMonth: {
|
|
1070
|
+
type: "integer",
|
|
1071
|
+
minimum: 1,
|
|
1072
|
+
maximum: 31,
|
|
1073
|
+
description: "…at most this many times a month."
|
|
1074
|
+
}
|
|
1075
|
+
},
|
|
1076
|
+
additionalProperties: false
|
|
1077
|
+
},
|
|
1078
|
+
lowBalanceAlert: {
|
|
1079
|
+
anyOf: [
|
|
1080
|
+
{
|
|
1081
|
+
type: "number",
|
|
1082
|
+
minimum: 0,
|
|
1083
|
+
maximum: 1e5
|
|
1084
|
+
},
|
|
1085
|
+
{
|
|
1086
|
+
type: "null"
|
|
1087
|
+
}
|
|
1088
|
+
],
|
|
1089
|
+
description: "The balance at which administrators are emailed; null turns it off."
|
|
1090
|
+
}
|
|
1091
|
+
},
|
|
1092
|
+
additionalProperties: false
|
|
1093
|
+
},
|
|
1094
|
+
title: "Change the automatic top-up and the low-balance alert",
|
|
1095
|
+
description: "Turns the automatic top-up on or off (the balance that triggers it, the credits it buys with the saved card, the most times a month) and sets the balance at which the organization's administrators are emailed.",
|
|
1096
|
+
effect: "write",
|
|
1097
|
+
confirmation: null,
|
|
1098
|
+
hidden: false
|
|
1099
|
+
},
|
|
1025
1100
|
"account billing-portal-sessions create": {
|
|
1026
1101
|
operation: "account.billingPortalSessions.create",
|
|
1027
1102
|
sdkPath: [
|
|
@@ -1037,7 +1112,7 @@ var commands = {
|
|
|
1037
1112
|
additionalProperties: false
|
|
1038
1113
|
},
|
|
1039
1114
|
title: "Open the card portal",
|
|
1040
|
-
description: "A session of
|
|
1115
|
+
description: "A session of the payment processor's portal, where the organization's people change its saved card and download its card receipts.",
|
|
1041
1116
|
effect: "write",
|
|
1042
1117
|
confirmation: null,
|
|
1043
1118
|
hidden: false
|
|
@@ -1350,7 +1425,7 @@ var commands = {
|
|
|
1350
1425
|
additionalProperties: false
|
|
1351
1426
|
},
|
|
1352
1427
|
title: "Invite someone to a product",
|
|
1353
|
-
description: "Invites someone without an Arbol account by email with a role in Raíz, Agenda, Ámbar or Account. The invitation email comes from the product's own application. Existing accounts receive access with `members.create` and sign in with their current password.",
|
|
1428
|
+
description: "Invites someone without an Arbol account by email with a role in Raíz, Agenda, Ámbar or Account. The invitation email comes from the product's own application. Existing accounts receive access with `members.create` and sign in with their current password. A new Agenda seat the organization's wallet cannot pay is refused with INSUFFICIENT_CREDITS once billing stops service at zero.",
|
|
1354
1429
|
effect: "write",
|
|
1355
1430
|
confirmation: null,
|
|
1356
1431
|
hidden: false
|
|
@@ -1460,6 +1535,81 @@ var commands = {
|
|
|
1460
1535
|
confirmation: null,
|
|
1461
1536
|
hidden: false
|
|
1462
1537
|
},
|
|
1538
|
+
"account invoices list": {
|
|
1539
|
+
operation: "account.invoices.list",
|
|
1540
|
+
sdkPath: [
|
|
1541
|
+
"account",
|
|
1542
|
+
"invoices",
|
|
1543
|
+
"list"
|
|
1544
|
+
],
|
|
1545
|
+
pathField: null,
|
|
1546
|
+
fields: [
|
|
1547
|
+
{
|
|
1548
|
+
name: "cursor",
|
|
1549
|
+
flag: "cursor",
|
|
1550
|
+
kind: "string",
|
|
1551
|
+
required: false,
|
|
1552
|
+
description: "Opaque cursor returned by pageInfo; omit it to request the first page."
|
|
1553
|
+
},
|
|
1554
|
+
{
|
|
1555
|
+
name: "direction",
|
|
1556
|
+
flag: "direction",
|
|
1557
|
+
kind: "string",
|
|
1558
|
+
required: false,
|
|
1559
|
+
description: "Direction to traverse the stable keyset ordering from the supplied cursor.",
|
|
1560
|
+
choices: [
|
|
1561
|
+
"forward",
|
|
1562
|
+
"backward"
|
|
1563
|
+
],
|
|
1564
|
+
default: "forward"
|
|
1565
|
+
},
|
|
1566
|
+
{
|
|
1567
|
+
name: "limit",
|
|
1568
|
+
flag: "limit",
|
|
1569
|
+
kind: "integer",
|
|
1570
|
+
required: false,
|
|
1571
|
+
description: "Maximum items returned in one page. Defaults to 25; larger reads require another cursor.",
|
|
1572
|
+
default: 25
|
|
1573
|
+
}
|
|
1574
|
+
],
|
|
1575
|
+
inputSchema: {
|
|
1576
|
+
type: "object",
|
|
1577
|
+
required: [],
|
|
1578
|
+
properties: {
|
|
1579
|
+
cursor: {
|
|
1580
|
+
type: "string",
|
|
1581
|
+
description: "Opaque cursor returned by pageInfo; omit it to request the first page."
|
|
1582
|
+
},
|
|
1583
|
+
direction: {
|
|
1584
|
+
anyOf: [
|
|
1585
|
+
{
|
|
1586
|
+
type: "string",
|
|
1587
|
+
const: "forward"
|
|
1588
|
+
},
|
|
1589
|
+
{
|
|
1590
|
+
type: "string",
|
|
1591
|
+
const: "backward"
|
|
1592
|
+
}
|
|
1593
|
+
],
|
|
1594
|
+
description: "Direction to traverse the stable keyset ordering from the supplied cursor.",
|
|
1595
|
+
default: "forward"
|
|
1596
|
+
},
|
|
1597
|
+
limit: {
|
|
1598
|
+
type: "integer",
|
|
1599
|
+
minimum: 1,
|
|
1600
|
+
maximum: 100,
|
|
1601
|
+
description: "Maximum items returned in one page. Defaults to 25; larger reads require another cursor.",
|
|
1602
|
+
default: 25
|
|
1603
|
+
}
|
|
1604
|
+
},
|
|
1605
|
+
additionalProperties: false
|
|
1606
|
+
},
|
|
1607
|
+
title: "List invoices",
|
|
1608
|
+
description: "The organization's invoices in one list, newest first: those the payment processor generated, each with its own page, and those Arbol issued and uploaded, each with its files. One page: the most recent `limit`.",
|
|
1609
|
+
effect: "read",
|
|
1610
|
+
confirmation: null,
|
|
1611
|
+
hidden: false
|
|
1612
|
+
},
|
|
1463
1613
|
"account members create": {
|
|
1464
1614
|
operation: "account.members.create",
|
|
1465
1615
|
sdkPath: [
|
|
@@ -1542,7 +1692,7 @@ var commands = {
|
|
|
1542
1692
|
additionalProperties: false
|
|
1543
1693
|
},
|
|
1544
1694
|
title: "Give a member a role in a product",
|
|
1545
|
-
description: "Gives someone with an existing Arbol account a role in Raíz, Agenda, Ámbar or Account, joining them to this organization when needed. They sign in with their current password. Someone without an account is invited with `invitations.create`.",
|
|
1695
|
+
description: "Gives someone with an existing Arbol account a role in Raíz, Agenda, Ámbar or Account, joining them to this organization when needed. They sign in with their current password. Someone without an account is invited with `invitations.create`. A new Agenda seat the organization's wallet cannot pay is refused with INSUFFICIENT_CREDITS once billing stops service at zero.",
|
|
1546
1696
|
effect: "write",
|
|
1547
1697
|
confirmation: null,
|
|
1548
1698
|
hidden: false
|
|
@@ -1735,7 +1885,7 @@ var commands = {
|
|
|
1735
1885
|
additionalProperties: false
|
|
1736
1886
|
},
|
|
1737
1887
|
title: "Change someone's role in a product",
|
|
1738
|
-
description: "Sets a member's role in Raíz, Agenda, Ámbar or Account, or removes their access to that product with null. Their other roles stay.",
|
|
1888
|
+
description: "Sets a member's role in Raíz, Agenda, Ámbar or Account, or removes their access to that product with null. Their other roles stay. A new Agenda seat the organization's wallet cannot pay is refused with INSUFFICIENT_CREDITS once billing stops service at zero.",
|
|
1739
1889
|
effect: "write",
|
|
1740
1890
|
confirmation: null,
|
|
1741
1891
|
hidden: false
|
|
@@ -1929,6 +2079,26 @@ var commands = {
|
|
|
1929
2079
|
confirmation: null,
|
|
1930
2080
|
hidden: false
|
|
1931
2081
|
},
|
|
2082
|
+
"account payment-method-setups create": {
|
|
2083
|
+
operation: "account.paymentMethodSetups.create",
|
|
2084
|
+
sdkPath: [
|
|
2085
|
+
"account",
|
|
2086
|
+
"paymentMethodSetups",
|
|
2087
|
+
"create"
|
|
2088
|
+
],
|
|
2089
|
+
pathField: null,
|
|
2090
|
+
fields: [],
|
|
2091
|
+
inputSchema: {
|
|
2092
|
+
type: "object",
|
|
2093
|
+
properties: {},
|
|
2094
|
+
additionalProperties: false
|
|
2095
|
+
},
|
|
2096
|
+
title: "Add or change the card",
|
|
2097
|
+
description: "A page of the payment processor to add or change the organization's card without buying anything; the card becomes the one top-ups charge, and the person comes back to the Payment page.",
|
|
2098
|
+
effect: "write",
|
|
2099
|
+
confirmation: null,
|
|
2100
|
+
hidden: false
|
|
2101
|
+
},
|
|
1932
2102
|
"account permissions list": {
|
|
1933
2103
|
operation: "account.permissions.list",
|
|
1934
2104
|
sdkPath: [
|
|
@@ -2359,7 +2529,7 @@ var commands = {
|
|
|
2359
2529
|
flag: "to",
|
|
2360
2530
|
kind: "string",
|
|
2361
2531
|
required: false,
|
|
2362
|
-
description: "End of the range; now by default."
|
|
2532
|
+
description: "End of the range; now by default. At most 366 days after `from`."
|
|
2363
2533
|
},
|
|
2364
2534
|
{
|
|
2365
2535
|
name: "groupBy",
|
|
@@ -2369,8 +2539,17 @@ var commands = {
|
|
|
2369
2539
|
description: "Breaks each feature down; by product by default.",
|
|
2370
2540
|
choices: [
|
|
2371
2541
|
"product",
|
|
2372
|
-
"channel"
|
|
2542
|
+
"channel",
|
|
2543
|
+
"agent",
|
|
2544
|
+
"campaign"
|
|
2373
2545
|
]
|
|
2546
|
+
},
|
|
2547
|
+
{
|
|
2548
|
+
name: "timezone",
|
|
2549
|
+
flag: "timezone",
|
|
2550
|
+
kind: "string",
|
|
2551
|
+
required: false,
|
|
2552
|
+
description: "An IANA time zone (`America/Bogota`) that days and the default month follow; UTC by default."
|
|
2374
2553
|
}
|
|
2375
2554
|
],
|
|
2376
2555
|
inputSchema: {
|
|
@@ -2384,7 +2563,7 @@ var commands = {
|
|
|
2384
2563
|
to: {
|
|
2385
2564
|
type: "string",
|
|
2386
2565
|
format: "date-time",
|
|
2387
|
-
description: "End of the range; now by default."
|
|
2566
|
+
description: "End of the range; now by default. At most 366 days after `from`."
|
|
2388
2567
|
},
|
|
2389
2568
|
groupBy: {
|
|
2390
2569
|
anyOf: [
|
|
@@ -2395,15 +2574,29 @@ var commands = {
|
|
|
2395
2574
|
{
|
|
2396
2575
|
type: "string",
|
|
2397
2576
|
const: "channel"
|
|
2577
|
+
},
|
|
2578
|
+
{
|
|
2579
|
+
type: "string",
|
|
2580
|
+
const: "agent"
|
|
2581
|
+
},
|
|
2582
|
+
{
|
|
2583
|
+
type: "string",
|
|
2584
|
+
const: "campaign"
|
|
2398
2585
|
}
|
|
2399
2586
|
],
|
|
2400
2587
|
description: "Breaks each feature down; by product by default."
|
|
2588
|
+
},
|
|
2589
|
+
timezone: {
|
|
2590
|
+
type: "string",
|
|
2591
|
+
minLength: 1,
|
|
2592
|
+
maxLength: 64,
|
|
2593
|
+
description: "An IANA time zone (`America/Bogota`) that days and the default month follow; UTC by default."
|
|
2401
2594
|
}
|
|
2402
2595
|
},
|
|
2403
2596
|
additionalProperties: false
|
|
2404
2597
|
},
|
|
2405
2598
|
title: "Get the usage summary",
|
|
2406
|
-
description: "What the organization used in a range
|
|
2599
|
+
description: "What the organization used in a range (the current month by default, at most 366 days): each metered feature in its own units (minutes, conversations, lookups…) and its value in credits at the organization's own rates, broken down by product, channel, Agent or campaign, a series by day in the organization's time zone, and the credits its wallet paid.",
|
|
2407
2600
|
effect: "read",
|
|
2408
2601
|
confirmation: null,
|
|
2409
2602
|
hidden: false
|
|
@@ -2441,7 +2634,7 @@ var commands = {
|
|
|
2441
2634
|
additionalProperties: false
|
|
2442
2635
|
},
|
|
2443
2636
|
title: "Top up the wallet",
|
|
2444
|
-
description: "Buys credits at one US dollar each. The organization's saved card is charged at once; without one, or when the bank asks to confirm, the answer is
|
|
2637
|
+
description: "Buys credits at one US dollar each. The organization's saved card is charged at once; without one, or when the bank asks to confirm, the answer is the payment processor's page to pay on. Never repeated on its own: a lost answer is OUTCOME_UNKNOWN, and the wallet's transactions say whether it was paid.",
|
|
2445
2638
|
effect: "write",
|
|
2446
2639
|
confirmation: null,
|
|
2447
2640
|
hidden: false
|
|
@@ -2516,7 +2709,7 @@ var commands = {
|
|
|
2516
2709
|
additionalProperties: false
|
|
2517
2710
|
},
|
|
2518
2711
|
title: "List wallet transactions",
|
|
2519
|
-
description: "What moved the organization's wallet, newest first: top-ups, plan grants and renewals, adjustments
|
|
2712
|
+
description: "What moved the organization's wallet, newest first: top-ups, transfers, credits Arbol gave (by name), plan grants and renewals, adjustments, and the credits spent, one entry per UTC day, each with whether it was paid or granted and the balance right after it. Listed forward only.",
|
|
2520
2713
|
effect: "read",
|
|
2521
2714
|
confirmation: null,
|
|
2522
2715
|
hidden: false
|
|
@@ -9653,15 +9846,15 @@ var commands = {
|
|
|
9653
9846
|
name: "connectionId",
|
|
9654
9847
|
flag: "connection-id",
|
|
9655
9848
|
kind: "string",
|
|
9656
|
-
required:
|
|
9657
|
-
description: ""
|
|
9849
|
+
required: false,
|
|
9850
|
+
description: "Omit when the organization has exactly one active Famisanar connection. Required to choose among multiple active connections."
|
|
9658
9851
|
},
|
|
9659
9852
|
{
|
|
9660
9853
|
name: "documentType",
|
|
9661
9854
|
flag: "document-type",
|
|
9662
9855
|
kind: "string",
|
|
9663
9856
|
required: false,
|
|
9664
|
-
description: "",
|
|
9857
|
+
description: "Identity document type. Defaults to CC; send another supported type explicitly.",
|
|
9665
9858
|
choices: [
|
|
9666
9859
|
"CC",
|
|
9667
9860
|
"CD",
|
|
@@ -9691,20 +9884,20 @@ var commands = {
|
|
|
9691
9884
|
flag: "max-age-days",
|
|
9692
9885
|
kind: "integer",
|
|
9693
9886
|
required: false,
|
|
9694
|
-
description: "",
|
|
9887
|
+
description: "Maximum age in days of an observation from this IPS connection. Zero contacts the provider and refreshes the saved result.",
|
|
9695
9888
|
default: 7
|
|
9696
9889
|
}
|
|
9697
9890
|
],
|
|
9698
9891
|
inputSchema: {
|
|
9699
9892
|
type: "object",
|
|
9700
9893
|
required: [
|
|
9701
|
-
"connectionId",
|
|
9702
9894
|
"documentNumber"
|
|
9703
9895
|
],
|
|
9704
9896
|
properties: {
|
|
9705
9897
|
connectionId: {
|
|
9706
9898
|
type: "string",
|
|
9707
|
-
pattern: "^con_[0-9A-Za-z]{26}$"
|
|
9899
|
+
pattern: "^con_[0-9A-Za-z]{26}$",
|
|
9900
|
+
description: "Omit when the organization has exactly one active Famisanar connection. Required to choose among multiple active connections."
|
|
9708
9901
|
},
|
|
9709
9902
|
documentType: {
|
|
9710
9903
|
anyOf: [
|
|
@@ -9761,7 +9954,8 @@ var commands = {
|
|
|
9761
9954
|
const: "TI"
|
|
9762
9955
|
}
|
|
9763
9956
|
],
|
|
9764
|
-
default: "CC"
|
|
9957
|
+
default: "CC",
|
|
9958
|
+
description: "Identity document type. Defaults to CC; send another supported type explicitly."
|
|
9765
9959
|
},
|
|
9766
9960
|
documentNumber: {
|
|
9767
9961
|
type: "string",
|
|
@@ -9772,132 +9966,162 @@ var commands = {
|
|
|
9772
9966
|
type: "integer",
|
|
9773
9967
|
minimum: 0,
|
|
9774
9968
|
maximum: 7,
|
|
9775
|
-
default: 7
|
|
9969
|
+
default: 7,
|
|
9970
|
+
description: "Maximum age in days of an observation from this IPS connection. Zero contacts the provider and refreshes the saved result."
|
|
9776
9971
|
}
|
|
9777
9972
|
},
|
|
9778
9973
|
additionalProperties: false
|
|
9779
9974
|
},
|
|
9780
9975
|
title: "Look up affiliation",
|
|
9781
|
-
description: "Look up one document using
|
|
9976
|
+
description: "Look up one document using the organization’s active IPS connection. Omit connectionId when exactly one is active. The document type defaults to CC and may be supplied explicitly. Observations retain their original checkedAt for at most seven days. Set maxAgeDays to zero to refresh. The provider combines missing and invalid records into one outcome.",
|
|
9782
9977
|
effect: "read",
|
|
9783
9978
|
confirmation: null,
|
|
9784
9979
|
hidden: false
|
|
9785
9980
|
},
|
|
9786
|
-
"
|
|
9787
|
-
operation: "
|
|
9981
|
+
"famisanar connections get": {
|
|
9982
|
+
operation: "famisanar.connections.get",
|
|
9788
9983
|
sdkPath: [
|
|
9789
|
-
"
|
|
9790
|
-
"
|
|
9791
|
-
"
|
|
9792
|
-
],
|
|
9793
|
-
pathField: null,
|
|
9794
|
-
fields: [
|
|
9795
|
-
{
|
|
9796
|
-
name: "cursor",
|
|
9797
|
-
flag: "cursor",
|
|
9798
|
-
kind: "string",
|
|
9799
|
-
required: false,
|
|
9800
|
-
description: "Opaque cursor returned by pageInfo; omit it to request the first page."
|
|
9801
|
-
},
|
|
9802
|
-
{
|
|
9803
|
-
name: "direction",
|
|
9804
|
-
flag: "direction",
|
|
9805
|
-
kind: "string",
|
|
9806
|
-
required: false,
|
|
9807
|
-
description: "Direction to traverse the stable keyset ordering from the supplied cursor.",
|
|
9808
|
-
choices: [
|
|
9809
|
-
"forward",
|
|
9810
|
-
"backward"
|
|
9811
|
-
],
|
|
9812
|
-
default: "forward"
|
|
9813
|
-
},
|
|
9814
|
-
{
|
|
9815
|
-
name: "limit",
|
|
9816
|
-
flag: "limit",
|
|
9817
|
-
kind: "integer",
|
|
9818
|
-
required: false,
|
|
9819
|
-
description: "Maximum items returned in one page. Defaults to 25; larger reads require another cursor.",
|
|
9820
|
-
default: 25
|
|
9821
|
-
},
|
|
9822
|
-
{
|
|
9823
|
-
name: "serviceId",
|
|
9824
|
-
flag: "service-id",
|
|
9825
|
-
kind: "string",
|
|
9826
|
-
required: false,
|
|
9827
|
-
description: ""
|
|
9828
|
-
},
|
|
9829
|
-
{
|
|
9830
|
-
name: "connectionId",
|
|
9831
|
-
flag: "connection-id",
|
|
9832
|
-
kind: "string",
|
|
9833
|
-
required: false,
|
|
9834
|
-
description: ""
|
|
9835
|
-
},
|
|
9836
|
-
{
|
|
9837
|
-
name: "id",
|
|
9838
|
-
flag: "id",
|
|
9839
|
-
kind: "string",
|
|
9840
|
-
required: false,
|
|
9841
|
-
description: "Deprecated: use `serviceId`. Answered until 2027-01-28."
|
|
9842
|
-
}
|
|
9984
|
+
"famisanar",
|
|
9985
|
+
"connections",
|
|
9986
|
+
"get"
|
|
9843
9987
|
],
|
|
9988
|
+
pathField: "connectionId",
|
|
9989
|
+
fields: [],
|
|
9844
9990
|
inputSchema: {
|
|
9845
|
-
additionalProperties: false,
|
|
9846
9991
|
type: "object",
|
|
9847
|
-
required: [
|
|
9992
|
+
required: [
|
|
9993
|
+
"connectionId"
|
|
9994
|
+
],
|
|
9848
9995
|
properties: {
|
|
9849
|
-
cursor: {
|
|
9850
|
-
description: "Opaque cursor returned by pageInfo; omit it to request the first page.",
|
|
9851
|
-
type: "string"
|
|
9852
|
-
},
|
|
9853
|
-
direction: {
|
|
9854
|
-
description: "Direction to traverse the stable keyset ordering from the supplied cursor.",
|
|
9855
|
-
anyOf: [
|
|
9856
|
-
{
|
|
9857
|
-
const: "forward",
|
|
9858
|
-
type: "string"
|
|
9859
|
-
},
|
|
9860
|
-
{
|
|
9861
|
-
const: "backward",
|
|
9862
|
-
type: "string"
|
|
9863
|
-
}
|
|
9864
|
-
],
|
|
9865
|
-
default: "forward"
|
|
9866
|
-
},
|
|
9867
|
-
limit: {
|
|
9868
|
-
minimum: 1,
|
|
9869
|
-
maximum: 100,
|
|
9870
|
-
description: "Maximum items returned in one page. Defaults to 25; larger reads require another cursor.",
|
|
9871
|
-
type: "integer",
|
|
9872
|
-
default: 25
|
|
9873
|
-
},
|
|
9874
|
-
serviceId: {
|
|
9875
|
-
pattern: "^[1-9][0-9]{0,14}$",
|
|
9876
|
-
type: "string"
|
|
9877
|
-
},
|
|
9878
9996
|
connectionId: {
|
|
9879
|
-
pattern: "^con_[0-9A-Za-z]{26}$",
|
|
9880
|
-
type: "string"
|
|
9881
|
-
},
|
|
9882
|
-
id: {
|
|
9883
|
-
pattern: "^[1-9][0-9]{0,14}$",
|
|
9884
9997
|
type: "string",
|
|
9885
|
-
|
|
9886
|
-
description: "
|
|
9998
|
+
pattern: "^con_[0-9A-Za-z]{26}$",
|
|
9999
|
+
description: "The IPS connection saved in Account. This is not a provider session ID."
|
|
9887
10000
|
}
|
|
9888
|
-
}
|
|
10001
|
+
},
|
|
10002
|
+
additionalProperties: false
|
|
9889
10003
|
},
|
|
9890
|
-
title: "
|
|
9891
|
-
description: "
|
|
10004
|
+
title: "Get a Famisanar connection",
|
|
10005
|
+
description: "Read session availability and observed expiry without signing in. An undisclosed provider deadline is null. Credentials, cookies and session handles are never returned. Expired sessions reconnect automatically on the next uncached affiliation lookup.",
|
|
9892
10006
|
effect: "read",
|
|
9893
10007
|
confirmation: null,
|
|
9894
10008
|
hidden: false
|
|
9895
10009
|
},
|
|
9896
|
-
"gmedic
|
|
9897
|
-
operation: "gmedic.
|
|
10010
|
+
"gmedic agenda-services list": {
|
|
10011
|
+
operation: "gmedic.agendaServices.list",
|
|
9898
10012
|
sdkPath: [
|
|
9899
10013
|
"gmedic",
|
|
9900
|
-
"
|
|
10014
|
+
"agendaServices",
|
|
10015
|
+
"list"
|
|
10016
|
+
],
|
|
10017
|
+
pathField: null,
|
|
10018
|
+
fields: [
|
|
10019
|
+
{
|
|
10020
|
+
name: "cursor",
|
|
10021
|
+
flag: "cursor",
|
|
10022
|
+
kind: "string",
|
|
10023
|
+
required: false,
|
|
10024
|
+
description: "Opaque cursor returned by pageInfo; omit it to request the first page."
|
|
10025
|
+
},
|
|
10026
|
+
{
|
|
10027
|
+
name: "direction",
|
|
10028
|
+
flag: "direction",
|
|
10029
|
+
kind: "string",
|
|
10030
|
+
required: false,
|
|
10031
|
+
description: "Direction to traverse the stable keyset ordering from the supplied cursor.",
|
|
10032
|
+
choices: [
|
|
10033
|
+
"forward",
|
|
10034
|
+
"backward"
|
|
10035
|
+
],
|
|
10036
|
+
default: "forward"
|
|
10037
|
+
},
|
|
10038
|
+
{
|
|
10039
|
+
name: "limit",
|
|
10040
|
+
flag: "limit",
|
|
10041
|
+
kind: "integer",
|
|
10042
|
+
required: false,
|
|
10043
|
+
description: "Maximum items returned in one page. Defaults to 25; larger reads require another cursor.",
|
|
10044
|
+
default: 25
|
|
10045
|
+
},
|
|
10046
|
+
{
|
|
10047
|
+
name: "serviceId",
|
|
10048
|
+
flag: "service-id",
|
|
10049
|
+
kind: "string",
|
|
10050
|
+
required: false,
|
|
10051
|
+
description: ""
|
|
10052
|
+
},
|
|
10053
|
+
{
|
|
10054
|
+
name: "connectionId",
|
|
10055
|
+
flag: "connection-id",
|
|
10056
|
+
kind: "string",
|
|
10057
|
+
required: false,
|
|
10058
|
+
description: ""
|
|
10059
|
+
},
|
|
10060
|
+
{
|
|
10061
|
+
name: "id",
|
|
10062
|
+
flag: "id",
|
|
10063
|
+
kind: "string",
|
|
10064
|
+
required: false,
|
|
10065
|
+
description: "Deprecated: use `serviceId`. Answered until 2027-01-28."
|
|
10066
|
+
}
|
|
10067
|
+
],
|
|
10068
|
+
inputSchema: {
|
|
10069
|
+
additionalProperties: false,
|
|
10070
|
+
type: "object",
|
|
10071
|
+
required: [],
|
|
10072
|
+
properties: {
|
|
10073
|
+
cursor: {
|
|
10074
|
+
description: "Opaque cursor returned by pageInfo; omit it to request the first page.",
|
|
10075
|
+
type: "string"
|
|
10076
|
+
},
|
|
10077
|
+
direction: {
|
|
10078
|
+
description: "Direction to traverse the stable keyset ordering from the supplied cursor.",
|
|
10079
|
+
anyOf: [
|
|
10080
|
+
{
|
|
10081
|
+
const: "forward",
|
|
10082
|
+
type: "string"
|
|
10083
|
+
},
|
|
10084
|
+
{
|
|
10085
|
+
const: "backward",
|
|
10086
|
+
type: "string"
|
|
10087
|
+
}
|
|
10088
|
+
],
|
|
10089
|
+
default: "forward"
|
|
10090
|
+
},
|
|
10091
|
+
limit: {
|
|
10092
|
+
minimum: 1,
|
|
10093
|
+
maximum: 100,
|
|
10094
|
+
description: "Maximum items returned in one page. Defaults to 25; larger reads require another cursor.",
|
|
10095
|
+
type: "integer",
|
|
10096
|
+
default: 25
|
|
10097
|
+
},
|
|
10098
|
+
serviceId: {
|
|
10099
|
+
pattern: "^[1-9][0-9]{0,14}$",
|
|
10100
|
+
type: "string"
|
|
10101
|
+
},
|
|
10102
|
+
connectionId: {
|
|
10103
|
+
pattern: "^con_[0-9A-Za-z]{26}$",
|
|
10104
|
+
type: "string"
|
|
10105
|
+
},
|
|
10106
|
+
id: {
|
|
10107
|
+
pattern: "^[1-9][0-9]{0,14}$",
|
|
10108
|
+
type: "string",
|
|
10109
|
+
deprecated: true,
|
|
10110
|
+
description: "Deprecated: use `serviceId`. Answered until 2027-01-28."
|
|
10111
|
+
}
|
|
10112
|
+
}
|
|
10113
|
+
},
|
|
10114
|
+
title: "List agenda services",
|
|
10115
|
+
description: "Use the organization gMedic account. Read-only request; provider failures are never empty results.",
|
|
10116
|
+
effect: "read",
|
|
10117
|
+
confirmation: null,
|
|
10118
|
+
hidden: false
|
|
10119
|
+
},
|
|
10120
|
+
"gmedic agendas list": {
|
|
10121
|
+
operation: "gmedic.agendas.list",
|
|
10122
|
+
sdkPath: [
|
|
10123
|
+
"gmedic",
|
|
10124
|
+
"agendas",
|
|
9901
10125
|
"list"
|
|
9902
10126
|
],
|
|
9903
10127
|
pathField: null,
|
|
@@ -20680,7 +20904,7 @@ var commands = {
|
|
|
20680
20904
|
additionalProperties: false
|
|
20681
20905
|
},
|
|
20682
20906
|
title: "Get a campaign",
|
|
20683
|
-
description: "Read one campaign: Agent, schedule, contact hours, retries, progress and, in `errorCode`, why it cannot reach anyone now. `expand=recipients` adds its recipients in the order they were added, each with attempts, next attempt, error and latest call or message; continue with `recipientsCursor` (`recipientsDirection` reads the other way). `expand=readiness` says whether it can start
|
|
20907
|
+
description: "Read one campaign: Agent, schedule, contact hours, retries, progress and, in `errorCode`, why it cannot reach anyone now. `expand=recipients` adds its recipients in the order they were added, each with attempts, next attempt, error and latest call or message; continue with `recipientsCursor` (`recipientsDirection` reads the other way). `expand=readiness` says whether it can start, lists what has to be fixed first and estimates what reaching each pending recipient once would cost in credits against the organization's balance (`estimate`), without reaching anyone. `expand=results` counts what people answered, by the Agent's data definitions with options; each recipient also says their own. Read it before `update_campaign` and send `expectedVersion`.",
|
|
20684
20908
|
effect: "read",
|
|
20685
20909
|
confirmation: null,
|
|
20686
20910
|
hidden: false
|
|
@@ -20870,7 +21094,7 @@ var commands = {
|
|
|
20870
21094
|
]
|
|
20871
21095
|
},
|
|
20872
21096
|
title: "Start a campaign",
|
|
20873
|
-
description: "Start reaching people: from now on the campaign's due recipients are called, at most `settings.channels.maxConcurrentOutboundCalls` (five by default) at once across the organization, or sent their message, a few a second. A call campaign needs an active, published voice Agent (VOICE_AGENT_NOT_READY). A WhatsApp campaign needs an active text Agent (CAMPAIGN_AGENT_NOT_READY), a line that can send (CHANNEL_NOT_READY), an approved template whose parameters fit (a `TEMPLATE_*` code), a value for every variable (CAMPAIGN_VARIABLE_MISSING) and, when the template's header is a document, image or video, the first pending recipient's own `header` file (CAMPAIGN_HEADER_MISSING). A recipient must be pending (CAMPAIGN_NO_RECIPIENTS). `get_campaign` with `expand=readiness` lists all of this beforehand. A campaign starts once: starting a running one changes nothing, and a paused one resumes with `update_campaign` and `paused: false`. Not an AI tool: it reaches real people.",
|
|
21097
|
+
description: "Start reaching people: from now on the campaign's due recipients are called, at most `settings.channels.maxConcurrentOutboundCalls` (five by default) at once across the organization, or sent their message, a few a second. A call campaign needs an active, published voice Agent (VOICE_AGENT_NOT_READY). A WhatsApp campaign needs an active text Agent (CAMPAIGN_AGENT_NOT_READY), a line that can send (CHANNEL_NOT_READY), an approved template whose parameters fit (a `TEMPLATE_*` code), a value for every variable (CAMPAIGN_VARIABLE_MISSING) and, when the template's header is a document, image or video, the first pending recipient's own `header` file (CAMPAIGN_HEADER_MISSING). A recipient must be pending (CAMPAIGN_NO_RECIPIENTS). What reaching each pending recipient once would cost is checked against the organization's balance: when the balance does not cover it and billing stops the organization's work for that, it does not start (CREDITS_EXHAUSTED). `get_campaign` with `expand=readiness` lists all of this beforehand, with the estimate. A campaign starts once: starting a running one changes nothing, and a paused one resumes with `update_campaign` and `paused: false`. Not an AI tool: it reaches real people.",
|
|
20874
21098
|
effect: "write",
|
|
20875
21099
|
confirmation: null,
|
|
20876
21100
|
hidden: false
|
|
@@ -27148,6 +27372,10 @@ var commands = {
|
|
|
27148
27372
|
type: "string",
|
|
27149
27373
|
const: "channel-restored"
|
|
27150
27374
|
},
|
|
27375
|
+
{
|
|
27376
|
+
type: "string",
|
|
27377
|
+
const: "credits-exhausted"
|
|
27378
|
+
},
|
|
27151
27379
|
{
|
|
27152
27380
|
type: "string",
|
|
27153
27381
|
const: "import-finished"
|
|
@@ -27188,7 +27416,7 @@ var commands = {
|
|
|
27188
27416
|
},
|
|
27189
27417
|
description: "Product emails enabled for this organization. All are enabled unless the organization saves a selection. An empty selection turns all of them off.",
|
|
27190
27418
|
uniqueItems: true,
|
|
27191
|
-
maxItems:
|
|
27419
|
+
maxItems: 19
|
|
27192
27420
|
},
|
|
27193
27421
|
{
|
|
27194
27422
|
type: "null"
|
|
@@ -28134,7 +28362,7 @@ var commands = {
|
|
|
28134
28362
|
flag: "name",
|
|
28135
28363
|
kind: "string",
|
|
28136
28364
|
required: true,
|
|
28137
|
-
description: "`conversations_daily`: conversations the AI took part in per day, Agent, channel type and direction, with outcomes and escalations (filters `agentId`, `channelType`). `handoffs_daily`: the conversations the AI handed to the team, per day of the handoff, Agent and person (who answered first, else the case's owner), with how many were answered, answered in time, still waiting, closed unattended or returned to the AI, and the average seconds to the first answer (filter `agentId`). `booking_details`: individual patients and appointments from explicit successful creation receipts, including specialty, paired exams, deduplication, matched patient names and later recorded cancellations; filters agentId and specialty; requires conversation read/write permission too. Historical receipts with created=true, not current provider status or all provider protocols. unverifiedCount covers explicit creations missing a stable patient/slot. `booking_outcomes`: verified saved booking receipts per completion day, Agent and integration, excluding test/import/deleted conversations; confirmed new bookings, reschedules, cancellations, failed, pending, unverified and duplicate receipts separately (filter `agentId`). Historical evidence, not current appointment status; hasMore requires splitting the range and returns no partial totals. `tool_calls_daily`: tool calls per day, Agent and tool with failures/durations (filter `agentId`). `tool_calls`: individual calls, never inputs/outputs (filter `agentId`). `assessment_results_daily`: assessments per day/definition (filter `definitionId`). `pqrsf_daily`: classification, confirmed resolution and referral-link counts from the pqrsf_* definitions, including pending/unclassified conversations, excluding tests/imports/deleted records (filters `agentId`, `channelType`); no measured filing reduction is inferred. `campaign_progress`: recipients by status (filter `campaignId`; no dates).",
|
|
28365
|
+
description: "`conversations_daily`: conversations the AI took part in per day, Agent, channel type and direction, with outcomes and escalations (filters `agentId`, `channelType`). `handoffs_daily`: the conversations the AI handed to the team, per day of the handoff, Agent and person (who answered first, else the case's owner), with how many were answered, answered in time, still waiting, closed unattended or returned to the AI, and the average seconds to the first answer (filter `agentId`). `booking_details`: individual patients and appointments from explicit successful creation receipts, including specialty, paired exams, deduplication, matched patient names and later recorded cancellations; filters agentId and specialty; requires conversation read/write permission too. Historical receipts with created=true, not current provider status or all provider protocols. unverifiedCount covers explicit creations missing a stable patient/slot. `booking_outcomes`: verified saved booking receipts per completion day, Agent and integration, excluding test/import/deleted conversations; confirmed new bookings, reschedules, cancellations, failed, pending, unverified and duplicate receipts separately (filter `agentId`). Historical evidence, not current appointment status; hasMore requires splitting the range and returns no partial totals. `tool_calls_daily`: tool calls per day, Agent and tool with failures/durations (filter `agentId`). `tool_calls`: individual calls, never inputs/outputs (filter `agentId`). `assessment_results_daily`: assessments per day/definition (filter `definitionId`). `pqrsf_daily`: classification, confirmed resolution and referral-link counts from the pqrsf_* definitions, including pending/unclassified conversations, excluding tests/imports/deleted records (filters `agentId`, `channelType`); no measured filing reduction is inferred. `campaign_progress`: recipients by status (filter `campaignId`; no dates). `usage_daily`: what was used per day, Agent, channel type, campaign and kind, with its credits at the organization's rates and, for AI, the model tier and its tokens (filters `agentId`, `channelType`, `campaignId`); test conversations count like any other.",
|
|
28138
28366
|
choices: [
|
|
28139
28367
|
"conversations_daily",
|
|
28140
28368
|
"handoffs_daily",
|
|
@@ -28144,7 +28372,8 @@ var commands = {
|
|
|
28144
28372
|
"booking_outcomes",
|
|
28145
28373
|
"booking_details",
|
|
28146
28374
|
"assessment_results_daily",
|
|
28147
|
-
"campaign_progress"
|
|
28375
|
+
"campaign_progress",
|
|
28376
|
+
"usage_daily"
|
|
28148
28377
|
]
|
|
28149
28378
|
},
|
|
28150
28379
|
{
|
|
@@ -28246,9 +28475,13 @@ var commands = {
|
|
|
28246
28475
|
{
|
|
28247
28476
|
type: "string",
|
|
28248
28477
|
const: "campaign_progress"
|
|
28478
|
+
},
|
|
28479
|
+
{
|
|
28480
|
+
type: "string",
|
|
28481
|
+
const: "usage_daily"
|
|
28249
28482
|
}
|
|
28250
28483
|
],
|
|
28251
|
-
description: "`conversations_daily`: conversations the AI took part in per day, Agent, channel type and direction, with outcomes and escalations (filters `agentId`, `channelType`). `handoffs_daily`: the conversations the AI handed to the team, per day of the handoff, Agent and person (who answered first, else the case's owner), with how many were answered, answered in time, still waiting, closed unattended or returned to the AI, and the average seconds to the first answer (filter `agentId`). `booking_details`: individual patients and appointments from explicit successful creation receipts, including specialty, paired exams, deduplication, matched patient names and later recorded cancellations; filters agentId and specialty; requires conversation read/write permission too. Historical receipts with created=true, not current provider status or all provider protocols. unverifiedCount covers explicit creations missing a stable patient/slot. `booking_outcomes`: verified saved booking receipts per completion day, Agent and integration, excluding test/import/deleted conversations; confirmed new bookings, reschedules, cancellations, failed, pending, unverified and duplicate receipts separately (filter `agentId`). Historical evidence, not current appointment status; hasMore requires splitting the range and returns no partial totals. `tool_calls_daily`: tool calls per day, Agent and tool with failures/durations (filter `agentId`). `tool_calls`: individual calls, never inputs/outputs (filter `agentId`). `assessment_results_daily`: assessments per day/definition (filter `definitionId`). `pqrsf_daily`: classification, confirmed resolution and referral-link counts from the pqrsf_* definitions, including pending/unclassified conversations, excluding tests/imports/deleted records (filters `agentId`, `channelType`); no measured filing reduction is inferred. `campaign_progress`: recipients by status (filter `campaignId`; no dates)."
|
|
28484
|
+
description: "`conversations_daily`: conversations the AI took part in per day, Agent, channel type and direction, with outcomes and escalations (filters `agentId`, `channelType`). `handoffs_daily`: the conversations the AI handed to the team, per day of the handoff, Agent and person (who answered first, else the case's owner), with how many were answered, answered in time, still waiting, closed unattended or returned to the AI, and the average seconds to the first answer (filter `agentId`). `booking_details`: individual patients and appointments from explicit successful creation receipts, including specialty, paired exams, deduplication, matched patient names and later recorded cancellations; filters agentId and specialty; requires conversation read/write permission too. Historical receipts with created=true, not current provider status or all provider protocols. unverifiedCount covers explicit creations missing a stable patient/slot. `booking_outcomes`: verified saved booking receipts per completion day, Agent and integration, excluding test/import/deleted conversations; confirmed new bookings, reschedules, cancellations, failed, pending, unverified and duplicate receipts separately (filter `agentId`). Historical evidence, not current appointment status; hasMore requires splitting the range and returns no partial totals. `tool_calls_daily`: tool calls per day, Agent and tool with failures/durations (filter `agentId`). `tool_calls`: individual calls, never inputs/outputs (filter `agentId`). `assessment_results_daily`: assessments per day/definition (filter `definitionId`). `pqrsf_daily`: classification, confirmed resolution and referral-link counts from the pqrsf_* definitions, including pending/unclassified conversations, excluding tests/imports/deleted records (filters `agentId`, `channelType`); no measured filing reduction is inferred. `campaign_progress`: recipients by status (filter `campaignId`; no dates). `usage_daily`: what was used per day, Agent, channel type, campaign and kind, with its credits at the organization's rates and, for AI, the model tier and its tokens (filters `agentId`, `channelType`, `campaignId`); test conversations count like any other."
|
|
28252
28485
|
},
|
|
28253
28486
|
to: {
|
|
28254
28487
|
type: "string",
|
|
@@ -36028,7 +36261,12 @@ var schemaComponents = {
|
|
|
36028
36261
|
"nextResetAt",
|
|
36029
36262
|
"plans",
|
|
36030
36263
|
"card",
|
|
36031
|
-
"topUp"
|
|
36264
|
+
"topUp",
|
|
36265
|
+
"autoTopUp",
|
|
36266
|
+
"lowBalanceAlert",
|
|
36267
|
+
"toppedUp",
|
|
36268
|
+
"grants",
|
|
36269
|
+
"bundles"
|
|
36032
36270
|
],
|
|
36033
36271
|
properties: {
|
|
36034
36272
|
status: {
|
|
@@ -36127,129 +36365,183 @@ var schemaComponents = {
|
|
|
36127
36365
|
},
|
|
36128
36366
|
additionalProperties: false,
|
|
36129
36367
|
description: "The credits one top-up may buy, in whole credits."
|
|
36130
|
-
}
|
|
36131
|
-
},
|
|
36132
|
-
additionalProperties: false
|
|
36133
|
-
},
|
|
36134
|
-
AccountBillingNotConfiguredFailure: {
|
|
36135
|
-
type: "object",
|
|
36136
|
-
description: "Billing is not configured yet.",
|
|
36137
|
-
additionalProperties: false,
|
|
36138
|
-
required: [
|
|
36139
|
-
"code",
|
|
36140
|
-
"message",
|
|
36141
|
-
"retryable",
|
|
36142
|
-
"data"
|
|
36143
|
-
],
|
|
36144
|
-
properties: {
|
|
36145
|
-
code: {
|
|
36146
|
-
type: "string",
|
|
36147
|
-
enum: [
|
|
36148
|
-
"BILLING_NOT_CONFIGURED"
|
|
36149
|
-
],
|
|
36150
|
-
description: "The failure code, stable across releases."
|
|
36151
|
-
},
|
|
36152
|
-
message: {
|
|
36153
|
-
type: "string",
|
|
36154
|
-
description: "What went wrong, for people; it never contains input values."
|
|
36155
|
-
},
|
|
36156
|
-
retryable: {
|
|
36157
|
-
type: "boolean",
|
|
36158
|
-
enum: [
|
|
36159
|
-
false
|
|
36160
|
-
],
|
|
36161
|
-
description: "Whether repeating the same request may succeed."
|
|
36162
|
-
},
|
|
36163
|
-
data: {
|
|
36164
|
-
$ref: "#/components/schemas/Empty"
|
|
36165
|
-
}
|
|
36166
|
-
}
|
|
36167
|
-
},
|
|
36168
|
-
AccountBillingPlan: {
|
|
36169
|
-
type: "object",
|
|
36170
|
-
required: [
|
|
36171
|
-
"id",
|
|
36172
|
-
"name",
|
|
36173
|
-
"status",
|
|
36174
|
-
"pastDue",
|
|
36175
|
-
"currentPeriodEndsAt",
|
|
36176
|
-
"price",
|
|
36177
|
-
"rates"
|
|
36178
|
-
],
|
|
36179
|
-
properties: {
|
|
36180
|
-
id: {
|
|
36181
|
-
type: "string",
|
|
36182
|
-
description: "The plan's id in Autumn, such as `arbol_prepaid` or a customer's own plan."
|
|
36183
36368
|
},
|
|
36184
|
-
|
|
36185
|
-
type: "string"
|
|
36186
|
-
},
|
|
36187
|
-
status: {
|
|
36369
|
+
autoTopUp: {
|
|
36188
36370
|
anyOf: [
|
|
36189
36371
|
{
|
|
36190
|
-
type: "
|
|
36191
|
-
|
|
36372
|
+
type: "object",
|
|
36373
|
+
required: [
|
|
36374
|
+
"enabled",
|
|
36375
|
+
"threshold",
|
|
36376
|
+
"credits",
|
|
36377
|
+
"perMonth"
|
|
36378
|
+
],
|
|
36379
|
+
properties: {
|
|
36380
|
+
enabled: {
|
|
36381
|
+
type: "boolean"
|
|
36382
|
+
},
|
|
36383
|
+
threshold: {
|
|
36384
|
+
type: "number",
|
|
36385
|
+
description: "When the balance falls below this many credits…"
|
|
36386
|
+
},
|
|
36387
|
+
credits: {
|
|
36388
|
+
type: "integer",
|
|
36389
|
+
description: "…buy this many credits with the saved card…"
|
|
36390
|
+
},
|
|
36391
|
+
perMonth: {
|
|
36392
|
+
anyOf: [
|
|
36393
|
+
{
|
|
36394
|
+
type: "integer"
|
|
36395
|
+
},
|
|
36396
|
+
{
|
|
36397
|
+
type: "null"
|
|
36398
|
+
}
|
|
36399
|
+
],
|
|
36400
|
+
description: "…at most this many times a month."
|
|
36401
|
+
}
|
|
36402
|
+
},
|
|
36403
|
+
additionalProperties: false
|
|
36192
36404
|
},
|
|
36193
36405
|
{
|
|
36194
|
-
type: "
|
|
36195
|
-
const: "scheduled"
|
|
36406
|
+
type: "null"
|
|
36196
36407
|
}
|
|
36197
|
-
]
|
|
36198
|
-
|
|
36199
|
-
pastDue: {
|
|
36200
|
-
type: "boolean",
|
|
36201
|
-
description: "A card payment of the plan failed and is still owed."
|
|
36408
|
+
],
|
|
36409
|
+
description: "The automatic top-up; null when it was never set."
|
|
36202
36410
|
},
|
|
36203
|
-
|
|
36411
|
+
lowBalanceAlert: {
|
|
36204
36412
|
anyOf: [
|
|
36205
36413
|
{
|
|
36206
|
-
type: "
|
|
36207
|
-
format: "date-time"
|
|
36414
|
+
type: "number"
|
|
36208
36415
|
},
|
|
36209
36416
|
{
|
|
36210
36417
|
type: "null"
|
|
36211
36418
|
}
|
|
36212
36419
|
],
|
|
36213
|
-
description: "
|
|
36420
|
+
description: "The balance at which the organization's administrators are emailed; null when off."
|
|
36214
36421
|
},
|
|
36215
|
-
|
|
36216
|
-
|
|
36217
|
-
|
|
36218
|
-
|
|
36219
|
-
|
|
36220
|
-
|
|
36221
|
-
|
|
36222
|
-
|
|
36223
|
-
|
|
36224
|
-
|
|
36225
|
-
|
|
36226
|
-
type: "number",
|
|
36227
|
-
description: "Fixed plan price in US dollars, before tax."
|
|
36422
|
+
toppedUp: {
|
|
36423
|
+
type: "object",
|
|
36424
|
+
required: [
|
|
36425
|
+
"thisMonth",
|
|
36426
|
+
"allTime"
|
|
36427
|
+
],
|
|
36428
|
+
properties: {
|
|
36429
|
+
thisMonth: {
|
|
36430
|
+
anyOf: [
|
|
36431
|
+
{
|
|
36432
|
+
type: "number"
|
|
36228
36433
|
},
|
|
36229
|
-
|
|
36230
|
-
type: "
|
|
36231
|
-
|
|
36434
|
+
{
|
|
36435
|
+
type: "null"
|
|
36436
|
+
}
|
|
36437
|
+
],
|
|
36438
|
+
description: "Credits paid with money this calendar month (UTC): top-ups and transfers."
|
|
36439
|
+
},
|
|
36440
|
+
allTime: {
|
|
36441
|
+
anyOf: [
|
|
36442
|
+
{
|
|
36443
|
+
type: "number"
|
|
36232
36444
|
},
|
|
36233
|
-
|
|
36234
|
-
type: "
|
|
36235
|
-
description: "Billing interval, such as month or year."
|
|
36445
|
+
{
|
|
36446
|
+
type: "null"
|
|
36236
36447
|
}
|
|
36448
|
+
],
|
|
36449
|
+
description: "Credits paid with money since the beginning."
|
|
36450
|
+
}
|
|
36451
|
+
},
|
|
36452
|
+
additionalProperties: false,
|
|
36453
|
+
description: "How much the organization has topped up; null when it could not be read."
|
|
36454
|
+
},
|
|
36455
|
+
grants: {
|
|
36456
|
+
type: "array",
|
|
36457
|
+
items: {
|
|
36458
|
+
type: "object",
|
|
36459
|
+
required: [
|
|
36460
|
+
"id",
|
|
36461
|
+
"kind",
|
|
36462
|
+
"label",
|
|
36463
|
+
"credits",
|
|
36464
|
+
"remaining",
|
|
36465
|
+
"expiresAt"
|
|
36466
|
+
],
|
|
36467
|
+
properties: {
|
|
36468
|
+
id: {
|
|
36469
|
+
type: "string"
|
|
36237
36470
|
},
|
|
36238
|
-
|
|
36471
|
+
kind: {
|
|
36472
|
+
anyOf: [
|
|
36473
|
+
{
|
|
36474
|
+
type: "string",
|
|
36475
|
+
const: "trial"
|
|
36476
|
+
},
|
|
36477
|
+
{
|
|
36478
|
+
type: "string",
|
|
36479
|
+
const: "promo"
|
|
36480
|
+
},
|
|
36481
|
+
{
|
|
36482
|
+
type: "string",
|
|
36483
|
+
const: "subsidy"
|
|
36484
|
+
},
|
|
36485
|
+
{
|
|
36486
|
+
type: "string",
|
|
36487
|
+
const: "courtesy"
|
|
36488
|
+
},
|
|
36489
|
+
{
|
|
36490
|
+
type: "string",
|
|
36491
|
+
const: "correction"
|
|
36492
|
+
},
|
|
36493
|
+
{
|
|
36494
|
+
type: "string",
|
|
36495
|
+
const: "other"
|
|
36496
|
+
}
|
|
36497
|
+
]
|
|
36498
|
+
},
|
|
36499
|
+
label: {
|
|
36500
|
+
anyOf: [
|
|
36501
|
+
{
|
|
36502
|
+
type: "string"
|
|
36503
|
+
},
|
|
36504
|
+
{
|
|
36505
|
+
type: "null"
|
|
36506
|
+
}
|
|
36507
|
+
],
|
|
36508
|
+
description: "The name Arbol gave it."
|
|
36509
|
+
},
|
|
36510
|
+
credits: {
|
|
36511
|
+
type: "number",
|
|
36512
|
+
description: "Credits it granted."
|
|
36513
|
+
},
|
|
36514
|
+
remaining: {
|
|
36515
|
+
type: "number",
|
|
36516
|
+
description: "Credits left of it."
|
|
36517
|
+
},
|
|
36518
|
+
expiresAt: {
|
|
36519
|
+
anyOf: [
|
|
36520
|
+
{
|
|
36521
|
+
type: "string",
|
|
36522
|
+
format: "date-time"
|
|
36523
|
+
},
|
|
36524
|
+
{
|
|
36525
|
+
type: "null"
|
|
36526
|
+
}
|
|
36527
|
+
],
|
|
36528
|
+
description: "When what is left of it ends."
|
|
36529
|
+
}
|
|
36239
36530
|
},
|
|
36240
|
-
|
|
36241
|
-
|
|
36242
|
-
|
|
36243
|
-
|
|
36531
|
+
additionalProperties: false
|
|
36532
|
+
},
|
|
36533
|
+
maxItems: 50,
|
|
36534
|
+
description: "Credits Arbol gave that are still in force, spent before paid credits when they end sooner."
|
|
36244
36535
|
},
|
|
36245
|
-
|
|
36536
|
+
bundles: {
|
|
36246
36537
|
type: "array",
|
|
36247
36538
|
items: {
|
|
36248
36539
|
type: "object",
|
|
36249
36540
|
required: [
|
|
36250
36541
|
"feature",
|
|
36251
|
-
"
|
|
36252
|
-
"
|
|
36542
|
+
"included",
|
|
36543
|
+
"remaining",
|
|
36544
|
+
"resetsAt"
|
|
36253
36545
|
],
|
|
36254
36546
|
properties: {
|
|
36255
36547
|
feature: {
|
|
@@ -36262,6 +36554,10 @@ var schemaComponents = {
|
|
|
36262
36554
|
type: "string",
|
|
36263
36555
|
const: "telephony_minutes"
|
|
36264
36556
|
},
|
|
36557
|
+
{
|
|
36558
|
+
type: "string",
|
|
36559
|
+
const: "telephony_cost"
|
|
36560
|
+
},
|
|
36265
36561
|
{
|
|
36266
36562
|
type: "string",
|
|
36267
36563
|
const: "whatsapp_conversations"
|
|
@@ -36290,18 +36586,250 @@ var schemaComponents = {
|
|
|
36290
36586
|
type: "string",
|
|
36291
36587
|
const: "sisben_lookups"
|
|
36292
36588
|
},
|
|
36589
|
+
{
|
|
36590
|
+
type: "string",
|
|
36591
|
+
const: "adres_lookups"
|
|
36592
|
+
},
|
|
36593
|
+
{
|
|
36594
|
+
type: "string",
|
|
36595
|
+
const: "policia_colombia_lookups"
|
|
36596
|
+
},
|
|
36293
36597
|
{
|
|
36294
36598
|
type: "string",
|
|
36295
36599
|
const: "postconsultations"
|
|
36296
36600
|
},
|
|
36601
|
+
{
|
|
36602
|
+
type: "string",
|
|
36603
|
+
const: "agenda_users"
|
|
36604
|
+
},
|
|
36605
|
+
{
|
|
36606
|
+
type: "string",
|
|
36607
|
+
const: "sms_messages"
|
|
36608
|
+
},
|
|
36297
36609
|
{
|
|
36298
36610
|
type: "string",
|
|
36299
36611
|
const: "agenda_plan"
|
|
36300
36612
|
},
|
|
36613
|
+
{
|
|
36614
|
+
type: "string",
|
|
36615
|
+
const: "support_fee"
|
|
36616
|
+
}
|
|
36617
|
+
]
|
|
36618
|
+
},
|
|
36619
|
+
included: {
|
|
36620
|
+
type: "number",
|
|
36621
|
+
description: "Units the plan includes in the period, in the fact's units."
|
|
36622
|
+
},
|
|
36623
|
+
remaining: {
|
|
36624
|
+
type: "number"
|
|
36625
|
+
},
|
|
36626
|
+
resetsAt: {
|
|
36627
|
+
anyOf: [
|
|
36628
|
+
{
|
|
36629
|
+
type: "string",
|
|
36630
|
+
format: "date-time"
|
|
36631
|
+
},
|
|
36632
|
+
{
|
|
36633
|
+
type: "null"
|
|
36634
|
+
}
|
|
36635
|
+
]
|
|
36636
|
+
}
|
|
36637
|
+
},
|
|
36638
|
+
additionalProperties: false
|
|
36639
|
+
},
|
|
36640
|
+
maxItems: 50,
|
|
36641
|
+
description: "Allowances of one fact on the plan (600 minutes a month), spent before credits."
|
|
36642
|
+
}
|
|
36643
|
+
},
|
|
36644
|
+
additionalProperties: false
|
|
36645
|
+
},
|
|
36646
|
+
AccountBillingNotConfiguredFailure: {
|
|
36647
|
+
type: "object",
|
|
36648
|
+
description: "Billing is not configured yet.",
|
|
36649
|
+
additionalProperties: false,
|
|
36650
|
+
required: [
|
|
36651
|
+
"code",
|
|
36652
|
+
"message",
|
|
36653
|
+
"retryable",
|
|
36654
|
+
"data"
|
|
36655
|
+
],
|
|
36656
|
+
properties: {
|
|
36657
|
+
code: {
|
|
36658
|
+
type: "string",
|
|
36659
|
+
enum: [
|
|
36660
|
+
"BILLING_NOT_CONFIGURED"
|
|
36661
|
+
],
|
|
36662
|
+
description: "The failure code, stable across releases."
|
|
36663
|
+
},
|
|
36664
|
+
message: {
|
|
36665
|
+
type: "string",
|
|
36666
|
+
description: "What went wrong, for people; it never contains input values."
|
|
36667
|
+
},
|
|
36668
|
+
retryable: {
|
|
36669
|
+
type: "boolean",
|
|
36670
|
+
enum: [
|
|
36671
|
+
false
|
|
36672
|
+
],
|
|
36673
|
+
description: "Whether repeating the same request may succeed."
|
|
36674
|
+
},
|
|
36675
|
+
data: {
|
|
36676
|
+
$ref: "#/components/schemas/Empty"
|
|
36677
|
+
}
|
|
36678
|
+
}
|
|
36679
|
+
},
|
|
36680
|
+
AccountBillingPlan: {
|
|
36681
|
+
type: "object",
|
|
36682
|
+
required: [
|
|
36683
|
+
"id",
|
|
36684
|
+
"name",
|
|
36685
|
+
"status",
|
|
36686
|
+
"pastDue",
|
|
36687
|
+
"currentPeriodEndsAt",
|
|
36688
|
+
"price",
|
|
36689
|
+
"rates"
|
|
36690
|
+
],
|
|
36691
|
+
properties: {
|
|
36692
|
+
id: {
|
|
36693
|
+
type: "string",
|
|
36694
|
+
description: "The plan's id, such as `arbol_prepaid` or a customer's own plan."
|
|
36695
|
+
},
|
|
36696
|
+
name: {
|
|
36697
|
+
type: "string"
|
|
36698
|
+
},
|
|
36699
|
+
status: {
|
|
36700
|
+
anyOf: [
|
|
36701
|
+
{
|
|
36702
|
+
type: "string",
|
|
36703
|
+
const: "active"
|
|
36704
|
+
},
|
|
36705
|
+
{
|
|
36706
|
+
type: "string",
|
|
36707
|
+
const: "scheduled"
|
|
36708
|
+
}
|
|
36709
|
+
]
|
|
36710
|
+
},
|
|
36711
|
+
pastDue: {
|
|
36712
|
+
type: "boolean",
|
|
36713
|
+
description: "A card payment of the plan failed and is still owed."
|
|
36714
|
+
},
|
|
36715
|
+
currentPeriodEndsAt: {
|
|
36716
|
+
anyOf: [
|
|
36717
|
+
{
|
|
36718
|
+
type: "string",
|
|
36719
|
+
format: "date-time"
|
|
36720
|
+
},
|
|
36721
|
+
{
|
|
36722
|
+
type: "null"
|
|
36723
|
+
}
|
|
36724
|
+
],
|
|
36725
|
+
description: "When the current period ends."
|
|
36726
|
+
},
|
|
36727
|
+
price: {
|
|
36728
|
+
anyOf: [
|
|
36729
|
+
{
|
|
36730
|
+
type: "object",
|
|
36731
|
+
required: [
|
|
36732
|
+
"amount",
|
|
36733
|
+
"currency",
|
|
36734
|
+
"interval"
|
|
36735
|
+
],
|
|
36736
|
+
properties: {
|
|
36737
|
+
amount: {
|
|
36738
|
+
type: "number",
|
|
36739
|
+
description: "Fixed plan price in US dollars, before tax."
|
|
36740
|
+
},
|
|
36741
|
+
currency: {
|
|
36742
|
+
type: "string",
|
|
36743
|
+
const: "USD"
|
|
36744
|
+
},
|
|
36745
|
+
interval: {
|
|
36746
|
+
type: "string",
|
|
36747
|
+
description: "Billing interval, such as month or year."
|
|
36748
|
+
}
|
|
36749
|
+
},
|
|
36750
|
+
additionalProperties: false
|
|
36751
|
+
},
|
|
36752
|
+
{
|
|
36753
|
+
type: "null"
|
|
36754
|
+
}
|
|
36755
|
+
]
|
|
36756
|
+
},
|
|
36757
|
+
rates: {
|
|
36758
|
+
type: "array",
|
|
36759
|
+
items: {
|
|
36760
|
+
type: "object",
|
|
36761
|
+
required: [
|
|
36762
|
+
"feature",
|
|
36763
|
+
"creditsPerUnit",
|
|
36764
|
+
"conditions"
|
|
36765
|
+
],
|
|
36766
|
+
properties: {
|
|
36767
|
+
feature: {
|
|
36768
|
+
anyOf: [
|
|
36769
|
+
{
|
|
36770
|
+
type: "string",
|
|
36771
|
+
const: "voice_minutes"
|
|
36772
|
+
},
|
|
36773
|
+
{
|
|
36774
|
+
type: "string",
|
|
36775
|
+
const: "telephony_minutes"
|
|
36776
|
+
},
|
|
36777
|
+
{
|
|
36778
|
+
type: "string",
|
|
36779
|
+
const: "telephony_cost"
|
|
36780
|
+
},
|
|
36781
|
+
{
|
|
36782
|
+
type: "string",
|
|
36783
|
+
const: "whatsapp_conversations"
|
|
36784
|
+
},
|
|
36785
|
+
{
|
|
36786
|
+
type: "string",
|
|
36787
|
+
const: "whatsapp_messages"
|
|
36788
|
+
},
|
|
36789
|
+
{
|
|
36790
|
+
type: "string",
|
|
36791
|
+
const: "whatsapp_templates"
|
|
36792
|
+
},
|
|
36793
|
+
{
|
|
36794
|
+
type: "string",
|
|
36795
|
+
const: "tool_calls"
|
|
36796
|
+
},
|
|
36797
|
+
{
|
|
36798
|
+
type: "string",
|
|
36799
|
+
const: "ai_cost"
|
|
36800
|
+
},
|
|
36801
|
+
{
|
|
36802
|
+
type: "string",
|
|
36803
|
+
const: "phone_numbers"
|
|
36804
|
+
},
|
|
36805
|
+
{
|
|
36806
|
+
type: "string",
|
|
36807
|
+
const: "sisben_lookups"
|
|
36808
|
+
},
|
|
36809
|
+
{
|
|
36810
|
+
type: "string",
|
|
36811
|
+
const: "adres_lookups"
|
|
36812
|
+
},
|
|
36813
|
+
{
|
|
36814
|
+
type: "string",
|
|
36815
|
+
const: "policia_colombia_lookups"
|
|
36816
|
+
},
|
|
36817
|
+
{
|
|
36818
|
+
type: "string",
|
|
36819
|
+
const: "postconsultations"
|
|
36820
|
+
},
|
|
36301
36821
|
{
|
|
36302
36822
|
type: "string",
|
|
36303
36823
|
const: "agenda_users"
|
|
36304
36824
|
},
|
|
36825
|
+
{
|
|
36826
|
+
type: "string",
|
|
36827
|
+
const: "sms_messages"
|
|
36828
|
+
},
|
|
36829
|
+
{
|
|
36830
|
+
type: "string",
|
|
36831
|
+
const: "agenda_plan"
|
|
36832
|
+
},
|
|
36305
36833
|
{
|
|
36306
36834
|
type: "string",
|
|
36307
36835
|
const: "support_fee"
|
|
@@ -36336,7 +36864,7 @@ var schemaComponents = {
|
|
|
36336
36864
|
properties: {
|
|
36337
36865
|
url: {
|
|
36338
36866
|
type: "string",
|
|
36339
|
-
description: "
|
|
36867
|
+
description: "The payment processor's portal, for the organization's cards and receipts."
|
|
36340
36868
|
}
|
|
36341
36869
|
},
|
|
36342
36870
|
additionalProperties: false
|
|
@@ -36431,6 +36959,68 @@ var schemaComponents = {
|
|
|
36431
36959
|
}
|
|
36432
36960
|
}
|
|
36433
36961
|
},
|
|
36962
|
+
AccountBillingRefusedError: {
|
|
36963
|
+
type: "object",
|
|
36964
|
+
description: "A failed answer.",
|
|
36965
|
+
additionalProperties: false,
|
|
36966
|
+
required: [
|
|
36967
|
+
"success",
|
|
36968
|
+
"data",
|
|
36969
|
+
"error",
|
|
36970
|
+
"metadata"
|
|
36971
|
+
],
|
|
36972
|
+
properties: {
|
|
36973
|
+
success: {
|
|
36974
|
+
type: "boolean",
|
|
36975
|
+
enum: [
|
|
36976
|
+
false
|
|
36977
|
+
]
|
|
36978
|
+
},
|
|
36979
|
+
data: {
|
|
36980
|
+
const: null
|
|
36981
|
+
},
|
|
36982
|
+
error: {
|
|
36983
|
+
$ref: "#/components/schemas/AccountBillingRefusedFailure"
|
|
36984
|
+
},
|
|
36985
|
+
metadata: {
|
|
36986
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
36987
|
+
}
|
|
36988
|
+
}
|
|
36989
|
+
},
|
|
36990
|
+
AccountBillingRefusedFailure: {
|
|
36991
|
+
type: "object",
|
|
36992
|
+
description: "The billing service refused the change; nothing was changed.",
|
|
36993
|
+
additionalProperties: false,
|
|
36994
|
+
required: [
|
|
36995
|
+
"code",
|
|
36996
|
+
"message",
|
|
36997
|
+
"retryable",
|
|
36998
|
+
"data"
|
|
36999
|
+
],
|
|
37000
|
+
properties: {
|
|
37001
|
+
code: {
|
|
37002
|
+
type: "string",
|
|
37003
|
+
enum: [
|
|
37004
|
+
"BILLING_REFUSED"
|
|
37005
|
+
],
|
|
37006
|
+
description: "The failure code, stable across releases."
|
|
37007
|
+
},
|
|
37008
|
+
message: {
|
|
37009
|
+
type: "string",
|
|
37010
|
+
description: "What went wrong, for people; it never contains input values."
|
|
37011
|
+
},
|
|
37012
|
+
retryable: {
|
|
37013
|
+
type: "boolean",
|
|
37014
|
+
enum: [
|
|
37015
|
+
false
|
|
37016
|
+
],
|
|
37017
|
+
description: "Whether repeating the same request may succeed."
|
|
37018
|
+
},
|
|
37019
|
+
data: {
|
|
37020
|
+
$ref: "#/components/schemas/Empty"
|
|
37021
|
+
}
|
|
37022
|
+
}
|
|
37023
|
+
},
|
|
36434
37024
|
AccountBillingResponse: {
|
|
36435
37025
|
type: "object",
|
|
36436
37026
|
description: "A successful answer.",
|
|
@@ -38186,6 +38776,55 @@ var schemaComponents = {
|
|
|
38186
38776
|
}
|
|
38187
38777
|
}
|
|
38188
38778
|
},
|
|
38779
|
+
AccountCreatePaymentMethodSetupServiceUnavailableError: {
|
|
38780
|
+
type: "object",
|
|
38781
|
+
description: "A failed answer.",
|
|
38782
|
+
additionalProperties: false,
|
|
38783
|
+
required: [
|
|
38784
|
+
"success",
|
|
38785
|
+
"data",
|
|
38786
|
+
"error",
|
|
38787
|
+
"metadata"
|
|
38788
|
+
],
|
|
38789
|
+
properties: {
|
|
38790
|
+
success: {
|
|
38791
|
+
type: "boolean",
|
|
38792
|
+
enum: [
|
|
38793
|
+
false
|
|
38794
|
+
]
|
|
38795
|
+
},
|
|
38796
|
+
data: {
|
|
38797
|
+
const: null
|
|
38798
|
+
},
|
|
38799
|
+
error: {
|
|
38800
|
+
$ref: "#/components/schemas/AccountCreatePaymentMethodSetupServiceUnavailableFailure"
|
|
38801
|
+
},
|
|
38802
|
+
metadata: {
|
|
38803
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
38804
|
+
}
|
|
38805
|
+
}
|
|
38806
|
+
},
|
|
38807
|
+
AccountCreatePaymentMethodSetupServiceUnavailableFailure: {
|
|
38808
|
+
oneOf: [
|
|
38809
|
+
{
|
|
38810
|
+
$ref: "#/components/schemas/UpstreamUnavailableFailure"
|
|
38811
|
+
},
|
|
38812
|
+
{
|
|
38813
|
+
$ref: "#/components/schemas/AccountBillingNotConfiguredFailure"
|
|
38814
|
+
},
|
|
38815
|
+
{
|
|
38816
|
+
$ref: "#/components/schemas/AccountBillingUnavailableFailure"
|
|
38817
|
+
}
|
|
38818
|
+
],
|
|
38819
|
+
discriminator: {
|
|
38820
|
+
propertyName: "code",
|
|
38821
|
+
mapping: {
|
|
38822
|
+
UPSTREAM_UNAVAILABLE: "#/components/schemas/UpstreamUnavailableFailure",
|
|
38823
|
+
BILLING_NOT_CONFIGURED: "#/components/schemas/AccountBillingNotConfiguredFailure",
|
|
38824
|
+
BILLING_UNAVAILABLE: "#/components/schemas/AccountBillingUnavailableFailure"
|
|
38825
|
+
}
|
|
38826
|
+
}
|
|
38827
|
+
},
|
|
38189
38828
|
AccountCreateServerBody: {
|
|
38190
38829
|
type: "object",
|
|
38191
38830
|
required: [
|
|
@@ -39169,6 +39808,68 @@ var schemaComponents = {
|
|
|
39169
39808
|
}
|
|
39170
39809
|
}
|
|
39171
39810
|
},
|
|
39811
|
+
AccountInsufficientCreditsError: {
|
|
39812
|
+
type: "object",
|
|
39813
|
+
description: "A failed answer.",
|
|
39814
|
+
additionalProperties: false,
|
|
39815
|
+
required: [
|
|
39816
|
+
"success",
|
|
39817
|
+
"data",
|
|
39818
|
+
"error",
|
|
39819
|
+
"metadata"
|
|
39820
|
+
],
|
|
39821
|
+
properties: {
|
|
39822
|
+
success: {
|
|
39823
|
+
type: "boolean",
|
|
39824
|
+
enum: [
|
|
39825
|
+
false
|
|
39826
|
+
]
|
|
39827
|
+
},
|
|
39828
|
+
data: {
|
|
39829
|
+
const: null
|
|
39830
|
+
},
|
|
39831
|
+
error: {
|
|
39832
|
+
$ref: "#/components/schemas/AccountInsufficientCreditsFailure"
|
|
39833
|
+
},
|
|
39834
|
+
metadata: {
|
|
39835
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
39836
|
+
}
|
|
39837
|
+
}
|
|
39838
|
+
},
|
|
39839
|
+
AccountInsufficientCreditsFailure: {
|
|
39840
|
+
type: "object",
|
|
39841
|
+
description: "The organization's wallet has no credits for this; nothing was changed. Top up, then try again.",
|
|
39842
|
+
additionalProperties: false,
|
|
39843
|
+
required: [
|
|
39844
|
+
"code",
|
|
39845
|
+
"message",
|
|
39846
|
+
"retryable",
|
|
39847
|
+
"data"
|
|
39848
|
+
],
|
|
39849
|
+
properties: {
|
|
39850
|
+
code: {
|
|
39851
|
+
type: "string",
|
|
39852
|
+
enum: [
|
|
39853
|
+
"INSUFFICIENT_CREDITS"
|
|
39854
|
+
],
|
|
39855
|
+
description: "The failure code, stable across releases."
|
|
39856
|
+
},
|
|
39857
|
+
message: {
|
|
39858
|
+
type: "string",
|
|
39859
|
+
description: "What went wrong, for people; it never contains input values."
|
|
39860
|
+
},
|
|
39861
|
+
retryable: {
|
|
39862
|
+
type: "boolean",
|
|
39863
|
+
enum: [
|
|
39864
|
+
false
|
|
39865
|
+
],
|
|
39866
|
+
description: "Whether repeating the same request may succeed."
|
|
39867
|
+
},
|
|
39868
|
+
data: {
|
|
39869
|
+
$ref: "#/components/schemas/Empty"
|
|
39870
|
+
}
|
|
39871
|
+
}
|
|
39872
|
+
},
|
|
39172
39873
|
AccountIntegrationUnsupportedError: {
|
|
39173
39874
|
type: "object",
|
|
39174
39875
|
description: "A failed answer.",
|
|
@@ -39452,6 +40153,275 @@ var schemaComponents = {
|
|
|
39452
40153
|
}
|
|
39453
40154
|
}
|
|
39454
40155
|
},
|
|
40156
|
+
AccountInvoice: {
|
|
40157
|
+
type: "object",
|
|
40158
|
+
required: [
|
|
40159
|
+
"id",
|
|
40160
|
+
"source",
|
|
40161
|
+
"number",
|
|
40162
|
+
"issuedAt",
|
|
40163
|
+
"periodStartsAt",
|
|
40164
|
+
"periodEndsAt",
|
|
40165
|
+
"total",
|
|
40166
|
+
"currency",
|
|
40167
|
+
"status",
|
|
40168
|
+
"hostedUrl",
|
|
40169
|
+
"files",
|
|
40170
|
+
"taxAuthorityNumber"
|
|
40171
|
+
],
|
|
40172
|
+
properties: {
|
|
40173
|
+
id: {
|
|
40174
|
+
type: "string"
|
|
40175
|
+
},
|
|
40176
|
+
source: {
|
|
40177
|
+
anyOf: [
|
|
40178
|
+
{
|
|
40179
|
+
type: "string",
|
|
40180
|
+
const: "generated"
|
|
40181
|
+
},
|
|
40182
|
+
{
|
|
40183
|
+
type: "string",
|
|
40184
|
+
const: "uploaded"
|
|
40185
|
+
}
|
|
40186
|
+
],
|
|
40187
|
+
description: "`generated`: issued by the payment processor, opened on `hostedUrl`; `uploaded`: issued by Arbol, downloaded as a file."
|
|
40188
|
+
},
|
|
40189
|
+
number: {
|
|
40190
|
+
anyOf: [
|
|
40191
|
+
{
|
|
40192
|
+
type: "string"
|
|
40193
|
+
},
|
|
40194
|
+
{
|
|
40195
|
+
type: "null"
|
|
40196
|
+
}
|
|
40197
|
+
]
|
|
40198
|
+
},
|
|
40199
|
+
issuedAt: {
|
|
40200
|
+
anyOf: [
|
|
40201
|
+
{
|
|
40202
|
+
type: "string",
|
|
40203
|
+
format: "date-time"
|
|
40204
|
+
},
|
|
40205
|
+
{
|
|
40206
|
+
type: "null"
|
|
40207
|
+
}
|
|
40208
|
+
]
|
|
40209
|
+
},
|
|
40210
|
+
periodStartsAt: {
|
|
40211
|
+
anyOf: [
|
|
40212
|
+
{
|
|
40213
|
+
type: "string",
|
|
40214
|
+
format: "date-time"
|
|
40215
|
+
},
|
|
40216
|
+
{
|
|
40217
|
+
type: "null"
|
|
40218
|
+
}
|
|
40219
|
+
]
|
|
40220
|
+
},
|
|
40221
|
+
periodEndsAt: {
|
|
40222
|
+
anyOf: [
|
|
40223
|
+
{
|
|
40224
|
+
type: "string",
|
|
40225
|
+
format: "date-time"
|
|
40226
|
+
},
|
|
40227
|
+
{
|
|
40228
|
+
type: "null"
|
|
40229
|
+
}
|
|
40230
|
+
]
|
|
40231
|
+
},
|
|
40232
|
+
total: {
|
|
40233
|
+
anyOf: [
|
|
40234
|
+
{
|
|
40235
|
+
type: "number"
|
|
40236
|
+
},
|
|
40237
|
+
{
|
|
40238
|
+
type: "null"
|
|
40239
|
+
}
|
|
40240
|
+
]
|
|
40241
|
+
},
|
|
40242
|
+
currency: {
|
|
40243
|
+
type: "string",
|
|
40244
|
+
description: "ISO 4217, such as USD."
|
|
40245
|
+
},
|
|
40246
|
+
status: {
|
|
40247
|
+
anyOf: [
|
|
40248
|
+
{
|
|
40249
|
+
type: "string",
|
|
40250
|
+
const: "open"
|
|
40251
|
+
},
|
|
40252
|
+
{
|
|
40253
|
+
type: "string",
|
|
40254
|
+
const: "paid"
|
|
40255
|
+
},
|
|
40256
|
+
{
|
|
40257
|
+
type: "string",
|
|
40258
|
+
const: "void"
|
|
40259
|
+
},
|
|
40260
|
+
{
|
|
40261
|
+
type: "string",
|
|
40262
|
+
const: "uncollectible"
|
|
40263
|
+
}
|
|
40264
|
+
]
|
|
40265
|
+
},
|
|
40266
|
+
hostedUrl: {
|
|
40267
|
+
anyOf: [
|
|
40268
|
+
{
|
|
40269
|
+
type: "string"
|
|
40270
|
+
},
|
|
40271
|
+
{
|
|
40272
|
+
type: "null"
|
|
40273
|
+
}
|
|
40274
|
+
],
|
|
40275
|
+
description: "The generated invoice's own page."
|
|
40276
|
+
},
|
|
40277
|
+
files: {
|
|
40278
|
+
type: "array",
|
|
40279
|
+
items: {
|
|
40280
|
+
anyOf: [
|
|
40281
|
+
{
|
|
40282
|
+
type: "string",
|
|
40283
|
+
const: "pdf"
|
|
40284
|
+
},
|
|
40285
|
+
{
|
|
40286
|
+
type: "string",
|
|
40287
|
+
const: "xml"
|
|
40288
|
+
}
|
|
40289
|
+
]
|
|
40290
|
+
},
|
|
40291
|
+
maxItems: 2,
|
|
40292
|
+
description: "The files of an uploaded invoice, served by GET /v1/invoice-files/{invoiceId}."
|
|
40293
|
+
},
|
|
40294
|
+
taxAuthorityNumber: {
|
|
40295
|
+
anyOf: [
|
|
40296
|
+
{
|
|
40297
|
+
type: "string"
|
|
40298
|
+
},
|
|
40299
|
+
{
|
|
40300
|
+
type: "null"
|
|
40301
|
+
}
|
|
40302
|
+
],
|
|
40303
|
+
description: "An electronic invoice's number at the tax authority (Colombia's CUFE)."
|
|
40304
|
+
}
|
|
40305
|
+
},
|
|
40306
|
+
additionalProperties: false
|
|
40307
|
+
},
|
|
40308
|
+
AccountInvoiceNotFoundError: {
|
|
40309
|
+
type: "object",
|
|
40310
|
+
description: "A failed answer.",
|
|
40311
|
+
additionalProperties: false,
|
|
40312
|
+
required: [
|
|
40313
|
+
"success",
|
|
40314
|
+
"data",
|
|
40315
|
+
"error",
|
|
40316
|
+
"metadata"
|
|
40317
|
+
],
|
|
40318
|
+
properties: {
|
|
40319
|
+
success: {
|
|
40320
|
+
type: "boolean",
|
|
40321
|
+
enum: [
|
|
40322
|
+
false
|
|
40323
|
+
]
|
|
40324
|
+
},
|
|
40325
|
+
data: {
|
|
40326
|
+
const: null
|
|
40327
|
+
},
|
|
40328
|
+
error: {
|
|
40329
|
+
$ref: "#/components/schemas/AccountInvoiceNotFoundFailure"
|
|
40330
|
+
},
|
|
40331
|
+
metadata: {
|
|
40332
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
40333
|
+
}
|
|
40334
|
+
}
|
|
40335
|
+
},
|
|
40336
|
+
AccountInvoiceNotFoundFailure: {
|
|
40337
|
+
type: "object",
|
|
40338
|
+
description: "This organization has no such invoice file.",
|
|
40339
|
+
additionalProperties: false,
|
|
40340
|
+
required: [
|
|
40341
|
+
"code",
|
|
40342
|
+
"message",
|
|
40343
|
+
"retryable",
|
|
40344
|
+
"data"
|
|
40345
|
+
],
|
|
40346
|
+
properties: {
|
|
40347
|
+
code: {
|
|
40348
|
+
type: "string",
|
|
40349
|
+
enum: [
|
|
40350
|
+
"INVOICE_NOT_FOUND"
|
|
40351
|
+
],
|
|
40352
|
+
description: "The failure code, stable across releases."
|
|
40353
|
+
},
|
|
40354
|
+
message: {
|
|
40355
|
+
type: "string",
|
|
40356
|
+
description: "What went wrong, for people; it never contains input values."
|
|
40357
|
+
},
|
|
40358
|
+
retryable: {
|
|
40359
|
+
type: "boolean",
|
|
40360
|
+
enum: [
|
|
40361
|
+
false
|
|
40362
|
+
],
|
|
40363
|
+
description: "Whether repeating the same request may succeed."
|
|
40364
|
+
},
|
|
40365
|
+
data: {
|
|
40366
|
+
$ref: "#/components/schemas/Empty"
|
|
40367
|
+
}
|
|
40368
|
+
}
|
|
40369
|
+
},
|
|
40370
|
+
AccountInvoicePage: {
|
|
40371
|
+
type: "object",
|
|
40372
|
+
required: [
|
|
40373
|
+
"data",
|
|
40374
|
+
"object",
|
|
40375
|
+
"pageInfo"
|
|
40376
|
+
],
|
|
40377
|
+
properties: {
|
|
40378
|
+
data: {
|
|
40379
|
+
type: "array",
|
|
40380
|
+
items: {
|
|
40381
|
+
$ref: "#/components/schemas/AccountInvoice"
|
|
40382
|
+
},
|
|
40383
|
+
description: "Items admitted by this resource contract within the verified organization."
|
|
40384
|
+
},
|
|
40385
|
+
object: {
|
|
40386
|
+
type: "string",
|
|
40387
|
+
const: "list",
|
|
40388
|
+
description: "Discriminator for a resource list response."
|
|
40389
|
+
},
|
|
40390
|
+
pageInfo: {
|
|
40391
|
+
$ref: "#/components/schemas/PageInfo",
|
|
40392
|
+
description: "Opaque navigation cursors for this page’s stable keyset order."
|
|
40393
|
+
}
|
|
40394
|
+
},
|
|
40395
|
+
additionalProperties: false
|
|
40396
|
+
},
|
|
40397
|
+
AccountInvoicePageResponse: {
|
|
40398
|
+
type: "object",
|
|
40399
|
+
description: "A successful answer.",
|
|
40400
|
+
additionalProperties: false,
|
|
40401
|
+
required: [
|
|
40402
|
+
"success",
|
|
40403
|
+
"data",
|
|
40404
|
+
"error",
|
|
40405
|
+
"metadata"
|
|
40406
|
+
],
|
|
40407
|
+
properties: {
|
|
40408
|
+
success: {
|
|
40409
|
+
type: "boolean",
|
|
40410
|
+
enum: [
|
|
40411
|
+
true
|
|
40412
|
+
]
|
|
40413
|
+
},
|
|
40414
|
+
data: {
|
|
40415
|
+
$ref: "#/components/schemas/AccountInvoicePage"
|
|
40416
|
+
},
|
|
40417
|
+
error: {
|
|
40418
|
+
const: null
|
|
40419
|
+
},
|
|
40420
|
+
metadata: {
|
|
40421
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
40422
|
+
}
|
|
40423
|
+
}
|
|
40424
|
+
},
|
|
39455
40425
|
AccountIssuedApiKey: {
|
|
39456
40426
|
type: "object",
|
|
39457
40427
|
required: [
|
|
@@ -39629,6 +40599,55 @@ var schemaComponents = {
|
|
|
39629
40599
|
}
|
|
39630
40600
|
}
|
|
39631
40601
|
},
|
|
40602
|
+
AccountListInvoicesServiceUnavailableError: {
|
|
40603
|
+
type: "object",
|
|
40604
|
+
description: "A failed answer.",
|
|
40605
|
+
additionalProperties: false,
|
|
40606
|
+
required: [
|
|
40607
|
+
"success",
|
|
40608
|
+
"data",
|
|
40609
|
+
"error",
|
|
40610
|
+
"metadata"
|
|
40611
|
+
],
|
|
40612
|
+
properties: {
|
|
40613
|
+
success: {
|
|
40614
|
+
type: "boolean",
|
|
40615
|
+
enum: [
|
|
40616
|
+
false
|
|
40617
|
+
]
|
|
40618
|
+
},
|
|
40619
|
+
data: {
|
|
40620
|
+
const: null
|
|
40621
|
+
},
|
|
40622
|
+
error: {
|
|
40623
|
+
$ref: "#/components/schemas/AccountListInvoicesServiceUnavailableFailure"
|
|
40624
|
+
},
|
|
40625
|
+
metadata: {
|
|
40626
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
40627
|
+
}
|
|
40628
|
+
}
|
|
40629
|
+
},
|
|
40630
|
+
AccountListInvoicesServiceUnavailableFailure: {
|
|
40631
|
+
oneOf: [
|
|
40632
|
+
{
|
|
40633
|
+
$ref: "#/components/schemas/UpstreamUnavailableFailure"
|
|
40634
|
+
},
|
|
40635
|
+
{
|
|
40636
|
+
$ref: "#/components/schemas/AccountBillingNotConfiguredFailure"
|
|
40637
|
+
},
|
|
40638
|
+
{
|
|
40639
|
+
$ref: "#/components/schemas/AccountBillingUnavailableFailure"
|
|
40640
|
+
}
|
|
40641
|
+
],
|
|
40642
|
+
discriminator: {
|
|
40643
|
+
propertyName: "code",
|
|
40644
|
+
mapping: {
|
|
40645
|
+
UPSTREAM_UNAVAILABLE: "#/components/schemas/UpstreamUnavailableFailure",
|
|
40646
|
+
BILLING_NOT_CONFIGURED: "#/components/schemas/AccountBillingNotConfiguredFailure",
|
|
40647
|
+
BILLING_UNAVAILABLE: "#/components/schemas/AccountBillingUnavailableFailure"
|
|
40648
|
+
}
|
|
40649
|
+
}
|
|
40650
|
+
},
|
|
39632
40651
|
AccountListMembersServiceUnavailableError: {
|
|
39633
40652
|
type: "object",
|
|
39634
40653
|
description: "A failed answer.",
|
|
@@ -40282,6 +41301,47 @@ var schemaComponents = {
|
|
|
40282
41301
|
}
|
|
40283
41302
|
}
|
|
40284
41303
|
},
|
|
41304
|
+
AccountPaymentMethodSetup: {
|
|
41305
|
+
type: "object",
|
|
41306
|
+
required: [
|
|
41307
|
+
"url"
|
|
41308
|
+
],
|
|
41309
|
+
properties: {
|
|
41310
|
+
url: {
|
|
41311
|
+
type: "string",
|
|
41312
|
+
description: "The payment processor's page to add or change the card, with no purchase."
|
|
41313
|
+
}
|
|
41314
|
+
},
|
|
41315
|
+
additionalProperties: false
|
|
41316
|
+
},
|
|
41317
|
+
AccountPaymentMethodSetupResponse: {
|
|
41318
|
+
type: "object",
|
|
41319
|
+
description: "A successful answer.",
|
|
41320
|
+
additionalProperties: false,
|
|
41321
|
+
required: [
|
|
41322
|
+
"success",
|
|
41323
|
+
"data",
|
|
41324
|
+
"error",
|
|
41325
|
+
"metadata"
|
|
41326
|
+
],
|
|
41327
|
+
properties: {
|
|
41328
|
+
success: {
|
|
41329
|
+
type: "boolean",
|
|
41330
|
+
enum: [
|
|
41331
|
+
true
|
|
41332
|
+
]
|
|
41333
|
+
},
|
|
41334
|
+
data: {
|
|
41335
|
+
$ref: "#/components/schemas/AccountPaymentMethodSetup"
|
|
41336
|
+
},
|
|
41337
|
+
error: {
|
|
41338
|
+
const: null
|
|
41339
|
+
},
|
|
41340
|
+
metadata: {
|
|
41341
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
41342
|
+
}
|
|
41343
|
+
}
|
|
41344
|
+
},
|
|
40285
41345
|
AccountPermission: {
|
|
40286
41346
|
type: "object",
|
|
40287
41347
|
required: [
|
|
@@ -41551,6 +42611,107 @@ var schemaComponents = {
|
|
|
41551
42611
|
}
|
|
41552
42612
|
}
|
|
41553
42613
|
},
|
|
42614
|
+
AccountUpdateBillingBody: {
|
|
42615
|
+
type: "object",
|
|
42616
|
+
properties: {
|
|
42617
|
+
autoTopUp: {
|
|
42618
|
+
type: "object",
|
|
42619
|
+
required: [
|
|
42620
|
+
"enabled",
|
|
42621
|
+
"threshold",
|
|
42622
|
+
"credits",
|
|
42623
|
+
"perMonth"
|
|
42624
|
+
],
|
|
42625
|
+
properties: {
|
|
42626
|
+
enabled: {
|
|
42627
|
+
type: "boolean"
|
|
42628
|
+
},
|
|
42629
|
+
threshold: {
|
|
42630
|
+
type: "number",
|
|
42631
|
+
minimum: 0,
|
|
42632
|
+
maximum: 1e5,
|
|
42633
|
+
description: "When the balance falls below this…"
|
|
42634
|
+
},
|
|
42635
|
+
credits: {
|
|
42636
|
+
type: "integer",
|
|
42637
|
+
minimum: 10,
|
|
42638
|
+
maximum: 1e4,
|
|
42639
|
+
description: "…buy this many credits with the saved card…"
|
|
42640
|
+
},
|
|
42641
|
+
perMonth: {
|
|
42642
|
+
type: "integer",
|
|
42643
|
+
minimum: 1,
|
|
42644
|
+
maximum: 31,
|
|
42645
|
+
description: "…at most this many times a month."
|
|
42646
|
+
}
|
|
42647
|
+
},
|
|
42648
|
+
additionalProperties: false
|
|
42649
|
+
},
|
|
42650
|
+
lowBalanceAlert: {
|
|
42651
|
+
anyOf: [
|
|
42652
|
+
{
|
|
42653
|
+
type: "number",
|
|
42654
|
+
minimum: 0,
|
|
42655
|
+
maximum: 1e5
|
|
42656
|
+
},
|
|
42657
|
+
{
|
|
42658
|
+
type: "null"
|
|
42659
|
+
}
|
|
42660
|
+
],
|
|
42661
|
+
description: "The balance at which administrators are emailed; null turns it off."
|
|
42662
|
+
}
|
|
42663
|
+
},
|
|
42664
|
+
additionalProperties: false
|
|
42665
|
+
},
|
|
42666
|
+
AccountUpdateBillingServiceUnavailableError: {
|
|
42667
|
+
type: "object",
|
|
42668
|
+
description: "A failed answer.",
|
|
42669
|
+
additionalProperties: false,
|
|
42670
|
+
required: [
|
|
42671
|
+
"success",
|
|
42672
|
+
"data",
|
|
42673
|
+
"error",
|
|
42674
|
+
"metadata"
|
|
42675
|
+
],
|
|
42676
|
+
properties: {
|
|
42677
|
+
success: {
|
|
42678
|
+
type: "boolean",
|
|
42679
|
+
enum: [
|
|
42680
|
+
false
|
|
42681
|
+
]
|
|
42682
|
+
},
|
|
42683
|
+
data: {
|
|
42684
|
+
const: null
|
|
42685
|
+
},
|
|
42686
|
+
error: {
|
|
42687
|
+
$ref: "#/components/schemas/AccountUpdateBillingServiceUnavailableFailure"
|
|
42688
|
+
},
|
|
42689
|
+
metadata: {
|
|
42690
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
42691
|
+
}
|
|
42692
|
+
}
|
|
42693
|
+
},
|
|
42694
|
+
AccountUpdateBillingServiceUnavailableFailure: {
|
|
42695
|
+
oneOf: [
|
|
42696
|
+
{
|
|
42697
|
+
$ref: "#/components/schemas/UpstreamUnavailableFailure"
|
|
42698
|
+
},
|
|
42699
|
+
{
|
|
42700
|
+
$ref: "#/components/schemas/AccountBillingNotConfiguredFailure"
|
|
42701
|
+
},
|
|
42702
|
+
{
|
|
42703
|
+
$ref: "#/components/schemas/AccountBillingUnavailableFailure"
|
|
42704
|
+
}
|
|
42705
|
+
],
|
|
42706
|
+
discriminator: {
|
|
42707
|
+
propertyName: "code",
|
|
42708
|
+
mapping: {
|
|
42709
|
+
UPSTREAM_UNAVAILABLE: "#/components/schemas/UpstreamUnavailableFailure",
|
|
42710
|
+
BILLING_NOT_CONFIGURED: "#/components/schemas/AccountBillingNotConfiguredFailure",
|
|
42711
|
+
BILLING_UNAVAILABLE: "#/components/schemas/AccountBillingUnavailableFailure"
|
|
42712
|
+
}
|
|
42713
|
+
}
|
|
42714
|
+
},
|
|
41554
42715
|
AccountUpdateMemberBody: {
|
|
41555
42716
|
type: "object",
|
|
41556
42717
|
required: [
|
|
@@ -41766,6 +42927,7 @@ var schemaComponents = {
|
|
|
41766
42927
|
"feature",
|
|
41767
42928
|
"units",
|
|
41768
42929
|
"events",
|
|
42930
|
+
"credits",
|
|
41769
42931
|
"groups"
|
|
41770
42932
|
],
|
|
41771
42933
|
properties: {
|
|
@@ -41779,6 +42941,10 @@ var schemaComponents = {
|
|
|
41779
42941
|
type: "string",
|
|
41780
42942
|
const: "telephony_minutes"
|
|
41781
42943
|
},
|
|
42944
|
+
{
|
|
42945
|
+
type: "string",
|
|
42946
|
+
const: "telephony_cost"
|
|
42947
|
+
},
|
|
41782
42948
|
{
|
|
41783
42949
|
type: "string",
|
|
41784
42950
|
const: "whatsapp_conversations"
|
|
@@ -41809,16 +42975,28 @@ var schemaComponents = {
|
|
|
41809
42975
|
},
|
|
41810
42976
|
{
|
|
41811
42977
|
type: "string",
|
|
41812
|
-
const: "
|
|
42978
|
+
const: "adres_lookups"
|
|
41813
42979
|
},
|
|
41814
42980
|
{
|
|
41815
42981
|
type: "string",
|
|
41816
|
-
const: "
|
|
42982
|
+
const: "policia_colombia_lookups"
|
|
42983
|
+
},
|
|
42984
|
+
{
|
|
42985
|
+
type: "string",
|
|
42986
|
+
const: "postconsultations"
|
|
41817
42987
|
},
|
|
41818
42988
|
{
|
|
41819
42989
|
type: "string",
|
|
41820
42990
|
const: "agenda_users"
|
|
41821
42991
|
},
|
|
42992
|
+
{
|
|
42993
|
+
type: "string",
|
|
42994
|
+
const: "sms_messages"
|
|
42995
|
+
},
|
|
42996
|
+
{
|
|
42997
|
+
type: "string",
|
|
42998
|
+
const: "agenda_plan"
|
|
42999
|
+
},
|
|
41822
43000
|
{
|
|
41823
43001
|
type: "string",
|
|
41824
43002
|
const: "support_fee"
|
|
@@ -41827,27 +43005,36 @@ var schemaComponents = {
|
|
|
41827
43005
|
},
|
|
41828
43006
|
units: {
|
|
41829
43007
|
type: "number",
|
|
41830
|
-
description: "What was used, in the feature's units: minutes, conversations, lookups… For `ai_cost`, the
|
|
43008
|
+
description: "What was used, in the feature's units: minutes, conversations, lookups… For `ai_cost` and `telephony_cost`, the reports."
|
|
41831
43009
|
},
|
|
41832
43010
|
events: {
|
|
41833
43011
|
type: "integer",
|
|
41834
43012
|
description: "How many reports made it up."
|
|
41835
43013
|
},
|
|
43014
|
+
credits: {
|
|
43015
|
+
type: "number",
|
|
43016
|
+
description: "Its value at the organization's own rates."
|
|
43017
|
+
},
|
|
41836
43018
|
groups: {
|
|
41837
43019
|
type: "array",
|
|
41838
43020
|
items: {
|
|
41839
43021
|
type: "object",
|
|
41840
43022
|
required: [
|
|
41841
43023
|
"key",
|
|
41842
|
-
"units"
|
|
43024
|
+
"units",
|
|
43025
|
+
"credits"
|
|
41843
43026
|
],
|
|
41844
43027
|
properties: {
|
|
41845
43028
|
key: {
|
|
41846
43029
|
type: "string",
|
|
41847
|
-
description: "The product (`raiz`)
|
|
43030
|
+
description: "The product (`raiz`), the channel (`voice`), the Agent or the campaign id."
|
|
41848
43031
|
},
|
|
41849
43032
|
units: {
|
|
41850
43033
|
type: "number"
|
|
43034
|
+
},
|
|
43035
|
+
credits: {
|
|
43036
|
+
type: "number",
|
|
43037
|
+
description: "Its value at the organization's own rates."
|
|
41851
43038
|
}
|
|
41852
43039
|
},
|
|
41853
43040
|
additionalProperties: false
|
|
@@ -41862,9 +43049,11 @@ var schemaComponents = {
|
|
|
41862
43049
|
required: [
|
|
41863
43050
|
"from",
|
|
41864
43051
|
"to",
|
|
43052
|
+
"timezone",
|
|
41865
43053
|
"groupBy",
|
|
41866
43054
|
"credits",
|
|
41867
|
-
"features"
|
|
43055
|
+
"features",
|
|
43056
|
+
"days"
|
|
41868
43057
|
],
|
|
41869
43058
|
properties: {
|
|
41870
43059
|
from: {
|
|
@@ -41875,6 +43064,9 @@ var schemaComponents = {
|
|
|
41875
43064
|
type: "string",
|
|
41876
43065
|
format: "date-time"
|
|
41877
43066
|
},
|
|
43067
|
+
timezone: {
|
|
43068
|
+
type: "string"
|
|
43069
|
+
},
|
|
41878
43070
|
groupBy: {
|
|
41879
43071
|
anyOf: [
|
|
41880
43072
|
{
|
|
@@ -41884,6 +43076,14 @@ var schemaComponents = {
|
|
|
41884
43076
|
{
|
|
41885
43077
|
type: "string",
|
|
41886
43078
|
const: "channel"
|
|
43079
|
+
},
|
|
43080
|
+
{
|
|
43081
|
+
type: "string",
|
|
43082
|
+
const: "agent"
|
|
43083
|
+
},
|
|
43084
|
+
{
|
|
43085
|
+
type: "string",
|
|
43086
|
+
const: "campaign"
|
|
41887
43087
|
}
|
|
41888
43088
|
]
|
|
41889
43089
|
},
|
|
@@ -41896,7 +43096,40 @@ var schemaComponents = {
|
|
|
41896
43096
|
items: {
|
|
41897
43097
|
$ref: "#/components/schemas/AccountUsageFeature"
|
|
41898
43098
|
},
|
|
41899
|
-
maxItems:
|
|
43099
|
+
maxItems: 17
|
|
43100
|
+
},
|
|
43101
|
+
days: {
|
|
43102
|
+
type: "array",
|
|
43103
|
+
items: {
|
|
43104
|
+
type: "object",
|
|
43105
|
+
required: [
|
|
43106
|
+
"date",
|
|
43107
|
+
"credits",
|
|
43108
|
+
"units"
|
|
43109
|
+
],
|
|
43110
|
+
properties: {
|
|
43111
|
+
date: {
|
|
43112
|
+
type: "string",
|
|
43113
|
+
format: "date",
|
|
43114
|
+
description: "The day, in the summary's time zone."
|
|
43115
|
+
},
|
|
43116
|
+
credits: {
|
|
43117
|
+
type: "number",
|
|
43118
|
+
description: "Credits the wallet paid that day."
|
|
43119
|
+
},
|
|
43120
|
+
units: {
|
|
43121
|
+
type: "object",
|
|
43122
|
+
patternProperties: {
|
|
43123
|
+
"^.*$": {
|
|
43124
|
+
type: "number"
|
|
43125
|
+
}
|
|
43126
|
+
},
|
|
43127
|
+
description: "Each feature's units that day."
|
|
43128
|
+
}
|
|
43129
|
+
},
|
|
43130
|
+
additionalProperties: false
|
|
43131
|
+
},
|
|
43132
|
+
maxItems: 367
|
|
41900
43133
|
}
|
|
41901
43134
|
},
|
|
41902
43135
|
additionalProperties: false
|
|
@@ -41958,7 +43191,7 @@ var schemaComponents = {
|
|
|
41958
43191
|
type: "null"
|
|
41959
43192
|
}
|
|
41960
43193
|
],
|
|
41961
|
-
description: "
|
|
43194
|
+
description: "The payment processor's page to pay on, for `checkout`."
|
|
41962
43195
|
}
|
|
41963
43196
|
},
|
|
41964
43197
|
additionalProperties: false
|
|
@@ -41996,6 +43229,9 @@ var schemaComponents = {
|
|
|
41996
43229
|
required: [
|
|
41997
43230
|
"id",
|
|
41998
43231
|
"kind",
|
|
43232
|
+
"label",
|
|
43233
|
+
"grantKind",
|
|
43234
|
+
"funding",
|
|
41999
43235
|
"occurredAt",
|
|
42000
43236
|
"endsAt",
|
|
42001
43237
|
"count",
|
|
@@ -42017,6 +43253,14 @@ var schemaComponents = {
|
|
|
42017
43253
|
type: "string",
|
|
42018
43254
|
const: "top_up"
|
|
42019
43255
|
},
|
|
43256
|
+
{
|
|
43257
|
+
type: "string",
|
|
43258
|
+
const: "transfer"
|
|
43259
|
+
},
|
|
43260
|
+
{
|
|
43261
|
+
type: "string",
|
|
43262
|
+
const: "grant"
|
|
43263
|
+
},
|
|
42020
43264
|
{
|
|
42021
43265
|
type: "string",
|
|
42022
43266
|
const: "plan"
|
|
@@ -42030,7 +43274,66 @@ var schemaComponents = {
|
|
|
42030
43274
|
const: "adjustment"
|
|
42031
43275
|
}
|
|
42032
43276
|
],
|
|
42033
|
-
description: "`usage`: credits spent, one entry per UTC day; `top_up`: credits bought; `plan`: a plan's grant or change; `reset`: the plan's period renewed; `adjustment`:
|
|
43277
|
+
description: "`usage`: credits spent, one entry per UTC day; `top_up`: credits bought by card; `transfer`: credits paid by bank transfer, which Arbol recorded; `grant`: credits Arbol gave, named by `label`; `plan`: a plan's grant or change; `reset`: the plan's period renewed; `adjustment`: another change Arbol made."
|
|
43278
|
+
},
|
|
43279
|
+
label: {
|
|
43280
|
+
anyOf: [
|
|
43281
|
+
{
|
|
43282
|
+
type: "string"
|
|
43283
|
+
},
|
|
43284
|
+
{
|
|
43285
|
+
type: "null"
|
|
43286
|
+
}
|
|
43287
|
+
],
|
|
43288
|
+
description: 'The name Arbol gave a grant or a transfer ("Arbol promo", "Bank transfer").'
|
|
43289
|
+
},
|
|
43290
|
+
grantKind: {
|
|
43291
|
+
anyOf: [
|
|
43292
|
+
{
|
|
43293
|
+
anyOf: [
|
|
43294
|
+
{
|
|
43295
|
+
type: "string",
|
|
43296
|
+
const: "promo"
|
|
43297
|
+
},
|
|
43298
|
+
{
|
|
43299
|
+
type: "string",
|
|
43300
|
+
const: "subsidy"
|
|
43301
|
+
},
|
|
43302
|
+
{
|
|
43303
|
+
type: "string",
|
|
43304
|
+
const: "courtesy"
|
|
43305
|
+
},
|
|
43306
|
+
{
|
|
43307
|
+
type: "string",
|
|
43308
|
+
const: "correction"
|
|
43309
|
+
}
|
|
43310
|
+
]
|
|
43311
|
+
},
|
|
43312
|
+
{
|
|
43313
|
+
type: "null"
|
|
43314
|
+
}
|
|
43315
|
+
],
|
|
43316
|
+
description: "For a `grant`, what Arbol gave it as; its name when `label` is null."
|
|
43317
|
+
},
|
|
43318
|
+
funding: {
|
|
43319
|
+
anyOf: [
|
|
43320
|
+
{
|
|
43321
|
+
anyOf: [
|
|
43322
|
+
{
|
|
43323
|
+
type: "string",
|
|
43324
|
+
const: "paid"
|
|
43325
|
+
},
|
|
43326
|
+
{
|
|
43327
|
+
type: "string",
|
|
43328
|
+
const: "granted"
|
|
43329
|
+
}
|
|
43330
|
+
]
|
|
43331
|
+
},
|
|
43332
|
+
{
|
|
43333
|
+
type: "null"
|
|
43334
|
+
}
|
|
43335
|
+
],
|
|
43336
|
+
description: "`paid`: money came in; `granted`: Arbol gave the credits; null for spending and renewals."
|
|
42034
43337
|
},
|
|
42035
43338
|
occurredAt: {
|
|
42036
43339
|
type: "string",
|
|
@@ -42069,7 +43372,7 @@ var schemaComponents = {
|
|
|
42069
43372
|
type: "null"
|
|
42070
43373
|
}
|
|
42071
43374
|
],
|
|
42072
|
-
description: "Credits it added (positive) or took (negative); null when
|
|
43375
|
+
description: "Credits it added (positive) or took (negative); null when billing could not tell."
|
|
42073
43376
|
},
|
|
42074
43377
|
balanceAfter: {
|
|
42075
43378
|
anyOf: [
|
|
@@ -42084,7 +43387,7 @@ var schemaComponents = {
|
|
|
42084
43387
|
},
|
|
42085
43388
|
approximate: {
|
|
42086
43389
|
type: "boolean",
|
|
42087
|
-
description: "Its amounts are
|
|
43390
|
+
description: "Its amounts are an estimate, not an exact record."
|
|
42088
43391
|
}
|
|
42089
43392
|
},
|
|
42090
43393
|
additionalProperties: false
|
|
@@ -154183,6 +155486,40 @@ var schemaComponents = {
|
|
|
154183
155486
|
}
|
|
154184
155487
|
}
|
|
154185
155488
|
},
|
|
155489
|
+
FamisanarConnectionRequiredFailure: {
|
|
155490
|
+
type: "object",
|
|
155491
|
+
description: "More than one active Famisanar connection is available. Supply connectionId.",
|
|
155492
|
+
additionalProperties: false,
|
|
155493
|
+
required: [
|
|
155494
|
+
"code",
|
|
155495
|
+
"message",
|
|
155496
|
+
"retryable",
|
|
155497
|
+
"data"
|
|
155498
|
+
],
|
|
155499
|
+
properties: {
|
|
155500
|
+
code: {
|
|
155501
|
+
type: "string",
|
|
155502
|
+
enum: [
|
|
155503
|
+
"CONNECTION_REQUIRED"
|
|
155504
|
+
],
|
|
155505
|
+
description: "The failure code, stable across releases."
|
|
155506
|
+
},
|
|
155507
|
+
message: {
|
|
155508
|
+
type: "string",
|
|
155509
|
+
description: "What went wrong, for people; it never contains input values."
|
|
155510
|
+
},
|
|
155511
|
+
retryable: {
|
|
155512
|
+
type: "boolean",
|
|
155513
|
+
enum: [
|
|
155514
|
+
false
|
|
155515
|
+
],
|
|
155516
|
+
description: "Whether repeating the same request may succeed."
|
|
155517
|
+
},
|
|
155518
|
+
data: {
|
|
155519
|
+
$ref: "#/components/schemas/Empty"
|
|
155520
|
+
}
|
|
155521
|
+
}
|
|
155522
|
+
},
|
|
154186
155523
|
FamisanarConnectionUnavailableError: {
|
|
154187
155524
|
type: "object",
|
|
154188
155525
|
description: "A failed answer.",
|
|
@@ -154279,6 +155616,355 @@ var schemaComponents = {
|
|
|
154279
155616
|
}
|
|
154280
155617
|
}
|
|
154281
155618
|
},
|
|
155619
|
+
FamisanarGetConnectionBadGatewayError: {
|
|
155620
|
+
type: "object",
|
|
155621
|
+
description: "A failed answer.",
|
|
155622
|
+
additionalProperties: false,
|
|
155623
|
+
required: [
|
|
155624
|
+
"success",
|
|
155625
|
+
"data",
|
|
155626
|
+
"error",
|
|
155627
|
+
"metadata"
|
|
155628
|
+
],
|
|
155629
|
+
properties: {
|
|
155630
|
+
success: {
|
|
155631
|
+
type: "boolean",
|
|
155632
|
+
enum: [
|
|
155633
|
+
false
|
|
155634
|
+
]
|
|
155635
|
+
},
|
|
155636
|
+
data: {
|
|
155637
|
+
const: null
|
|
155638
|
+
},
|
|
155639
|
+
error: {
|
|
155640
|
+
$ref: "#/components/schemas/FamisanarGetConnectionBadGatewayFailure"
|
|
155641
|
+
},
|
|
155642
|
+
metadata: {
|
|
155643
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
155644
|
+
}
|
|
155645
|
+
}
|
|
155646
|
+
},
|
|
155647
|
+
FamisanarGetConnectionBadGatewayFailure: {
|
|
155648
|
+
oneOf: [
|
|
155649
|
+
{
|
|
155650
|
+
$ref: "#/components/schemas/OutcomeUnknownFailure"
|
|
155651
|
+
},
|
|
155652
|
+
{
|
|
155653
|
+
$ref: "#/components/schemas/FamisanarAffiliationUnresolvedFailure"
|
|
155654
|
+
}
|
|
155655
|
+
],
|
|
155656
|
+
discriminator: {
|
|
155657
|
+
propertyName: "code",
|
|
155658
|
+
mapping: {
|
|
155659
|
+
OUTCOME_UNKNOWN: "#/components/schemas/OutcomeUnknownFailure",
|
|
155660
|
+
AFFILIATION_UNRESOLVED: "#/components/schemas/FamisanarAffiliationUnresolvedFailure"
|
|
155661
|
+
}
|
|
155662
|
+
}
|
|
155663
|
+
},
|
|
155664
|
+
FamisanarGetConnectionConflictError: {
|
|
155665
|
+
type: "object",
|
|
155666
|
+
description: "A failed answer.",
|
|
155667
|
+
additionalProperties: false,
|
|
155668
|
+
required: [
|
|
155669
|
+
"success",
|
|
155670
|
+
"data",
|
|
155671
|
+
"error",
|
|
155672
|
+
"metadata"
|
|
155673
|
+
],
|
|
155674
|
+
properties: {
|
|
155675
|
+
success: {
|
|
155676
|
+
type: "boolean",
|
|
155677
|
+
enum: [
|
|
155678
|
+
false
|
|
155679
|
+
]
|
|
155680
|
+
},
|
|
155681
|
+
data: {
|
|
155682
|
+
const: null
|
|
155683
|
+
},
|
|
155684
|
+
error: {
|
|
155685
|
+
$ref: "#/components/schemas/FamisanarGetConnectionConflictFailure"
|
|
155686
|
+
},
|
|
155687
|
+
metadata: {
|
|
155688
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
155689
|
+
}
|
|
155690
|
+
}
|
|
155691
|
+
},
|
|
155692
|
+
FamisanarGetConnectionConflictFailure: {
|
|
155693
|
+
oneOf: [
|
|
155694
|
+
{
|
|
155695
|
+
$ref: "#/components/schemas/FamisanarConnectionRequiredFailure"
|
|
155696
|
+
},
|
|
155697
|
+
{
|
|
155698
|
+
$ref: "#/components/schemas/FamisanarSelectionRequiredFailure"
|
|
155699
|
+
}
|
|
155700
|
+
],
|
|
155701
|
+
discriminator: {
|
|
155702
|
+
propertyName: "code",
|
|
155703
|
+
mapping: {
|
|
155704
|
+
CONNECTION_REQUIRED: "#/components/schemas/FamisanarConnectionRequiredFailure",
|
|
155705
|
+
SELECTION_REQUIRED: "#/components/schemas/FamisanarSelectionRequiredFailure"
|
|
155706
|
+
}
|
|
155707
|
+
}
|
|
155708
|
+
},
|
|
155709
|
+
FamisanarGetConnectionForbiddenError: {
|
|
155710
|
+
type: "object",
|
|
155711
|
+
description: "A failed answer.",
|
|
155712
|
+
additionalProperties: false,
|
|
155713
|
+
required: [
|
|
155714
|
+
"success",
|
|
155715
|
+
"data",
|
|
155716
|
+
"error",
|
|
155717
|
+
"metadata"
|
|
155718
|
+
],
|
|
155719
|
+
properties: {
|
|
155720
|
+
success: {
|
|
155721
|
+
type: "boolean",
|
|
155722
|
+
enum: [
|
|
155723
|
+
false
|
|
155724
|
+
]
|
|
155725
|
+
},
|
|
155726
|
+
data: {
|
|
155727
|
+
const: null
|
|
155728
|
+
},
|
|
155729
|
+
error: {
|
|
155730
|
+
$ref: "#/components/schemas/FamisanarGetConnectionForbiddenFailure"
|
|
155731
|
+
},
|
|
155732
|
+
metadata: {
|
|
155733
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
155734
|
+
}
|
|
155735
|
+
}
|
|
155736
|
+
},
|
|
155737
|
+
FamisanarGetConnectionForbiddenFailure: {
|
|
155738
|
+
oneOf: [
|
|
155739
|
+
{
|
|
155740
|
+
$ref: "#/components/schemas/ForbiddenFailure"
|
|
155741
|
+
},
|
|
155742
|
+
{
|
|
155743
|
+
$ref: "#/components/schemas/FamisanarProviderAccessDeniedFailure"
|
|
155744
|
+
},
|
|
155745
|
+
{
|
|
155746
|
+
$ref: "#/components/schemas/FamisanarCredentialsRejectedFailure"
|
|
155747
|
+
}
|
|
155748
|
+
],
|
|
155749
|
+
discriminator: {
|
|
155750
|
+
propertyName: "code",
|
|
155751
|
+
mapping: {
|
|
155752
|
+
FORBIDDEN: "#/components/schemas/ForbiddenFailure",
|
|
155753
|
+
PROVIDER_ACCESS_DENIED: "#/components/schemas/FamisanarProviderAccessDeniedFailure",
|
|
155754
|
+
CREDENTIALS_REJECTED: "#/components/schemas/FamisanarCredentialsRejectedFailure"
|
|
155755
|
+
}
|
|
155756
|
+
}
|
|
155757
|
+
},
|
|
155758
|
+
FamisanarGetConnectionResult: {
|
|
155759
|
+
type: "object",
|
|
155760
|
+
required: [
|
|
155761
|
+
"id",
|
|
155762
|
+
"session"
|
|
155763
|
+
],
|
|
155764
|
+
properties: {
|
|
155765
|
+
id: {
|
|
155766
|
+
type: "string",
|
|
155767
|
+
pattern: "^con_[0-9A-Za-z]{26}$",
|
|
155768
|
+
description: "The IPS connection saved in Account. This is not a provider session ID."
|
|
155769
|
+
},
|
|
155770
|
+
session: {
|
|
155771
|
+
type: "object",
|
|
155772
|
+
required: [
|
|
155773
|
+
"status",
|
|
155774
|
+
"createdAt",
|
|
155775
|
+
"lastVerifiedAt",
|
|
155776
|
+
"expiresAt",
|
|
155777
|
+
"expirySource",
|
|
155778
|
+
"idleExpiresAt",
|
|
155779
|
+
"lastExpiredAt",
|
|
155780
|
+
"sessionCookieCount",
|
|
155781
|
+
"persistentSessionCookieCount"
|
|
155782
|
+
],
|
|
155783
|
+
properties: {
|
|
155784
|
+
status: {
|
|
155785
|
+
anyOf: [
|
|
155786
|
+
{
|
|
155787
|
+
type: "string",
|
|
155788
|
+
const: "active"
|
|
155789
|
+
},
|
|
155790
|
+
{
|
|
155791
|
+
type: "string",
|
|
155792
|
+
const: "expired"
|
|
155793
|
+
},
|
|
155794
|
+
{
|
|
155795
|
+
type: "string",
|
|
155796
|
+
const: "not_started"
|
|
155797
|
+
}
|
|
155798
|
+
]
|
|
155799
|
+
},
|
|
155800
|
+
createdAt: {
|
|
155801
|
+
anyOf: [
|
|
155802
|
+
{
|
|
155803
|
+
type: "string",
|
|
155804
|
+
format: "date-time"
|
|
155805
|
+
},
|
|
155806
|
+
{
|
|
155807
|
+
type: "null"
|
|
155808
|
+
}
|
|
155809
|
+
]
|
|
155810
|
+
},
|
|
155811
|
+
lastVerifiedAt: {
|
|
155812
|
+
anyOf: [
|
|
155813
|
+
{
|
|
155814
|
+
type: "string",
|
|
155815
|
+
format: "date-time"
|
|
155816
|
+
},
|
|
155817
|
+
{
|
|
155818
|
+
type: "null"
|
|
155819
|
+
}
|
|
155820
|
+
]
|
|
155821
|
+
},
|
|
155822
|
+
expiresAt: {
|
|
155823
|
+
anyOf: [
|
|
155824
|
+
{
|
|
155825
|
+
type: "string",
|
|
155826
|
+
format: "date-time"
|
|
155827
|
+
},
|
|
155828
|
+
{
|
|
155829
|
+
type: "null"
|
|
155830
|
+
}
|
|
155831
|
+
],
|
|
155832
|
+
description: "Cookie expiry bound when provided. Null means the provider has not disclosed a deadline; the server may expire earlier."
|
|
155833
|
+
},
|
|
155834
|
+
expirySource: {
|
|
155835
|
+
anyOf: [
|
|
155836
|
+
{
|
|
155837
|
+
type: "string",
|
|
155838
|
+
const: "cookie"
|
|
155839
|
+
},
|
|
155840
|
+
{
|
|
155841
|
+
type: "string",
|
|
155842
|
+
const: "unknown"
|
|
155843
|
+
}
|
|
155844
|
+
]
|
|
155845
|
+
},
|
|
155846
|
+
idleExpiresAt: {
|
|
155847
|
+
anyOf: [
|
|
155848
|
+
{
|
|
155849
|
+
type: "string",
|
|
155850
|
+
format: "date-time"
|
|
155851
|
+
},
|
|
155852
|
+
{
|
|
155853
|
+
type: "null"
|
|
155854
|
+
}
|
|
155855
|
+
],
|
|
155856
|
+
description: "Local browser idle deadline, independent of the provider session expiry."
|
|
155857
|
+
},
|
|
155858
|
+
lastExpiredAt: {
|
|
155859
|
+
anyOf: [
|
|
155860
|
+
{
|
|
155861
|
+
type: "string",
|
|
155862
|
+
format: "date-time"
|
|
155863
|
+
},
|
|
155864
|
+
{
|
|
155865
|
+
type: "null"
|
|
155866
|
+
}
|
|
155867
|
+
]
|
|
155868
|
+
},
|
|
155869
|
+
sessionCookieCount: {
|
|
155870
|
+
type: "integer",
|
|
155871
|
+
minimum: 0
|
|
155872
|
+
},
|
|
155873
|
+
persistentSessionCookieCount: {
|
|
155874
|
+
type: "integer",
|
|
155875
|
+
minimum: 0
|
|
155876
|
+
}
|
|
155877
|
+
},
|
|
155878
|
+
additionalProperties: false
|
|
155879
|
+
}
|
|
155880
|
+
},
|
|
155881
|
+
additionalProperties: false
|
|
155882
|
+
},
|
|
155883
|
+
FamisanarGetConnectionResultResponse: {
|
|
155884
|
+
type: "object",
|
|
155885
|
+
description: "A successful answer.",
|
|
155886
|
+
additionalProperties: false,
|
|
155887
|
+
required: [
|
|
155888
|
+
"success",
|
|
155889
|
+
"data",
|
|
155890
|
+
"error",
|
|
155891
|
+
"metadata"
|
|
155892
|
+
],
|
|
155893
|
+
properties: {
|
|
155894
|
+
success: {
|
|
155895
|
+
type: "boolean",
|
|
155896
|
+
enum: [
|
|
155897
|
+
true
|
|
155898
|
+
]
|
|
155899
|
+
},
|
|
155900
|
+
data: {
|
|
155901
|
+
$ref: "#/components/schemas/FamisanarGetConnectionResult"
|
|
155902
|
+
},
|
|
155903
|
+
error: {
|
|
155904
|
+
const: null
|
|
155905
|
+
},
|
|
155906
|
+
metadata: {
|
|
155907
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
155908
|
+
}
|
|
155909
|
+
}
|
|
155910
|
+
},
|
|
155911
|
+
FamisanarGetConnectionServiceUnavailableError: {
|
|
155912
|
+
type: "object",
|
|
155913
|
+
description: "A failed answer.",
|
|
155914
|
+
additionalProperties: false,
|
|
155915
|
+
required: [
|
|
155916
|
+
"success",
|
|
155917
|
+
"data",
|
|
155918
|
+
"error",
|
|
155919
|
+
"metadata"
|
|
155920
|
+
],
|
|
155921
|
+
properties: {
|
|
155922
|
+
success: {
|
|
155923
|
+
type: "boolean",
|
|
155924
|
+
enum: [
|
|
155925
|
+
false
|
|
155926
|
+
]
|
|
155927
|
+
},
|
|
155928
|
+
data: {
|
|
155929
|
+
const: null
|
|
155930
|
+
},
|
|
155931
|
+
error: {
|
|
155932
|
+
$ref: "#/components/schemas/FamisanarGetConnectionServiceUnavailableFailure"
|
|
155933
|
+
},
|
|
155934
|
+
metadata: {
|
|
155935
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
155936
|
+
}
|
|
155937
|
+
}
|
|
155938
|
+
},
|
|
155939
|
+
FamisanarGetConnectionServiceUnavailableFailure: {
|
|
155940
|
+
oneOf: [
|
|
155941
|
+
{
|
|
155942
|
+
$ref: "#/components/schemas/UpstreamUnavailableFailure"
|
|
155943
|
+
},
|
|
155944
|
+
{
|
|
155945
|
+
$ref: "#/components/schemas/FamisanarAccountUnavailableFailure"
|
|
155946
|
+
},
|
|
155947
|
+
{
|
|
155948
|
+
$ref: "#/components/schemas/FamisanarProviderNotConfiguredFailure"
|
|
155949
|
+
},
|
|
155950
|
+
{
|
|
155951
|
+
$ref: "#/components/schemas/FamisanarProviderUnavailableFailure"
|
|
155952
|
+
},
|
|
155953
|
+
{
|
|
155954
|
+
$ref: "#/components/schemas/SessionExpiredFailure"
|
|
155955
|
+
}
|
|
155956
|
+
],
|
|
155957
|
+
discriminator: {
|
|
155958
|
+
propertyName: "code",
|
|
155959
|
+
mapping: {
|
|
155960
|
+
UPSTREAM_UNAVAILABLE: "#/components/schemas/UpstreamUnavailableFailure",
|
|
155961
|
+
ACCOUNT_UNAVAILABLE: "#/components/schemas/FamisanarAccountUnavailableFailure",
|
|
155962
|
+
PROVIDER_NOT_CONFIGURED: "#/components/schemas/FamisanarProviderNotConfiguredFailure",
|
|
155963
|
+
PROVIDER_UNAVAILABLE: "#/components/schemas/FamisanarProviderUnavailableFailure",
|
|
155964
|
+
SESSION_EXPIRED: "#/components/schemas/SessionExpiredFailure"
|
|
155965
|
+
}
|
|
155966
|
+
}
|
|
155967
|
+
},
|
|
154282
155968
|
FamisanarLookupAffiliationBadGatewayError: {
|
|
154283
155969
|
type: "object",
|
|
154284
155970
|
description: "A failed answer.",
|
|
@@ -154327,13 +156013,13 @@ var schemaComponents = {
|
|
|
154327
156013
|
FamisanarLookupAffiliationBody: {
|
|
154328
156014
|
type: "object",
|
|
154329
156015
|
required: [
|
|
154330
|
-
"connectionId",
|
|
154331
156016
|
"documentNumber"
|
|
154332
156017
|
],
|
|
154333
156018
|
properties: {
|
|
154334
156019
|
connectionId: {
|
|
154335
156020
|
type: "string",
|
|
154336
|
-
pattern: "^con_[0-9A-Za-z]{26}$"
|
|
156021
|
+
pattern: "^con_[0-9A-Za-z]{26}$",
|
|
156022
|
+
description: "Omit when the organization has exactly one active Famisanar connection. Required to choose among multiple active connections."
|
|
154337
156023
|
},
|
|
154338
156024
|
documentType: {
|
|
154339
156025
|
anyOf: [
|
|
@@ -154390,7 +156076,8 @@ var schemaComponents = {
|
|
|
154390
156076
|
const: "TI"
|
|
154391
156077
|
}
|
|
154392
156078
|
],
|
|
154393
|
-
default: "CC"
|
|
156079
|
+
default: "CC",
|
|
156080
|
+
description: "Identity document type. Defaults to CC; send another supported type explicitly."
|
|
154394
156081
|
},
|
|
154395
156082
|
documentNumber: {
|
|
154396
156083
|
type: "string",
|
|
@@ -154400,11 +156087,57 @@ var schemaComponents = {
|
|
|
154400
156087
|
type: "integer",
|
|
154401
156088
|
minimum: 0,
|
|
154402
156089
|
maximum: 7,
|
|
154403
|
-
default: 7
|
|
156090
|
+
default: 7,
|
|
156091
|
+
description: "Maximum age in days of an observation from this IPS connection. Zero contacts the provider and refreshes the saved result."
|
|
154404
156092
|
}
|
|
154405
156093
|
},
|
|
154406
156094
|
additionalProperties: false
|
|
154407
156095
|
},
|
|
156096
|
+
FamisanarLookupAffiliationConflictError: {
|
|
156097
|
+
type: "object",
|
|
156098
|
+
description: "A failed answer.",
|
|
156099
|
+
additionalProperties: false,
|
|
156100
|
+
required: [
|
|
156101
|
+
"success",
|
|
156102
|
+
"data",
|
|
156103
|
+
"error",
|
|
156104
|
+
"metadata"
|
|
156105
|
+
],
|
|
156106
|
+
properties: {
|
|
156107
|
+
success: {
|
|
156108
|
+
type: "boolean",
|
|
156109
|
+
enum: [
|
|
156110
|
+
false
|
|
156111
|
+
]
|
|
156112
|
+
},
|
|
156113
|
+
data: {
|
|
156114
|
+
const: null
|
|
156115
|
+
},
|
|
156116
|
+
error: {
|
|
156117
|
+
$ref: "#/components/schemas/FamisanarLookupAffiliationConflictFailure"
|
|
156118
|
+
},
|
|
156119
|
+
metadata: {
|
|
156120
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
156121
|
+
}
|
|
156122
|
+
}
|
|
156123
|
+
},
|
|
156124
|
+
FamisanarLookupAffiliationConflictFailure: {
|
|
156125
|
+
oneOf: [
|
|
156126
|
+
{
|
|
156127
|
+
$ref: "#/components/schemas/FamisanarConnectionRequiredFailure"
|
|
156128
|
+
},
|
|
156129
|
+
{
|
|
156130
|
+
$ref: "#/components/schemas/FamisanarSelectionRequiredFailure"
|
|
156131
|
+
}
|
|
156132
|
+
],
|
|
156133
|
+
discriminator: {
|
|
156134
|
+
propertyName: "code",
|
|
156135
|
+
mapping: {
|
|
156136
|
+
CONNECTION_REQUIRED: "#/components/schemas/FamisanarConnectionRequiredFailure",
|
|
156137
|
+
SELECTION_REQUIRED: "#/components/schemas/FamisanarSelectionRequiredFailure"
|
|
156138
|
+
}
|
|
156139
|
+
}
|
|
156140
|
+
},
|
|
154408
156141
|
FamisanarLookupAffiliationForbiddenError: {
|
|
154409
156142
|
type: "object",
|
|
154410
156143
|
description: "A failed answer.",
|
|
@@ -154713,34 +156446,6 @@ var schemaComponents = {
|
|
|
154713
156446
|
}
|
|
154714
156447
|
}
|
|
154715
156448
|
},
|
|
154716
|
-
FamisanarSelectionRequiredError: {
|
|
154717
|
-
type: "object",
|
|
154718
|
-
description: "A failed answer.",
|
|
154719
|
-
additionalProperties: false,
|
|
154720
|
-
required: [
|
|
154721
|
-
"success",
|
|
154722
|
-
"data",
|
|
154723
|
-
"error",
|
|
154724
|
-
"metadata"
|
|
154725
|
-
],
|
|
154726
|
-
properties: {
|
|
154727
|
-
success: {
|
|
154728
|
-
type: "boolean",
|
|
154729
|
-
enum: [
|
|
154730
|
-
false
|
|
154731
|
-
]
|
|
154732
|
-
},
|
|
154733
|
-
data: {
|
|
154734
|
-
const: null
|
|
154735
|
-
},
|
|
154736
|
-
error: {
|
|
154737
|
-
$ref: "#/components/schemas/FamisanarSelectionRequiredFailure"
|
|
154738
|
-
},
|
|
154739
|
-
metadata: {
|
|
154740
|
-
$ref: "#/components/schemas/ResponseMetadata"
|
|
154741
|
-
}
|
|
154742
|
-
}
|
|
154743
|
-
},
|
|
154744
156449
|
FamisanarSelectionRequiredFailure: {
|
|
154745
156450
|
type: "object",
|
|
154746
156451
|
description: "Choose an unambiguous IPS and active branch for this account.",
|
|
@@ -197093,7 +198798,7 @@ var schemaComponents = {
|
|
|
197093
198798
|
},
|
|
197094
198799
|
readiness: {
|
|
197095
198800
|
$ref: "#/components/schemas/RaizCampaignReadiness",
|
|
197096
|
-
description: "Whether the campaign can start, checked against its Agent, line, template and
|
|
198801
|
+
description: "Whether the campaign can start, checked against its Agent, line, template, recipients and the organization's balance without reaching anyone. Present only when expanded."
|
|
197097
198802
|
},
|
|
197098
198803
|
recipients: {
|
|
197099
198804
|
$ref: "#/components/schemas/RaizCampaignRecipientPage",
|
|
@@ -197156,7 +198861,7 @@ var schemaComponents = {
|
|
|
197156
198861
|
},
|
|
197157
198862
|
code: {
|
|
197158
198863
|
type: "string",
|
|
197159
|
-
description: "The error `startCampaign` would refuse with: `CAMPAIGN_AGENT_NOT_READY`, `CAMPAIGN_NO_RECIPIENTS`, `CAMPAIGN_VARIABLE_MISSING`, `CHANNEL_NOT_READY`, a `TEMPLATE_*` code, `UPSTREAM_UNAVAILABLE` or `VOICE_AGENT_NOT_READY`."
|
|
198864
|
+
description: "The error `startCampaign` would refuse with: `CAMPAIGN_AGENT_NOT_READY`, `CAMPAIGN_NO_RECIPIENTS`, `CAMPAIGN_VARIABLE_MISSING`, `CHANNEL_NOT_READY`, `CREDITS_EXHAUSTED` (see `estimate`), a `TEMPLATE_*` code, `UPSTREAM_UNAVAILABLE` or `VOICE_AGENT_NOT_READY`."
|
|
197160
198865
|
},
|
|
197161
198866
|
variable: {
|
|
197162
198867
|
type: "string",
|
|
@@ -197165,6 +198870,77 @@ var schemaComponents = {
|
|
|
197165
198870
|
},
|
|
197166
198871
|
additionalProperties: false
|
|
197167
198872
|
},
|
|
198873
|
+
RaizCampaignEstimate: {
|
|
198874
|
+
type: "object",
|
|
198875
|
+
required: [
|
|
198876
|
+
"callMinutes",
|
|
198877
|
+
"covered",
|
|
198878
|
+
"credits",
|
|
198879
|
+
"degraded",
|
|
198880
|
+
"enforced",
|
|
198881
|
+
"people"
|
|
198882
|
+
],
|
|
198883
|
+
properties: {
|
|
198884
|
+
callMinutes: {
|
|
198885
|
+
anyOf: [
|
|
198886
|
+
{
|
|
198887
|
+
type: "object",
|
|
198888
|
+
required: [
|
|
198889
|
+
"calls",
|
|
198890
|
+
"perCall"
|
|
198891
|
+
],
|
|
198892
|
+
properties: {
|
|
198893
|
+
calls: {
|
|
198894
|
+
type: "integer",
|
|
198895
|
+
description: "How many of those calls the figure comes from.",
|
|
198896
|
+
minimum: 0
|
|
198897
|
+
},
|
|
198898
|
+
perCall: {
|
|
198899
|
+
type: "number",
|
|
198900
|
+
description: "Minutes billed per call on average, a call nobody answered counting zero.",
|
|
198901
|
+
minimum: 0
|
|
198902
|
+
}
|
|
198903
|
+
},
|
|
198904
|
+
description: "Calls: what each call is counted at, from the organization's own recent outbound calls; an estimate, since a call's length is known only once it happens. Null on WhatsApp, and when the organization has made too few such calls to tell: the calls' minutes are then not counted and `credits` is null.",
|
|
198905
|
+
additionalProperties: false
|
|
198906
|
+
},
|
|
198907
|
+
{
|
|
198908
|
+
type: "null"
|
|
198909
|
+
}
|
|
198910
|
+
]
|
|
198911
|
+
},
|
|
198912
|
+
covered: {
|
|
198913
|
+
type: "boolean",
|
|
198914
|
+
description: "Whether the organization's balance covers `credits`, or the organization is never stopped at zero, as billing answers it now. True when nothing was counted, or billing did not answer (`degraded`)."
|
|
198915
|
+
},
|
|
198916
|
+
credits: {
|
|
198917
|
+
anyOf: [
|
|
198918
|
+
{
|
|
198919
|
+
type: "number",
|
|
198920
|
+
description: "What reaching each of `people` once would cost at the organization's rates, in credits (one credit is one US dollar), valued as billing values what is used. On WhatsApp it counts each opening message, its template and the conversation it opens; on calls, each call's minutes at `callMinutes.perCall`. Never counted: the attempts after the first, the replies, the Agent's answers, what its tools use and a line's own charge when the plan bills it apart. What the plan includes is not discounted, so the real cost can be lower. Null when nothing could be counted or billing did not value it.",
|
|
198921
|
+
minimum: 0
|
|
198922
|
+
},
|
|
198923
|
+
{
|
|
198924
|
+
type: "null"
|
|
198925
|
+
}
|
|
198926
|
+
]
|
|
198927
|
+
},
|
|
198928
|
+
degraded: {
|
|
198929
|
+
type: "boolean",
|
|
198930
|
+
description: "Billing did not answer in time: `credits` may be null, and `covered` is assumed."
|
|
198931
|
+
},
|
|
198932
|
+
enforced: {
|
|
198933
|
+
type: "boolean",
|
|
198934
|
+
description: "Whether a balance that does not cover what is used stops this organization's work now. When it does and `covered` is false, the campaign cannot start (`CREDITS_EXHAUSTED`); while it does not, it starts anyway. False when nothing was counted."
|
|
198935
|
+
},
|
|
198936
|
+
people: {
|
|
198937
|
+
type: "integer",
|
|
198938
|
+
description: "The recipients still to be reached, each counted once.",
|
|
198939
|
+
minimum: 0
|
|
198940
|
+
}
|
|
198941
|
+
},
|
|
198942
|
+
additionalProperties: false
|
|
198943
|
+
},
|
|
197168
198944
|
RaizCampaignHeaderMissingFailure: {
|
|
197169
198945
|
type: "object",
|
|
197170
198946
|
description: "A recipient has no file that fits the template's header (a PDF for a document, JPEG or PNG for an image, MP4 for a video). Each recipient brings its own as `header`.",
|
|
@@ -197447,6 +199223,7 @@ var schemaComponents = {
|
|
|
197447
199223
|
type: "object",
|
|
197448
199224
|
required: [
|
|
197449
199225
|
"blockers",
|
|
199226
|
+
"estimate",
|
|
197450
199227
|
"preview",
|
|
197451
199228
|
"ready"
|
|
197452
199229
|
],
|
|
@@ -197458,6 +199235,10 @@ var schemaComponents = {
|
|
|
197458
199235
|
},
|
|
197459
199236
|
description: "What has to be fixed first. Empty when it can start."
|
|
197460
199237
|
},
|
|
199238
|
+
estimate: {
|
|
199239
|
+
$ref: "#/components/schemas/RaizCampaignEstimate",
|
|
199240
|
+
description: "What reaching each pending recipient once would cost, checked against the organization's balance without reaching anyone."
|
|
199241
|
+
},
|
|
197461
199242
|
preview: {
|
|
197462
199243
|
anyOf: [
|
|
197463
199244
|
{
|
|
@@ -200673,6 +202454,7 @@ var schemaComponents = {
|
|
|
200673
202454
|
"waitingSinceAt",
|
|
200674
202455
|
"workers",
|
|
200675
202456
|
"toolCalls",
|
|
202457
|
+
"usage",
|
|
200676
202458
|
"analysisErrorCode",
|
|
200677
202459
|
"facts"
|
|
200678
202460
|
],
|
|
@@ -201332,6 +203114,10 @@ var schemaComponents = {
|
|
|
201332
203114
|
toolCalls: {
|
|
201333
203115
|
$ref: "#/components/schemas/RaizConversationToolCalls"
|
|
201334
203116
|
},
|
|
203117
|
+
usage: {
|
|
203118
|
+
$ref: "#/components/schemas/RaizConversationUsage",
|
|
203119
|
+
description: "What the conversation used, as billing valued it. What an integration charged for a tool the Agent ran is part of `tools` once billing hands it over, which it does when the integration names the conversation in its report."
|
|
203120
|
+
},
|
|
201335
203121
|
outcomeReview: {
|
|
201336
203122
|
anyOf: [
|
|
201337
203123
|
{
|
|
@@ -202198,6 +203984,105 @@ var schemaComponents = {
|
|
|
202198
203984
|
},
|
|
202199
203985
|
additionalProperties: false
|
|
202200
203986
|
},
|
|
203987
|
+
RaizConversationUsage: {
|
|
203988
|
+
type: "object",
|
|
203989
|
+
required: [
|
|
203990
|
+
"credits",
|
|
203991
|
+
"items",
|
|
203992
|
+
"pending"
|
|
203993
|
+
],
|
|
203994
|
+
properties: {
|
|
203995
|
+
credits: {
|
|
203996
|
+
anyOf: [
|
|
203997
|
+
{
|
|
203998
|
+
type: "number",
|
|
203999
|
+
description: "What the conversation used, in credits at the organization's rates when each part was reported; null while nothing has its value yet.",
|
|
204000
|
+
minimum: 0
|
|
204001
|
+
},
|
|
204002
|
+
{
|
|
204003
|
+
type: "null"
|
|
204004
|
+
}
|
|
204005
|
+
]
|
|
204006
|
+
},
|
|
204007
|
+
items: {
|
|
204008
|
+
type: "array",
|
|
204009
|
+
items: {
|
|
204010
|
+
$ref: "#/components/schemas/RaizConversationUsageItem"
|
|
204011
|
+
},
|
|
204012
|
+
maxItems: 8
|
|
204013
|
+
},
|
|
204014
|
+
pending: {
|
|
204015
|
+
type: "boolean",
|
|
204016
|
+
description: "Part of the usage is still waiting for its value in credits."
|
|
204017
|
+
}
|
|
204018
|
+
},
|
|
204019
|
+
additionalProperties: false
|
|
204020
|
+
},
|
|
204021
|
+
RaizConversationUsageItem: {
|
|
204022
|
+
type: "object",
|
|
204023
|
+
required: [
|
|
204024
|
+
"credits",
|
|
204025
|
+
"kind",
|
|
204026
|
+
"units"
|
|
204027
|
+
],
|
|
204028
|
+
properties: {
|
|
204029
|
+
credits: {
|
|
204030
|
+
anyOf: [
|
|
204031
|
+
{
|
|
204032
|
+
type: "number",
|
|
204033
|
+
description: "Credits of this kind; null while none of it has its value yet.",
|
|
204034
|
+
minimum: 0
|
|
204035
|
+
},
|
|
204036
|
+
{
|
|
204037
|
+
type: "null"
|
|
204038
|
+
}
|
|
204039
|
+
]
|
|
204040
|
+
},
|
|
204041
|
+
kind: {
|
|
204042
|
+
anyOf: [
|
|
204043
|
+
{
|
|
204044
|
+
type: "string",
|
|
204045
|
+
const: "voice"
|
|
204046
|
+
},
|
|
204047
|
+
{
|
|
204048
|
+
type: "string",
|
|
204049
|
+
const: "phone_line"
|
|
204050
|
+
},
|
|
204051
|
+
{
|
|
204052
|
+
type: "string",
|
|
204053
|
+
const: "phone_numbers"
|
|
204054
|
+
},
|
|
204055
|
+
{
|
|
204056
|
+
type: "string",
|
|
204057
|
+
const: "messages"
|
|
204058
|
+
},
|
|
204059
|
+
{
|
|
204060
|
+
type: "string",
|
|
204061
|
+
const: "templates"
|
|
204062
|
+
},
|
|
204063
|
+
{
|
|
204064
|
+
type: "string",
|
|
204065
|
+
const: "conversations"
|
|
204066
|
+
},
|
|
204067
|
+
{
|
|
204068
|
+
type: "string",
|
|
204069
|
+
const: "tools"
|
|
204070
|
+
},
|
|
204071
|
+
{
|
|
204072
|
+
type: "string",
|
|
204073
|
+
const: "ai"
|
|
204074
|
+
}
|
|
204075
|
+
],
|
|
204076
|
+
description: "`voice`: minutes of the voice Agent, rounded up per call. `phone_line`: minutes of the phone line; its credits include what the line was charged when the plan bills it apart. `phone_numbers`: a number's month. `messages`: WhatsApp messages, in and out. `templates`: WhatsApp templates sent. `conversations`: WhatsApp conversations started. `tools`: integration tools the Agent ran; its credits include what an integration charged for a run, once billing hands that over. `ai`: model calls."
|
|
204077
|
+
},
|
|
204078
|
+
units: {
|
|
204079
|
+
type: "number",
|
|
204080
|
+
description: "How much of it: minutes, messages, templates, conversations, tool runs or model calls.",
|
|
204081
|
+
minimum: 0
|
|
204082
|
+
}
|
|
204083
|
+
},
|
|
204084
|
+
additionalProperties: false
|
|
204085
|
+
},
|
|
202201
204086
|
RaizConversationView: {
|
|
202202
204087
|
type: "object",
|
|
202203
204088
|
required: [
|
|
@@ -208877,6 +210762,68 @@ var schemaComponents = {
|
|
|
208877
210762
|
}
|
|
208878
210763
|
}
|
|
208879
210764
|
},
|
|
210765
|
+
RaizCreditsExhaustedError: {
|
|
210766
|
+
type: "object",
|
|
210767
|
+
description: "A failed answer.",
|
|
210768
|
+
additionalProperties: false,
|
|
210769
|
+
required: [
|
|
210770
|
+
"success",
|
|
210771
|
+
"data",
|
|
210772
|
+
"error",
|
|
210773
|
+
"metadata"
|
|
210774
|
+
],
|
|
210775
|
+
properties: {
|
|
210776
|
+
success: {
|
|
210777
|
+
type: "boolean",
|
|
210778
|
+
enum: [
|
|
210779
|
+
false
|
|
210780
|
+
]
|
|
210781
|
+
},
|
|
210782
|
+
data: {
|
|
210783
|
+
const: null
|
|
210784
|
+
},
|
|
210785
|
+
error: {
|
|
210786
|
+
$ref: "#/components/schemas/RaizCreditsExhaustedFailure"
|
|
210787
|
+
},
|
|
210788
|
+
metadata: {
|
|
210789
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
210790
|
+
}
|
|
210791
|
+
}
|
|
210792
|
+
},
|
|
210793
|
+
RaizCreditsExhaustedFailure: {
|
|
210794
|
+
type: "object",
|
|
210795
|
+
description: "The organization's credits do not cover this, so nothing was started. Try again once the organization adds credits.",
|
|
210796
|
+
additionalProperties: false,
|
|
210797
|
+
required: [
|
|
210798
|
+
"code",
|
|
210799
|
+
"message",
|
|
210800
|
+
"retryable",
|
|
210801
|
+
"data"
|
|
210802
|
+
],
|
|
210803
|
+
properties: {
|
|
210804
|
+
code: {
|
|
210805
|
+
type: "string",
|
|
210806
|
+
enum: [
|
|
210807
|
+
"CREDITS_EXHAUSTED"
|
|
210808
|
+
],
|
|
210809
|
+
description: "The failure code, stable across releases."
|
|
210810
|
+
},
|
|
210811
|
+
message: {
|
|
210812
|
+
type: "string",
|
|
210813
|
+
description: "What went wrong, for people; it never contains input values."
|
|
210814
|
+
},
|
|
210815
|
+
retryable: {
|
|
210816
|
+
type: "boolean",
|
|
210817
|
+
enum: [
|
|
210818
|
+
false
|
|
210819
|
+
],
|
|
210820
|
+
description: "Whether repeating the same request may succeed."
|
|
210821
|
+
},
|
|
210822
|
+
data: {
|
|
210823
|
+
$ref: "#/components/schemas/Empty"
|
|
210824
|
+
}
|
|
210825
|
+
}
|
|
210826
|
+
},
|
|
208880
210827
|
RaizDailyReportInProgressError: {
|
|
208881
210828
|
type: "object",
|
|
208882
210829
|
description: "A failed answer.",
|
|
@@ -216822,6 +218769,10 @@ var schemaComponents = {
|
|
|
216822
218769
|
type: "string",
|
|
216823
218770
|
const: "channel-restored"
|
|
216824
218771
|
},
|
|
218772
|
+
{
|
|
218773
|
+
type: "string",
|
|
218774
|
+
const: "credits-exhausted"
|
|
218775
|
+
},
|
|
216825
218776
|
{
|
|
216826
218777
|
type: "string",
|
|
216827
218778
|
const: "import-finished"
|
|
@@ -216862,7 +218813,7 @@ var schemaComponents = {
|
|
|
216862
218813
|
},
|
|
216863
218814
|
description: "Product emails enabled for this organization. All are enabled unless the organization saves a selection. An empty selection turns all of them off.",
|
|
216864
218815
|
uniqueItems: true,
|
|
216865
|
-
maxItems:
|
|
218816
|
+
maxItems: 19
|
|
216866
218817
|
},
|
|
216867
218818
|
recipients: {
|
|
216868
218819
|
type: "array",
|
|
@@ -219354,6 +221305,234 @@ var schemaComponents = {
|
|
|
219354
221305
|
}
|
|
219355
221306
|
},
|
|
219356
221307
|
additionalProperties: false
|
|
221308
|
+
},
|
|
221309
|
+
{
|
|
221310
|
+
type: "object",
|
|
221311
|
+
required: [
|
|
221312
|
+
"from",
|
|
221313
|
+
"hasMore",
|
|
221314
|
+
"to",
|
|
221315
|
+
"name",
|
|
221316
|
+
"rows"
|
|
221317
|
+
],
|
|
221318
|
+
properties: {
|
|
221319
|
+
from: {
|
|
221320
|
+
type: "string",
|
|
221321
|
+
description: "A calendar day in the organization's time zone.",
|
|
221322
|
+
format: "date"
|
|
221323
|
+
},
|
|
221324
|
+
hasMore: {
|
|
221325
|
+
type: "boolean",
|
|
221326
|
+
description: "More than 1000 rows matched: narrow the range or the filters."
|
|
221327
|
+
},
|
|
221328
|
+
to: {
|
|
221329
|
+
type: "string",
|
|
221330
|
+
description: "A calendar day in the organization's time zone.",
|
|
221331
|
+
format: "date"
|
|
221332
|
+
},
|
|
221333
|
+
name: {
|
|
221334
|
+
type: "string",
|
|
221335
|
+
const: "usage_daily"
|
|
221336
|
+
},
|
|
221337
|
+
rows: {
|
|
221338
|
+
type: "array",
|
|
221339
|
+
items: {
|
|
221340
|
+
type: "object",
|
|
221341
|
+
required: [
|
|
221342
|
+
"agentId",
|
|
221343
|
+
"agentName",
|
|
221344
|
+
"cacheReadTokens",
|
|
221345
|
+
"cacheWriteTokens",
|
|
221346
|
+
"campaignId",
|
|
221347
|
+
"channelType",
|
|
221348
|
+
"credits",
|
|
221349
|
+
"day",
|
|
221350
|
+
"inputTokens",
|
|
221351
|
+
"kind",
|
|
221352
|
+
"model",
|
|
221353
|
+
"outputTokens",
|
|
221354
|
+
"pendingCount",
|
|
221355
|
+
"units"
|
|
221356
|
+
],
|
|
221357
|
+
properties: {
|
|
221358
|
+
agentId: {
|
|
221359
|
+
anyOf: [
|
|
221360
|
+
{
|
|
221361
|
+
type: "string",
|
|
221362
|
+
description: "Agent id.",
|
|
221363
|
+
examples: [
|
|
221364
|
+
"agt_01m45h8q2rf3t9w6y7z0b1c2d3"
|
|
221365
|
+
],
|
|
221366
|
+
pattern: "^agt_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$"
|
|
221367
|
+
},
|
|
221368
|
+
{
|
|
221369
|
+
type: "null"
|
|
221370
|
+
}
|
|
221371
|
+
]
|
|
221372
|
+
},
|
|
221373
|
+
agentName: {
|
|
221374
|
+
anyOf: [
|
|
221375
|
+
{
|
|
221376
|
+
type: "string"
|
|
221377
|
+
},
|
|
221378
|
+
{
|
|
221379
|
+
type: "null"
|
|
221380
|
+
}
|
|
221381
|
+
]
|
|
221382
|
+
},
|
|
221383
|
+
cacheReadTokens: {
|
|
221384
|
+
type: "integer",
|
|
221385
|
+
minimum: 0
|
|
221386
|
+
},
|
|
221387
|
+
cacheWriteTokens: {
|
|
221388
|
+
type: "integer",
|
|
221389
|
+
minimum: 0
|
|
221390
|
+
},
|
|
221391
|
+
campaignId: {
|
|
221392
|
+
anyOf: [
|
|
221393
|
+
{
|
|
221394
|
+
type: "string",
|
|
221395
|
+
description: "Campaign id.",
|
|
221396
|
+
examples: [
|
|
221397
|
+
"cmp_01m45h8q2rf3t9w6y7z0b1c2d3"
|
|
221398
|
+
],
|
|
221399
|
+
pattern: "^cmp_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$"
|
|
221400
|
+
},
|
|
221401
|
+
{
|
|
221402
|
+
type: "null"
|
|
221403
|
+
}
|
|
221404
|
+
]
|
|
221405
|
+
},
|
|
221406
|
+
channelType: {
|
|
221407
|
+
anyOf: [
|
|
221408
|
+
{
|
|
221409
|
+
anyOf: [
|
|
221410
|
+
{
|
|
221411
|
+
type: "string",
|
|
221412
|
+
const: "voice"
|
|
221413
|
+
},
|
|
221414
|
+
{
|
|
221415
|
+
type: "string",
|
|
221416
|
+
const: "whatsapp"
|
|
221417
|
+
},
|
|
221418
|
+
{
|
|
221419
|
+
type: "string",
|
|
221420
|
+
const: "web"
|
|
221421
|
+
}
|
|
221422
|
+
]
|
|
221423
|
+
},
|
|
221424
|
+
{
|
|
221425
|
+
type: "null"
|
|
221426
|
+
}
|
|
221427
|
+
]
|
|
221428
|
+
},
|
|
221429
|
+
credits: {
|
|
221430
|
+
anyOf: [
|
|
221431
|
+
{
|
|
221432
|
+
type: "number",
|
|
221433
|
+
description: "Credits at the organization's rates when each part was reported; null while none has its value yet.",
|
|
221434
|
+
minimum: 0
|
|
221435
|
+
},
|
|
221436
|
+
{
|
|
221437
|
+
type: "null"
|
|
221438
|
+
}
|
|
221439
|
+
]
|
|
221440
|
+
},
|
|
221441
|
+
day: {
|
|
221442
|
+
type: "string",
|
|
221443
|
+
description: "A calendar day in the organization's time zone.",
|
|
221444
|
+
format: "date"
|
|
221445
|
+
},
|
|
221446
|
+
inputTokens: {
|
|
221447
|
+
type: "integer",
|
|
221448
|
+
minimum: 0
|
|
221449
|
+
},
|
|
221450
|
+
kind: {
|
|
221451
|
+
anyOf: [
|
|
221452
|
+
{
|
|
221453
|
+
type: "string",
|
|
221454
|
+
const: "voice"
|
|
221455
|
+
},
|
|
221456
|
+
{
|
|
221457
|
+
type: "string",
|
|
221458
|
+
const: "phone_line"
|
|
221459
|
+
},
|
|
221460
|
+
{
|
|
221461
|
+
type: "string",
|
|
221462
|
+
const: "phone_numbers"
|
|
221463
|
+
},
|
|
221464
|
+
{
|
|
221465
|
+
type: "string",
|
|
221466
|
+
const: "messages"
|
|
221467
|
+
},
|
|
221468
|
+
{
|
|
221469
|
+
type: "string",
|
|
221470
|
+
const: "templates"
|
|
221471
|
+
},
|
|
221472
|
+
{
|
|
221473
|
+
type: "string",
|
|
221474
|
+
const: "conversations"
|
|
221475
|
+
},
|
|
221476
|
+
{
|
|
221477
|
+
type: "string",
|
|
221478
|
+
const: "tools"
|
|
221479
|
+
},
|
|
221480
|
+
{
|
|
221481
|
+
type: "string",
|
|
221482
|
+
const: "ai"
|
|
221483
|
+
}
|
|
221484
|
+
],
|
|
221485
|
+
description: "`voice`: minutes of the voice Agent, rounded up per call. `phone_line`: minutes of the phone line; its credits include what the line was charged when the plan bills it apart. `phone_numbers`: a number's month. `messages`: WhatsApp messages, in and out. `templates`: WhatsApp templates sent. `conversations`: WhatsApp conversations started. `tools`: integration tools the Agent ran; its credits include what an integration charged for a run, once billing hands that over. `ai`: model calls."
|
|
221486
|
+
},
|
|
221487
|
+
model: {
|
|
221488
|
+
anyOf: [
|
|
221489
|
+
{
|
|
221490
|
+
anyOf: [
|
|
221491
|
+
{
|
|
221492
|
+
type: "string",
|
|
221493
|
+
const: "arbolito/agile"
|
|
221494
|
+
},
|
|
221495
|
+
{
|
|
221496
|
+
type: "string",
|
|
221497
|
+
const: "arbolito/balanced"
|
|
221498
|
+
},
|
|
221499
|
+
{
|
|
221500
|
+
type: "string",
|
|
221501
|
+
const: "arbolito/advanced"
|
|
221502
|
+
},
|
|
221503
|
+
{
|
|
221504
|
+
type: "string",
|
|
221505
|
+
const: "arbolito/top"
|
|
221506
|
+
}
|
|
221507
|
+
],
|
|
221508
|
+
description: "For `ai`: the tier of the model that answered. Null for every other kind."
|
|
221509
|
+
},
|
|
221510
|
+
{
|
|
221511
|
+
type: "null"
|
|
221512
|
+
}
|
|
221513
|
+
]
|
|
221514
|
+
},
|
|
221515
|
+
outputTokens: {
|
|
221516
|
+
type: "integer",
|
|
221517
|
+
minimum: 0
|
|
221518
|
+
},
|
|
221519
|
+
pendingCount: {
|
|
221520
|
+
type: "integer",
|
|
221521
|
+
description: "Parts still waiting for their value in credits.",
|
|
221522
|
+
minimum: 0
|
|
221523
|
+
},
|
|
221524
|
+
units: {
|
|
221525
|
+
type: "number",
|
|
221526
|
+
description: "Minutes, messages, templates, conversations, numbers, tool runs or model calls.",
|
|
221527
|
+
minimum: 0
|
|
221528
|
+
}
|
|
221529
|
+
},
|
|
221530
|
+
additionalProperties: false
|
|
221531
|
+
},
|
|
221532
|
+
maxItems: 1000
|
|
221533
|
+
}
|
|
221534
|
+
},
|
|
221535
|
+
additionalProperties: false
|
|
219357
221536
|
}
|
|
219358
221537
|
]
|
|
219359
221538
|
},
|
|
@@ -225053,6 +227232,10 @@ var schemaComponents = {
|
|
|
225053
227232
|
type: "string",
|
|
225054
227233
|
const: "channel-restored"
|
|
225055
227234
|
},
|
|
227235
|
+
{
|
|
227236
|
+
type: "string",
|
|
227237
|
+
const: "credits-exhausted"
|
|
227238
|
+
},
|
|
225056
227239
|
{
|
|
225057
227240
|
type: "string",
|
|
225058
227241
|
const: "import-finished"
|
|
@@ -225093,7 +227276,7 @@ var schemaComponents = {
|
|
|
225093
227276
|
},
|
|
225094
227277
|
description: "Product emails enabled for this organization. All are enabled unless the organization saves a selection. An empty selection turns all of them off.",
|
|
225095
227278
|
uniqueItems: true,
|
|
225096
|
-
maxItems:
|
|
227279
|
+
maxItems: 19
|
|
225097
227280
|
},
|
|
225098
227281
|
{
|
|
225099
227282
|
type: "null"
|
|
@@ -232394,6 +234577,9 @@ var schemaComponents = {
|
|
|
232394
234577
|
{
|
|
232395
234578
|
$ref: "#/components/schemas/SanitasProviderUnavailableFailure"
|
|
232396
234579
|
},
|
|
234580
|
+
{
|
|
234581
|
+
$ref: "#/components/schemas/SanitasProviderAccessDeniedFailure"
|
|
234582
|
+
},
|
|
232397
234583
|
{
|
|
232398
234584
|
$ref: "#/components/schemas/SanitasProviderChallengeRequiredFailure"
|
|
232399
234585
|
}
|
|
@@ -232403,6 +234589,7 @@ var schemaComponents = {
|
|
|
232403
234589
|
mapping: {
|
|
232404
234590
|
UPSTREAM_UNAVAILABLE: "#/components/schemas/UpstreamUnavailableFailure",
|
|
232405
234591
|
PROVIDER_UNAVAILABLE: "#/components/schemas/SanitasProviderUnavailableFailure",
|
|
234592
|
+
PROVIDER_ACCESS_DENIED: "#/components/schemas/SanitasProviderAccessDeniedFailure",
|
|
232406
234593
|
PROVIDER_CHALLENGE_REQUIRED: "#/components/schemas/SanitasProviderChallengeRequiredFailure"
|
|
232407
234594
|
}
|
|
232408
234595
|
}
|
|
@@ -232762,6 +234949,9 @@ var schemaComponents = {
|
|
|
232762
234949
|
{
|
|
232763
234950
|
$ref: "#/components/schemas/SanitasProviderUnavailableFailure"
|
|
232764
234951
|
},
|
|
234952
|
+
{
|
|
234953
|
+
$ref: "#/components/schemas/SanitasProviderAccessDeniedFailure"
|
|
234954
|
+
},
|
|
232765
234955
|
{
|
|
232766
234956
|
$ref: "#/components/schemas/SanitasProviderChallengeRequiredFailure"
|
|
232767
234957
|
}
|
|
@@ -232771,6 +234961,7 @@ var schemaComponents = {
|
|
|
232771
234961
|
mapping: {
|
|
232772
234962
|
UPSTREAM_UNAVAILABLE: "#/components/schemas/UpstreamUnavailableFailure",
|
|
232773
234963
|
PROVIDER_UNAVAILABLE: "#/components/schemas/SanitasProviderUnavailableFailure",
|
|
234964
|
+
PROVIDER_ACCESS_DENIED: "#/components/schemas/SanitasProviderAccessDeniedFailure",
|
|
232774
234965
|
PROVIDER_CHALLENGE_REQUIRED: "#/components/schemas/SanitasProviderChallengeRequiredFailure"
|
|
232775
234966
|
}
|
|
232776
234967
|
}
|
|
@@ -232854,6 +235045,40 @@ var schemaComponents = {
|
|
|
232854
235045
|
}
|
|
232855
235046
|
}
|
|
232856
235047
|
},
|
|
235048
|
+
SanitasProviderAccessDeniedFailure: {
|
|
235049
|
+
type: "object",
|
|
235050
|
+
description: "Sanitas denied the validator request. Coverage is unknown.",
|
|
235051
|
+
additionalProperties: false,
|
|
235052
|
+
required: [
|
|
235053
|
+
"code",
|
|
235054
|
+
"message",
|
|
235055
|
+
"retryable",
|
|
235056
|
+
"data"
|
|
235057
|
+
],
|
|
235058
|
+
properties: {
|
|
235059
|
+
code: {
|
|
235060
|
+
type: "string",
|
|
235061
|
+
enum: [
|
|
235062
|
+
"PROVIDER_ACCESS_DENIED"
|
|
235063
|
+
],
|
|
235064
|
+
description: "The failure code, stable across releases."
|
|
235065
|
+
},
|
|
235066
|
+
message: {
|
|
235067
|
+
type: "string",
|
|
235068
|
+
description: "What went wrong, for people; it never contains input values."
|
|
235069
|
+
},
|
|
235070
|
+
retryable: {
|
|
235071
|
+
type: "boolean",
|
|
235072
|
+
enum: [
|
|
235073
|
+
false
|
|
235074
|
+
],
|
|
235075
|
+
description: "Whether repeating the same request may succeed."
|
|
235076
|
+
},
|
|
235077
|
+
data: {
|
|
235078
|
+
$ref: "#/components/schemas/Empty"
|
|
235079
|
+
}
|
|
235080
|
+
}
|
|
235081
|
+
},
|
|
232857
235082
|
SanitasProviderChallengeRequiredFailure: {
|
|
232858
235083
|
type: "object",
|
|
232859
235084
|
description: "The provider requires an interactive challenge. Coverage is unknown.",
|
|
@@ -245288,249 +247513,392 @@ var schemaComponents = {
|
|
|
245288
247513
|
},
|
|
245289
247514
|
additionalProperties: false
|
|
245290
247515
|
},
|
|
245291
|
-
AccountApiKeysCreateInput: {
|
|
247516
|
+
AccountApiKeysCreateInput: {
|
|
247517
|
+
type: "object",
|
|
247518
|
+
required: [
|
|
247519
|
+
"name",
|
|
247520
|
+
"scopes"
|
|
247521
|
+
],
|
|
247522
|
+
properties: {
|
|
247523
|
+
name: {
|
|
247524
|
+
type: "string",
|
|
247525
|
+
minLength: 1,
|
|
247526
|
+
maxLength: 60,
|
|
247527
|
+
description: 'What uses it, such as "Billing backend".'
|
|
247528
|
+
},
|
|
247529
|
+
scopes: {
|
|
247530
|
+
type: "array",
|
|
247531
|
+
items: {
|
|
247532
|
+
type: "string",
|
|
247533
|
+
minLength: 1,
|
|
247534
|
+
maxLength: 280,
|
|
247535
|
+
pattern: "^[a-z][a-z0-9-]*(?::[a-z][a-z0-9-]*){2,}$"
|
|
247536
|
+
},
|
|
247537
|
+
minItems: 1,
|
|
247538
|
+
maxItems: 100,
|
|
247539
|
+
uniqueItems: true
|
|
247540
|
+
},
|
|
247541
|
+
expiresAt: {
|
|
247542
|
+
type: "string",
|
|
247543
|
+
format: "date-time",
|
|
247544
|
+
description: "Exclusive expiration instant, with timezone. Defaults to seven days from creation."
|
|
247545
|
+
},
|
|
247546
|
+
restrictions: {
|
|
247547
|
+
type: "object",
|
|
247548
|
+
patternProperties: {
|
|
247549
|
+
"^[a-z][a-z0-9-]{1,63}$": {
|
|
247550
|
+
type: "object",
|
|
247551
|
+
required: [
|
|
247552
|
+
"operations",
|
|
247553
|
+
"connections"
|
|
247554
|
+
],
|
|
247555
|
+
properties: {
|
|
247556
|
+
operations: {
|
|
247557
|
+
anyOf: [
|
|
247558
|
+
{
|
|
247559
|
+
type: "array",
|
|
247560
|
+
items: {
|
|
247561
|
+
type: "string",
|
|
247562
|
+
minLength: 5,
|
|
247563
|
+
maxLength: 200,
|
|
247564
|
+
pattern: "^[a-z][a-z0-9-]*(?:\\.[a-zA-Z][a-zA-Z0-9-]*){2,}$"
|
|
247565
|
+
},
|
|
247566
|
+
minItems: 1,
|
|
247567
|
+
maxItems: 200,
|
|
247568
|
+
uniqueItems: true
|
|
247569
|
+
},
|
|
247570
|
+
{
|
|
247571
|
+
type: "null"
|
|
247572
|
+
}
|
|
247573
|
+
],
|
|
247574
|
+
description: "The tools the key may call in this integration; null: every one its scopes admit."
|
|
247575
|
+
},
|
|
247576
|
+
connections: {
|
|
247577
|
+
anyOf: [
|
|
247578
|
+
{
|
|
247579
|
+
type: "array",
|
|
247580
|
+
items: {
|
|
247581
|
+
type: "string",
|
|
247582
|
+
pattern: "^con_[0-7][0-9a-hjkmnp-tv-z]{25}$"
|
|
247583
|
+
},
|
|
247584
|
+
minItems: 1,
|
|
247585
|
+
maxItems: 50,
|
|
247586
|
+
uniqueItems: true
|
|
247587
|
+
},
|
|
247588
|
+
{
|
|
247589
|
+
type: "null"
|
|
247590
|
+
}
|
|
247591
|
+
],
|
|
247592
|
+
description: "The organization's connections of this integration the key may use; null: all of them."
|
|
247593
|
+
}
|
|
247594
|
+
},
|
|
247595
|
+
additionalProperties: false
|
|
247596
|
+
}
|
|
247597
|
+
},
|
|
247598
|
+
additionalProperties: false,
|
|
247599
|
+
maxProperties: 20,
|
|
247600
|
+
description: "Per integration (sura, visoft, agenda): what the key may use there. An integration left out is decided by the key's scopes alone."
|
|
247601
|
+
}
|
|
247602
|
+
},
|
|
247603
|
+
additionalProperties: false
|
|
247604
|
+
},
|
|
247605
|
+
AccountApiKeysDeleteInput: {
|
|
247606
|
+
type: "object",
|
|
247607
|
+
required: [
|
|
247608
|
+
"apiKeyId"
|
|
247609
|
+
],
|
|
247610
|
+
properties: {
|
|
247611
|
+
apiKeyId: {
|
|
247612
|
+
type: "string",
|
|
247613
|
+
minLength: 1,
|
|
247614
|
+
maxLength: 256,
|
|
247615
|
+
description: "The API key's id, as apiKeys.list answers it."
|
|
247616
|
+
}
|
|
247617
|
+
},
|
|
247618
|
+
additionalProperties: false
|
|
247619
|
+
},
|
|
247620
|
+
AccountApiKeysRotateInput: {
|
|
247621
|
+
type: "object",
|
|
247622
|
+
required: [
|
|
247623
|
+
"apiKeyId"
|
|
247624
|
+
],
|
|
247625
|
+
properties: {
|
|
247626
|
+
apiKeyId: {
|
|
247627
|
+
type: "string",
|
|
247628
|
+
minLength: 1,
|
|
247629
|
+
maxLength: 256,
|
|
247630
|
+
description: "The API key's id, as apiKeys.list answers it."
|
|
247631
|
+
}
|
|
247632
|
+
},
|
|
247633
|
+
additionalProperties: false
|
|
247634
|
+
},
|
|
247635
|
+
AccountBillingGetInput: {
|
|
247636
|
+
type: "object",
|
|
247637
|
+
properties: {},
|
|
247638
|
+
additionalProperties: false
|
|
247639
|
+
},
|
|
247640
|
+
AccountBillingUpdateInput: {
|
|
247641
|
+
type: "object",
|
|
247642
|
+
properties: {
|
|
247643
|
+
autoTopUp: {
|
|
247644
|
+
type: "object",
|
|
247645
|
+
required: [
|
|
247646
|
+
"enabled",
|
|
247647
|
+
"threshold",
|
|
247648
|
+
"credits",
|
|
247649
|
+
"perMonth"
|
|
247650
|
+
],
|
|
247651
|
+
properties: {
|
|
247652
|
+
enabled: {
|
|
247653
|
+
type: "boolean"
|
|
247654
|
+
},
|
|
247655
|
+
threshold: {
|
|
247656
|
+
type: "number",
|
|
247657
|
+
minimum: 0,
|
|
247658
|
+
maximum: 1e5,
|
|
247659
|
+
description: "When the balance falls below this…"
|
|
247660
|
+
},
|
|
247661
|
+
credits: {
|
|
247662
|
+
type: "integer",
|
|
247663
|
+
minimum: 10,
|
|
247664
|
+
maximum: 1e4,
|
|
247665
|
+
description: "…buy this many credits with the saved card…"
|
|
247666
|
+
},
|
|
247667
|
+
perMonth: {
|
|
247668
|
+
type: "integer",
|
|
247669
|
+
minimum: 1,
|
|
247670
|
+
maximum: 31,
|
|
247671
|
+
description: "…at most this many times a month."
|
|
247672
|
+
}
|
|
247673
|
+
},
|
|
247674
|
+
additionalProperties: false
|
|
247675
|
+
},
|
|
247676
|
+
lowBalanceAlert: {
|
|
247677
|
+
anyOf: [
|
|
247678
|
+
{
|
|
247679
|
+
type: "number",
|
|
247680
|
+
minimum: 0,
|
|
247681
|
+
maximum: 1e5
|
|
247682
|
+
},
|
|
247683
|
+
{
|
|
247684
|
+
type: "null"
|
|
247685
|
+
}
|
|
247686
|
+
],
|
|
247687
|
+
description: "The balance at which administrators are emailed; null turns it off."
|
|
247688
|
+
}
|
|
247689
|
+
},
|
|
247690
|
+
additionalProperties: false
|
|
247691
|
+
},
|
|
247692
|
+
AccountBillingPortalSessionsCreateInput: {
|
|
247693
|
+
type: "object",
|
|
247694
|
+
properties: {},
|
|
247695
|
+
additionalProperties: false
|
|
247696
|
+
},
|
|
247697
|
+
AccountColombianRecordsLookupInput: {
|
|
247698
|
+
type: "object",
|
|
247699
|
+
required: [
|
|
247700
|
+
"integration"
|
|
247701
|
+
],
|
|
247702
|
+
properties: {
|
|
247703
|
+
integration: {
|
|
247704
|
+
anyOf: [
|
|
247705
|
+
{
|
|
247706
|
+
type: "string",
|
|
247707
|
+
const: "adres"
|
|
247708
|
+
},
|
|
247709
|
+
{
|
|
247710
|
+
type: "string",
|
|
247711
|
+
const: "sisben"
|
|
247712
|
+
},
|
|
247713
|
+
{
|
|
247714
|
+
type: "string",
|
|
247715
|
+
const: "policia-colombia"
|
|
247716
|
+
}
|
|
247717
|
+
]
|
|
247718
|
+
},
|
|
247719
|
+
documentType: {
|
|
247720
|
+
type: "string",
|
|
247721
|
+
pattern: "^[A-Z]{2}$",
|
|
247722
|
+
description: "Required for ADRES and Sisbén."
|
|
247723
|
+
},
|
|
247724
|
+
documentNumber: {
|
|
247725
|
+
type: "string",
|
|
247726
|
+
pattern: "^(?:[0-9]{1,14}|[A-Z0-9]{8,10})$",
|
|
247727
|
+
description: "Required for ADRES and Sisbén. Preserve leading zeros."
|
|
247728
|
+
},
|
|
247729
|
+
agentMode: {
|
|
247730
|
+
type: "boolean",
|
|
247731
|
+
default: false,
|
|
247732
|
+
description: "Return a concise Spanish tool answer. Authorization is the same in both formats."
|
|
247733
|
+
}
|
|
247734
|
+
},
|
|
247735
|
+
additionalProperties: false,
|
|
247736
|
+
anyOf: [
|
|
247737
|
+
{
|
|
247738
|
+
properties: {
|
|
247739
|
+
integration: {
|
|
247740
|
+
const: "policia-colombia"
|
|
247741
|
+
}
|
|
247742
|
+
}
|
|
247743
|
+
},
|
|
247744
|
+
{
|
|
247745
|
+
required: [
|
|
247746
|
+
"documentType",
|
|
247747
|
+
"documentNumber"
|
|
247748
|
+
]
|
|
247749
|
+
}
|
|
247750
|
+
]
|
|
247751
|
+
},
|
|
247752
|
+
AccountConnectionsListInput: {
|
|
247753
|
+
type: "object",
|
|
247754
|
+
required: [],
|
|
247755
|
+
properties: {
|
|
247756
|
+
cursor: {
|
|
247757
|
+
type: "string",
|
|
247758
|
+
description: "Opaque cursor returned by pageInfo; omit it to request the first page."
|
|
247759
|
+
},
|
|
247760
|
+
direction: {
|
|
247761
|
+
anyOf: [
|
|
247762
|
+
{
|
|
247763
|
+
type: "string",
|
|
247764
|
+
const: "forward"
|
|
247765
|
+
},
|
|
247766
|
+
{
|
|
247767
|
+
type: "string",
|
|
247768
|
+
const: "backward"
|
|
247769
|
+
}
|
|
247770
|
+
],
|
|
247771
|
+
description: "Direction to traverse the stable keyset ordering from the supplied cursor.",
|
|
247772
|
+
default: "forward"
|
|
247773
|
+
},
|
|
247774
|
+
limit: {
|
|
247775
|
+
type: "integer",
|
|
247776
|
+
minimum: 1,
|
|
247777
|
+
maximum: 100,
|
|
247778
|
+
description: "Maximum items returned in one page. Defaults to 25; larger reads require another cursor.",
|
|
247779
|
+
default: 25
|
|
247780
|
+
},
|
|
247781
|
+
tag: {
|
|
247782
|
+
anyOf: [
|
|
247783
|
+
{
|
|
247784
|
+
type: "string",
|
|
247785
|
+
const: "postconsulta"
|
|
247786
|
+
},
|
|
247787
|
+
{
|
|
247788
|
+
type: "string",
|
|
247789
|
+
const: "facturacion"
|
|
247790
|
+
}
|
|
247791
|
+
]
|
|
247792
|
+
}
|
|
247793
|
+
},
|
|
247794
|
+
additionalProperties: false
|
|
247795
|
+
},
|
|
247796
|
+
AccountConnectionsRefreshInput: {
|
|
247797
|
+
type: "object",
|
|
247798
|
+
required: [
|
|
247799
|
+
"connectionId"
|
|
247800
|
+
],
|
|
247801
|
+
properties: {
|
|
247802
|
+
connectionId: {
|
|
247803
|
+
type: "string",
|
|
247804
|
+
pattern: "^con_[0-7][0-9a-hjkmnp-tv-z]{25}$",
|
|
247805
|
+
description: "A connection's id: con_ and 26 characters, stable and unique across the platform."
|
|
247806
|
+
}
|
|
247807
|
+
},
|
|
247808
|
+
additionalProperties: false
|
|
247809
|
+
},
|
|
247810
|
+
AccountInvitationsListInput: {
|
|
247811
|
+
type: "object",
|
|
247812
|
+
required: [],
|
|
247813
|
+
properties: {
|
|
247814
|
+
cursor: {
|
|
247815
|
+
type: "string",
|
|
247816
|
+
description: "Opaque cursor returned by pageInfo; omit it to request the first page."
|
|
247817
|
+
},
|
|
247818
|
+
direction: {
|
|
247819
|
+
anyOf: [
|
|
247820
|
+
{
|
|
247821
|
+
type: "string",
|
|
247822
|
+
const: "forward"
|
|
247823
|
+
},
|
|
247824
|
+
{
|
|
247825
|
+
type: "string",
|
|
247826
|
+
const: "backward"
|
|
247827
|
+
}
|
|
247828
|
+
],
|
|
247829
|
+
description: "Direction to traverse the stable keyset ordering from the supplied cursor.",
|
|
247830
|
+
default: "forward"
|
|
247831
|
+
},
|
|
247832
|
+
limit: {
|
|
247833
|
+
type: "integer",
|
|
247834
|
+
minimum: 1,
|
|
247835
|
+
maximum: 100,
|
|
247836
|
+
description: "Maximum items returned in one page. Defaults to 25; larger reads require another cursor.",
|
|
247837
|
+
default: 25
|
|
247838
|
+
}
|
|
247839
|
+
},
|
|
247840
|
+
additionalProperties: false
|
|
247841
|
+
},
|
|
247842
|
+
AccountInvitationsCreateInput: {
|
|
245292
247843
|
type: "object",
|
|
245293
247844
|
required: [
|
|
245294
|
-
"
|
|
245295
|
-
"
|
|
247845
|
+
"email",
|
|
247846
|
+
"product",
|
|
247847
|
+
"role"
|
|
245296
247848
|
],
|
|
245297
247849
|
properties: {
|
|
245298
|
-
|
|
245299
|
-
type: "string",
|
|
245300
|
-
minLength: 1,
|
|
245301
|
-
maxLength: 60,
|
|
245302
|
-
description: 'What uses it, such as "Billing backend".'
|
|
245303
|
-
},
|
|
245304
|
-
scopes: {
|
|
245305
|
-
type: "array",
|
|
245306
|
-
items: {
|
|
245307
|
-
type: "string",
|
|
245308
|
-
minLength: 1,
|
|
245309
|
-
maxLength: 280,
|
|
245310
|
-
pattern: "^[a-z][a-z0-9-]*(?::[a-z][a-z0-9-]*){2,}$"
|
|
245311
|
-
},
|
|
245312
|
-
minItems: 1,
|
|
245313
|
-
maxItems: 100,
|
|
245314
|
-
uniqueItems: true
|
|
245315
|
-
},
|
|
245316
|
-
expiresAt: {
|
|
247850
|
+
email: {
|
|
245317
247851
|
type: "string",
|
|
245318
|
-
format: "
|
|
245319
|
-
|
|
247852
|
+
format: "email",
|
|
247853
|
+
maxLength: 320,
|
|
247854
|
+
description: "Who to invite: someone who does not have an Arbol account yet."
|
|
245320
247855
|
},
|
|
245321
|
-
|
|
245322
|
-
type: "object",
|
|
245323
|
-
patternProperties: {
|
|
245324
|
-
"^[a-z][a-z0-9-]{1,63}$": {
|
|
245325
|
-
type: "object",
|
|
245326
|
-
required: [
|
|
245327
|
-
"operations",
|
|
245328
|
-
"connections"
|
|
245329
|
-
],
|
|
245330
|
-
properties: {
|
|
245331
|
-
operations: {
|
|
245332
|
-
anyOf: [
|
|
245333
|
-
{
|
|
245334
|
-
type: "array",
|
|
245335
|
-
items: {
|
|
245336
|
-
type: "string",
|
|
245337
|
-
minLength: 5,
|
|
245338
|
-
maxLength: 200,
|
|
245339
|
-
pattern: "^[a-z][a-z0-9-]*(?:\\.[a-zA-Z][a-zA-Z0-9-]*){2,}$"
|
|
245340
|
-
},
|
|
245341
|
-
minItems: 1,
|
|
245342
|
-
maxItems: 200,
|
|
245343
|
-
uniqueItems: true
|
|
245344
|
-
},
|
|
245345
|
-
{
|
|
245346
|
-
type: "null"
|
|
245347
|
-
}
|
|
245348
|
-
],
|
|
245349
|
-
description: "The tools the key may call in this integration; null: every one its scopes admit."
|
|
245350
|
-
},
|
|
245351
|
-
connections: {
|
|
245352
|
-
anyOf: [
|
|
245353
|
-
{
|
|
245354
|
-
type: "array",
|
|
245355
|
-
items: {
|
|
245356
|
-
type: "string",
|
|
245357
|
-
pattern: "^con_[0-7][0-9a-hjkmnp-tv-z]{25}$"
|
|
245358
|
-
},
|
|
245359
|
-
minItems: 1,
|
|
245360
|
-
maxItems: 50,
|
|
245361
|
-
uniqueItems: true
|
|
245362
|
-
},
|
|
245363
|
-
{
|
|
245364
|
-
type: "null"
|
|
245365
|
-
}
|
|
245366
|
-
],
|
|
245367
|
-
description: "The organization's connections of this integration the key may use; null: all of them."
|
|
245368
|
-
}
|
|
245369
|
-
},
|
|
245370
|
-
additionalProperties: false
|
|
245371
|
-
}
|
|
245372
|
-
},
|
|
245373
|
-
additionalProperties: false,
|
|
245374
|
-
maxProperties: 20,
|
|
245375
|
-
description: "Per integration (sura, visoft, agenda): what the key may use there. An integration left out is decided by the key's scopes alone."
|
|
245376
|
-
}
|
|
245377
|
-
},
|
|
245378
|
-
additionalProperties: false
|
|
245379
|
-
},
|
|
245380
|
-
AccountApiKeysDeleteInput: {
|
|
245381
|
-
type: "object",
|
|
245382
|
-
required: [
|
|
245383
|
-
"apiKeyId"
|
|
245384
|
-
],
|
|
245385
|
-
properties: {
|
|
245386
|
-
apiKeyId: {
|
|
245387
|
-
type: "string",
|
|
245388
|
-
minLength: 1,
|
|
245389
|
-
maxLength: 256,
|
|
245390
|
-
description: "The API key's id, as apiKeys.list answers it."
|
|
245391
|
-
}
|
|
245392
|
-
},
|
|
245393
|
-
additionalProperties: false
|
|
245394
|
-
},
|
|
245395
|
-
AccountApiKeysRotateInput: {
|
|
245396
|
-
type: "object",
|
|
245397
|
-
required: [
|
|
245398
|
-
"apiKeyId"
|
|
245399
|
-
],
|
|
245400
|
-
properties: {
|
|
245401
|
-
apiKeyId: {
|
|
245402
|
-
type: "string",
|
|
245403
|
-
minLength: 1,
|
|
245404
|
-
maxLength: 256,
|
|
245405
|
-
description: "The API key's id, as apiKeys.list answers it."
|
|
245406
|
-
}
|
|
245407
|
-
},
|
|
245408
|
-
additionalProperties: false
|
|
245409
|
-
},
|
|
245410
|
-
AccountBillingGetInput: {
|
|
245411
|
-
type: "object",
|
|
245412
|
-
properties: {},
|
|
245413
|
-
additionalProperties: false
|
|
245414
|
-
},
|
|
245415
|
-
AccountBillingPortalSessionsCreateInput: {
|
|
245416
|
-
type: "object",
|
|
245417
|
-
properties: {},
|
|
245418
|
-
additionalProperties: false
|
|
245419
|
-
},
|
|
245420
|
-
AccountColombianRecordsLookupInput: {
|
|
245421
|
-
type: "object",
|
|
245422
|
-
required: [
|
|
245423
|
-
"integration"
|
|
245424
|
-
],
|
|
245425
|
-
properties: {
|
|
245426
|
-
integration: {
|
|
247856
|
+
product: {
|
|
245427
247857
|
anyOf: [
|
|
245428
247858
|
{
|
|
245429
247859
|
type: "string",
|
|
245430
|
-
const: "
|
|
247860
|
+
const: "raiz"
|
|
245431
247861
|
},
|
|
245432
247862
|
{
|
|
245433
247863
|
type: "string",
|
|
245434
|
-
const: "
|
|
247864
|
+
const: "agenda"
|
|
245435
247865
|
},
|
|
245436
247866
|
{
|
|
245437
247867
|
type: "string",
|
|
245438
|
-
const: "
|
|
245439
|
-
}
|
|
245440
|
-
]
|
|
245441
|
-
},
|
|
245442
|
-
documentType: {
|
|
245443
|
-
type: "string",
|
|
245444
|
-
pattern: "^[A-Z]{2}$",
|
|
245445
|
-
description: "Required for ADRES and Sisbén."
|
|
245446
|
-
},
|
|
245447
|
-
documentNumber: {
|
|
245448
|
-
type: "string",
|
|
245449
|
-
pattern: "^(?:[0-9]{1,14}|[A-Z0-9]{8,10})$",
|
|
245450
|
-
description: "Required for ADRES and Sisbén. Preserve leading zeros."
|
|
245451
|
-
},
|
|
245452
|
-
agentMode: {
|
|
245453
|
-
type: "boolean",
|
|
245454
|
-
default: false,
|
|
245455
|
-
description: "Return a concise Spanish tool answer. Authorization is the same in both formats."
|
|
245456
|
-
}
|
|
245457
|
-
},
|
|
245458
|
-
additionalProperties: false,
|
|
245459
|
-
anyOf: [
|
|
245460
|
-
{
|
|
245461
|
-
properties: {
|
|
245462
|
-
integration: {
|
|
245463
|
-
const: "policia-colombia"
|
|
245464
|
-
}
|
|
245465
|
-
}
|
|
245466
|
-
},
|
|
245467
|
-
{
|
|
245468
|
-
required: [
|
|
245469
|
-
"documentType",
|
|
245470
|
-
"documentNumber"
|
|
245471
|
-
]
|
|
245472
|
-
}
|
|
245473
|
-
]
|
|
245474
|
-
},
|
|
245475
|
-
AccountConnectionsListInput: {
|
|
245476
|
-
type: "object",
|
|
245477
|
-
required: [],
|
|
245478
|
-
properties: {
|
|
245479
|
-
cursor: {
|
|
245480
|
-
type: "string",
|
|
245481
|
-
description: "Opaque cursor returned by pageInfo; omit it to request the first page."
|
|
245482
|
-
},
|
|
245483
|
-
direction: {
|
|
245484
|
-
anyOf: [
|
|
245485
|
-
{
|
|
245486
|
-
type: "string",
|
|
245487
|
-
const: "forward"
|
|
247868
|
+
const: "ambar"
|
|
245488
247869
|
},
|
|
245489
247870
|
{
|
|
245490
247871
|
type: "string",
|
|
245491
|
-
const: "
|
|
247872
|
+
const: "account"
|
|
245492
247873
|
}
|
|
245493
247874
|
],
|
|
245494
|
-
description: "
|
|
245495
|
-
default: "forward"
|
|
245496
|
-
},
|
|
245497
|
-
limit: {
|
|
245498
|
-
type: "integer",
|
|
245499
|
-
minimum: 1,
|
|
245500
|
-
maximum: 100,
|
|
245501
|
-
description: "Maximum items returned in one page. Defaults to 25; larger reads require another cursor.",
|
|
245502
|
-
default: 25
|
|
247875
|
+
description: "A product whose team Account administers: Raíz, Agenda, Ámbar or Account itself."
|
|
245503
247876
|
},
|
|
245504
|
-
|
|
245505
|
-
|
|
245506
|
-
|
|
245507
|
-
|
|
245508
|
-
|
|
245509
|
-
},
|
|
245510
|
-
{
|
|
245511
|
-
type: "string",
|
|
245512
|
-
const: "facturacion"
|
|
245513
|
-
}
|
|
245514
|
-
]
|
|
247877
|
+
role: {
|
|
247878
|
+
type: "string",
|
|
247879
|
+
minLength: 1,
|
|
247880
|
+
maxLength: 128,
|
|
247881
|
+
description: "A role name, such as calendar:operator."
|
|
245515
247882
|
}
|
|
245516
247883
|
},
|
|
245517
247884
|
additionalProperties: false
|
|
245518
247885
|
},
|
|
245519
|
-
|
|
247886
|
+
AccountInvitationsDeleteInput: {
|
|
245520
247887
|
type: "object",
|
|
245521
247888
|
required: [
|
|
245522
|
-
"
|
|
247889
|
+
"invitationId"
|
|
245523
247890
|
],
|
|
245524
247891
|
properties: {
|
|
245525
|
-
|
|
247892
|
+
invitationId: {
|
|
245526
247893
|
type: "string",
|
|
245527
|
-
|
|
245528
|
-
|
|
247894
|
+
minLength: 1,
|
|
247895
|
+
maxLength: 256,
|
|
247896
|
+
description: "The invitation's id, as invitations.list answers it."
|
|
245529
247897
|
}
|
|
245530
247898
|
},
|
|
245531
247899
|
additionalProperties: false
|
|
245532
247900
|
},
|
|
245533
|
-
|
|
247901
|
+
AccountInvoicesListInput: {
|
|
245534
247902
|
type: "object",
|
|
245535
247903
|
required: [],
|
|
245536
247904
|
properties: {
|
|
@@ -245562,65 +247930,6 @@ var schemaComponents = {
|
|
|
245562
247930
|
},
|
|
245563
247931
|
additionalProperties: false
|
|
245564
247932
|
},
|
|
245565
|
-
AccountInvitationsCreateInput: {
|
|
245566
|
-
type: "object",
|
|
245567
|
-
required: [
|
|
245568
|
-
"email",
|
|
245569
|
-
"product",
|
|
245570
|
-
"role"
|
|
245571
|
-
],
|
|
245572
|
-
properties: {
|
|
245573
|
-
email: {
|
|
245574
|
-
type: "string",
|
|
245575
|
-
format: "email",
|
|
245576
|
-
maxLength: 320,
|
|
245577
|
-
description: "Who to invite: someone who does not have an Arbol account yet."
|
|
245578
|
-
},
|
|
245579
|
-
product: {
|
|
245580
|
-
anyOf: [
|
|
245581
|
-
{
|
|
245582
|
-
type: "string",
|
|
245583
|
-
const: "raiz"
|
|
245584
|
-
},
|
|
245585
|
-
{
|
|
245586
|
-
type: "string",
|
|
245587
|
-
const: "agenda"
|
|
245588
|
-
},
|
|
245589
|
-
{
|
|
245590
|
-
type: "string",
|
|
245591
|
-
const: "ambar"
|
|
245592
|
-
},
|
|
245593
|
-
{
|
|
245594
|
-
type: "string",
|
|
245595
|
-
const: "account"
|
|
245596
|
-
}
|
|
245597
|
-
],
|
|
245598
|
-
description: "A product whose team Account administers: Raíz, Agenda, Ámbar or Account itself."
|
|
245599
|
-
},
|
|
245600
|
-
role: {
|
|
245601
|
-
type: "string",
|
|
245602
|
-
minLength: 1,
|
|
245603
|
-
maxLength: 128,
|
|
245604
|
-
description: "A role name, such as calendar:operator."
|
|
245605
|
-
}
|
|
245606
|
-
},
|
|
245607
|
-
additionalProperties: false
|
|
245608
|
-
},
|
|
245609
|
-
AccountInvitationsDeleteInput: {
|
|
245610
|
-
type: "object",
|
|
245611
|
-
required: [
|
|
245612
|
-
"invitationId"
|
|
245613
|
-
],
|
|
245614
|
-
properties: {
|
|
245615
|
-
invitationId: {
|
|
245616
|
-
type: "string",
|
|
245617
|
-
minLength: 1,
|
|
245618
|
-
maxLength: 256,
|
|
245619
|
-
description: "The invitation's id, as invitations.list answers it."
|
|
245620
|
-
}
|
|
245621
|
-
},
|
|
245622
|
-
additionalProperties: false
|
|
245623
|
-
},
|
|
245624
247933
|
AccountMembersListInput: {
|
|
245625
247934
|
type: "object",
|
|
245626
247935
|
required: [],
|
|
@@ -245851,6 +248160,11 @@ var schemaComponents = {
|
|
|
245851
248160
|
},
|
|
245852
248161
|
additionalProperties: false
|
|
245853
248162
|
},
|
|
248163
|
+
AccountPaymentMethodSetupsCreateInput: {
|
|
248164
|
+
type: "object",
|
|
248165
|
+
properties: {},
|
|
248166
|
+
additionalProperties: false
|
|
248167
|
+
},
|
|
245854
248168
|
AccountPermissionsListInput: {
|
|
245855
248169
|
type: "object",
|
|
245856
248170
|
required: [],
|
|
@@ -246052,7 +248366,7 @@ var schemaComponents = {
|
|
|
246052
248366
|
to: {
|
|
246053
248367
|
type: "string",
|
|
246054
248368
|
format: "date-time",
|
|
246055
|
-
description: "End of the range; now by default."
|
|
248369
|
+
description: "End of the range; now by default. At most 366 days after `from`."
|
|
246056
248370
|
},
|
|
246057
248371
|
groupBy: {
|
|
246058
248372
|
anyOf: [
|
|
@@ -246063,9 +248377,23 @@ var schemaComponents = {
|
|
|
246063
248377
|
{
|
|
246064
248378
|
type: "string",
|
|
246065
248379
|
const: "channel"
|
|
248380
|
+
},
|
|
248381
|
+
{
|
|
248382
|
+
type: "string",
|
|
248383
|
+
const: "agent"
|
|
248384
|
+
},
|
|
248385
|
+
{
|
|
248386
|
+
type: "string",
|
|
248387
|
+
const: "campaign"
|
|
246066
248388
|
}
|
|
246067
248389
|
],
|
|
246068
248390
|
description: "Breaks each feature down; by product by default."
|
|
248391
|
+
},
|
|
248392
|
+
timezone: {
|
|
248393
|
+
type: "string",
|
|
248394
|
+
minLength: 1,
|
|
248395
|
+
maxLength: 64,
|
|
248396
|
+
description: "An IANA time zone (`America/Bogota`) that days and the default month follow; UTC by default."
|
|
246069
248397
|
}
|
|
246070
248398
|
},
|
|
246071
248399
|
additionalProperties: false
|
|
@@ -250056,13 +252384,13 @@ var schemaComponents = {
|
|
|
250056
252384
|
FamisanarAffiliationsLookupInput: {
|
|
250057
252385
|
type: "object",
|
|
250058
252386
|
required: [
|
|
250059
|
-
"connectionId",
|
|
250060
252387
|
"documentNumber"
|
|
250061
252388
|
],
|
|
250062
252389
|
properties: {
|
|
250063
252390
|
connectionId: {
|
|
250064
252391
|
type: "string",
|
|
250065
|
-
pattern: "^con_[0-9A-Za-z]{26}$"
|
|
252392
|
+
pattern: "^con_[0-9A-Za-z]{26}$",
|
|
252393
|
+
description: "Omit when the organization has exactly one active Famisanar connection. Required to choose among multiple active connections."
|
|
250066
252394
|
},
|
|
250067
252395
|
documentType: {
|
|
250068
252396
|
anyOf: [
|
|
@@ -250119,7 +252447,8 @@ var schemaComponents = {
|
|
|
250119
252447
|
const: "TI"
|
|
250120
252448
|
}
|
|
250121
252449
|
],
|
|
250122
|
-
default: "CC"
|
|
252450
|
+
default: "CC",
|
|
252451
|
+
description: "Identity document type. Defaults to CC; send another supported type explicitly."
|
|
250123
252452
|
},
|
|
250124
252453
|
documentNumber: {
|
|
250125
252454
|
type: "string",
|
|
@@ -250130,7 +252459,22 @@ var schemaComponents = {
|
|
|
250130
252459
|
type: "integer",
|
|
250131
252460
|
minimum: 0,
|
|
250132
252461
|
maximum: 7,
|
|
250133
|
-
default: 7
|
|
252462
|
+
default: 7,
|
|
252463
|
+
description: "Maximum age in days of an observation from this IPS connection. Zero contacts the provider and refreshes the saved result."
|
|
252464
|
+
}
|
|
252465
|
+
},
|
|
252466
|
+
additionalProperties: false
|
|
252467
|
+
},
|
|
252468
|
+
FamisanarConnectionsGetInput: {
|
|
252469
|
+
type: "object",
|
|
252470
|
+
required: [
|
|
252471
|
+
"connectionId"
|
|
252472
|
+
],
|
|
252473
|
+
properties: {
|
|
252474
|
+
connectionId: {
|
|
252475
|
+
type: "string",
|
|
252476
|
+
pattern: "^con_[0-9A-Za-z]{26}$",
|
|
252477
|
+
description: "The IPS connection saved in Account. This is not a provider session ID."
|
|
250134
252478
|
}
|
|
250135
252479
|
},
|
|
250136
252480
|
additionalProperties: false
|
|
@@ -259921,6 +262265,10 @@ var schemaComponents = {
|
|
|
259921
262265
|
type: "string",
|
|
259922
262266
|
const: "channel-restored"
|
|
259923
262267
|
},
|
|
262268
|
+
{
|
|
262269
|
+
type: "string",
|
|
262270
|
+
const: "credits-exhausted"
|
|
262271
|
+
},
|
|
259924
262272
|
{
|
|
259925
262273
|
type: "string",
|
|
259926
262274
|
const: "import-finished"
|
|
@@ -259961,7 +262309,7 @@ var schemaComponents = {
|
|
|
259961
262309
|
},
|
|
259962
262310
|
description: "Product emails enabled for this organization. All are enabled unless the organization saves a selection. An empty selection turns all of them off.",
|
|
259963
262311
|
uniqueItems: true,
|
|
259964
|
-
maxItems:
|
|
262312
|
+
maxItems: 19
|
|
259965
262313
|
},
|
|
259966
262314
|
{
|
|
259967
262315
|
type: "null"
|
|
@@ -260781,9 +263129,13 @@ var schemaComponents = {
|
|
|
260781
263129
|
{
|
|
260782
263130
|
type: "string",
|
|
260783
263131
|
const: "campaign_progress"
|
|
263132
|
+
},
|
|
263133
|
+
{
|
|
263134
|
+
type: "string",
|
|
263135
|
+
const: "usage_daily"
|
|
260784
263136
|
}
|
|
260785
263137
|
],
|
|
260786
|
-
description: "`conversations_daily`: conversations the AI took part in per day, Agent, channel type and direction, with outcomes and escalations (filters `agentId`, `channelType`). `handoffs_daily`: the conversations the AI handed to the team, per day of the handoff, Agent and person (who answered first, else the case's owner), with how many were answered, answered in time, still waiting, closed unattended or returned to the AI, and the average seconds to the first answer (filter `agentId`). `booking_details`: individual patients and appointments from explicit successful creation receipts, including specialty, paired exams, deduplication, matched patient names and later recorded cancellations; filters agentId and specialty; requires conversation read/write permission too. Historical receipts with created=true, not current provider status or all provider protocols. unverifiedCount covers explicit creations missing a stable patient/slot. `booking_outcomes`: verified saved booking receipts per completion day, Agent and integration, excluding test/import/deleted conversations; confirmed new bookings, reschedules, cancellations, failed, pending, unverified and duplicate receipts separately (filter `agentId`). Historical evidence, not current appointment status; hasMore requires splitting the range and returns no partial totals. `tool_calls_daily`: tool calls per day, Agent and tool with failures/durations (filter `agentId`). `tool_calls`: individual calls, never inputs/outputs (filter `agentId`). `assessment_results_daily`: assessments per day/definition (filter `definitionId`). `pqrsf_daily`: classification, confirmed resolution and referral-link counts from the pqrsf_* definitions, including pending/unclassified conversations, excluding tests/imports/deleted records (filters `agentId`, `channelType`); no measured filing reduction is inferred. `campaign_progress`: recipients by status (filter `campaignId`; no dates)."
|
|
263138
|
+
description: "`conversations_daily`: conversations the AI took part in per day, Agent, channel type and direction, with outcomes and escalations (filters `agentId`, `channelType`). `handoffs_daily`: the conversations the AI handed to the team, per day of the handoff, Agent and person (who answered first, else the case's owner), with how many were answered, answered in time, still waiting, closed unattended or returned to the AI, and the average seconds to the first answer (filter `agentId`). `booking_details`: individual patients and appointments from explicit successful creation receipts, including specialty, paired exams, deduplication, matched patient names and later recorded cancellations; filters agentId and specialty; requires conversation read/write permission too. Historical receipts with created=true, not current provider status or all provider protocols. unverifiedCount covers explicit creations missing a stable patient/slot. `booking_outcomes`: verified saved booking receipts per completion day, Agent and integration, excluding test/import/deleted conversations; confirmed new bookings, reschedules, cancellations, failed, pending, unverified and duplicate receipts separately (filter `agentId`). Historical evidence, not current appointment status; hasMore requires splitting the range and returns no partial totals. `tool_calls_daily`: tool calls per day, Agent and tool with failures/durations (filter `agentId`). `tool_calls`: individual calls, never inputs/outputs (filter `agentId`). `assessment_results_daily`: assessments per day/definition (filter `definitionId`). `pqrsf_daily`: classification, confirmed resolution and referral-link counts from the pqrsf_* definitions, including pending/unclassified conversations, excluding tests/imports/deleted records (filters `agentId`, `channelType`); no measured filing reduction is inferred. `campaign_progress`: recipients by status (filter `campaignId`; no dates). `usage_daily`: what was used per day, Agent, channel type, campaign and kind, with its credits at the organization's rates and, for AI, the model tier and its tokens (filters `agentId`, `channelType`, `campaignId`); test conversations count like any other."
|
|
260787
263139
|
},
|
|
260788
263140
|
to: {
|
|
260789
263141
|
type: "string",
|
|
@@ -264853,9 +267205,9 @@ var schemaComponents = {
|
|
|
264853
267205
|
// src/generated/generation.json
|
|
264854
267206
|
var generation_default = {
|
|
264855
267207
|
formatVersion: 6,
|
|
264856
|
-
release: "1.
|
|
264857
|
-
openapiSha256: "
|
|
264858
|
-
openapiContentSha256: "
|
|
267208
|
+
release: "1.20261120.15943",
|
|
267209
|
+
openapiSha256: "67fc62e22e65c53972d0e702ba586a8caeb4f1bf21f6ef0316cb2f13ca84f556",
|
|
267210
|
+
openapiContentSha256: "0917ea00c67135dc2457fd9c36487ca28fc5d2d3ae9da7774490a10c1fff638d",
|
|
264859
267211
|
forge: {
|
|
264860
267212
|
repository: "https://github.com/cloudflare/forge",
|
|
264861
267213
|
commit: "7f86447210b7bea3779bfdab3cd5655eade0eadb",
|
|
@@ -264868,7 +267220,7 @@ var generation_default = {
|
|
|
264868
267220
|
outputs: [
|
|
264869
267221
|
{
|
|
264870
267222
|
path: "src/generated/commands.ts",
|
|
264871
|
-
sha256: "
|
|
267223
|
+
sha256: "e988095c026dc715d3376c8db378467986a240c90b84f29358ac377c77768d06"
|
|
264872
267224
|
}
|
|
264873
267225
|
]
|
|
264874
267226
|
};
|
|
@@ -266468,7 +268820,7 @@ ${name}`);
|
|
|
266468
268820
|
}
|
|
266469
268821
|
|
|
266470
268822
|
// src/index.ts
|
|
266471
|
-
var VERSION = "3.
|
|
268823
|
+
var VERSION = "3.68.0";
|
|
266472
268824
|
var RELEASE = generation_default.release;
|
|
266473
268825
|
var commands2 = { ...commands, ...accountOperatorCommands };
|
|
266474
268826
|
var SDK_PATHS = new Map(Object.values(commands2).map((command) => [command.operation, command.sdkPath]));
|