@djvlc/openapi-user-client 1.8.1 → 1.8.3

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
@@ -521,25 +521,24 @@ function ActivityStatusResponseToJSON(value) {
521
521
  };
522
522
  }
523
523
 
524
- // src/generated/models/BatchQueryItemRequest.ts
525
- function instanceOfBatchQueryItemRequest(value) {
524
+ // src/generated/models/QueryMetadata.ts
525
+ function instanceOfQueryMetadata(value) {
526
526
  let isInstance = true;
527
- isInstance = isInstance && "queryVersionId" in value;
528
527
  return isInstance;
529
528
  }
530
- function BatchQueryItemRequestFromJSON(json) {
531
- return BatchQueryItemRequestFromJSONTyped(json, false);
529
+ function QueryMetadataFromJSON(json) {
530
+ return QueryMetadataFromJSONTyped(json, false);
532
531
  }
533
- function BatchQueryItemRequestFromJSONTyped(json, ignoreDiscriminator) {
532
+ function QueryMetadataFromJSONTyped(json, ignoreDiscriminator) {
534
533
  if (json === void 0 || json === null) {
535
534
  return json;
536
535
  }
537
536
  return {
538
- "queryVersionId": json["queryVersionId"],
539
- "params": !exists(json, "params") ? void 0 : json["params"]
537
+ "fromCache": !exists(json, "fromCache") ? void 0 : json["fromCache"],
538
+ "duration": !exists(json, "duration") ? void 0 : json["duration"]
540
539
  };
541
540
  }
542
- function BatchQueryItemRequestToJSON(value) {
541
+ function QueryMetadataToJSON(value) {
543
542
  if (value === void 0) {
544
543
  return void 0;
545
544
  }
@@ -547,29 +546,33 @@ function BatchQueryItemRequestToJSON(value) {
547
546
  return null;
548
547
  }
549
548
  return {
550
- "queryVersionId": value.queryVersionId,
551
- "params": value.params
549
+ "fromCache": value.fromCache,
550
+ "duration": value.duration
552
551
  };
553
552
  }
554
553
 
555
- // src/generated/models/BatchQueryRequest.ts
556
- function instanceOfBatchQueryRequest(value) {
554
+ // src/generated/models/QueryDataResponse.ts
555
+ function instanceOfQueryDataResponse(value) {
557
556
  let isInstance = true;
558
- isInstance = isInstance && "queries" in value;
557
+ isInstance = isInstance && "success" in value;
559
558
  return isInstance;
560
559
  }
561
- function BatchQueryRequestFromJSON(json) {
562
- return BatchQueryRequestFromJSONTyped(json, false);
560
+ function QueryDataResponseFromJSON(json) {
561
+ return QueryDataResponseFromJSONTyped(json, false);
563
562
  }
564
- function BatchQueryRequestFromJSONTyped(json, ignoreDiscriminator) {
563
+ function QueryDataResponseFromJSONTyped(json, ignoreDiscriminator) {
565
564
  if (json === void 0 || json === null) {
566
565
  return json;
567
566
  }
568
567
  return {
569
- "queries": json["queries"].map(BatchQueryItemRequestFromJSON)
568
+ "success": json["success"],
569
+ "data": !exists(json, "data") ? void 0 : json["data"],
570
+ "errorCode": !exists(json, "errorCode") ? void 0 : json["errorCode"],
571
+ "errorMessage": !exists(json, "errorMessage") ? void 0 : json["errorMessage"],
572
+ "metadata": !exists(json, "metadata") ? void 0 : QueryMetadataFromJSON(json["metadata"])
570
573
  };
571
574
  }
572
- function BatchQueryRequestToJSON(value) {
575
+ function QueryDataResponseToJSON(value) {
573
576
  if (value === void 0) {
574
577
  return void 0;
575
578
  }
@@ -577,28 +580,32 @@ function BatchQueryRequestToJSON(value) {
577
580
  return null;
578
581
  }
579
582
  return {
580
- "queries": value.queries.map(BatchQueryItemRequestToJSON)
583
+ "success": value.success,
584
+ "data": value.data,
585
+ "errorCode": value.errorCode,
586
+ "errorMessage": value.errorMessage,
587
+ "metadata": QueryMetadataToJSON(value.metadata)
581
588
  };
582
589
  }
583
590
 
584
- // src/generated/models/QueryMetadata.ts
585
- function instanceOfQueryMetadata(value) {
591
+ // src/generated/models/BatchQueryResponse.ts
592
+ function instanceOfBatchQueryResponse(value) {
586
593
  let isInstance = true;
594
+ isInstance = isInstance && "results" in value;
587
595
  return isInstance;
588
596
  }
589
- function QueryMetadataFromJSON(json) {
590
- return QueryMetadataFromJSONTyped(json, false);
597
+ function BatchQueryResponseFromJSON(json) {
598
+ return BatchQueryResponseFromJSONTyped(json, false);
591
599
  }
592
- function QueryMetadataFromJSONTyped(json, ignoreDiscriminator) {
600
+ function BatchQueryResponseFromJSONTyped(json, ignoreDiscriminator) {
593
601
  if (json === void 0 || json === null) {
594
602
  return json;
595
603
  }
596
604
  return {
597
- "fromCache": !exists(json, "fromCache") ? void 0 : json["fromCache"],
598
- "duration": !exists(json, "duration") ? void 0 : json["duration"]
605
+ "results": json["results"].map(QueryDataResponseFromJSON)
599
606
  };
600
607
  }
601
- function QueryMetadataToJSON(value) {
608
+ function BatchQueryResponseToJSON(value) {
602
609
  if (value === void 0) {
603
610
  return void 0;
604
611
  }
@@ -606,33 +613,40 @@ function QueryMetadataToJSON(value) {
606
613
  return null;
607
614
  }
608
615
  return {
609
- "fromCache": value.fromCache,
610
- "duration": value.duration
616
+ "results": value.results.map(QueryDataResponseToJSON)
611
617
  };
612
618
  }
613
619
 
614
- // src/generated/models/QueryDataResponse.ts
615
- function instanceOfQueryDataResponse(value) {
620
+ // src/generated/models/BatchQueryData200Response.ts
621
+ function instanceOfBatchQueryData200Response(value) {
616
622
  let isInstance = true;
617
623
  isInstance = isInstance && "success" in value;
624
+ isInstance = isInstance && "code" in value;
625
+ isInstance = isInstance && "message" in value;
626
+ isInstance = isInstance && "data" in value;
627
+ isInstance = isInstance && "timestamp" in value;
628
+ isInstance = isInstance && "path" in value;
618
629
  return isInstance;
619
630
  }
620
- function QueryDataResponseFromJSON(json) {
621
- return QueryDataResponseFromJSONTyped(json, false);
631
+ function BatchQueryData200ResponseFromJSON(json) {
632
+ return BatchQueryData200ResponseFromJSONTyped(json, false);
622
633
  }
623
- function QueryDataResponseFromJSONTyped(json, ignoreDiscriminator) {
634
+ function BatchQueryData200ResponseFromJSONTyped(json, ignoreDiscriminator) {
624
635
  if (json === void 0 || json === null) {
625
636
  return json;
626
637
  }
627
638
  return {
628
639
  "success": json["success"],
629
- "data": !exists(json, "data") ? void 0 : json["data"],
630
- "errorCode": !exists(json, "errorCode") ? void 0 : json["errorCode"],
631
- "errorMessage": !exists(json, "errorMessage") ? void 0 : json["errorMessage"],
632
- "metadata": !exists(json, "metadata") ? void 0 : QueryMetadataFromJSON(json["metadata"])
640
+ "code": json["code"],
641
+ "message": json["message"],
642
+ "data": BatchQueryResponseFromJSON(json["data"]),
643
+ "timestamp": json["timestamp"],
644
+ "path": json["path"],
645
+ "requestId": !exists(json, "requestId") ? void 0 : json["requestId"],
646
+ "traceId": !exists(json, "traceId") ? void 0 : json["traceId"]
633
647
  };
634
648
  }
635
- function QueryDataResponseToJSON(value) {
649
+ function BatchQueryData200ResponseToJSON(value) {
636
650
  if (value === void 0) {
637
651
  return void 0;
638
652
  }
@@ -641,31 +655,35 @@ function QueryDataResponseToJSON(value) {
641
655
  }
642
656
  return {
643
657
  "success": value.success,
644
- "data": value.data,
645
- "errorCode": value.errorCode,
646
- "errorMessage": value.errorMessage,
647
- "metadata": QueryMetadataToJSON(value.metadata)
658
+ "code": value.code,
659
+ "message": value.message,
660
+ "data": BatchQueryResponseToJSON(value.data),
661
+ "timestamp": value.timestamp,
662
+ "path": value.path,
663
+ "requestId": value.requestId,
664
+ "traceId": value.traceId
648
665
  };
649
666
  }
650
667
 
651
- // src/generated/models/BatchQueryResponse.ts
652
- function instanceOfBatchQueryResponse(value) {
668
+ // src/generated/models/BatchQueryItemRequest.ts
669
+ function instanceOfBatchQueryItemRequest(value) {
653
670
  let isInstance = true;
654
- isInstance = isInstance && "results" in value;
671
+ isInstance = isInstance && "queryVersionId" in value;
655
672
  return isInstance;
656
673
  }
657
- function BatchQueryResponseFromJSON(json) {
658
- return BatchQueryResponseFromJSONTyped(json, false);
674
+ function BatchQueryItemRequestFromJSON(json) {
675
+ return BatchQueryItemRequestFromJSONTyped(json, false);
659
676
  }
660
- function BatchQueryResponseFromJSONTyped(json, ignoreDiscriminator) {
677
+ function BatchQueryItemRequestFromJSONTyped(json, ignoreDiscriminator) {
661
678
  if (json === void 0 || json === null) {
662
679
  return json;
663
680
  }
664
681
  return {
665
- "results": json["results"].map(QueryDataResponseFromJSON)
682
+ "queryVersionId": json["queryVersionId"],
683
+ "params": !exists(json, "params") ? void 0 : json["params"]
666
684
  };
667
685
  }
668
- function BatchQueryResponseToJSON(value) {
686
+ function BatchQueryItemRequestToJSON(value) {
669
687
  if (value === void 0) {
670
688
  return void 0;
671
689
  }
@@ -673,23 +691,54 @@ function BatchQueryResponseToJSON(value) {
673
691
  return null;
674
692
  }
675
693
  return {
676
- "results": value.results.map(QueryDataResponseToJSON)
694
+ "queryVersionId": value.queryVersionId,
695
+ "params": value.params
696
+ };
697
+ }
698
+
699
+ // src/generated/models/BatchQueryRequest.ts
700
+ function instanceOfBatchQueryRequest(value) {
701
+ let isInstance = true;
702
+ isInstance = isInstance && "queries" in value;
703
+ return isInstance;
704
+ }
705
+ function BatchQueryRequestFromJSON(json) {
706
+ return BatchQueryRequestFromJSONTyped(json, false);
707
+ }
708
+ function BatchQueryRequestFromJSONTyped(json, ignoreDiscriminator) {
709
+ if (json === void 0 || json === null) {
710
+ return json;
711
+ }
712
+ return {
713
+ "queries": json["queries"].map(BatchQueryItemRequestFromJSON)
714
+ };
715
+ }
716
+ function BatchQueryRequestToJSON(value) {
717
+ if (value === void 0) {
718
+ return void 0;
719
+ }
720
+ if (value === null) {
721
+ return null;
722
+ }
723
+ return {
724
+ "queries": value.queries.map(BatchQueryItemRequestToJSON)
677
725
  };
678
726
  }
679
727
 
680
- // src/generated/models/BlockedComponent.ts
681
- function instanceOfBlockedComponent(value) {
728
+ // src/generated/models/BlockedComponentItem.ts
729
+ function instanceOfBlockedComponentItem(value) {
682
730
  let isInstance = true;
683
731
  isInstance = isInstance && "name" in value;
684
732
  isInstance = isInstance && "reason" in value;
685
733
  isInstance = isInstance && "blockedAt" in value;
686
734
  isInstance = isInstance && "blockedBy" in value;
735
+ isInstance = isInstance && "urgent" in value;
687
736
  return isInstance;
688
737
  }
689
- function BlockedComponentFromJSON(json) {
690
- return BlockedComponentFromJSONTyped(json, false);
738
+ function BlockedComponentItemFromJSON(json) {
739
+ return BlockedComponentItemFromJSONTyped(json, false);
691
740
  }
692
- function BlockedComponentFromJSONTyped(json, ignoreDiscriminator) {
741
+ function BlockedComponentItemFromJSONTyped(json, ignoreDiscriminator) {
693
742
  if (json === void 0 || json === null) {
694
743
  return json;
695
744
  }
@@ -697,11 +746,13 @@ function BlockedComponentFromJSONTyped(json, ignoreDiscriminator) {
697
746
  "name": json["name"],
698
747
  "version": !exists(json, "version") ? void 0 : json["version"],
699
748
  "reason": json["reason"],
700
- "blockedAt": json["blockedAt"],
701
- "blockedBy": json["blockedBy"]
749
+ "blockedAt": new Date(json["blockedAt"]),
750
+ "blockedBy": json["blockedBy"],
751
+ "fallbackVersion": !exists(json, "fallbackVersion") ? void 0 : json["fallbackVersion"],
752
+ "urgent": json["urgent"]
702
753
  };
703
754
  }
704
- function BlockedComponentToJSON(value) {
755
+ function BlockedComponentItemToJSON(value) {
705
756
  if (value === void 0) {
706
757
  return void 0;
707
758
  }
@@ -712,8 +763,10 @@ function BlockedComponentToJSON(value) {
712
763
  "name": value.name,
713
764
  "version": value.version,
714
765
  "reason": value.reason,
715
- "blockedAt": value.blockedAt,
716
- "blockedBy": value.blockedBy
766
+ "blockedAt": value.blockedAt.toISOString(),
767
+ "blockedBy": value.blockedBy,
768
+ "fallbackVersion": value.fallbackVersion,
769
+ "urgent": value.urgent
717
770
  };
718
771
  }
719
772
 
@@ -787,45 +840,6 @@ function CursorPaginationMetaToJSON(value) {
787
840
  };
788
841
  }
789
842
 
790
- // src/generated/models/DegradeConfig.ts
791
- var DegradeConfigModeEnum = {
792
- FALLBACK: "fallback",
793
- STATIC: "static",
794
- ERROR: "error"
795
- };
796
- function instanceOfDegradeConfig(value) {
797
- let isInstance = true;
798
- isInstance = isInstance && "enabled" in value;
799
- isInstance = isInstance && "mode" in value;
800
- return isInstance;
801
- }
802
- function DegradeConfigFromJSON(json) {
803
- return DegradeConfigFromJSONTyped(json, false);
804
- }
805
- function DegradeConfigFromJSONTyped(json, ignoreDiscriminator) {
806
- if (json === void 0 || json === null) {
807
- return json;
808
- }
809
- return {
810
- "enabled": json["enabled"],
811
- "mode": json["mode"],
812
- "message": !exists(json, "message") ? void 0 : json["message"]
813
- };
814
- }
815
- function DegradeConfigToJSON(value) {
816
- if (value === void 0) {
817
- return void 0;
818
- }
819
- if (value === null) {
820
- return null;
821
- }
822
- return {
823
- "enabled": value.enabled,
824
- "mode": value.mode,
825
- "message": value.message
826
- };
827
- }
828
-
829
843
  // src/generated/models/ErrorResponse.ts
830
844
  function instanceOfErrorResponse(value) {
831
845
  let isInstance = true;
@@ -871,45 +885,6 @@ function ErrorResponseToJSON(value) {
871
885
  };
872
886
  }
873
887
 
874
- // src/generated/models/ExecuteActionRequest.ts
875
- function instanceOfExecuteActionRequest(value) {
876
- let isInstance = true;
877
- isInstance = isInstance && "actionType" in value;
878
- isInstance = isInstance && "params" in value;
879
- isInstance = isInstance && "context" in value;
880
- return isInstance;
881
- }
882
- function ExecuteActionRequestFromJSON(json) {
883
- return ExecuteActionRequestFromJSONTyped(json, false);
884
- }
885
- function ExecuteActionRequestFromJSONTyped(json, ignoreDiscriminator) {
886
- if (json === void 0 || json === null) {
887
- return json;
888
- }
889
- return {
890
- "actionType": json["actionType"],
891
- "actionDefinitionVersionId": !exists(json, "actionDefinitionVersionId") ? void 0 : json["actionDefinitionVersionId"],
892
- "params": json["params"],
893
- "idempotencyKey": !exists(json, "idempotencyKey") ? void 0 : json["idempotencyKey"],
894
- "context": ActionClientContextFromJSON(json["context"])
895
- };
896
- }
897
- function ExecuteActionRequestToJSON(value) {
898
- if (value === void 0) {
899
- return void 0;
900
- }
901
- if (value === null) {
902
- return null;
903
- }
904
- return {
905
- "actionType": value.actionType,
906
- "actionDefinitionVersionId": value.actionDefinitionVersionId,
907
- "params": value.params,
908
- "idempotencyKey": value.idempotencyKey,
909
- "context": ActionClientContextToJSON(value.context)
910
- };
911
- }
912
-
913
888
  // src/generated/models/ExecuteActionResponse.ts
914
889
  function instanceOfExecuteActionResponse(value) {
915
890
  let isInstance = true;
@@ -963,24 +938,36 @@ function ExecuteActionResponseToJSON(value) {
963
938
  };
964
939
  }
965
940
 
966
- // src/generated/models/HealthCheckItem.ts
967
- function instanceOfHealthCheckItem(value) {
941
+ // src/generated/models/ExecuteAction200Response.ts
942
+ function instanceOfExecuteAction200Response(value) {
968
943
  let isInstance = true;
944
+ isInstance = isInstance && "success" in value;
945
+ isInstance = isInstance && "code" in value;
946
+ isInstance = isInstance && "message" in value;
947
+ isInstance = isInstance && "data" in value;
948
+ isInstance = isInstance && "timestamp" in value;
949
+ isInstance = isInstance && "path" in value;
969
950
  return isInstance;
970
951
  }
971
- function HealthCheckItemFromJSON(json) {
972
- return HealthCheckItemFromJSONTyped(json, false);
952
+ function ExecuteAction200ResponseFromJSON(json) {
953
+ return ExecuteAction200ResponseFromJSONTyped(json, false);
973
954
  }
974
- function HealthCheckItemFromJSONTyped(json, ignoreDiscriminator) {
955
+ function ExecuteAction200ResponseFromJSONTyped(json, ignoreDiscriminator) {
975
956
  if (json === void 0 || json === null) {
976
957
  return json;
977
958
  }
978
959
  return {
979
- "status": !exists(json, "status") ? void 0 : json["status"],
980
- "message": !exists(json, "message") ? void 0 : json["message"]
960
+ "success": json["success"],
961
+ "code": json["code"],
962
+ "message": json["message"],
963
+ "data": ExecuteActionResponseFromJSON(json["data"]),
964
+ "timestamp": json["timestamp"],
965
+ "path": json["path"],
966
+ "requestId": !exists(json, "requestId") ? void 0 : json["requestId"],
967
+ "traceId": !exists(json, "traceId") ? void 0 : json["traceId"]
981
968
  };
982
969
  }
983
- function HealthCheckItemToJSON(value) {
970
+ function ExecuteAction200ResponseToJSON(value) {
984
971
  if (value === void 0) {
985
972
  return void 0;
986
973
  }
@@ -988,31 +975,1025 @@ function HealthCheckItemToJSON(value) {
988
975
  return null;
989
976
  }
990
977
  return {
991
- "status": value.status,
992
- "message": value.message
978
+ "success": value.success,
979
+ "code": value.code,
980
+ "message": value.message,
981
+ "data": ExecuteActionResponseToJSON(value.data),
982
+ "timestamp": value.timestamp,
983
+ "path": value.path,
984
+ "requestId": value.requestId,
985
+ "traceId": value.traceId
993
986
  };
994
987
  }
995
988
 
996
- // src/generated/models/HealthCheckResponse.ts
997
- function instanceOfHealthCheckResponse(value) {
989
+ // src/generated/models/ExecuteActionRequest.ts
990
+ function instanceOfExecuteActionRequest(value) {
998
991
  let isInstance = true;
999
- isInstance = isInstance && "status" in value;
1000
- isInstance = isInstance && "timestamp" in value;
992
+ isInstance = isInstance && "actionType" in value;
993
+ isInstance = isInstance && "params" in value;
994
+ isInstance = isInstance && "context" in value;
1001
995
  return isInstance;
1002
996
  }
1003
- function HealthCheckResponseFromJSON(json) {
1004
- return HealthCheckResponseFromJSONTyped(json, false);
997
+ function ExecuteActionRequestFromJSON(json) {
998
+ return ExecuteActionRequestFromJSONTyped(json, false);
1005
999
  }
1006
- function HealthCheckResponseFromJSONTyped(json, ignoreDiscriminator) {
1000
+ function ExecuteActionRequestFromJSONTyped(json, ignoreDiscriminator) {
1007
1001
  if (json === void 0 || json === null) {
1008
1002
  return json;
1009
1003
  }
1010
1004
  return {
1011
- "status": json["status"],
1012
- "timestamp": json["timestamp"]
1005
+ "actionType": json["actionType"],
1006
+ "actionDefinitionVersionId": !exists(json, "actionDefinitionVersionId") ? void 0 : json["actionDefinitionVersionId"],
1007
+ "params": json["params"],
1008
+ "idempotencyKey": !exists(json, "idempotencyKey") ? void 0 : json["idempotencyKey"],
1009
+ "context": ActionClientContextFromJSON(json["context"])
1010
+ };
1011
+ }
1012
+ function ExecuteActionRequestToJSON(value) {
1013
+ if (value === void 0) {
1014
+ return void 0;
1015
+ }
1016
+ if (value === null) {
1017
+ return null;
1018
+ }
1019
+ return {
1020
+ "actionType": value.actionType,
1021
+ "actionDefinitionVersionId": value.actionDefinitionVersionId,
1022
+ "params": value.params,
1023
+ "idempotencyKey": value.idempotencyKey,
1024
+ "context": ActionClientContextToJSON(value.context)
1025
+ };
1026
+ }
1027
+
1028
+ // src/generated/models/GetActionDefinition200Response.ts
1029
+ function instanceOfGetActionDefinition200Response(value) {
1030
+ let isInstance = true;
1031
+ isInstance = isInstance && "success" in value;
1032
+ isInstance = isInstance && "code" in value;
1033
+ isInstance = isInstance && "message" in value;
1034
+ isInstance = isInstance && "data" in value;
1035
+ isInstance = isInstance && "timestamp" in value;
1036
+ isInstance = isInstance && "path" in value;
1037
+ return isInstance;
1038
+ }
1039
+ function GetActionDefinition200ResponseFromJSON(json) {
1040
+ return GetActionDefinition200ResponseFromJSONTyped(json, false);
1041
+ }
1042
+ function GetActionDefinition200ResponseFromJSONTyped(json, ignoreDiscriminator) {
1043
+ if (json === void 0 || json === null) {
1044
+ return json;
1045
+ }
1046
+ return {
1047
+ "success": json["success"],
1048
+ "code": json["code"],
1049
+ "message": json["message"],
1050
+ "data": ActionDefinitionVersionResponseFromJSON(json["data"]),
1051
+ "timestamp": json["timestamp"],
1052
+ "path": json["path"],
1053
+ "requestId": !exists(json, "requestId") ? void 0 : json["requestId"],
1054
+ "traceId": !exists(json, "traceId") ? void 0 : json["traceId"]
1055
+ };
1056
+ }
1057
+ function GetActionDefinition200ResponseToJSON(value) {
1058
+ if (value === void 0) {
1059
+ return void 0;
1060
+ }
1061
+ if (value === null) {
1062
+ return null;
1063
+ }
1064
+ return {
1065
+ "success": value.success,
1066
+ "code": value.code,
1067
+ "message": value.message,
1068
+ "data": ActionDefinitionVersionResponseToJSON(value.data),
1069
+ "timestamp": value.timestamp,
1070
+ "path": value.path,
1071
+ "requestId": value.requestId,
1072
+ "traceId": value.traceId
1073
+ };
1074
+ }
1075
+
1076
+ // src/generated/models/GetActivityInfo200Response.ts
1077
+ function instanceOfGetActivityInfo200Response(value) {
1078
+ let isInstance = true;
1079
+ isInstance = isInstance && "success" in value;
1080
+ isInstance = isInstance && "code" in value;
1081
+ isInstance = isInstance && "message" in value;
1082
+ isInstance = isInstance && "data" in value;
1083
+ isInstance = isInstance && "timestamp" in value;
1084
+ isInstance = isInstance && "path" in value;
1085
+ return isInstance;
1086
+ }
1087
+ function GetActivityInfo200ResponseFromJSON(json) {
1088
+ return GetActivityInfo200ResponseFromJSONTyped(json, false);
1089
+ }
1090
+ function GetActivityInfo200ResponseFromJSONTyped(json, ignoreDiscriminator) {
1091
+ if (json === void 0 || json === null) {
1092
+ return json;
1093
+ }
1094
+ return {
1095
+ "success": json["success"],
1096
+ "code": json["code"],
1097
+ "message": json["message"],
1098
+ "data": ActivityInfoResponseFromJSON(json["data"]),
1099
+ "timestamp": json["timestamp"],
1100
+ "path": json["path"],
1101
+ "requestId": !exists(json, "requestId") ? void 0 : json["requestId"],
1102
+ "traceId": !exists(json, "traceId") ? void 0 : json["traceId"]
1103
+ };
1104
+ }
1105
+ function GetActivityInfo200ResponseToJSON(value) {
1106
+ if (value === void 0) {
1107
+ return void 0;
1108
+ }
1109
+ if (value === null) {
1110
+ return null;
1111
+ }
1112
+ return {
1113
+ "success": value.success,
1114
+ "code": value.code,
1115
+ "message": value.message,
1116
+ "data": ActivityInfoResponseToJSON(value.data),
1117
+ "timestamp": value.timestamp,
1118
+ "path": value.path,
1119
+ "requestId": value.requestId,
1120
+ "traceId": value.traceId
1121
+ };
1122
+ }
1123
+
1124
+ // src/generated/models/GetActivityState200Response.ts
1125
+ function instanceOfGetActivityState200Response(value) {
1126
+ let isInstance = true;
1127
+ isInstance = isInstance && "success" in value;
1128
+ isInstance = isInstance && "code" in value;
1129
+ isInstance = isInstance && "message" in value;
1130
+ isInstance = isInstance && "data" in value;
1131
+ isInstance = isInstance && "timestamp" in value;
1132
+ isInstance = isInstance && "path" in value;
1133
+ return isInstance;
1134
+ }
1135
+ function GetActivityState200ResponseFromJSON(json) {
1136
+ return GetActivityState200ResponseFromJSONTyped(json, false);
1137
+ }
1138
+ function GetActivityState200ResponseFromJSONTyped(json, ignoreDiscriminator) {
1139
+ if (json === void 0 || json === null) {
1140
+ return json;
1141
+ }
1142
+ return {
1143
+ "success": json["success"],
1144
+ "code": json["code"],
1145
+ "message": json["message"],
1146
+ "data": ActivityStatusResponseFromJSON(json["data"]),
1147
+ "timestamp": json["timestamp"],
1148
+ "path": json["path"],
1149
+ "requestId": !exists(json, "requestId") ? void 0 : json["requestId"],
1150
+ "traceId": !exists(json, "traceId") ? void 0 : json["traceId"]
1151
+ };
1152
+ }
1153
+ function GetActivityState200ResponseToJSON(value) {
1154
+ if (value === void 0) {
1155
+ return void 0;
1156
+ }
1157
+ if (value === null) {
1158
+ return null;
1159
+ }
1160
+ return {
1161
+ "success": value.success,
1162
+ "code": value.code,
1163
+ "message": value.message,
1164
+ "data": ActivityStatusResponseToJSON(value.data),
1165
+ "timestamp": value.timestamp,
1166
+ "path": value.path,
1167
+ "requestId": value.requestId,
1168
+ "traceId": value.traceId
1169
+ };
1170
+ }
1171
+
1172
+ // src/generated/models/PaginatedRecordsResponse.ts
1173
+ function instanceOfPaginatedRecordsResponse(value) {
1174
+ let isInstance = true;
1175
+ isInstance = isInstance && "success" in value;
1176
+ isInstance = isInstance && "data" in value;
1177
+ return isInstance;
1178
+ }
1179
+ function PaginatedRecordsResponseFromJSON(json) {
1180
+ return PaginatedRecordsResponseFromJSONTyped(json, false);
1181
+ }
1182
+ function PaginatedRecordsResponseFromJSONTyped(json, ignoreDiscriminator) {
1183
+ if (json === void 0 || json === null) {
1184
+ return json;
1185
+ }
1186
+ return {
1187
+ "success": json["success"],
1188
+ "data": json["data"],
1189
+ "meta": !exists(json, "meta") ? void 0 : CursorPaginationMetaFromJSON(json["meta"])
1190
+ };
1191
+ }
1192
+ function PaginatedRecordsResponseToJSON(value) {
1193
+ if (value === void 0) {
1194
+ return void 0;
1195
+ }
1196
+ if (value === null) {
1197
+ return null;
1198
+ }
1199
+ return {
1200
+ "success": value.success,
1201
+ "data": value.data,
1202
+ "meta": CursorPaginationMetaToJSON(value.meta)
1203
+ };
1204
+ }
1205
+
1206
+ // src/generated/models/GetClaimRecords200Response.ts
1207
+ function instanceOfGetClaimRecords200Response(value) {
1208
+ let isInstance = true;
1209
+ isInstance = isInstance && "success" in value;
1210
+ isInstance = isInstance && "code" in value;
1211
+ isInstance = isInstance && "message" in value;
1212
+ isInstance = isInstance && "data" in value;
1213
+ isInstance = isInstance && "timestamp" in value;
1214
+ isInstance = isInstance && "path" in value;
1215
+ return isInstance;
1216
+ }
1217
+ function GetClaimRecords200ResponseFromJSON(json) {
1218
+ return GetClaimRecords200ResponseFromJSONTyped(json, false);
1219
+ }
1220
+ function GetClaimRecords200ResponseFromJSONTyped(json, ignoreDiscriminator) {
1221
+ if (json === void 0 || json === null) {
1222
+ return json;
1223
+ }
1224
+ return {
1225
+ "success": json["success"],
1226
+ "code": json["code"],
1227
+ "message": json["message"],
1228
+ "data": PaginatedRecordsResponseFromJSON(json["data"]),
1229
+ "timestamp": json["timestamp"],
1230
+ "path": json["path"],
1231
+ "requestId": !exists(json, "requestId") ? void 0 : json["requestId"],
1232
+ "traceId": !exists(json, "traceId") ? void 0 : json["traceId"]
1233
+ };
1234
+ }
1235
+ function GetClaimRecords200ResponseToJSON(value) {
1236
+ if (value === void 0) {
1237
+ return void 0;
1238
+ }
1239
+ if (value === null) {
1240
+ return null;
1241
+ }
1242
+ return {
1243
+ "success": value.success,
1244
+ "code": value.code,
1245
+ "message": value.message,
1246
+ "data": PaginatedRecordsResponseToJSON(value.data),
1247
+ "timestamp": value.timestamp,
1248
+ "path": value.path,
1249
+ "requestId": value.requestId,
1250
+ "traceId": value.traceId
1251
+ };
1252
+ }
1253
+
1254
+ // src/generated/models/GetClaimStatus200Response.ts
1255
+ function instanceOfGetClaimStatus200Response(value) {
1256
+ let isInstance = true;
1257
+ isInstance = isInstance && "success" in value;
1258
+ isInstance = isInstance && "code" in value;
1259
+ isInstance = isInstance && "message" in value;
1260
+ isInstance = isInstance && "data" in value;
1261
+ isInstance = isInstance && "timestamp" in value;
1262
+ isInstance = isInstance && "path" in value;
1263
+ return isInstance;
1264
+ }
1265
+ function GetClaimStatus200ResponseFromJSON(json) {
1266
+ return GetClaimStatus200ResponseFromJSONTyped(json, false);
1267
+ }
1268
+ function GetClaimStatus200ResponseFromJSONTyped(json, ignoreDiscriminator) {
1269
+ if (json === void 0 || json === null) {
1270
+ return json;
1271
+ }
1272
+ return {
1273
+ "success": json["success"],
1274
+ "code": json["code"],
1275
+ "message": json["message"],
1276
+ "data": ClaimStatusResponseFromJSON(json["data"]),
1277
+ "timestamp": json["timestamp"],
1278
+ "path": json["path"],
1279
+ "requestId": !exists(json, "requestId") ? void 0 : json["requestId"],
1280
+ "traceId": !exists(json, "traceId") ? void 0 : json["traceId"]
1281
+ };
1282
+ }
1283
+ function GetClaimStatus200ResponseToJSON(value) {
1284
+ if (value === void 0) {
1285
+ return void 0;
1286
+ }
1287
+ if (value === null) {
1288
+ return null;
1289
+ }
1290
+ return {
1291
+ "success": value.success,
1292
+ "code": value.code,
1293
+ "message": value.message,
1294
+ "data": ClaimStatusResponseToJSON(value.data),
1295
+ "timestamp": value.timestamp,
1296
+ "path": value.path,
1297
+ "requestId": value.requestId,
1298
+ "traceId": value.traceId
1299
+ };
1300
+ }
1301
+
1302
+ // src/generated/models/KillSwitchItem.ts
1303
+ var KillSwitchItemTargetTypeEnum = {
1304
+ ACTION: "action",
1305
+ COMPONENT: "component",
1306
+ FEATURE: "feature",
1307
+ PAGE: "page",
1308
+ QUERY: "query"
1309
+ };
1310
+ function instanceOfKillSwitchItem(value) {
1311
+ let isInstance = true;
1312
+ isInstance = isInstance && "targetType" in value;
1313
+ isInstance = isInstance && "targetId" in value;
1314
+ isInstance = isInstance && "enabled" in value;
1315
+ return isInstance;
1316
+ }
1317
+ function KillSwitchItemFromJSON(json) {
1318
+ return KillSwitchItemFromJSONTyped(json, false);
1319
+ }
1320
+ function KillSwitchItemFromJSONTyped(json, ignoreDiscriminator) {
1321
+ if (json === void 0 || json === null) {
1322
+ return json;
1323
+ }
1324
+ return {
1325
+ "targetType": json["targetType"],
1326
+ "targetId": json["targetId"],
1327
+ "enabled": json["enabled"],
1328
+ "reason": !exists(json, "reason") ? void 0 : json["reason"],
1329
+ "enabledAt": !exists(json, "enabledAt") ? void 0 : new Date(json["enabledAt"]),
1330
+ "enabledBy": !exists(json, "enabledBy") ? void 0 : json["enabledBy"],
1331
+ "userMessage": !exists(json, "userMessage") ? void 0 : json["userMessage"]
1332
+ };
1333
+ }
1334
+ function KillSwitchItemToJSON(value) {
1335
+ if (value === void 0) {
1336
+ return void 0;
1337
+ }
1338
+ if (value === null) {
1339
+ return null;
1340
+ }
1341
+ return {
1342
+ "targetType": value.targetType,
1343
+ "targetId": value.targetId,
1344
+ "enabled": value.enabled,
1345
+ "reason": value.reason,
1346
+ "enabledAt": value.enabledAt === void 0 ? void 0 : value.enabledAt.toISOString(),
1347
+ "enabledBy": value.enabledBy,
1348
+ "userMessage": value.userMessage
1349
+ };
1350
+ }
1351
+
1352
+ // src/generated/models/RateLimitConfig.ts
1353
+ function instanceOfRateLimitConfig(value) {
1354
+ let isInstance = true;
1355
+ return isInstance;
1356
+ }
1357
+ function RateLimitConfigFromJSON(json) {
1358
+ return RateLimitConfigFromJSONTyped(json, false);
1359
+ }
1360
+ function RateLimitConfigFromJSONTyped(json, ignoreDiscriminator) {
1361
+ if (json === void 0 || json === null) {
1362
+ return json;
1363
+ }
1364
+ return {
1365
+ "globalQps": !exists(json, "globalQps") ? void 0 : json["globalQps"],
1366
+ "actionQps": !exists(json, "actionQps") ? void 0 : json["actionQps"]
1367
+ };
1368
+ }
1369
+ function RateLimitConfigToJSON(value) {
1370
+ if (value === void 0) {
1371
+ return void 0;
1372
+ }
1373
+ if (value === null) {
1374
+ return null;
1375
+ }
1376
+ return {
1377
+ "globalQps": value.globalQps,
1378
+ "actionQps": value.actionQps
1379
+ };
1380
+ }
1381
+
1382
+ // src/generated/models/OpsConfig.ts
1383
+ function instanceOfOpsConfig(value) {
1384
+ let isInstance = true;
1385
+ isInstance = isInstance && "killSwitch" in value;
1386
+ isInstance = isInstance && "blockedComponents" in value;
1387
+ isInstance = isInstance && "flags" in value;
1388
+ return isInstance;
1389
+ }
1390
+ function OpsConfigFromJSON(json) {
1391
+ return OpsConfigFromJSONTyped(json, false);
1392
+ }
1393
+ function OpsConfigFromJSONTyped(json, ignoreDiscriminator) {
1394
+ if (json === void 0 || json === null) {
1395
+ return json;
1396
+ }
1397
+ return {
1398
+ "configVersionId": !exists(json, "configVersionId") ? void 0 : json["configVersionId"],
1399
+ "killSwitch": json["killSwitch"].map(KillSwitchItemFromJSON),
1400
+ "blockedComponents": json["blockedComponents"].map(BlockedComponentItemFromJSON),
1401
+ "flags": json["flags"],
1402
+ "rateLimit": !exists(json, "rateLimit") ? void 0 : RateLimitConfigFromJSON(json["rateLimit"]),
1403
+ "expiresAt": !exists(json, "expiresAt") ? void 0 : new Date(json["expiresAt"])
1404
+ };
1405
+ }
1406
+ function OpsConfigToJSON(value) {
1407
+ if (value === void 0) {
1408
+ return void 0;
1409
+ }
1410
+ if (value === null) {
1411
+ return null;
1412
+ }
1413
+ return {
1414
+ "configVersionId": value.configVersionId,
1415
+ "killSwitch": value.killSwitch.map(KillSwitchItemToJSON),
1416
+ "blockedComponents": value.blockedComponents.map(BlockedComponentItemToJSON),
1417
+ "flags": value.flags,
1418
+ "rateLimit": RateLimitConfigToJSON(value.rateLimit),
1419
+ "expiresAt": value.expiresAt === void 0 ? void 0 : value.expiresAt.toISOString()
1420
+ };
1421
+ }
1422
+
1423
+ // src/generated/models/GetPageConfig200Response.ts
1424
+ function instanceOfGetPageConfig200Response(value) {
1425
+ let isInstance = true;
1426
+ isInstance = isInstance && "success" in value;
1427
+ isInstance = isInstance && "code" in value;
1428
+ isInstance = isInstance && "message" in value;
1429
+ isInstance = isInstance && "data" in value;
1430
+ isInstance = isInstance && "timestamp" in value;
1431
+ isInstance = isInstance && "path" in value;
1432
+ return isInstance;
1433
+ }
1434
+ function GetPageConfig200ResponseFromJSON(json) {
1435
+ return GetPageConfig200ResponseFromJSONTyped(json, false);
1436
+ }
1437
+ function GetPageConfig200ResponseFromJSONTyped(json, ignoreDiscriminator) {
1438
+ if (json === void 0 || json === null) {
1439
+ return json;
1440
+ }
1441
+ return {
1442
+ "success": json["success"],
1443
+ "code": json["code"],
1444
+ "message": json["message"],
1445
+ "data": OpsConfigFromJSON(json["data"]),
1446
+ "timestamp": json["timestamp"],
1447
+ "path": json["path"],
1448
+ "requestId": !exists(json, "requestId") ? void 0 : json["requestId"],
1449
+ "traceId": !exists(json, "traceId") ? void 0 : json["traceId"]
1450
+ };
1451
+ }
1452
+ function GetPageConfig200ResponseToJSON(value) {
1453
+ if (value === void 0) {
1454
+ return void 0;
1455
+ }
1456
+ if (value === null) {
1457
+ return null;
1458
+ }
1459
+ return {
1460
+ "success": value.success,
1461
+ "code": value.code,
1462
+ "message": value.message,
1463
+ "data": OpsConfigToJSON(value.data),
1464
+ "timestamp": value.timestamp,
1465
+ "path": value.path,
1466
+ "requestId": value.requestId,
1467
+ "traceId": value.traceId
1468
+ };
1469
+ }
1470
+
1471
+ // src/generated/models/ManifestComponent.ts
1472
+ var ManifestComponentSourceEnum = {
1473
+ BUNDLED: "bundled",
1474
+ REMOTE: "remote"
1475
+ };
1476
+ function instanceOfManifestComponent(value) {
1477
+ let isInstance = true;
1478
+ isInstance = isInstance && "name" in value;
1479
+ isInstance = isInstance && "version" in value;
1480
+ isInstance = isInstance && "source" in value;
1481
+ isInstance = isInstance && "integrity" in value;
1482
+ return isInstance;
1483
+ }
1484
+ function ManifestComponentFromJSON(json) {
1485
+ return ManifestComponentFromJSONTyped(json, false);
1486
+ }
1487
+ function ManifestComponentFromJSONTyped(json, ignoreDiscriminator) {
1488
+ if (json === void 0 || json === null) {
1489
+ return json;
1490
+ }
1491
+ return {
1492
+ "name": json["name"],
1493
+ "version": json["version"],
1494
+ "source": json["source"],
1495
+ "entry": !exists(json, "entry") ? void 0 : json["entry"],
1496
+ "styleEntry": !exists(json, "styleEntry") ? void 0 : json["styleEntry"],
1497
+ "integrity": json["integrity"],
1498
+ "preload": !exists(json, "preload") ? void 0 : json["preload"]
1499
+ };
1500
+ }
1501
+ function ManifestComponentToJSON(value) {
1502
+ if (value === void 0) {
1503
+ return void 0;
1504
+ }
1505
+ if (value === null) {
1506
+ return null;
1507
+ }
1508
+ return {
1509
+ "name": value.name,
1510
+ "version": value.version,
1511
+ "source": value.source,
1512
+ "entry": value.entry,
1513
+ "styleEntry": value.styleEntry,
1514
+ "integrity": value.integrity,
1515
+ "preload": value.preload
1516
+ };
1517
+ }
1518
+
1519
+ // src/generated/models/ManifestRuntime.ts
1520
+ function instanceOfManifestRuntime(value) {
1521
+ let isInstance = true;
1522
+ isInstance = isInstance && "version" in value;
1523
+ isInstance = isInstance && "minVersion" in value;
1524
+ return isInstance;
1525
+ }
1526
+ function ManifestRuntimeFromJSON(json) {
1527
+ return ManifestRuntimeFromJSONTyped(json, false);
1528
+ }
1529
+ function ManifestRuntimeFromJSONTyped(json, ignoreDiscriminator) {
1530
+ if (json === void 0 || json === null) {
1531
+ return json;
1532
+ }
1533
+ return {
1534
+ "version": json["version"],
1535
+ "minVersion": json["minVersion"]
1536
+ };
1537
+ }
1538
+ function ManifestRuntimeToJSON(value) {
1539
+ if (value === void 0) {
1540
+ return void 0;
1541
+ }
1542
+ if (value === null) {
1543
+ return null;
1544
+ }
1545
+ return {
1546
+ "version": value.version,
1547
+ "minVersion": value.minVersion
1548
+ };
1549
+ }
1550
+
1551
+ // src/generated/models/ManifestResponse.ts
1552
+ function instanceOfManifestResponse(value) {
1553
+ let isInstance = true;
1554
+ isInstance = isInstance && "pageVersionId" in value;
1555
+ isInstance = isInstance && "manifestVersion" in value;
1556
+ isInstance = isInstance && "components" in value;
1557
+ isInstance = isInstance && "runtime" in value;
1558
+ return isInstance;
1559
+ }
1560
+ function ManifestResponseFromJSON(json) {
1561
+ return ManifestResponseFromJSONTyped(json, false);
1562
+ }
1563
+ function ManifestResponseFromJSONTyped(json, ignoreDiscriminator) {
1564
+ if (json === void 0 || json === null) {
1565
+ return json;
1566
+ }
1567
+ return {
1568
+ "pageVersionId": json["pageVersionId"],
1569
+ "manifestVersion": json["manifestVersion"],
1570
+ "components": json["components"].map(ManifestComponentFromJSON),
1571
+ "runtime": ManifestRuntimeFromJSON(json["runtime"])
1572
+ };
1573
+ }
1574
+ function ManifestResponseToJSON(value) {
1575
+ if (value === void 0) {
1576
+ return void 0;
1577
+ }
1578
+ if (value === null) {
1579
+ return null;
1580
+ }
1581
+ return {
1582
+ "pageVersionId": value.pageVersionId,
1583
+ "manifestVersion": value.manifestVersion,
1584
+ "components": value.components.map(ManifestComponentToJSON),
1585
+ "runtime": ManifestRuntimeToJSON(value.runtime)
1586
+ };
1587
+ }
1588
+
1589
+ // src/generated/models/GetPageManifest200Response.ts
1590
+ function instanceOfGetPageManifest200Response(value) {
1591
+ let isInstance = true;
1592
+ isInstance = isInstance && "success" in value;
1593
+ isInstance = isInstance && "code" in value;
1594
+ isInstance = isInstance && "message" in value;
1595
+ isInstance = isInstance && "data" in value;
1596
+ isInstance = isInstance && "timestamp" in value;
1597
+ isInstance = isInstance && "path" in value;
1598
+ return isInstance;
1599
+ }
1600
+ function GetPageManifest200ResponseFromJSON(json) {
1601
+ return GetPageManifest200ResponseFromJSONTyped(json, false);
1602
+ }
1603
+ function GetPageManifest200ResponseFromJSONTyped(json, ignoreDiscriminator) {
1604
+ if (json === void 0 || json === null) {
1605
+ return json;
1606
+ }
1607
+ return {
1608
+ "success": json["success"],
1609
+ "code": json["code"],
1610
+ "message": json["message"],
1611
+ "data": ManifestResponseFromJSON(json["data"]),
1612
+ "timestamp": json["timestamp"],
1613
+ "path": json["path"],
1614
+ "requestId": !exists(json, "requestId") ? void 0 : json["requestId"],
1615
+ "traceId": !exists(json, "traceId") ? void 0 : json["traceId"]
1616
+ };
1617
+ }
1618
+ function GetPageManifest200ResponseToJSON(value) {
1619
+ if (value === void 0) {
1620
+ return void 0;
1621
+ }
1622
+ if (value === null) {
1623
+ return null;
1624
+ }
1625
+ return {
1626
+ "success": value.success,
1627
+ "code": value.code,
1628
+ "message": value.message,
1629
+ "data": ManifestResponseToJSON(value.data),
1630
+ "timestamp": value.timestamp,
1631
+ "path": value.path,
1632
+ "requestId": value.requestId,
1633
+ "traceId": value.traceId
1634
+ };
1635
+ }
1636
+
1637
+ // src/generated/models/QueryDefinitionResponse.ts
1638
+ var QueryDefinitionResponseStatusEnum = {
1639
+ DRAFT: "draft",
1640
+ STABLE: "stable",
1641
+ DEPRECATED: "deprecated",
1642
+ BLOCKED: "blocked"
1643
+ };
1644
+ function instanceOfQueryDefinitionResponse(value) {
1645
+ let isInstance = true;
1646
+ isInstance = isInstance && "uid" in value;
1647
+ isInstance = isInstance && "queryUid" in value;
1648
+ isInstance = isInstance && "versionNumber" in value;
1649
+ isInstance = isInstance && "spec" in value;
1650
+ isInstance = isInstance && "status" in value;
1651
+ return isInstance;
1652
+ }
1653
+ function QueryDefinitionResponseFromJSON(json) {
1654
+ return QueryDefinitionResponseFromJSONTyped(json, false);
1655
+ }
1656
+ function QueryDefinitionResponseFromJSONTyped(json, ignoreDiscriminator) {
1657
+ if (json === void 0 || json === null) {
1658
+ return json;
1659
+ }
1660
+ return {
1661
+ "uid": json["uid"],
1662
+ "queryUid": json["queryUid"],
1663
+ "versionNumber": json["versionNumber"],
1664
+ "versionLabel": !exists(json, "versionLabel") ? void 0 : json["versionLabel"],
1665
+ "spec": json["spec"],
1666
+ "status": json["status"]
1667
+ };
1668
+ }
1669
+ function QueryDefinitionResponseToJSON(value) {
1670
+ if (value === void 0) {
1671
+ return void 0;
1672
+ }
1673
+ if (value === null) {
1674
+ return null;
1675
+ }
1676
+ return {
1677
+ "uid": value.uid,
1678
+ "queryUid": value.queryUid,
1679
+ "versionNumber": value.versionNumber,
1680
+ "versionLabel": value.versionLabel,
1681
+ "spec": value.spec,
1682
+ "status": value.status
1683
+ };
1684
+ }
1685
+
1686
+ // src/generated/models/GetQueryDefinition200Response.ts
1687
+ function instanceOfGetQueryDefinition200Response(value) {
1688
+ let isInstance = true;
1689
+ isInstance = isInstance && "success" in value;
1690
+ isInstance = isInstance && "code" in value;
1691
+ isInstance = isInstance && "message" in value;
1692
+ isInstance = isInstance && "data" in value;
1693
+ isInstance = isInstance && "timestamp" in value;
1694
+ isInstance = isInstance && "path" in value;
1695
+ return isInstance;
1696
+ }
1697
+ function GetQueryDefinition200ResponseFromJSON(json) {
1698
+ return GetQueryDefinition200ResponseFromJSONTyped(json, false);
1699
+ }
1700
+ function GetQueryDefinition200ResponseFromJSONTyped(json, ignoreDiscriminator) {
1701
+ if (json === void 0 || json === null) {
1702
+ return json;
1703
+ }
1704
+ return {
1705
+ "success": json["success"],
1706
+ "code": json["code"],
1707
+ "message": json["message"],
1708
+ "data": QueryDefinitionResponseFromJSON(json["data"]),
1709
+ "timestamp": json["timestamp"],
1710
+ "path": json["path"],
1711
+ "requestId": !exists(json, "requestId") ? void 0 : json["requestId"],
1712
+ "traceId": !exists(json, "traceId") ? void 0 : json["traceId"]
1713
+ };
1714
+ }
1715
+ function GetQueryDefinition200ResponseToJSON(value) {
1716
+ if (value === void 0) {
1717
+ return void 0;
1718
+ }
1719
+ if (value === null) {
1720
+ return null;
1721
+ }
1722
+ return {
1723
+ "success": value.success,
1724
+ "code": value.code,
1725
+ "message": value.message,
1726
+ "data": QueryDefinitionResponseToJSON(value.data),
1727
+ "timestamp": value.timestamp,
1728
+ "path": value.path,
1729
+ "requestId": value.requestId,
1730
+ "traceId": value.traceId
1731
+ };
1732
+ }
1733
+
1734
+ // src/generated/models/SigninCalendarData.ts
1735
+ function instanceOfSigninCalendarData(value) {
1736
+ let isInstance = true;
1737
+ isInstance = isInstance && "activityId" in value;
1738
+ isInstance = isInstance && "month" in value;
1739
+ isInstance = isInstance && "signedDates" in value;
1740
+ isInstance = isInstance && "consecutiveDays" in value;
1741
+ isInstance = isInstance && "totalDays" in value;
1742
+ return isInstance;
1743
+ }
1744
+ function SigninCalendarDataFromJSON(json) {
1745
+ return SigninCalendarDataFromJSONTyped(json, false);
1746
+ }
1747
+ function SigninCalendarDataFromJSONTyped(json, ignoreDiscriminator) {
1748
+ if (json === void 0 || json === null) {
1749
+ return json;
1750
+ }
1751
+ return {
1752
+ "activityId": json["activityId"],
1753
+ "month": json["month"],
1754
+ "signedDates": json["signedDates"],
1755
+ "consecutiveDays": json["consecutiveDays"],
1756
+ "totalDays": json["totalDays"]
1757
+ };
1758
+ }
1759
+ function SigninCalendarDataToJSON(value) {
1760
+ if (value === void 0) {
1761
+ return void 0;
1762
+ }
1763
+ if (value === null) {
1764
+ return null;
1765
+ }
1766
+ return {
1767
+ "activityId": value.activityId,
1768
+ "month": value.month,
1769
+ "signedDates": value.signedDates,
1770
+ "consecutiveDays": value.consecutiveDays,
1771
+ "totalDays": value.totalDays
1772
+ };
1773
+ }
1774
+
1775
+ // src/generated/models/SigninCalendarResponse.ts
1776
+ function instanceOfSigninCalendarResponse(value) {
1777
+ let isInstance = true;
1778
+ isInstance = isInstance && "success" in value;
1779
+ isInstance = isInstance && "data" in value;
1780
+ return isInstance;
1781
+ }
1782
+ function SigninCalendarResponseFromJSON(json) {
1783
+ return SigninCalendarResponseFromJSONTyped(json, false);
1784
+ }
1785
+ function SigninCalendarResponseFromJSONTyped(json, ignoreDiscriminator) {
1786
+ if (json === void 0 || json === null) {
1787
+ return json;
1788
+ }
1789
+ return {
1790
+ "success": json["success"],
1791
+ "data": SigninCalendarDataFromJSON(json["data"])
1792
+ };
1793
+ }
1794
+ function SigninCalendarResponseToJSON(value) {
1795
+ if (value === void 0) {
1796
+ return void 0;
1797
+ }
1798
+ if (value === null) {
1799
+ return null;
1800
+ }
1801
+ return {
1802
+ "success": value.success,
1803
+ "data": SigninCalendarDataToJSON(value.data)
1804
+ };
1805
+ }
1806
+
1807
+ // src/generated/models/GetSigninCalendar200Response.ts
1808
+ function instanceOfGetSigninCalendar200Response(value) {
1809
+ let isInstance = true;
1810
+ isInstance = isInstance && "success" in value;
1811
+ isInstance = isInstance && "code" in value;
1812
+ isInstance = isInstance && "message" in value;
1813
+ isInstance = isInstance && "data" in value;
1814
+ isInstance = isInstance && "timestamp" in value;
1815
+ isInstance = isInstance && "path" in value;
1816
+ return isInstance;
1817
+ }
1818
+ function GetSigninCalendar200ResponseFromJSON(json) {
1819
+ return GetSigninCalendar200ResponseFromJSONTyped(json, false);
1820
+ }
1821
+ function GetSigninCalendar200ResponseFromJSONTyped(json, ignoreDiscriminator) {
1822
+ if (json === void 0 || json === null) {
1823
+ return json;
1824
+ }
1825
+ return {
1826
+ "success": json["success"],
1827
+ "code": json["code"],
1828
+ "message": json["message"],
1829
+ "data": SigninCalendarResponseFromJSON(json["data"]),
1830
+ "timestamp": json["timestamp"],
1831
+ "path": json["path"],
1832
+ "requestId": !exists(json, "requestId") ? void 0 : json["requestId"],
1833
+ "traceId": !exists(json, "traceId") ? void 0 : json["traceId"]
1834
+ };
1835
+ }
1836
+ function GetSigninCalendar200ResponseToJSON(value) {
1837
+ if (value === void 0) {
1838
+ return void 0;
1839
+ }
1840
+ if (value === null) {
1841
+ return null;
1842
+ }
1843
+ return {
1844
+ "success": value.success,
1845
+ "code": value.code,
1846
+ "message": value.message,
1847
+ "data": SigninCalendarResponseToJSON(value.data),
1848
+ "timestamp": value.timestamp,
1849
+ "path": value.path,
1850
+ "requestId": value.requestId,
1851
+ "traceId": value.traceId
1852
+ };
1853
+ }
1854
+
1855
+ // src/generated/models/RewardInfo.ts
1856
+ function instanceOfRewardInfo(value) {
1857
+ let isInstance = true;
1858
+ isInstance = isInstance && "type" in value;
1859
+ isInstance = isInstance && "value" in value;
1860
+ isInstance = isInstance && "description" in value;
1861
+ return isInstance;
1862
+ }
1863
+ function RewardInfoFromJSON(json) {
1864
+ return RewardInfoFromJSONTyped(json, false);
1865
+ }
1866
+ function RewardInfoFromJSONTyped(json, ignoreDiscriminator) {
1867
+ if (json === void 0 || json === null) {
1868
+ return json;
1869
+ }
1870
+ return {
1871
+ "type": json["type"],
1872
+ "value": json["value"],
1873
+ "description": json["description"]
1874
+ };
1875
+ }
1876
+ function RewardInfoToJSON(value) {
1877
+ if (value === void 0) {
1878
+ return void 0;
1879
+ }
1880
+ if (value === null) {
1881
+ return null;
1882
+ }
1883
+ return {
1884
+ "type": value.type,
1885
+ "value": value.value,
1886
+ "description": value.description
1887
+ };
1888
+ }
1889
+
1890
+ // src/generated/models/MilestoneInfo.ts
1891
+ function instanceOfMilestoneInfo(value) {
1892
+ let isInstance = true;
1893
+ isInstance = isInstance && "days" in value;
1894
+ isInstance = isInstance && "reward" in value;
1895
+ return isInstance;
1896
+ }
1897
+ function MilestoneInfoFromJSON(json) {
1898
+ return MilestoneInfoFromJSONTyped(json, false);
1899
+ }
1900
+ function MilestoneInfoFromJSONTyped(json, ignoreDiscriminator) {
1901
+ if (json === void 0 || json === null) {
1902
+ return json;
1903
+ }
1904
+ return {
1905
+ "days": json["days"],
1906
+ "reward": RewardInfoFromJSON(json["reward"])
1907
+ };
1908
+ }
1909
+ function MilestoneInfoToJSON(value) {
1910
+ if (value === void 0) {
1911
+ return void 0;
1912
+ }
1913
+ if (value === null) {
1914
+ return null;
1915
+ }
1916
+ return {
1917
+ "days": value.days,
1918
+ "reward": RewardInfoToJSON(value.reward)
1919
+ };
1920
+ }
1921
+
1922
+ // src/generated/models/SigninStatusResponse.ts
1923
+ function instanceOfSigninStatusResponse(value) {
1924
+ let isInstance = true;
1925
+ isInstance = isInstance && "activityUid" in value;
1926
+ isInstance = isInstance && "hasSignedToday" in value;
1927
+ isInstance = isInstance && "consecutiveDays" in value;
1928
+ isInstance = isInstance && "totalDays" in value;
1929
+ isInstance = isInstance && "signedDates" in value;
1930
+ return isInstance;
1931
+ }
1932
+ function SigninStatusResponseFromJSON(json) {
1933
+ return SigninStatusResponseFromJSONTyped(json, false);
1934
+ }
1935
+ function SigninStatusResponseFromJSONTyped(json, ignoreDiscriminator) {
1936
+ if (json === void 0 || json === null) {
1937
+ return json;
1938
+ }
1939
+ return {
1940
+ "activityUid": json["activityUid"],
1941
+ "hasSignedToday": json["hasSignedToday"],
1942
+ "consecutiveDays": json["consecutiveDays"],
1943
+ "totalDays": json["totalDays"],
1944
+ "signedDates": json["signedDates"],
1945
+ "todayReward": !exists(json, "todayReward") ? void 0 : RewardInfoFromJSON(json["todayReward"]),
1946
+ "nextMilestone": !exists(json, "nextMilestone") ? void 0 : MilestoneInfoFromJSON(json["nextMilestone"])
1947
+ };
1948
+ }
1949
+ function SigninStatusResponseToJSON(value) {
1950
+ if (value === void 0) {
1951
+ return void 0;
1952
+ }
1953
+ if (value === null) {
1954
+ return null;
1955
+ }
1956
+ return {
1957
+ "activityUid": value.activityUid,
1958
+ "hasSignedToday": value.hasSignedToday,
1959
+ "consecutiveDays": value.consecutiveDays,
1960
+ "totalDays": value.totalDays,
1961
+ "signedDates": value.signedDates,
1962
+ "todayReward": RewardInfoToJSON(value.todayReward),
1963
+ "nextMilestone": MilestoneInfoToJSON(value.nextMilestone)
1964
+ };
1965
+ }
1966
+
1967
+ // src/generated/models/GetSigninStatus200Response.ts
1968
+ function instanceOfGetSigninStatus200Response(value) {
1969
+ let isInstance = true;
1970
+ isInstance = isInstance && "success" in value;
1971
+ isInstance = isInstance && "code" in value;
1972
+ isInstance = isInstance && "message" in value;
1973
+ isInstance = isInstance && "data" in value;
1974
+ isInstance = isInstance && "timestamp" in value;
1975
+ isInstance = isInstance && "path" in value;
1976
+ return isInstance;
1977
+ }
1978
+ function GetSigninStatus200ResponseFromJSON(json) {
1979
+ return GetSigninStatus200ResponseFromJSONTyped(json, false);
1980
+ }
1981
+ function GetSigninStatus200ResponseFromJSONTyped(json, ignoreDiscriminator) {
1982
+ if (json === void 0 || json === null) {
1983
+ return json;
1984
+ }
1985
+ return {
1986
+ "success": json["success"],
1987
+ "code": json["code"],
1988
+ "message": json["message"],
1989
+ "data": SigninStatusResponseFromJSON(json["data"]),
1990
+ "timestamp": json["timestamp"],
1991
+ "path": json["path"],
1992
+ "requestId": !exists(json, "requestId") ? void 0 : json["requestId"],
1993
+ "traceId": !exists(json, "traceId") ? void 0 : json["traceId"]
1013
1994
  };
1014
1995
  }
1015
- function HealthCheckResponseToJSON(value) {
1996
+ function GetSigninStatus200ResponseToJSON(value) {
1016
1997
  if (value === void 0) {
1017
1998
  return void 0;
1018
1999
  }
@@ -1020,29 +2001,42 @@ function HealthCheckResponseToJSON(value) {
1020
2001
  return null;
1021
2002
  }
1022
2003
  return {
1023
- "status": value.status,
1024
- "timestamp": value.timestamp
2004
+ "success": value.success,
2005
+ "code": value.code,
2006
+ "message": value.message,
2007
+ "data": SigninStatusResponseToJSON(value.data),
2008
+ "timestamp": value.timestamp,
2009
+ "path": value.path,
2010
+ "requestId": value.requestId,
2011
+ "traceId": value.traceId
1025
2012
  };
1026
2013
  }
1027
2014
 
1028
- // src/generated/models/LivenessResponse.ts
1029
- function instanceOfLivenessResponse(value) {
2015
+ // src/generated/models/TenantConfigData.ts
2016
+ function instanceOfTenantConfigData(value) {
1030
2017
  let isInstance = true;
2018
+ isInstance = isInstance && "appId" in value;
1031
2019
  isInstance = isInstance && "status" in value;
1032
2020
  return isInstance;
1033
2021
  }
1034
- function LivenessResponseFromJSON(json) {
1035
- return LivenessResponseFromJSONTyped(json, false);
2022
+ function TenantConfigDataFromJSON(json) {
2023
+ return TenantConfigDataFromJSONTyped(json, false);
1036
2024
  }
1037
- function LivenessResponseFromJSONTyped(json, ignoreDiscriminator) {
2025
+ function TenantConfigDataFromJSONTyped(json, ignoreDiscriminator) {
1038
2026
  if (json === void 0 || json === null) {
1039
2027
  return json;
1040
2028
  }
1041
2029
  return {
1042
- "status": json["status"]
2030
+ "appId": json["appId"],
2031
+ "status": json["status"],
2032
+ "featureFlags": !exists(json, "featureFlags") ? void 0 : json["featureFlags"],
2033
+ "theme": !exists(json, "theme") ? void 0 : json["theme"],
2034
+ "cdnBase": !exists(json, "cdnBase") ? void 0 : json["cdnBase"],
2035
+ "blockedComponents": !exists(json, "blockedComponents") ? void 0 : json["blockedComponents"],
2036
+ "killSwitch": !exists(json, "killSwitch") ? void 0 : json["killSwitch"]
1043
2037
  };
1044
2038
  }
1045
- function LivenessResponseToJSON(value) {
2039
+ function TenantConfigDataToJSON(value) {
1046
2040
  if (value === void 0) {
1047
2041
  return void 0;
1048
2042
  }
@@ -1050,41 +2044,36 @@ function LivenessResponseToJSON(value) {
1050
2044
  return null;
1051
2045
  }
1052
2046
  return {
1053
- "status": value.status
2047
+ "appId": value.appId,
2048
+ "status": value.status,
2049
+ "featureFlags": value.featureFlags,
2050
+ "theme": value.theme,
2051
+ "cdnBase": value.cdnBase,
2052
+ "blockedComponents": value.blockedComponents,
2053
+ "killSwitch": value.killSwitch
1054
2054
  };
1055
2055
  }
1056
2056
 
1057
- // src/generated/models/ManifestComponent.ts
1058
- var ManifestComponentSourceEnum = {
1059
- BUNDLED: "bundled",
1060
- REMOTE: "remote"
1061
- };
1062
- function instanceOfManifestComponent(value) {
2057
+ // src/generated/models/TenantConfigResponse.ts
2058
+ function instanceOfTenantConfigResponse(value) {
1063
2059
  let isInstance = true;
1064
- isInstance = isInstance && "name" in value;
1065
- isInstance = isInstance && "version" in value;
1066
- isInstance = isInstance && "source" in value;
1067
- isInstance = isInstance && "integrity" in value;
2060
+ isInstance = isInstance && "success" in value;
2061
+ isInstance = isInstance && "data" in value;
1068
2062
  return isInstance;
1069
2063
  }
1070
- function ManifestComponentFromJSON(json) {
1071
- return ManifestComponentFromJSONTyped(json, false);
2064
+ function TenantConfigResponseFromJSON(json) {
2065
+ return TenantConfigResponseFromJSONTyped(json, false);
1072
2066
  }
1073
- function ManifestComponentFromJSONTyped(json, ignoreDiscriminator) {
2067
+ function TenantConfigResponseFromJSONTyped(json, ignoreDiscriminator) {
1074
2068
  if (json === void 0 || json === null) {
1075
2069
  return json;
1076
2070
  }
1077
2071
  return {
1078
- "name": json["name"],
1079
- "version": json["version"],
1080
- "source": json["source"],
1081
- "entry": !exists(json, "entry") ? void 0 : json["entry"],
1082
- "styleEntry": !exists(json, "styleEntry") ? void 0 : json["styleEntry"],
1083
- "integrity": json["integrity"],
1084
- "preload": !exists(json, "preload") ? void 0 : json["preload"]
2072
+ "success": json["success"],
2073
+ "data": TenantConfigDataFromJSON(json["data"])
1085
2074
  };
1086
2075
  }
1087
- function ManifestComponentToJSON(value) {
2076
+ function TenantConfigResponseToJSON(value) {
1088
2077
  if (value === void 0) {
1089
2078
  return void 0;
1090
2079
  }
@@ -1092,36 +2081,41 @@ function ManifestComponentToJSON(value) {
1092
2081
  return null;
1093
2082
  }
1094
2083
  return {
1095
- "name": value.name,
1096
- "version": value.version,
1097
- "source": value.source,
1098
- "entry": value.entry,
1099
- "styleEntry": value.styleEntry,
1100
- "integrity": value.integrity,
1101
- "preload": value.preload
2084
+ "success": value.success,
2085
+ "data": TenantConfigDataToJSON(value.data)
1102
2086
  };
1103
2087
  }
1104
2088
 
1105
- // src/generated/models/ManifestRuntime.ts
1106
- function instanceOfManifestRuntime(value) {
2089
+ // src/generated/models/GetTenantConfig200Response.ts
2090
+ function instanceOfGetTenantConfig200Response(value) {
1107
2091
  let isInstance = true;
1108
- isInstance = isInstance && "version" in value;
1109
- isInstance = isInstance && "minVersion" in value;
2092
+ isInstance = isInstance && "success" in value;
2093
+ isInstance = isInstance && "code" in value;
2094
+ isInstance = isInstance && "message" in value;
2095
+ isInstance = isInstance && "data" in value;
2096
+ isInstance = isInstance && "timestamp" in value;
2097
+ isInstance = isInstance && "path" in value;
1110
2098
  return isInstance;
1111
2099
  }
1112
- function ManifestRuntimeFromJSON(json) {
1113
- return ManifestRuntimeFromJSONTyped(json, false);
2100
+ function GetTenantConfig200ResponseFromJSON(json) {
2101
+ return GetTenantConfig200ResponseFromJSONTyped(json, false);
1114
2102
  }
1115
- function ManifestRuntimeFromJSONTyped(json, ignoreDiscriminator) {
2103
+ function GetTenantConfig200ResponseFromJSONTyped(json, ignoreDiscriminator) {
1116
2104
  if (json === void 0 || json === null) {
1117
2105
  return json;
1118
2106
  }
1119
2107
  return {
1120
- "version": json["version"],
1121
- "minVersion": json["minVersion"]
2108
+ "success": json["success"],
2109
+ "code": json["code"],
2110
+ "message": json["message"],
2111
+ "data": TenantConfigResponseFromJSON(json["data"]),
2112
+ "timestamp": json["timestamp"],
2113
+ "path": json["path"],
2114
+ "requestId": !exists(json, "requestId") ? void 0 : json["requestId"],
2115
+ "traceId": !exists(json, "traceId") ? void 0 : json["traceId"]
1122
2116
  };
1123
2117
  }
1124
- function ManifestRuntimeToJSON(value) {
2118
+ function GetTenantConfig200ResponseToJSON(value) {
1125
2119
  if (value === void 0) {
1126
2120
  return void 0;
1127
2121
  }
@@ -1129,35 +2123,37 @@ function ManifestRuntimeToJSON(value) {
1129
2123
  return null;
1130
2124
  }
1131
2125
  return {
1132
- "version": value.version,
1133
- "minVersion": value.minVersion
2126
+ "success": value.success,
2127
+ "code": value.code,
2128
+ "message": value.message,
2129
+ "data": TenantConfigResponseToJSON(value.data),
2130
+ "timestamp": value.timestamp,
2131
+ "path": value.path,
2132
+ "requestId": value.requestId,
2133
+ "traceId": value.traceId
1134
2134
  };
1135
2135
  }
1136
2136
 
1137
- // src/generated/models/ManifestResponse.ts
1138
- function instanceOfManifestResponse(value) {
2137
+ // src/generated/models/HealthCheckResponse.ts
2138
+ function instanceOfHealthCheckResponse(value) {
1139
2139
  let isInstance = true;
1140
- isInstance = isInstance && "pageVersionId" in value;
1141
- isInstance = isInstance && "manifestVersion" in value;
1142
- isInstance = isInstance && "components" in value;
1143
- isInstance = isInstance && "runtime" in value;
2140
+ isInstance = isInstance && "status" in value;
2141
+ isInstance = isInstance && "timestamp" in value;
1144
2142
  return isInstance;
1145
2143
  }
1146
- function ManifestResponseFromJSON(json) {
1147
- return ManifestResponseFromJSONTyped(json, false);
2144
+ function HealthCheckResponseFromJSON(json) {
2145
+ return HealthCheckResponseFromJSONTyped(json, false);
1148
2146
  }
1149
- function ManifestResponseFromJSONTyped(json, ignoreDiscriminator) {
2147
+ function HealthCheckResponseFromJSONTyped(json, ignoreDiscriminator) {
1150
2148
  if (json === void 0 || json === null) {
1151
2149
  return json;
1152
2150
  }
1153
2151
  return {
1154
- "pageVersionId": json["pageVersionId"],
1155
- "manifestVersion": json["manifestVersion"],
1156
- "components": json["components"].map(ManifestComponentFromJSON),
1157
- "runtime": ManifestRuntimeFromJSON(json["runtime"])
2152
+ "status": json["status"],
2153
+ "timestamp": json["timestamp"]
1158
2154
  };
1159
2155
  }
1160
- function ManifestResponseToJSON(value) {
2156
+ function HealthCheckResponseToJSON(value) {
1161
2157
  if (value === void 0) {
1162
2158
  return void 0;
1163
2159
  }
@@ -1165,35 +2161,41 @@ function ManifestResponseToJSON(value) {
1165
2161
  return null;
1166
2162
  }
1167
2163
  return {
1168
- "pageVersionId": value.pageVersionId,
1169
- "manifestVersion": value.manifestVersion,
1170
- "components": value.components.map(ManifestComponentToJSON),
1171
- "runtime": ManifestRuntimeToJSON(value.runtime)
2164
+ "status": value.status,
2165
+ "timestamp": value.timestamp
1172
2166
  };
1173
2167
  }
1174
2168
 
1175
- // src/generated/models/RewardInfo.ts
1176
- function instanceOfRewardInfo(value) {
2169
+ // src/generated/models/HealthCheck200Response.ts
2170
+ function instanceOfHealthCheck200Response(value) {
1177
2171
  let isInstance = true;
1178
- isInstance = isInstance && "type" in value;
1179
- isInstance = isInstance && "value" in value;
1180
- isInstance = isInstance && "description" in value;
2172
+ isInstance = isInstance && "success" in value;
2173
+ isInstance = isInstance && "code" in value;
2174
+ isInstance = isInstance && "message" in value;
2175
+ isInstance = isInstance && "data" in value;
2176
+ isInstance = isInstance && "timestamp" in value;
2177
+ isInstance = isInstance && "path" in value;
1181
2178
  return isInstance;
1182
2179
  }
1183
- function RewardInfoFromJSON(json) {
1184
- return RewardInfoFromJSONTyped(json, false);
2180
+ function HealthCheck200ResponseFromJSON(json) {
2181
+ return HealthCheck200ResponseFromJSONTyped(json, false);
1185
2182
  }
1186
- function RewardInfoFromJSONTyped(json, ignoreDiscriminator) {
2183
+ function HealthCheck200ResponseFromJSONTyped(json, ignoreDiscriminator) {
1187
2184
  if (json === void 0 || json === null) {
1188
2185
  return json;
1189
2186
  }
1190
2187
  return {
1191
- "type": json["type"],
1192
- "value": json["value"],
1193
- "description": json["description"]
2188
+ "success": json["success"],
2189
+ "code": json["code"],
2190
+ "message": json["message"],
2191
+ "data": HealthCheckResponseFromJSON(json["data"]),
2192
+ "timestamp": json["timestamp"],
2193
+ "path": json["path"],
2194
+ "requestId": !exists(json, "requestId") ? void 0 : json["requestId"],
2195
+ "traceId": !exists(json, "traceId") ? void 0 : json["traceId"]
1194
2196
  };
1195
2197
  }
1196
- function RewardInfoToJSON(value) {
2198
+ function HealthCheck200ResponseToJSON(value) {
1197
2199
  if (value === void 0) {
1198
2200
  return void 0;
1199
2201
  }
@@ -1201,32 +2203,35 @@ function RewardInfoToJSON(value) {
1201
2203
  return null;
1202
2204
  }
1203
2205
  return {
1204
- "type": value.type,
1205
- "value": value.value,
1206
- "description": value.description
2206
+ "success": value.success,
2207
+ "code": value.code,
2208
+ "message": value.message,
2209
+ "data": HealthCheckResponseToJSON(value.data),
2210
+ "timestamp": value.timestamp,
2211
+ "path": value.path,
2212
+ "requestId": value.requestId,
2213
+ "traceId": value.traceId
1207
2214
  };
1208
2215
  }
1209
2216
 
1210
- // src/generated/models/MilestoneInfo.ts
1211
- function instanceOfMilestoneInfo(value) {
2217
+ // src/generated/models/HealthCheckItem.ts
2218
+ function instanceOfHealthCheckItem(value) {
1212
2219
  let isInstance = true;
1213
- isInstance = isInstance && "days" in value;
1214
- isInstance = isInstance && "reward" in value;
1215
2220
  return isInstance;
1216
2221
  }
1217
- function MilestoneInfoFromJSON(json) {
1218
- return MilestoneInfoFromJSONTyped(json, false);
2222
+ function HealthCheckItemFromJSON(json) {
2223
+ return HealthCheckItemFromJSONTyped(json, false);
1219
2224
  }
1220
- function MilestoneInfoFromJSONTyped(json, ignoreDiscriminator) {
2225
+ function HealthCheckItemFromJSONTyped(json, ignoreDiscriminator) {
1221
2226
  if (json === void 0 || json === null) {
1222
2227
  return json;
1223
2228
  }
1224
2229
  return {
1225
- "days": json["days"],
1226
- "reward": RewardInfoFromJSON(json["reward"])
2230
+ "status": !exists(json, "status") ? void 0 : json["status"],
2231
+ "message": !exists(json, "message") ? void 0 : json["message"]
1227
2232
  };
1228
2233
  }
1229
- function MilestoneInfoToJSON(value) {
2234
+ function HealthCheckItemToJSON(value) {
1230
2235
  if (value === void 0) {
1231
2236
  return void 0;
1232
2237
  }
@@ -1234,37 +2239,29 @@ function MilestoneInfoToJSON(value) {
1234
2239
  return null;
1235
2240
  }
1236
2241
  return {
1237
- "days": value.days,
1238
- "reward": RewardInfoToJSON(value.reward)
2242
+ "status": value.status,
2243
+ "message": value.message
1239
2244
  };
1240
2245
  }
1241
2246
 
1242
- // src/generated/models/OpsConfig.ts
1243
- function instanceOfOpsConfig(value) {
2247
+ // src/generated/models/LivenessResponse.ts
2248
+ function instanceOfLivenessResponse(value) {
1244
2249
  let isInstance = true;
1245
- isInstance = isInstance && "killSwitch" in value;
1246
- isInstance = isInstance && "blockedComponents" in value;
1247
- isInstance = isInstance && "blockedPages" in value;
1248
- isInstance = isInstance && "featureFlags" in value;
1249
- isInstance = isInstance && "degradeConfig" in value;
2250
+ isInstance = isInstance && "status" in value;
1250
2251
  return isInstance;
1251
2252
  }
1252
- function OpsConfigFromJSON(json) {
1253
- return OpsConfigFromJSONTyped(json, false);
2253
+ function LivenessResponseFromJSON(json) {
2254
+ return LivenessResponseFromJSONTyped(json, false);
1254
2255
  }
1255
- function OpsConfigFromJSONTyped(json, ignoreDiscriminator) {
2256
+ function LivenessResponseFromJSONTyped(json, ignoreDiscriminator) {
1256
2257
  if (json === void 0 || json === null) {
1257
2258
  return json;
1258
2259
  }
1259
2260
  return {
1260
- "killSwitch": json["killSwitch"],
1261
- "blockedComponents": json["blockedComponents"].map(BlockedComponentFromJSON),
1262
- "blockedPages": json["blockedPages"],
1263
- "featureFlags": json["featureFlags"],
1264
- "degradeConfig": DegradeConfigFromJSON(json["degradeConfig"])
2261
+ "status": json["status"]
1265
2262
  };
1266
2263
  }
1267
- function OpsConfigToJSON(value) {
2264
+ function LivenessResponseToJSON(value) {
1268
2265
  if (value === void 0) {
1269
2266
  return void 0;
1270
2267
  }
@@ -1272,35 +2269,40 @@ function OpsConfigToJSON(value) {
1272
2269
  return null;
1273
2270
  }
1274
2271
  return {
1275
- "killSwitch": value.killSwitch,
1276
- "blockedComponents": value.blockedComponents.map(BlockedComponentToJSON),
1277
- "blockedPages": value.blockedPages,
1278
- "featureFlags": value.featureFlags,
1279
- "degradeConfig": DegradeConfigToJSON(value.degradeConfig)
2272
+ "status": value.status
1280
2273
  };
1281
2274
  }
1282
2275
 
1283
- // src/generated/models/PaginatedRecordsResponse.ts
1284
- function instanceOfPaginatedRecordsResponse(value) {
2276
+ // src/generated/models/LivenessCheck200Response.ts
2277
+ function instanceOfLivenessCheck200Response(value) {
1285
2278
  let isInstance = true;
1286
2279
  isInstance = isInstance && "success" in value;
2280
+ isInstance = isInstance && "code" in value;
2281
+ isInstance = isInstance && "message" in value;
1287
2282
  isInstance = isInstance && "data" in value;
2283
+ isInstance = isInstance && "timestamp" in value;
2284
+ isInstance = isInstance && "path" in value;
1288
2285
  return isInstance;
1289
2286
  }
1290
- function PaginatedRecordsResponseFromJSON(json) {
1291
- return PaginatedRecordsResponseFromJSONTyped(json, false);
2287
+ function LivenessCheck200ResponseFromJSON(json) {
2288
+ return LivenessCheck200ResponseFromJSONTyped(json, false);
1292
2289
  }
1293
- function PaginatedRecordsResponseFromJSONTyped(json, ignoreDiscriminator) {
2290
+ function LivenessCheck200ResponseFromJSONTyped(json, ignoreDiscriminator) {
1294
2291
  if (json === void 0 || json === null) {
1295
2292
  return json;
1296
2293
  }
1297
2294
  return {
1298
2295
  "success": json["success"],
1299
- "data": json["data"],
1300
- "meta": !exists(json, "meta") ? void 0 : CursorPaginationMetaFromJSON(json["meta"])
2296
+ "code": json["code"],
2297
+ "message": json["message"],
2298
+ "data": LivenessResponseFromJSON(json["data"]),
2299
+ "timestamp": json["timestamp"],
2300
+ "path": json["path"],
2301
+ "requestId": !exists(json, "requestId") ? void 0 : json["requestId"],
2302
+ "traceId": !exists(json, "traceId") ? void 0 : json["traceId"]
1301
2303
  };
1302
2304
  }
1303
- function PaginatedRecordsResponseToJSON(value) {
2305
+ function LivenessCheck200ResponseToJSON(value) {
1304
2306
  if (value === void 0) {
1305
2307
  return void 0;
1306
2308
  }
@@ -1309,8 +2311,13 @@ function PaginatedRecordsResponseToJSON(value) {
1309
2311
  }
1310
2312
  return {
1311
2313
  "success": value.success,
1312
- "data": value.data,
1313
- "meta": CursorPaginationMetaToJSON(value.meta)
2314
+ "code": value.code,
2315
+ "message": value.message,
2316
+ "data": LivenessResponseToJSON(value.data),
2317
+ "timestamp": value.timestamp,
2318
+ "path": value.path,
2319
+ "requestId": value.requestId,
2320
+ "traceId": value.traceId
1314
2321
  };
1315
2322
  }
1316
2323
 
@@ -1390,26 +2397,36 @@ function QueryContextToJSON(value) {
1390
2397
  };
1391
2398
  }
1392
2399
 
1393
- // src/generated/models/QueryDataRequest.ts
1394
- function instanceOfQueryDataRequest(value) {
2400
+ // src/generated/models/QueryData200Response.ts
2401
+ function instanceOfQueryData200Response(value) {
1395
2402
  let isInstance = true;
1396
- isInstance = isInstance && "queryVersionId" in value;
2403
+ isInstance = isInstance && "success" in value;
2404
+ isInstance = isInstance && "code" in value;
2405
+ isInstance = isInstance && "message" in value;
2406
+ isInstance = isInstance && "data" in value;
2407
+ isInstance = isInstance && "timestamp" in value;
2408
+ isInstance = isInstance && "path" in value;
1397
2409
  return isInstance;
1398
2410
  }
1399
- function QueryDataRequestFromJSON(json) {
1400
- return QueryDataRequestFromJSONTyped(json, false);
2411
+ function QueryData200ResponseFromJSON(json) {
2412
+ return QueryData200ResponseFromJSONTyped(json, false);
1401
2413
  }
1402
- function QueryDataRequestFromJSONTyped(json, ignoreDiscriminator) {
2414
+ function QueryData200ResponseFromJSONTyped(json, ignoreDiscriminator) {
1403
2415
  if (json === void 0 || json === null) {
1404
2416
  return json;
1405
2417
  }
1406
2418
  return {
1407
- "queryVersionId": json["queryVersionId"],
1408
- "params": !exists(json, "params") ? void 0 : json["params"],
1409
- "context": !exists(json, "context") ? void 0 : QueryContextFromJSON(json["context"])
2419
+ "success": json["success"],
2420
+ "code": json["code"],
2421
+ "message": json["message"],
2422
+ "data": QueryDataResponseFromJSON(json["data"]),
2423
+ "timestamp": json["timestamp"],
2424
+ "path": json["path"],
2425
+ "requestId": !exists(json, "requestId") ? void 0 : json["requestId"],
2426
+ "traceId": !exists(json, "traceId") ? void 0 : json["traceId"]
1410
2427
  };
1411
2428
  }
1412
- function QueryDataRequestToJSON(value) {
2429
+ function QueryData200ResponseToJSON(value) {
1413
2430
  if (value === void 0) {
1414
2431
  return void 0;
1415
2432
  }
@@ -1417,45 +2434,37 @@ function QueryDataRequestToJSON(value) {
1417
2434
  return null;
1418
2435
  }
1419
2436
  return {
1420
- "queryVersionId": value.queryVersionId,
1421
- "params": value.params,
1422
- "context": QueryContextToJSON(value.context)
2437
+ "success": value.success,
2438
+ "code": value.code,
2439
+ "message": value.message,
2440
+ "data": QueryDataResponseToJSON(value.data),
2441
+ "timestamp": value.timestamp,
2442
+ "path": value.path,
2443
+ "requestId": value.requestId,
2444
+ "traceId": value.traceId
1423
2445
  };
1424
2446
  }
1425
2447
 
1426
- // src/generated/models/QueryDefinitionResponse.ts
1427
- var QueryDefinitionResponseStatusEnum = {
1428
- DRAFT: "draft",
1429
- STABLE: "stable",
1430
- DEPRECATED: "deprecated",
1431
- BLOCKED: "blocked"
1432
- };
1433
- function instanceOfQueryDefinitionResponse(value) {
2448
+ // src/generated/models/QueryDataRequest.ts
2449
+ function instanceOfQueryDataRequest(value) {
1434
2450
  let isInstance = true;
1435
- isInstance = isInstance && "uid" in value;
1436
- isInstance = isInstance && "queryUid" in value;
1437
- isInstance = isInstance && "versionNumber" in value;
1438
- isInstance = isInstance && "spec" in value;
1439
- isInstance = isInstance && "status" in value;
2451
+ isInstance = isInstance && "queryVersionId" in value;
1440
2452
  return isInstance;
1441
2453
  }
1442
- function QueryDefinitionResponseFromJSON(json) {
1443
- return QueryDefinitionResponseFromJSONTyped(json, false);
2454
+ function QueryDataRequestFromJSON(json) {
2455
+ return QueryDataRequestFromJSONTyped(json, false);
1444
2456
  }
1445
- function QueryDefinitionResponseFromJSONTyped(json, ignoreDiscriminator) {
2457
+ function QueryDataRequestFromJSONTyped(json, ignoreDiscriminator) {
1446
2458
  if (json === void 0 || json === null) {
1447
2459
  return json;
1448
2460
  }
1449
2461
  return {
1450
- "uid": json["uid"],
1451
- "queryUid": json["queryUid"],
1452
- "versionNumber": json["versionNumber"],
1453
- "versionLabel": !exists(json, "versionLabel") ? void 0 : json["versionLabel"],
1454
- "spec": json["spec"],
1455
- "status": json["status"]
2462
+ "queryVersionId": json["queryVersionId"],
2463
+ "params": !exists(json, "params") ? void 0 : json["params"],
2464
+ "context": !exists(json, "context") ? void 0 : QueryContextFromJSON(json["context"])
1456
2465
  };
1457
2466
  }
1458
- function QueryDefinitionResponseToJSON(value) {
2467
+ function QueryDataRequestToJSON(value) {
1459
2468
  if (value === void 0) {
1460
2469
  return void 0;
1461
2470
  }
@@ -1463,12 +2472,9 @@ function QueryDefinitionResponseToJSON(value) {
1463
2472
  return null;
1464
2473
  }
1465
2474
  return {
1466
- "uid": value.uid,
1467
- "queryUid": value.queryUid,
1468
- "versionNumber": value.versionNumber,
1469
- "versionLabel": value.versionLabel,
1470
- "spec": value.spec,
1471
- "status": value.status
2475
+ "queryVersionId": value.queryVersionId,
2476
+ "params": value.params,
2477
+ "context": QueryContextToJSON(value.context)
1472
2478
  };
1473
2479
  }
1474
2480
 
@@ -1504,40 +2510,36 @@ function ReadinessResponseToJSON(value) {
1504
2510
  };
1505
2511
  }
1506
2512
 
1507
- // src/generated/models/ResolvePageResponse.ts
1508
- function instanceOfResolvePageResponse(value) {
2513
+ // src/generated/models/ReadinessCheck200Response.ts
2514
+ function instanceOfReadinessCheck200Response(value) {
1509
2515
  let isInstance = true;
1510
- isInstance = isInstance && "pageId" in value;
1511
- isInstance = isInstance && "resolvedVersionId" in value;
1512
- isInstance = isInstance && "cdnBase" in value;
1513
- isInstance = isInstance && "snapshotUrl" in value;
1514
- isInstance = isInstance && "manifestUrl" in value;
1515
- isInstance = isInstance && "ops" in value;
1516
- isInstance = isInstance && "etag" in value;
1517
- isInstance = isInstance && "cacheTtlSeconds" in value;
2516
+ isInstance = isInstance && "success" in value;
2517
+ isInstance = isInstance && "code" in value;
2518
+ isInstance = isInstance && "message" in value;
2519
+ isInstance = isInstance && "data" in value;
2520
+ isInstance = isInstance && "timestamp" in value;
2521
+ isInstance = isInstance && "path" in value;
1518
2522
  return isInstance;
1519
2523
  }
1520
- function ResolvePageResponseFromJSON(json) {
1521
- return ResolvePageResponseFromJSONTyped(json, false);
2524
+ function ReadinessCheck200ResponseFromJSON(json) {
2525
+ return ReadinessCheck200ResponseFromJSONTyped(json, false);
1522
2526
  }
1523
- function ResolvePageResponseFromJSONTyped(json, ignoreDiscriminator) {
2527
+ function ReadinessCheck200ResponseFromJSONTyped(json, ignoreDiscriminator) {
1524
2528
  if (json === void 0 || json === null) {
1525
2529
  return json;
1526
2530
  }
1527
2531
  return {
1528
- "pageId": json["pageId"],
1529
- "resolvedVersionId": json["resolvedVersionId"],
1530
- "cdnBase": json["cdnBase"],
1531
- "snapshotUrl": json["snapshotUrl"],
1532
- "manifestUrl": json["manifestUrl"],
1533
- "ops": OpsConfigFromJSON(json["ops"]),
1534
- "etag": json["etag"],
1535
- "cacheTtlSeconds": json["cacheTtlSeconds"],
1536
- "traceId": !exists(json, "traceId") ? void 0 : json["traceId"],
1537
- "runtimeVersion": !exists(json, "runtimeVersion") ? void 0 : json["runtimeVersion"]
2532
+ "success": json["success"],
2533
+ "code": json["code"],
2534
+ "message": json["message"],
2535
+ "data": ReadinessResponseFromJSON(json["data"]),
2536
+ "timestamp": json["timestamp"],
2537
+ "path": json["path"],
2538
+ "requestId": !exists(json, "requestId") ? void 0 : json["requestId"],
2539
+ "traceId": !exists(json, "traceId") ? void 0 : json["traceId"]
1538
2540
  };
1539
2541
  }
1540
- function ResolvePageResponseToJSON(value) {
2542
+ function ReadinessCheck200ResponseToJSON(value) {
1541
2543
  if (value === void 0) {
1542
2544
  return void 0;
1543
2545
  }
@@ -1545,47 +2547,37 @@ function ResolvePageResponseToJSON(value) {
1545
2547
  return null;
1546
2548
  }
1547
2549
  return {
1548
- "pageId": value.pageId,
1549
- "resolvedVersionId": value.resolvedVersionId,
1550
- "cdnBase": value.cdnBase,
1551
- "snapshotUrl": value.snapshotUrl,
1552
- "manifestUrl": value.manifestUrl,
1553
- "ops": OpsConfigToJSON(value.ops),
1554
- "etag": value.etag,
1555
- "cacheTtlSeconds": value.cacheTtlSeconds,
1556
- "traceId": value.traceId,
1557
- "runtimeVersion": value.runtimeVersion
2550
+ "success": value.success,
2551
+ "code": value.code,
2552
+ "message": value.message,
2553
+ "data": ReadinessResponseToJSON(value.data),
2554
+ "timestamp": value.timestamp,
2555
+ "path": value.path,
2556
+ "requestId": value.requestId,
2557
+ "traceId": value.traceId
1558
2558
  };
1559
2559
  }
1560
2560
 
1561
- // src/generated/models/ResolveTenantData.ts
1562
- function instanceOfResolveTenantData(value) {
2561
+ // src/generated/models/RolloutMatch.ts
2562
+ function instanceOfRolloutMatch(value) {
1563
2563
  let isInstance = true;
1564
- isInstance = isInstance && "appId" in value;
1565
- isInstance = isInstance && "name" in value;
1566
- isInstance = isInstance && "status" in value;
1567
- isInstance = isInstance && "type" in value;
2564
+ isInstance = isInstance && "isDefault" in value;
1568
2565
  return isInstance;
1569
2566
  }
1570
- function ResolveTenantDataFromJSON(json) {
1571
- return ResolveTenantDataFromJSONTyped(json, false);
2567
+ function RolloutMatchFromJSON(json) {
2568
+ return RolloutMatchFromJSONTyped(json, false);
1572
2569
  }
1573
- function ResolveTenantDataFromJSONTyped(json, ignoreDiscriminator) {
2570
+ function RolloutMatchFromJSONTyped(json, ignoreDiscriminator) {
1574
2571
  if (json === void 0 || json === null) {
1575
2572
  return json;
1576
2573
  }
1577
2574
  return {
1578
- "appId": json["appId"],
1579
- "name": json["name"],
1580
- "status": json["status"],
1581
- "type": json["type"],
1582
- "logo": !exists(json, "logo") ? void 0 : json["logo"],
1583
- "config": !exists(json, "config") ? void 0 : json["config"],
1584
- "channel": !exists(json, "channel") ? void 0 : json["channel"],
1585
- "domain": !exists(json, "domain") ? void 0 : json["domain"]
2575
+ "strategyId": !exists(json, "strategyId") ? void 0 : json["strategyId"],
2576
+ "strategyName": !exists(json, "strategyName") ? void 0 : json["strategyName"],
2577
+ "isDefault": json["isDefault"]
1586
2578
  };
1587
2579
  }
1588
- function ResolveTenantDataToJSON(value) {
2580
+ function RolloutMatchToJSON(value) {
1589
2581
  if (value === void 0) {
1590
2582
  return void 0;
1591
2583
  }
@@ -1593,36 +2585,47 @@ function ResolveTenantDataToJSON(value) {
1593
2585
  return null;
1594
2586
  }
1595
2587
  return {
1596
- "appId": value.appId,
1597
- "name": value.name,
1598
- "status": value.status,
1599
- "type": value.type,
1600
- "logo": value.logo,
1601
- "config": value.config,
1602
- "channel": value.channel,
1603
- "domain": value.domain
2588
+ "strategyId": value.strategyId,
2589
+ "strategyName": value.strategyName,
2590
+ "isDefault": value.isDefault
1604
2591
  };
1605
2592
  }
1606
2593
 
1607
- // src/generated/models/ResolveTenantRequest.ts
1608
- function instanceOfResolveTenantRequest(value) {
2594
+ // src/generated/models/ResolvePageResponse.ts
2595
+ function instanceOfResolvePageResponse(value) {
1609
2596
  let isInstance = true;
2597
+ isInstance = isInstance && "pageId" in value;
2598
+ isInstance = isInstance && "resolvedVersionId" in value;
2599
+ isInstance = isInstance && "cdnBase" in value;
2600
+ isInstance = isInstance && "snapshotUrl" in value;
2601
+ isInstance = isInstance && "manifestUrl" in value;
2602
+ isInstance = isInstance && "ops" in value;
2603
+ isInstance = isInstance && "etag" in value;
2604
+ isInstance = isInstance && "cacheTtlSeconds" in value;
1610
2605
  return isInstance;
1611
2606
  }
1612
- function ResolveTenantRequestFromJSON(json) {
1613
- return ResolveTenantRequestFromJSONTyped(json, false);
2607
+ function ResolvePageResponseFromJSON(json) {
2608
+ return ResolvePageResponseFromJSONTyped(json, false);
1614
2609
  }
1615
- function ResolveTenantRequestFromJSONTyped(json, ignoreDiscriminator) {
2610
+ function ResolvePageResponseFromJSONTyped(json, ignoreDiscriminator) {
1616
2611
  if (json === void 0 || json === null) {
1617
2612
  return json;
1618
2613
  }
1619
2614
  return {
1620
- "appKey": !exists(json, "appKey") ? void 0 : json["appKey"],
1621
- "host": !exists(json, "host") ? void 0 : json["host"],
1622
- "channel": !exists(json, "channel") ? void 0 : json["channel"]
2615
+ "pageId": json["pageId"],
2616
+ "resolvedVersionId": json["resolvedVersionId"],
2617
+ "cdnBase": json["cdnBase"],
2618
+ "snapshotUrl": json["snapshotUrl"],
2619
+ "manifestUrl": json["manifestUrl"],
2620
+ "ops": OpsConfigFromJSON(json["ops"]),
2621
+ "etag": json["etag"],
2622
+ "cacheTtlSeconds": json["cacheTtlSeconds"],
2623
+ "traceId": !exists(json, "traceId") ? void 0 : json["traceId"],
2624
+ "runtimeVersion": !exists(json, "runtimeVersion") ? void 0 : json["runtimeVersion"],
2625
+ "rolloutMatch": !exists(json, "rolloutMatch") ? void 0 : RolloutMatchFromJSON(json["rolloutMatch"])
1623
2626
  };
1624
2627
  }
1625
- function ResolveTenantRequestToJSON(value) {
2628
+ function ResolvePageResponseToJSON(value) {
1626
2629
  if (value === void 0) {
1627
2630
  return void 0;
1628
2631
  }
@@ -1630,70 +2633,50 @@ function ResolveTenantRequestToJSON(value) {
1630
2633
  return null;
1631
2634
  }
1632
2635
  return {
1633
- "appKey": value.appKey,
1634
- "host": value.host,
1635
- "channel": value.channel
2636
+ "pageId": value.pageId,
2637
+ "resolvedVersionId": value.resolvedVersionId,
2638
+ "cdnBase": value.cdnBase,
2639
+ "snapshotUrl": value.snapshotUrl,
2640
+ "manifestUrl": value.manifestUrl,
2641
+ "ops": OpsConfigToJSON(value.ops),
2642
+ "etag": value.etag,
2643
+ "cacheTtlSeconds": value.cacheTtlSeconds,
2644
+ "traceId": value.traceId,
2645
+ "runtimeVersion": value.runtimeVersion,
2646
+ "rolloutMatch": RolloutMatchToJSON(value.rolloutMatch)
1636
2647
  };
1637
2648
  }
1638
2649
 
1639
- // src/generated/models/ResolveTenantResponse.ts
1640
- function instanceOfResolveTenantResponse(value) {
2650
+ // src/generated/models/ResolvePage200Response.ts
2651
+ function instanceOfResolvePage200Response(value) {
1641
2652
  let isInstance = true;
1642
2653
  isInstance = isInstance && "success" in value;
2654
+ isInstance = isInstance && "code" in value;
2655
+ isInstance = isInstance && "message" in value;
1643
2656
  isInstance = isInstance && "data" in value;
2657
+ isInstance = isInstance && "timestamp" in value;
2658
+ isInstance = isInstance && "path" in value;
1644
2659
  return isInstance;
1645
2660
  }
1646
- function ResolveTenantResponseFromJSON(json) {
1647
- return ResolveTenantResponseFromJSONTyped(json, false);
1648
- }
1649
- function ResolveTenantResponseFromJSONTyped(json, ignoreDiscriminator) {
1650
- if (json === void 0 || json === null) {
1651
- return json;
1652
- }
1653
- return {
1654
- "success": json["success"],
1655
- "data": ResolveTenantDataFromJSON(json["data"])
1656
- };
1657
- }
1658
- function ResolveTenantResponseToJSON(value) {
1659
- if (value === void 0) {
1660
- return void 0;
1661
- }
1662
- if (value === null) {
1663
- return null;
1664
- }
1665
- return {
1666
- "success": value.success,
1667
- "data": ResolveTenantDataToJSON(value.data)
1668
- };
1669
- }
1670
-
1671
- // src/generated/models/SigninCalendarData.ts
1672
- function instanceOfSigninCalendarData(value) {
1673
- let isInstance = true;
1674
- isInstance = isInstance && "activityId" in value;
1675
- isInstance = isInstance && "month" in value;
1676
- isInstance = isInstance && "signedDates" in value;
1677
- isInstance = isInstance && "consecutiveDays" in value;
1678
- isInstance = isInstance && "totalDays" in value;
1679
- return isInstance;
1680
- }
1681
- function SigninCalendarDataFromJSON(json) {
1682
- return SigninCalendarDataFromJSONTyped(json, false);
2661
+ function ResolvePage200ResponseFromJSON(json) {
2662
+ return ResolvePage200ResponseFromJSONTyped(json, false);
1683
2663
  }
1684
- function SigninCalendarDataFromJSONTyped(json, ignoreDiscriminator) {
2664
+ function ResolvePage200ResponseFromJSONTyped(json, ignoreDiscriminator) {
1685
2665
  if (json === void 0 || json === null) {
1686
2666
  return json;
1687
2667
  }
1688
- return {
1689
- "activityId": json["activityId"],
1690
- "month": json["month"],
1691
- "signedDates": json["signedDates"],
1692
- "consecutiveDays": json["consecutiveDays"],
1693
- "totalDays": json["totalDays"]
2668
+ return {
2669
+ "success": json["success"],
2670
+ "code": json["code"],
2671
+ "message": json["message"],
2672
+ "data": ResolvePageResponseFromJSON(json["data"]),
2673
+ "timestamp": json["timestamp"],
2674
+ "path": json["path"],
2675
+ "requestId": !exists(json, "requestId") ? void 0 : json["requestId"],
2676
+ "traceId": !exists(json, "traceId") ? void 0 : json["traceId"]
1694
2677
  };
1695
2678
  }
1696
- function SigninCalendarDataToJSON(value) {
2679
+ function ResolvePage200ResponseToJSON(value) {
1697
2680
  if (value === void 0) {
1698
2681
  return void 0;
1699
2682
  }
@@ -1701,34 +2684,45 @@ function SigninCalendarDataToJSON(value) {
1701
2684
  return null;
1702
2685
  }
1703
2686
  return {
1704
- "activityId": value.activityId,
1705
- "month": value.month,
1706
- "signedDates": value.signedDates,
1707
- "consecutiveDays": value.consecutiveDays,
1708
- "totalDays": value.totalDays
2687
+ "success": value.success,
2688
+ "code": value.code,
2689
+ "message": value.message,
2690
+ "data": ResolvePageResponseToJSON(value.data),
2691
+ "timestamp": value.timestamp,
2692
+ "path": value.path,
2693
+ "requestId": value.requestId,
2694
+ "traceId": value.traceId
1709
2695
  };
1710
2696
  }
1711
2697
 
1712
- // src/generated/models/SigninCalendarResponse.ts
1713
- function instanceOfSigninCalendarResponse(value) {
2698
+ // src/generated/models/ResolveTenantData.ts
2699
+ function instanceOfResolveTenantData(value) {
1714
2700
  let isInstance = true;
1715
- isInstance = isInstance && "success" in value;
1716
- isInstance = isInstance && "data" in value;
2701
+ isInstance = isInstance && "appId" in value;
2702
+ isInstance = isInstance && "name" in value;
2703
+ isInstance = isInstance && "status" in value;
2704
+ isInstance = isInstance && "type" in value;
1717
2705
  return isInstance;
1718
2706
  }
1719
- function SigninCalendarResponseFromJSON(json) {
1720
- return SigninCalendarResponseFromJSONTyped(json, false);
2707
+ function ResolveTenantDataFromJSON(json) {
2708
+ return ResolveTenantDataFromJSONTyped(json, false);
1721
2709
  }
1722
- function SigninCalendarResponseFromJSONTyped(json, ignoreDiscriminator) {
2710
+ function ResolveTenantDataFromJSONTyped(json, ignoreDiscriminator) {
1723
2711
  if (json === void 0 || json === null) {
1724
2712
  return json;
1725
2713
  }
1726
2714
  return {
1727
- "success": json["success"],
1728
- "data": SigninCalendarDataFromJSON(json["data"])
2715
+ "appId": json["appId"],
2716
+ "name": json["name"],
2717
+ "status": json["status"],
2718
+ "type": json["type"],
2719
+ "logo": !exists(json, "logo") ? void 0 : json["logo"],
2720
+ "config": !exists(json, "config") ? void 0 : json["config"],
2721
+ "channel": !exists(json, "channel") ? void 0 : json["channel"],
2722
+ "domain": !exists(json, "domain") ? void 0 : json["domain"]
1729
2723
  };
1730
2724
  }
1731
- function SigninCalendarResponseToJSON(value) {
2725
+ function ResolveTenantDataToJSON(value) {
1732
2726
  if (value === void 0) {
1733
2727
  return void 0;
1734
2728
  }
@@ -1736,39 +2730,37 @@ function SigninCalendarResponseToJSON(value) {
1736
2730
  return null;
1737
2731
  }
1738
2732
  return {
1739
- "success": value.success,
1740
- "data": SigninCalendarDataToJSON(value.data)
2733
+ "appId": value.appId,
2734
+ "name": value.name,
2735
+ "status": value.status,
2736
+ "type": value.type,
2737
+ "logo": value.logo,
2738
+ "config": value.config,
2739
+ "channel": value.channel,
2740
+ "domain": value.domain
1741
2741
  };
1742
2742
  }
1743
2743
 
1744
- // src/generated/models/SigninStatusResponse.ts
1745
- function instanceOfSigninStatusResponse(value) {
2744
+ // src/generated/models/ResolveTenantResponse.ts
2745
+ function instanceOfResolveTenantResponse(value) {
1746
2746
  let isInstance = true;
1747
- isInstance = isInstance && "activityUid" in value;
1748
- isInstance = isInstance && "hasSignedToday" in value;
1749
- isInstance = isInstance && "consecutiveDays" in value;
1750
- isInstance = isInstance && "totalDays" in value;
1751
- isInstance = isInstance && "signedDates" in value;
2747
+ isInstance = isInstance && "success" in value;
2748
+ isInstance = isInstance && "data" in value;
1752
2749
  return isInstance;
1753
2750
  }
1754
- function SigninStatusResponseFromJSON(json) {
1755
- return SigninStatusResponseFromJSONTyped(json, false);
2751
+ function ResolveTenantResponseFromJSON(json) {
2752
+ return ResolveTenantResponseFromJSONTyped(json, false);
1756
2753
  }
1757
- function SigninStatusResponseFromJSONTyped(json, ignoreDiscriminator) {
2754
+ function ResolveTenantResponseFromJSONTyped(json, ignoreDiscriminator) {
1758
2755
  if (json === void 0 || json === null) {
1759
2756
  return json;
1760
2757
  }
1761
2758
  return {
1762
- "activityUid": json["activityUid"],
1763
- "hasSignedToday": json["hasSignedToday"],
1764
- "consecutiveDays": json["consecutiveDays"],
1765
- "totalDays": json["totalDays"],
1766
- "signedDates": json["signedDates"],
1767
- "todayReward": !exists(json, "todayReward") ? void 0 : RewardInfoFromJSON(json["todayReward"]),
1768
- "nextMilestone": !exists(json, "nextMilestone") ? void 0 : MilestoneInfoFromJSON(json["nextMilestone"])
2759
+ "success": json["success"],
2760
+ "data": ResolveTenantDataFromJSON(json["data"])
1769
2761
  };
1770
2762
  }
1771
- function SigninStatusResponseToJSON(value) {
2763
+ function ResolveTenantResponseToJSON(value) {
1772
2764
  if (value === void 0) {
1773
2765
  return void 0;
1774
2766
  }
@@ -1776,18 +2768,13 @@ function SigninStatusResponseToJSON(value) {
1776
2768
  return null;
1777
2769
  }
1778
2770
  return {
1779
- "activityUid": value.activityUid,
1780
- "hasSignedToday": value.hasSignedToday,
1781
- "consecutiveDays": value.consecutiveDays,
1782
- "totalDays": value.totalDays,
1783
- "signedDates": value.signedDates,
1784
- "todayReward": RewardInfoToJSON(value.todayReward),
1785
- "nextMilestone": MilestoneInfoToJSON(value.nextMilestone)
2771
+ "success": value.success,
2772
+ "data": ResolveTenantDataToJSON(value.data)
1786
2773
  };
1787
2774
  }
1788
2775
 
1789
- // src/generated/models/SuccessResponse.ts
1790
- function instanceOfSuccessResponse(value) {
2776
+ // src/generated/models/ResolveTenant200Response.ts
2777
+ function instanceOfResolveTenant200Response(value) {
1791
2778
  let isInstance = true;
1792
2779
  isInstance = isInstance && "success" in value;
1793
2780
  isInstance = isInstance && "code" in value;
@@ -1797,10 +2784,10 @@ function instanceOfSuccessResponse(value) {
1797
2784
  isInstance = isInstance && "path" in value;
1798
2785
  return isInstance;
1799
2786
  }
1800
- function SuccessResponseFromJSON(json) {
1801
- return SuccessResponseFromJSONTyped(json, false);
2787
+ function ResolveTenant200ResponseFromJSON(json) {
2788
+ return ResolveTenant200ResponseFromJSONTyped(json, false);
1802
2789
  }
1803
- function SuccessResponseFromJSONTyped(json, ignoreDiscriminator) {
2790
+ function ResolveTenant200ResponseFromJSONTyped(json, ignoreDiscriminator) {
1804
2791
  if (json === void 0 || json === null) {
1805
2792
  return json;
1806
2793
  }
@@ -1808,14 +2795,14 @@ function SuccessResponseFromJSONTyped(json, ignoreDiscriminator) {
1808
2795
  "success": json["success"],
1809
2796
  "code": json["code"],
1810
2797
  "message": json["message"],
1811
- "data": json["data"],
2798
+ "data": ResolveTenantResponseFromJSON(json["data"]),
1812
2799
  "timestamp": json["timestamp"],
1813
2800
  "path": json["path"],
1814
2801
  "requestId": !exists(json, "requestId") ? void 0 : json["requestId"],
1815
2802
  "traceId": !exists(json, "traceId") ? void 0 : json["traceId"]
1816
2803
  };
1817
2804
  }
1818
- function SuccessResponseToJSON(value) {
2805
+ function ResolveTenant200ResponseToJSON(value) {
1819
2806
  if (value === void 0) {
1820
2807
  return void 0;
1821
2808
  }
@@ -1826,7 +2813,7 @@ function SuccessResponseToJSON(value) {
1826
2813
  "success": value.success,
1827
2814
  "code": value.code,
1828
2815
  "message": value.message,
1829
- "data": value.data,
2816
+ "data": ResolveTenantResponseToJSON(value.data),
1830
2817
  "timestamp": value.timestamp,
1831
2818
  "path": value.path,
1832
2819
  "requestId": value.requestId,
@@ -1834,31 +2821,25 @@ function SuccessResponseToJSON(value) {
1834
2821
  };
1835
2822
  }
1836
2823
 
1837
- // src/generated/models/TenantConfigData.ts
1838
- function instanceOfTenantConfigData(value) {
2824
+ // src/generated/models/ResolveTenantRequest.ts
2825
+ function instanceOfResolveTenantRequest(value) {
1839
2826
  let isInstance = true;
1840
- isInstance = isInstance && "appId" in value;
1841
- isInstance = isInstance && "status" in value;
1842
2827
  return isInstance;
1843
2828
  }
1844
- function TenantConfigDataFromJSON(json) {
1845
- return TenantConfigDataFromJSONTyped(json, false);
2829
+ function ResolveTenantRequestFromJSON(json) {
2830
+ return ResolveTenantRequestFromJSONTyped(json, false);
1846
2831
  }
1847
- function TenantConfigDataFromJSONTyped(json, ignoreDiscriminator) {
2832
+ function ResolveTenantRequestFromJSONTyped(json, ignoreDiscriminator) {
1848
2833
  if (json === void 0 || json === null) {
1849
2834
  return json;
1850
2835
  }
1851
2836
  return {
1852
- "appId": json["appId"],
1853
- "status": json["status"],
1854
- "featureFlags": !exists(json, "featureFlags") ? void 0 : json["featureFlags"],
1855
- "theme": !exists(json, "theme") ? void 0 : json["theme"],
1856
- "cdnBase": !exists(json, "cdnBase") ? void 0 : json["cdnBase"],
1857
- "blockedComponents": !exists(json, "blockedComponents") ? void 0 : json["blockedComponents"],
1858
- "killSwitch": !exists(json, "killSwitch") ? void 0 : json["killSwitch"]
2837
+ "appKey": !exists(json, "appKey") ? void 0 : json["appKey"],
2838
+ "host": !exists(json, "host") ? void 0 : json["host"],
2839
+ "channel": !exists(json, "channel") ? void 0 : json["channel"]
1859
2840
  };
1860
2841
  }
1861
- function TenantConfigDataToJSON(value) {
2842
+ function ResolveTenantRequestToJSON(value) {
1862
2843
  if (value === void 0) {
1863
2844
  return void 0;
1864
2845
  }
@@ -1866,36 +2847,42 @@ function TenantConfigDataToJSON(value) {
1866
2847
  return null;
1867
2848
  }
1868
2849
  return {
1869
- "appId": value.appId,
1870
- "status": value.status,
1871
- "featureFlags": value.featureFlags,
1872
- "theme": value.theme,
1873
- "cdnBase": value.cdnBase,
1874
- "blockedComponents": value.blockedComponents,
1875
- "killSwitch": value.killSwitch
2850
+ "appKey": value.appKey,
2851
+ "host": value.host,
2852
+ "channel": value.channel
1876
2853
  };
1877
2854
  }
1878
2855
 
1879
- // src/generated/models/TenantConfigResponse.ts
1880
- function instanceOfTenantConfigResponse(value) {
2856
+ // src/generated/models/SuccessResponse.ts
2857
+ function instanceOfSuccessResponse(value) {
1881
2858
  let isInstance = true;
1882
2859
  isInstance = isInstance && "success" in value;
2860
+ isInstance = isInstance && "code" in value;
2861
+ isInstance = isInstance && "message" in value;
1883
2862
  isInstance = isInstance && "data" in value;
2863
+ isInstance = isInstance && "timestamp" in value;
2864
+ isInstance = isInstance && "path" in value;
1884
2865
  return isInstance;
1885
2866
  }
1886
- function TenantConfigResponseFromJSON(json) {
1887
- return TenantConfigResponseFromJSONTyped(json, false);
2867
+ function SuccessResponseFromJSON(json) {
2868
+ return SuccessResponseFromJSONTyped(json, false);
1888
2869
  }
1889
- function TenantConfigResponseFromJSONTyped(json, ignoreDiscriminator) {
2870
+ function SuccessResponseFromJSONTyped(json, ignoreDiscriminator) {
1890
2871
  if (json === void 0 || json === null) {
1891
2872
  return json;
1892
2873
  }
1893
2874
  return {
1894
2875
  "success": json["success"],
1895
- "data": TenantConfigDataFromJSON(json["data"])
2876
+ "code": json["code"],
2877
+ "message": json["message"],
2878
+ "data": json["data"],
2879
+ "timestamp": json["timestamp"],
2880
+ "path": json["path"],
2881
+ "requestId": !exists(json, "requestId") ? void 0 : json["requestId"],
2882
+ "traceId": !exists(json, "traceId") ? void 0 : json["traceId"]
1896
2883
  };
1897
2884
  }
1898
- function TenantConfigResponseToJSON(value) {
2885
+ function SuccessResponseToJSON(value) {
1899
2886
  if (value === void 0) {
1900
2887
  return void 0;
1901
2888
  }
@@ -1904,7 +2891,13 @@ function TenantConfigResponseToJSON(value) {
1904
2891
  }
1905
2892
  return {
1906
2893
  "success": value.success,
1907
- "data": TenantConfigDataToJSON(value.data)
2894
+ "code": value.code,
2895
+ "message": value.message,
2896
+ "data": value.data,
2897
+ "timestamp": value.timestamp,
2898
+ "path": value.path,
2899
+ "requestId": value.requestId,
2900
+ "traceId": value.traceId
1908
2901
  };
1909
2902
  }
1910
2903
 
@@ -2204,26 +3197,25 @@ function TrackSingleResponseToJSON(value) {
2204
3197
  };
2205
3198
  }
2206
3199
 
2207
- // src/generated/models/ValidateActionRequest.ts
2208
- function instanceOfValidateActionRequest(value) {
3200
+ // src/generated/models/ValidateActionResponse.ts
3201
+ function instanceOfValidateActionResponse(value) {
2209
3202
  let isInstance = true;
2210
- isInstance = isInstance && "actionDefinitionVersionId" in value;
2211
- isInstance = isInstance && "params" in value;
3203
+ isInstance = isInstance && "valid" in value;
2212
3204
  return isInstance;
2213
3205
  }
2214
- function ValidateActionRequestFromJSON(json) {
2215
- return ValidateActionRequestFromJSONTyped(json, false);
3206
+ function ValidateActionResponseFromJSON(json) {
3207
+ return ValidateActionResponseFromJSONTyped(json, false);
2216
3208
  }
2217
- function ValidateActionRequestFromJSONTyped(json, ignoreDiscriminator) {
3209
+ function ValidateActionResponseFromJSONTyped(json, ignoreDiscriminator) {
2218
3210
  if (json === void 0 || json === null) {
2219
3211
  return json;
2220
3212
  }
2221
3213
  return {
2222
- "actionDefinitionVersionId": json["actionDefinitionVersionId"],
2223
- "params": json["params"]
3214
+ "valid": json["valid"],
3215
+ "errors": !exists(json, "errors") ? void 0 : json["errors"]
2224
3216
  };
2225
3217
  }
2226
- function ValidateActionRequestToJSON(value) {
3218
+ function ValidateActionResponseToJSON(value) {
2227
3219
  if (value === void 0) {
2228
3220
  return void 0;
2229
3221
  }
@@ -2231,30 +3223,41 @@ function ValidateActionRequestToJSON(value) {
2231
3223
  return null;
2232
3224
  }
2233
3225
  return {
2234
- "actionDefinitionVersionId": value.actionDefinitionVersionId,
2235
- "params": value.params
3226
+ "valid": value.valid,
3227
+ "errors": value.errors
2236
3228
  };
2237
3229
  }
2238
3230
 
2239
- // src/generated/models/ValidateActionResponse.ts
2240
- function instanceOfValidateActionResponse(value) {
3231
+ // src/generated/models/ValidateActionParams200Response.ts
3232
+ function instanceOfValidateActionParams200Response(value) {
2241
3233
  let isInstance = true;
2242
- isInstance = isInstance && "valid" in value;
3234
+ isInstance = isInstance && "success" in value;
3235
+ isInstance = isInstance && "code" in value;
3236
+ isInstance = isInstance && "message" in value;
3237
+ isInstance = isInstance && "data" in value;
3238
+ isInstance = isInstance && "timestamp" in value;
3239
+ isInstance = isInstance && "path" in value;
2243
3240
  return isInstance;
2244
3241
  }
2245
- function ValidateActionResponseFromJSON(json) {
2246
- return ValidateActionResponseFromJSONTyped(json, false);
3242
+ function ValidateActionParams200ResponseFromJSON(json) {
3243
+ return ValidateActionParams200ResponseFromJSONTyped(json, false);
2247
3244
  }
2248
- function ValidateActionResponseFromJSONTyped(json, ignoreDiscriminator) {
3245
+ function ValidateActionParams200ResponseFromJSONTyped(json, ignoreDiscriminator) {
2249
3246
  if (json === void 0 || json === null) {
2250
3247
  return json;
2251
3248
  }
2252
3249
  return {
2253
- "valid": json["valid"],
2254
- "errors": !exists(json, "errors") ? void 0 : json["errors"]
3250
+ "success": json["success"],
3251
+ "code": json["code"],
3252
+ "message": json["message"],
3253
+ "data": ValidateActionResponseFromJSON(json["data"]),
3254
+ "timestamp": json["timestamp"],
3255
+ "path": json["path"],
3256
+ "requestId": !exists(json, "requestId") ? void 0 : json["requestId"],
3257
+ "traceId": !exists(json, "traceId") ? void 0 : json["traceId"]
2255
3258
  };
2256
3259
  }
2257
- function ValidateActionResponseToJSON(value) {
3260
+ function ValidateActionParams200ResponseToJSON(value) {
2258
3261
  if (value === void 0) {
2259
3262
  return void 0;
2260
3263
  }
@@ -2262,8 +3265,46 @@ function ValidateActionResponseToJSON(value) {
2262
3265
  return null;
2263
3266
  }
2264
3267
  return {
2265
- "valid": value.valid,
2266
- "errors": value.errors
3268
+ "success": value.success,
3269
+ "code": value.code,
3270
+ "message": value.message,
3271
+ "data": ValidateActionResponseToJSON(value.data),
3272
+ "timestamp": value.timestamp,
3273
+ "path": value.path,
3274
+ "requestId": value.requestId,
3275
+ "traceId": value.traceId
3276
+ };
3277
+ }
3278
+
3279
+ // src/generated/models/ValidateActionRequest.ts
3280
+ function instanceOfValidateActionRequest(value) {
3281
+ let isInstance = true;
3282
+ isInstance = isInstance && "actionDefinitionVersionId" in value;
3283
+ isInstance = isInstance && "params" in value;
3284
+ return isInstance;
3285
+ }
3286
+ function ValidateActionRequestFromJSON(json) {
3287
+ return ValidateActionRequestFromJSONTyped(json, false);
3288
+ }
3289
+ function ValidateActionRequestFromJSONTyped(json, ignoreDiscriminator) {
3290
+ if (json === void 0 || json === null) {
3291
+ return json;
3292
+ }
3293
+ return {
3294
+ "actionDefinitionVersionId": json["actionDefinitionVersionId"],
3295
+ "params": json["params"]
3296
+ };
3297
+ }
3298
+ function ValidateActionRequestToJSON(value) {
3299
+ if (value === void 0) {
3300
+ return void 0;
3301
+ }
3302
+ if (value === null) {
3303
+ return null;
3304
+ }
3305
+ return {
3306
+ "actionDefinitionVersionId": value.actionDefinitionVersionId,
3307
+ "params": value.params
2267
3308
  };
2268
3309
  }
2269
3310
 
@@ -2294,7 +3335,7 @@ var ActionsApi = class extends BaseAPI {
2294
3335
  query: queryParameters,
2295
3336
  body: ExecuteActionRequestToJSON(requestParameters.executeActionRequest)
2296
3337
  }, initOverrides);
2297
- return new JSONApiResponse(response, (jsonValue) => ExecuteActionResponseFromJSON(jsonValue));
3338
+ return new JSONApiResponse(response, (jsonValue) => ExecuteAction200ResponseFromJSON(jsonValue));
2298
3339
  }
2299
3340
  /**
2300
3341
  * 统一的动作执行入口,支持领取、签到等业务动作。 执行流程(Pipeline): 1. Auth(登录态/票据/签名) 2. Risk(限流、黑名单、设备指纹、验证码开关) 3. Idempotency(幂等键检查) 4. Execute(执行器:Claim/Signin/Lottery...) 5. Audit(审计落库 + outbox) 6. Normalize(统一错误码/返回)
@@ -2330,7 +3371,7 @@ var ActionsApi = class extends BaseAPI {
2330
3371
  headers: headerParameters,
2331
3372
  query: queryParameters
2332
3373
  }, initOverrides);
2333
- return new JSONApiResponse(response, (jsonValue) => ActionDefinitionVersionResponseFromJSON(jsonValue));
3374
+ return new JSONApiResponse(response, (jsonValue) => GetActionDefinition200ResponseFromJSON(jsonValue));
2334
3375
  }
2335
3376
  /**
2336
3377
  * 按版本 ID 获取动作定义详情
@@ -2365,7 +3406,7 @@ var ActionsApi = class extends BaseAPI {
2365
3406
  query: queryParameters,
2366
3407
  body: ValidateActionRequestToJSON(requestParameters.validateActionRequest)
2367
3408
  }, initOverrides);
2368
- return new JSONApiResponse(response, (jsonValue) => ValidateActionResponseFromJSON(jsonValue));
3409
+ return new JSONApiResponse(response, (jsonValue) => ValidateActionParams200ResponseFromJSON(jsonValue));
2369
3410
  }
2370
3411
  /**
2371
3412
  * 验证参数是否符合 Schema 定义,不执行动作
@@ -2395,7 +3436,7 @@ var ActivitiesApi = class extends BaseAPI {
2395
3436
  headers: headerParameters,
2396
3437
  query: queryParameters
2397
3438
  }, initOverrides);
2398
- return new JSONApiResponse(response, (jsonValue) => ActivityInfoResponseFromJSON(jsonValue));
3439
+ return new JSONApiResponse(response, (jsonValue) => GetActivityInfo200ResponseFromJSON(jsonValue));
2399
3440
  }
2400
3441
  /**
2401
3442
  * 获取活动的公开信息,不需要登录
@@ -2434,7 +3475,7 @@ var ActivitiesApi = class extends BaseAPI {
2434
3475
  headers: headerParameters,
2435
3476
  query: queryParameters
2436
3477
  }, initOverrides);
2437
- return new JSONApiResponse(response, (jsonValue) => ActivityStatusResponseFromJSON(jsonValue));
3478
+ return new JSONApiResponse(response, (jsonValue) => GetActivityState200ResponseFromJSON(jsonValue));
2438
3479
  }
2439
3480
  /**
2440
3481
  * 查询用户在指定活动中的参与状态
@@ -2460,7 +3501,7 @@ var ActivitiesApi = class extends BaseAPI {
2460
3501
  headers: headerParameters,
2461
3502
  query: queryParameters
2462
3503
  }, initOverrides);
2463
- return new JSONApiResponse(response, (jsonValue) => ActivityStatusResponseFromJSON(jsonValue));
3504
+ return new JSONApiResponse(response, (jsonValue) => GetActivityState200ResponseFromJSON(jsonValue));
2464
3505
  }
2465
3506
  /**
2466
3507
  * 获取活动的当前状态信息
@@ -2505,7 +3546,7 @@ var ActivitiesApi = class extends BaseAPI {
2505
3546
  headers: headerParameters,
2506
3547
  query: queryParameters
2507
3548
  }, initOverrides);
2508
- return new JSONApiResponse(response, (jsonValue) => PaginatedRecordsResponseFromJSON(jsonValue));
3549
+ return new JSONApiResponse(response, (jsonValue) => GetClaimRecords200ResponseFromJSON(jsonValue));
2509
3550
  }
2510
3551
  /**
2511
3552
  * 获取用户在指定活动中的领取记录
@@ -2547,7 +3588,7 @@ var ActivitiesApi = class extends BaseAPI {
2547
3588
  headers: headerParameters,
2548
3589
  query: queryParameters
2549
3590
  }, initOverrides);
2550
- return new JSONApiResponse(response, (jsonValue) => ClaimStatusResponseFromJSON(jsonValue));
3591
+ return new JSONApiResponse(response, (jsonValue) => GetClaimStatus200ResponseFromJSON(jsonValue));
2551
3592
  }
2552
3593
  /**
2553
3594
  * 获取用户在指定活动中的领取状态
@@ -2589,7 +3630,7 @@ var ActivitiesApi = class extends BaseAPI {
2589
3630
  headers: headerParameters,
2590
3631
  query: queryParameters
2591
3632
  }, initOverrides);
2592
- return new JSONApiResponse(response, (jsonValue) => PaginatedRecordsResponseFromJSON(jsonValue));
3633
+ return new JSONApiResponse(response, (jsonValue) => GetClaimRecords200ResponseFromJSON(jsonValue));
2593
3634
  }
2594
3635
  /**
2595
3636
  * 获取用户在指定活动中的抽奖记录
@@ -2634,7 +3675,7 @@ var ActivitiesApi = class extends BaseAPI {
2634
3675
  headers: headerParameters,
2635
3676
  query: queryParameters
2636
3677
  }, initOverrides);
2637
- return new JSONApiResponse(response, (jsonValue) => SigninCalendarResponseFromJSON(jsonValue));
3678
+ return new JSONApiResponse(response, (jsonValue) => GetSigninCalendar200ResponseFromJSON(jsonValue));
2638
3679
  }
2639
3680
  /**
2640
3681
  * 获取用户的签到日历数据
@@ -2676,7 +3717,7 @@ var ActivitiesApi = class extends BaseAPI {
2676
3717
  headers: headerParameters,
2677
3718
  query: queryParameters
2678
3719
  }, initOverrides);
2679
- return new JSONApiResponse(response, (jsonValue) => SigninStatusResponseFromJSON(jsonValue));
3720
+ return new JSONApiResponse(response, (jsonValue) => GetSigninStatus200ResponseFromJSON(jsonValue));
2680
3721
  }
2681
3722
  /**
2682
3723
  * 获取用户在指定活动中的签到状态
@@ -2703,7 +3744,7 @@ var HealthApi = class extends BaseAPI {
2703
3744
  headers: headerParameters,
2704
3745
  query: queryParameters
2705
3746
  }, initOverrides);
2706
- return new JSONApiResponse(response, (jsonValue) => HealthCheckResponseFromJSON(jsonValue));
3747
+ return new JSONApiResponse(response, (jsonValue) => HealthCheck200ResponseFromJSON(jsonValue));
2707
3748
  }
2708
3749
  /**
2709
3750
  * 综合健康检查,返回服务状态和时间戳
@@ -2726,7 +3767,7 @@ var HealthApi = class extends BaseAPI {
2726
3767
  headers: headerParameters,
2727
3768
  query: queryParameters
2728
3769
  }, initOverrides);
2729
- return new JSONApiResponse(response, (jsonValue) => LivenessResponseFromJSON(jsonValue));
3770
+ return new JSONApiResponse(response, (jsonValue) => LivenessCheck200ResponseFromJSON(jsonValue));
2730
3771
  }
2731
3772
  /**
2732
3773
  * Kubernetes liveness probe
@@ -2749,7 +3790,7 @@ var HealthApi = class extends BaseAPI {
2749
3790
  headers: headerParameters,
2750
3791
  query: queryParameters
2751
3792
  }, initOverrides);
2752
- return new JSONApiResponse(response, (jsonValue) => ReadinessResponseFromJSON(jsonValue));
3793
+ return new JSONApiResponse(response, (jsonValue) => ReadinessCheck200ResponseFromJSON(jsonValue));
2753
3794
  }
2754
3795
  /**
2755
3796
  * Kubernetes readiness probe
@@ -2789,7 +3830,7 @@ var PagesApi = class extends BaseAPI {
2789
3830
  headers: headerParameters,
2790
3831
  query: queryParameters
2791
3832
  }, initOverrides);
2792
- return new JSONApiResponse(response, (jsonValue) => OpsConfigFromJSON(jsonValue));
3833
+ return new JSONApiResponse(response, (jsonValue) => GetPageConfig200ResponseFromJSON(jsonValue));
2793
3834
  }
2794
3835
  /**
2795
3836
  * 返回当前运维配置(killSwitch、blockedComponents 等)
@@ -2831,7 +3872,7 @@ var PagesApi = class extends BaseAPI {
2831
3872
  headers: headerParameters,
2832
3873
  query: queryParameters
2833
3874
  }, initOverrides);
2834
- return new JSONApiResponse(response, (jsonValue) => ManifestResponseFromJSON(jsonValue));
3875
+ return new JSONApiResponse(response, (jsonValue) => GetPageManifest200ResponseFromJSON(jsonValue));
2835
3876
  }
2836
3877
  /**
2837
3878
  * 返回页面的组件锁定清单
@@ -2903,7 +3944,7 @@ var PagesApi = class extends BaseAPI {
2903
3944
  headers: headerParameters,
2904
3945
  query: queryParameters
2905
3946
  }, initOverrides);
2906
- return new JSONApiResponse(response, (jsonValue) => ResolvePageResponseFromJSON(jsonValue));
3947
+ return new JSONApiResponse(response, (jsonValue) => ResolvePage200ResponseFromJSON(jsonValue));
2907
3948
  }
2908
3949
  /**
2909
3950
  * Runtime 核心接口,返回渲染所需的完整数据。 支持两种模式: 1. 稳定入口(推荐):支持灰度/回滚/ops,返回 resolvedVersionId 和 CDN 地址 2. 保底模式:当 includeSnapshot=true 时,返回完整 snapshot(CDN 失败时使用)
@@ -2942,7 +3983,7 @@ var QueriesApi = class extends BaseAPI {
2942
3983
  query: queryParameters,
2943
3984
  body: BatchQueryRequestToJSON(requestParameters.batchQueryRequest)
2944
3985
  }, initOverrides);
2945
- return new JSONApiResponse(response, (jsonValue) => BatchQueryResponseFromJSON(jsonValue));
3986
+ return new JSONApiResponse(response, (jsonValue) => BatchQueryData200ResponseFromJSON(jsonValue));
2946
3987
  }
2947
3988
  /**
2948
3989
  * 批量执行多个数据查询,所有查询并行执行
@@ -2978,7 +4019,7 @@ var QueriesApi = class extends BaseAPI {
2978
4019
  headers: headerParameters,
2979
4020
  query: queryParameters
2980
4021
  }, initOverrides);
2981
- return new JSONApiResponse(response, (jsonValue) => QueryDefinitionResponseFromJSON(jsonValue));
4022
+ return new JSONApiResponse(response, (jsonValue) => GetQueryDefinition200ResponseFromJSON(jsonValue));
2982
4023
  }
2983
4024
  /**
2984
4025
  * 按版本 ID 获取数据查询定义
@@ -3013,7 +4054,7 @@ var QueriesApi = class extends BaseAPI {
3013
4054
  query: queryParameters,
3014
4055
  body: QueryDataRequestToJSON(requestParameters.queryDataRequest)
3015
4056
  }, initOverrides);
3016
- return new JSONApiResponse(response, (jsonValue) => QueryDataResponseFromJSON(jsonValue));
4057
+ return new JSONApiResponse(response, (jsonValue) => QueryData200ResponseFromJSON(jsonValue));
3017
4058
  }
3018
4059
  /**
3019
4060
  * 通过 queryVersionId 查询数据
@@ -3062,7 +4103,7 @@ var TenantApi = class extends BaseAPI {
3062
4103
  headers: headerParameters,
3063
4104
  query: queryParameters
3064
4105
  }, initOverrides);
3065
- return new JSONApiResponse(response, (jsonValue) => TenantConfigResponseFromJSON(jsonValue));
4106
+ return new JSONApiResponse(response, (jsonValue) => GetTenantConfig200ResponseFromJSON(jsonValue));
3066
4107
  }
3067
4108
  /**
3068
4109
  * 获取当前租户的运行时配置
@@ -3090,7 +4131,7 @@ var TenantApi = class extends BaseAPI {
3090
4131
  query: queryParameters,
3091
4132
  body: ResolveTenantRequestToJSON(requestParameters.resolveTenantRequest)
3092
4133
  }, initOverrides);
3093
- return new JSONApiResponse(response, (jsonValue) => ResolveTenantResponseFromJSON(jsonValue));
4134
+ return new JSONApiResponse(response, (jsonValue) => ResolveTenant200ResponseFromJSON(jsonValue));
3094
4135
  }
3095
4136
  /**
3096
4137
  * 根据 appKey 或 host 解析租户/应用信息
@@ -3283,6 +4324,9 @@ export {
3283
4324
  ActivityStatusTypeEnum,
3284
4325
  ApiError,
3285
4326
  BaseAPI,
4327
+ BatchQueryData200ResponseFromJSON,
4328
+ BatchQueryData200ResponseFromJSONTyped,
4329
+ BatchQueryData200ResponseToJSON,
3286
4330
  BatchQueryItemRequestFromJSON,
3287
4331
  BatchQueryItemRequestFromJSONTyped,
3288
4332
  BatchQueryItemRequestToJSON,
@@ -3292,9 +4336,9 @@ export {
3292
4336
  BatchQueryResponseFromJSON,
3293
4337
  BatchQueryResponseFromJSONTyped,
3294
4338
  BatchQueryResponseToJSON,
3295
- BlockedComponentFromJSON,
3296
- BlockedComponentFromJSONTyped,
3297
- BlockedComponentToJSON,
4339
+ BlockedComponentItemFromJSON,
4340
+ BlockedComponentItemFromJSONTyped,
4341
+ BlockedComponentItemToJSON,
3298
4342
  ClaimStatusResponseFromJSON,
3299
4343
  ClaimStatusResponseFromJSONTyped,
3300
4344
  ClaimStatusResponseToJSON,
@@ -3302,13 +4346,12 @@ export {
3302
4346
  CursorPaginationMetaFromJSON,
3303
4347
  CursorPaginationMetaFromJSONTyped,
3304
4348
  CursorPaginationMetaToJSON,
3305
- DegradeConfigFromJSON,
3306
- DegradeConfigFromJSONTyped,
3307
- DegradeConfigModeEnum,
3308
- DegradeConfigToJSON,
3309
4349
  ErrorResponseFromJSON,
3310
4350
  ErrorResponseFromJSONTyped,
3311
4351
  ErrorResponseToJSON,
4352
+ ExecuteAction200ResponseFromJSON,
4353
+ ExecuteAction200ResponseFromJSONTyped,
4354
+ ExecuteAction200ResponseToJSON,
3312
4355
  ExecuteActionRequestFromJSON,
3313
4356
  ExecuteActionRequestFromJSONTyped,
3314
4357
  ExecuteActionRequestToJSON,
@@ -3316,13 +4359,56 @@ export {
3316
4359
  ExecuteActionResponseFromJSONTyped,
3317
4360
  ExecuteActionResponseToJSON,
3318
4361
  FetchError,
4362
+ GetActionDefinition200ResponseFromJSON,
4363
+ GetActionDefinition200ResponseFromJSONTyped,
4364
+ GetActionDefinition200ResponseToJSON,
4365
+ GetActivityInfo200ResponseFromJSON,
4366
+ GetActivityInfo200ResponseFromJSONTyped,
4367
+ GetActivityInfo200ResponseToJSON,
4368
+ GetActivityState200ResponseFromJSON,
4369
+ GetActivityState200ResponseFromJSONTyped,
4370
+ GetActivityState200ResponseToJSON,
4371
+ GetClaimRecords200ResponseFromJSON,
4372
+ GetClaimRecords200ResponseFromJSONTyped,
4373
+ GetClaimRecords200ResponseToJSON,
4374
+ GetClaimStatus200ResponseFromJSON,
4375
+ GetClaimStatus200ResponseFromJSONTyped,
4376
+ GetClaimStatus200ResponseToJSON,
4377
+ GetPageConfig200ResponseFromJSON,
4378
+ GetPageConfig200ResponseFromJSONTyped,
4379
+ GetPageConfig200ResponseToJSON,
4380
+ GetPageManifest200ResponseFromJSON,
4381
+ GetPageManifest200ResponseFromJSONTyped,
4382
+ GetPageManifest200ResponseToJSON,
4383
+ GetQueryDefinition200ResponseFromJSON,
4384
+ GetQueryDefinition200ResponseFromJSONTyped,
4385
+ GetQueryDefinition200ResponseToJSON,
4386
+ GetSigninCalendar200ResponseFromJSON,
4387
+ GetSigninCalendar200ResponseFromJSONTyped,
4388
+ GetSigninCalendar200ResponseToJSON,
4389
+ GetSigninStatus200ResponseFromJSON,
4390
+ GetSigninStatus200ResponseFromJSONTyped,
4391
+ GetSigninStatus200ResponseToJSON,
4392
+ GetTenantConfig200ResponseFromJSON,
4393
+ GetTenantConfig200ResponseFromJSONTyped,
4394
+ GetTenantConfig200ResponseToJSON,
3319
4395
  HealthApi,
4396
+ HealthCheck200ResponseFromJSON,
4397
+ HealthCheck200ResponseFromJSONTyped,
4398
+ HealthCheck200ResponseToJSON,
3320
4399
  HealthCheckItemFromJSON,
3321
4400
  HealthCheckItemFromJSONTyped,
3322
4401
  HealthCheckItemToJSON,
3323
4402
  HealthCheckResponseFromJSON,
3324
4403
  HealthCheckResponseFromJSONTyped,
3325
4404
  HealthCheckResponseToJSON,
4405
+ KillSwitchItemFromJSON,
4406
+ KillSwitchItemFromJSONTyped,
4407
+ KillSwitchItemTargetTypeEnum,
4408
+ KillSwitchItemToJSON,
4409
+ LivenessCheck200ResponseFromJSON,
4410
+ LivenessCheck200ResponseFromJSONTyped,
4411
+ LivenessCheck200ResponseToJSON,
3326
4412
  LivenessResponseFromJSON,
3327
4413
  LivenessResponseFromJSONTyped,
3328
4414
  LivenessResponseToJSON,
@@ -3354,6 +4440,9 @@ export {
3354
4440
  QueryContextFromJSON,
3355
4441
  QueryContextFromJSONTyped,
3356
4442
  QueryContextToJSON,
4443
+ QueryData200ResponseFromJSON,
4444
+ QueryData200ResponseFromJSONTyped,
4445
+ QueryData200ResponseToJSON,
3357
4446
  QueryDataRequestFromJSON,
3358
4447
  QueryDataRequestFromJSONTyped,
3359
4448
  QueryDataRequestToJSON,
@@ -3367,13 +4456,25 @@ export {
3367
4456
  QueryMetadataFromJSON,
3368
4457
  QueryMetadataFromJSONTyped,
3369
4458
  QueryMetadataToJSON,
4459
+ RateLimitConfigFromJSON,
4460
+ RateLimitConfigFromJSONTyped,
4461
+ RateLimitConfigToJSON,
4462
+ ReadinessCheck200ResponseFromJSON,
4463
+ ReadinessCheck200ResponseFromJSONTyped,
4464
+ ReadinessCheck200ResponseToJSON,
3370
4465
  ReadinessResponseFromJSON,
3371
4466
  ReadinessResponseFromJSONTyped,
3372
4467
  ReadinessResponseToJSON,
3373
4468
  RequiredError,
4469
+ ResolvePage200ResponseFromJSON,
4470
+ ResolvePage200ResponseFromJSONTyped,
4471
+ ResolvePage200ResponseToJSON,
3374
4472
  ResolvePageResponseFromJSON,
3375
4473
  ResolvePageResponseFromJSONTyped,
3376
4474
  ResolvePageResponseToJSON,
4475
+ ResolveTenant200ResponseFromJSON,
4476
+ ResolveTenant200ResponseFromJSONTyped,
4477
+ ResolveTenant200ResponseToJSON,
3377
4478
  ResolveTenantDataFromJSON,
3378
4479
  ResolveTenantDataFromJSONTyped,
3379
4480
  ResolveTenantDataToJSON,
@@ -3387,6 +4488,9 @@ export {
3387
4488
  RewardInfoFromJSON,
3388
4489
  RewardInfoFromJSONTyped,
3389
4490
  RewardInfoToJSON,
4491
+ RolloutMatchFromJSON,
4492
+ RolloutMatchFromJSONTyped,
4493
+ RolloutMatchToJSON,
3390
4494
  SigninCalendarDataFromJSON,
3391
4495
  SigninCalendarDataFromJSONTyped,
3392
4496
  SigninCalendarDataToJSON,
@@ -3437,6 +4541,9 @@ export {
3437
4541
  TrackSingleResponseToJSON,
3438
4542
  UserClient,
3439
4543
  VERSION,
4544
+ ValidateActionParams200ResponseFromJSON,
4545
+ ValidateActionParams200ResponseFromJSONTyped,
4546
+ ValidateActionParams200ResponseToJSON,
3440
4547
  ValidateActionRequestFromJSON,
3441
4548
  ValidateActionRequestFromJSONTyped,
3442
4549
  ValidateActionRequestToJSON,
@@ -3455,18 +4562,33 @@ export {
3455
4562
  instanceOfActivityInfoResponse,
3456
4563
  instanceOfActivityStatus,
3457
4564
  instanceOfActivityStatusResponse,
4565
+ instanceOfBatchQueryData200Response,
3458
4566
  instanceOfBatchQueryItemRequest,
3459
4567
  instanceOfBatchQueryRequest,
3460
4568
  instanceOfBatchQueryResponse,
3461
- instanceOfBlockedComponent,
4569
+ instanceOfBlockedComponentItem,
3462
4570
  instanceOfClaimStatusResponse,
3463
4571
  instanceOfCursorPaginationMeta,
3464
- instanceOfDegradeConfig,
3465
4572
  instanceOfErrorResponse,
4573
+ instanceOfExecuteAction200Response,
3466
4574
  instanceOfExecuteActionRequest,
3467
4575
  instanceOfExecuteActionResponse,
4576
+ instanceOfGetActionDefinition200Response,
4577
+ instanceOfGetActivityInfo200Response,
4578
+ instanceOfGetActivityState200Response,
4579
+ instanceOfGetClaimRecords200Response,
4580
+ instanceOfGetClaimStatus200Response,
4581
+ instanceOfGetPageConfig200Response,
4582
+ instanceOfGetPageManifest200Response,
4583
+ instanceOfGetQueryDefinition200Response,
4584
+ instanceOfGetSigninCalendar200Response,
4585
+ instanceOfGetSigninStatus200Response,
4586
+ instanceOfGetTenantConfig200Response,
4587
+ instanceOfHealthCheck200Response,
3468
4588
  instanceOfHealthCheckItem,
3469
4589
  instanceOfHealthCheckResponse,
4590
+ instanceOfKillSwitchItem,
4591
+ instanceOfLivenessCheck200Response,
3470
4592
  instanceOfLivenessResponse,
3471
4593
  instanceOfManifestComponent,
3472
4594
  instanceOfManifestResponse,
@@ -3476,16 +4598,22 @@ export {
3476
4598
  instanceOfPaginatedRecordsResponse,
3477
4599
  instanceOfPaginationMeta,
3478
4600
  instanceOfQueryContext,
4601
+ instanceOfQueryData200Response,
3479
4602
  instanceOfQueryDataRequest,
3480
4603
  instanceOfQueryDataResponse,
3481
4604
  instanceOfQueryDefinitionResponse,
3482
4605
  instanceOfQueryMetadata,
4606
+ instanceOfRateLimitConfig,
4607
+ instanceOfReadinessCheck200Response,
3483
4608
  instanceOfReadinessResponse,
4609
+ instanceOfResolvePage200Response,
3484
4610
  instanceOfResolvePageResponse,
4611
+ instanceOfResolveTenant200Response,
3485
4612
  instanceOfResolveTenantData,
3486
4613
  instanceOfResolveTenantRequest,
3487
4614
  instanceOfResolveTenantResponse,
3488
4615
  instanceOfRewardInfo,
4616
+ instanceOfRolloutMatch,
3489
4617
  instanceOfSigninCalendarData,
3490
4618
  instanceOfSigninCalendarResponse,
3491
4619
  instanceOfSigninStatusResponse,
@@ -3501,6 +4629,7 @@ export {
3501
4629
  instanceOfTrackSingleRequest,
3502
4630
  instanceOfTrackSingleResponse,
3503
4631
  instanceOfTrackSingleResponseData,
4632
+ instanceOfValidateActionParams200Response,
3504
4633
  instanceOfValidateActionRequest,
3505
4634
  instanceOfValidateActionResponse,
3506
4635
  isRetryableError