@botpress/api 1.72.0 → 1.72.2

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: {
@@ -13,9 +13,63 @@ export declare const state: {
13
13
  schema: {
14
14
  type: "object";
15
15
  properties: {
16
- billingReadonly: {
16
+ planReadonly: {
17
17
  type: "boolean";
18
18
  };
19
+ addonsReadonly: {
20
+ type: "boolean";
21
+ };
22
+ };
23
+ required: string[];
24
+ title: string;
25
+ additionalProperties: false;
26
+ };
27
+ };
28
+ parameters: {
29
+ "x-workspace-id": {
30
+ in: "header";
31
+ type: "string";
32
+ description: string;
33
+ required: true;
34
+ };
35
+ };
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
+ };
19
73
  };
20
74
  required: string[];
21
75
  title: string;
@@ -31,6 +85,57 @@ export declare const state: {
31
85
  };
32
86
  };
33
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
+ };
34
139
  getPlan: {
35
140
  name: string;
36
141
  description: string;
@@ -290,135 +395,7 @@ export declare const state: {
290
395
  };
291
396
  parameters: {};
292
397
  };
293
- getCurrentSubscription: {
294
- name: string;
295
- description: string;
296
- method: "get";
297
- path: string;
298
- response: {
299
- description: string;
300
- status: 200;
301
- schema: {
302
- type: "object";
303
- properties: {
304
- plan: {
305
- type: "object";
306
- properties: {
307
- current: {
308
- type: "object";
309
- properties: {
310
- status: {
311
- type: "string";
312
- enum: string[];
313
- };
314
- planId: {
315
- type: "string";
316
- };
317
- interval: {
318
- type: "string";
319
- enum: string[];
320
- };
321
- price: {
322
- type: "number";
323
- };
324
- proratedPrice: {
325
- type: "number";
326
- };
327
- cancelAtPeriodEnd: {
328
- type: "boolean";
329
- };
330
- periodEnd: {
331
- type: "string";
332
- };
333
- };
334
- required: string[];
335
- additionalProperties: false;
336
- };
337
- next: {
338
- type: "object";
339
- properties: {
340
- planId: {
341
- type: "string";
342
- };
343
- interval: {
344
- type: "string";
345
- enum: string[];
346
- };
347
- price: {
348
- type: "number";
349
- nullable: true;
350
- };
351
- effectiveDate: {
352
- type: "string";
353
- };
354
- };
355
- required: string[];
356
- nullable: true;
357
- additionalProperties: false;
358
- };
359
- };
360
- required: string[];
361
- additionalProperties: false;
362
- };
363
- addons: {
364
- type: "object";
365
- additionalProperties: {
366
- type: "object";
367
- properties: {
368
- current: {
369
- type: "object";
370
- properties: {
371
- quantity: {
372
- type: "number";
373
- };
374
- price: {
375
- type: "number";
376
- };
377
- proratedPrice: {
378
- type: "number";
379
- };
380
- };
381
- required: string[];
382
- additionalProperties: false;
383
- };
384
- next: {
385
- type: "object";
386
- properties: {
387
- quantity: {
388
- type: "number";
389
- };
390
- price: {
391
- type: "number";
392
- };
393
- effectiveDate: {
394
- type: "string";
395
- };
396
- };
397
- required: string[];
398
- nullable: true;
399
- additionalProperties: false;
400
- };
401
- };
402
- required: string[];
403
- additionalProperties: false;
404
- };
405
- };
406
- };
407
- required: string[];
408
- title: string;
409
- additionalProperties: false;
410
- };
411
- };
412
- parameters: {
413
- "x-workspace-id": {
414
- in: "header";
415
- type: "string";
416
- description: string;
417
- required: true;
418
- };
419
- };
420
- };
421
- getNextSubscription: {
398
+ getSubscription: {
422
399
  name: string;
423
400
  description: string;
424
401
  method: "get";
@@ -1070,22 +1047,23 @@ export declare const state: {
1070
1047
  };
1071
1048
  };
1072
1049
  };
