@botpress/api 1.72.1 → 1.73.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.
@@ -1,5 +1,5 @@
1
1
  import * as opapi from '@bpinternal/opapi';
2
- export type State = opapi.State<'Invoice' | 'Subscription' | 'SubscriptionPreview' | 'SubscriptionUpdateParams' | 'SubscriptionDetails' | 'SetPlanParams' | 'SetAddonsParams', 'x-workspace-id', 'invoice' | 'subscription'>;
2
+ export type State = opapi.State<'Invoice' | 'Subscription' | 'SubscriptionPreview' | 'SubscriptionUpdateParams' | 'SubscriptionDetails' | 'SetPlanParams' | 'SetAddonsParams' | 'SetCancelAtPeriodEndParams' | 'BillingAddress' | 'Trial' | 'GetTrialsResponse' | 'CreateTrialParams' | 'GetAutoRechargeSettingsResponse' | 'SetAutoRechargeSettingsParams', 'x-workspace-id', 'invoice' | 'subscription'>;
3
3
  export declare const state: {
4
4
  operations: {
5
5
  getBillingReadonly: {
@@ -34,6 +34,108 @@ export declare const state: {
34
34
  };
35
35
  };
36
36
  };
37
+ getBillingAddress: {
38
+ name: string;
39
+ description: string;
40
+ method: "get";
41
+ path: string;
42
+ response: {
43
+ description: string;
44
+ status: 200;
45
+ schema: {
46
+ type: "object";
47
+ properties: {
48
+ address: {
49
+ type: "object";
50
+ properties: {
51
+ lineOne: {
52
+ type: "string";
53
+ };
54
+ lineTwo: {
55
+ type: "string";
56
+ };
57
+ city: {
58
+ type: "string";
59
+ };
60
+ state: {
61
+ type: "string";
62
+ };
63
+ postalCode: {
64
+ type: "string";
65
+ };
66
+ country: {
67
+ type: "string";
68
+ };
69
+ };
70
+ nullable: true;
71
+ additionalProperties: false;
72
+ };
73
+ };
74
+ required: string[];
75
+ title: string;
76
+ additionalProperties: false;
77
+ };
78
+ };
79
+ parameters: {
80
+ "x-workspace-id": {
81
+ in: "header";
82
+ type: "string";
83
+ description: string;
84
+ required: true;
85
+ };
86
+ };
87
+ };
88
+ setBillingAddress: {
89
+ name: string;
90
+ description: string;
91
+ method: "put";
92
+ path: string;
93
+ requestBody: {
94
+ description: string;
95
+ schema: {
96
+ type: "object";
97
+ properties: {
98
+ lineOne: {
99
+ type: "string";
100
+ };
101
+ lineTwo: {
102
+ type: "string";
103
+ };
104
+ city: {
105
+ type: "string";
106
+ };
107
+ state: {
108
+ type: "string";
109
+ };
110
+ postalCode: {
111
+ type: "string";
112
+ };
113
+ country: {
114
+ type: "string";
115
+ };
116
+ };
117
+ title: string;
118
+ additionalProperties: false;
119
+ };
120
+ };
121
+ response: {
122
+ description: string;
123
+ status: 200;
124
+ schema: {
125
+ type: "object";
126
+ title: string;
127
+ additionalProperties: false;
128
+ };
129
+ };
130
+ parameters: {
131
+ "x-workspace-id": {
132
+ in: "header";
133
+ type: "string";
134
+ description: string;
135
+ required: true;
136
+ };
137
+ };
138
+ };
37
139
  getPlan: {
38
140
  name: string;
39
141
  description: string;
@@ -293,135 +395,7 @@ export declare const state: {
293
395
  };
294
396
  parameters: {};
295
397
  };
296
- getCurrentSubscription: {
297
- name: string;
298
- description: string;
299
- method: "get";
300
- path: string;
301
- response: {
302
- description: string;
303
- status: 200;
304
- schema: {
305
- type: "object";
306
- properties: {
307
- plan: {
308
- type: "object";
309
- properties: {
310
- current: {
311
- type: "object";
312
- properties: {
313
- status: {
314
- type: "string";
315
- enum: string[];
316
- };
317
- planId: {
318
- type: "string";
319
- };
320
- interval: {
321
- type: "string";
322
- enum: string[];
323
- };
324
- price: {
325
- type: "number";
326
- };
327
- proratedPrice: {
328
- type: "number";
329
- };
330
- cancelAtPeriodEnd: {
331
- type: "boolean";
332
- };
333
- periodEnd: {
334
- type: "string";
335
- };
336
- };
337
- required: string[];
338
- additionalProperties: false;
339
- };
340
- next: {
341
- type: "object";
342
- properties: {
343
- planId: {
344
- type: "string";
345
- };
346
- interval: {
347
- type: "string";
348
- enum: string[];
349
- };
350
- price: {
351
- type: "number";
352
- nullable: true;
353
- };
354
- effectiveDate: {
355
- type: "string";
356
- };
357
- };
358
- required: string[];
359
- nullable: true;
360
- additionalProperties: false;
361
- };
362
- };
363
- required: string[];
364
- additionalProperties: false;
365
- };
366
- addons: {
367
- type: "object";
368
- additionalProperties: {
369
- type: "object";
370
- properties: {
371
- current: {
372
- type: "object";
373
- properties: {
374
- quantity: {
375
- type: "number";
376
- };
377
- price: {
378
- type: "number";
379
- };
380
- proratedPrice: {
381
- type: "number";
382
- };
383
- };
384
- required: string[];
385
- additionalProperties: false;
386
- };
387
- next: {
388
- type: "object";
389
- properties: {
390
- quantity: {
391
- type: "number";
392
- };
393
- price: {
394
- type: "number";
395
- };
396
- effectiveDate: {
397
- type: "string";
398
- };
399
- };
400
- required: string[];
401
- nullable: true;
402
- additionalProperties: false;
403
- };
404
- };
405
- required: string[];
406
- additionalProperties: false;
407
- };
408
- };
409
- };
410
- required: string[];
411
- title: string;
412
- additionalProperties: false;
413
- };
414
- };
415
- parameters: {
416
- "x-workspace-id": {
417
- in: "header";
418
- type: "string";
419
- description: string;
420
- required: true;
421
- };
422
- };
423
- };
424
- getNextSubscription: {
398
+ getSubscription: {
425
399
  name: string;
426
400
  description: string;
427
401
  method: "get";
@@ -1073,22 +1047,23 @@ export declare const state: {
1073
1047
  };
1074
1048
  };
1075
1049
  };
1076
- listInvoices: {
1050
+ setCancelAtPeriodEnd: {
1077
1051
  name: string;
1078
1052
  description: string;
1079
- method: "get";
1053
+ method: "put";
1080
1054
  path: string;
1081
- parameters: {
1082
- nextToken: {
1083
- in: "query";
1084
- description: string;
1085
- type: "string";
1086
- };
1087
- "x-workspace-id": {
1088
- in: "header";
1089
- type: "string";
1090
- description: string;
1091
- required: true;
1055
+ requestBody: {
1056
+ description: string;
1057
+ schema: {
1058
+ type: "object";
1059
+ properties: {
1060
+ cancelAtPeriodEnd: {
1061
+ type: "boolean";
1062
+ };
1063
+ };
1064
+ required: string[];
1065
+ title: string;
1066
+ additionalProperties: false;
1092
1067
  };
1093
1068
  };
1094
1069
  response: {
@@ -1097,23 +1072,645 @@ export declare const state: {
1097
1072
  schema: {
1098
1073
  type: "object";
1099
1074
  properties: {
1100
- invoices: {
1101
- type: "array";
1102
- items: {
1103
- type: "object";
1104
- properties: {
1105
- id: {
1106
- type: "string";
1107
- };
1108
- amount: {
1109
- type: "number";
1110
- };
1111
- currency: {
1112
- type: "string";
1113
- };
1114
- status: {
1115
- type: "string";
1116
- enum: string[];
1075
+ plan: {
1076
+ type: "object";
1077
+ properties: {
1078
+ current: {
1079
+ type: "object";
1080
+ properties: {
1081
+ status: {
1082
+ type: "string";
1083
+ enum: string[];
1084
+ };
1085
+ planId: {
1086
+ type: "string";
1087
+ };
1088
+ interval: {
1089
+ type: "string";
1090
+ enum: string[];
1091
+ };
1092
+ price: {
1093
+ type: "number";
1094
+ };
1095
+ proratedPrice: {
1096
+ type: "number";
1097
+ };
1098
+ cancelAtPeriodEnd: {
1099
+ type: "boolean";
1100
+ };
1101
+ periodEnd: {
1102
+ type: "string";
1103
+ };
1104
+ };
1105
+ required: string[];
1106
+ additionalProperties: false;
1107
+ };
1108
+ next: {
1109
+ type: "object";
1110
+ properties: {
1111
+ planId: {
1112
+ type: "string";
1113
+ };
1114
+ interval: {
1115
+ type: "string";
1116
+ enum: string[];
1117
+ };
1118
+ price: {
1119
+ type: "number";
1120
+ nullable: true;
1121
+ };
1122
+ effectiveDate: {
1123
+ type: "string";
1124
+ };
1125
+ };
1126
+ required: string[];
1127
+ nullable: true;
1128
+ additionalProperties: false;
1129
+ };
1130
+ };
1131
+ required: string[];
1132
+ additionalProperties: false;
1133
+ };
1134
+ addons: {
1135
+ type: "object";
1136
+ additionalProperties: {
1137
+ type: "object";
1138
+ properties: {
1139
+ current: {
1140
+ type: "object";
1141
+ properties: {
1142
+ quantity: {
1143
+ type: "number";
1144
+ };
1145
+ price: {
1146
+ type: "number";
1147
+ };
1148
+ proratedPrice: {
1149
+ type: "number";
1150
+ };
1151
+ };
1152
+ required: string[];
1153
+ additionalProperties: false;
1154
+ };
1155
+ next: {
1156
+ type: "object";
1157
+ properties: {
1158
+ quantity: {
1159
+ type: "number";
1160
+ };
1161
+ price: {
1162
+ type: "number";
1163
+ };
1164
+ effectiveDate: {
1165
+ type: "string";
1166
+ };
1167
+ };
1168
+ required: string[];
1169
+ nullable: true;
1170
+ additionalProperties: false;
1171
+ };
1172
+ };
1173
+ required: string[];
1174
+ additionalProperties: false;
1175
+ };
1176
+ };
1177
+ };
1178
+ required: string[];
1179
+ description: string;
1180
+ title: string;
1181
+ additionalProperties: false;
1182
+ };
1183
+ };
1184
+ parameters: {
1185
+ "x-workspace-id": {
1186
+ in: "header";
1187
+ type: "string";
1188
+ description: string;
1189
+ required: true;
1190
+ };
1191
+ };
1192
+ };
1193
+ getAutoRechargeSettings: {
1194
+ name: string;
1195
+ description: string;
1196
+ method: "get";
1197
+ path: string;
1198
+ response: {
1199
+ description: string;
1200
+ status: 200;
1201
+ schema: {
1202
+ type: "object";
1203
+ properties: {
1204
+ settings: {
1205
+ type: "object";
1206
+ properties: {
1207
+ table_row_count: {
1208
+ type: "object";
1209
+ properties: {
1210
+ enabled: {
1211
+ type: "boolean";
1212
+ };
1213
+ threshold: {
1214
+ type: "number";
1215
+ minimum: number;
1216
+ maximum: number;
1217
+ };
1218
+ limit: {
1219
+ type: "number";
1220
+ minimum: number;
1221
+ };
1222
+ disabledReason: {
1223
+ type: "string";
1224
+ };
1225
+ };
1226
+ required: string[];
1227
+ additionalProperties: false;
1228
+ };
1229
+ invocation_calls: {
1230
+ type: "object";
1231
+ properties: {
1232
+ enabled: {
1233
+ type: "boolean";
1234
+ };
1235
+ threshold: {
1236
+ type: "number";
1237
+ minimum: number;
1238
+ maximum: number;
1239
+ };
1240
+ limit: {
1241
+ type: "number";
1242
+ minimum: number;
1243
+ };
1244
+ disabledReason: {
1245
+ type: "string";
1246
+ };
1247
+ };
1248
+ required: string[];
1249
+ additionalProperties: false;
1250
+ };
1251
+ knowledgebase_vector_storage: {
1252
+ type: "object";
1253
+ properties: {
1254
+ enabled: {
1255
+ type: "boolean";
1256
+ };
1257
+ threshold: {
1258
+ type: "number";
1259
+ minimum: number;
1260
+ maximum: number;
1261
+ };
1262
+ limit: {
1263
+ type: "number";
1264
+ minimum: number;
1265
+ };
1266
+ disabledReason: {
1267
+ type: "string";
1268
+ };
1269
+ };
1270
+ required: string[];
1271
+ additionalProperties: false;
1272
+ };
1273
+ storage_count: {
1274
+ type: "object";
1275
+ properties: {
1276
+ enabled: {
1277
+ type: "boolean";
1278
+ };
1279
+ threshold: {
1280
+ type: "number";
1281
+ minimum: number;
1282
+ maximum: number;
1283
+ };
1284
+ limit: {
1285
+ type: "number";
1286
+ minimum: number;
1287
+ };
1288
+ disabledReason: {
1289
+ type: "string";
1290
+ };
1291
+ };
1292
+ required: string[];
1293
+ additionalProperties: false;
1294
+ };
1295
+ };
1296
+ required: string[];
1297
+ additionalProperties: false;
1298
+ };
1299
+ };
1300
+ required: string[];
1301
+ title: string;
1302
+ additionalProperties: false;
1303
+ };
1304
+ };
1305
+ parameters: {
1306
+ "x-workspace-id": {
1307
+ in: "header";
1308
+ type: "string";
1309
+ description: string;
1310
+ required: true;
1311
+ };
1312
+ };
1313
+ };
1314
+ setAutoRechargeSettings: {
1315
+ name: string;
1316
+ description: string;
1317
+ method: "put";
1318
+ path: string;
1319
+ requestBody: {
1320
+ description: string;
1321
+ schema: {
1322
+ type: "object";
1323
+ properties: {
1324
+ settings: {
1325
+ type: "object";
1326
+ properties: {
1327
+ table_row_count: {
1328
+ type: "object";
1329
+ properties: {
1330
+ enabled: {
1331
+ type: "boolean";
1332
+ };
1333
+ threshold: {
1334
+ type: "number";
1335
+ minimum: number;
1336
+ maximum: number;
1337
+ };
1338
+ limit: {
1339
+ type: "number";
1340
+ minimum: number;
1341
+ };
1342
+ disabledReason: {
1343
+ type: "string";
1344
+ };
1345
+ };
1346
+ required: string[];
1347
+ additionalProperties: false;
1348
+ };
1349
+ invocation_calls: {
1350
+ type: "object";
1351
+ properties: {
1352
+ enabled: {
1353
+ type: "boolean";
1354
+ };
1355
+ threshold: {
1356
+ type: "number";
1357
+ minimum: number;
1358
+ maximum: number;
1359
+ };
1360
+ limit: {
1361
+ type: "number";
1362
+ minimum: number;
1363
+ };
1364
+ disabledReason: {
1365
+ type: "string";
1366
+ };
1367
+ };
1368
+ required: string[];
1369
+ additionalProperties: false;
1370
+ };
1371
+ knowledgebase_vector_storage: {
1372
+ type: "object";
1373
+ properties: {
1374
+ enabled: {
1375
+ type: "boolean";
1376
+ };
1377
+ threshold: {
1378
+ type: "number";
1379
+ minimum: number;
1380
+ maximum: number;
1381
+ };
1382
+ limit: {
1383
+ type: "number";
1384
+ minimum: number;
1385
+ };
1386
+ disabledReason: {
1387
+ type: "string";
1388
+ };
1389
+ };
1390
+ required: string[];
1391
+ additionalProperties: false;
1392
+ };
1393
+ storage_count: {
1394
+ type: "object";
1395
+ properties: {
1396
+ enabled: {
1397
+ type: "boolean";
1398
+ };
1399
+ threshold: {
1400
+ type: "number";
1401
+ minimum: number;
1402
+ maximum: number;
1403
+ };
1404
+ limit: {
1405
+ type: "number";
1406
+ minimum: number;
1407
+ };
1408
+ disabledReason: {
1409
+ type: "string";
1410
+ };
1411
+ };
1412
+ required: string[];
1413
+ additionalProperties: false;
1414
+ };
1415
+ };
1416
+ additionalProperties: false;
1417
+ };
1418
+ };
1419
+ required: string[];
1420
+ title: string;
1421
+ additionalProperties: false;
1422
+ };
1423
+ };
1424
+ response: {
1425
+ description: string;
1426
+ status: 200;
1427
+ schema: {
1428
+ type: "object";
1429
+ properties: {
1430
+ settings: {
1431
+ type: "object";
1432
+ properties: {
1433
+ table_row_count: {
1434
+ type: "object";
1435
+ properties: {
1436
+ enabled: {
1437
+ type: "boolean";
1438
+ };
1439
+ threshold: {
1440
+ type: "number";
1441
+ minimum: number;
1442
+ maximum: number;
1443
+ };
1444
+ limit: {
1445
+ type: "number";
1446
+ minimum: number;
1447
+ };
1448
+ disabledReason: {
1449
+ type: "string";
1450
+ };
1451
+ };
1452
+ required: string[];
1453
+ additionalProperties: false;
1454
+ };
1455
+ invocation_calls: {
1456
+ type: "object";
1457
+ properties: {
1458
+ enabled: {
1459
+ type: "boolean";
1460
+ };
1461
+ threshold: {
1462
+ type: "number";
1463
+ minimum: number;
1464
+ maximum: number;
1465
+ };
1466
+ limit: {
1467
+ type: "number";
1468
+ minimum: number;
1469
+ };
1470
+ disabledReason: {
1471
+ type: "string";
1472
+ };
1473
+ };
1474
+ required: string[];
1475
+ additionalProperties: false;
1476
+ };
1477
+ knowledgebase_vector_storage: {
1478
+ type: "object";
1479
+ properties: {
1480
+ enabled: {
1481
+ type: "boolean";
1482
+ };
1483
+ threshold: {
1484
+ type: "number";
1485
+ minimum: number;
1486
+ maximum: number;
1487
+ };
1488
+ limit: {
1489
+ type: "number";
1490
+ minimum: number;
1491
+ };
1492
+ disabledReason: {
1493
+ type: "string";
1494
+ };
1495
+ };
1496
+ required: string[];
1497
+ additionalProperties: false;
1498
+ };
1499
+ storage_count: {
1500
+ type: "object";
1501
+ properties: {
1502
+ enabled: {
1503
+ type: "boolean";
1504
+ };
1505
+ threshold: {
1506
+ type: "number";
1507
+ minimum: number;
1508
+ maximum: number;
1509
+ };
1510
+ limit: {
1511
+ type: "number";
1512
+ minimum: number;
1513
+ };
1514
+ disabledReason: {
1515
+ type: "string";
1516
+ };
1517
+ };
1518
+ required: string[];
1519
+ additionalProperties: false;
1520
+ };
1521
+ };
1522
+ required: string[];
1523
+ additionalProperties: false;
1524
+ };
1525
+ };
1526
+ required: string[];
1527
+ title: string;
1528
+ additionalProperties: false;
1529
+ };
1530
+ };
1531
+ parameters: {
1532
+ "x-workspace-id": {
1533
+ in: "header";
1534
+ type: "string";
1535
+ description: string;
1536
+ required: true;
1537
+ };
1538
+ };
1539
+ };
1540
+ getTrials: {
1541
+ name: string;
1542
+ description: string;
1543
+ method: "get";
1544
+ path: string;
1545
+ response: {
1546
+ description: string;
1547
+ status: 200;
1548
+ schema: {
1549
+ type: "object";
1550
+ properties: {
1551
+ trials: {
1552
+ type: "array";
1553
+ items: {
1554
+ type: "object";
1555
+ properties: {
1556
+ id: {
1557
+ type: "string";
1558
+ };
1559
+ trialPlan: {
1560
+ type: "string";
1561
+ };
1562
+ fromPlan: {
1563
+ type: "string";
1564
+ };
1565
+ endsAt: {
1566
+ type: "string";
1567
+ };
1568
+ isActive: {
1569
+ type: "boolean";
1570
+ };
1571
+ };
1572
+ required: string[];
1573
+ };
1574
+ };
1575
+ };
1576
+ required: string[];
1577
+ title: string;
1578
+ additionalProperties: false;
1579
+ };
1580
+ };
1581
+ parameters: {
1582
+ "x-workspace-id": {
1583
+ in: "header";
1584
+ type: "string";
1585
+ description: string;
1586
+ required: true;
1587
+ };
1588
+ };
1589
+ };
1590
+ createTrial: {
1591
+ name: string;
1592
+ description: string;
1593
+ method: "post";
1594
+ path: string;
1595
+ requestBody: {
1596
+ description: string;
1597
+ schema: {
1598
+ type: "object";
1599
+ properties: {
1600
+ lengthInDays: {
1601
+ type: "integer";
1602
+ minimum: number;
1603
+ exclusiveMinimum: true;
1604
+ };
1605
+ plan: {
1606
+ type: "string";
1607
+ };
1608
+ };
1609
+ required: string[];
1610
+ title: string;
1611
+ additionalProperties: false;
1612
+ };
1613
+ };
1614
+ response: {
1615
+ description: string;
1616
+ status: 200;
1617
+ schema: {
1618
+ type: "object";
1619
+ properties: {
1620
+ id: {
1621
+ type: "string";
1622
+ };
1623
+ trialPlan: {
1624
+ type: "string";
1625
+ };
1626
+ fromPlan: {
1627
+ type: "string";
1628
+ };
1629
+ endsAt: {
1630
+ type: "string";
1631
+ };
1632
+ isActive: {
1633
+ type: "boolean";
1634
+ };
1635
+ };
1636
+ required: string[];
1637
+ title: string;
1638
+ additionalProperties: false;
1639
+ };
1640
+ };
1641
+ parameters: {
1642
+ "x-workspace-id": {
1643
+ in: "header";
1644
+ type: "string";
1645
+ description: string;
1646
+ required: true;
1647
+ };
1648
+ };
1649
+ };
1650
+ removeTrial: {
1651
+ name: string;
1652
+ description: string;
1653
+ method: "delete";
1654
+ path: string;
1655
+ response: {
1656
+ description: string;
1657
+ status: 200;
1658
+ schema: {
1659
+ type: "object";
1660
+ title: string;
1661
+ additionalProperties: false;
1662
+ };
1663
+ };
1664
+ parameters: {
1665
+ "x-workspace-id": {
1666
+ in: "header";
1667
+ type: "string";
1668
+ description: string;
1669
+ required: true;
1670
+ };
1671
+ };
1672
+ };
1673
+ listInvoices: {
1674
+ name: string;
1675
+ description: string;
1676
+ method: "get";
1677
+ path: string;
1678
+ parameters: {
1679
+ nextToken: {
1680
+ in: "query";
1681
+ description: string;
1682
+ type: "string";
1683
+ };
1684
+ "x-workspace-id": {
1685
+ in: "header";
1686
+ type: "string";
1687
+ description: string;
1688
+ required: true;
1689
+ };
1690
+ };
1691
+ response: {
1692
+ description: string;
1693
+ status: 200;
1694
+ schema: {
1695
+ type: "object";
1696
+ properties: {
1697
+ invoices: {
1698
+ type: "array";
1699
+ items: {
1700
+ type: "object";
1701
+ properties: {
1702
+ id: {
1703
+ type: "string";
1704
+ };
1705
+ amount: {
1706
+ type: "number";
1707
+ };
1708
+ currency: {
1709
+ type: "string";
1710
+ };
1711
+ status: {
1712
+ type: "string";
1713
+ enum: string[];
1117
1714
  };
1118
1715
  createdAt: {
1119
1716
  type: "string";
@@ -1492,24 +2089,35 @@ export declare const state: {
1492
2089
  refs: {
1493
2090
  parameters: {};
1494
2091
  requestBodies: {
2092
+ setBillingAddressBody: true;
1495
2093
  previewSubscriptionUpdateBody: true;
1496
2094
  setPlanBody: true;
1497
2095
  setAddonsBody: true;
2096
+ setCancelAtPeriodEndBody: true;
2097
+ setAutoRechargeSettingsBody: true;
2098
+ createTrialBody: true;
1498
2099
  payInvoiceBody: true;
1499
2100
  setPaymentMethodBody: true;
1500
2101
  createPaymentMethodIntentBody: true;
1501
2102
  };
1502
2103
  responses: {
1503
2104
  getBillingReadonlyResponse: true;
2105
+ getBillingAddressResponse: true;
2106
+ setBillingAddressResponse: true;
1504
2107
  getPlanResponse: true;
1505
2108
  listPlansResponse: true;
1506
2109
  getAddonResponse: true;
1507
2110
  listAddonsResponse: true;
1508
- getCurrentSubscriptionResponse: true;
1509
- getNextSubscriptionResponse: true;
2111
+ getSubscriptionResponse: true;
1510
2112
  previewSubscriptionUpdateResponse: true;
1511
2113
  setPlanResponse: true;
1512
2114
  setAddonsResponse: true;
2115
+ setCancelAtPeriodEndResponse: true;
2116
+ getAutoRechargeSettingsResponse: true;
2117
+ setAutoRechargeSettingsResponse: true;
2118
+ getTrialsResponse: true;
2119
+ createTrialResponse: true;
2120
+ removeTrialResponse: true;
1513
2121
  listInvoicesResponse: true;
1514
2122
  payInvoiceResponse: true;
1515
2123
  getPaymentMethodResponse: true;
@@ -1525,6 +2133,13 @@ export declare const state: {
1525
2133
  SubscriptionDetails: true;
1526
2134
  SetPlanParams: true;
1527
2135
  SetAddonsParams: true;
2136
+ SetCancelAtPeriodEndParams: true;
2137
+ BillingAddress: true;
2138
+ Trial: true;
2139
+ GetTrialsResponse: true;
2140
+ CreateTrialParams: true;
2141
+ GetAutoRechargeSettingsResponse: true;
2142
+ SetAutoRechargeSettingsParams: true;
1528
2143
  };
1529
2144
  };
1530
2145
  schemas: {
@@ -1978,6 +2593,332 @@ export declare const state: {
1978
2593
  additionalProperties: false;
1979
2594
  };
1980
2595
  };
2596
+ SetCancelAtPeriodEndParams: {
2597
+ section: "subscription";
2598
+ schema: {
2599
+ type: "object";
2600
+ properties: {
2601
+ cancelAtPeriodEnd: {
2602
+ type: "boolean";
2603
+ };
2604
+ };
2605
+ required: string[];
2606
+ additionalProperties: false;
2607
+ };
2608
+ };
2609
+ BillingAddress: {
2610
+ section: "subscription";
2611
+ schema: {
2612
+ type: "object";
2613
+ properties: {
2614
+ lineOne: {
2615
+ type: "string";
2616
+ };
2617
+ lineTwo: {
2618
+ type: "string";
2619
+ };
2620
+ city: {
2621
+ type: "string";
2622
+ };
2623
+ state: {
2624
+ type: "string";
2625
+ };
2626
+ postalCode: {
2627
+ type: "string";
2628
+ };
2629
+ country: {
2630
+ type: "string";
2631
+ };
2632
+ };
2633
+ additionalProperties: false;
2634
+ };
2635
+ };
2636
+ Trial: {
2637
+ section: "subscription";
2638
+ schema: {
2639
+ type: "object";
2640
+ properties: {
2641
+ id: {
2642
+ type: "string";
2643
+ };
2644
+ trialPlan: {
2645
+ type: "string";
2646
+ };
2647
+ fromPlan: {
2648
+ type: "string";
2649
+ };
2650
+ endsAt: {
2651
+ type: "string";
2652
+ };
2653
+ isActive: {
2654
+ type: "boolean";
2655
+ };
2656
+ };
2657
+ required: string[];
2658
+ additionalProperties: false;
2659
+ };
2660
+ };
2661
+ GetTrialsResponse: {
2662
+ section: "subscription";
2663
+ schema: {
2664
+ type: "object";
2665
+ properties: {
2666
+ trials: {
2667
+ type: "array";
2668
+ items: {
2669
+ type: "object";
2670
+ properties: {
2671
+ id: {
2672
+ type: "string";
2673
+ };
2674
+ trialPlan: {
2675
+ type: "string";
2676
+ };
2677
+ fromPlan: {
2678
+ type: "string";
2679
+ };
2680
+ endsAt: {
2681
+ type: "string";
2682
+ };
2683
+ isActive: {
2684
+ type: "boolean";
2685
+ };
2686
+ };
2687
+ required: string[];
2688
+ };
2689
+ };
2690
+ };
2691
+ required: string[];
2692
+ additionalProperties: false;
2693
+ };
2694
+ };
2695
+ CreateTrialParams: {
2696
+ section: "subscription";
2697
+ schema: {
2698
+ type: "object";
2699
+ properties: {
2700
+ lengthInDays: {
2701
+ type: "integer";
2702
+ minimum: number;
2703
+ exclusiveMinimum: true;
2704
+ };
2705
+ plan: {
2706
+ type: "string";
2707
+ };
2708
+ };
2709
+ required: string[];
2710
+ additionalProperties: false;
2711
+ };
2712
+ };
2713
+ GetAutoRechargeSettingsResponse: {
2714
+ section: "subscription";
2715
+ schema: {
2716
+ type: "object";
2717
+ properties: {
2718
+ settings: {
2719
+ type: "object";
2720
+ properties: {
2721
+ table_row_count: {
2722
+ type: "object";
2723
+ properties: {
2724
+ enabled: {
2725
+ type: "boolean";
2726
+ };
2727
+ threshold: {
2728
+ type: "number";
2729
+ minimum: number;
2730
+ maximum: number;
2731
+ };
2732
+ limit: {
2733
+ type: "number";
2734
+ minimum: number;
2735
+ };
2736
+ disabledReason: {
2737
+ type: "string";
2738
+ };
2739
+ };
2740
+ required: string[];
2741
+ additionalProperties: false;
2742
+ };
2743
+ invocation_calls: {
2744
+ type: "object";
2745
+ properties: {
2746
+ enabled: {
2747
+ type: "boolean";
2748
+ };
2749
+ threshold: {
2750
+ type: "number";
2751
+ minimum: number;
2752
+ maximum: number;
2753
+ };
2754
+ limit: {
2755
+ type: "number";
2756
+ minimum: number;
2757
+ };
2758
+ disabledReason: {
2759
+ type: "string";
2760
+ };
2761
+ };
2762
+ required: string[];
2763
+ additionalProperties: false;
2764
+ };
2765
+ knowledgebase_vector_storage: {
2766
+ type: "object";
2767
+ properties: {
2768
+ enabled: {
2769
+ type: "boolean";
2770
+ };
2771
+ threshold: {
2772
+ type: "number";
2773
+ minimum: number;
2774
+ maximum: number;
2775
+ };
2776
+ limit: {
2777
+ type: "number";
2778
+ minimum: number;
2779
+ };
2780
+ disabledReason: {
2781
+ type: "string";
2782
+ };
2783
+ };
2784
+ required: string[];
2785
+ additionalProperties: false;
2786
+ };
2787
+ storage_count: {
2788
+ type: "object";
2789
+ properties: {
2790
+ enabled: {
2791
+ type: "boolean";
2792
+ };
2793
+ threshold: {
2794
+ type: "number";
2795
+ minimum: number;
2796
+ maximum: number;
2797
+ };
2798
+ limit: {
2799
+ type: "number";
2800
+ minimum: number;
2801
+ };
2802
+ disabledReason: {
2803
+ type: "string";
2804
+ };
2805
+ };
2806
+ required: string[];
2807
+ additionalProperties: false;
2808
+ };
2809
+ };
2810
+ required: string[];
2811
+ additionalProperties: false;
2812
+ };
2813
+ };
2814
+ required: string[];
2815
+ additionalProperties: false;
2816
+ };
2817
+ };
2818
+ SetAutoRechargeSettingsParams: {
2819
+ section: "subscription";
2820
+ schema: {
2821
+ type: "object";
2822
+ properties: {
2823
+ settings: {
2824
+ type: "object";
2825
+ properties: {
2826
+ table_row_count: {
2827
+ type: "object";
2828
+ properties: {
2829
+ enabled: {
2830
+ type: "boolean";
2831
+ };
2832
+ threshold: {
2833
+ type: "number";
2834
+ minimum: number;
2835
+ maximum: number;
2836
+ };
2837
+ limit: {
2838
+ type: "number";
2839
+ minimum: number;
2840
+ };
2841
+ disabledReason: {
2842
+ type: "string";
2843
+ };
2844
+ };
2845
+ required: string[];
2846
+ additionalProperties: false;
2847
+ };
2848
+ invocation_calls: {
2849
+ type: "object";
2850
+ properties: {
2851
+ enabled: {
2852
+ type: "boolean";
2853
+ };
2854
+ threshold: {
2855
+ type: "number";
2856
+ minimum: number;
2857
+ maximum: number;
2858
+ };
2859
+ limit: {
2860
+ type: "number";
2861
+ minimum: number;
2862
+ };
2863
+ disabledReason: {
2864
+ type: "string";
2865
+ };
2866
+ };
2867
+ required: string[];
2868
+ additionalProperties: false;
2869
+ };
2870
+ knowledgebase_vector_storage: {
2871
+ type: "object";
2872
+ properties: {
2873
+ enabled: {
2874
+ type: "boolean";
2875
+ };
2876
+ threshold: {
2877
+ type: "number";
2878
+ minimum: number;
2879
+ maximum: number;
2880
+ };
2881
+ limit: {
2882
+ type: "number";
2883
+ minimum: number;
2884
+ };
2885
+ disabledReason: {
2886
+ type: "string";
2887
+ };
2888
+ };
2889
+ required: string[];
2890
+ additionalProperties: false;
2891
+ };
2892
+ storage_count: {
2893
+ type: "object";
2894
+ properties: {
2895
+ enabled: {
2896
+ type: "boolean";
2897
+ };
2898
+ threshold: {
2899
+ type: "number";
2900
+ minimum: number;
2901
+ maximum: number;
2902
+ };
2903
+ limit: {
2904
+ type: "number";
2905
+ minimum: number;
2906
+ };
2907
+ disabledReason: {
2908
+ type: "string";
2909
+ };
2910
+ };
2911
+ required: string[];
2912
+ additionalProperties: false;
2913
+ };
2914
+ };
2915
+ additionalProperties: false;
2916
+ };
2917
+ };
2918
+ required: string[];
2919
+ additionalProperties: false;
2920
+ };
2921
+ };
1981
2922
  };
1982
2923
  sections: ({
1983
2924
  description: string;