@djvlc/openapi-user-client 1.7.14 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -255,16 +255,16 @@ var JSONApiResponse = class {
255
255
  }
256
256
  };
257
257
 
258
- // src/generated/models/ActionContext.ts
259
- function instanceOfActionContext(value) {
258
+ // src/generated/models/ActionClientContext.ts
259
+ function instanceOfActionClientContext(value) {
260
260
  let isInstance = true;
261
261
  isInstance = isInstance && "pageVersionId" in value;
262
262
  return isInstance;
263
263
  }
264
- function ActionContextFromJSON(json) {
265
- return ActionContextFromJSONTyped(json, false);
264
+ function ActionClientContextFromJSON(json) {
265
+ return ActionClientContextFromJSONTyped(json, false);
266
266
  }
267
- function ActionContextFromJSONTyped(json, ignoreDiscriminator) {
267
+ function ActionClientContextFromJSONTyped(json, ignoreDiscriminator) {
268
268
  if (json === void 0 || json === null) {
269
269
  return json;
270
270
  }
@@ -279,7 +279,7 @@ function ActionContextFromJSONTyped(json, ignoreDiscriminator) {
279
279
  "extra": !exists(json, "extra") ? void 0 : json["extra"]
280
280
  };
281
281
  }
282
- function ActionContextToJSON(value) {
282
+ function ActionClientContextToJSON(value) {
283
283
  if (value === void 0) {
284
284
  return void 0;
285
285
  }
@@ -455,6 +455,54 @@ function ActionManifestToJSON(value) {
455
455
  };
456
456
  }
457
457
 
458
+ // src/generated/models/ActivityStatus.ts
459
+ var ActivityStatusTypeEnum = {
460
+ CLAIM: "claim",
461
+ SIGNIN: "signin"
462
+ };
463
+ function instanceOfActivityStatus(value) {
464
+ let isInstance = true;
465
+ isInstance = isInstance && "activityUid" in value;
466
+ isInstance = isInstance && "name" in value;
467
+ isInstance = isInstance && "type" in value;
468
+ isInstance = isInstance && "isInProgress" in value;
469
+ isInstance = isInstance && "startAt" in value;
470
+ isInstance = isInstance && "endAt" in value;
471
+ return isInstance;
472
+ }
473
+ function ActivityStatusFromJSON(json) {
474
+ return ActivityStatusFromJSONTyped(json, false);
475
+ }
476
+ function ActivityStatusFromJSONTyped(json, ignoreDiscriminator) {
477
+ if (json === void 0 || json === null) {
478
+ return json;
479
+ }
480
+ return {
481
+ "activityUid": json["activityUid"],
482
+ "name": json["name"],
483
+ "type": json["type"],
484
+ "isInProgress": json["isInProgress"],
485
+ "startAt": new Date(json["startAt"]),
486
+ "endAt": new Date(json["endAt"])
487
+ };
488
+ }
489
+ function ActivityStatusToJSON(value) {
490
+ if (value === void 0) {
491
+ return void 0;
492
+ }
493
+ if (value === null) {
494
+ return null;
495
+ }
496
+ return {
497
+ "activityUid": value.activityUid,
498
+ "name": value.name,
499
+ "type": value.type,
500
+ "isInProgress": value.isInProgress,
501
+ "startAt": value.startAt.toISOString(),
502
+ "endAt": value.endAt.toISOString()
503
+ };
504
+ }
505
+
458
506
  // src/generated/models/BatchQueryRequestQueriesInner.ts
459
507
  function instanceOfBatchQueryRequestQueriesInner(value) {
460
508
  let isInstance = true;
@@ -643,6 +691,48 @@ function BatchQueryResponseToJSON(value) {
643
691
  };
644
692
  }
645
693
 
694
+ // src/generated/models/BlockedComponentItem.ts
695
+ function instanceOfBlockedComponentItem(value) {
696
+ let isInstance = true;
697
+ isInstance = isInstance && "name" in value;
698
+ isInstance = isInstance && "reason" in value;
699
+ return isInstance;
700
+ }
701
+ function BlockedComponentItemFromJSON(json) {
702
+ return BlockedComponentItemFromJSONTyped(json, false);
703
+ }
704
+ function BlockedComponentItemFromJSONTyped(json, ignoreDiscriminator) {
705
+ if (json === void 0 || json === null) {
706
+ return json;
707
+ }
708
+ return {
709
+ "name": json["name"],
710
+ "version": !exists(json, "version") ? void 0 : json["version"],
711
+ "reason": json["reason"],
712
+ "blockedAt": !exists(json, "blockedAt") ? void 0 : new Date(json["blockedAt"]),
713
+ "blockedBy": !exists(json, "blockedBy") ? void 0 : json["blockedBy"],
714
+ "fallbackVersion": !exists(json, "fallbackVersion") ? void 0 : json["fallbackVersion"],
715
+ "urgent": !exists(json, "urgent") ? void 0 : json["urgent"]
716
+ };
717
+ }
718
+ function BlockedComponentItemToJSON(value) {
719
+ if (value === void 0) {
720
+ return void 0;
721
+ }
722
+ if (value === null) {
723
+ return null;
724
+ }
725
+ return {
726
+ "name": value.name,
727
+ "version": value.version,
728
+ "reason": value.reason,
729
+ "blockedAt": value.blockedAt === void 0 ? void 0 : value.blockedAt.toISOString(),
730
+ "blockedBy": value.blockedBy,
731
+ "fallbackVersion": value.fallbackVersion,
732
+ "urgent": value.urgent
733
+ };
734
+ }
735
+
646
736
  // src/generated/models/ClaimRecordInfo.ts
647
737
  var ClaimRecordInfoStatusEnum = {
648
738
  PENDING: "pending",
@@ -697,11 +787,15 @@ function ClaimRecordInfoToJSON(value) {
697
787
  }
698
788
 
699
789
  // src/generated/models/ComponentManifest.ts
790
+ var ComponentManifestSourceEnum = {
791
+ BUNDLED: "bundled",
792
+ REMOTE: "remote"
793
+ };
700
794
  function instanceOfComponentManifest(value) {
701
795
  let isInstance = true;
702
796
  isInstance = isInstance && "componentType" in value;
703
797
  isInstance = isInstance && "version" in value;
704
- isInstance = isInstance && "entryUrl" in value;
798
+ isInstance = isInstance && "source" in value;
705
799
  return isInstance;
706
800
  }
707
801
  function ComponentManifestFromJSON(json) {
@@ -714,7 +808,8 @@ function ComponentManifestFromJSONTyped(json, ignoreDiscriminator) {
714
808
  return {
715
809
  "componentType": json["componentType"],
716
810
  "version": json["version"],
717
- "entryUrl": json["entryUrl"],
811
+ "source": json["source"],
812
+ "entryUrl": !exists(json, "entryUrl") ? void 0 : json["entryUrl"],
718
813
  "styleUrl": !exists(json, "styleUrl") ? void 0 : json["styleUrl"],
719
814
  "integrity": !exists(json, "integrity") ? void 0 : json["integrity"],
720
815
  "blocked": !exists(json, "blocked") ? void 0 : json["blocked"],
@@ -731,6 +826,7 @@ function ComponentManifestToJSON(value) {
731
826
  return {
732
827
  "componentType": value.componentType,
733
828
  "version": value.version,
829
+ "source": value.source,
734
830
  "entryUrl": value.entryUrl,
735
831
  "styleUrl": value.styleUrl,
736
832
  "integrity": value.integrity,
@@ -739,39 +835,6 @@ function ComponentManifestToJSON(value) {
739
835
  };
740
836
  }
741
837
 
742
- // src/generated/models/ErrorDetail.ts
743
- function instanceOfErrorDetail(value) {
744
- let isInstance = true;
745
- isInstance = isInstance && "message" in value;
746
- return isInstance;
747
- }
748
- function ErrorDetailFromJSON(json) {
749
- return ErrorDetailFromJSONTyped(json, false);
750
- }
751
- function ErrorDetailFromJSONTyped(json, ignoreDiscriminator) {
752
- if (json === void 0 || json === null) {
753
- return json;
754
- }
755
- return {
756
- "field": !exists(json, "field") ? void 0 : json["field"],
757
- "message": json["message"],
758
- "code": !exists(json, "code") ? void 0 : json["code"]
759
- };
760
- }
761
- function ErrorDetailToJSON(value) {
762
- if (value === void 0) {
763
- return void 0;
764
- }
765
- if (value === null) {
766
- return null;
767
- }
768
- return {
769
- "field": value.field,
770
- "message": value.message,
771
- "code": value.code
772
- };
773
- }
774
-
775
838
  // src/generated/models/ErrorResponse.ts
776
839
  function instanceOfErrorResponse(value) {
777
840
  let isInstance = true;
@@ -854,7 +917,7 @@ function ExecuteActionRequestFromJSONTyped(json, ignoreDiscriminator) {
854
917
  "actionType": json["actionType"],
855
918
  "actionDefinitionVersionId": !exists(json, "actionDefinitionVersionId") ? void 0 : json["actionDefinitionVersionId"],
856
919
  "params": json["params"],
857
- "context": ActionContextFromJSON(json["context"]),
920
+ "context": ActionClientContextFromJSON(json["context"]),
858
921
  "idempotencyKey": !exists(json, "idempotencyKey") ? void 0 : json["idempotencyKey"]
859
922
  };
860
923
  }
@@ -869,11 +932,43 @@ function ExecuteActionRequestToJSON(value) {
869
932
  "actionType": value.actionType,
870
933
  "actionDefinitionVersionId": value.actionDefinitionVersionId,
871
934
  "params": value.params,
872
- "context": ActionContextToJSON(value.context),
935
+ "context": ActionClientContextToJSON(value.context),
873
936
  "idempotencyKey": value.idempotencyKey
874
937
  };
875
938
  }
876
939
 
940
+ // src/generated/models/ExecuteActionResponseAllOfDataRiskDecision.ts
941
+ function instanceOfExecuteActionResponseAllOfDataRiskDecision(value) {
942
+ let isInstance = true;
943
+ return isInstance;
944
+ }
945
+ function ExecuteActionResponseAllOfDataRiskDecisionFromJSON(json) {
946
+ return ExecuteActionResponseAllOfDataRiskDecisionFromJSONTyped(json, false);
947
+ }
948
+ function ExecuteActionResponseAllOfDataRiskDecisionFromJSONTyped(json, ignoreDiscriminator) {
949
+ if (json === void 0 || json === null) {
950
+ return json;
951
+ }
952
+ return {
953
+ "allowed": !exists(json, "allowed") ? void 0 : json["allowed"],
954
+ "reason": !exists(json, "reason") ? void 0 : json["reason"],
955
+ "code": !exists(json, "code") ? void 0 : json["code"]
956
+ };
957
+ }
958
+ function ExecuteActionResponseAllOfDataRiskDecisionToJSON(value) {
959
+ if (value === void 0) {
960
+ return void 0;
961
+ }
962
+ if (value === null) {
963
+ return null;
964
+ }
965
+ return {
966
+ "allowed": value.allowed,
967
+ "reason": value.reason,
968
+ "code": value.code
969
+ };
970
+ }
971
+
877
972
  // src/generated/models/ExecuteActionResponseAllOfData.ts
878
973
  function instanceOfExecuteActionResponseAllOfData(value) {
879
974
  let isInstance = true;
@@ -897,7 +992,8 @@ function ExecuteActionResponseAllOfDataFromJSONTyped(json, ignoreDiscriminator)
897
992
  "traceId": !exists(json, "traceId") ? void 0 : json["traceId"],
898
993
  "duration": !exists(json, "duration") ? void 0 : json["duration"],
899
994
  "retryable": !exists(json, "retryable") ? void 0 : json["retryable"],
900
- "retryAfter": !exists(json, "retryAfter") ? void 0 : json["retryAfter"]
995
+ "retryAfter": !exists(json, "retryAfter") ? void 0 : json["retryAfter"],
996
+ "riskDecision": !exists(json, "riskDecision") ? void 0 : ExecuteActionResponseAllOfDataRiskDecisionFromJSON(json["riskDecision"])
901
997
  };
902
998
  }
903
999
  function ExecuteActionResponseAllOfDataToJSON(value) {
@@ -918,7 +1014,8 @@ function ExecuteActionResponseAllOfDataToJSON(value) {
918
1014
  "traceId": value.traceId,
919
1015
  "duration": value.duration,
920
1016
  "retryable": value.retryable,
921
- "retryAfter": value.retryAfter
1017
+ "retryAfter": value.retryAfter,
1018
+ "riskDecision": ExecuteActionResponseAllOfDataRiskDecisionToJSON(value.riskDecision)
922
1019
  };
923
1020
  }
924
1021
 
@@ -1505,13 +1602,45 @@ function GetActivityState200ResponseToJSON(value) {
1505
1602
  };
1506
1603
  }
1507
1604
 
1605
+ // src/generated/models/GetActivityStatus200Response.ts
1606
+ function instanceOfGetActivityStatus200Response(value) {
1607
+ let isInstance = true;
1608
+ return isInstance;
1609
+ }
1610
+ function GetActivityStatus200ResponseFromJSON(json) {
1611
+ return GetActivityStatus200ResponseFromJSONTyped(json, false);
1612
+ }
1613
+ function GetActivityStatus200ResponseFromJSONTyped(json, ignoreDiscriminator) {
1614
+ if (json === void 0 || json === null) {
1615
+ return json;
1616
+ }
1617
+ return {
1618
+ "success": !exists(json, "success") ? void 0 : json["success"],
1619
+ "data": !exists(json, "data") ? void 0 : ActivityStatusFromJSON(json["data"])
1620
+ };
1621
+ }
1622
+ function GetActivityStatus200ResponseToJSON(value) {
1623
+ if (value === void 0) {
1624
+ return void 0;
1625
+ }
1626
+ if (value === null) {
1627
+ return null;
1628
+ }
1629
+ return {
1630
+ "success": value.success,
1631
+ "data": ActivityStatusToJSON(value.data)
1632
+ };
1633
+ }
1634
+
1508
1635
  // src/generated/models/PaginationMeta.ts
1509
1636
  function instanceOfPaginationMeta(value) {
1510
1637
  let isInstance = true;
1511
1638
  isInstance = isInstance && "page" in value;
1512
- isInstance = isInstance && "limit" in value;
1639
+ isInstance = isInstance && "pageSize" in value;
1513
1640
  isInstance = isInstance && "total" in value;
1514
1641
  isInstance = isInstance && "totalPages" in value;
1642
+ isInstance = isInstance && "hasNext" in value;
1643
+ isInstance = isInstance && "hasPrev" in value;
1515
1644
  return isInstance;
1516
1645
  }
1517
1646
  function PaginationMetaFromJSON(json) {
@@ -1523,9 +1652,11 @@ function PaginationMetaFromJSONTyped(json, ignoreDiscriminator) {
1523
1652
  }
1524
1653
  return {
1525
1654
  "page": json["page"],
1526
- "limit": json["limit"],
1655
+ "pageSize": json["pageSize"],
1527
1656
  "total": json["total"],
1528
- "totalPages": json["totalPages"]
1657
+ "totalPages": json["totalPages"],
1658
+ "hasNext": json["hasNext"],
1659
+ "hasPrev": json["hasPrev"]
1529
1660
  };
1530
1661
  }
1531
1662
  function PaginationMetaToJSON(value) {
@@ -1537,9 +1668,11 @@ function PaginationMetaToJSON(value) {
1537
1668
  }
1538
1669
  return {
1539
1670
  "page": value.page,
1540
- "limit": value.limit,
1671
+ "pageSize": value.pageSize,
1541
1672
  "total": value.total,
1542
- "totalPages": value.totalPages
1673
+ "totalPages": value.totalPages,
1674
+ "hasNext": value.hasNext,
1675
+ "hasPrev": value.hasPrev
1543
1676
  };
1544
1677
  }
1545
1678
 
@@ -1575,6 +1708,36 @@ function GetClaimRecords200ResponseToJSON(value) {
1575
1708
  };
1576
1709
  }
1577
1710
 
1711
+ // src/generated/models/GetClaimStatus200Response.ts
1712
+ function instanceOfGetClaimStatus200Response(value) {
1713
+ let isInstance = true;
1714
+ return isInstance;
1715
+ }
1716
+ function GetClaimStatus200ResponseFromJSON(json) {
1717
+ return GetClaimStatus200ResponseFromJSONTyped(json, false);
1718
+ }
1719
+ function GetClaimStatus200ResponseFromJSONTyped(json, ignoreDiscriminator) {
1720
+ if (json === void 0 || json === null) {
1721
+ return json;
1722
+ }
1723
+ return {
1724
+ "success": !exists(json, "success") ? void 0 : json["success"],
1725
+ "data": !exists(json, "data") ? void 0 : json["data"]
1726
+ };
1727
+ }
1728
+ function GetClaimStatus200ResponseToJSON(value) {
1729
+ if (value === void 0) {
1730
+ return void 0;
1731
+ }
1732
+ if (value === null) {
1733
+ return null;
1734
+ }
1735
+ return {
1736
+ "success": value.success,
1737
+ "data": value.data
1738
+ };
1739
+ }
1740
+
1578
1741
  // src/generated/models/LotteryRecordInfo.ts
1579
1742
  var LotteryRecordInfoPrizeTypeEnum = {
1580
1743
  PHYSICAL: "physical",
@@ -1666,6 +1829,221 @@ function GetLotteryRecords200ResponseToJSON(value) {
1666
1829
  };
1667
1830
  }
1668
1831
 
1832
+ // src/generated/models/KillSwitchItem.ts
1833
+ var KillSwitchItemTargetTypeEnum = {
1834
+ ACTION: "action",
1835
+ COMPONENT: "component",
1836
+ FEATURE: "feature",
1837
+ PAGE: "page",
1838
+ QUERY: "query"
1839
+ };
1840
+ function instanceOfKillSwitchItem(value) {
1841
+ let isInstance = true;
1842
+ isInstance = isInstance && "targetType" in value;
1843
+ isInstance = isInstance && "targetId" in value;
1844
+ isInstance = isInstance && "enabled" in value;
1845
+ return isInstance;
1846
+ }
1847
+ function KillSwitchItemFromJSON(json) {
1848
+ return KillSwitchItemFromJSONTyped(json, false);
1849
+ }
1850
+ function KillSwitchItemFromJSONTyped(json, ignoreDiscriminator) {
1851
+ if (json === void 0 || json === null) {
1852
+ return json;
1853
+ }
1854
+ return {
1855
+ "targetType": json["targetType"],
1856
+ "targetId": json["targetId"],
1857
+ "enabled": json["enabled"],
1858
+ "reason": !exists(json, "reason") ? void 0 : json["reason"],
1859
+ "enabledAt": !exists(json, "enabledAt") ? void 0 : new Date(json["enabledAt"]),
1860
+ "enabledBy": !exists(json, "enabledBy") ? void 0 : json["enabledBy"],
1861
+ "userMessage": !exists(json, "userMessage") ? void 0 : json["userMessage"]
1862
+ };
1863
+ }
1864
+ function KillSwitchItemToJSON(value) {
1865
+ if (value === void 0) {
1866
+ return void 0;
1867
+ }
1868
+ if (value === null) {
1869
+ return null;
1870
+ }
1871
+ return {
1872
+ "targetType": value.targetType,
1873
+ "targetId": value.targetId,
1874
+ "enabled": value.enabled,
1875
+ "reason": value.reason,
1876
+ "enabledAt": value.enabledAt === void 0 ? void 0 : value.enabledAt.toISOString(),
1877
+ "enabledBy": value.enabledBy,
1878
+ "userMessage": value.userMessage
1879
+ };
1880
+ }
1881
+
1882
+ // src/generated/models/OpsConfig.ts
1883
+ function instanceOfOpsConfig(value) {
1884
+ let isInstance = true;
1885
+ isInstance = isInstance && "killSwitch" in value;
1886
+ isInstance = isInstance && "blockedComponents" in value;
1887
+ isInstance = isInstance && "flags" in value;
1888
+ return isInstance;
1889
+ }
1890
+ function OpsConfigFromJSON(json) {
1891
+ return OpsConfigFromJSONTyped(json, false);
1892
+ }
1893
+ function OpsConfigFromJSONTyped(json, ignoreDiscriminator) {
1894
+ if (json === void 0 || json === null) {
1895
+ return json;
1896
+ }
1897
+ return {
1898
+ "configVersionId": !exists(json, "configVersionId") ? void 0 : json["configVersionId"],
1899
+ "killSwitch": json["killSwitch"].map(KillSwitchItemFromJSON),
1900
+ "blockedComponents": json["blockedComponents"].map(BlockedComponentItemFromJSON),
1901
+ "flags": json["flags"],
1902
+ "expiresAt": !exists(json, "expiresAt") ? void 0 : new Date(json["expiresAt"])
1903
+ };
1904
+ }
1905
+ function OpsConfigToJSON(value) {
1906
+ if (value === void 0) {
1907
+ return void 0;
1908
+ }
1909
+ if (value === null) {
1910
+ return null;
1911
+ }
1912
+ return {
1913
+ "configVersionId": value.configVersionId,
1914
+ "killSwitch": value.killSwitch.map(KillSwitchItemToJSON),
1915
+ "blockedComponents": value.blockedComponents.map(BlockedComponentItemToJSON),
1916
+ "flags": value.flags,
1917
+ "expiresAt": value.expiresAt === void 0 ? void 0 : value.expiresAt.toISOString()
1918
+ };
1919
+ }
1920
+
1921
+ // src/generated/models/GetPageConfig200Response.ts
1922
+ function instanceOfGetPageConfig200Response(value) {
1923
+ let isInstance = true;
1924
+ return isInstance;
1925
+ }
1926
+ function GetPageConfig200ResponseFromJSON(json) {
1927
+ return GetPageConfig200ResponseFromJSONTyped(json, false);
1928
+ }
1929
+ function GetPageConfig200ResponseFromJSONTyped(json, ignoreDiscriminator) {
1930
+ if (json === void 0 || json === null) {
1931
+ return json;
1932
+ }
1933
+ return {
1934
+ "success": !exists(json, "success") ? void 0 : json["success"],
1935
+ "data": !exists(json, "data") ? void 0 : OpsConfigFromJSON(json["data"])
1936
+ };
1937
+ }
1938
+ function GetPageConfig200ResponseToJSON(value) {
1939
+ if (value === void 0) {
1940
+ return void 0;
1941
+ }
1942
+ if (value === null) {
1943
+ return null;
1944
+ }
1945
+ return {
1946
+ "success": value.success,
1947
+ "data": OpsConfigToJSON(value.data)
1948
+ };
1949
+ }
1950
+
1951
+ // src/generated/models/QueryManifest.ts
1952
+ function instanceOfQueryManifest(value) {
1953
+ let isInstance = true;
1954
+ isInstance = isInstance && "queryId" in value;
1955
+ isInstance = isInstance && "queryVersionId" in value;
1956
+ return isInstance;
1957
+ }
1958
+ function QueryManifestFromJSON(json) {
1959
+ return QueryManifestFromJSONTyped(json, false);
1960
+ }
1961
+ function QueryManifestFromJSONTyped(json, ignoreDiscriminator) {
1962
+ if (json === void 0 || json === null) {
1963
+ return json;
1964
+ }
1965
+ return {
1966
+ "queryId": json["queryId"],
1967
+ "queryVersionId": json["queryVersionId"],
1968
+ "cacheTtl": !exists(json, "cacheTtl") ? void 0 : json["cacheTtl"]
1969
+ };
1970
+ }
1971
+ function QueryManifestToJSON(value) {
1972
+ if (value === void 0) {
1973
+ return void 0;
1974
+ }
1975
+ if (value === null) {
1976
+ return null;
1977
+ }
1978
+ return {
1979
+ "queryId": value.queryId,
1980
+ "queryVersionId": value.queryVersionId,
1981
+ "cacheTtl": value.cacheTtl
1982
+ };
1983
+ }
1984
+
1985
+ // src/generated/models/ResourceManifests.ts
1986
+ function instanceOfResourceManifests(value) {
1987
+ let isInstance = true;
1988
+ return isInstance;
1989
+ }
1990
+ function ResourceManifestsFromJSON(json) {
1991
+ return ResourceManifestsFromJSONTyped(json, false);
1992
+ }
1993
+ function ResourceManifestsFromJSONTyped(json, ignoreDiscriminator) {
1994
+ if (json === void 0 || json === null) {
1995
+ return json;
1996
+ }
1997
+ return {
1998
+ "components": !exists(json, "components") ? void 0 : json["components"].map(ComponentManifestFromJSON),
1999
+ "actions": !exists(json, "actions") ? void 0 : json["actions"].map(ActionManifestFromJSON),
2000
+ "queries": !exists(json, "queries") ? void 0 : json["queries"].map(QueryManifestFromJSON)
2001
+ };
2002
+ }
2003
+ function ResourceManifestsToJSON(value) {
2004
+ if (value === void 0) {
2005
+ return void 0;
2006
+ }
2007
+ if (value === null) {
2008
+ return null;
2009
+ }
2010
+ return {
2011
+ "components": value.components === void 0 ? void 0 : value.components.map(ComponentManifestToJSON),
2012
+ "actions": value.actions === void 0 ? void 0 : value.actions.map(ActionManifestToJSON),
2013
+ "queries": value.queries === void 0 ? void 0 : value.queries.map(QueryManifestToJSON)
2014
+ };
2015
+ }
2016
+
2017
+ // src/generated/models/GetPageManifest200Response.ts
2018
+ function instanceOfGetPageManifest200Response(value) {
2019
+ let isInstance = true;
2020
+ return isInstance;
2021
+ }
2022
+ function GetPageManifest200ResponseFromJSON(json) {
2023
+ return GetPageManifest200ResponseFromJSONTyped(json, false);
2024
+ }
2025
+ function GetPageManifest200ResponseFromJSONTyped(json, ignoreDiscriminator) {
2026
+ if (json === void 0 || json === null) {
2027
+ return json;
2028
+ }
2029
+ return {
2030
+ "success": !exists(json, "success") ? void 0 : json["success"],
2031
+ "data": !exists(json, "data") ? void 0 : ResourceManifestsFromJSON(json["data"])
2032
+ };
2033
+ }
2034
+ function GetPageManifest200ResponseToJSON(value) {
2035
+ if (value === void 0) {
2036
+ return void 0;
2037
+ }
2038
+ if (value === null) {
2039
+ return null;
2040
+ }
2041
+ return {
2042
+ "success": value.success,
2043
+ "data": ResourceManifestsToJSON(value.data)
2044
+ };
2045
+ }
2046
+
1669
2047
  // src/generated/models/SigninCalendarRecordsInnerReward.ts
1670
2048
  function instanceOfSigninCalendarRecordsInnerReward(value) {
1671
2049
  let isInstance = true;
@@ -1797,6 +2175,36 @@ function GetSigninCalendar200ResponseToJSON(value) {
1797
2175
  };
1798
2176
  }
1799
2177
 
2178
+ // src/generated/models/GetSigninStatus200Response.ts
2179
+ function instanceOfGetSigninStatus200Response(value) {
2180
+ let isInstance = true;
2181
+ return isInstance;
2182
+ }
2183
+ function GetSigninStatus200ResponseFromJSON(json) {
2184
+ return GetSigninStatus200ResponseFromJSONTyped(json, false);
2185
+ }
2186
+ function GetSigninStatus200ResponseFromJSONTyped(json, ignoreDiscriminator) {
2187
+ if (json === void 0 || json === null) {
2188
+ return json;
2189
+ }
2190
+ return {
2191
+ "success": !exists(json, "success") ? void 0 : json["success"],
2192
+ "data": !exists(json, "data") ? void 0 : json["data"]
2193
+ };
2194
+ }
2195
+ function GetSigninStatus200ResponseToJSON(value) {
2196
+ if (value === void 0) {
2197
+ return void 0;
2198
+ }
2199
+ if (value === null) {
2200
+ return null;
2201
+ }
2202
+ return {
2203
+ "success": value.success,
2204
+ "data": value.data
2205
+ };
2206
+ }
2207
+
1800
2208
  // src/generated/models/TenantConfigBlockedComponentsInner.ts
1801
2209
  function instanceOfTenantConfigBlockedComponentsInner(value) {
1802
2210
  let isInstance = true;
@@ -2103,73 +2511,6 @@ function LivenessCheck200ResponseToJSON(value) {
2103
2511
  };
2104
2512
  }
2105
2513
 
2106
- // src/generated/models/OpsConfigBlockedComponentsInner.ts
2107
- function instanceOfOpsConfigBlockedComponentsInner(value) {
2108
- let isInstance = true;
2109
- return isInstance;
2110
- }
2111
- function OpsConfigBlockedComponentsInnerFromJSON(json) {
2112
- return OpsConfigBlockedComponentsInnerFromJSONTyped(json, false);
2113
- }
2114
- function OpsConfigBlockedComponentsInnerFromJSONTyped(json, ignoreDiscriminator) {
2115
- if (json === void 0 || json === null) {
2116
- return json;
2117
- }
2118
- return {
2119
- "componentName": !exists(json, "componentName") ? void 0 : json["componentName"],
2120
- "componentVersion": !exists(json, "componentVersion") ? void 0 : json["componentVersion"],
2121
- "reason": !exists(json, "reason") ? void 0 : json["reason"]
2122
- };
2123
- }
2124
- function OpsConfigBlockedComponentsInnerToJSON(value) {
2125
- if (value === void 0) {
2126
- return void 0;
2127
- }
2128
- if (value === null) {
2129
- return null;
2130
- }
2131
- return {
2132
- "componentName": value.componentName,
2133
- "componentVersion": value.componentVersion,
2134
- "reason": value.reason
2135
- };
2136
- }
2137
-
2138
- // src/generated/models/OpsConfig.ts
2139
- function instanceOfOpsConfig(value) {
2140
- let isInstance = true;
2141
- isInstance = isInstance && "killSwitch" in value;
2142
- isInstance = isInstance && "blockedComponents" in value;
2143
- isInstance = isInstance && "flags" in value;
2144
- return isInstance;
2145
- }
2146
- function OpsConfigFromJSON(json) {
2147
- return OpsConfigFromJSONTyped(json, false);
2148
- }
2149
- function OpsConfigFromJSONTyped(json, ignoreDiscriminator) {
2150
- if (json === void 0 || json === null) {
2151
- return json;
2152
- }
2153
- return {
2154
- "killSwitch": json["killSwitch"],
2155
- "blockedComponents": json["blockedComponents"].map(OpsConfigBlockedComponentsInnerFromJSON),
2156
- "flags": json["flags"]
2157
- };
2158
- }
2159
- function OpsConfigToJSON(value) {
2160
- if (value === void 0) {
2161
- return void 0;
2162
- }
2163
- if (value === null) {
2164
- return null;
2165
- }
2166
- return {
2167
- "killSwitch": value.killSwitch,
2168
- "blockedComponents": value.blockedComponents.map(OpsConfigBlockedComponentsInnerToJSON),
2169
- "flags": value.flags
2170
- };
2171
- }
2172
-
2173
2514
  // src/generated/models/PageResponseAllOfDataMeta.ts
2174
2515
  function instanceOfPageResponseAllOfDataMeta(value) {
2175
2516
  let isInstance = true;
@@ -2477,40 +2818,6 @@ function QueryDefinitionResponseToJSON(value) {
2477
2818
  };
2478
2819
  }
2479
2820
 
2480
- // src/generated/models/QueryManifest.ts
2481
- function instanceOfQueryManifest(value) {
2482
- let isInstance = true;
2483
- isInstance = isInstance && "queryId" in value;
2484
- isInstance = isInstance && "queryVersionId" in value;
2485
- return isInstance;
2486
- }
2487
- function QueryManifestFromJSON(json) {
2488
- return QueryManifestFromJSONTyped(json, false);
2489
- }
2490
- function QueryManifestFromJSONTyped(json, ignoreDiscriminator) {
2491
- if (json === void 0 || json === null) {
2492
- return json;
2493
- }
2494
- return {
2495
- "queryId": json["queryId"],
2496
- "queryVersionId": json["queryVersionId"],
2497
- "cacheTtl": !exists(json, "cacheTtl") ? void 0 : json["cacheTtl"]
2498
- };
2499
- }
2500
- function QueryManifestToJSON(value) {
2501
- if (value === void 0) {
2502
- return void 0;
2503
- }
2504
- if (value === null) {
2505
- return null;
2506
- }
2507
- return {
2508
- "queryId": value.queryId,
2509
- "queryVersionId": value.queryVersionId,
2510
- "cacheTtl": value.cacheTtl
2511
- };
2512
- }
2513
-
2514
2821
  // src/generated/models/ReadinessCheck200Response.ts
2515
2822
  function instanceOfReadinessCheck200Response(value) {
2516
2823
  let isInstance = true;
@@ -2698,6 +3005,10 @@ function ResolvePageResponseAllOfDataSnapshotManifestEntrypointsToJSON(value) {
2698
3005
  }
2699
3006
 
2700
3007
  // src/generated/models/ResolvePageResponseAllOfDataSnapshotManifestComponents.ts
3008
+ var ResolvePageResponseAllOfDataSnapshotManifestComponentsSourceEnum = {
3009
+ BUNDLED: "bundled",
3010
+ REMOTE: "remote"
3011
+ };
2701
3012
  function instanceOfResolvePageResponseAllOfDataSnapshotManifestComponents(value) {
2702
3013
  let isInstance = true;
2703
3014
  return isInstance;
@@ -2712,6 +3023,7 @@ function ResolvePageResponseAllOfDataSnapshotManifestComponentsFromJSONTyped(jso
2712
3023
  return {
2713
3024
  "name": !exists(json, "name") ? void 0 : json["name"],
2714
3025
  "version": !exists(json, "version") ? void 0 : json["version"],
3026
+ "source": !exists(json, "source") ? void 0 : json["source"],
2715
3027
  "integrity": !exists(json, "integrity") ? void 0 : json["integrity"],
2716
3028
  "assetsUrl": !exists(json, "assetsUrl") ? void 0 : json["assetsUrl"],
2717
3029
  "entrypoints": !exists(json, "entrypoints") ? void 0 : ResolvePageResponseAllOfDataSnapshotManifestEntrypointsFromJSON(json["entrypoints"])
@@ -2727,6 +3039,7 @@ function ResolvePageResponseAllOfDataSnapshotManifestComponentsToJSON(value) {
2727
3039
  return {
2728
3040
  "name": value.name,
2729
3041
  "version": value.version,
3042
+ "source": value.source,
2730
3043
  "integrity": value.integrity,
2731
3044
  "assetsUrl": value.assetsUrl,
2732
3045
  "entrypoints": ResolvePageResponseAllOfDataSnapshotManifestEntrypointsToJSON(value.entrypoints)
@@ -2979,6 +3292,8 @@ function ResolvePageResponseAllOfDataFromJSONTyped(json, ignoreDiscriminator) {
2979
3292
  "ops": OpsConfigFromJSON(json["ops"]),
2980
3293
  "etag": json["etag"],
2981
3294
  "cacheTtlSeconds": json["cacheTtlSeconds"],
3295
+ "traceId": !exists(json, "traceId") ? void 0 : json["traceId"],
3296
+ "runtimeVersion": !exists(json, "runtimeVersion") ? void 0 : json["runtimeVersion"],
2982
3297
  "rolloutMatch": !exists(json, "rolloutMatch") ? void 0 : ResolvePageResponseAllOfDataRolloutMatchFromJSON(json["rolloutMatch"]),
2983
3298
  "snapshot": !exists(json, "snapshot") ? void 0 : ResolvePageResponseAllOfDataSnapshotFromJSON(json["snapshot"])
2984
3299
  };
@@ -2999,6 +3314,8 @@ function ResolvePageResponseAllOfDataToJSON(value) {
2999
3314
  "ops": OpsConfigToJSON(value.ops),
3000
3315
  "etag": value.etag,
3001
3316
  "cacheTtlSeconds": value.cacheTtlSeconds,
3317
+ "traceId": value.traceId,
3318
+ "runtimeVersion": value.runtimeVersion,
3002
3319
  "rolloutMatch": ResolvePageResponseAllOfDataRolloutMatchToJSON(value.rolloutMatch),
3003
3320
  "snapshot": ResolvePageResponseAllOfDataSnapshotToJSON(value.snapshot)
3004
3321
  };
@@ -3158,38 +3475,6 @@ function ResolveTenantRequestToJSON(value) {
3158
3475
  };
3159
3476
  }
3160
3477
 
3161
- // src/generated/models/ResourceManifests.ts
3162
- function instanceOfResourceManifests(value) {
3163
- let isInstance = true;
3164
- return isInstance;
3165
- }
3166
- function ResourceManifestsFromJSON(json) {
3167
- return ResourceManifestsFromJSONTyped(json, false);
3168
- }
3169
- function ResourceManifestsFromJSONTyped(json, ignoreDiscriminator) {
3170
- if (json === void 0 || json === null) {
3171
- return json;
3172
- }
3173
- return {
3174
- "components": !exists(json, "components") ? void 0 : json["components"].map(ComponentManifestFromJSON),
3175
- "actions": !exists(json, "actions") ? void 0 : json["actions"].map(ActionManifestFromJSON),
3176
- "queries": !exists(json, "queries") ? void 0 : json["queries"].map(QueryManifestFromJSON)
3177
- };
3178
- }
3179
- function ResourceManifestsToJSON(value) {
3180
- if (value === void 0) {
3181
- return void 0;
3182
- }
3183
- if (value === null) {
3184
- return null;
3185
- }
3186
- return {
3187
- "components": value.components === void 0 ? void 0 : value.components.map(ComponentManifestToJSON),
3188
- "actions": value.actions === void 0 ? void 0 : value.actions.map(ActionManifestToJSON),
3189
- "queries": value.queries === void 0 ? void 0 : value.queries.map(QueryManifestToJSON)
3190
- };
3191
- }
3192
-
3193
3478
  // src/generated/models/SuccessResponse.ts
3194
3479
  function instanceOfSuccessResponse(value) {
3195
3480
  let isInstance = true;
@@ -3633,6 +3918,12 @@ var ActionsApi = class extends BaseAPI {
3633
3918
  const queryParameters = {};
3634
3919
  const headerParameters = {};
3635
3920
  headerParameters["Content-Type"] = "application/json";
3921
+ if (requestParameters.idempotencyKey !== void 0 && requestParameters.idempotencyKey !== null) {
3922
+ headerParameters["Idempotency-Key"] = String(requestParameters.idempotencyKey);
3923
+ }
3924
+ if (requestParameters.xTraceId !== void 0 && requestParameters.xTraceId !== null) {
3925
+ headerParameters["X-Trace-Id"] = String(requestParameters.xTraceId);
3926
+ }
3636
3927
  if (this.configuration && this.configuration.apiKey) {
3637
3928
  headerParameters["X-API-Key"] = this.configuration.apiKey("X-API-Key");
3638
3929
  }
@@ -3800,6 +4091,32 @@ var ActivitiesApi = class extends BaseAPI {
3800
4091
  const response = await this.getActivityStateRaw(requestParameters, initOverrides);
3801
4092
  return await response.value();
3802
4093
  }
4094
+ /**
4095
+ * 获取活动的当前状态信息,包括是否进行中、时间范围等。 不需要登录,可用于前端判断活动是否在有效期内。
4096
+ * 获取活动状态(兼容)
4097
+ */
4098
+ async getActivityStatusRaw(requestParameters, initOverrides) {
4099
+ if (requestParameters.activityId === null || requestParameters.activityId === void 0) {
4100
+ throw new RequiredError("activityId", "Required parameter requestParameters.activityId was null or undefined when calling getActivityStatus.");
4101
+ }
4102
+ const queryParameters = {};
4103
+ const headerParameters = {};
4104
+ const response = await this.request({
4105
+ path: `/activities/{activityId}/status`.replace(`{${"activityId"}}`, encodeURIComponent(String(requestParameters.activityId))),
4106
+ method: "GET",
4107
+ headers: headerParameters,
4108
+ query: queryParameters
4109
+ }, initOverrides);
4110
+ return new JSONApiResponse(response, (jsonValue) => GetActivityStatus200ResponseFromJSON(jsonValue));
4111
+ }
4112
+ /**
4113
+ * 获取活动的当前状态信息,包括是否进行中、时间范围等。 不需要登录,可用于前端判断活动是否在有效期内。
4114
+ * 获取活动状态(兼容)
4115
+ */
4116
+ async getActivityStatus(requestParameters, initOverrides) {
4117
+ const response = await this.getActivityStatusRaw(requestParameters, initOverrides);
4118
+ return await response.value();
4119
+ }
3803
4120
  /**
3804
4121
  * 获取用户在指定活动中的领取记录
3805
4122
  * 获取领取记录
@@ -3839,6 +4156,45 @@ var ActivitiesApi = class extends BaseAPI {
3839
4156
  const response = await this.getClaimRecordsRaw(requestParameters, initOverrides);
3840
4157
  return await response.value();
3841
4158
  }
4159
+ /**
4160
+ * 获取用户在指定活动中的领取状态
4161
+ * 获取领取状态
4162
+ */
4163
+ async getClaimStatusRaw(requestParameters, initOverrides) {
4164
+ if (requestParameters.activityId === null || requestParameters.activityId === void 0) {
4165
+ throw new RequiredError("activityId", "Required parameter requestParameters.activityId was null or undefined when calling getClaimStatus.");
4166
+ }
4167
+ if (requestParameters.uid === null || requestParameters.uid === void 0) {
4168
+ throw new RequiredError("uid", "Required parameter requestParameters.uid was null or undefined when calling getClaimStatus.");
4169
+ }
4170
+ const queryParameters = {};
4171
+ if (requestParameters.uid !== void 0) {
4172
+ queryParameters["uid"] = requestParameters.uid;
4173
+ }
4174
+ const headerParameters = {};
4175
+ if (this.configuration && this.configuration.accessToken) {
4176
+ const token = this.configuration.accessToken;
4177
+ const tokenString = await token("BearerAuth", []);
4178
+ if (tokenString) {
4179
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4180
+ }
4181
+ }
4182
+ const response = await this.request({
4183
+ path: `/activities/{activityId}/claim/status`.replace(`{${"activityId"}}`, encodeURIComponent(String(requestParameters.activityId))),
4184
+ method: "GET",
4185
+ headers: headerParameters,
4186
+ query: queryParameters
4187
+ }, initOverrides);
4188
+ return new JSONApiResponse(response, (jsonValue) => GetClaimStatus200ResponseFromJSON(jsonValue));
4189
+ }
4190
+ /**
4191
+ * 获取用户在指定活动中的领取状态
4192
+ * 获取领取状态
4193
+ */
4194
+ async getClaimStatus(requestParameters, initOverrides) {
4195
+ const response = await this.getClaimStatusRaw(requestParameters, initOverrides);
4196
+ return await response.value();
4197
+ }
3842
4198
  /**
3843
4199
  * 获取用户在指定活动中的抽奖记录
3844
4200
  * 获取抽奖记录
@@ -3914,6 +4270,45 @@ var ActivitiesApi = class extends BaseAPI {
3914
4270
  const response = await this.getSigninCalendarRaw(requestParameters, initOverrides);
3915
4271
  return await response.value();
3916
4272
  }
4273
+ /**
4274
+ * 获取用户在指定活动中的签到状态
4275
+ * 获取签到状态
4276
+ */
4277
+ async getSigninStatusRaw(requestParameters, initOverrides) {
4278
+ if (requestParameters.activityId === null || requestParameters.activityId === void 0) {
4279
+ throw new RequiredError("activityId", "Required parameter requestParameters.activityId was null or undefined when calling getSigninStatus.");
4280
+ }
4281
+ if (requestParameters.uid === null || requestParameters.uid === void 0) {
4282
+ throw new RequiredError("uid", "Required parameter requestParameters.uid was null or undefined when calling getSigninStatus.");
4283
+ }
4284
+ const queryParameters = {};
4285
+ if (requestParameters.uid !== void 0) {
4286
+ queryParameters["uid"] = requestParameters.uid;
4287
+ }
4288
+ const headerParameters = {};
4289
+ if (this.configuration && this.configuration.accessToken) {
4290
+ const token = this.configuration.accessToken;
4291
+ const tokenString = await token("BearerAuth", []);
4292
+ if (tokenString) {
4293
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4294
+ }
4295
+ }
4296
+ const response = await this.request({
4297
+ path: `/activities/{activityId}/signin/status`.replace(`{${"activityId"}}`, encodeURIComponent(String(requestParameters.activityId))),
4298
+ method: "GET",
4299
+ headers: headerParameters,
4300
+ query: queryParameters
4301
+ }, initOverrides);
4302
+ return new JSONApiResponse(response, (jsonValue) => GetSigninStatus200ResponseFromJSON(jsonValue));
4303
+ }
4304
+ /**
4305
+ * 获取用户在指定活动中的签到状态
4306
+ * 获取签到状态
4307
+ */
4308
+ async getSigninStatus(requestParameters, initOverrides) {
4309
+ const response = await this.getSigninStatusRaw(requestParameters, initOverrides);
4310
+ return await response.value();
4311
+ }
3917
4312
  };
3918
4313
 
3919
4314
  // src/generated/apis/HealthApi.ts
@@ -3991,6 +4386,90 @@ var HealthApi = class extends BaseAPI {
3991
4386
 
3992
4387
  // src/generated/apis/PagesApi.ts
3993
4388
  var PagesApi = class extends BaseAPI {
4389
+ /**
4390
+ * 返回当前运维配置(killSwitch、blockedComponents、featureFlags 等)。 用途: - Runtime 启动时获取全局运维配置 - 判断是否有组件被阻断或功能被关闭
4391
+ * 获取运维配置
4392
+ */
4393
+ async getPageConfigRaw(requestParameters, initOverrides) {
4394
+ const queryParameters = {};
4395
+ if (requestParameters.env !== void 0) {
4396
+ queryParameters["env"] = requestParameters.env;
4397
+ }
4398
+ const headerParameters = {};
4399
+ if (requestParameters.xTraceId !== void 0 && requestParameters.xTraceId !== null) {
4400
+ headerParameters["X-Trace-Id"] = String(requestParameters.xTraceId);
4401
+ }
4402
+ if (this.configuration && this.configuration.apiKey) {
4403
+ headerParameters["X-API-Key"] = this.configuration.apiKey("X-API-Key");
4404
+ }
4405
+ if (this.configuration && this.configuration.accessToken) {
4406
+ const token = this.configuration.accessToken;
4407
+ const tokenString = await token("BearerAuth", []);
4408
+ if (tokenString) {
4409
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4410
+ }
4411
+ }
4412
+ const response = await this.request({
4413
+ path: `/page/config`,
4414
+ method: "GET",
4415
+ headers: headerParameters,
4416
+ query: queryParameters
4417
+ }, initOverrides);
4418
+ return new JSONApiResponse(response, (jsonValue) => GetPageConfig200ResponseFromJSON(jsonValue));
4419
+ }
4420
+ /**
4421
+ * 返回当前运维配置(killSwitch、blockedComponents、featureFlags 等)。 用途: - Runtime 启动时获取全局运维配置 - 判断是否有组件被阻断或功能被关闭
4422
+ * 获取运维配置
4423
+ */
4424
+ async getPageConfig(requestParameters = {}, initOverrides) {
4425
+ const response = await this.getPageConfigRaw(requestParameters, initOverrides);
4426
+ return await response.value();
4427
+ }
4428
+ /**
4429
+ * 返回页面的组件锁定清单(manifest),包含所有引用的组件版本和资源信息。 用途: - Runtime 根据 manifest 预加载组件资源 - Editor 根据 manifest 展示组件依赖
4430
+ * 获取组件清单
4431
+ */
4432
+ async getPageManifestRaw(requestParameters, initOverrides) {
4433
+ if (requestParameters.pageId === null || requestParameters.pageId === void 0) {
4434
+ throw new RequiredError("pageId", "Required parameter requestParameters.pageId was null or undefined when calling getPageManifest.");
4435
+ }
4436
+ const queryParameters = {};
4437
+ if (requestParameters.pageId !== void 0) {
4438
+ queryParameters["pageId"] = requestParameters.pageId;
4439
+ }
4440
+ if (requestParameters.env !== void 0) {
4441
+ queryParameters["env"] = requestParameters.env;
4442
+ }
4443
+ const headerParameters = {};
4444
+ if (requestParameters.xTraceId !== void 0 && requestParameters.xTraceId !== null) {
4445
+ headerParameters["X-Trace-Id"] = String(requestParameters.xTraceId);
4446
+ }
4447
+ if (this.configuration && this.configuration.apiKey) {
4448
+ headerParameters["X-API-Key"] = this.configuration.apiKey("X-API-Key");
4449
+ }
4450
+ if (this.configuration && this.configuration.accessToken) {
4451
+ const token = this.configuration.accessToken;
4452
+ const tokenString = await token("BearerAuth", []);
4453
+ if (tokenString) {
4454
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4455
+ }
4456
+ }
4457
+ const response = await this.request({
4458
+ path: `/page/manifest`,
4459
+ method: "GET",
4460
+ headers: headerParameters,
4461
+ query: queryParameters
4462
+ }, initOverrides);
4463
+ return new JSONApiResponse(response, (jsonValue) => GetPageManifest200ResponseFromJSON(jsonValue));
4464
+ }
4465
+ /**
4466
+ * 返回页面的组件锁定清单(manifest),包含所有引用的组件版本和资源信息。 用途: - Runtime 根据 manifest 预加载组件资源 - Editor 根据 manifest 展示组件依赖
4467
+ * 获取组件清单
4468
+ */
4469
+ async getPageManifest(requestParameters, initOverrides) {
4470
+ const response = await this.getPageManifestRaw(requestParameters, initOverrides);
4471
+ return await response.value();
4472
+ }
3994
4473
  /**
3995
4474
  * Runtime 的核心接口,返回渲染所需的完整数据。 支持两种模式: 1. 稳定入口(推荐):支持灰度/回滚/ops,返回 resolvedVersionId 和 CDN 地址 2. 保底模式:当 includeSnapshot=1 时,返回完整 snapshot(CDN 失败时使用) 响应包含: - resolvedVersionId: 解析后的页面版本 ID(考虑灰度/回滚) - cdnBase: CDN 基础地址 - snapshotUrl: snapshot.json 的完整 URL - manifestUrl: manifest.json 的完整 URL - ops: 运维配置(killSwitch、blockedComponents、flags) - etag: 内容哈希(用于缓存) - cacheTtlSeconds: 缓存 TTL(建议 10~30 秒) - snapshot: 完整快照(仅当 includeSnapshot=1 时返回)
3996
4475
  * 解析页面(Runtime 核心接口)
@@ -4019,6 +4498,9 @@ var PagesApi = class extends BaseAPI {
4019
4498
  queryParameters["includeSnapshot"] = requestParameters.includeSnapshot;
4020
4499
  }
4021
4500
  const headerParameters = {};
4501
+ if (requestParameters.xTraceId !== void 0 && requestParameters.xTraceId !== null) {
4502
+ headerParameters["X-Trace-Id"] = String(requestParameters.xTraceId);
4503
+ }
4022
4504
  if (this.configuration && this.configuration.apiKey) {
4023
4505
  headerParameters["X-API-Key"] = this.configuration.apiKey("X-API-Key");
4024
4506
  }
@@ -4393,9 +4875,9 @@ import {
4393
4875
  var VERSION = "1.0.0";
4394
4876
  export {
4395
4877
  AbortError,
4396
- ActionContextFromJSON,
4397
- ActionContextFromJSONTyped,
4398
- ActionContextToJSON,
4878
+ ActionClientContextFromJSON,
4879
+ ActionClientContextFromJSONTyped,
4880
+ ActionClientContextToJSON,
4399
4881
  ActionDefinitionResponseDataFromJSON,
4400
4882
  ActionDefinitionResponseDataFromJSONTyped,
4401
4883
  ActionDefinitionResponseDataToJSON,
@@ -4412,6 +4894,10 @@ export {
4412
4894
  ActionManifestToJSON,
4413
4895
  ActionsApi,
4414
4896
  ActivitiesApi,
4897
+ ActivityStatusFromJSON,
4898
+ ActivityStatusFromJSONTyped,
4899
+ ActivityStatusToJSON,
4900
+ ActivityStatusTypeEnum,
4415
4901
  ApiError,
4416
4902
  BaseAPI,
4417
4903
  BatchQueryRequestFromJSON,
@@ -4429,17 +4915,18 @@ export {
4429
4915
  BatchQueryResponseFromJSON,
4430
4916
  BatchQueryResponseFromJSONTyped,
4431
4917
  BatchQueryResponseToJSON,
4918
+ BlockedComponentItemFromJSON,
4919
+ BlockedComponentItemFromJSONTyped,
4920
+ BlockedComponentItemToJSON,
4432
4921
  ClaimRecordInfoFromJSON,
4433
4922
  ClaimRecordInfoFromJSONTyped,
4434
4923
  ClaimRecordInfoStatusEnum,
4435
4924
  ClaimRecordInfoToJSON,
4436
4925
  ComponentManifestFromJSON,
4437
4926
  ComponentManifestFromJSONTyped,
4927
+ ComponentManifestSourceEnum,
4438
4928
  ComponentManifestToJSON,
4439
4929
  Configuration,
4440
- ErrorDetailFromJSON,
4441
- ErrorDetailFromJSONTyped,
4442
- ErrorDetailToJSON,
4443
4930
  ErrorResponseFromJSON,
4444
4931
  ErrorResponseFromJSONTyped,
4445
4932
  ErrorResponseToJSON,
@@ -4449,6 +4936,9 @@ export {
4449
4936
  ExecuteActionRequestToJSON,
4450
4937
  ExecuteActionResponseAllOfDataFromJSON,
4451
4938
  ExecuteActionResponseAllOfDataFromJSONTyped,
4939
+ ExecuteActionResponseAllOfDataRiskDecisionFromJSON,
4940
+ ExecuteActionResponseAllOfDataRiskDecisionFromJSONTyped,
4941
+ ExecuteActionResponseAllOfDataRiskDecisionToJSON,
4452
4942
  ExecuteActionResponseAllOfDataToJSON,
4453
4943
  ExecuteActionResponseFromJSON,
4454
4944
  ExecuteActionResponseFromJSONTyped,
@@ -4460,15 +4950,30 @@ export {
4460
4950
  GetActivityState200ResponseFromJSON,
4461
4951
  GetActivityState200ResponseFromJSONTyped,
4462
4952
  GetActivityState200ResponseToJSON,
4953
+ GetActivityStatus200ResponseFromJSON,
4954
+ GetActivityStatus200ResponseFromJSONTyped,
4955
+ GetActivityStatus200ResponseToJSON,
4463
4956
  GetClaimRecords200ResponseFromJSON,
4464
4957
  GetClaimRecords200ResponseFromJSONTyped,
4465
4958
  GetClaimRecords200ResponseToJSON,
4959
+ GetClaimStatus200ResponseFromJSON,
4960
+ GetClaimStatus200ResponseFromJSONTyped,
4961
+ GetClaimStatus200ResponseToJSON,
4466
4962
  GetLotteryRecords200ResponseFromJSON,
4467
4963
  GetLotteryRecords200ResponseFromJSONTyped,
4468
4964
  GetLotteryRecords200ResponseToJSON,
4965
+ GetPageConfig200ResponseFromJSON,
4966
+ GetPageConfig200ResponseFromJSONTyped,
4967
+ GetPageConfig200ResponseToJSON,
4968
+ GetPageManifest200ResponseFromJSON,
4969
+ GetPageManifest200ResponseFromJSONTyped,
4970
+ GetPageManifest200ResponseToJSON,
4469
4971
  GetSigninCalendar200ResponseFromJSON,
4470
4972
  GetSigninCalendar200ResponseFromJSONTyped,
4471
4973
  GetSigninCalendar200ResponseToJSON,
4974
+ GetSigninStatus200ResponseFromJSON,
4975
+ GetSigninStatus200ResponseFromJSONTyped,
4976
+ GetSigninStatus200ResponseToJSON,
4472
4977
  GetTenantConfig200ResponseFromJSON,
4473
4978
  GetTenantConfig200ResponseFromJSONTyped,
4474
4979
  GetTenantConfig200ResponseToJSON,
@@ -4487,6 +4992,10 @@ export {
4487
4992
  IdempotencyConflictResponseFromJSON,
4488
4993
  IdempotencyConflictResponseFromJSONTyped,
4489
4994
  IdempotencyConflictResponseToJSON,
4995
+ KillSwitchItemFromJSON,
4996
+ KillSwitchItemFromJSONTyped,
4997
+ KillSwitchItemTargetTypeEnum,
4998
+ KillSwitchItemToJSON,
4490
4999
  LivenessCheck200ResponseFromJSON,
4491
5000
  LivenessCheck200ResponseFromJSONTyped,
4492
5001
  LivenessCheck200ResponseToJSON,
@@ -4496,9 +5005,6 @@ export {
4496
5005
  LotteryRecordInfoStatusEnum,
4497
5006
  LotteryRecordInfoToJSON,
4498
5007
  NetworkError,
4499
- OpsConfigBlockedComponentsInnerFromJSON,
4500
- OpsConfigBlockedComponentsInnerFromJSONTyped,
4501
- OpsConfigBlockedComponentsInnerToJSON,
4502
5008
  OpsConfigFromJSON,
4503
5009
  OpsConfigFromJSONTyped,
4504
5010
  OpsConfigToJSON,
@@ -4567,6 +5073,7 @@ export {
4567
5073
  ResolvePageResponseAllOfDataSnapshotFromJSONTyped,
4568
5074
  ResolvePageResponseAllOfDataSnapshotManifestComponentsFromJSON,
4569
5075
  ResolvePageResponseAllOfDataSnapshotManifestComponentsFromJSONTyped,
5076
+ ResolvePageResponseAllOfDataSnapshotManifestComponentsSourceEnum,
4570
5077
  ResolvePageResponseAllOfDataSnapshotManifestComponentsToJSON,
4571
5078
  ResolvePageResponseAllOfDataSnapshotManifestEntrypointsFromJSON,
4572
5079
  ResolvePageResponseAllOfDataSnapshotManifestEntrypointsFromJSONTyped,
@@ -4710,37 +5217,44 @@ export {
4710
5217
  createSilentLogger,
4711
5218
  createUserClient,
4712
5219
  createUserConfiguration,
4713
- instanceOfActionContext,
5220
+ instanceOfActionClientContext,
4714
5221
  instanceOfActionDefinitionResponse,
4715
5222
  instanceOfActionDefinitionResponseData,
4716
5223
  instanceOfActionEffect,
4717
5224
  instanceOfActionManifest,
5225
+ instanceOfActivityStatus,
4718
5226
  instanceOfBatchQueryRequest,
4719
5227
  instanceOfBatchQueryRequestQueriesInner,
4720
5228
  instanceOfBatchQueryResponse,
4721
5229
  instanceOfBatchQueryResponseDataValue,
4722
5230
  instanceOfBatchQueryResponseDataValueError,
5231
+ instanceOfBlockedComponentItem,
4723
5232
  instanceOfClaimRecordInfo,
4724
5233
  instanceOfComponentManifest,
4725
- instanceOfErrorDetail,
4726
5234
  instanceOfErrorResponse,
4727
5235
  instanceOfExecuteActionRequest,
4728
5236
  instanceOfExecuteActionResponse,
4729
5237
  instanceOfExecuteActionResponseAllOfData,
5238
+ instanceOfExecuteActionResponseAllOfDataRiskDecision,
4730
5239
  instanceOfGetActivityInfo200Response,
4731
5240
  instanceOfGetActivityState200Response,
5241
+ instanceOfGetActivityStatus200Response,
4732
5242
  instanceOfGetClaimRecords200Response,
5243
+ instanceOfGetClaimStatus200Response,
4733
5244
  instanceOfGetLotteryRecords200Response,
5245
+ instanceOfGetPageConfig200Response,
5246
+ instanceOfGetPageManifest200Response,
4734
5247
  instanceOfGetSigninCalendar200Response,
5248
+ instanceOfGetSigninStatus200Response,
4735
5249
  instanceOfGetTenantConfig200Response,
4736
5250
  instanceOfHealthResponse,
4737
5251
  instanceOfHealthResponseDependenciesValue,
4738
5252
  instanceOfIdempotencyConflictResponse,
4739
5253
  instanceOfIdempotencyConflictResponseData,
5254
+ instanceOfKillSwitchItem,
4740
5255
  instanceOfLivenessCheck200Response,
4741
5256
  instanceOfLotteryRecordInfo,
4742
5257
  instanceOfOpsConfig,
4743
- instanceOfOpsConfigBlockedComponentsInner,
4744
5258
  instanceOfPageResponse,
4745
5259
  instanceOfPageResponseAllOfData,
4746
5260
  instanceOfPageResponseAllOfDataMeta,