1073
- listInvoices: {
1050
+ setCancelAtPeriodEnd: {
1074
1051
  name: string;
1075
1052
  description: string;
1076
- method: "get";
1053
+ method: "put";
1077
1054
  path: string;
1078
- parameters: {
1079
- nextToken: {
1080
- in: "query";
1081
- description: string;
1082
- type: "string";
1083
- };
1084
- "x-workspace-id": {
1085
- in: "header";
1086
- type: "string";
1087
- description: string;
1088
- 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;
1089
1067
  };
1090
1068
  };
1091
1069
  response: {
@@ -1094,21 +1072,643 @@ export declare const state: {
1094
1072
  schema: {
1095
1073
  type: "object";
1096
1074
  properties: {
1097
- invoices: {
1098
- type: "array";
1099
- items: {
1100
- type: "object";
1101
- properties: {
1102
- id: {
1103
- type: "string";
1104
- };
1105
- amount: {
1106
- type: "number";
1107
- };
1108
- currency: {
1109
- type: "string";
1110
- };
1111
- status: {
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: {
1112
1712
  type: "string";
1113
1713
  enum: string[];
1114
1714
  };
@@ -1489,24 +2089,35 @@ export declare const state: {
1489
2089
  refs: {
1490
2090
  parameters: {};
1491
2091
  requestBodies: {
2092
+ setBillingAddressBody: true;
1492
2093
  previewSubscriptionUpdateBody: true;
1493
2094
  setPlanBody: true;
1494
2095
  setAddonsBody: true;
2096
+ setCancelAtPeriodEndBody: true;
2097
+ setAutoRechargeSettingsBody: true;
2098
+ createTrialBody: true;
1495
2099
  payInvoiceBody: true;
1496
2100
  setPaymentMethodBody: true;
1497
2101
  createPaymentMethodIntentBody: true;
1498
2102
  };
1499
2103
  responses: {
1500
2104
  getBillingReadonlyResponse: true;
2105
+ getBillingAddressResponse: true;
2106
+ setBillingAddressResponse: true;
1501
2107
  getPlanResponse: true;
1502
2108
  listPlansResponse: true;
1503
2109
  getAddonResponse: true;
1504
2110
  listAddonsResponse: true;
1505
- getCurrentSubscriptionResponse: true;
1506
- getNextSubscriptionResponse: true;
2111
+ getSubscriptionResponse: true;
1507
2112
  previewSubscriptionUpdateResponse: true;
1508
2113
  setPlanResponse: true;
1509
2114
  setAddonsResponse: true;
2115
+ setCancelAtPeriodEndResponse: true;
2116
+ getAutoRechargeSettingsResponse: true;
2117
+ setAutoRechargeSettingsResponse: true;
2118
+ getTrialsResponse: true;
2119
+ createTrialResponse: true;
2120
+ removeTrialResponse: true;
1510
2121
  listInvoicesResponse: true;
1511
2122
  payInvoiceResponse: true;
1512
2123
  getPaymentMethodResponse: true;
@@ -1522,6 +2133,13 @@ export declare const state: {
1522
2133
  SubscriptionDetails: true;
1523
2134
  SetPlanParams: true;
1524
2135
  SetAddonsParams: true;
2136
+ SetCancelAtPeriodEndParams: true;
2137
+ BillingAddress: true;
2138
+ Trial: true;
2139
+ GetTrialsResponse: true;
2140
+ CreateTrialParams: true;
2141
+ GetAutoRechargeSettingsResponse: true;
2142
+ SetAutoRechargeSettingsParams: true;
1525
2143
  };
1526
2144
  };
1527
2145
  schemas: {
@@ -1975,6 +2593,332 @@ export declare const state: {
1975
2593
  additionalProperties: false;
1976
2594
  };
1977
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
+ };
1978
2922
  };
1979
2923
  sections: ({
1980
2924
  description: string;