@seekora-ai/admin-api 1.0.15 → 1.0.17

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/api.ts CHANGED
@@ -387,10 +387,10 @@ export interface DataTypesAdminSearchRequest {
387
387
  'max_facet_values'?: number;
388
388
  /**
389
389
  *
390
- * @type {DataTypesSearchConfig}
390
+ * @type {DataTypesIndexConfig}
391
391
  * @memberof DataTypesAdminSearchRequest
392
392
  */
393
- 'override_config'?: DataTypesSearchConfig;
393
+ 'override_config'?: DataTypesIndexConfig;
394
394
  /**
395
395
  *
396
396
  * @type {number}
@@ -447,6 +447,106 @@ export interface DataTypesAutocompleteSuggestion {
447
447
  */
448
448
  'text'?: string;
449
449
  }
450
+ /**
451
+ *
452
+ * @export
453
+ * @interface DataTypesConfigGroup
454
+ */
455
+ export interface DataTypesConfigGroup {
456
+ /**
457
+ *
458
+ * @type {string}
459
+ * @memberof DataTypesConfigGroup
460
+ */
461
+ 'description'?: string;
462
+ /**
463
+ *
464
+ * @type {string}
465
+ * @memberof DataTypesConfigGroup
466
+ */
467
+ 'label'?: string;
468
+ /**
469
+ *
470
+ * @type {string}
471
+ * @memberof DataTypesConfigGroup
472
+ */
473
+ 'name'?: string;
474
+ }
475
+ /**
476
+ *
477
+ * @export
478
+ * @interface DataTypesConfigurationSchema
479
+ */
480
+ export interface DataTypesConfigurationSchema {
481
+ /**
482
+ *
483
+ * @type {Array<DataTypesFieldMetadata>}
484
+ * @memberof DataTypesConfigurationSchema
485
+ */
486
+ 'fields'?: Array<DataTypesFieldMetadata>;
487
+ /**
488
+ *
489
+ * @type {Array<DataTypesConfigGroup>}
490
+ * @memberof DataTypesConfigurationSchema
491
+ */
492
+ 'groups'?: Array<DataTypesConfigGroup>;
493
+ /**
494
+ * Available fields from the index
495
+ * @type {Array<DataTypesIndexField>}
496
+ * @memberof DataTypesConfigurationSchema
497
+ */
498
+ 'index_fields'?: Array<DataTypesIndexField>;
499
+ }
500
+ /**
501
+ *
502
+ * @export
503
+ * @interface DataTypesConfigurationSchemaResponse
504
+ */
505
+ export interface DataTypesConfigurationSchemaResponse {
506
+ /**
507
+ *
508
+ * @type {DataTypesConfigurationSchema}
509
+ * @memberof DataTypesConfigurationSchemaResponse
510
+ */
511
+ 'data'?: DataTypesConfigurationSchema;
512
+ /**
513
+ *
514
+ * @type {string}
515
+ * @memberof DataTypesConfigurationSchemaResponse
516
+ */
517
+ 'message'?: string;
518
+ /**
519
+ *
520
+ * @type {number}
521
+ * @memberof DataTypesConfigurationSchemaResponse
522
+ */
523
+ 'status'?: number;
524
+ }
525
+ /**
526
+ *
527
+ * @export
528
+ * @interface DataTypesConfigurationSchemaResponseWrapper
529
+ */
530
+ export interface DataTypesConfigurationSchemaResponseWrapper {
531
+ /**
532
+ *
533
+ * @type {DataTypesConfigurationSchema}
534
+ * @memberof DataTypesConfigurationSchemaResponseWrapper
535
+ */
536
+ 'data'?: DataTypesConfigurationSchema;
537
+ /**
538
+ *
539
+ * @type {string}
540
+ * @memberof DataTypesConfigurationSchemaResponseWrapper
541
+ */
542
+ 'message'?: string;
543
+ /**
544
+ *
545
+ * @type {number}
546
+ * @memberof DataTypesConfigurationSchemaResponseWrapper
547
+ */
548
+ 'status'?: number;
549
+ }
450
550
  /**
451
551
  *
452
552
  * @export
@@ -1081,6 +1181,73 @@ export interface DataTypesCreateUserResponseWrapper {
1081
1181
  */
1082
1182
  'status'?: number;
1083
1183
  }
1184
+ /**
1185
+ *
1186
+ * @export
1187
+ * @interface DataTypesFieldMetadata
1188
+ */
1189
+ export interface DataTypesFieldMetadata {
1190
+ /**
1191
+ *
1192
+ * @type {object}
1193
+ * @memberof DataTypesFieldMetadata
1194
+ */
1195
+ 'default'?: object;
1196
+ /**
1197
+ *
1198
+ * @type {string}
1199
+ * @memberof DataTypesFieldMetadata
1200
+ */
1201
+ 'description'?: string;
1202
+ /**
1203
+ * Available fields from index schema
1204
+ * @type {Array<string>}
1205
+ * @memberof DataTypesFieldMetadata
1206
+ */
1207
+ 'field_options'?: Array<string>;
1208
+ /**
1209
+ * Field grouping for UI
1210
+ * @type {string}
1211
+ * @memberof DataTypesFieldMetadata
1212
+ */
1213
+ 'group'?: string;
1214
+ /**
1215
+ * For int fields
1216
+ * @type {number}
1217
+ * @memberof DataTypesFieldMetadata
1218
+ */
1219
+ 'max'?: number;
1220
+ /**
1221
+ * For int fields
1222
+ * @type {number}
1223
+ * @memberof DataTypesFieldMetadata
1224
+ */
1225
+ 'min'?: number;
1226
+ /**
1227
+ *
1228
+ * @type {string}
1229
+ * @memberof DataTypesFieldMetadata
1230
+ */
1231
+ 'name'?: string;
1232
+ /**
1233
+ * For select/multi-select fields
1234
+ * @type {Array<string>}
1235
+ * @memberof DataTypesFieldMetadata
1236
+ */
1237
+ 'options'?: Array<string>;
1238
+ /**
1239
+ *
1240
+ * @type {boolean}
1241
+ * @memberof DataTypesFieldMetadata
1242
+ */
1243
+ 'required'?: boolean;
1244
+ /**
1245
+ * \"string\", \"int\", \"bool\", \"select\", \"multi-select\"
1246
+ * @type {string}
1247
+ * @memberof DataTypesFieldMetadata
1248
+ */
1249
+ 'type'?: string;
1250
+ }
1084
1251
  /**
1085
1252
  *
1086
1253
  * @export
@@ -1106,6 +1273,85 @@ export interface DataTypesGenericStringArrayResponse {
1106
1273
  */
1107
1274
  'status'?: number;
1108
1275
  }
1276
+ /**
1277
+ *
1278
+ * @export
1279
+ * @interface DataTypesGetStoreResult
1280
+ */
1281
+ export interface DataTypesGetStoreResult {
1282
+ /**
1283
+ * Timestamp for when the store was created
1284
+ * @type {string}
1285
+ * @memberof DataTypesGetStoreResult
1286
+ */
1287
+ 'CreatedAt'?: string;
1288
+ /**
1289
+ * User ID of the creator, nullable
1290
+ * @type {number}
1291
+ * @memberof DataTypesGetStoreResult
1292
+ */
1293
+ 'CreatedBy'?: number;
1294
+ /**
1295
+ * Store active status
1296
+ * @type {boolean}
1297
+ * @memberof DataTypesGetStoreResult
1298
+ */
1299
+ 'IsActive'?: boolean;
1300
+ /**
1301
+ * Store location
1302
+ * @type {string}
1303
+ * @memberof DataTypesGetStoreResult
1304
+ */
1305
+ 'Location'?: string;
1306
+ /**
1307
+ * Timestamp for when the store was last modified
1308
+ * @type {string}
1309
+ * @memberof DataTypesGetStoreResult
1310
+ */
1311
+ 'ModifiedAt'?: string;
1312
+ /**
1313
+ * User ID of the last modifier, nullable
1314
+ * @type {number}
1315
+ * @memberof DataTypesGetStoreResult
1316
+ */
1317
+ 'ModifiedBy'?: number;
1318
+ /**
1319
+ * Foreign key to mOrganizations
1320
+ * @type {number}
1321
+ * @memberof DataTypesGetStoreResult
1322
+ */
1323
+ 'OrgID'?: number;
1324
+ /**
1325
+ * Primary key
1326
+ * @type {number}
1327
+ * @memberof DataTypesGetStoreResult
1328
+ */
1329
+ 'StoreID'?: number;
1330
+ /**
1331
+ * Store name
1332
+ * @type {string}
1333
+ * @memberof DataTypesGetStoreResult
1334
+ */
1335
+ 'StoreName'?: string;
1336
+ /**
1337
+ * Store alias
1338
+ * @type {string}
1339
+ * @memberof DataTypesGetStoreResult
1340
+ */
1341
+ 'alias'?: string;
1342
+ /**
1343
+ *
1344
+ * @type {string}
1345
+ * @memberof DataTypesGetStoreResult
1346
+ */
1347
+ 'index_name'?: string;
1348
+ /**
1349
+ *
1350
+ * @type {DataTypesIndexConfig}
1351
+ * @memberof DataTypesGetStoreResult
1352
+ */
1353
+ 'search_config'?: DataTypesIndexConfig;
1354
+ }
1109
1355
  /**
1110
1356
  *
1111
1357
  * @export
@@ -1114,233 +1360,396 @@ export interface DataTypesGenericStringArrayResponse {
1114
1360
  export interface DataTypesIndexConfig {
1115
1361
  /**
1116
1362
  *
1117
- * @type {boolean}
1363
+ * @type {string}
1118
1364
  * @memberof DataTypesIndexConfig
1119
1365
  */
