@djvlc/openapi-admin-client 1.6.2 → 1.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -239,6 +239,12 @@ function querystringSingleKey(key, value, keyPrefix = "") {
239
239
  }
240
240
  return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
241
241
  }
242
+ function mapValues(data, fn) {
243
+ return Object.keys(data).reduce(
244
+ (acc, key) => ({ ...acc, [key]: fn(data[key]) }),
245
+ {}
246
+ );
247
+ }
242
248
  var JSONApiResponse = class {
243
249
  constructor(raw, transformer = (jsonValue) => jsonValue) {
244
250
  this.raw = raw;
@@ -259,9 +265,10 @@ var VoidApiResponse = class {
259
265
 
260
266
  // src/generated/models/GetActionDefinition200ResponseDataVersionsInner.ts
261
267
  var GetActionDefinition200ResponseDataVersionsInnerStatusEnum = {
262
- ACTIVE: "active",
268
+ DRAFT: "draft",
269
+ STABLE: "stable",
263
270
  DEPRECATED: "deprecated",
264
- DISABLED: "disabled"
271
+ BLOCKED: "blocked"
265
272
  };
266
273
  function instanceOfGetActionDefinition200ResponseDataVersionsInner(value) {
267
274
  let isInstance = true;
@@ -307,22 +314,29 @@ function GetActionDefinition200ResponseDataVersionsInnerToJSON(value) {
307
314
  }
308
315
 
309
316
  // src/generated/models/ActionDefinitionDetail.ts
310
- var ActionDefinitionDetailTypeEnum = {
311
- BUILTIN: "builtin",
312
- CUSTOM: "custom",
313
- HTTP: "http",
314
- SCRIPT: "script"
317
+ var ActionDefinitionDetailActionTypeEnum = {
318
+ CLAIM: "claim",
319
+ SIGNIN: "signin",
320
+ LOTTERY: "lottery",
321
+ RESERVE: "reserve",
322
+ BIND: "bind",
323
+ TASK_COMPLETE: "task_complete",
324
+ VOTE: "vote",
325
+ SHARE: "share",
326
+ FORM_SUBMIT: "form_submit",
327
+ CUSTOM: "custom"
315
328
  };
316
329
  var ActionDefinitionDetailStatusEnum = {
317
- ACTIVE: "active",
330
+ DRAFT: "draft",
331
+ STABLE: "stable",
318
332
  DEPRECATED: "deprecated",
319
- DISABLED: "disabled"
333
+ BLOCKED: "blocked"
320
334
  };
321
335
  function instanceOfActionDefinitionDetail(value) {
322
336
  let isInstance = true;
323
337
  isInstance = isInstance && "id" in value;
324
338
  isInstance = isInstance && "name" in value;
325
- isInstance = isInstance && "type" in value;
339
+ isInstance = isInstance && "actionType" in value;
326
340
  isInstance = isInstance && "status" in value;
327
341
  isInstance = isInstance && "spec" in value;
328
342
  isInstance = isInstance && "createdAt" in value;
@@ -339,7 +353,7 @@ function ActionDefinitionDetailFromJSONTyped(json, ignoreDiscriminator) {
339
353
  "id": json["id"],
340
354
  "name": json["name"],
341
355
  "displayName": !exists(json, "displayName") ? void 0 : json["displayName"],
342
- "type": json["type"],
356
+ "actionType": json["actionType"],
343
357
  "description": !exists(json, "description") ? void 0 : json["description"],
344
358
  "status": json["status"],
345
359
  "spec": json["spec"],
@@ -359,7 +373,7 @@ function ActionDefinitionDetailToJSON(value) {
359
373
  "id": value.id,
360
374
  "name": value.name,
361
375
  "displayName": value.displayName,
362
- "type": value.type,
376
+ "actionType": value.actionType,
363
377
  "description": value.description,
364
378
  "status": value.status,
365
379
  "spec": value.spec,
@@ -370,22 +384,29 @@ function ActionDefinitionDetailToJSON(value) {
370
384
  }
371
385
 
372
386
  // src/generated/models/ActionDefinitionInfo.ts
373
- var ActionDefinitionInfoTypeEnum = {
374
- BUILTIN: "builtin",
375
- CUSTOM: "custom",
376
- HTTP: "http",
377
- SCRIPT: "script"
387
+ var ActionDefinitionInfoActionTypeEnum = {
388
+ CLAIM: "claim",
389
+ SIGNIN: "signin",
390
+ LOTTERY: "lottery",
391
+ RESERVE: "reserve",
392
+ BIND: "bind",
393
+ TASK_COMPLETE: "task_complete",
394
+ VOTE: "vote",
395
+ SHARE: "share",
396
+ FORM_SUBMIT: "form_submit",
397
+ CUSTOM: "custom"
378
398
  };
379
399
  var ActionDefinitionInfoStatusEnum = {
380
- ACTIVE: "active",
400
+ DRAFT: "draft",
401
+ STABLE: "stable",
381
402
  DEPRECATED: "deprecated",
382
- DISABLED: "disabled"
403
+ BLOCKED: "blocked"
383
404
  };
384
405
  function instanceOfActionDefinitionInfo(value) {
385
406
  let isInstance = true;
386
407
  isInstance = isInstance && "id" in value;
387
408
  isInstance = isInstance && "name" in value;
388
- isInstance = isInstance && "type" in value;
409
+ isInstance = isInstance && "actionType" in value;
389
410
  isInstance = isInstance && "status" in value;
390
411
  isInstance = isInstance && "createdAt" in value;
391
412
  return isInstance;
@@ -401,7 +422,7 @@ function ActionDefinitionInfoFromJSONTyped(json, ignoreDiscriminator) {
401
422
  "id": json["id"],
402
423
  "name": json["name"],
403
424
  "displayName": !exists(json, "displayName") ? void 0 : json["displayName"],
404
- "type": json["type"],
425
+ "actionType": json["actionType"],
405
426
  "description": !exists(json, "description") ? void 0 : json["description"],
406
427
  "status": json["status"],
407
428
  "latestVersion": !exists(json, "latestVersion") ? void 0 : json["latestVersion"],
@@ -420,7 +441,7 @@ function ActionDefinitionInfoToJSON(value) {
420
441
  "id": value.id,
421
442
  "name": value.name,
422
443
  "displayName": value.displayName,
423
- "type": value.type,
444
+ "actionType": value.actionType,
424
445
  "description": value.description,
425
446
  "status": value.status,
426
447
  "latestVersion": value.latestVersion,
@@ -596,14 +617,14 @@ function ActivityStatsToJSON(value) {
596
617
  };
597
618
  }
598
619
 
599
- // src/generated/models/AddRolloutStrategy201ResponseData.ts
600
- var AddRolloutStrategy201ResponseDataTypeEnum = {
620
+ // src/generated/models/AddRolloutStrategy200ResponseData.ts
621
+ var AddRolloutStrategy200ResponseDataTypeEnum = {
601
622
  PERCENTAGE: "percentage",
602
623
  USER_GROUP: "userGroup",
603
624
  FEATURE: "feature",
604
625
  GRADUAL: "gradual"
605
626
  };
606
- function instanceOfAddRolloutStrategy201ResponseData(value) {
627
+ function instanceOfAddRolloutStrategy200ResponseData(value) {
607
628
  let isInstance = true;
608
629
  isInstance = isInstance && "id" in value;
609
630
  isInstance = isInstance && "name" in value;
@@ -611,10 +632,10 @@ function instanceOfAddRolloutStrategy201ResponseData(value) {
611
632
  isInstance = isInstance && "config" in value;
612
633
  return isInstance;
613
634
  }
614
- function AddRolloutStrategy201ResponseDataFromJSON(json) {
615
- return AddRolloutStrategy201ResponseDataFromJSONTyped(json, false);
635
+ function AddRolloutStrategy200ResponseDataFromJSON(json) {
636
+ return AddRolloutStrategy200ResponseDataFromJSONTyped(json, false);
616
637
  }
617
- function AddRolloutStrategy201ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
638
+ function AddRolloutStrategy200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
618
639
  if (json === void 0 || json === null) {
619
640
  return json;
620
641
  }
@@ -629,7 +650,7 @@ function AddRolloutStrategy201ResponseDataFromJSONTyped(json, ignoreDiscriminato
629
650
  "updatedAt": !exists(json, "updatedAt") ? void 0 : new Date(json["updatedAt"])
630
651
  };
631
652
  }
632
- function AddRolloutStrategy201ResponseDataToJSON(value) {
653
+ function AddRolloutStrategy200ResponseDataToJSON(value) {
633
654
  if (value === void 0) {
634
655
  return void 0;
635
656
  }
@@ -648,24 +669,24 @@ function AddRolloutStrategy201ResponseDataToJSON(value) {
648
669
  };
649
670
  }
650
671
 
651
- // src/generated/models/AddRolloutStrategy201Response.ts
652
- function instanceOfAddRolloutStrategy201Response(value) {
672
+ // src/generated/models/AddRolloutStrategy200Response.ts
673
+ function instanceOfAddRolloutStrategy200Response(value) {
653
674
  let isInstance = true;
654
675
  return isInstance;
655
676
  }
656
- function AddRolloutStrategy201ResponseFromJSON(json) {
657
- return AddRolloutStrategy201ResponseFromJSONTyped(json, false);
677
+ function AddRolloutStrategy200ResponseFromJSON(json) {
678
+ return AddRolloutStrategy200ResponseFromJSONTyped(json, false);
658
679
  }
659
- function AddRolloutStrategy201ResponseFromJSONTyped(json, ignoreDiscriminator) {
680
+ function AddRolloutStrategy200ResponseFromJSONTyped(json, ignoreDiscriminator) {
660
681
  if (json === void 0 || json === null) {
661
682
  return json;
662
683
  }
663
684
  return {
664
685
  "success": !exists(json, "success") ? void 0 : json["success"],
665
- "data": !exists(json, "data") ? void 0 : AddRolloutStrategy201ResponseDataFromJSON(json["data"])
686
+ "data": !exists(json, "data") ? void 0 : AddRolloutStrategy200ResponseDataFromJSON(json["data"])
666
687
  };
667
688
  }
668
- function AddRolloutStrategy201ResponseToJSON(value) {
689
+ function AddRolloutStrategy200ResponseToJSON(value) {
669
690
  if (value === void 0) {
670
691
  return void 0;
671
692
  }
@@ -674,7 +695,7 @@ function AddRolloutStrategy201ResponseToJSON(value) {
674
695
  }
675
696
  return {
676
697
  "success": value.success,
677
- "data": AddRolloutStrategy201ResponseDataToJSON(value.data)
698
+ "data": AddRolloutStrategy200ResponseDataToJSON(value.data)
678
699
  };
679
700
  }
680
701
 
@@ -1223,22 +1244,29 @@ function ComponentVersionResponseToJSON(value) {
1223
1244
  }
1224
1245
 
1225
1246
  // src/generated/models/ListActionDefinitions200ResponseDataInner.ts
1226
- var ListActionDefinitions200ResponseDataInnerTypeEnum = {
1227
- BUILTIN: "builtin",
1228
- CUSTOM: "custom",
1229
- HTTP: "http",
1230
- SCRIPT: "script"
1247
+ var ListActionDefinitions200ResponseDataInnerActionTypeEnum = {
1248
+ CLAIM: "claim",
1249
+ SIGNIN: "signin",
1250
+ LOTTERY: "lottery",
1251
+ RESERVE: "reserve",
1252
+ BIND: "bind",
1253
+ TASK_COMPLETE: "task_complete",
1254
+ VOTE: "vote",
1255
+ SHARE: "share",
1256
+ FORM_SUBMIT: "form_submit",
1257
+ CUSTOM: "custom"
1231
1258
  };
1232
1259
  var ListActionDefinitions200ResponseDataInnerStatusEnum = {
1233
- ACTIVE: "active",
1260
+ DRAFT: "draft",
1261
+ STABLE: "stable",
1234
1262
  DEPRECATED: "deprecated",
1235
- DISABLED: "disabled"
1263
+ BLOCKED: "blocked"
1236
1264
  };
1237
1265
  function instanceOfListActionDefinitions200ResponseDataInner(value) {
1238
1266
  let isInstance = true;
1239
1267
  isInstance = isInstance && "id" in value;
1240
1268
  isInstance = isInstance && "name" in value;
1241
- isInstance = isInstance && "type" in value;
1269
+ isInstance = isInstance && "actionType" in value;
1242
1270
  isInstance = isInstance && "status" in value;
1243
1271
  isInstance = isInstance && "createdAt" in value;
1244
1272
  return isInstance;
@@ -1254,7 +1282,7 @@ function ListActionDefinitions200ResponseDataInnerFromJSONTyped(json, ignoreDisc
1254
1282
  "id": json["id"],
1255
1283
  "name": json["name"],
1256
1284
  "displayName": !exists(json, "displayName") ? void 0 : json["displayName"],
1257
- "type": json["type"],
1285
+ "actionType": json["actionType"],
1258
1286
  "description": !exists(json, "description") ? void 0 : json["description"],
1259
1287
  "status": json["status"],
1260
1288
  "latestVersion": !exists(json, "latestVersion") ? void 0 : json["latestVersion"],
@@ -1273,7 +1301,7 @@ function ListActionDefinitions200ResponseDataInnerToJSON(value) {
1273
1301
  "id": value.id,
1274
1302
  "name": value.name,
1275
1303
  "displayName": value.displayName,
1276
- "type": value.type,
1304
+ "actionType": value.actionType,
1277
1305
  "description": value.description,
1278
1306
  "status": value.status,
1279
1307
  "latestVersion": value.latestVersion,
@@ -1313,16 +1341,22 @@ function CreateActionDefinition201ResponseToJSON(value) {
1313
1341
  }
1314
1342
 
1315
1343
  // src/generated/models/CreateActionDefinitionRequest.ts
1316
- var CreateActionDefinitionRequestTypeEnum = {
1317
- BUILTIN: "builtin",
1318
- CUSTOM: "custom",
1319
- HTTP: "http",
1320
- SCRIPT: "script"
1344
+ var CreateActionDefinitionRequestActionTypeEnum = {
1345
+ CLAIM: "claim",
1346
+ SIGNIN: "signin",
1347
+ LOTTERY: "lottery",
1348
+ RESERVE: "reserve",
1349
+ BIND: "bind",
1350
+ TASK_COMPLETE: "task_complete",
1351
+ VOTE: "vote",
1352
+ SHARE: "share",
1353
+ FORM_SUBMIT: "form_submit",
1354
+ CUSTOM: "custom"
1321
1355
  };
1322
1356
  function instanceOfCreateActionDefinitionRequest(value) {
1323
1357
  let isInstance = true;
1324
1358
  isInstance = isInstance && "name" in value;
1325
- isInstance = isInstance && "type" in value;
1359
+ isInstance = isInstance && "actionType" in value;
1326
1360
  return isInstance;
1327
1361
  }
1328
1362
  function CreateActionDefinitionRequestFromJSON(json) {
@@ -1335,7 +1369,7 @@ function CreateActionDefinitionRequestFromJSONTyped(json, ignoreDiscriminator) {
1335
1369
  return {
1336
1370
  "name": json["name"],
1337
1371
  "displayName": !exists(json, "displayName") ? void 0 : json["displayName"],
1338
- "type": json["type"],
1372
+ "actionType": json["actionType"],
1339
1373
  "description": !exists(json, "description") ? void 0 : json["description"],
1340
1374
  "spec": !exists(json, "spec") ? void 0 : json["spec"]
1341
1375
  };
@@ -1350,7 +1384,7 @@ function CreateActionDefinitionRequestToJSON(value) {
1350
1384
  return {
1351
1385
  "name": value.name,
1352
1386
  "displayName": value.displayName,
1353
- "type": value.type,
1387
+ "actionType": value.actionType,
1354
1388
  "description": value.description,
1355
1389
  "spec": value.spec
1356
1390
  };
@@ -1497,22 +1531,24 @@ function CreateActivityRequestToJSON(value) {
1497
1531
  }
1498
1532
 
1499
1533
  // src/generated/models/ListDataQueryDefinitions200ResponseDataInner.ts
1500
- var ListDataQueryDefinitions200ResponseDataInnerTypeEnum = {
1534
+ var ListDataQueryDefinitions200ResponseDataInnerSourceTypeEnum = {
1501
1535
  HTTP: "http",
1502
1536
  GRAPHQL: "graphql",
1503
- SQL: "sql",
1504
- CUSTOM: "custom"
1537
+ DATABASE: "database",
1538
+ INTERNAL: "internal",
1539
+ AGGREGATION: "aggregation"
1505
1540
  };
1506
1541
  var ListDataQueryDefinitions200ResponseDataInnerStatusEnum = {
1507
- ACTIVE: "active",
1542
+ DRAFT: "draft",
1543
+ STABLE: "stable",
1508
1544
  DEPRECATED: "deprecated",
1509
- DISABLED: "disabled"
1545
+ BLOCKED: "blocked"
1510
1546
  };
1511
1547
  function instanceOfListDataQueryDefinitions200ResponseDataInner(value) {
1512
1548
  let isInstance = true;
1513
1549
  isInstance = isInstance && "id" in value;
1514
1550
  isInstance = isInstance && "name" in value;
1515
- isInstance = isInstance && "type" in value;
1551
+ isInstance = isInstance && "sourceType" in value;
1516
1552
  isInstance = isInstance && "status" in value;
1517
1553
  isInstance = isInstance && "createdAt" in value;
1518
1554
  return isInstance;
@@ -1528,7 +1564,7 @@ function ListDataQueryDefinitions200ResponseDataInnerFromJSONTyped(json, ignoreD
1528
1564
  "id": json["id"],
1529
1565
  "name": json["name"],
1530
1566
  "displayName": !exists(json, "displayName") ? void 0 : json["displayName"],
1531
- "type": json["type"],
1567
+ "sourceType": json["sourceType"],
1532
1568
  "description": !exists(json, "description") ? void 0 : json["description"],
1533
1569
  "status": json["status"],
1534
1570
  "latestVersion": !exists(json, "latestVersion") ? void 0 : json["latestVersion"],
@@ -1547,7 +1583,7 @@ function ListDataQueryDefinitions200ResponseDataInnerToJSON(value) {
1547
1583
  "id": value.id,
1548
1584
  "name": value.name,
1549
1585
  "displayName": value.displayName,
1550
- "type": value.type,
1586
+ "sourceType": value.sourceType,
1551
1587
  "description": value.description,
1552
1588
  "status": value.status,
1553
1589
  "latestVersion": value.latestVersion,
@@ -1587,16 +1623,17 @@ function CreateDataQueryDefinition201ResponseToJSON(value) {
1587
1623
  }
1588
1624
 
1589
1625
  // src/generated/models/CreateDataQueryDefinitionRequest.ts
1590
- var CreateDataQueryDefinitionRequestTypeEnum = {
1626
+ var CreateDataQueryDefinitionRequestSourceTypeEnum = {
1591
1627
  HTTP: "http",
1592
1628
  GRAPHQL: "graphql",
1593
- SQL: "sql",
1594
- CUSTOM: "custom"
1629
+ DATABASE: "database",
1630
+ INTERNAL: "internal",
1631
+ AGGREGATION: "aggregation"
1595
1632
  };
1596
1633
  function instanceOfCreateDataQueryDefinitionRequest(value) {
1597
1634
  let isInstance = true;
1598
1635
  isInstance = isInstance && "name" in value;
1599
- isInstance = isInstance && "type" in value;
1636
+ isInstance = isInstance && "sourceType" in value;
1600
1637
  return isInstance;
1601
1638
  }
1602
1639
  function CreateDataQueryDefinitionRequestFromJSON(json) {
@@ -1609,7 +1646,7 @@ function CreateDataQueryDefinitionRequestFromJSONTyped(json, ignoreDiscriminator
1609
1646
  return {
1610
1647
  "name": json["name"],
1611
1648
  "displayName": !exists(json, "displayName") ? void 0 : json["displayName"],
1612
- "type": json["type"],
1649
+ "sourceType": json["sourceType"],
1613
1650
  "description": !exists(json, "description") ? void 0 : json["description"],
1614
1651
  "spec": !exists(json, "spec") ? void 0 : json["spec"]
1615
1652
  };
@@ -1624,7 +1661,7 @@ function CreateDataQueryDefinitionRequestToJSON(value) {
1624
1661
  return {
1625
1662
  "name": value.name,
1626
1663
  "displayName": value.displayName,
1627
- "type": value.type,
1664
+ "sourceType": value.sourceType,
1628
1665
  "description": value.description,
1629
1666
  "spec": value.spec
1630
1667
  };
@@ -1686,16 +1723,16 @@ function ListPages200ResponseDataInnerToJSON(value) {
1686
1723
  };
1687
1724
  }
1688
1725
 
1689
- // src/generated/models/CreatePage201Response.ts
1690
- function instanceOfCreatePage201Response(value) {
1726
+ // src/generated/models/CreatePage200Response.ts
1727
+ function instanceOfCreatePage200Response(value) {
1691
1728
  let isInstance = true;
1692
1729
  isInstance = isInstance && "data" in value;
1693
1730
  return isInstance;
1694
1731
  }
1695
- function CreatePage201ResponseFromJSON(json) {
1696
- return CreatePage201ResponseFromJSONTyped(json, false);
1732
+ function CreatePage200ResponseFromJSON(json) {
1733
+ return CreatePage200ResponseFromJSONTyped(json, false);
1697
1734
  }
1698
- function CreatePage201ResponseFromJSONTyped(json, ignoreDiscriminator) {
1735
+ function CreatePage200ResponseFromJSONTyped(json, ignoreDiscriminator) {
1699
1736
  if (json === void 0 || json === null) {
1700
1737
  return json;
1701
1738
  }
@@ -1703,7 +1740,7 @@ function CreatePage201ResponseFromJSONTyped(json, ignoreDiscriminator) {
1703
1740
  "data": ListPages200ResponseDataInnerFromJSON(json["data"])
1704
1741
  };
1705
1742
  }
1706
- function CreatePage201ResponseToJSON(value) {
1743
+ function CreatePage200ResponseToJSON(value) {
1707
1744
  if (value === void 0) {
1708
1745
  return void 0;
1709
1746
  }
@@ -1750,23 +1787,144 @@ function CreatePageRequestToJSON(value) {
1750
1787
  };
1751
1788
  }
1752
1789
 
1790
+ // src/generated/models/CreatePreviewToken201ResponseData.ts
1791
+ var CreatePreviewToken201ResponseDataDeviceTypeEnum = {
1792
+ MOBILE: "mobile",
1793
+ TABLET: "tablet",
1794
+ DESKTOP: "desktop"
1795
+ };
1796
+ function instanceOfCreatePreviewToken201ResponseData(value) {
1797
+ let isInstance = true;
1798
+ isInstance = isInstance && "token" in value;
1799
+ isInstance = isInstance && "pageId" in value;
1800
+ isInstance = isInstance && "expiresAt" in value;
1801
+ return isInstance;
1802
+ }
1803
+ function CreatePreviewToken201ResponseDataFromJSON(json) {
1804
+ return CreatePreviewToken201ResponseDataFromJSONTyped(json, false);
1805
+ }
1806
+ function CreatePreviewToken201ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
1807
+ if (json === void 0 || json === null) {
1808
+ return json;
1809
+ }
1810
+ return {
1811
+ "token": json["token"],
1812
+ "pageId": json["pageId"],
1813
+ "draftVersion": !exists(json, "draftVersion") ? void 0 : json["draftVersion"],
1814
+ "previewUrl": !exists(json, "previewUrl") ? void 0 : json["previewUrl"],
1815
+ "deviceType": !exists(json, "deviceType") ? void 0 : json["deviceType"],
1816
+ "context": !exists(json, "context") ? void 0 : json["context"],
1817
+ "createdAt": !exists(json, "createdAt") ? void 0 : new Date(json["createdAt"]),
1818
+ "expiresAt": new Date(json["expiresAt"]),
1819
+ "createdBy": !exists(json, "createdBy") ? void 0 : json["createdBy"]
1820
+ };
1821
+ }
1822
+ function CreatePreviewToken201ResponseDataToJSON(value) {
1823
+ if (value === void 0) {
1824
+ return void 0;
1825
+ }
1826
+ if (value === null) {
1827
+ return null;
1828
+ }
1829
+ return {
1830
+ "token": value.token,
1831
+ "pageId": value.pageId,
1832
+ "draftVersion": value.draftVersion,
1833
+ "previewUrl": value.previewUrl,
1834
+ "deviceType": value.deviceType,
1835
+ "context": value.context,
1836
+ "createdAt": value.createdAt === void 0 ? void 0 : value.createdAt.toISOString(),
1837
+ "expiresAt": value.expiresAt.toISOString(),
1838
+ "createdBy": value.createdBy
1839
+ };
1840
+ }
1841
+
1842
+ // src/generated/models/CreatePreviewToken201Response.ts
1843
+ function instanceOfCreatePreviewToken201Response(value) {
1844
+ let isInstance = true;
1845
+ return isInstance;
1846
+ }
1847
+ function CreatePreviewToken201ResponseFromJSON(json) {
1848
+ return CreatePreviewToken201ResponseFromJSONTyped(json, false);
1849
+ }
1850
+ function CreatePreviewToken201ResponseFromJSONTyped(json, ignoreDiscriminator) {
1851
+ if (json === void 0 || json === null) {
1852
+ return json;
1853
+ }
1854
+ return {
1855
+ "success": !exists(json, "success") ? void 0 : json["success"],
1856
+ "data": !exists(json, "data") ? void 0 : CreatePreviewToken201ResponseDataFromJSON(json["data"])
1857
+ };
1858
+ }
1859
+ function CreatePreviewToken201ResponseToJSON(value) {
1860
+ if (value === void 0) {
1861
+ return void 0;
1862
+ }
1863
+ if (value === null) {
1864
+ return null;
1865
+ }
1866
+ return {
1867
+ "success": value.success,
1868
+ "data": CreatePreviewToken201ResponseDataToJSON(value.data)
1869
+ };
1870
+ }
1871
+
1872
+ // src/generated/models/CreatePreviewTokenRequest.ts
1873
+ var CreatePreviewTokenRequestDeviceTypeEnum = {
1874
+ MOBILE: "mobile",
1875
+ TABLET: "tablet",
1876
+ DESKTOP: "desktop"
1877
+ };
1878
+ function instanceOfCreatePreviewTokenRequest(value) {
1879
+ let isInstance = true;
1880
+ return isInstance;
1881
+ }
1882
+ function CreatePreviewTokenRequestFromJSON(json) {
1883
+ return CreatePreviewTokenRequestFromJSONTyped(json, false);
1884
+ }
1885
+ function CreatePreviewTokenRequestFromJSONTyped(json, ignoreDiscriminator) {
1886
+ if (json === void 0 || json === null) {
1887
+ return json;
1888
+ }
1889
+ return {
1890
+ "expiresIn": !exists(json, "expiresIn") ? void 0 : json["expiresIn"],
1891
+ "deviceType": !exists(json, "deviceType") ? void 0 : json["deviceType"],
1892
+ "context": !exists(json, "context") ? void 0 : json["context"]
1893
+ };
1894
+ }
1895
+ function CreatePreviewTokenRequestToJSON(value) {
1896
+ if (value === void 0) {
1897
+ return void 0;
1898
+ }
1899
+ if (value === null) {
1900
+ return null;
1901
+ }
1902
+ return {
1903
+ "expiresIn": value.expiresIn,
1904
+ "deviceType": value.deviceType,
1905
+ "context": value.context
1906
+ };
1907
+ }
1908
+
1753
1909
  // src/generated/models/DataQueryDefinitionDetail.ts
1754
- var DataQueryDefinitionDetailTypeEnum = {
1910
+ var DataQueryDefinitionDetailSourceTypeEnum = {
1755
1911
  HTTP: "http",
1756
1912
  GRAPHQL: "graphql",
1757
- SQL: "sql",
1758
- CUSTOM: "custom"
1913
+ DATABASE: "database",
1914
+ INTERNAL: "internal",
1915
+ AGGREGATION: "aggregation"
1759
1916
  };
1760
1917
  var DataQueryDefinitionDetailStatusEnum = {
1761
- ACTIVE: "active",
1918
+ DRAFT: "draft",
1919
+ STABLE: "stable",
1762
1920
  DEPRECATED: "deprecated",
1763
- DISABLED: "disabled"
1921
+ BLOCKED: "blocked"
1764
1922
  };
1765
1923
  function instanceOfDataQueryDefinitionDetail(value) {
1766
1924
  let isInstance = true;
1767
1925
  isInstance = isInstance && "id" in value;
1768
1926
  isInstance = isInstance && "name" in value;
1769
- isInstance = isInstance && "type" in value;
1927
+ isInstance = isInstance && "sourceType" in value;
1770
1928
  isInstance = isInstance && "status" in value;
1771
1929
  isInstance = isInstance && "spec" in value;
1772
1930
  isInstance = isInstance && "createdAt" in value;
@@ -1783,7 +1941,7 @@ function DataQueryDefinitionDetailFromJSONTyped(json, ignoreDiscriminator) {
1783
1941
  "id": json["id"],
1784
1942
  "name": json["name"],
1785
1943
  "displayName": !exists(json, "displayName") ? void 0 : json["displayName"],
1786
- "type": json["type"],
1944
+ "sourceType": json["sourceType"],
1787
1945
  "description": !exists(json, "description") ? void 0 : json["description"],
1788
1946
  "status": json["status"],
1789
1947
  "spec": json["spec"],
@@ -1803,7 +1961,7 @@ function DataQueryDefinitionDetailToJSON(value) {
1803
1961
  "id": value.id,
1804
1962
  "name": value.name,
1805
1963
  "displayName": value.displayName,
1806
- "type": value.type,
1964
+ "sourceType": value.sourceType,
1807
1965
  "description": value.description,
1808
1966
  "status": value.status,
1809
1967
  "spec": value.spec,
@@ -1814,22 +1972,24 @@ function DataQueryDefinitionDetailToJSON(value) {
1814
1972
  }
1815
1973
 
1816
1974
  // src/generated/models/DataQueryDefinitionInfo.ts
1817
- var DataQueryDefinitionInfoTypeEnum = {
1975
+ var DataQueryDefinitionInfoSourceTypeEnum = {
1818
1976
  HTTP: "http",
1819
1977
  GRAPHQL: "graphql",
1820
- SQL: "sql",
1821
- CUSTOM: "custom"
1978
+ DATABASE: "database",
1979
+ INTERNAL: "internal",
1980
+ AGGREGATION: "aggregation"
1822
1981
  };
1823
1982
  var DataQueryDefinitionInfoStatusEnum = {
1824
- ACTIVE: "active",
1983
+ DRAFT: "draft",
1984
+ STABLE: "stable",
1825
1985
  DEPRECATED: "deprecated",
1826
- DISABLED: "disabled"
1986
+ BLOCKED: "blocked"
1827
1987
  };
1828
1988
  function instanceOfDataQueryDefinitionInfo(value) {
1829
1989
  let isInstance = true;
1830
1990
  isInstance = isInstance && "id" in value;
1831
1991
  isInstance = isInstance && "name" in value;
1832
- isInstance = isInstance && "type" in value;
1992
+ isInstance = isInstance && "sourceType" in value;
1833
1993
  isInstance = isInstance && "status" in value;
1834
1994
  isInstance = isInstance && "createdAt" in value;
1835
1995
  return isInstance;
@@ -1845,7 +2005,7 @@ function DataQueryDefinitionInfoFromJSONTyped(json, ignoreDiscriminator) {
1845
2005
  "id": json["id"],
1846
2006
  "name": json["name"],
1847
2007
  "displayName": !exists(json, "displayName") ? void 0 : json["displayName"],
1848
- "type": json["type"],
2008
+ "sourceType": json["sourceType"],
1849
2009
  "description": !exists(json, "description") ? void 0 : json["description"],
1850
2010
  "status": json["status"],
1851
2011
  "latestVersion": !exists(json, "latestVersion") ? void 0 : json["latestVersion"],
@@ -1864,7 +2024,7 @@ function DataQueryDefinitionInfoToJSON(value) {
1864
2024
  "id": value.id,
1865
2025
  "name": value.name,
1866
2026
  "displayName": value.displayName,
1867
- "type": value.type,
2027
+ "sourceType": value.sourceType,
1868
2028
  "description": value.description,
1869
2029
  "status": value.status,
1870
2030
  "latestVersion": value.latestVersion,
@@ -1875,9 +2035,10 @@ function DataQueryDefinitionInfoToJSON(value) {
1875
2035
 
1876
2036
  // src/generated/models/DefinitionVersionInfo.ts
1877
2037
  var DefinitionVersionInfoStatusEnum = {
1878
- ACTIVE: "active",
2038
+ DRAFT: "draft",
2039
+ STABLE: "stable",
1879
2040
  DEPRECATED: "deprecated",
1880
- DISABLED: "disabled"
2041
+ BLOCKED: "blocked"
1881
2042
  };
1882
2043
  function instanceOfDefinitionVersionInfo(value) {
1883
2044
  let isInstance = true;
@@ -1922,6 +2083,92 @@ function DefinitionVersionInfoToJSON(value) {
1922
2083
  };
1923
2084
  }
1924
2085
 
2086
+ // src/generated/models/DeletePage200Response.ts
2087
+ function instanceOfDeletePage200Response(value) {
2088
+ let isInstance = true;
2089
+ return isInstance;
2090
+ }
2091
+ function DeletePage200ResponseFromJSON(json) {
2092
+ return DeletePage200ResponseFromJSONTyped(json, false);
2093
+ }
2094
+ function DeletePage200ResponseFromJSONTyped(json, ignoreDiscriminator) {
2095
+ if (json === void 0 || json === null) {
2096
+ return json;
2097
+ }
2098
+ return {
2099
+ "success": !exists(json, "success") ? void 0 : json["success"],
2100
+ "message": !exists(json, "message") ? void 0 : json["message"]
2101
+ };
2102
+ }
2103
+ function DeletePage200ResponseToJSON(value) {
2104
+ if (value === void 0) {
2105
+ return void 0;
2106
+ }
2107
+ if (value === null) {
2108
+ return null;
2109
+ }
2110
+ return {
2111
+ "success": value.success,
2112
+ "message": value.message
2113
+ };
2114
+ }
2115
+
2116
+ // src/generated/models/DeletePageRequest.ts
2117
+ function instanceOfDeletePageRequest(value) {
2118
+ let isInstance = true;
2119
+ return isInstance;
2120
+ }
2121
+ function DeletePageRequestFromJSON(json) {
2122
+ return DeletePageRequestFromJSONTyped(json, false);
2123
+ }
2124
+ function DeletePageRequestFromJSONTyped(json, ignoreDiscriminator) {
2125
+ if (json === void 0 || json === null) {
2126
+ return json;
2127
+ }
2128
+ return {
2129
+ "reason": !exists(json, "reason") ? void 0 : json["reason"]
2130
+ };
2131
+ }
2132
+ function DeletePageRequestToJSON(value) {
2133
+ if (value === void 0) {
2134
+ return void 0;
2135
+ }
2136
+ if (value === null) {
2137
+ return null;
2138
+ }
2139
+ return {
2140
+ "reason": value.reason
2141
+ };
2142
+ }
2143
+
2144
+ // src/generated/models/DiscardDraftRequest.ts
2145
+ function instanceOfDiscardDraftRequest(value) {
2146
+ let isInstance = true;
2147
+ return isInstance;
2148
+ }
2149
+ function DiscardDraftRequestFromJSON(json) {
2150
+ return DiscardDraftRequestFromJSONTyped(json, false);
2151
+ }
2152
+ function DiscardDraftRequestFromJSONTyped(json, ignoreDiscriminator) {
2153
+ if (json === void 0 || json === null) {
2154
+ return json;
2155
+ }
2156
+ return {
2157
+ "reason": !exists(json, "reason") ? void 0 : json["reason"]
2158
+ };
2159
+ }
2160
+ function DiscardDraftRequestToJSON(value) {
2161
+ if (value === void 0) {
2162
+ return void 0;
2163
+ }
2164
+ if (value === null) {
2165
+ return null;
2166
+ }
2167
+ return {
2168
+ "reason": value.reason
2169
+ };
2170
+ }
2171
+
1925
2172
  // src/generated/models/GetDraft200ResponseDataLockInfo.ts
1926
2173
  function instanceOfGetDraft200ResponseDataLockInfo(value) {
1927
2174
  let isInstance = true;
@@ -2164,22 +2411,29 @@ function ErrorResponseToJSON(value) {
2164
2411
  }
2165
2412
 
2166
2413
  // src/generated/models/GetActionDefinition200ResponseData.ts
2167
- var GetActionDefinition200ResponseDataTypeEnum = {
2168
- BUILTIN: "builtin",
2169
- CUSTOM: "custom",
2170
- HTTP: "http",
2171
- SCRIPT: "script"
2414
+ var GetActionDefinition200ResponseDataActionTypeEnum = {
2415
+ CLAIM: "claim",
2416
+ SIGNIN: "signin",
2417
+ LOTTERY: "lottery",
2418
+ RESERVE: "reserve",
2419
+ BIND: "bind",
2420
+ TASK_COMPLETE: "task_complete",
2421
+ VOTE: "vote",
2422
+ SHARE: "share",
2423
+ FORM_SUBMIT: "form_submit",
2424
+ CUSTOM: "custom"
2172
2425
  };
2173
2426
  var GetActionDefinition200ResponseDataStatusEnum = {
2174
- ACTIVE: "active",
2427
+ DRAFT: "draft",
2428
+ STABLE: "stable",
2175
2429
  DEPRECATED: "deprecated",
2176
- DISABLED: "disabled"
2430
+ BLOCKED: "blocked"
2177
2431
  };
2178
2432
  function instanceOfGetActionDefinition200ResponseData(value) {
2179
2433
  let isInstance = true;
2180
2434
  isInstance = isInstance && "id" in value;
2181
2435
  isInstance = isInstance && "name" in value;
2182
- isInstance = isInstance && "type" in value;
2436
+ isInstance = isInstance && "actionType" in value;
2183
2437
  isInstance = isInstance && "status" in value;
2184
2438
  isInstance = isInstance && "spec" in value;
2185
2439
  isInstance = isInstance && "createdAt" in value;
@@ -2196,7 +2450,7 @@ function GetActionDefinition200ResponseDataFromJSONTyped(json, ignoreDiscriminat
2196
2450
  "id": json["id"],
2197
2451
  "name": json["name"],
2198
2452
  "displayName": !exists(json, "displayName") ? void 0 : json["displayName"],
2199
- "type": json["type"],
2453
+ "actionType": json["actionType"],
2200
2454
  "description": !exists(json, "description") ? void 0 : json["description"],
2201
2455
  "status": json["status"],
2202
2456
  "spec": json["spec"],
@@ -2216,7 +2470,7 @@ function GetActionDefinition200ResponseDataToJSON(value) {
2216
2470
  "id": value.id,
2217
2471
  "name": value.name,
2218
2472
  "displayName": value.displayName,
2219
- "type": value.type,
2473
+ "actionType": value.actionType,
2220
2474
  "description": value.description,
2221
2475
  "status": value.status,
2222
2476
  "spec": value.spec,
@@ -2575,22 +2829,24 @@ function GetAuditStats200ResponseToJSON(value) {
2575
2829
  }
2576
2830
 
2577
2831
  // src/generated/models/GetDataQueryDefinition200ResponseData.ts
2578
- var GetDataQueryDefinition200ResponseDataTypeEnum = {
2832
+ var GetDataQueryDefinition200ResponseDataSourceTypeEnum = {
2579
2833
  HTTP: "http",
2580
2834
  GRAPHQL: "graphql",
2581
- SQL: "sql",
2582
- CUSTOM: "custom"
2835
+ DATABASE: "database",
2836
+ INTERNAL: "internal",
2837
+ AGGREGATION: "aggregation"
2583
2838
  };
2584
2839
  var GetDataQueryDefinition200ResponseDataStatusEnum = {
2585
- ACTIVE: "active",
2840
+ DRAFT: "draft",
2841
+ STABLE: "stable",
2586
2842
  DEPRECATED: "deprecated",
2587
- DISABLED: "disabled"
2843
+ BLOCKED: "blocked"
2588
2844
  };
2589
2845
  function instanceOfGetDataQueryDefinition200ResponseData(value) {
2590
2846
  let isInstance = true;
2591
2847
  isInstance = isInstance && "id" in value;
2592
2848
  isInstance = isInstance && "name" in value;
2593
- isInstance = isInstance && "type" in value;
2849
+ isInstance = isInstance && "sourceType" in value;
2594
2850
  isInstance = isInstance && "status" in value;
2595
2851
  isInstance = isInstance && "spec" in value;
2596
2852
  isInstance = isInstance && "createdAt" in value;
@@ -2607,7 +2863,7 @@ function GetDataQueryDefinition200ResponseDataFromJSONTyped(json, ignoreDiscrimi
2607
2863
  "id": json["id"],
2608
2864
  "name": json["name"],
2609
2865
  "displayName": !exists(json, "displayName") ? void 0 : json["displayName"],
2610
- "type": json["type"],
2866
+ "sourceType": json["sourceType"],
2611
2867
  "description": !exists(json, "description") ? void 0 : json["description"],
2612
2868
  "status": json["status"],
2613
2869
  "spec": json["spec"],
@@ -2627,7 +2883,7 @@ function GetDataQueryDefinition200ResponseDataToJSON(value) {
2627
2883
  "id": value.id,
2628
2884
  "name": value.name,
2629
2885
  "displayName": value.displayName,
2630
- "type": value.type,
2886
+ "sourceType": value.sourceType,
2631
2887
  "description": value.description,
2632
2888
  "status": value.status,
2633
2889
  "spec": value.spec,
@@ -2973,24 +3229,30 @@ function GetVersion200ResponseToJSON(value) {
2973
3229
  };
2974
3230
  }
2975
3231
 
2976
- // src/generated/models/KillSwitchStatusResponse.ts
2977
- function instanceOfKillSwitchStatusResponse(value) {
3232
+ // src/generated/models/HealthCheck200ResponseDependenciesValue.ts
3233
+ var HealthCheck200ResponseDependenciesValueStatusEnum = {
3234
+ HEALTHY: "healthy",
3235
+ DEGRADED: "degraded",
3236
+ UNHEALTHY: "unhealthy"
3237
+ };
3238
+ function instanceOfHealthCheck200ResponseDependenciesValue(value) {
2978
3239
  let isInstance = true;
2979
- isInstance = isInstance && "data" in value;
2980
3240
  return isInstance;
2981
3241
  }
2982
- function KillSwitchStatusResponseFromJSON(json) {
2983
- return KillSwitchStatusResponseFromJSONTyped(json, false);
3242
+ function HealthCheck200ResponseDependenciesValueFromJSON(json) {
3243
+ return HealthCheck200ResponseDependenciesValueFromJSONTyped(json, false);
2984
3244
  }
2985
- function KillSwitchStatusResponseFromJSONTyped(json, ignoreDiscriminator) {
3245
+ function HealthCheck200ResponseDependenciesValueFromJSONTyped(json, ignoreDiscriminator) {
2986
3246
  if (json === void 0 || json === null) {
2987
3247
  return json;
2988
3248
  }
2989
3249
  return {
2990
- "data": GetKillSwitchStatus200ResponseDataFromJSON(json["data"])
3250
+ "status": !exists(json, "status") ? void 0 : json["status"],
3251
+ "latency": !exists(json, "latency") ? void 0 : json["latency"],
3252
+ "message": !exists(json, "message") ? void 0 : json["message"]
2991
3253
  };
2992
3254
  }
2993
- function KillSwitchStatusResponseToJSON(value) {
3255
+ function HealthCheck200ResponseDependenciesValueToJSON(value) {
2994
3256
  if (value === void 0) {
2995
3257
  return void 0;
2996
3258
  }
@@ -2998,29 +3260,40 @@ function KillSwitchStatusResponseToJSON(value) {
2998
3260
  return null;
2999
3261
  }
3000
3262
  return {
3001
- "data": GetKillSwitchStatus200ResponseDataToJSON(value.data)
3263
+ "status": value.status,
3264
+ "latency": value.latency,
3265
+ "message": value.message
3002
3266
  };
3003
3267
  }
3004
3268
 
3005
- // src/generated/models/ListActionDefinitionVersions200Response.ts
3006
- function instanceOfListActionDefinitionVersions200Response(value) {
3269
+ // src/generated/models/HealthCheck200Response.ts
3270
+ var HealthCheck200ResponseStatusEnum = {
3271
+ HEALTHY: "healthy",
3272
+ DEGRADED: "degraded",
3273
+ UNHEALTHY: "unhealthy"
3274
+ };
3275
+ function instanceOfHealthCheck200Response(value) {
3007
3276
  let isInstance = true;
3277
+ isInstance = isInstance && "status" in value;
3278
+ isInstance = isInstance && "version" in value;
3008
3279
  return isInstance;
3009
3280
  }
3010
- function ListActionDefinitionVersions200ResponseFromJSON(json) {
3011
- return ListActionDefinitionVersions200ResponseFromJSONTyped(json, false);
3281
+ function HealthCheck200ResponseFromJSON(json) {
3282
+ return HealthCheck200ResponseFromJSONTyped(json, false);
3012
3283
  }
3013
- function ListActionDefinitionVersions200ResponseFromJSONTyped(json, ignoreDiscriminator) {
3284
+ function HealthCheck200ResponseFromJSONTyped(json, ignoreDiscriminator) {
3014
3285
  if (json === void 0 || json === null) {
3015
3286
  return json;
3016
3287
  }
3017
3288
  return {
3018
- "success": !exists(json, "success") ? void 0 : json["success"],
3019
- "data": !exists(json, "data") ? void 0 : json["data"].map(GetActionDefinition200ResponseDataVersionsInnerFromJSON),
3020
- "meta": !exists(json, "meta") ? void 0 : ListPages200ResponseMetaFromJSON(json["meta"])
3289
+ "status": json["status"],
3290
+ "version": json["version"],
3291
+ "uptime": !exists(json, "uptime") ? void 0 : json["uptime"],
3292
+ "timestamp": !exists(json, "timestamp") ? void 0 : new Date(json["timestamp"]),
3293
+ "dependencies": !exists(json, "dependencies") ? void 0 : mapValues(json["dependencies"], HealthCheck200ResponseDependenciesValueFromJSON)
3021
3294
  };
3022
3295
  }
3023
- function ListActionDefinitionVersions200ResponseToJSON(value) {
3296
+ function HealthCheck200ResponseToJSON(value) {
3024
3297
  if (value === void 0) {
3025
3298
  return void 0;
3026
3299
  }
@@ -3028,14 +3301,120 @@ function ListActionDefinitionVersions200ResponseToJSON(value) {
3028
3301
  return null;
3029
3302
  }
3030
3303
  return {
3031
- "success": value.success,
3032
- "data": value.data === void 0 ? void 0 : value.data.map(GetActionDefinition200ResponseDataVersionsInnerToJSON),
3033
- "meta": ListPages200ResponseMetaToJSON(value.meta)
3304
+ "status": value.status,
3305
+ "version": value.version,
3306
+ "uptime": value.uptime,
3307
+ "timestamp": value.timestamp === void 0 ? void 0 : value.timestamp.toISOString(),
3308
+ "dependencies": value.dependencies === void 0 ? void 0 : mapValues(value.dependencies, HealthCheck200ResponseDependenciesValueToJSON)
3034
3309
  };
3035
3310
  }
3036
3311
 
3037
- // src/generated/models/ListActionDefinitions200Response.ts
3038
- function instanceOfListActionDefinitions200Response(value) {
3312
+ // src/generated/models/HealthResponse.ts
3313
+ var HealthResponseStatusEnum = {
3314
+ HEALTHY: "healthy",
3315
+ DEGRADED: "degraded",
3316
+ UNHEALTHY: "unhealthy"
3317
+ };
3318
+ function instanceOfHealthResponse(value) {
3319
+ let isInstance = true;
3320
+ isInstance = isInstance && "status" in value;
3321
+ isInstance = isInstance && "version" in value;
3322
+ return isInstance;
3323
+ }
3324
+ function HealthResponseFromJSON(json) {
3325
+ return HealthResponseFromJSONTyped(json, false);
3326
+ }
3327
+ function HealthResponseFromJSONTyped(json, ignoreDiscriminator) {
3328
+ if (json === void 0 || json === null) {
3329
+ return json;
3330
+ }
3331
+ return {
3332
+ "status": json["status"],
3333
+ "version": json["version"],
3334
+ "uptime": !exists(json, "uptime") ? void 0 : json["uptime"],
3335
+ "timestamp": !exists(json, "timestamp") ? void 0 : new Date(json["timestamp"]),
3336
+ "dependencies": !exists(json, "dependencies") ? void 0 : mapValues(json["dependencies"], HealthCheck200ResponseDependenciesValueFromJSON)
3337
+ };
3338
+ }
3339
+ function HealthResponseToJSON(value) {
3340
+ if (value === void 0) {
3341
+ return void 0;
3342
+ }
3343
+ if (value === null) {
3344
+ return null;
3345
+ }
3346
+ return {
3347
+ "status": value.status,
3348
+ "version": value.version,
3349
+ "uptime": value.uptime,
3350
+ "timestamp": value.timestamp === void 0 ? void 0 : value.timestamp.toISOString(),
3351
+ "dependencies": value.dependencies === void 0 ? void 0 : mapValues(value.dependencies, HealthCheck200ResponseDependenciesValueToJSON)
3352
+ };
3353
+ }
3354
+
3355
+ // src/generated/models/KillSwitchStatusResponse.ts
3356
+ function instanceOfKillSwitchStatusResponse(value) {
3357
+ let isInstance = true;
3358
+ isInstance = isInstance && "data" in value;
3359
+ return isInstance;
3360
+ }
3361
+ function KillSwitchStatusResponseFromJSON(json) {
3362
+ return KillSwitchStatusResponseFromJSONTyped(json, false);
3363
+ }
3364
+ function KillSwitchStatusResponseFromJSONTyped(json, ignoreDiscriminator) {
3365
+ if (json === void 0 || json === null) {
3366
+ return json;
3367
+ }
3368
+ return {
3369
+ "data": GetKillSwitchStatus200ResponseDataFromJSON(json["data"])
3370
+ };
3371
+ }
3372
+ function KillSwitchStatusResponseToJSON(value) {
3373
+ if (value === void 0) {
3374
+ return void 0;
3375
+ }
3376
+ if (value === null) {
3377
+ return null;
3378
+ }
3379
+ return {
3380
+ "data": GetKillSwitchStatus200ResponseDataToJSON(value.data)
3381
+ };
3382
+ }
3383
+
3384
+ // src/generated/models/ListActionDefinitionVersions200Response.ts
3385
+ function instanceOfListActionDefinitionVersions200Response(value) {
3386
+ let isInstance = true;
3387
+ return isInstance;
3388
+ }
3389
+ function ListActionDefinitionVersions200ResponseFromJSON(json) {
3390
+ return ListActionDefinitionVersions200ResponseFromJSONTyped(json, false);
3391
+ }
3392
+ function ListActionDefinitionVersions200ResponseFromJSONTyped(json, ignoreDiscriminator) {
3393
+ if (json === void 0 || json === null) {
3394
+ return json;
3395
+ }
3396
+ return {
3397
+ "success": !exists(json, "success") ? void 0 : json["success"],
3398
+ "data": !exists(json, "data") ? void 0 : json["data"].map(GetActionDefinition200ResponseDataVersionsInnerFromJSON),
3399
+ "meta": !exists(json, "meta") ? void 0 : ListPages200ResponseMetaFromJSON(json["meta"])
3400
+ };
3401
+ }
3402
+ function ListActionDefinitionVersions200ResponseToJSON(value) {
3403
+ if (value === void 0) {
3404
+ return void 0;
3405
+ }
3406
+ if (value === null) {
3407
+ return null;
3408
+ }
3409
+ return {
3410
+ "success": value.success,
3411
+ "data": value.data === void 0 ? void 0 : value.data.map(GetActionDefinition200ResponseDataVersionsInnerToJSON),
3412
+ "meta": ListPages200ResponseMetaToJSON(value.meta)
3413
+ };
3414
+ }
3415
+
3416
+ // src/generated/models/ListActionDefinitions200Response.ts
3417
+ function instanceOfListActionDefinitions200Response(value) {
3039
3418
  let isInstance = true;
3040
3419
  return isInstance;
3041
3420
  }
@@ -3372,6 +3751,36 @@ function ListPages401ResponseToJSON(value) {
3372
3751
  };
3373
3752
  }
3374
3753
 
3754
+ // src/generated/models/ListPreviewTokens200Response.ts
3755
+ function instanceOfListPreviewTokens200Response(value) {
3756
+ let isInstance = true;
3757
+ return isInstance;
3758
+ }
3759
+ function ListPreviewTokens200ResponseFromJSON(json) {
3760
+ return ListPreviewTokens200ResponseFromJSONTyped(json, false);
3761
+ }
3762
+ function ListPreviewTokens200ResponseFromJSONTyped(json, ignoreDiscriminator) {
3763
+ if (json === void 0 || json === null) {
3764
+ return json;
3765
+ }
3766
+ return {
3767
+ "success": !exists(json, "success") ? void 0 : json["success"],
3768
+ "data": !exists(json, "data") ? void 0 : json["data"].map(CreatePreviewToken201ResponseDataFromJSON)
3769
+ };
3770
+ }
3771
+ function ListPreviewTokens200ResponseToJSON(value) {
3772
+ if (value === void 0) {
3773
+ return void 0;
3774
+ }
3775
+ if (value === null) {
3776
+ return null;
3777
+ }
3778
+ return {
3779
+ "success": value.success,
3780
+ "data": value.data === void 0 ? void 0 : value.data.map(CreatePreviewToken201ResponseDataToJSON)
3781
+ };
3782
+ }
3783
+
3375
3784
  // src/generated/models/ListVersions200ResponseDataInner.ts
3376
3785
  var ListVersions200ResponseDataInnerStatusEnum = {
3377
3786
  ACTIVE: "active",
@@ -3455,6 +3864,34 @@ function ListVersions200ResponseToJSON(value) {
3455
3864
  };
3456
3865
  }
3457
3866
 
3867
+ // src/generated/models/LivenessCheck200Response.ts
3868
+ function instanceOfLivenessCheck200Response(value) {
3869
+ let isInstance = true;
3870
+ return isInstance;
3871
+ }
3872
+ function LivenessCheck200ResponseFromJSON(json) {
3873
+ return LivenessCheck200ResponseFromJSONTyped(json, false);
3874
+ }
3875
+ function LivenessCheck200ResponseFromJSONTyped(json, ignoreDiscriminator) {
3876
+ if (json === void 0 || json === null) {
3877
+ return json;
3878
+ }
3879
+ return {
3880
+ "alive": !exists(json, "alive") ? void 0 : json["alive"]
3881
+ };
3882
+ }
3883
+ function LivenessCheck200ResponseToJSON(value) {
3884
+ if (value === void 0) {
3885
+ return void 0;
3886
+ }
3887
+ if (value === null) {
3888
+ return null;
3889
+ }
3890
+ return {
3891
+ "alive": value.alive
3892
+ };
3893
+ }
3894
+
3458
3895
  // src/generated/models/LockInfo.ts
3459
3896
  function instanceOfLockInfo(value) {
3460
3897
  let isInstance = true;
@@ -3671,6 +4108,58 @@ function PaginationMetaToJSON(value) {
3671
4108
  };
3672
4109
  }
3673
4110
 
4111
+ // src/generated/models/PreviewTokenInfo.ts
4112
+ var PreviewTokenInfoDeviceTypeEnum = {
4113
+ MOBILE: "mobile",
4114
+ TABLET: "tablet",
4115
+ DESKTOP: "desktop"
4116
+ };
4117
+ function instanceOfPreviewTokenInfo(value) {
4118
+ let isInstance = true;
4119
+ isInstance = isInstance && "token" in value;
4120
+ isInstance = isInstance && "pageId" in value;
4121
+ isInstance = isInstance && "expiresAt" in value;
4122
+ return isInstance;
4123
+ }
4124
+ function PreviewTokenInfoFromJSON(json) {
4125
+ return PreviewTokenInfoFromJSONTyped(json, false);
4126
+ }
4127
+ function PreviewTokenInfoFromJSONTyped(json, ignoreDiscriminator) {
4128
+ if (json === void 0 || json === null) {
4129
+ return json;
4130
+ }
4131
+ return {
4132
+ "token": json["token"],
4133
+ "pageId": json["pageId"],
4134
+ "draftVersion": !exists(json, "draftVersion") ? void 0 : json["draftVersion"],
4135
+ "previewUrl": !exists(json, "previewUrl") ? void 0 : json["previewUrl"],
4136
+ "deviceType": !exists(json, "deviceType") ? void 0 : json["deviceType"],
4137
+ "context": !exists(json, "context") ? void 0 : json["context"],
4138
+ "createdAt": !exists(json, "createdAt") ? void 0 : new Date(json["createdAt"]),
4139
+ "expiresAt": new Date(json["expiresAt"]),
4140
+ "createdBy": !exists(json, "createdBy") ? void 0 : json["createdBy"]
4141
+ };
4142
+ }
4143
+ function PreviewTokenInfoToJSON(value) {
4144
+ if (value === void 0) {
4145
+ return void 0;
4146
+ }
4147
+ if (value === null) {
4148
+ return null;
4149
+ }
4150
+ return {
4151
+ "token": value.token,
4152
+ "pageId": value.pageId,
4153
+ "draftVersion": value.draftVersion,
4154
+ "previewUrl": value.previewUrl,
4155
+ "deviceType": value.deviceType,
4156
+ "context": value.context,
4157
+ "createdAt": value.createdAt === void 0 ? void 0 : value.createdAt.toISOString(),
4158
+ "expiresAt": value.expiresAt.toISOString(),
4159
+ "createdBy": value.createdBy
4160
+ };
4161
+ }
4162
+
3674
4163
  // src/generated/models/PublishActionDefinitionVersion201Response.ts
3675
4164
  function instanceOfPublishActionDefinitionVersion201Response(value) {
3676
4165
  let isInstance = true;
@@ -3903,6 +4392,92 @@ function PublishVersionRequestToJSON(value) {
3903
4392
  };
3904
4393
  }
3905
4394
 
4395
+ // src/generated/models/ReadinessCheck200Response.ts
4396
+ function instanceOfReadinessCheck200Response(value) {
4397
+ let isInstance = true;
4398
+ return isInstance;
4399
+ }
4400
+ function ReadinessCheck200ResponseFromJSON(json) {
4401
+ return ReadinessCheck200ResponseFromJSONTyped(json, false);
4402
+ }
4403
+ function ReadinessCheck200ResponseFromJSONTyped(json, ignoreDiscriminator) {
4404
+ if (json === void 0 || json === null) {
4405
+ return json;
4406
+ }
4407
+ return {
4408
+ "ready": !exists(json, "ready") ? void 0 : json["ready"]
4409
+ };
4410
+ }
4411
+ function ReadinessCheck200ResponseToJSON(value) {
4412
+ if (value === void 0) {
4413
+ return void 0;
4414
+ }
4415
+ if (value === null) {
4416
+ return null;
4417
+ }
4418
+ return {
4419
+ "ready": value.ready
4420
+ };
4421
+ }
4422
+
4423
+ // src/generated/models/ReadinessCheck503Response.ts
4424
+ function instanceOfReadinessCheck503Response(value) {
4425
+ let isInstance = true;
4426
+ return isInstance;
4427
+ }
4428
+ function ReadinessCheck503ResponseFromJSON(json) {
4429
+ return ReadinessCheck503ResponseFromJSONTyped(json, false);
4430
+ }
4431
+ function ReadinessCheck503ResponseFromJSONTyped(json, ignoreDiscriminator) {
4432
+ if (json === void 0 || json === null) {
4433
+ return json;
4434
+ }
4435
+ return {
4436
+ "ready": !exists(json, "ready") ? void 0 : json["ready"],
4437
+ "reason": !exists(json, "reason") ? void 0 : json["reason"]
4438
+ };
4439
+ }
4440
+ function ReadinessCheck503ResponseToJSON(value) {
4441
+ if (value === void 0) {
4442
+ return void 0;
4443
+ }
4444
+ if (value === null) {
4445
+ return null;
4446
+ }
4447
+ return {
4448
+ "ready": value.ready,
4449
+ "reason": value.reason
4450
+ };
4451
+ }
4452
+
4453
+ // src/generated/models/RevokePreviewTokenRequest.ts
4454
+ function instanceOfRevokePreviewTokenRequest(value) {
4455
+ let isInstance = true;
4456
+ return isInstance;
4457
+ }
4458
+ function RevokePreviewTokenRequestFromJSON(json) {
4459
+ return RevokePreviewTokenRequestFromJSONTyped(json, false);
4460
+ }
4461
+ function RevokePreviewTokenRequestFromJSONTyped(json, ignoreDiscriminator) {
4462
+ if (json === void 0 || json === null) {
4463
+ return json;
4464
+ }
4465
+ return {
4466
+ "reason": !exists(json, "reason") ? void 0 : json["reason"]
4467
+ };
4468
+ }
4469
+ function RevokePreviewTokenRequestToJSON(value) {
4470
+ if (value === void 0) {
4471
+ return void 0;
4472
+ }
4473
+ if (value === null) {
4474
+ return null;
4475
+ }
4476
+ return {
4477
+ "reason": value.reason
4478
+ };
4479
+ }
4480
+
3906
4481
  // src/generated/models/RollbackRequest.ts
3907
4482
  function instanceOfRollbackRequest(value) {
3908
4483
  let isInstance = true;
@@ -4148,9 +4723,10 @@ function SetKillSwitchRequestToJSON(value) {
4148
4723
 
4149
4724
  // src/generated/models/UpdateActionDefinitionRequest.ts
4150
4725
  var UpdateActionDefinitionRequestStatusEnum = {
4151
- ACTIVE: "active",
4726
+ DRAFT: "draft",
4727
+ STABLE: "stable",
4152
4728
  DEPRECATED: "deprecated",
4153
- DISABLED: "disabled"
4729
+ BLOCKED: "blocked"
4154
4730
  };
4155
4731
  function instanceOfUpdateActionDefinitionRequest(value) {
4156
4732
  let isInstance = true;
@@ -4362,6 +4938,46 @@ function UpdateComponentVersionStatusRequestToJSON(value) {
4362
4938
  };
4363
4939
  }
4364
4940
 
4941
+ // src/generated/models/UpdateDataQueryDefinitionRequest.ts
4942
+ var UpdateDataQueryDefinitionRequestStatusEnum = {
4943
+ DRAFT: "draft",
4944
+ STABLE: "stable",
4945
+ DEPRECATED: "deprecated",
4946
+ BLOCKED: "blocked"
4947
+ };
4948
+ function instanceOfUpdateDataQueryDefinitionRequest(value) {
4949
+ let isInstance = true;
4950
+ return isInstance;
4951
+ }
4952
+ function UpdateDataQueryDefinitionRequestFromJSON(json) {
4953
+ return UpdateDataQueryDefinitionRequestFromJSONTyped(json, false);
4954
+ }
4955
+ function UpdateDataQueryDefinitionRequestFromJSONTyped(json, ignoreDiscriminator) {
4956
+ if (json === void 0 || json === null) {
4957
+ return json;
4958
+ }
4959
+ return {
4960
+ "displayName": !exists(json, "displayName") ? void 0 : json["displayName"],
4961
+ "description": !exists(json, "description") ? void 0 : json["description"],
4962
+ "spec": !exists(json, "spec") ? void 0 : json["spec"],
4963
+ "status": !exists(json, "status") ? void 0 : json["status"]
4964
+ };
4965
+ }
4966
+ function UpdateDataQueryDefinitionRequestToJSON(value) {
4967
+ if (value === void 0) {
4968
+ return void 0;
4969
+ }
4970
+ if (value === null) {
4971
+ return null;
4972
+ }
4973
+ return {
4974
+ "displayName": value.displayName,
4975
+ "description": value.description,
4976
+ "spec": value.spec,
4977
+ "status": value.status
4978
+ };
4979
+ }
4980
+
4365
4981
  // src/generated/models/UpdatePageRequest.ts
4366
4982
  function instanceOfUpdatePageRequest(value) {
4367
4983
  let isInstance = true;
@@ -4648,6 +5264,7 @@ var ActivitiesApi = class extends BaseAPI {
4648
5264
  }
4649
5265
  const queryParameters = {};
4650
5266
  const headerParameters = {};
5267
+ headerParameters["Content-Type"] = "application/json";
4651
5268
  if (this.configuration && this.configuration.accessToken) {
4652
5269
  const token = this.configuration.accessToken;
4653
5270
  const tokenString = await token("BearerAuth", []);
@@ -4656,18 +5273,20 @@ var ActivitiesApi = class extends BaseAPI {
4656
5273
  }
4657
5274
  }
4658
5275
  const response = await this.request({
4659
- path: `/activities/{activityId}`.replace(`{${"activityId"}}`, encodeURIComponent(String(requestParameters.activityId))),
4660
- method: "DELETE",
5276
+ path: `/activities/{activityId}/delete`.replace(`{${"activityId"}}`, encodeURIComponent(String(requestParameters.activityId))),
5277
+ method: "POST",
4661
5278
  headers: headerParameters,
4662
- query: queryParameters
5279
+ query: queryParameters,
5280
+ body: DeletePageRequestToJSON(requestParameters.deletePageRequest)
4663
5281
  }, initOverrides);
4664
- return new VoidApiResponse(response);
5282
+ return new JSONApiResponse(response, (jsonValue) => DeletePage200ResponseFromJSON(jsonValue));
4665
5283
  }
4666
5284
  /**
4667
5285
  * 删除活动
4668
5286
  */
4669
5287
  async deleteActivity(requestParameters, initOverrides) {
4670
- await this.deleteActivityRaw(requestParameters, initOverrides);
5288
+ const response = await this.deleteActivityRaw(requestParameters, initOverrides);
5289
+ return await response.value();
4671
5290
  }
4672
5291
  /**
4673
5292
  * 获取活动详情
@@ -4798,8 +5417,8 @@ var ActivitiesApi = class extends BaseAPI {
4798
5417
  }
4799
5418
  }
4800
5419
  const response = await this.request({
4801
- path: `/activities/{activityId}`.replace(`{${"activityId"}}`, encodeURIComponent(String(requestParameters.activityId))),
4802
- method: "PUT",
5420
+ path: `/activities/{activityId}/update`.replace(`{${"activityId"}}`, encodeURIComponent(String(requestParameters.activityId))),
5421
+ method: "POST",
4803
5422
  headers: headerParameters,
4804
5423
  query: queryParameters,
4805
5424
  body: UpdateActivityRequestToJSON(requestParameters.updateActivityRequest)
@@ -4834,8 +5453,8 @@ var ActivitiesApi = class extends BaseAPI {
4834
5453
  }
4835
5454
  }
4836
5455
  const response = await this.request({
4837
- path: `/activities/{activityId}/status`.replace(`{${"activityId"}}`, encodeURIComponent(String(requestParameters.activityId))),
4838
- method: "PUT",
5456
+ path: `/activities/{activityId}/status/update`.replace(`{${"activityId"}}`, encodeURIComponent(String(requestParameters.activityId))),
5457
+ method: "POST",
4839
5458
  headers: headerParameters,
4840
5459
  query: queryParameters,
4841
5460
  body: UpdateActivityStatusRequestToJSON(requestParameters.updateActivityStatusRequest)
@@ -5095,8 +5714,8 @@ var ComponentsApi = class extends BaseAPI {
5095
5714
  }
5096
5715
  }
5097
5716
  const response = await this.request({
5098
- path: `/components/{componentId}/versions/{versionId}/status`.replace(`{${"componentId"}}`, encodeURIComponent(String(requestParameters.componentId))).replace(`{${"versionId"}}`, encodeURIComponent(String(requestParameters.versionId))),
5099
- method: "PUT",
5717
+ path: `/components/{componentId}/versions/{versionId}/status/update`.replace(`{${"componentId"}}`, encodeURIComponent(String(requestParameters.componentId))).replace(`{${"versionId"}}`, encodeURIComponent(String(requestParameters.versionId))),
5718
+ method: "POST",
5100
5719
  headers: headerParameters,
5101
5720
  query: queryParameters,
5102
5721
  body: UpdateComponentVersionStatusRequestToJSON(requestParameters.updateComponentVersionStatusRequest)
@@ -5181,6 +5800,70 @@ var DefinitionsApi = class extends BaseAPI {
5181
5800
  const response = await this.createDataQueryDefinitionRaw(requestParameters, initOverrides);
5182
5801
  return await response.value();
5183
5802
  }
5803
+ /**
5804
+ * 删除 ActionDefinition(仅 draft 状态可删除)
5805
+ * 删除 ActionDefinition
5806
+ */
5807
+ async deleteActionDefinitionRaw(requestParameters, initOverrides) {
5808
+ if (requestParameters.definitionId === null || requestParameters.definitionId === void 0) {
5809
+ throw new RequiredError("definitionId", "Required parameter requestParameters.definitionId was null or undefined when calling deleteActionDefinition.");
5810
+ }
5811
+ const queryParameters = {};
5812
+ const headerParameters = {};
5813
+ if (this.configuration && this.configuration.accessToken) {
5814
+ const token = this.configuration.accessToken;
5815
+ const tokenString = await token("BearerAuth", []);
5816
+ if (tokenString) {
5817
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5818
+ }
5819
+ }
5820
+ const response = await this.request({
5821
+ path: `/definitions/actions/{definitionId}/delete`.replace(`{${"definitionId"}}`, encodeURIComponent(String(requestParameters.definitionId))),
5822
+ method: "POST",
5823
+ headers: headerParameters,
5824
+ query: queryParameters
5825
+ }, initOverrides);
5826
+ return new VoidApiResponse(response);
5827
+ }
5828
+ /**
5829
+ * 删除 ActionDefinition(仅 draft 状态可删除)
5830
+ * 删除 ActionDefinition
5831
+ */
5832
+ async deleteActionDefinition(requestParameters, initOverrides) {
5833
+ await this.deleteActionDefinitionRaw(requestParameters, initOverrides);
5834
+ }
5835
+ /**
5836
+ * 删除 DataQueryDefinition(仅 draft 状态可删除)
5837
+ * 删除 DataQueryDefinition
5838
+ */
5839
+ async deleteDataQueryDefinitionRaw(requestParameters, initOverrides) {
5840
+ if (requestParameters.definitionId === null || requestParameters.definitionId === void 0) {
5841
+ throw new RequiredError("definitionId", "Required parameter requestParameters.definitionId was null or undefined when calling deleteDataQueryDefinition.");
5842
+ }
5843
+ const queryParameters = {};
5844
+ const headerParameters = {};
5845
+ if (this.configuration && this.configuration.accessToken) {
5846
+ const token = this.configuration.accessToken;
5847
+ const tokenString = await token("BearerAuth", []);
5848
+ if (tokenString) {
5849
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5850
+ }
5851
+ }
5852
+ const response = await this.request({
5853
+ path: `/definitions/queries/{definitionId}/delete`.replace(`{${"definitionId"}}`, encodeURIComponent(String(requestParameters.definitionId))),
5854
+ method: "POST",
5855
+ headers: headerParameters,
5856
+ query: queryParameters
5857
+ }, initOverrides);
5858
+ return new VoidApiResponse(response);
5859
+ }
5860
+ /**
5861
+ * 删除 DataQueryDefinition(仅 draft 状态可删除)
5862
+ * 删除 DataQueryDefinition
5863
+ */
5864
+ async deleteDataQueryDefinition(requestParameters, initOverrides) {
5865
+ await this.deleteDataQueryDefinitionRaw(requestParameters, initOverrides);
5866
+ }
5184
5867
  /**
5185
5868
  * 获取 ActionDefinition 详情
5186
5869
  */
@@ -5257,6 +5940,9 @@ var DefinitionsApi = class extends BaseAPI {
5257
5940
  if (requestParameters.pageToken !== void 0) {
5258
5941
  queryParameters["pageToken"] = requestParameters.pageToken;
5259
5942
  }
5943
+ if (requestParameters.status !== void 0) {
5944
+ queryParameters["status"] = requestParameters.status;
5945
+ }
5260
5946
  const headerParameters = {};
5261
5947
  if (this.configuration && this.configuration.accessToken) {
5262
5948
  const token = this.configuration.accessToken;
@@ -5328,6 +6014,9 @@ var DefinitionsApi = class extends BaseAPI {
5328
6014
  throw new RequiredError("definitionId", "Required parameter requestParameters.definitionId was null or undefined when calling listDataQueryDefinitionVersions.");
5329
6015
  }
5330
6016
  const queryParameters = {};
6017
+ if (requestParameters.status !== void 0) {
6018
+ queryParameters["status"] = requestParameters.status;
6019
+ }
5331
6020
  const headerParameters = {};
5332
6021
  if (this.configuration && this.configuration.accessToken) {
5333
6022
  const token = this.configuration.accessToken;
@@ -5392,6 +6081,7 @@ var DefinitionsApi = class extends BaseAPI {
5392
6081
  return await response.value();
5393
6082
  }
5394
6083
  /**
6084
+ * 发布新版本,版本一旦发布即不可变。 状态机:draft → stable → deprecated → blocked
5395
6085
  * 发布 ActionDefinition 新版本
5396
6086
  */
5397
6087
  async publishActionDefinitionVersionRaw(requestParameters, initOverrides) {
@@ -5421,6 +6111,7 @@ var DefinitionsApi = class extends BaseAPI {
5421
6111
  return new JSONApiResponse(response, (jsonValue) => PublishActionDefinitionVersion201ResponseFromJSON(jsonValue));
5422
6112
  }
5423
6113
  /**
6114
+ * 发布新版本,版本一旦发布即不可变。 状态机:draft → stable → deprecated → blocked
5424
6115
  * 发布 ActionDefinition 新版本
5425
6116
  */
5426
6117
  async publishActionDefinitionVersion(requestParameters, initOverrides) {
@@ -5428,6 +6119,7 @@ var DefinitionsApi = class extends BaseAPI {
5428
6119
  return await response.value();
5429
6120
  }
5430
6121
  /**
6122
+ * 发布新版本,版本一旦发布即不可变。 状态机:draft → stable → deprecated → blocked
5431
6123
  * 发布 DataQueryDefinition 新版本
5432
6124
  */
5433
6125
  async publishDataQueryDefinitionVersionRaw(requestParameters, initOverrides) {
@@ -5457,6 +6149,7 @@ var DefinitionsApi = class extends BaseAPI {
5457
6149
  return new JSONApiResponse(response, (jsonValue) => PublishActionDefinitionVersion201ResponseFromJSON(jsonValue));
5458
6150
  }
5459
6151
  /**
6152
+ * 发布新版本,版本一旦发布即不可变。 状态机:draft → stable → deprecated → blocked
5460
6153
  * 发布 DataQueryDefinition 新版本
5461
6154
  */
5462
6155
  async publishDataQueryDefinitionVersion(requestParameters, initOverrides) {
@@ -5484,8 +6177,8 @@ var DefinitionsApi = class extends BaseAPI {
5484
6177
  }
5485
6178
  }
5486
6179
  const response = await this.request({
5487
- path: `/definitions/actions/{definitionId}`.replace(`{${"definitionId"}}`, encodeURIComponent(String(requestParameters.definitionId))),
5488
- method: "PUT",
6180
+ path: `/definitions/actions/{definitionId}/update`.replace(`{${"definitionId"}}`, encodeURIComponent(String(requestParameters.definitionId))),
6181
+ method: "POST",
5489
6182
  headers: headerParameters,
5490
6183
  query: queryParameters,
5491
6184
  body: UpdateActionDefinitionRequestToJSON(requestParameters.updateActionDefinitionRequest)
@@ -5499,6 +6192,42 @@ var DefinitionsApi = class extends BaseAPI {
5499
6192
  const response = await this.updateActionDefinitionRaw(requestParameters, initOverrides);
5500
6193
  return await response.value();
5501
6194
  }
6195
+ /**
6196
+ * 更新 DataQueryDefinition
6197
+ */
6198
+ async updateDataQueryDefinitionRaw(requestParameters, initOverrides) {
6199
+ if (requestParameters.definitionId === null || requestParameters.definitionId === void 0) {
6200
+ throw new RequiredError("definitionId", "Required parameter requestParameters.definitionId was null or undefined when calling updateDataQueryDefinition.");
6201
+ }
6202
+ if (requestParameters.updateDataQueryDefinitionRequest === null || requestParameters.updateDataQueryDefinitionRequest === void 0) {
6203
+ throw new RequiredError("updateDataQueryDefinitionRequest", "Required parameter requestParameters.updateDataQueryDefinitionRequest was null or undefined when calling updateDataQueryDefinition.");
6204
+ }
6205
+ const queryParameters = {};
6206
+ const headerParameters = {};
6207
+ headerParameters["Content-Type"] = "application/json";
6208
+ if (this.configuration && this.configuration.accessToken) {
6209
+ const token = this.configuration.accessToken;
6210
+ const tokenString = await token("BearerAuth", []);
6211
+ if (tokenString) {
6212
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
6213
+ }
6214
+ }
6215
+ const response = await this.request({
6216
+ path: `/definitions/queries/{definitionId}/update`.replace(`{${"definitionId"}}`, encodeURIComponent(String(requestParameters.definitionId))),
6217
+ method: "POST",
6218
+ headers: headerParameters,
6219
+ query: queryParameters,
6220
+ body: UpdateDataQueryDefinitionRequestToJSON(requestParameters.updateDataQueryDefinitionRequest)
6221
+ }, initOverrides);
6222
+ return new JSONApiResponse(response, (jsonValue) => CreateDataQueryDefinition201ResponseFromJSON(jsonValue));
6223
+ }
6224
+ /**
6225
+ * 更新 DataQueryDefinition
6226
+ */
6227
+ async updateDataQueryDefinition(requestParameters, initOverrides) {
6228
+ const response = await this.updateDataQueryDefinitionRaw(requestParameters, initOverrides);
6229
+ return await response.value();
6230
+ }
5502
6231
  };
5503
6232
 
5504
6233
  // src/generated/apis/DraftsApi.ts
@@ -5513,6 +6242,7 @@ var DraftsApi = class extends BaseAPI {
5513
6242
  }
5514
6243
  const queryParameters = {};
5515
6244
  const headerParameters = {};
6245
+ headerParameters["Content-Type"] = "application/json";
5516
6246
  if (this.configuration && this.configuration.accessToken) {
5517
6247
  const token = this.configuration.accessToken;
5518
6248
  const tokenString = await token("BearerAuth", []);
@@ -5521,19 +6251,21 @@ var DraftsApi = class extends BaseAPI {
5521
6251
  }
5522
6252
  }
5523
6253
  const response = await this.request({
5524
- path: `/pages/{pageId}/draft`.replace(`{${"pageId"}}`, encodeURIComponent(String(requestParameters.pageId))),
5525
- method: "DELETE",
6254
+ path: `/pages/{pageId}/draft/discard`.replace(`{${"pageId"}}`, encodeURIComponent(String(requestParameters.pageId))),
6255
+ method: "POST",
5526
6256
  headers: headerParameters,
5527
- query: queryParameters
6257
+ query: queryParameters,
6258
+ body: DiscardDraftRequestToJSON(requestParameters.discardDraftRequest)
5528
6259
  }, initOverrides);
5529
- return new VoidApiResponse(response);
6260
+ return new JSONApiResponse(response, (jsonValue) => DeletePage200ResponseFromJSON(jsonValue));
5530
6261
  }
5531
6262
  /**
5532
6263
  * 丢弃当前草稿,恢复到最后发布的版本
5533
6264
  * 丢弃草稿
5534
6265
  */
5535
6266
  async discardDraft(requestParameters, initOverrides) {
5536
- await this.discardDraftRaw(requestParameters, initOverrides);
6267
+ const response = await this.discardDraftRaw(requestParameters, initOverrides);
6268
+ return await response.value();
5537
6269
  }
5538
6270
  /**
5539
6271
  * 获取指定页面的当前草稿内容
@@ -5590,8 +6322,8 @@ var DraftsApi = class extends BaseAPI {
5590
6322
  }
5591
6323
  }
5592
6324
  const response = await this.request({
5593
- path: `/pages/{pageId}/draft`.replace(`{${"pageId"}}`, encodeURIComponent(String(requestParameters.pageId))),
5594
- method: "PUT",
6325
+ path: `/pages/{pageId}/draft/save`.replace(`{${"pageId"}}`, encodeURIComponent(String(requestParameters.pageId))),
6326
+ method: "POST",
5595
6327
  headers: headerParameters,
5596
6328
  query: queryParameters,
5597
6329
  body: SaveDraftRequestToJSON(requestParameters.saveDraftRequest)
@@ -5692,8 +6424,8 @@ var OperationsApi = class extends BaseAPI {
5692
6424
  }
5693
6425
  }
5694
6426
  const response = await this.request({
5695
- path: `/operations/kill-switch`,
5696
- method: "PUT",
6427
+ path: `/operations/kill-switch/set`,
6428
+ method: "POST",
5697
6429
  headers: headerParameters,
5698
6430
  query: queryParameters,
5699
6431
  body: SetGlobalKillSwitchRequestToJSON(requestParameters.setGlobalKillSwitchRequest)
@@ -5730,8 +6462,8 @@ var OperationsApi = class extends BaseAPI {
5730
6462
  }
5731
6463
  }
5732
6464
  const response = await this.request({
5733
- path: `/operations/kill-switch/{pageId}`.replace(`{${"pageId"}}`, encodeURIComponent(String(requestParameters.pageId))),
5734
- method: "PUT",
6465
+ path: `/operations/kill-switch/{pageId}/set`.replace(`{${"pageId"}}`, encodeURIComponent(String(requestParameters.pageId))),
6466
+ method: "POST",
5735
6467
  headers: headerParameters,
5736
6468
  query: queryParameters,
5737
6469
  body: SetGlobalKillSwitchRequestToJSON(requestParameters.setGlobalKillSwitchRequest)
@@ -5769,13 +6501,13 @@ var PagesApi = class extends BaseAPI {
5769
6501
  }
5770
6502
  }
5771
6503
  const response = await this.request({
5772
- path: `/pages`,
6504
+ path: `/pages/create`,
5773
6505
  method: "POST",
5774
6506
  headers: headerParameters,
5775
6507
  query: queryParameters,
5776
6508
  body: CreatePageRequestToJSON(requestParameters.createPageRequest)
5777
6509
  }, initOverrides);
5778
- return new JSONApiResponse(response, (jsonValue) => CreatePage201ResponseFromJSON(jsonValue));
6510
+ return new JSONApiResponse(response, (jsonValue) => CreatePage200ResponseFromJSON(jsonValue));
5779
6511
  }
5780
6512
  /**
5781
6513
  * 创建一个新的页面,返回页面 ID
@@ -5795,6 +6527,7 @@ var PagesApi = class extends BaseAPI {
5795
6527
  }
5796
6528
  const queryParameters = {};
5797
6529
  const headerParameters = {};
6530
+ headerParameters["Content-Type"] = "application/json";
5798
6531
  if (this.configuration && this.configuration.accessToken) {
5799
6532
  const token = this.configuration.accessToken;
5800
6533
  const tokenString = await token("BearerAuth", []);
@@ -5803,19 +6536,21 @@ var PagesApi = class extends BaseAPI {
5803
6536
  }
5804
6537
  }
5805
6538
  const response = await this.request({
5806
- path: `/pages/{pageId}`.replace(`{${"pageId"}}`, encodeURIComponent(String(requestParameters.pageId))),
5807
- method: "DELETE",
6539
+ path: `/pages/{pageId}/delete`.replace(`{${"pageId"}}`, encodeURIComponent(String(requestParameters.pageId))),
6540
+ method: "POST",
5808
6541
  headers: headerParameters,
5809
- query: queryParameters
6542
+ query: queryParameters,
6543
+ body: DeletePageRequestToJSON(requestParameters.deletePageRequest)
5810
6544
  }, initOverrides);
5811
- return new VoidApiResponse(response);
6545
+ return new JSONApiResponse(response, (jsonValue) => DeletePage200ResponseFromJSON(jsonValue));
5812
6546
  }
5813
6547
  /**
5814
6548
  * 软删除页面(可恢复)
5815
6549
  * 删除页面
5816
6550
  */
5817
6551
  async deletePage(requestParameters, initOverrides) {
5818
- await this.deletePageRaw(requestParameters, initOverrides);
6552
+ const response = await this.deletePageRaw(requestParameters, initOverrides);
6553
+ return await response.value();
5819
6554
  }
5820
6555
  /**
5821
6556
  * 获取指定页面的完整信息
@@ -5840,7 +6575,7 @@ var PagesApi = class extends BaseAPI {
5840
6575
  headers: headerParameters,
5841
6576
  query: queryParameters
5842
6577
  }, initOverrides);
5843
- return new JSONApiResponse(response, (jsonValue) => CreatePage201ResponseFromJSON(jsonValue));
6578
+ return new JSONApiResponse(response, (jsonValue) => CreatePage200ResponseFromJSON(jsonValue));
5844
6579
  }
5845
6580
  /**
5846
6581
  * 获取指定页面的完整信息
@@ -5914,13 +6649,13 @@ var PagesApi = class extends BaseAPI {
5914
6649
  }
5915
6650
  }
5916
6651
  const response = await this.request({
5917
- path: `/pages/{pageId}`.replace(`{${"pageId"}}`, encodeURIComponent(String(requestParameters.pageId))),
5918
- method: "PUT",
6652
+ path: `/pages/{pageId}/update`.replace(`{${"pageId"}}`, encodeURIComponent(String(requestParameters.pageId))),
6653
+ method: "POST",
5919
6654
  headers: headerParameters,
5920
6655
  query: queryParameters,
5921
6656
  body: UpdatePageRequestToJSON(requestParameters.updatePageRequest)
5922
6657
  }, initOverrides);
5923
- return new JSONApiResponse(response, (jsonValue) => CreatePage201ResponseFromJSON(jsonValue));
6658
+ return new JSONApiResponse(response, (jsonValue) => CreatePage200ResponseFromJSON(jsonValue));
5924
6659
  }
5925
6660
  /**
5926
6661
  * 更新页面的元数据(不包括页面内容)
@@ -5955,13 +6690,13 @@ var RolloutApi = class extends BaseAPI {
5955
6690
  }
5956
6691
  }
5957
6692
  const response = await this.request({
5958
- path: `/pages/{pageId}/rollout/strategies`.replace(`{${"pageId"}}`, encodeURIComponent(String(requestParameters.pageId))),
6693
+ path: `/pages/{pageId}/rollout/strategies/add`.replace(`{${"pageId"}}`, encodeURIComponent(String(requestParameters.pageId))),
5959
6694
  method: "POST",
5960
6695
  headers: headerParameters,
5961
6696
  query: queryParameters,
5962
6697
  body: AddRolloutStrategyRequestToJSON(requestParameters.addRolloutStrategyRequest)
5963
6698
  }, initOverrides);
5964
- return new JSONApiResponse(response, (jsonValue) => AddRolloutStrategy201ResponseFromJSON(jsonValue));
6699
+ return new JSONApiResponse(response, (jsonValue) => AddRolloutStrategy200ResponseFromJSON(jsonValue));
5965
6700
  }
5966
6701
  /**
5967
6702
  * 添加灰度策略
@@ -5971,11 +6706,11 @@ var RolloutApi = class extends BaseAPI {
5971
6706
  return await response.value();
5972
6707
  }
5973
6708
  /**
5974
- * 删除页面灰度配置(使用默认版本)
6709
+ * 获取页面灰度配置
5975
6710
  */
5976
- async deleteRolloutConfigRaw(requestParameters, initOverrides) {
6711
+ async getRolloutConfigRaw(requestParameters, initOverrides) {
5977
6712
  if (requestParameters.pageId === null || requestParameters.pageId === void 0) {
5978
- throw new RequiredError("pageId", "Required parameter requestParameters.pageId was null or undefined when calling deleteRolloutConfig.");
6713
+ throw new RequiredError("pageId", "Required parameter requestParameters.pageId was null or undefined when calling getRolloutConfig.");
5979
6714
  }
5980
6715
  const queryParameters = {};
5981
6716
  const headerParameters = {};
@@ -5988,30 +6723,30 @@ var RolloutApi = class extends BaseAPI {
5988
6723
  }
5989
6724
  const response = await this.request({
5990
6725
  path: `/pages/{pageId}/rollout`.replace(`{${"pageId"}}`, encodeURIComponent(String(requestParameters.pageId))),
5991
- method: "DELETE",
6726
+ method: "GET",
5992
6727
  headers: headerParameters,
5993
6728
  query: queryParameters
5994
6729
  }, initOverrides);
5995
- return new VoidApiResponse(response);
6730
+ return new JSONApiResponse(response, (jsonValue) => GetRolloutConfig200ResponseFromJSON(jsonValue));
5996
6731
  }
5997
6732
  /**
5998
- * 删除页面灰度配置(使用默认版本)
6733
+ * 获取页面灰度配置
5999
6734
  */
6000
- async deleteRolloutConfig(requestParameters, initOverrides) {
6001
- await this.deleteRolloutConfigRaw(requestParameters, initOverrides);
6735
+ async getRolloutConfig(requestParameters, initOverrides) {
6736
+ const response = await this.getRolloutConfigRaw(requestParameters, initOverrides);
6737
+ return await response.value();
6002
6738
  }
6003
6739
  /**
6004
- * 删除灰度策略
6740
+ * 删除页面灰度配置(使用默认版本)
6741
+ * 删除页面灰度配置
6005
6742
  */
6006
- async deleteRolloutStrategyRaw(requestParameters, initOverrides) {
6743
+ async removeRolloutConfigRaw(requestParameters, initOverrides) {
6007
6744
  if (requestParameters.pageId === null || requestParameters.pageId === void 0) {
6008
- throw new RequiredError("pageId", "Required parameter requestParameters.pageId was null or undefined when calling deleteRolloutStrategy.");
6009
- }
6010
- if (requestParameters.strategyId === null || requestParameters.strategyId === void 0) {
6011
- throw new RequiredError("strategyId", "Required parameter requestParameters.strategyId was null or undefined when calling deleteRolloutStrategy.");
6745
+ throw new RequiredError("pageId", "Required parameter requestParameters.pageId was null or undefined when calling removeRolloutConfig.");
6012
6746
  }
6013
6747
  const queryParameters = {};
6014
6748
  const headerParameters = {};
6749
+ headerParameters["Content-Type"] = "application/json";
6015
6750
  if (this.configuration && this.configuration.accessToken) {
6016
6751
  const token = this.configuration.accessToken;
6017
6752
  const tokenString = await token("BearerAuth", []);
@@ -6020,28 +6755,35 @@ var RolloutApi = class extends BaseAPI {
6020
6755
  }
6021
6756
  }
6022
6757
  const response = await this.request({
6023
- path: `/pages/{pageId}/rollout/strategies/{strategyId}`.replace(`{${"pageId"}}`, encodeURIComponent(String(requestParameters.pageId))).replace(`{${"strategyId"}}`, encodeURIComponent(String(requestParameters.strategyId))),
6024
- method: "DELETE",
6758
+ path: `/pages/{pageId}/rollout/remove`.replace(`{${"pageId"}}`, encodeURIComponent(String(requestParameters.pageId))),
6759
+ method: "POST",
6025
6760
  headers: headerParameters,
6026
- query: queryParameters
6761
+ query: queryParameters,
6762
+ body: DeletePageRequestToJSON(requestParameters.deletePageRequest)
6027
6763
  }, initOverrides);
6028
- return new VoidApiResponse(response);
6764
+ return new JSONApiResponse(response, (jsonValue) => DeletePage200ResponseFromJSON(jsonValue));
6029
6765
  }
6030
6766
  /**
6031
- * 删除灰度策略
6767
+ * 删除页面灰度配置(使用默认版本)
6768
+ * 删除页面灰度配置
6032
6769
  */
6033
- async deleteRolloutStrategy(requestParameters, initOverrides) {
6034
- await this.deleteRolloutStrategyRaw(requestParameters, initOverrides);
6770
+ async removeRolloutConfig(requestParameters, initOverrides) {
6771
+ const response = await this.removeRolloutConfigRaw(requestParameters, initOverrides);
6772
+ return await response.value();
6035
6773
  }
6036
6774
  /**
6037
- * 获取页面灰度配置
6775
+ * 删除灰度策略
6038
6776
  */
6039
- async getRolloutConfigRaw(requestParameters, initOverrides) {
6777
+ async removeRolloutStrategyRaw(requestParameters, initOverrides) {
6040
6778
  if (requestParameters.pageId === null || requestParameters.pageId === void 0) {
6041
- throw new RequiredError("pageId", "Required parameter requestParameters.pageId was null or undefined when calling getRolloutConfig.");
6779
+ throw new RequiredError("pageId", "Required parameter requestParameters.pageId was null or undefined when calling removeRolloutStrategy.");
6780
+ }
6781
+ if (requestParameters.strategyId === null || requestParameters.strategyId === void 0) {
6782
+ throw new RequiredError("strategyId", "Required parameter requestParameters.strategyId was null or undefined when calling removeRolloutStrategy.");
6042
6783
  }
6043
6784
  const queryParameters = {};
6044
6785
  const headerParameters = {};
6786
+ headerParameters["Content-Type"] = "application/json";
6045
6787
  if (this.configuration && this.configuration.accessToken) {
6046
6788
  const token = this.configuration.accessToken;
6047
6789
  const tokenString = await token("BearerAuth", []);
@@ -6050,18 +6792,19 @@ var RolloutApi = class extends BaseAPI {
6050
6792
  }
6051
6793
  }
6052
6794
  const response = await this.request({
6053
- path: `/pages/{pageId}/rollout`.replace(`{${"pageId"}}`, encodeURIComponent(String(requestParameters.pageId))),
6054
- method: "GET",
6795
+ path: `/pages/{pageId}/rollout/strategies/{strategyId}/remove`.replace(`{${"pageId"}}`, encodeURIComponent(String(requestParameters.pageId))).replace(`{${"strategyId"}}`, encodeURIComponent(String(requestParameters.strategyId))),
6796
+ method: "POST",
6055
6797
  headers: headerParameters,
6056
- query: queryParameters
6798
+ query: queryParameters,
6799
+ body: DeletePageRequestToJSON(requestParameters.deletePageRequest)
6057
6800
  }, initOverrides);
6058
- return new JSONApiResponse(response, (jsonValue) => GetRolloutConfig200ResponseFromJSON(jsonValue));
6801
+ return new JSONApiResponse(response, (jsonValue) => DeletePage200ResponseFromJSON(jsonValue));
6059
6802
  }
6060
6803
  /**
6061
- * 获取页面灰度配置
6804
+ * 删除灰度策略
6062
6805
  */
6063
- async getRolloutConfig(requestParameters, initOverrides) {
6064
- const response = await this.getRolloutConfigRaw(requestParameters, initOverrides);
6806
+ async removeRolloutStrategy(requestParameters, initOverrides) {
6807
+ const response = await this.removeRolloutStrategyRaw(requestParameters, initOverrides);
6065
6808
  return await response.value();
6066
6809
  }
6067
6810
  /**
@@ -6085,8 +6828,8 @@ var RolloutApi = class extends BaseAPI {
6085
6828
  }
6086
6829
  }
6087
6830
  const response = await this.request({
6088
- path: `/pages/{pageId}/rollout`.replace(`{${"pageId"}}`, encodeURIComponent(String(requestParameters.pageId))),
6089
- method: "PUT",
6831
+ path: `/pages/{pageId}/rollout/update`.replace(`{${"pageId"}}`, encodeURIComponent(String(requestParameters.pageId))),
6832
+ method: "POST",
6090
6833
  headers: headerParameters,
6091
6834
  query: queryParameters,
6092
6835
  body: UpdateRolloutConfigRequestToJSON(requestParameters.updateRolloutConfigRequest)
@@ -6124,13 +6867,13 @@ var RolloutApi = class extends BaseAPI {
6124
6867
  }
6125
6868
  }
6126
6869
  const response = await this.request({
6127
- path: `/pages/{pageId}/rollout/strategies/{strategyId}`.replace(`{${"pageId"}}`, encodeURIComponent(String(requestParameters.pageId))).replace(`{${"strategyId"}}`, encodeURIComponent(String(requestParameters.strategyId))),
6128
- method: "PUT",
6870
+ path: `/pages/{pageId}/rollout/strategies/{strategyId}/update`.replace(`{${"pageId"}}`, encodeURIComponent(String(requestParameters.pageId))).replace(`{${"strategyId"}}`, encodeURIComponent(String(requestParameters.strategyId))),
6871
+ method: "POST",
6129
6872
  headers: headerParameters,
6130
6873
  query: queryParameters,
6131
6874
  body: UpdateRolloutStrategyRequestToJSON(requestParameters.updateRolloutStrategyRequest)
6132
6875
  }, initOverrides);
6133
- return new JSONApiResponse(response, (jsonValue) => AddRolloutStrategy201ResponseFromJSON(jsonValue));
6876
+ return new JSONApiResponse(response, (jsonValue) => AddRolloutStrategy200ResponseFromJSON(jsonValue));
6134
6877
  }
6135
6878
  /**
6136
6879
  * 更新灰度策略
@@ -6503,16 +7246,16 @@ import {
6503
7246
  var VERSION = "2.0.0";
6504
7247
  export {
6505
7248
  AbortError,
7249
+ ActionDefinitionDetailActionTypeEnum,
6506
7250
  ActionDefinitionDetailFromJSON,
6507
7251
  ActionDefinitionDetailFromJSONTyped,
6508
7252
  ActionDefinitionDetailStatusEnum,
6509
7253
  ActionDefinitionDetailToJSON,
6510
- ActionDefinitionDetailTypeEnum,
7254
+ ActionDefinitionInfoActionTypeEnum,
6511
7255
  ActionDefinitionInfoFromJSON,
6512
7256
  ActionDefinitionInfoFromJSONTyped,
6513
7257
  ActionDefinitionInfoStatusEnum,
6514
7258
  ActionDefinitionInfoToJSON,
6515
- ActionDefinitionInfoTypeEnum,
6516
7259
  ActivitiesApi,
6517
7260
  ActivityDetailFromJSON,
6518
7261
  ActivityDetailFromJSONTyped,
@@ -6527,13 +7270,13 @@ export {
6527
7270
  ActivityStatsFromJSON,
6528
7271
  ActivityStatsFromJSONTyped,
6529
7272
  ActivityStatsToJSON,
6530
- AddRolloutStrategy201ResponseDataFromJSON,
6531
- AddRolloutStrategy201ResponseDataFromJSONTyped,
6532
- AddRolloutStrategy201ResponseDataToJSON,
6533
- AddRolloutStrategy201ResponseDataTypeEnum,
6534
- AddRolloutStrategy201ResponseFromJSON,
6535
- AddRolloutStrategy201ResponseFromJSONTyped,
6536
- AddRolloutStrategy201ResponseToJSON,
7273
+ AddRolloutStrategy200ResponseDataFromJSON,
7274
+ AddRolloutStrategy200ResponseDataFromJSONTyped,
7275
+ AddRolloutStrategy200ResponseDataToJSON,
7276
+ AddRolloutStrategy200ResponseDataTypeEnum,
7277
+ AddRolloutStrategy200ResponseFromJSON,
7278
+ AddRolloutStrategy200ResponseFromJSONTyped,
7279
+ AddRolloutStrategy200ResponseToJSON,
6537
7280
  AddRolloutStrategyRequestFromJSON,
6538
7281
  AddRolloutStrategyRequestFromJSONTyped,
6539
7282
  AddRolloutStrategyRequestToJSON,
@@ -6575,10 +7318,10 @@ export {
6575
7318
  CreateActionDefinition201ResponseFromJSON,
6576
7319
  CreateActionDefinition201ResponseFromJSONTyped,
6577
7320
  CreateActionDefinition201ResponseToJSON,
7321
+ CreateActionDefinitionRequestActionTypeEnum,
6578
7322
  CreateActionDefinitionRequestFromJSON,
6579
7323
  CreateActionDefinitionRequestFromJSONTyped,
6580
7324
  CreateActionDefinitionRequestToJSON,
6581
- CreateActionDefinitionRequestTypeEnum,
6582
7325
  CreateActivity201ResponseFromJSON,
6583
7326
  CreateActivity201ResponseFromJSONTyped,
6584
7327
  CreateActivity201ResponseToJSON,
@@ -6591,29 +7334,49 @@ export {
6591
7334
  CreateDataQueryDefinition201ResponseToJSON,
6592
7335
  CreateDataQueryDefinitionRequestFromJSON,
6593
7336
  CreateDataQueryDefinitionRequestFromJSONTyped,
7337
+ CreateDataQueryDefinitionRequestSourceTypeEnum,
6594
7338
  CreateDataQueryDefinitionRequestToJSON,
6595
- CreateDataQueryDefinitionRequestTypeEnum,
6596
- CreatePage201ResponseFromJSON,
6597
- CreatePage201ResponseFromJSONTyped,
6598
- CreatePage201ResponseToJSON,
7339
+ CreatePage200ResponseFromJSON,
7340
+ CreatePage200ResponseFromJSONTyped,
7341
+ CreatePage200ResponseToJSON,
6599
7342
  CreatePageRequestFromJSON,
6600
7343
  CreatePageRequestFromJSONTyped,
6601
7344
  CreatePageRequestToJSON,
7345
+ CreatePreviewToken201ResponseDataDeviceTypeEnum,
7346
+ CreatePreviewToken201ResponseDataFromJSON,
7347
+ CreatePreviewToken201ResponseDataFromJSONTyped,
7348
+ CreatePreviewToken201ResponseDataToJSON,
7349
+ CreatePreviewToken201ResponseFromJSON,
7350
+ CreatePreviewToken201ResponseFromJSONTyped,
7351
+ CreatePreviewToken201ResponseToJSON,
7352
+ CreatePreviewTokenRequestDeviceTypeEnum,
7353
+ CreatePreviewTokenRequestFromJSON,
7354
+ CreatePreviewTokenRequestFromJSONTyped,
7355
+ CreatePreviewTokenRequestToJSON,
6602
7356
  DataQueryDefinitionDetailFromJSON,
6603
7357
  DataQueryDefinitionDetailFromJSONTyped,
7358
+ DataQueryDefinitionDetailSourceTypeEnum,
6604
7359
  DataQueryDefinitionDetailStatusEnum,
6605
7360
  DataQueryDefinitionDetailToJSON,
6606
- DataQueryDefinitionDetailTypeEnum,
6607
7361
  DataQueryDefinitionInfoFromJSON,
6608
7362
  DataQueryDefinitionInfoFromJSONTyped,
7363
+ DataQueryDefinitionInfoSourceTypeEnum,
6609
7364
  DataQueryDefinitionInfoStatusEnum,
6610
7365
  DataQueryDefinitionInfoToJSON,
6611
- DataQueryDefinitionInfoTypeEnum,
6612
7366
  DefinitionVersionInfoFromJSON,
6613
7367
  DefinitionVersionInfoFromJSONTyped,
6614
7368
  DefinitionVersionInfoStatusEnum,
6615
7369
  DefinitionVersionInfoToJSON,
6616
7370
  DefinitionsApi,
7371
+ DeletePage200ResponseFromJSON,
7372
+ DeletePage200ResponseFromJSONTyped,
7373
+ DeletePage200ResponseToJSON,
7374
+ DeletePageRequestFromJSON,
7375
+ DeletePageRequestFromJSONTyped,
7376
+ DeletePageRequestToJSON,
7377
+ DiscardDraftRequestFromJSON,
7378
+ DiscardDraftRequestFromJSONTyped,
7379
+ DiscardDraftRequestToJSON,
6617
7380
  DraftDataFromJSON,
6618
7381
  DraftDataFromJSONTyped,
6619
7382
  DraftDataToJSON,
@@ -6628,11 +7391,11 @@ export {
6628
7391
  ErrorResponseFromJSONTyped,
6629
7392
  ErrorResponseToJSON,
6630
7393
  FetchError,
7394
+ GetActionDefinition200ResponseDataActionTypeEnum,
6631
7395
  GetActionDefinition200ResponseDataFromJSON,
6632
7396
  GetActionDefinition200ResponseDataFromJSONTyped,
6633
7397
  GetActionDefinition200ResponseDataStatusEnum,
6634
7398
  GetActionDefinition200ResponseDataToJSON,
6635
- GetActionDefinition200ResponseDataTypeEnum,
6636
7399
  GetActionDefinition200ResponseDataVersionsInnerFromJSON,
6637
7400
  GetActionDefinition200ResponseDataVersionsInnerFromJSONTyped,
6638
7401
  GetActionDefinition200ResponseDataVersionsInnerStatusEnum,
@@ -6672,9 +7435,9 @@ export {
6672
7435
  GetAuditStats200ResponseToJSON,
6673
7436
  GetDataQueryDefinition200ResponseDataFromJSON,
6674
7437
  GetDataQueryDefinition200ResponseDataFromJSONTyped,
7438
+ GetDataQueryDefinition200ResponseDataSourceTypeEnum,
6675
7439
  GetDataQueryDefinition200ResponseDataStatusEnum,
6676
7440
  GetDataQueryDefinition200ResponseDataToJSON,
6677
- GetDataQueryDefinition200ResponseDataTypeEnum,
6678
7441
  GetDataQueryDefinition200ResponseFromJSON,
6679
7442
  GetDataQueryDefinition200ResponseFromJSONTyped,
6680
7443
  GetDataQueryDefinition200ResponseToJSON,
@@ -6709,17 +7472,29 @@ export {
6709
7472
  GetVersion200ResponseFromJSON,
6710
7473
  GetVersion200ResponseFromJSONTyped,
6711
7474
  GetVersion200ResponseToJSON,
7475
+ HealthCheck200ResponseDependenciesValueFromJSON,
7476
+ HealthCheck200ResponseDependenciesValueFromJSONTyped,
7477
+ HealthCheck200ResponseDependenciesValueStatusEnum,
7478
+ HealthCheck200ResponseDependenciesValueToJSON,
7479
+ HealthCheck200ResponseFromJSON,
7480
+ HealthCheck200ResponseFromJSONTyped,
7481
+ HealthCheck200ResponseStatusEnum,
7482
+ HealthCheck200ResponseToJSON,
7483
+ HealthResponseFromJSON,
7484
+ HealthResponseFromJSONTyped,
7485
+ HealthResponseStatusEnum,
7486
+ HealthResponseToJSON,
6712
7487
  KillSwitchStatusResponseFromJSON,
6713
7488
  KillSwitchStatusResponseFromJSONTyped,
6714
7489
  KillSwitchStatusResponseToJSON,
6715
7490
  ListActionDefinitionVersions200ResponseFromJSON,
6716
7491
  ListActionDefinitionVersions200ResponseFromJSONTyped,
6717
7492
  ListActionDefinitionVersions200ResponseToJSON,
7493
+ ListActionDefinitions200ResponseDataInnerActionTypeEnum,
6718
7494
  ListActionDefinitions200ResponseDataInnerFromJSON,
6719
7495
  ListActionDefinitions200ResponseDataInnerFromJSONTyped,
6720
7496
  ListActionDefinitions200ResponseDataInnerStatusEnum,
6721
7497
  ListActionDefinitions200ResponseDataInnerToJSON,
6722
- ListActionDefinitions200ResponseDataInnerTypeEnum,
6723
7498
  ListActionDefinitions200ResponseFromJSON,
6724
7499
  ListActionDefinitions200ResponseFromJSONTyped,
6725
7500
  ListActionDefinitions200ResponseToJSON,
@@ -6757,9 +7532,9 @@ export {
6757
7532
  ListDataQueryDefinitionVersions200ResponseToJSON,
6758
7533
  ListDataQueryDefinitions200ResponseDataInnerFromJSON,
6759
7534
  ListDataQueryDefinitions200ResponseDataInnerFromJSONTyped,
7535
+ ListDataQueryDefinitions200ResponseDataInnerSourceTypeEnum,
6760
7536
  ListDataQueryDefinitions200ResponseDataInnerStatusEnum,
6761
7537
  ListDataQueryDefinitions200ResponseDataInnerToJSON,
6762
- ListDataQueryDefinitions200ResponseDataInnerTypeEnum,
6763
7538
  ListDataQueryDefinitions200ResponseFromJSON,
6764
7539
  ListDataQueryDefinitions200ResponseFromJSONTyped,
6765
7540
  ListDataQueryDefinitions200ResponseToJSON,
@@ -6779,6 +7554,9 @@ export {
6779
7554
  ListPages401ResponseFromJSON,
6780
7555
  ListPages401ResponseFromJSONTyped,
6781
7556
  ListPages401ResponseToJSON,
7557
+ ListPreviewTokens200ResponseFromJSON,
7558
+ ListPreviewTokens200ResponseFromJSONTyped,
7559
+ ListPreviewTokens200ResponseToJSON,
6782
7560
  ListVersions200ResponseDataInnerFromJSON,
6783
7561
  ListVersions200ResponseDataInnerFromJSONTyped,
6784
7562
  ListVersions200ResponseDataInnerStatusEnum,
@@ -6786,6 +7564,9 @@ export {
6786
7564
  ListVersions200ResponseFromJSON,
6787
7565
  ListVersions200ResponseFromJSONTyped,
6788
7566
  ListVersions200ResponseToJSON,
7567
+ LivenessCheck200ResponseFromJSON,
7568
+ LivenessCheck200ResponseFromJSONTyped,
7569
+ LivenessCheck200ResponseToJSON,
6789
7570
  LockInfoFromJSON,
6790
7571
  LockInfoFromJSONTyped,
6791
7572
  LockInfoToJSON,
@@ -6808,6 +7589,10 @@ export {
6808
7589
  PaginationMetaFromJSON,
6809
7590
  PaginationMetaFromJSONTyped,
6810
7591
  PaginationMetaToJSON,
7592
+ PreviewTokenInfoDeviceTypeEnum,
7593
+ PreviewTokenInfoFromJSON,
7594
+ PreviewTokenInfoFromJSONTyped,
7595
+ PreviewTokenInfoToJSON,
6811
7596
  PublishActionDefinitionVersion201ResponseFromJSON,
6812
7597
  PublishActionDefinitionVersion201ResponseFromJSONTyped,
6813
7598
  PublishActionDefinitionVersion201ResponseToJSON,
@@ -6836,8 +7621,17 @@ export {
6836
7621
  PublishVersionRequestRolloutToJSON,
6837
7622
  PublishVersionRequestToJSON,
6838
7623
  PublishVersionRequestVersionBumpEnum,
7624
+ ReadinessCheck200ResponseFromJSON,
7625
+ ReadinessCheck200ResponseFromJSONTyped,
7626
+ ReadinessCheck200ResponseToJSON,
7627
+ ReadinessCheck503ResponseFromJSON,
7628
+ ReadinessCheck503ResponseFromJSONTyped,
7629
+ ReadinessCheck503ResponseToJSON,
6839
7630
  RequiredError,
6840
7631
  ResponseError,
7632
+ RevokePreviewTokenRequestFromJSON,
7633
+ RevokePreviewTokenRequestFromJSONTyped,
7634
+ RevokePreviewTokenRequestToJSON,
6841
7635
  RollbackRequestFromJSON,
6842
7636
  RollbackRequestFromJSONTyped,
6843
7637
  RollbackRequestToJSON,
@@ -6884,6 +7678,10 @@ export {
6884
7678
  UpdateComponentVersionStatusRequestFromJSONTyped,
6885
7679
  UpdateComponentVersionStatusRequestStatusEnum,
6886
7680
  UpdateComponentVersionStatusRequestToJSON,
7681
+ UpdateDataQueryDefinitionRequestFromJSON,
7682
+ UpdateDataQueryDefinitionRequestFromJSONTyped,
7683
+ UpdateDataQueryDefinitionRequestStatusEnum,
7684
+ UpdateDataQueryDefinitionRequestToJSON,
6887
7685
  UpdatePageRequestFromJSON,
6888
7686
  UpdatePageRequestFromJSONTyped,
6889
7687
  UpdatePageRequestToJSON,
@@ -6919,8 +7717,8 @@ export {
6919
7717
  instanceOfActivityDetail,
6920
7718
  instanceOfActivityInfo,
6921
7719
  instanceOfActivityStats,
6922
- instanceOfAddRolloutStrategy201Response,
6923
- instanceOfAddRolloutStrategy201ResponseData,
7720
+ instanceOfAddRolloutStrategy200Response,
7721
+ instanceOfAddRolloutStrategy200ResponseData,
6924
7722
  instanceOfAddRolloutStrategyRequest,
6925
7723
  instanceOfAuditLogDetail,
6926
7724
  instanceOfAuditLogEntry,
@@ -6936,11 +7734,17 @@ export {
6936
7734
  instanceOfCreateActivityRequest,
6937
7735
  instanceOfCreateDataQueryDefinition201Response,
6938
7736
  instanceOfCreateDataQueryDefinitionRequest,
6939
- instanceOfCreatePage201Response,
7737
+ instanceOfCreatePage200Response,
6940
7738
  instanceOfCreatePageRequest,
7739
+ instanceOfCreatePreviewToken201Response,
7740
+ instanceOfCreatePreviewToken201ResponseData,
7741
+ instanceOfCreatePreviewTokenRequest,
6941
7742
  instanceOfDataQueryDefinitionDetail,
6942
7743
  instanceOfDataQueryDefinitionInfo,
6943
7744
  instanceOfDefinitionVersionInfo,
7745
+ instanceOfDeletePage200Response,
7746
+ instanceOfDeletePageRequest,
7747
+ instanceOfDiscardDraftRequest,
6944
7748
  instanceOfDraftData,
6945
7749
  instanceOfDraftResponse,
6946
7750
  instanceOfErrorDetail,
@@ -6969,6 +7773,9 @@ export {
6969
7773
  instanceOfGetRolloutConfig200Response,
6970
7774
  instanceOfGetVersion200Response,
6971
7775
  instanceOfGetVersion200ResponseData,
7776
+ instanceOfHealthCheck200Response,
7777
+ instanceOfHealthCheck200ResponseDependenciesValue,
7778
+ instanceOfHealthResponse,
6972
7779
  instanceOfKillSwitchStatusResponse,
6973
7780
  instanceOfListActionDefinitionVersions200Response,
6974
7781
  instanceOfListActionDefinitions200Response,
@@ -6989,14 +7796,17 @@ export {
6989
7796
  instanceOfListPages200ResponseMeta,
6990
7797
  instanceOfListPages401Response,
6991
7798
  instanceOfListPages401ResponseDetailsInner,
7799
+ instanceOfListPreviewTokens200Response,
6992
7800
  instanceOfListVersions200Response,
6993
7801
  instanceOfListVersions200ResponseDataInner,
7802
+ instanceOfLivenessCheck200Response,
6994
7803
  instanceOfLockInfo,
6995
7804
  instanceOfPageInfo,
6996
7805
  instanceOfPageKillSwitchStatusResponse,
6997
7806
  instanceOfPageListResponse,
6998
7807
  instanceOfPageResponse,
6999
7808
  instanceOfPaginationMeta,
7809
+ instanceOfPreviewTokenInfo,
7000
7810
  instanceOfPublishActionDefinitionVersion201Response,
7001
7811
  instanceOfPublishActionDefinitionVersionRequest,
7002
7812
  instanceOfPublishDefinitionVersionRequest,
@@ -7005,6 +7815,9 @@ export {
7005
7815
  instanceOfPublishVersion201Response,
7006
7816
  instanceOfPublishVersionRequest,
7007
7817
  instanceOfPublishVersionRequestRollout,
7818
+ instanceOfReadinessCheck200Response,
7819
+ instanceOfReadinessCheck503Response,
7820
+ instanceOfRevokePreviewTokenRequest,
7008
7821
  instanceOfRollbackRequest,
7009
7822
  instanceOfRollbackVersionRequest,
7010
7823
  instanceOfRolloutConfig,
@@ -7018,6 +7831,7 @@ export {
7018
7831
  instanceOfUpdateComponentStatusRequest,
7019
7832
  instanceOfUpdateComponentVersionStatus200Response,
7020
7833
  instanceOfUpdateComponentVersionStatusRequest,
7834
+ instanceOfUpdateDataQueryDefinitionRequest,
7021
7835
  instanceOfUpdatePageRequest,
7022
7836
  instanceOfUpdateRolloutConfigRequest,
7023
7837
  instanceOfUpdateRolloutRequest,