1120
- 'allowTyposOnNumericTokens'?: boolean;
1366
+ 'collection_alias'?: string;
1121
1367
  /**
1122
1368
  *
1123
- * @type {Array<string>}
1369
+ * @type {string}
1124
1370
  * @memberof DataTypesIndexConfig
1125
1371
  */
1126
- 'alternativesAsExact'?: Array<string>;
1372
+ 'collection_name'?: string;
1127
1373
  /**
1128
1374
  *
1129
- * @type {string}
1375
+ * @type {number}
1130
1376
  * @memberof DataTypesIndexConfig
1131
1377
  */
1132
- 'attributeForDistinct'?: string;
1378
+ 'drop_tokens_threshold'?: number;
1133
1379
  /**
1134
1380
  *
1135
- * @type {Array<string>}
1381
+ * @type {string}
1136
1382
  * @memberof DataTypesIndexConfig
1137
1383
  */
1138
- 'attributesForFaceting'?: Array<string>;
1384
+ 'embed'?: string;
1139
1385
  /**
1140
1386
  *
1141
- * @type {Array<string>}
1387
+ * @type {boolean}
1142
1388
  * @memberof DataTypesIndexConfig
1143
1389
  */
1144
- 'attributesToHighlight'?: Array<string>;
1390
+ 'enable_autocomplete'?: boolean;
1145
1391
  /**
1146
1392
  *
1147
- * @type {Array<string>}
1393
+ * @type {boolean}
1148
1394
  * @memberof DataTypesIndexConfig
1149
1395
  */
1150
- 'attributesToRetrieve'?: Array<string>;
1396
+ 'enable_highlight'?: boolean;
1151
1397
  /**
1152
1398
  *
1153
- * @type {Array<string>}
1399
+ * @type {boolean}
1154
1400
  * @memberof DataTypesIndexConfig
1155
1401
  */
1156
- 'attributesToSnippet'?: Array<string>;
1402
+ 'enable_overrides'?: boolean;
1157
1403
  /**
1158
1404
  *
1159
- * @type {Array<string>}
1405
+ * @type {boolean}
1160
1406
  * @memberof DataTypesIndexConfig
1161
1407
  */
1162
- 'customRanking'?: Array<string>;
1408
+ 'enable_smart_autocomplete'?: boolean;
1163
1409
  /**
1164
1410
  *
1165
- * @type {string}
1411
+ * @type {boolean}
1166
1412
  * @memberof DataTypesIndexConfig
1167
1413
  */
1168
- 'exactOnSingleWordQuery'?: string;
1414
+ 'enable_typo_highlight'?: boolean;
1169
1415
  /**
1170
1416
  *
1171
- * @type {string}
1417
+ * @type {boolean}
1172
1418
  * @memberof DataTypesIndexConfig
1173
1419
  */
1174
- 'highlightPostTag'?: string;
1420
+ 'enable_typo_tolerance'?: boolean;
1175
1421
  /**
1176
1422
  *
1177
- * @type {string}
1423
+ * @type {Array<string>}
1178
1424
  * @memberof DataTypesIndexConfig
1179
1425
  */
1180
- 'highlightPreTag'?: string;
1426
+ 'exclude_fields'?: Array<string>;
1181
1427
  /**
1182
1428
  *
1183
- * @type {number}
1429
+ * @type {boolean}
1184
1430
  * @memberof DataTypesIndexConfig
1185
1431
  */
1186
- 'hitsPerPage'?: number;
1432
+ 'exhaustive_search'?: boolean;
1187
1433
  /**
1188
1434
  *
1189
- * @type {number}
1435
+ * @type {Array<string>}
1190
1436
  * @memberof DataTypesIndexConfig
1191
1437
  */
1192
- 'indexingGeolocPrecision'?: number;
1438
+ 'facet_by'?: Array<string>;
1193
1439
  /**
1194
1440
  *
1195
- * @type {number}
1441
+ * @type {string}
1196
1442
  * @memberof DataTypesIndexConfig
1197
1443
  */
1198
- 'maxNbHits'?: number;
1444
+ 'facet_query'?: string;
1199
1445
  /**
1200
1446
  *
1201
- * @type {number}
1447
+ * @type {string}
1202
1448
  * @memberof DataTypesIndexConfig
1203
1449
  */
1204
- 'maxValuesPerFacet'?: number;
1450
+ 'filter_by'?: string;
1205
1451
  /**
1206
1452
  *
1207
- * @type {number}
1453
+ * @type {string}
1208
1454
  * @memberof DataTypesIndexConfig
1209
1455
  */
1210
- 'minWordSizefor1Typo'?: number;
1456
+ 'group_by'?: string;
1211
1457
  /**
1212
1458
  *
1213
1459
  * @type {number}
1214
1460
  * @memberof DataTypesIndexConfig
1215
1461
  */
1216
- 'minWordSizefor2Typos'?: number;
1462
+ 'group_limit'?: number;
1217
1463
  /**
1218
1464
  *
1219
- * @type {number}
1465
+ * @type {Array<string>}
1220
1466
  * @memberof DataTypesIndexConfig
1221
1467
  */
1222
- 'nbShardsAuto'?: number;
1468
+ 'hidden_facet_fields'?: Array<string>;
1223
1469
  /**
1224
1470
  *
1225
1471
  * @type {Array<string>}
1226
1472
  * @memberof DataTypesIndexConfig
1227
1473
  */
1228
- 'numericAttributesToIndex'?: Array<string>;
1474
+ 'hidden_fields'?: Array<string>;
1229
1475
  /**
1230
1476
  *
1231
1477
  * @type {Array<string>}
1232
1478
  * @memberof DataTypesIndexConfig
1233
1479
  */
1234
- 'optionalWords'?: Array<string>;
1480
+ 'hidden_filter_fields'?: Array<string>;
1235
1481
  /**
1236
1482
  *
1237
1483
  * @type {number}
1238
1484
  * @memberof DataTypesIndexConfig
1239
1485
  */
1240
- 'paginationLimitedTo'?: number;
1486
+ 'highlight_affix_num_tokens'?: number;
1241
1487
  /**
1242
1488
  *
1243
1489
  * @type {string}
1244
1490
  * @memberof DataTypesIndexConfig
1245
1491
  */
1246
- 'primary'?: string;
1492
+ 'highlight_end_tag'?: string;
1247
1493
  /**
1248
1494
  *
1249
- * @type {string}
1495
+ * @type {Array<string>}
1250
1496
  * @memberof DataTypesIndexConfig
1251
1497
  */
1252
- 'queryType'?: string;
1498
+ 'highlight_fields'?: Array<string>;
1253
1499
  /**
1254
1500
  *
1255
1501
  * @type {Array<string>}
1256
1502
  * @memberof DataTypesIndexConfig
1257
1503
  */
1258
- 'ranking'?: Array<string>;
1504
+ 'highlight_full_fields'?: Array<string>;
1259
1505
  /**
1260
1506
  *
1261
1507
  * @type {string}
1262
1508
  * @memberof DataTypesIndexConfig
1263
1509
  */
1264
- 'removeWordsIfNoResults'?: string;
1510
+ 'highlight_start_tag'?: string;
1265
1511
  /**
1266
1512
  *
1267
1513
  * @type {Array<string>}
1268
1514
  * @memberof DataTypesIndexConfig
1269
1515
  */
1270
- 'searchableAttributes'?: Array<string>;
1516
+ 'include_fields'?: Array<string>;
1271
1517
  /**
1272
1518
  *
1273
1519
  * @type {string}
1274
1520
  * @memberof DataTypesIndexConfig
1275
1521
  */
1276
- 'separatorsToIndex'?: string;
1522
+ 'locale'?: string;
1277
1523
  /**
1278
1524
  *
1279
- * @type {Array<string>}
1525
+ * @type {number}
1280
1526
  * @memberof DataTypesIndexConfig
1281
1527
  */
1282
- 'unretrievableAttributes'?: Array<string>;
1528
+ 'max_candidates'?: number;
1283
1529
  /**
1284
1530
  *
1285
1531
  * @type {number}
1286
1532
  * @memberof DataTypesIndexConfig
1287
1533
  */
1288
- 'version'?: number;
1289
- }
1290
- /**
1291
- *
1292
- * @export
1293
- * @interface DataTypesIndexConfigResponse
1294
- */
1295
- export interface DataTypesIndexConfigResponse {
1534
+ 'max_facet_values'?: number;
1296
1535
  /**
1297
1536
  *
1298
- * @type {DataTypesIndexConfig}
1299
- * @memberof DataTypesIndexConfigResponse
1537
+ * @type {number}
1538
+ * @memberof DataTypesIndexConfig
1300
1539
  */
1301
- 'data'?: DataTypesIndexConfig;
1540
+ 'min_len_1typo'?: number;
1302
1541
  /**
1303
1542
  *
1304
- * @type {string}
1305
- * @memberof DataTypesIndexConfigResponse
1543
+ * @type {number}
1544
+ * @memberof DataTypesIndexConfig
1306
1545
  */
1307
- 'message'?: string;
1546
+ 'min_len_2typo'?: number;
1308
1547
  /**
1309
1548
  *
1310
1549
  * @type {number}
1311
- * @memberof DataTypesIndexConfigResponse
1550
+ * @memberof DataTypesIndexConfig
1312
1551
  */
1313
- 'status'?: number;
1314
- }
1315
- /**
1316
- *
1317
- * @export
1318
- * @interface DataTypesJobStatusResponse
1319
- */
1320
- export interface DataTypesJobStatusResponse {
1552
+ 'num_typos'?: number;
1321
1553
  /**
1322
1554
  *
1323
- * @type {string}
1324
- * @memberof DataTypesJobStatusResponse
1555
+ * @type {number}
1556
+ * @memberof DataTypesIndexConfig
1325
1557
  */
1326
- 'jobId'?: string;
1558
+ 'page'?: number;
1327
1559
  /**
1328
1560
  *
1329
- * @type {string}
1330
- * @memberof DataTypesJobStatusResponse
1561
+ * @type {number}
1562
+ * @memberof DataTypesIndexConfig
1331
1563
  */
1332
- 'jobStatus'?: string;
1333
- }
1334
- /**
1335
- *
1336
- * @export
1337
- * @interface DataTypesJobStatusResponseWrapper
1338
- */
1339
- export interface DataTypesJobStatusResponseWrapper {
1564
+ 'per_page'?: number;
1340
1565
  /**
1341
1566
  *
1342
- * @type {DataTypesJobStatusResponse}
1343
- * @memberof DataTypesJobStatusResponseWrapper
1567
+ * @type {string}
1568
+ * @memberof DataTypesIndexConfig
1569
+ */
1570
+ 'prefix'?: string;
1571
+ /**
1572
+ *
1573
+ * @type {string}
1574
+ * @memberof DataTypesIndexConfig
1575
+ */
1576
+ 'preset'?: string;
1577
+ /**
1578
+ *
1579
+ * @type {boolean}
1580
+ * @memberof DataTypesIndexConfig
1581
+ */
1582
+ 'prioritize_exact_match'?: boolean;
1583
+ /**
1584
+ * Required: Query string
1585
+ * @type {string}
1586
+ * @memberof DataTypesIndexConfig
1587
+ */
1588
+ 'q'?: string;
1589
+ /**
1590
+ * Required: Array of search fields
1591
+ * @type {Array<string>}
1592
+ * @memberof DataTypesIndexConfig
1593
+ */
1594
+ 'query_by'?: Array<string>;
1595
+ /**
1596
+ * Optional: Relative field weights as array
1597
+ * @type {Array<number>}
1598
+ * @memberof DataTypesIndexConfig
1599
+ */
1600
+ 'query_by_weights'?: Array<number>;
1601
+ /**
1602
+ *
1603
+ * @type {boolean}
1604
+ * @memberof DataTypesIndexConfig
1605
+ */
1606
+ 'query_syntax'?: boolean;
1607
+ /**
1608
+ *
1609
+ * @type {number}
1610
+ * @memberof DataTypesIndexConfig
1611
+ */
1612
+ 'search_cutoff_ms'?: number;
1613
+ /**
1614
+ * \"text\", \"vector\", \"hybrid\"
1615
+ * @type {string}
1616
+ * @memberof DataTypesIndexConfig
1617
+ */
1618
+ 'search_strategy'?: string;
1619
+ /**
1620
+ *
1621
+ * @type {boolean}
1622
+ * @memberof DataTypesIndexConfig
1623
+ */
1624
+ 'semantic_ranker'?: boolean;
1625
+ /**
1626
+ *
1627
+ * @type {number}
1628
+ * @memberof DataTypesIndexConfig
1629
+ */
1630
+ 'snippet_threshold'?: number;
1631
+ /**
1632
+ *
1633
+ * @type {Array<DataTypesSortField>}
1634
+ * @memberof DataTypesIndexConfig
1635
+ */
1636
+ 'sort_by'?: Array<DataTypesSortField>;
1637
+ /**
1638
+ * Optional: Search-only scoped API key
1639
+ * @type {string}
1640
+ * @memberof DataTypesIndexConfig
1641
+ */
1642
+ 'token'?: string;
1643
+ /**
1644
+ *
1645
+ * @type {boolean}
1646
+ * @memberof DataTypesIndexConfig
1647
+ */
1648
+ 'use_cache'?: boolean;
1649
+ /**
1650
+ *
1651
+ * @type {string}
1652
+ * @memberof DataTypesIndexConfig
1653
+ */
1654
+ 'vector_query'?: string;
1655
+ }
1656
+ /**
1657
+ *
1658
+ * @export
1659
+ * @interface DataTypesIndexConfigResponseWrapper
1660
+ */
1661
+ export interface DataTypesIndexConfigResponseWrapper {
1662
+ /**
1663
+ *
1664
+ * @type {DataTypesIndexConfig}
1665
+ * @memberof DataTypesIndexConfigResponseWrapper
1666
+ */
1667
+ 'data'?: DataTypesIndexConfig;
1668
+ /**
1669
+ *
1670
+ * @type {string}
1671
+ * @memberof DataTypesIndexConfigResponseWrapper
1672
+ */
1673
+ 'message'?: string;
1674
+ /**
1675
+ *
1676
+ * @type {number}
1677
+ * @memberof DataTypesIndexConfigResponseWrapper
1678
+ */
1679
+ 'status'?: number;
1680
+ }
1681
+ /**
1682
+ *
1683
+ * @export
1684
+ * @interface DataTypesIndexField
1685
+ */
1686
+ export interface DataTypesIndexField {
1687
+ /**
1688
+ *
1689
+ * @type {boolean}
1690
+ * @memberof DataTypesIndexField
1691
+ */
1692
+ 'facet'?: boolean;
1693
+ /**
1694
+ *
1695
+ * @type {boolean}
1696
+ * @memberof DataTypesIndexField
1697
+ */
1698
+ 'index'?: boolean;
1699
+ /**
1700
+ *
1701
+ * @type {string}
1702
+ * @memberof DataTypesIndexField
1703
+ */
1704
+ 'name'?: string;
1705
+ /**
1706
+ *
1707
+ * @type {boolean}
1708
+ * @memberof DataTypesIndexField
1709
+ */
1710
+ 'optional'?: boolean;
1711
+ /**
1712
+ *
1713
+ * @type {boolean}
1714
+ * @memberof DataTypesIndexField
1715
+ */
1716
+ 'sort'?: boolean;
1717
+ /**
1718
+ *
1719
+ * @type {string}
1720
+ * @memberof DataTypesIndexField
1721
+ */
1722
+ 'type'?: string;
1723
+ }
1724
+ /**
1725
+ *
1726
+ * @export
1727
+ * @interface DataTypesJobStatusResponse
1728
+ */
1729
+ export interface DataTypesJobStatusResponse {
1730
+ /**
1731
+ *
1732
+ * @type {string}
1733
+ * @memberof DataTypesJobStatusResponse
1734
+ */
1735
+ 'jobId'?: string;
1736
+ /**
1737
+ *
1738
+ * @type {string}
1739
+ * @memberof DataTypesJobStatusResponse
1740
+ */
1741
+ 'jobStatus'?: string;
1742
+ }
1743
+ /**
1744
+ *
1745
+ * @export
1746
+ * @interface DataTypesJobStatusResponseWrapper
1747
+ */
1748
+ export interface DataTypesJobStatusResponseWrapper {
1749
+ /**
1750
+ *
1751
+ * @type {DataTypesJobStatusResponse}
1752
+ * @memberof DataTypesJobStatusResponseWrapper
1344
1753
  */
1345
1754
  'data'?: DataTypesJobStatusResponse;
1346
1755
  /**
@@ -3399,107 +3808,145 @@ export interface DataTypesSampleDatasetsResponseWrapper {
3399
3808
  /**
3400
3809
  *
3401
3810
  * @export
3402
- * @interface DataTypesSchemaOptionsResponse
3811
+ * @interface DataTypesSchemaBasedDefaults
3403
3812
  */
3404
- export interface DataTypesSchemaOptionsResponse {
3813
+ export interface DataTypesSchemaBasedDefaults {
3405
3814
  /**
3406
3815
  *
3407
3816
  * @type {Array<string>}
3408
- * @memberof DataTypesSchemaOptionsResponse
3817
+ * @memberof DataTypesSchemaBasedDefaults
3409
3818
  */
3410
- 'displayAttributesOptions'?: Array<string>;
3819
+ 'all_fields'?: Array<string>;
3411
3820
  /**
3412
3821
  *
3413
3822
  * @type {Array<string>}
3414
- * @memberof DataTypesSchemaOptionsResponse
3823
+ * @memberof DataTypesSchemaBasedDefaults
3415
3824
  */
3416
- 'relevancyOrderOptions'?: Array<string>;
3825
+ 'facetable_fields'?: Array<string>;
3417
3826
  /**
3418
3827
  *
3419
3828
  * @type {Array<string>}
3420
- * @memberof DataTypesSchemaOptionsResponse
3829
+ * @memberof DataTypesSchemaBasedDefaults
3421
3830
  */
3422
- 'searchableAttributesOptions'?: Array<string>;
3831
+ 'highlightable_fields'?: Array<string>;
3832
+ /**
3833
+ *
3834
+ * @type {Array<string>}
3835
+ * @memberof DataTypesSchemaBasedDefaults
3836
+ */
3837
+ 'include_fields'?: Array<string>;
3838
+ /**
3839
+ *
3840
+ * @type {Array<string>}
3841
+ * @memberof DataTypesSchemaBasedDefaults
3842
+ */
3843
+ 'query_by'?: Array<string>;
3844
+ /**
3845
+ *
3846
+ * @type {Array<DataTypesSortField>}
3847
+ * @memberof DataTypesSchemaBasedDefaults
3848
+ */
3849
+ 'sortable_fields'?: Array<DataTypesSortField>;
3423
3850
  }
3424
3851
  /**
3425
3852
  *
3426
3853
  * @export
3427
- * @interface DataTypesSchemaOptionsResponseWrapper
3854
+ * @interface DataTypesSchemaBasedDefaultsResponse
3428
3855
  */
3429
- export interface DataTypesSchemaOptionsResponseWrapper {
3856
+ export interface DataTypesSchemaBasedDefaultsResponse {
3430
3857
  /**
3431
3858
  *
3432
- * @type {DataTypesSchemaOptionsResponse}
3433
- * @memberof DataTypesSchemaOptionsResponseWrapper
3859
+ * @type {DataTypesSchemaBasedDefaults}
3860
+ * @memberof DataTypesSchemaBasedDefaultsResponse
3434
3861
  */
3435
- 'data'?: DataTypesSchemaOptionsResponse;
3862
+ 'data'?: DataTypesSchemaBasedDefaults;
3436
3863
  /**
3437
3864
  *
3438
3865
  * @type {string}
3439
- * @memberof DataTypesSchemaOptionsResponseWrapper
3866
+ * @memberof DataTypesSchemaBasedDefaultsResponse
3440
3867
  */
3441
3868
  'message'?: string;
3442
3869
  /**
3443
3870
  *
3444
3871
  * @type {number}
3445
- * @memberof DataTypesSchemaOptionsResponseWrapper
3872
+ * @memberof DataTypesSchemaBasedDefaultsResponse
3446
3873
  */
3447
3874
  'status'?: number;
3448
3875
  }
3449
3876
  /**
3450
3877
  *
3451
3878
  * @export
3452
- * @interface DataTypesSearchConfig
3879
+ * @interface DataTypesSchemaBasedDefaultsResponseWrapper
3453
3880
  */
3454
- export interface DataTypesSearchConfig {
3881
+ export interface DataTypesSchemaBasedDefaultsResponseWrapper {
3455
3882
  /**
3456
3883
  *
3457
- * @type {Array<string>}
3458
- * @memberof DataTypesSearchConfig
3884
+ * @type {DataTypesSchemaBasedDefaults}
3885
+ * @memberof DataTypesSchemaBasedDefaultsResponseWrapper
3459
3886
  */
3460
- 'attributesToHighlight'?: Array<string>;
3887
+ 'data'?: DataTypesSchemaBasedDefaults;
3461
3888
  /**
3462
3889
  *
3463
- * @type {Array<string>}
3464
- * @memberof DataTypesSearchConfig
3890
+ * @type {string}
3891
+ * @memberof DataTypesSchemaBasedDefaultsResponseWrapper
3465
3892
  */
3466
- 'attributesToRetrieve'?: Array<string>;
3893
+ 'message'?: string;
3467
3894
  /**
3468
3895
  *
3469
- * @type {{ [key: string]: any; }}
3470
- * @memberof DataTypesSearchConfig
3896
+ * @type {number}
3897
+ * @memberof DataTypesSchemaBasedDefaultsResponseWrapper
3471
3898
  */
3472
- 'displayAttributes'?: { [key: string]: any; };
3899
+ 'status'?: number;
3900
+ }
3901
+ /**
3902
+ *
3903
+ * @export
3904
+ * @interface DataTypesSchemaOptionsResponse
3905
+ */
3906
+ export interface DataTypesSchemaOptionsResponse {
3473
3907
  /**
3474
3908
  *
3475
- * @type {number}
3476
- * @memberof DataTypesSearchConfig
3909
+ * @type {Array<string>}
3910
+ * @memberof DataTypesSchemaOptionsResponse
3477
3911
  */
3478
- 'hitsPerPage'?: number;
3912
+ 'displayAttributesOptions'?: Array<string>;
3479
3913
  /**
3480
3914
  *
3481
- * @type {number}
3482
- * @memberof DataTypesSearchConfig
3915
+ * @type {Array<string>}
3916
+ * @memberof DataTypesSchemaOptionsResponse
3483
3917
  */
3484
- 'maxNbHits'?: number;
3918
+ 'relevancyOrderOptions'?: Array<string>;
3485
3919
  /**
3486
3920
  *
3487
- * @type {string}
3488
- * @memberof DataTypesSearchConfig
3921
+ * @type {Array<string>}
3922
+ * @memberof DataTypesSchemaOptionsResponse
3923
+ */
3924
+ 'searchableAttributesOptions'?: Array<string>;
3925
+ }
3926
+ /**
3927
+ *
3928
+ * @export
3929
+ * @interface DataTypesSchemaOptionsResponseWrapper
3930
+ */
3931
+ export interface DataTypesSchemaOptionsResponseWrapper {
3932
+ /**
3933
+ *
3934
+ * @type {DataTypesSchemaOptionsResponse}
3935
+ * @memberof DataTypesSchemaOptionsResponseWrapper
3489
3936
  */
3490
- 'query_by'?: string;
3937
+ 'data'?: DataTypesSchemaOptionsResponse;
3491
3938
  /**
3492
3939
  *
3493
- * @type {Array<string>}
3494
- * @memberof DataTypesSearchConfig
3940
+ * @type {string}
3941
+ * @memberof DataTypesSchemaOptionsResponseWrapper
3495
3942
  */
3496
- 'ranking'?: Array<string>;
3943
+ 'message'?: string;
3497
3944
  /**
3498
3945
  *
3499
- * @type {Array<string>}
3500
- * @memberof DataTypesSearchConfig
3946
+ * @type {number}
3947
+ * @memberof DataTypesSchemaOptionsResponseWrapper
3501
3948
  */
3502
- 'searchableAttributes'?: Array<string>;
3949
+ 'status'?: number;
3503
3950
  }
3504
3951
  /**
3505
3952
  *
@@ -3753,6 +4200,25 @@ export interface DataTypesServiceRequestsListResponse {
3753
4200
  */
3754
4201
  'status'?: number;
3755
4202
  }
4203
+ /**
4204
+ *
4205
+ * @export
4206
+ * @interface DataTypesSortField
4207
+ */
4208
+ export interface DataTypesSortField {
4209
+ /**
4210
+ * \"asc\" or \"desc\"
4211
+ * @type {string}
4212
+ * @memberof DataTypesSortField
4213
+ */
4214
+ 'direction'?: string;
4215
+ /**
4216
+ *
4217
+ * @type {string}
4218
+ * @memberof DataTypesSortField
4219
+ */
4220
+ 'field'?: string;
4221
+ }
3756
4222
  /**
3757
4223
  *
3758
4224
  * @export
@@ -4013,10 +4479,10 @@ export interface DataTypesStoreRequestDto {
4013
4479
  export interface DataTypesStoreResponse {
4014
4480
  /**
4015
4481
  *
4016
- * @type {DataTypesStore}
4482
+ * @type {DataTypesGetStoreResult}
4017
4483
  * @memberof DataTypesStoreResponse
4018
4484
  */
4019
- 'data'?: DataTypesStore;
4485
+ 'data'?: DataTypesGetStoreResult;
4020
4486
  /**
4021
4487
  *
4022
4488
  * @type {string}
@@ -5984,31 +6450,64 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
5984
6450
  options: localVarRequestOptions,
5985
6451
  };
5986
6452
  },
5987
- }
5988
- };
5989
-
5990
- /**
5991
- * AuthApi - functional programming interface
5992
- * @export
5993
- */
5994
- export const AuthApiFp = function(configuration?: Configuration) {
5995
- const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
5996
- return {
5997
6453
  /**
5998
- * Authenticates a user with username and password
5999
- * @summary Login a user
6000
- * @param {DataTypesLoginRequest} login Login credentials
6454
+ * Returns refreshed session data for authenticated user
6455
+ * @summary Get current auth session
6001
6456
  * @param {*} [options] Override http request option.
6002
6457
  * @throws {RequiredError}
6003
6458
  */
6004
- async authLoginPost(login: DataTypesLoginRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesLoginResponseWrapper>> {
6005
- const localVarAxiosArgs = await localVarAxiosParamCreator.authLoginPost(login, options);
6006
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6007
- const localVarOperationServerBasePath = operationServerMap['AuthApi.authLoginPost']?.[localVarOperationServerIndex]?.url;
6008
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6009
- },
6010
- /**
6011
- * Logs out the authenticated user
6459
+ authSessionGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6460
+ const localVarPath = `/Auth/session`;
6461
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6462
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6463
+ let baseOptions;
6464
+ if (configuration) {
6465
+ baseOptions = configuration.baseOptions;
6466
+ }
6467
+
6468
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6469
+ const localVarHeaderParameter = {} as any;
6470
+ const localVarQueryParameter = {} as any;
6471
+
6472
+ // authentication BearerAuth required
6473
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
6474
+
6475
+
6476
+
6477
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6478
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6479
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6480
+
6481
+ return {
6482
+ url: toPathString(localVarUrlObj),
6483
+ options: localVarRequestOptions,
6484
+ };
6485
+ },
6486
+ }
6487
+ };
6488
+
6489
+ /**
6490
+ * AuthApi - functional programming interface
6491
+ * @export
6492
+ */
6493
+ export const AuthApiFp = function(configuration?: Configuration) {
6494
+ const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
6495
+ return {
6496
+ /**
6497
+ * Authenticates a user with username and password
6498
+ * @summary Login a user
6499
+ * @param {DataTypesLoginRequest} login Login credentials
6500
+ * @param {*} [options] Override http request option.
6501
+ * @throws {RequiredError}
6502
+ */
6503
+ async authLoginPost(login: DataTypesLoginRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesLoginResponseWrapper>> {
6504
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authLoginPost(login, options);
6505
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6506
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authLoginPost']?.[localVarOperationServerIndex]?.url;
6507
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6508
+ },
6509
+ /**
6510
+ * Logs out the authenticated user
6012
6511
  * @summary Logout a user
6013
6512
  * @param {*} [options] Override http request option.
6014
6513
  * @throws {RequiredError}
@@ -6019,6 +6518,18 @@ export const AuthApiFp = function(configuration?: Configuration) {
6019
6518
  const localVarOperationServerBasePath = operationServerMap['AuthApi.authLogoutPost']?.[localVarOperationServerIndex]?.url;
6020
6519
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6021
6520
  },
6521
+ /**
6522
+ * Returns refreshed session data for authenticated user
6523
+ * @summary Get current auth session
6524
+ * @param {*} [options] Override http request option.
6525
+ * @throws {RequiredError}
6526
+ */
6527
+ async authSessionGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesLoginResponseWrapper>> {
6528
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authSessionGet(options);
6529
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6530
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authSessionGet']?.[localVarOperationServerIndex]?.url;
6531
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6532
+ },
6022
6533
  }
6023
6534
  };
6024
6535
 
@@ -6048,6 +6559,15 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
6048
6559
  authLogoutPost(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
6049
6560
  return localVarFp.authLogoutPost(options).then((request) => request(axios, basePath));
6050
6561
  },
6562
+ /**
6563
+ * Returns refreshed session data for authenticated user
6564
+ * @summary Get current auth session
6565
+ * @param {*} [options] Override http request option.
6566
+ * @throws {RequiredError}
6567
+ */
6568
+ authSessionGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesLoginResponseWrapper> {
6569
+ return localVarFp.authSessionGet(options).then((request) => request(axios, basePath));
6570
+ },
6051
6571
  };
6052
6572
  };
6053
6573
 
@@ -6080,6 +6600,17 @@ export class AuthApi extends BaseAPI {
6080
6600
  public authLogoutPost(options?: RawAxiosRequestConfig) {
6081
6601
  return AuthApiFp(this.configuration).authLogoutPost(options).then((request) => request(this.axios, this.basePath));
6082
6602
  }
6603
+
6604
+ /**
6605
+ * Returns refreshed session data for authenticated user
6606
+ * @summary Get current auth session
6607
+ * @param {*} [options] Override http request option.
6608
+ * @throws {RequiredError}
6609
+ * @memberof AuthApi
6610
+ */
6611
+ public authSessionGet(options?: RawAxiosRequestConfig) {
6612
+ return AuthApiFp(this.configuration).authSessionGet(options).then((request) => request(this.axios, this.basePath));
6613
+ }
6083
6614
  }
6084
6615
 
6085
6616
 
@@ -13649,20 +14180,18 @@ export const SearchApiAxiosParamCreator = function (configuration?: Configuratio
13649
14180
  /**
13650
14181
  * Search documents with optional configuration override and autocomplete suggestions
13651
14182
  * @summary Admin Search API
13652
- * @param {string} xStoreID Store ID for the selected store
13653
- * @param {string} xStoreSecret Store Secret for the selected store
14183
+ * @param {number} storeid Store ID
13654
14184
  * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
13655
14185
  * @param {*} [options] Override http request option.
13656
14186
  * @throws {RequiredError}
13657
14187
  */
13658
- adminV1SearchPost: async (xStoreID: string, xStoreSecret: string, body: DataTypesAdminSearchRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13659
- // verify required parameter 'xStoreID' is not null or undefined
13660
- assertParamExists('adminV1SearchPost', 'xStoreID', xStoreID)
13661
- // verify required parameter 'xStoreSecret' is not null or undefined
13662
- assertParamExists('adminV1SearchPost', 'xStoreSecret', xStoreSecret)
14188
+ adminV1SearchStoreidPost: async (storeid: number, body: DataTypesAdminSearchRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14189
+ // verify required parameter 'storeid' is not null or undefined
14190
+ assertParamExists('adminV1SearchStoreidPost', 'storeid', storeid)
13663
14191
  // verify required parameter 'body' is not null or undefined
13664
- assertParamExists('adminV1SearchPost', 'body', body)
13665
- const localVarPath = `/admin/v1/search`;
14192
+ assertParamExists('adminV1SearchStoreidPost', 'body', body)
14193
+ const localVarPath = `/admin/v1/search/{storeid}`
14194
+ .replace(`{${"storeid"}}`, encodeURIComponent(String(storeid)));
13666
14195
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
13667
14196
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13668
14197
  let baseOptions;
@@ -13681,16 +14210,45 @@ export const SearchApiAxiosParamCreator = function (configuration?: Configuratio
13681
14210
 
13682
14211
  localVarHeaderParameter['Content-Type'] = 'application/json';
13683
14212
 
13684
- if (xStoreID != null) {
13685
- localVarHeaderParameter['X-Store-ID'] = String(xStoreID);
14213
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14214
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14215
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14216
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
14217
+
14218
+ return {
14219
+ url: toPathString(localVarUrlObj),
14220
+ options: localVarRequestOptions,
14221
+ };
14222
+ },
14223
+ /**
14224
+ * Get metadata about all configurable fields for dynamic form generation
14225
+ * @summary Get Configuration Schema
14226
+ * @param {string} [indexname] Index name to get field options from
14227
+ * @param {*} [options] Override http request option.
14228
+ * @throws {RequiredError}
14229
+ */
14230
+ v1IndexConfigSchemaGet: async (indexname?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14231
+ const localVarPath = `/v1/index/config-schema`;
14232
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14233
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14234
+ let baseOptions;
14235
+ if (configuration) {
14236
+ baseOptions = configuration.baseOptions;
13686
14237
  }
13687
- if (xStoreSecret != null) {
13688
- localVarHeaderParameter['X-Store-Secret'] = String(xStoreSecret);
14238
+
14239
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
14240
+ const localVarHeaderParameter = {} as any;
14241
+ const localVarQueryParameter = {} as any;
14242
+
14243
+ if (indexname !== undefined) {
14244
+ localVarQueryParameter['indexname'] = indexname;
13689
14245
  }
14246
+
14247
+
14248
+
13690
14249
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13691
14250
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13692
14251
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13693
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
13694
14252
 
13695
14253
  return {
13696
14254
  url: toPathString(localVarUrlObj),
@@ -13815,20 +14373,54 @@ export const SearchApiAxiosParamCreator = function (configuration?: Configuratio
13815
14373
  options: localVarRequestOptions,
13816
14374
  };
13817
14375
  },
14376
+ /**
14377
+ * Get default configuration values computed from the Typesense schema
14378
+ * @summary Get Schema-Based Defaults
14379
+ * @param {string} indexname Index Name
14380
+ * @param {*} [options] Override http request option.
14381
+ * @throws {RequiredError}
14382
+ */
14383
+ v1IndexIndexnameDefaultsGet: async (indexname: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14384
+ // verify required parameter 'indexname' is not null or undefined
14385
+ assertParamExists('v1IndexIndexnameDefaultsGet', 'indexname', indexname)
14386
+ const localVarPath = `/v1/index/{indexname}/defaults`
14387
+ .replace(`{${"indexname"}}`, encodeURIComponent(String(indexname)));
14388
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14389
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14390
+ let baseOptions;
14391
+ if (configuration) {
14392
+ baseOptions = configuration.baseOptions;
14393
+ }
14394
+
14395
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
14396
+ const localVarHeaderParameter = {} as any;
14397
+ const localVarQueryParameter = {} as any;
14398
+
14399
+
14400
+
14401
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14402
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14403
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14404
+
14405
+ return {
14406
+ url: toPathString(localVarUrlObj),
14407
+ options: localVarRequestOptions,
14408
+ };
14409
+ },
13818
14410
  /**
13819
14411
  * Search documents using store credentials with optional autocomplete suggestions
13820
14412
  * @summary Public Search API
13821
- * @param {string} xStoreID Store ID
13822
- * @param {string} xStoreSecret Store Secret
14413
+ * @param {string} xStoreid Store ID
14414
+ * @param {string} xStoresecret Store Secret
13823
14415
  * @param {DataTypesPublicSearchRequest} body Search request (set include_suggestions: true for autocomplete)
13824
14416
  * @param {*} [options] Override http request option.
13825
14417
  * @throws {RequiredError}
13826
14418
  */
13827
- v1SearchPost: async (xStoreID: string, xStoreSecret: string, body: DataTypesPublicSearchRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13828
- // verify required parameter 'xStoreID' is not null or undefined
13829
- assertParamExists('v1SearchPost', 'xStoreID', xStoreID)
13830
- // verify required parameter 'xStoreSecret' is not null or undefined
13831
- assertParamExists('v1SearchPost', 'xStoreSecret', xStoreSecret)
14419
+ v1SearchPost: async (xStoreid: string, xStoresecret: string, body: DataTypesPublicSearchRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14420
+ // verify required parameter 'xStoreid' is not null or undefined
14421
+ assertParamExists('v1SearchPost', 'xStoreid', xStoreid)
14422
+ // verify required parameter 'xStoresecret' is not null or undefined
14423
+ assertParamExists('v1SearchPost', 'xStoresecret', xStoresecret)
13832
14424
  // verify required parameter 'body' is not null or undefined
13833
14425
  assertParamExists('v1SearchPost', 'body', body)
13834
14426
  const localVarPath = `/v1/search`;
@@ -13847,11 +14439,11 @@ export const SearchApiAxiosParamCreator = function (configuration?: Configuratio
13847
14439
 
13848
14440
  localVarHeaderParameter['Content-Type'] = 'application/json';
13849
14441
 
13850
- if (xStoreID != null) {
13851
- localVarHeaderParameter['X-Store-ID'] = String(xStoreID);
14442
+ if (xStoreid != null) {
14443
+ localVarHeaderParameter['x-storeid'] = String(xStoreid);
13852
14444
  }
13853
- if (xStoreSecret != null) {
13854
- localVarHeaderParameter['X-Store-Secret'] = String(xStoreSecret);
14445
+ if (xStoresecret != null) {
14446
+ localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
13855
14447
  }
13856
14448
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13857
14449
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -13876,16 +14468,28 @@ export const SearchApiFp = function(configuration?: Configuration) {
13876
14468
  /**
13877
14469
  * Search documents with optional configuration override and autocomplete suggestions
13878
14470
  * @summary Admin Search API
13879
- * @param {string} xStoreID Store ID for the selected store
13880
- * @param {string} xStoreSecret Store Secret for the selected store
14471
+ * @param {number} storeid Store ID
13881
14472
  * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
13882
14473
  * @param {*} [options] Override http request option.
13883
14474
  * @throws {RequiredError}
13884
14475
  */
13885
- async adminV1SearchPost(xStoreID: string, xStoreSecret: string, body: DataTypesAdminSearchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesOfficialSearchResponseWrapper>> {
13886
- const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1SearchPost(xStoreID, xStoreSecret, body, options);
14476
+ async adminV1SearchStoreidPost(storeid: number, body: DataTypesAdminSearchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesOfficialSearchResponseWrapper>> {
14477
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1SearchStoreidPost(storeid, body, options);
13887
14478
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13888
- const localVarOperationServerBasePath = operationServerMap['SearchApi.adminV1SearchPost']?.[localVarOperationServerIndex]?.url;
14479
+ const localVarOperationServerBasePath = operationServerMap['SearchApi.adminV1SearchStoreidPost']?.[localVarOperationServerIndex]?.url;
14480
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14481
+ },
14482
+ /**
14483
+ * Get metadata about all configurable fields for dynamic form generation
14484
+ * @summary Get Configuration Schema
14485
+ * @param {string} [indexname] Index name to get field options from
14486
+ * @param {*} [options] Override http request option.
14487
+ * @throws {RequiredError}
14488
+ */
14489
+ async v1IndexConfigSchemaGet(indexname?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesConfigurationSchemaResponseWrapper>> {
14490
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1IndexConfigSchemaGet(indexname, options);
14491
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14492
+ const localVarOperationServerBasePath = operationServerMap['SearchApi.v1IndexConfigSchemaGet']?.[localVarOperationServerIndex]?.url;
13889
14493
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13890
14494
  },
13891
14495
  /**
@@ -13895,7 +14499,7 @@ export const SearchApiFp = function(configuration?: Configuration) {
13895
14499
  * @param {*} [options] Override http request option.
13896
14500
  * @throws {RequiredError}
13897
14501
  */
13898
- async v1IndexIndexnameConfigGet(indexname: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesIndexConfigResponse>> {
14502
+ async v1IndexIndexnameConfigGet(indexname: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesIndexConfigResponseWrapper>> {
13899
14503
  const localVarAxiosArgs = await localVarAxiosParamCreator.v1IndexIndexnameConfigGet(indexname, options);
13900
14504
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13901
14505
  const localVarOperationServerBasePath = operationServerMap['SearchApi.v1IndexIndexnameConfigGet']?.[localVarOperationServerIndex]?.url;
@@ -13930,17 +14534,30 @@ export const SearchApiFp = function(configuration?: Configuration) {
13930
14534
  const localVarOperationServerBasePath = operationServerMap['SearchApi.v1IndexIndexnameConfigPropertyPatch']?.[localVarOperationServerIndex]?.url;
13931
14535
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13932
14536
  },
14537
+ /**
14538
+ * Get default configuration values computed from the Typesense schema
14539
+ * @summary Get Schema-Based Defaults
14540
+ * @param {string} indexname Index Name
14541
+ * @param {*} [options] Override http request option.
14542
+ * @throws {RequiredError}
14543
+ */
14544
+ async v1IndexIndexnameDefaultsGet(indexname: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesSchemaBasedDefaultsResponseWrapper>> {
14545
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1IndexIndexnameDefaultsGet(indexname, options);
14546
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14547
+ const localVarOperationServerBasePath = operationServerMap['SearchApi.v1IndexIndexnameDefaultsGet']?.[localVarOperationServerIndex]?.url;
14548
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14549
+ },
13933
14550
  /**
13934
14551
  * Search documents using store credentials with optional autocomplete suggestions
13935
14552
  * @summary Public Search API
13936
- * @param {string} xStoreID Store ID
13937
- * @param {string} xStoreSecret Store Secret
14553
+ * @param {string} xStoreid Store ID
14554
+ * @param {string} xStoresecret Store Secret
13938
14555
  * @param {DataTypesPublicSearchRequest} body Search request (set include_suggestions: true for autocomplete)
13939
14556
  * @param {*} [options] Override http request option.
13940
14557
  * @throws {RequiredError}
13941
14558
  */
13942
- async v1SearchPost(xStoreID: string, xStoreSecret: string, body: DataTypesPublicSearchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesOfficialSearchResponseWrapper>> {
13943
- const localVarAxiosArgs = await localVarAxiosParamCreator.v1SearchPost(xStoreID, xStoreSecret, body, options);
14559
+ async v1SearchPost(xStoreid: string, xStoresecret: string, body: DataTypesPublicSearchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesOfficialSearchResponseWrapper>> {
14560
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1SearchPost(xStoreid, xStoresecret, body, options);
13944
14561
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13945
14562
  const localVarOperationServerBasePath = operationServerMap['SearchApi.v1SearchPost']?.[localVarOperationServerIndex]?.url;
13946
14563
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -13958,14 +14575,23 @@ export const SearchApiFactory = function (configuration?: Configuration, basePat
13958
14575
  /**
13959
14576
  * Search documents with optional configuration override and autocomplete suggestions
13960
14577
  * @summary Admin Search API
13961
- * @param {string} xStoreID Store ID for the selected store
13962
- * @param {string} xStoreSecret Store Secret for the selected store
14578
+ * @param {number} storeid Store ID
13963
14579
  * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
13964
14580
  * @param {*} [options] Override http request option.
13965
14581
  * @throws {RequiredError}
13966
14582
  */
13967
- adminV1SearchPost(xStoreID: string, xStoreSecret: string, body: DataTypesAdminSearchRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesOfficialSearchResponseWrapper> {
13968
- return localVarFp.adminV1SearchPost(xStoreID, xStoreSecret, body, options).then((request) => request(axios, basePath));
14583
+ adminV1SearchStoreidPost(storeid: number, body: DataTypesAdminSearchRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesOfficialSearchResponseWrapper> {
14584
+ return localVarFp.adminV1SearchStoreidPost(storeid, body, options).then((request) => request(axios, basePath));
14585
+ },
14586
+ /**
14587
+ * Get metadata about all configurable fields for dynamic form generation
14588
+ * @summary Get Configuration Schema
14589
+ * @param {string} [indexname] Index name to get field options from
14590
+ * @param {*} [options] Override http request option.
14591
+ * @throws {RequiredError}
14592
+ */
14593
+ v1IndexConfigSchemaGet(indexname?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesConfigurationSchemaResponseWrapper> {
14594
+ return localVarFp.v1IndexConfigSchemaGet(indexname, options).then((request) => request(axios, basePath));
13969
14595
  },
13970
14596
  /**
13971
14597
  * Get the current index configuration
@@ -13974,7 +14600,7 @@ export const SearchApiFactory = function (configuration?: Configuration, basePat
13974
14600
  * @param {*} [options] Override http request option.
13975
14601
  * @throws {RequiredError}
13976
14602
  */
13977
- v1IndexIndexnameConfigGet(indexname: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesIndexConfigResponse> {
14603
+ v1IndexIndexnameConfigGet(indexname: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesIndexConfigResponseWrapper> {
13978
14604
  return localVarFp.v1IndexIndexnameConfigGet(indexname, options).then((request) => request(axios, basePath));
13979
14605
  },
13980
14606
  /**
@@ -14000,17 +14626,27 @@ export const SearchApiFactory = function (configuration?: Configuration, basePat
14000
14626
  v1IndexIndexnameConfigPropertyPatch(indexname: string, property: string, body: object, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
14001
14627
  return localVarFp.v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options).then((request) => request(axios, basePath));
14002
14628
  },
14629
+ /**
14630
+ * Get default configuration values computed from the Typesense schema
14631
+ * @summary Get Schema-Based Defaults
14632
+ * @param {string} indexname Index Name
14633
+ * @param {*} [options] Override http request option.
14634
+ * @throws {RequiredError}
14635
+ */
14636
+ v1IndexIndexnameDefaultsGet(indexname: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesSchemaBasedDefaultsResponseWrapper> {
14637
+ return localVarFp.v1IndexIndexnameDefaultsGet(indexname, options).then((request) => request(axios, basePath));
14638
+ },
14003
14639
  /**
14004
14640
  * Search documents using store credentials with optional autocomplete suggestions
14005
14641
  * @summary Public Search API
14006
- * @param {string} xStoreID Store ID
14007
- * @param {string} xStoreSecret Store Secret
14642
+ * @param {string} xStoreid Store ID
14643
+ * @param {string} xStoresecret Store Secret
14008
14644
  * @param {DataTypesPublicSearchRequest} body Search request (set include_suggestions: true for autocomplete)
14009
14645
  * @param {*} [options] Override http request option.
14010
14646
  * @throws {RequiredError}
14011
14647
  */
14012
- v1SearchPost(xStoreID: string, xStoreSecret: string, body: DataTypesPublicSearchRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesOfficialSearchResponseWrapper> {
14013
- return localVarFp.v1SearchPost(xStoreID, xStoreSecret, body, options).then((request) => request(axios, basePath));
14648
+ v1SearchPost(xStoreid: string, xStoresecret: string, body: DataTypesPublicSearchRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesOfficialSearchResponseWrapper> {
14649
+ return localVarFp.v1SearchPost(xStoreid, xStoresecret, body, options).then((request) => request(axios, basePath));
14014
14650
  },
14015
14651
  };
14016
14652
  };
@@ -14025,15 +14661,26 @@ export class SearchApi extends BaseAPI {
14025
14661
  /**
14026
14662
  * Search documents with optional configuration override and autocomplete suggestions
14027
14663
  * @summary Admin Search API
14028
- * @param {string} xStoreID Store ID for the selected store
14029
- * @param {string} xStoreSecret Store Secret for the selected store
14664
+ * @param {number} storeid Store ID
14030
14665
  * @param {DataTypesAdminSearchRequest} body Admin search request (set include_suggestions: true for autocomplete)
14031
14666
  * @param {*} [options] Override http request option.
14032
14667
  * @throws {RequiredError}
14033
14668
  * @memberof SearchApi
14034
14669
  */
14035
- public adminV1SearchPost(xStoreID: string, xStoreSecret: string, body: DataTypesAdminSearchRequest, options?: RawAxiosRequestConfig) {
14036
- return SearchApiFp(this.configuration).adminV1SearchPost(xStoreID, xStoreSecret, body, options).then((request) => request(this.axios, this.basePath));
14670
+ public adminV1SearchStoreidPost(storeid: number, body: DataTypesAdminSearchRequest, options?: RawAxiosRequestConfig) {
14671
+ return SearchApiFp(this.configuration).adminV1SearchStoreidPost(storeid, body, options).then((request) => request(this.axios, this.basePath));
14672
+ }
14673
+
14674
+ /**
14675
+ * Get metadata about all configurable fields for dynamic form generation
14676
+ * @summary Get Configuration Schema
14677
+ * @param {string} [indexname] Index name to get field options from
14678
+ * @param {*} [options] Override http request option.
14679
+ * @throws {RequiredError}
14680
+ * @memberof SearchApi
14681
+ */
14682
+ public v1IndexConfigSchemaGet(indexname?: string, options?: RawAxiosRequestConfig) {
14683
+ return SearchApiFp(this.configuration).v1IndexConfigSchemaGet(indexname, options).then((request) => request(this.axios, this.basePath));
14037
14684
  }
14038
14685
 
14039
14686
  /**
@@ -14075,18 +14722,30 @@ export class SearchApi extends BaseAPI {
14075
14722
  return SearchApiFp(this.configuration).v1IndexIndexnameConfigPropertyPatch(indexname, property, body, options).then((request) => request(this.axios, this.basePath));
14076
14723
  }
14077
14724
 
14725
+ /**
14726
+ * Get default configuration values computed from the Typesense schema
14727
+ * @summary Get Schema-Based Defaults
14728
+ * @param {string} indexname Index Name
14729
+ * @param {*} [options] Override http request option.
14730
+ * @throws {RequiredError}
14731
+ * @memberof SearchApi
14732
+ */
14733
+ public v1IndexIndexnameDefaultsGet(indexname: string, options?: RawAxiosRequestConfig) {
14734
+ return SearchApiFp(this.configuration).v1IndexIndexnameDefaultsGet(indexname, options).then((request) => request(this.axios, this.basePath));
14735
+ }
14736
+
14078
14737
  /**
14079
14738
  * Search documents using store credentials with optional autocomplete suggestions
14080
14739
  * @summary Public Search API
14081
- * @param {string} xStoreID Store ID
14082
- * @param {string} xStoreSecret Store Secret
14740
+ * @param {string} xStoreid Store ID
14741
+ * @param {string} xStoresecret Store Secret
14083
14742
  * @param {DataTypesPublicSearchRequest} body Search request (set include_suggestions: true for autocomplete)
14084
14743
  * @param {*} [options] Override http request option.
14085
14744
  * @throws {RequiredError}
14086
14745
  * @memberof SearchApi
14087
14746
  */
14088
- public v1SearchPost(xStoreID: string, xStoreSecret: string, body: DataTypesPublicSearchRequest, options?: RawAxiosRequestConfig) {
14089
- return SearchApiFp(this.configuration).v1SearchPost(xStoreID, xStoreSecret, body, options).then((request) => request(this.axios, this.basePath));
14747
+ public v1SearchPost(xStoreid: string, xStoresecret: string, body: DataTypesPublicSearchRequest, options?: RawAxiosRequestConfig) {
14748
+ return SearchApiFp(this.configuration).v1SearchPost(xStoreid, xStoresecret, body, options).then((request) => request(this.axios, this.basePath));
14090
14749
  }
14091
14750
  }
14092
14751
 
@@ -14211,6 +14870,160 @@ export const StoresApiAxiosParamCreator = function (configuration?: Configuratio
14211
14870
  options: localVarRequestOptions,
14212
14871
  };
14213
14872
  },
14873
+ /**
14874
+ * Retrieves the store configuration
14875
+ * @summary Get Store Config
14876
+ * @param {number} storeID Store ID
14877
+ * @param {*} [options] Override http request option.
14878
+ * @throws {RequiredError}
14879
+ */
14880
+ adminStoresStoreIDConfigGet: async (storeID: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14881
+ // verify required parameter 'storeID' is not null or undefined
14882
+ assertParamExists('adminStoresStoreIDConfigGet', 'storeID', storeID)
14883
+ const localVarPath = `/admin/Stores/{storeID}/config`
14884
+ .replace(`{${"storeID"}}`, encodeURIComponent(String(storeID)));
14885
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14886
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14887
+ let baseOptions;
14888
+ if (configuration) {
14889
+ baseOptions = configuration.baseOptions;
14890
+ }
14891
+
14892
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
14893
+ const localVarHeaderParameter = {} as any;
14894
+ const localVarQueryParameter = {} as any;
14895
+
14896
+ // authentication BearerAuth required
14897
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
14898
+
14899
+
14900
+
14901
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14902
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14903
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14904
+
14905
+ return {
14906
+ url: toPathString(localVarUrlObj),
14907
+ options: localVarRequestOptions,
14908
+ };
14909
+ },
14910
+ /**
14911
+ * Updates the store configuration
14912
+ * @summary Update Store Config
14913
+ * @param {number} storeID Store ID
14914
+ * @param {DataTypesIndexConfig} body Store configuration
14915
+ * @param {*} [options] Override http request option.
14916
+ * @throws {RequiredError}
14917
+ */
14918
+ adminStoresStoreIDConfigPut: async (storeID: number, body: DataTypesIndexConfig, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14919
+ // verify required parameter 'storeID' is not null or undefined
14920
+ assertParamExists('adminStoresStoreIDConfigPut', 'storeID', storeID)
14921
+ // verify required parameter 'body' is not null or undefined
14922
+ assertParamExists('adminStoresStoreIDConfigPut', 'body', body)
14923
+ const localVarPath = `/admin/Stores/{storeID}/config`
14924
+ .replace(`{${"storeID"}}`, encodeURIComponent(String(storeID)));
14925
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14926
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14927
+ let baseOptions;
14928
+ if (configuration) {
14929
+ baseOptions = configuration.baseOptions;
14930
+ }
14931
+
14932
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
14933
+ const localVarHeaderParameter = {} as any;
14934
+ const localVarQueryParameter = {} as any;
14935
+
14936
+ // authentication BearerAuth required
14937
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
14938
+
14939
+
14940
+
14941
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14942
+
14943
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14944
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14945
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14946
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
14947
+
14948
+ return {
14949
+ url: toPathString(localVarUrlObj),
14950
+ options: localVarRequestOptions,
14951
+ };
14952
+ },
14953
+ /**
14954
+ * Get metadata about all configurable fields for store configuration
14955
+ * @summary Get Store Config Schema
14956
+ * @param {number} storeID Store ID to get field options from
14957
+ * @param {*} [options] Override http request option.
14958
+ * @throws {RequiredError}
14959
+ */
14960
+ adminStoresStoreIDConfigSchemaGet: async (storeID: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14961
+ // verify required parameter 'storeID' is not null or undefined
14962
+ assertParamExists('adminStoresStoreIDConfigSchemaGet', 'storeID', storeID)
14963
+ const localVarPath = `/admin/Stores/{storeID}/config-schema`
14964
+ .replace(`{${"storeID"}}`, encodeURIComponent(String(storeID)));
14965
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14966
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14967
+ let baseOptions;
14968
+ if (configuration) {
14969
+ baseOptions = configuration.baseOptions;
14970
+ }
14971
+
14972
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
14973
+ const localVarHeaderParameter = {} as any;
14974
+ const localVarQueryParameter = {} as any;
14975
+
14976
+ // authentication BearerAuth required
14977
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
14978
+
14979
+
14980
+
14981
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14982
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14983
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14984
+
14985
+ return {
14986
+ url: toPathString(localVarUrlObj),
14987
+ options: localVarRequestOptions,
14988
+ };
14989
+ },
14990
+ /**
14991
+ * Get default configuration values computed from the store\'s index schema
14992
+ * @summary Get Store Schema-Based Defaults
14993
+ * @param {number} storeID Store ID
14994
+ * @param {*} [options] Override http request option.
14995
+ * @throws {RequiredError}
14996
+ */
14997
+ adminStoresStoreIDDefaultsGet: async (storeID: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14998
+ // verify required parameter 'storeID' is not null or undefined
14999
+ assertParamExists('adminStoresStoreIDDefaultsGet', 'storeID', storeID)
15000
+ const localVarPath = `/admin/Stores/{storeID}/defaults`
15001
+ .replace(`{${"storeID"}}`, encodeURIComponent(String(storeID)));
15002
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15003
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15004
+ let baseOptions;
15005
+ if (configuration) {
15006
+ baseOptions = configuration.baseOptions;
15007
+ }
15008
+
15009
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
15010
+ const localVarHeaderParameter = {} as any;
15011
+ const localVarQueryParameter = {} as any;
15012
+
15013
+ // authentication BearerAuth required
15014
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
15015
+
15016
+
15017
+
15018
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15019
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15020
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15021
+
15022
+ return {
15023
+ url: toPathString(localVarUrlObj),
15024
+ options: localVarRequestOptions,
15025
+ };
15026
+ },
14214
15027
  /**
14215
15028
  * Updates store information by ID.
14216
15029
  * @summary Update an existing store
@@ -14344,6 +15157,59 @@ export const StoresApiFp = function(configuration?: Configuration) {
14344
15157
  const localVarOperationServerBasePath = operationServerMap['StoresApi.adminStoresPost']?.[localVarOperationServerIndex]?.url;
14345
15158
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14346
15159
  },
15160
+ /**
15161
+ * Retrieves the store configuration
15162
+ * @summary Get Store Config
15163
+ * @param {number} storeID Store ID
15164
+ * @param {*} [options] Override http request option.
15165
+ * @throws {RequiredError}
15166
+ */
15167
+ async adminStoresStoreIDConfigGet(storeID: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesIndexConfigResponseWrapper>> {
15168
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminStoresStoreIDConfigGet(storeID, options);
15169
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15170
+ const localVarOperationServerBasePath = operationServerMap['StoresApi.adminStoresStoreIDConfigGet']?.[localVarOperationServerIndex]?.url;
15171
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15172
+ },
15173
+ /**
15174
+ * Updates the store configuration
15175
+ * @summary Update Store Config
15176
+ * @param {number} storeID Store ID
15177
+ * @param {DataTypesIndexConfig} body Store configuration
15178
+ * @param {*} [options] Override http request option.
15179
+ * @throws {RequiredError}
15180
+ */
15181
+ async adminStoresStoreIDConfigPut(storeID: number, body: DataTypesIndexConfig, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
15182
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminStoresStoreIDConfigPut(storeID, body, options);
15183
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15184
+ const localVarOperationServerBasePath = operationServerMap['StoresApi.adminStoresStoreIDConfigPut']?.[localVarOperationServerIndex]?.url;
15185
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15186
+ },
15187
+ /**
15188
+ * Get metadata about all configurable fields for store configuration
15189
+ * @summary Get Store Config Schema
15190
+ * @param {number} storeID Store ID to get field options from
15191
+ * @param {*} [options] Override http request option.
15192
+ * @throws {RequiredError}
15193
+ */
15194
+ async adminStoresStoreIDConfigSchemaGet(storeID: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesConfigurationSchemaResponse>> {
15195
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminStoresStoreIDConfigSchemaGet(storeID, options);
15196
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15197
+ const localVarOperationServerBasePath = operationServerMap['StoresApi.adminStoresStoreIDConfigSchemaGet']?.[localVarOperationServerIndex]?.url;
15198
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15199
+ },
15200
+ /**
15201
+ * Get default configuration values computed from the store\'s index schema
15202
+ * @summary Get Store Schema-Based Defaults
15203
+ * @param {number} storeID Store ID
15204
+ * @param {*} [options] Override http request option.
15205
+ * @throws {RequiredError}
15206
+ */
15207
+ async adminStoresStoreIDDefaultsGet(storeID: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesSchemaBasedDefaultsResponse>> {
15208
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminStoresStoreIDDefaultsGet(storeID, options);
15209
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15210
+ const localVarOperationServerBasePath = operationServerMap['StoresApi.adminStoresStoreIDDefaultsGet']?.[localVarOperationServerIndex]?.url;
15211
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15212
+ },
14347
15213
  /**
14348
15214
  * Updates store information by ID.
14349
15215
  * @summary Update an existing store
@@ -14412,6 +15278,47 @@ export const StoresApiFactory = function (configuration?: Configuration, basePat
14412
15278
  adminStoresPost(store: DataTypesStoreRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
14413
15279
  return localVarFp.adminStoresPost(store, options).then((request) => request(axios, basePath));
14414
15280
  },
15281
+ /**
15282
+ * Retrieves the store configuration
15283
+ * @summary Get Store Config
15284
+ * @param {number} storeID Store ID
15285
+ * @param {*} [options] Override http request option.
15286
+ * @throws {RequiredError}
15287
+ */
15288
+ adminStoresStoreIDConfigGet(storeID: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesIndexConfigResponseWrapper> {
15289
+ return localVarFp.adminStoresStoreIDConfigGet(storeID, options).then((request) => request(axios, basePath));
15290
+ },
15291
+ /**
15292
+ * Updates the store configuration
15293
+ * @summary Update Store Config
15294
+ * @param {number} storeID Store ID
15295
+ * @param {DataTypesIndexConfig} body Store configuration
15296
+ * @param {*} [options] Override http request option.
15297
+ * @throws {RequiredError}
15298
+ */
15299
+ adminStoresStoreIDConfigPut(storeID: number, body: DataTypesIndexConfig, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
15300
+ return localVarFp.adminStoresStoreIDConfigPut(storeID, body, options).then((request) => request(axios, basePath));
15301
+ },
15302
+ /**
15303
+ * Get metadata about all configurable fields for store configuration
15304
+ * @summary Get Store Config Schema
15305
+ * @param {number} storeID Store ID to get field options from
15306
+ * @param {*} [options] Override http request option.
15307
+ * @throws {RequiredError}
15308
+ */
15309
+ adminStoresStoreIDConfigSchemaGet(storeID: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesConfigurationSchemaResponse> {
15310
+ return localVarFp.adminStoresStoreIDConfigSchemaGet(storeID, options).then((request) => request(axios, basePath));
15311
+ },
15312
+ /**
15313
+ * Get default configuration values computed from the store\'s index schema
15314
+ * @summary Get Store Schema-Based Defaults
15315
+ * @param {number} storeID Store ID
15316
+ * @param {*} [options] Override http request option.
15317
+ * @throws {RequiredError}
15318
+ */
15319
+ adminStoresStoreIDDefaultsGet(storeID: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesSchemaBasedDefaultsResponse> {
15320
+ return localVarFp.adminStoresStoreIDDefaultsGet(storeID, options).then((request) => request(axios, basePath));
15321
+ },
14415
15322
  /**
14416
15323
  * Updates store information by ID.
14417
15324
  * @summary Update an existing store
@@ -14480,6 +15387,55 @@ export class StoresApi extends BaseAPI {
14480
15387
  return StoresApiFp(this.configuration).adminStoresPost(store, options).then((request) => request(this.axios, this.basePath));
14481
15388
  }
14482
15389
 
15390
+ /**
15391
+ * Retrieves the store configuration
15392
+ * @summary Get Store Config
15393
+ * @param {number} storeID Store ID
15394
+ * @param {*} [options] Override http request option.
15395
+ * @throws {RequiredError}
15396
+ * @memberof StoresApi
15397
+ */
15398
+ public adminStoresStoreIDConfigGet(storeID: number, options?: RawAxiosRequestConfig) {
15399
+ return StoresApiFp(this.configuration).adminStoresStoreIDConfigGet(storeID, options).then((request) => request(this.axios, this.basePath));
15400
+ }
15401
+
15402
+ /**
15403
+ * Updates the store configuration
15404
+ * @summary Update Store Config
15405
+ * @param {number} storeID Store ID
15406
+ * @param {DataTypesIndexConfig} body Store configuration
15407
+ * @param {*} [options] Override http request option.
15408
+ * @throws {RequiredError}
15409
+ * @memberof StoresApi
15410
+ */
15411
+ public adminStoresStoreIDConfigPut(storeID: number, body: DataTypesIndexConfig, options?: RawAxiosRequestConfig) {
15412
+ return StoresApiFp(this.configuration).adminStoresStoreIDConfigPut(storeID, body, options).then((request) => request(this.axios, this.basePath));
15413
+ }
15414
+
15415
+ /**
15416
+ * Get metadata about all configurable fields for store configuration
15417
+ * @summary Get Store Config Schema
15418
+ * @param {number} storeID Store ID to get field options from
15419
+ * @param {*} [options] Override http request option.
15420
+ * @throws {RequiredError}
15421
+ * @memberof StoresApi
15422
+ */
15423
+ public adminStoresStoreIDConfigSchemaGet(storeID: number, options?: RawAxiosRequestConfig) {
15424
+ return StoresApiFp(this.configuration).adminStoresStoreIDConfigSchemaGet(storeID, options).then((request) => request(this.axios, this.basePath));
15425
+ }
15426
+
15427
+ /**
15428
+ * Get default configuration values computed from the store\'s index schema
15429
+ * @summary Get Store Schema-Based Defaults
15430
+ * @param {number} storeID Store ID
15431
+ * @param {*} [options] Override http request option.
15432
+ * @throws {RequiredError}
15433
+ * @memberof StoresApi
15434
+ */
15435
+ public adminStoresStoreIDDefaultsGet(storeID: number, options?: RawAxiosRequestConfig) {
15436
+ return StoresApiFp(this.configuration).adminStoresStoreIDDefaultsGet(storeID, options).then((request) => request(this.axios, this.basePath));
15437
+ }
15438
+
14483
15439
  /**
14484
15440
  * Updates store information by ID.
14485
15441
  * @summary Update an existing store