@schematichq/schematic-typescript-node 1.0.17 → 1.0.19

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.
@@ -17651,153 +17651,775 @@ function ComponentResponseDataToJSON(value) {
17651
17651
  };
17652
17652
  }
17653
17653
 
17654
- // src/api/models/ComponentHydrateView.ts
17655
- function instanceOfComponentHydrateView(value) {
17656
- if (!("data" in value) || value["data"] === void 0)
17654
+ // src/api/models/EventSummaryResponseData.ts
17655
+ function instanceOfEventSummaryResponseData(value) {
17656
+ if (!("companyCount" in value) || value["companyCount"] === void 0)
17657
+ return false;
17658
+ if (!("environmentId" in value) || value["environmentId"] === void 0)
17659
+ return false;
17660
+ if (!("eventCount" in value) || value["eventCount"] === void 0)
17661
+ return false;
17662
+ if (!("eventSubtype" in value) || value["eventSubtype"] === void 0)
17663
+ return false;
17664
+ if (!("userCount" in value) || value["userCount"] === void 0)
17657
17665
  return false;
17658
17666
  return true;
17659
17667
  }
17660
- function ComponentHydrateViewFromJSON(json) {
17661
- return ComponentHydrateViewFromJSONTyped(json, false);
17668
+ function EventSummaryResponseDataFromJSON(json) {
17669
+ return EventSummaryResponseDataFromJSONTyped(json, false);
17662
17670
  }
17663
- function ComponentHydrateViewFromJSONTyped(json, ignoreDiscriminator) {
17671
+ function EventSummaryResponseDataFromJSONTyped(json, ignoreDiscriminator) {
17664
17672
  if (json == null) {
17665
17673
  return json;
17666
17674
  }
17667
17675
  return {
17668
- component: json["component"] == null ? void 0 : ComponentResponseDataFromJSON(json["component"]),
17669
- data: json["data"]
17676
+ companyCount: json["company_count"],
17677
+ environmentId: json["environment_id"],
17678
+ eventCount: json["event_count"],
17679
+ eventSubtype: json["event_subtype"],
17680
+ lastSeenAt: json["last_seen_at"] == null ? void 0 : new Date(json["last_seen_at"]),
17681
+ userCount: json["user_count"]
17670
17682
  };
17671
17683
  }
17672
- function ComponentHydrateViewToJSON(value) {
17684
+ function EventSummaryResponseDataToJSON(value) {
17673
17685
  if (value == null) {
17674
17686
  return value;
17675
17687
  }
17676
17688
  return {
17677
- component: ComponentResponseDataToJSON(value["component"]),
17678
- data: value["data"]
17689
+ company_count: value["companyCount"],
17690
+ environment_id: value["environmentId"],
17691
+ event_count: value["eventCount"],
17692
+ event_subtype: value["eventSubtype"],
17693
+ last_seen_at: value["lastSeenAt"] == null ? void 0 : value["lastSeenAt"].toISOString(),
17694
+ user_count: value["userCount"]
17679
17695
  };
17680
17696
  }
17681
17697
 
17682
- // src/api/models/CountApiKeysParams.ts
17683
- function instanceOfCountApiKeysParams(value) {
17698
+ // src/api/models/RuleConditionResourceResponseData.ts
17699
+ function instanceOfRuleConditionResourceResponseData(value) {
17700
+ if (!("id" in value) || value["id"] === void 0)
17701
+ return false;
17702
+ if (!("name" in value) || value["name"] === void 0)
17703
+ return false;
17684
17704
  return true;
17685
17705
  }
17686
- function CountApiKeysParamsFromJSON(json) {
17687
- return CountApiKeysParamsFromJSONTyped(json, false);
17706
+ function RuleConditionResourceResponseDataFromJSON(json) {
17707
+ return RuleConditionResourceResponseDataFromJSONTyped(json, false);
17688
17708
  }
17689
- function CountApiKeysParamsFromJSONTyped(json, ignoreDiscriminator) {
17709
+ function RuleConditionResourceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
17690
17710
  if (json == null) {
17691
17711
  return json;
17692
17712
  }
17693
17713
  return {
17694
- environmentId: json["environment_id"] == null ? void 0 : json["environment_id"],
17695
- limit: json["limit"] == null ? void 0 : json["limit"],
17696
- offset: json["offset"] == null ? void 0 : json["offset"],
17697
- requireEnvironment: json["require_environment"] == null ? void 0 : json["require_environment"]
17714
+ id: json["id"],
17715
+ name: json["name"]
17698
17716
  };
17699
17717
  }
17700
- function CountApiKeysParamsToJSON(value) {
17718
+ function RuleConditionResourceResponseDataToJSON(value) {
17701
17719
  if (value == null) {
17702
17720
  return value;
17703
17721
  }
17704
17722
  return {
17705
- environment_id: value["environmentId"],
17706
- limit: value["limit"],
17707
- offset: value["offset"],
17708
- require_environment: value["requireEnvironment"]
17723
+ id: value["id"],
17724
+ name: value["name"]
17709
17725
  };
17710
17726
  }
17711
17727
 
17712
- // src/api/models/CountResponse.ts
17713
- function instanceOfCountResponse(value) {
17714
- if (!("count" in value) || value["count"] === void 0)
17728
+ // src/api/models/RuleConditionDetailResponseData.ts
17729
+ function instanceOfRuleConditionDetailResponseData(value) {
17730
+ if (!("conditionType" in value) || value["conditionType"] === void 0)
17731
+ return false;
17732
+ if (!("createdAt" in value) || value["createdAt"] === void 0)
17733
+ return false;
17734
+ if (!("environmentId" in value) || value["environmentId"] === void 0)
17735
+ return false;
17736
+ if (!("id" in value) || value["id"] === void 0)
17737
+ return false;
17738
+ if (!("operator" in value) || value["operator"] === void 0)
17739
+ return false;
17740
+ if (!("resourceIds" in value) || value["resourceIds"] === void 0)
17741
+ return false;
17742
+ if (!("resources" in value) || value["resources"] === void 0)
17743
+ return false;
17744
+ if (!("ruleId" in value) || value["ruleId"] === void 0)
17745
+ return false;
17746
+ if (!("traitValue" in value) || value["traitValue"] === void 0)
17747
+ return false;
17748
+ if (!("updatedAt" in value) || value["updatedAt"] === void 0)
17715
17749
  return false;
17716
17750
  return true;
17717
17751
  }
17718
- function CountResponseFromJSON(json) {
17719
- return CountResponseFromJSONTyped(json, false);
17752
+ function RuleConditionDetailResponseDataFromJSON(json) {
17753
+ return RuleConditionDetailResponseDataFromJSONTyped(json, false);
17720
17754
  }
17721
- function CountResponseFromJSONTyped(json, ignoreDiscriminator) {
17755
+ function RuleConditionDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
17722
17756
  if (json == null) {
17723
17757
  return json;
17724
17758
  }
17725
17759
  return {
17726
- count: json["count"]
17760
+ comparisonTrait: json["comparison_trait"] == null ? void 0 : EntityTraitDefinitionResponseDataFromJSON(json["comparison_trait"]),
17761
+ comparisonTraitId: json["comparison_trait_id"] == null ? void 0 : json["comparison_trait_id"],
17762
+ conditionGroupId: json["condition_group_id"] == null ? void 0 : json["condition_group_id"],
17763
+ conditionType: json["condition_type"],
17764
+ createdAt: new Date(json["created_at"]),
17765
+ environmentId: json["environment_id"],
17766
+ eventSubtype: json["event_subtype"] == null ? void 0 : json["event_subtype"],
17767
+ flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
17768
+ id: json["id"],
17769
+ metricPeriod: json["metric_period"] == null ? void 0 : json["metric_period"],
17770
+ metricValue: json["metric_value"] == null ? void 0 : json["metric_value"],
17771
+ operator: json["operator"],
17772
+ planId: json["plan_id"] == null ? void 0 : json["plan_id"],
17773
+ resourceIds: json["resource_ids"],
17774
+ resources: json["resources"].map(
17775
+ RuleConditionResourceResponseDataFromJSON
17776
+ ),
17777
+ ruleId: json["rule_id"],
17778
+ trait: json["trait"] == null ? void 0 : EntityTraitDefinitionResponseDataFromJSON(json["trait"]),
17779
+ traitEntityType: json["trait_entity_type"] == null ? void 0 : json["trait_entity_type"],
17780
+ traitId: json["trait_id"] == null ? void 0 : json["trait_id"],
17781
+ traitValue: json["trait_value"],
17782
+ updatedAt: new Date(json["updated_at"])
17727
17783
  };
17728
17784
  }
17729
- function CountResponseToJSON(value) {
17785
+ function RuleConditionDetailResponseDataToJSON(value) {
17730
17786
  if (value == null) {
17731
17787
  return value;
17732
17788
  }
17733
17789
  return {
17734
- count: value["count"]
17790
+ comparison_trait: EntityTraitDefinitionResponseDataToJSON(
17791
+ value["comparisonTrait"]
17792
+ ),
17793
+ comparison_trait_id: value["comparisonTraitId"],
17794
+ condition_group_id: value["conditionGroupId"],
17795
+ condition_type: value["conditionType"],
17796
+ created_at: value["createdAt"].toISOString(),
17797
+ environment_id: value["environmentId"],
17798
+ event_subtype: value["eventSubtype"],
17799
+ flag_id: value["flagId"],
17800
+ id: value["id"],
17801
+ metric_period: value["metricPeriod"],
17802
+ metric_value: value["metricValue"],
17803
+ operator: value["operator"],
17804
+ plan_id: value["planId"],
17805
+ resource_ids: value["resourceIds"],
17806
+ resources: value["resources"].map(
17807
+ RuleConditionResourceResponseDataToJSON
17808
+ ),
17809
+ rule_id: value["ruleId"],
17810
+ trait: EntityTraitDefinitionResponseDataToJSON(value["trait"]),
17811
+ trait_entity_type: value["traitEntityType"],
17812
+ trait_id: value["traitId"],
17813
+ trait_value: value["traitValue"],
17814
+ updated_at: value["updatedAt"].toISOString()
17735
17815
  };
17736
17816
  }
17737
17817
 
17738
- // src/api/models/CountApiKeysResponse.ts
17739
- function instanceOfCountApiKeysResponse(value) {
17740
- if (!("data" in value) || value["data"] === void 0)
17818
+ // src/api/models/RuleConditionGroupDetailResponseData.ts
17819
+ function instanceOfRuleConditionGroupDetailResponseData(value) {
17820
+ if (!("conditions" in value) || value["conditions"] === void 0)
17741
17821
  return false;
17742
- if (!("params" in value) || value["params"] === void 0)
17822
+ if (!("createdAt" in value) || value["createdAt"] === void 0)
17823
+ return false;
17824
+ if (!("environmentId" in value) || value["environmentId"] === void 0)
17825
+ return false;
17826
+ if (!("id" in value) || value["id"] === void 0)
17827
+ return false;
17828
+ if (!("ruleId" in value) || value["ruleId"] === void 0)
17829
+ return false;
17830
+ if (!("updatedAt" in value) || value["updatedAt"] === void 0)
17743
17831
  return false;
17744
17832
  return true;
17745
17833
  }
17746
- function CountApiKeysResponseFromJSON(json) {
17747
- return CountApiKeysResponseFromJSONTyped(json, false);
17834
+ function RuleConditionGroupDetailResponseDataFromJSON(json) {
17835
+ return RuleConditionGroupDetailResponseDataFromJSONTyped(json, false);
17748
17836
  }
17749
- function CountApiKeysResponseFromJSONTyped(json, ignoreDiscriminator) {
17837
+ function RuleConditionGroupDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
17750
17838
  if (json == null) {
17751
17839
  return json;
17752
17840
  }
17753
17841
  return {
17754
- data: CountResponseFromJSON(json["data"]),
17755
- params: CountApiKeysParamsFromJSON(json["params"])
17842
+ conditions: json["conditions"].map(
17843
+ RuleConditionDetailResponseDataFromJSON
17844
+ ),
17845
+ createdAt: new Date(json["created_at"]),
17846
+ environmentId: json["environment_id"],
17847
+ flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
17848
+ id: json["id"],
17849
+ planId: json["plan_id"] == null ? void 0 : json["plan_id"],
17850
+ ruleId: json["rule_id"],
17851
+ updatedAt: new Date(json["updated_at"])
17756
17852
  };
17757
17853
  }
17758
- function CountApiKeysResponseToJSON(value) {
17854
+ function RuleConditionGroupDetailResponseDataToJSON(value) {
17759
17855
  if (value == null) {
17760
17856
  return value;
17761
17857
  }
17762
17858
  return {
17763
- data: CountResponseToJSON(value["data"]),
17764
- params: CountApiKeysParamsToJSON(value["params"])
17859
+ conditions: value["conditions"].map(
17860
+ RuleConditionDetailResponseDataToJSON
17861
+ ),
17862
+ created_at: value["createdAt"].toISOString(),
17863
+ environment_id: value["environmentId"],
17864
+ flag_id: value["flagId"],
17865
+ id: value["id"],
17866
+ plan_id: value["planId"],
17867
+ rule_id: value["ruleId"],
17868
+ updated_at: value["updatedAt"].toISOString()
17765
17869
  };
17766
17870
  }
17767
17871
 
17768
- // src/api/models/CountApiRequestsParams.ts
17769
- function instanceOfCountApiRequestsParams(value) {
17872
+ // src/api/models/RuleDetailResponseData.ts
17873
+ function instanceOfRuleDetailResponseData(value) {
17874
+ if (!("conditionGroups" in value) || value["conditionGroups"] === void 0)
17875
+ return false;
17876
+ if (!("conditions" in value) || value["conditions"] === void 0)
17877
+ return false;
17878
+ if (!("createdAt" in value) || value["createdAt"] === void 0)
17879
+ return false;
17880
+ if (!("environmentId" in value) || value["environmentId"] === void 0)
17881
+ return false;
17882
+ if (!("id" in value) || value["id"] === void 0)
17883
+ return false;
17884
+ if (!("name" in value) || value["name"] === void 0)
17885
+ return false;
17886
+ if (!("priority" in value) || value["priority"] === void 0)
17887
+ return false;
17888
+ if (!("ruleType" in value) || value["ruleType"] === void 0)
17889
+ return false;
17890
+ if (!("updatedAt" in value) || value["updatedAt"] === void 0)
17891
+ return false;
17892
+ if (!("value" in value) || value["value"] === void 0)
17893
+ return false;
17770
17894
  return true;
17771
17895
  }
17772
- function CountApiRequestsParamsFromJSON(json) {
17773
- return CountApiRequestsParamsFromJSONTyped(json, false);
17896
+ function RuleDetailResponseDataFromJSON(json) {
17897
+ return RuleDetailResponseDataFromJSONTyped(json, false);
17774
17898
  }
17775
- function CountApiRequestsParamsFromJSONTyped(json, ignoreDiscriminator) {
17899
+ function RuleDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
17776
17900
  if (json == null) {
17777
17901
  return json;
17778
17902
  }
17779
17903
  return {
17780
- environmentId: json["environment_id"] == null ? void 0 : json["environment_id"],
17781
- limit: json["limit"] == null ? void 0 : json["limit"],
17782
- offset: json["offset"] == null ? void 0 : json["offset"],
17783
- q: json["q"] == null ? void 0 : json["q"],
17784
- requestType: json["request_type"] == null ? void 0 : json["request_type"]
17904
+ conditionGroups: json["condition_groups"].map(
17905
+ RuleConditionGroupDetailResponseDataFromJSON
17906
+ ),
17907
+ conditions: json["conditions"].map(
17908
+ RuleConditionDetailResponseDataFromJSON
17909
+ ),
17910
+ createdAt: new Date(json["created_at"]),
17911
+ environmentId: json["environment_id"],
17912
+ flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
17913
+ id: json["id"],
17914
+ name: json["name"],
17915
+ planId: json["plan_id"] == null ? void 0 : json["plan_id"],
17916
+ priority: json["priority"],
17917
+ ruleType: json["rule_type"],
17918
+ updatedAt: new Date(json["updated_at"]),
17919
+ value: json["value"]
17785
17920
  };
17786
17921
  }
17787
- function CountApiRequestsParamsToJSON(value) {
17922
+ function RuleDetailResponseDataToJSON(value) {
17788
17923
  if (value == null) {
17789
17924
  return value;
17790
17925
  }
17791
17926
  return {
17927
+ condition_groups: value["conditionGroups"].map(
17928
+ RuleConditionGroupDetailResponseDataToJSON
17929
+ ),
17930
+ conditions: value["conditions"].map(
17931
+ RuleConditionDetailResponseDataToJSON
17932
+ ),
17933
+ created_at: value["createdAt"].toISOString(),
17792
17934
  environment_id: value["environmentId"],
17793
- limit: value["limit"],
17794
- offset: value["offset"],
17795
- q: value["q"],
17796
- request_type: value["requestType"]
17797
- };
17798
- }
17799
-
17800
- // src/api/models/CountApiRequestsResponse.ts
17935
+ flag_id: value["flagId"],
17936
+ id: value["id"],
17937
+ name: value["name"],
17938
+ plan_id: value["planId"],
17939
+ priority: value["priority"],
17940
+ rule_type: value["ruleType"],
17941
+ updated_at: value["updatedAt"].toISOString(),
17942
+ value: value["value"]
17943
+ };
17944
+ }
17945
+
17946
+ // src/api/models/FlagCheckLogResponseData.ts
17947
+ function instanceOfFlagCheckLogResponseData(value) {
17948
+ if (!("checkStatus" in value) || value["checkStatus"] === void 0)
17949
+ return false;
17950
+ if (!("createdAt" in value) || value["createdAt"] === void 0)
17951
+ return false;
17952
+ if (!("environmentId" in value) || value["environmentId"] === void 0)
17953
+ return false;
17954
+ if (!("flagKey" in value) || value["flagKey"] === void 0)
17955
+ return false;
17956
+ if (!("id" in value) || value["id"] === void 0)
17957
+ return false;
17958
+ if (!("reason" in value) || value["reason"] === void 0)
17959
+ return false;
17960
+ if (!("updatedAt" in value) || value["updatedAt"] === void 0)
17961
+ return false;
17962
+ if (!("value" in value) || value["value"] === void 0)
17963
+ return false;
17964
+ return true;
17965
+ }
17966
+ function FlagCheckLogResponseDataFromJSON(json) {
17967
+ return FlagCheckLogResponseDataFromJSONTyped(json, false);
17968
+ }
17969
+ function FlagCheckLogResponseDataFromJSONTyped(json, ignoreDiscriminator) {
17970
+ if (json == null) {
17971
+ return json;
17972
+ }
17973
+ return {
17974
+ checkStatus: json["check_status"],
17975
+ companyId: json["company_id"] == null ? void 0 : json["company_id"],
17976
+ createdAt: new Date(json["created_at"]),
17977
+ environmentId: json["environment_id"],
17978
+ error: json["error"] == null ? void 0 : json["error"],
17979
+ flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
17980
+ flagKey: json["flag_key"],
17981
+ id: json["id"],
17982
+ reason: json["reason"],
17983
+ reqCompany: json["req_company"] == null ? void 0 : json["req_company"],
17984
+ reqUser: json["req_user"] == null ? void 0 : json["req_user"],
17985
+ ruleId: json["rule_id"] == null ? void 0 : json["rule_id"],
17986
+ updatedAt: new Date(json["updated_at"]),
17987
+ userId: json["user_id"] == null ? void 0 : json["user_id"],
17988
+ value: json["value"]
17989
+ };
17990
+ }
17991
+ function FlagCheckLogResponseDataToJSON(value) {
17992
+ if (value == null) {
17993
+ return value;
17994
+ }
17995
+ return {
17996
+ check_status: value["checkStatus"],
17997
+ company_id: value["companyId"],
17998
+ created_at: value["createdAt"].toISOString(),
17999
+ environment_id: value["environmentId"],
18000
+ error: value["error"],
18001
+ flag_id: value["flagId"],
18002
+ flag_key: value["flagKey"],
18003
+ id: value["id"],
18004
+ reason: value["reason"],
18005
+ req_company: value["reqCompany"],
18006
+ req_user: value["reqUser"],
18007
+ rule_id: value["ruleId"],
18008
+ updated_at: value["updatedAt"].toISOString(),
18009
+ user_id: value["userId"],
18010
+ value: value["value"]
18011
+ };
18012
+ }
18013
+
18014
+ // src/api/models/FlagDetailResponseData.ts
18015
+ function instanceOfFlagDetailResponseData(value) {
18016
+ if (!("createdAt" in value) || value["createdAt"] === void 0)
18017
+ return false;
18018
+ if (!("defaultValue" in value) || value["defaultValue"] === void 0)
18019
+ return false;
18020
+ if (!("description" in value) || value["description"] === void 0)
18021
+ return false;
18022
+ if (!("flagType" in value) || value["flagType"] === void 0)
18023
+ return false;
18024
+ if (!("id" in value) || value["id"] === void 0)
18025
+ return false;
18026
+ if (!("key" in value) || value["key"] === void 0)
18027
+ return false;
18028
+ if (!("name" in value) || value["name"] === void 0)
18029
+ return false;
18030
+ if (!("rules" in value) || value["rules"] === void 0)
18031
+ return false;
18032
+ if (!("updatedAt" in value) || value["updatedAt"] === void 0)
18033
+ return false;
18034
+ return true;
18035
+ }
18036
+ function FlagDetailResponseDataFromJSON(json) {
18037
+ return FlagDetailResponseDataFromJSONTyped(json, false);
18038
+ }
18039
+ function FlagDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
18040
+ if (json == null) {
18041
+ return json;
18042
+ }
18043
+ return {
18044
+ createdAt: new Date(json["created_at"]),
18045
+ defaultValue: json["default_value"],
18046
+ description: json["description"],
18047
+ feature: json["feature"] == null ? void 0 : FeatureResponseDataFromJSON(json["feature"]),
18048
+ featureId: json["feature_id"] == null ? void 0 : json["feature_id"],
18049
+ flagType: json["flag_type"],
18050
+ id: json["id"],
18051
+ key: json["key"],
18052
+ latestCheck: json["latest_check"] == null ? void 0 : FlagCheckLogResponseDataFromJSON(json["latest_check"]),
18053
+ name: json["name"],
18054
+ rules: json["rules"].map(RuleDetailResponseDataFromJSON),
18055
+ updatedAt: new Date(json["updated_at"])
18056
+ };
18057
+ }
18058
+ function FlagDetailResponseDataToJSON(value) {
18059
+ if (value == null) {
18060
+ return value;
18061
+ }
18062
+ return {
18063
+ created_at: value["createdAt"].toISOString(),
18064
+ default_value: value["defaultValue"],
18065
+ description: value["description"],
18066
+ feature: FeatureResponseDataToJSON(value["feature"]),
18067
+ feature_id: value["featureId"],
18068
+ flag_type: value["flagType"],
18069
+ id: value["id"],
18070
+ key: value["key"],
18071
+ latest_check: FlagCheckLogResponseDataToJSON(value["latestCheck"]),
18072
+ name: value["name"],
18073
+ rules: value["rules"].map(RuleDetailResponseDataToJSON),
18074
+ updated_at: value["updatedAt"].toISOString()
18075
+ };
18076
+ }
18077
+
18078
+ // src/api/models/FeatureDetailResponseData.ts
18079
+ function instanceOfFeatureDetailResponseData(value) {
18080
+ if (!("createdAt" in value) || value["createdAt"] === void 0)
18081
+ return false;
18082
+ if (!("description" in value) || value["description"] === void 0)
18083
+ return false;
18084
+ if (!("featureType" in value) || value["featureType"] === void 0)
18085
+ return false;
18086
+ if (!("flags" in value) || value["flags"] === void 0)
18087
+ return false;
18088
+ if (!("id" in value) || value["id"] === void 0)
18089
+ return false;
18090
+ if (!("name" in value) || value["name"] === void 0)
18091
+ return false;
18092
+ if (!("plans" in value) || value["plans"] === void 0)
18093
+ return false;
18094
+ if (!("updatedAt" in value) || value["updatedAt"] === void 0)
18095
+ return false;
18096
+ return true;
18097
+ }
18098
+ function FeatureDetailResponseDataFromJSON(json) {
18099
+ return FeatureDetailResponseDataFromJSONTyped(json, false);
18100
+ }
18101
+ function FeatureDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
18102
+ if (json == null) {
18103
+ return json;
18104
+ }
18105
+ return {
18106
+ createdAt: new Date(json["created_at"]),
18107
+ description: json["description"],
18108
+ eventSubtype: json["event_subtype"] == null ? void 0 : json["event_subtype"],
18109
+ eventSummary: json["event_summary"] == null ? void 0 : EventSummaryResponseDataFromJSON(json["event_summary"]),
18110
+ featureType: json["feature_type"],
18111
+ flags: json["flags"].map(FlagDetailResponseDataFromJSON),
18112
+ id: json["id"],
18113
+ lifecyclePhase: json["lifecycle_phase"] == null ? void 0 : json["lifecycle_phase"],
18114
+ name: json["name"],
18115
+ plans: json["plans"].map(PreviewObjectFromJSON),
18116
+ trait: json["trait"] == null ? void 0 : EntityTraitDefinitionResponseDataFromJSON(json["trait"]),
18117
+ traitId: json["trait_id"] == null ? void 0 : json["trait_id"],
18118
+ updatedAt: new Date(json["updated_at"])
18119
+ };
18120
+ }
18121
+ function FeatureDetailResponseDataToJSON(value) {
18122
+ if (value == null) {
18123
+ return value;
18124
+ }
18125
+ return {
18126
+ created_at: value["createdAt"].toISOString(),
18127
+ description: value["description"],
18128
+ event_subtype: value["eventSubtype"],
18129
+ event_summary: EventSummaryResponseDataToJSON(value["eventSummary"]),
18130
+ feature_type: value["featureType"],
18131
+ flags: value["flags"].map(FlagDetailResponseDataToJSON),
18132
+ id: value["id"],
18133
+ lifecycle_phase: value["lifecyclePhase"],
18134
+ name: value["name"],
18135
+ plans: value["plans"].map(PreviewObjectToJSON),
18136
+ trait: EntityTraitDefinitionResponseDataToJSON(value["trait"]),
18137
+ trait_id: value["traitId"],
18138
+ updated_at: value["updatedAt"].toISOString()
18139
+ };
18140
+ }
18141
+
18142
+ // src/api/models/PlanResponseData.ts
18143
+ function instanceOfPlanResponseData(value) {
18144
+ if (!("audienceType" in value) || value["audienceType"] === void 0)
18145
+ return false;
18146
+ if (!("createdAt" in value) || value["createdAt"] === void 0)
18147
+ return false;
18148
+ if (!("description" in value) || value["description"] === void 0)
18149
+ return false;
18150
+ if (!("id" in value) || value["id"] === void 0)
18151
+ return false;
18152
+ if (!("name" in value) || value["name"] === void 0)
18153
+ return false;
18154
+ if (!("planType" in value) || value["planType"] === void 0)
18155
+ return false;
18156
+ if (!("updatedAt" in value) || value["updatedAt"] === void 0)
18157
+ return false;
18158
+ return true;
18159
+ }
18160
+ function PlanResponseDataFromJSON(json) {
18161
+ return PlanResponseDataFromJSONTyped(json, false);
18162
+ }
18163
+ function PlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
18164
+ if (json == null) {
18165
+ return json;
18166
+ }
18167
+ return {
18168
+ audienceType: json["audience_type"],
18169
+ createdAt: new Date(json["created_at"]),
18170
+ description: json["description"],
18171
+ id: json["id"],
18172
+ name: json["name"],
18173
+ planType: json["plan_type"],
18174
+ updatedAt: new Date(json["updated_at"])
18175
+ };
18176
+ }
18177
+ function PlanResponseDataToJSON(value) {
18178
+ if (value == null) {
18179
+ return value;
18180
+ }
18181
+ return {
18182
+ audience_type: value["audienceType"],
18183
+ created_at: value["createdAt"].toISOString(),
18184
+ description: value["description"],
18185
+ id: value["id"],
18186
+ name: value["name"],
18187
+ plan_type: value["planType"],
18188
+ updated_at: value["updatedAt"].toISOString()
18189
+ };
18190
+ }
18191
+
18192
+ // src/api/models/FeatureUsageResponseData.ts
18193
+ var FeatureUsageResponseDataAllocationTypeEnum = {
18194
+ Boolean: "boolean",
18195
+ Numeric: "numeric",
18196
+ Trait: "trait",
18197
+ Unlimited: "unlimited"
18198
+ };
18199
+ function instanceOfFeatureUsageResponseData(value) {
18200
+ if (!("access" in value) || value["access"] === void 0)
18201
+ return false;
18202
+ if (!("allocationType" in value) || value["allocationType"] === void 0)
18203
+ return false;
18204
+ if (!("entitlementId" in value) || value["entitlementId"] === void 0)
18205
+ return false;
18206
+ if (!("entitlementType" in value) || value["entitlementType"] === void 0)
18207
+ return false;
18208
+ return true;
18209
+ }
18210
+ function FeatureUsageResponseDataFromJSON(json) {
18211
+ return FeatureUsageResponseDataFromJSONTyped(json, false);
18212
+ }
18213
+ function FeatureUsageResponseDataFromJSONTyped(json, ignoreDiscriminator) {
18214
+ if (json == null) {
18215
+ return json;
18216
+ }
18217
+ return {
18218
+ access: json["access"],
18219
+ allocation: json["allocation"] == null ? void 0 : json["allocation"],
18220
+ allocationType: json["allocation_type"],
18221
+ entitlementId: json["entitlement_id"],
18222
+ entitlementType: json["entitlement_type"],
18223
+ feature: json["feature"] == null ? void 0 : FeatureDetailResponseDataFromJSON(json["feature"]),
18224
+ period: json["period"] == null ? void 0 : json["period"],
18225
+ plan: json["plan"] == null ? void 0 : PlanResponseDataFromJSON(json["plan"]),
18226
+ usage: json["usage"] == null ? void 0 : json["usage"]
18227
+ };
18228
+ }
18229
+ function FeatureUsageResponseDataToJSON(value) {
18230
+ if (value == null) {
18231
+ return value;
18232
+ }
18233
+ return {
18234
+ access: value["access"],
18235
+ allocation: value["allocation"],
18236
+ allocation_type: value["allocationType"],
18237
+ entitlement_id: value["entitlementId"],
18238
+ entitlement_type: value["entitlementType"],
18239
+ feature: FeatureDetailResponseDataToJSON(value["feature"]),
18240
+ period: value["period"],
18241
+ plan: PlanResponseDataToJSON(value["plan"]),
18242
+ usage: value["usage"]
18243
+ };
18244
+ }
18245
+
18246
+ // src/api/models/FeatureUsageDetailResponseData.ts
18247
+ function instanceOfFeatureUsageDetailResponseData(value) {
18248
+ if (!("features" in value) || value["features"] === void 0)
18249
+ return false;
18250
+ return true;
18251
+ }
18252
+ function FeatureUsageDetailResponseDataFromJSON(json) {
18253
+ return FeatureUsageDetailResponseDataFromJSONTyped(json, false);
18254
+ }
18255
+ function FeatureUsageDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
18256
+ if (json == null) {
18257
+ return json;
18258
+ }
18259
+ return {
18260
+ features: json["features"].map(
18261
+ FeatureUsageResponseDataFromJSON
18262
+ )
18263
+ };
18264
+ }
18265
+ function FeatureUsageDetailResponseDataToJSON(value) {
18266
+ if (value == null) {
18267
+ return value;
18268
+ }
18269
+ return {
18270
+ features: value["features"].map(
18271
+ FeatureUsageResponseDataToJSON
18272
+ )
18273
+ };
18274
+ }
18275
+
18276
+ // src/api/models/ComponentHydrateResponseData.ts
18277
+ function instanceOfComponentHydrateResponseData(value) {
18278
+ return true;
18279
+ }
18280
+ function ComponentHydrateResponseDataFromJSON(json) {
18281
+ return ComponentHydrateResponseDataFromJSONTyped(json, false);
18282
+ }
18283
+ function ComponentHydrateResponseDataFromJSONTyped(json, ignoreDiscriminator) {
18284
+ if (json == null) {
18285
+ return json;
18286
+ }
18287
+ return {
18288
+ company: json["company"] == null ? void 0 : CompanyDetailResponseDataFromJSON(json["company"]),
18289
+ component: json["component"] == null ? void 0 : ComponentResponseDataFromJSON(json["component"]),
18290
+ featureUsage: json["feature_usage"] == null ? void 0 : FeatureUsageDetailResponseDataFromJSON(json["feature_usage"])
18291
+ };
18292
+ }
18293
+ function ComponentHydrateResponseDataToJSON(value) {
18294
+ if (value == null) {
18295
+ return value;
18296
+ }
18297
+ return {
18298
+ company: CompanyDetailResponseDataToJSON(value["company"]),
18299
+ component: ComponentResponseDataToJSON(value["component"]),
18300
+ feature_usage: FeatureUsageDetailResponseDataToJSON(value["featureUsage"])
18301
+ };
18302
+ }
18303
+
18304
+ // src/api/models/CountApiKeysParams.ts
18305
+ function instanceOfCountApiKeysParams(value) {
18306
+ return true;
18307
+ }
18308
+ function CountApiKeysParamsFromJSON(json) {
18309
+ return CountApiKeysParamsFromJSONTyped(json, false);
18310
+ }
18311
+ function CountApiKeysParamsFromJSONTyped(json, ignoreDiscriminator) {
18312
+ if (json == null) {
18313
+ return json;
18314
+ }
18315
+ return {
18316
+ environmentId: json["environment_id"] == null ? void 0 : json["environment_id"],
18317
+ limit: json["limit"] == null ? void 0 : json["limit"],
18318
+ offset: json["offset"] == null ? void 0 : json["offset"],
18319
+ requireEnvironment: json["require_environment"] == null ? void 0 : json["require_environment"]
18320
+ };
18321
+ }
18322
+ function CountApiKeysParamsToJSON(value) {
18323
+ if (value == null) {
18324
+ return value;
18325
+ }
18326
+ return {
18327
+ environment_id: value["environmentId"],
18328
+ limit: value["limit"],
18329
+ offset: value["offset"],
18330
+ require_environment: value["requireEnvironment"]
18331
+ };
18332
+ }
18333
+
18334
+ // src/api/models/CountResponse.ts
18335
+ function instanceOfCountResponse(value) {
18336
+ if (!("count" in value) || value["count"] === void 0)
18337
+ return false;
18338
+ return true;
18339
+ }
18340
+ function CountResponseFromJSON(json) {
18341
+ return CountResponseFromJSONTyped(json, false);
18342
+ }
18343
+ function CountResponseFromJSONTyped(json, ignoreDiscriminator) {
18344
+ if (json == null) {
18345
+ return json;
18346
+ }
18347
+ return {
18348
+ count: json["count"]
18349
+ };
18350
+ }
18351
+ function CountResponseToJSON(value) {
18352
+ if (value == null) {
18353
+ return value;
18354
+ }
18355
+ return {
18356
+ count: value["count"]
18357
+ };
18358
+ }
18359
+
18360
+ // src/api/models/CountApiKeysResponse.ts
18361
+ function instanceOfCountApiKeysResponse(value) {
18362
+ if (!("data" in value) || value["data"] === void 0)
18363
+ return false;
18364
+ if (!("params" in value) || value["params"] === void 0)
18365
+ return false;
18366
+ return true;
18367
+ }
18368
+ function CountApiKeysResponseFromJSON(json) {
18369
+ return CountApiKeysResponseFromJSONTyped(json, false);
18370
+ }
18371
+ function CountApiKeysResponseFromJSONTyped(json, ignoreDiscriminator) {
18372
+ if (json == null) {
18373
+ return json;
18374
+ }
18375
+ return {
18376
+ data: CountResponseFromJSON(json["data"]),
18377
+ params: CountApiKeysParamsFromJSON(json["params"])
18378
+ };
18379
+ }
18380
+ function CountApiKeysResponseToJSON(value) {
18381
+ if (value == null) {
18382
+ return value;
18383
+ }
18384
+ return {
18385
+ data: CountResponseToJSON(value["data"]),
18386
+ params: CountApiKeysParamsToJSON(value["params"])
18387
+ };
18388
+ }
18389
+
18390
+ // src/api/models/CountApiRequestsParams.ts
18391
+ function instanceOfCountApiRequestsParams(value) {
18392
+ return true;
18393
+ }
18394
+ function CountApiRequestsParamsFromJSON(json) {
18395
+ return CountApiRequestsParamsFromJSONTyped(json, false);
18396
+ }
18397
+ function CountApiRequestsParamsFromJSONTyped(json, ignoreDiscriminator) {
18398
+ if (json == null) {
18399
+ return json;
18400
+ }
18401
+ return {
18402
+ environmentId: json["environment_id"] == null ? void 0 : json["environment_id"],
18403
+ limit: json["limit"] == null ? void 0 : json["limit"],
18404
+ offset: json["offset"] == null ? void 0 : json["offset"],
18405
+ q: json["q"] == null ? void 0 : json["q"],
18406
+ requestType: json["request_type"] == null ? void 0 : json["request_type"]
18407
+ };
18408
+ }
18409
+ function CountApiRequestsParamsToJSON(value) {
18410
+ if (value == null) {
18411
+ return value;
18412
+ }
18413
+ return {
18414
+ environment_id: value["environmentId"],
18415
+ limit: value["limit"],
18416
+ offset: value["offset"],
18417
+ q: value["q"],
18418
+ request_type: value["requestType"]
18419
+ };
18420
+ }
18421
+
18422
+ // src/api/models/CountApiRequestsResponse.ts
17801
18423
  function instanceOfCountApiRequestsResponse(value) {
17802
18424
  if (!("data" in value) || value["data"] === void 0)
17803
18425
  return false;
@@ -18679,1781 +19301,1293 @@ function CountPlansParamsFromJSONTyped(json, ignoreDiscriminator) {
18679
19301
  withoutEntitlementFor: json["without_entitlement_for"] == null ? void 0 : json["without_entitlement_for"]
18680
19302
  };
18681
19303
  }
18682
- function CountPlansParamsToJSON(value) {
18683
- if (value == null) {
18684
- return value;
18685
- }
18686
- return {
18687
- company_id: value["companyId"],
18688
- ids: value["ids"],
18689
- limit: value["limit"],
18690
- offset: value["offset"],
18691
- q: value["q"],
18692
- without_entitlement_for: value["withoutEntitlementFor"]
18693
- };
18694
- }
18695
-
18696
- // src/api/models/CountPlansResponse.ts
18697
- function instanceOfCountPlansResponse(value) {
18698
- if (!("data" in value) || value["data"] === void 0)
18699
- return false;
18700
- if (!("params" in value) || value["params"] === void 0)
18701
- return false;
18702
- return true;
18703
- }
18704
- function CountPlansResponseFromJSON(json) {
18705
- return CountPlansResponseFromJSONTyped(json, false);
18706
- }
18707
- function CountPlansResponseFromJSONTyped(json, ignoreDiscriminator) {
18708
- if (json == null) {
18709
- return json;
18710
- }
18711
- return {
18712
- data: CountResponseFromJSON(json["data"]),
18713
- params: CountPlansParamsFromJSON(json["params"])
18714
- };
18715
- }
18716
- function CountPlansResponseToJSON(value) {
18717
- if (value == null) {
18718
- return value;
18719
- }
18720
- return {
18721
- data: CountResponseToJSON(value["data"]),
18722
- params: CountPlansParamsToJSON(value["params"])
18723
- };
18724
- }
18725
-
18726
- // src/api/models/CountUsersParams.ts
18727
- function instanceOfCountUsersParams(value) {
18728
- return true;
18729
- }
18730
- function CountUsersParamsFromJSON(json) {
18731
- return CountUsersParamsFromJSONTyped(json, false);
18732
- }
18733
- function CountUsersParamsFromJSONTyped(json, ignoreDiscriminator) {
18734
- if (json == null) {
18735
- return json;
18736
- }
18737
- return {
18738
- companyId: json["company_id"] == null ? void 0 : json["company_id"],
18739
- ids: json["ids"] == null ? void 0 : json["ids"],
18740
- limit: json["limit"] == null ? void 0 : json["limit"],
18741
- offset: json["offset"] == null ? void 0 : json["offset"],
18742
- planId: json["plan_id"] == null ? void 0 : json["plan_id"],
18743
- q: json["q"] == null ? void 0 : json["q"]
18744
- };
18745
- }
18746
- function CountUsersParamsToJSON(value) {
18747
- if (value == null) {
18748
- return value;
18749
- }
18750
- return {
18751
- company_id: value["companyId"],
18752
- ids: value["ids"],
18753
- limit: value["limit"],
18754
- offset: value["offset"],
18755
- plan_id: value["planId"],
18756
- q: value["q"]
18757
- };
18758
- }
18759
-
18760
- // src/api/models/CountUsersResponse.ts
18761
- function instanceOfCountUsersResponse(value) {
18762
- if (!("data" in value) || value["data"] === void 0)
18763
- return false;
18764
- if (!("params" in value) || value["params"] === void 0)
18765
- return false;
18766
- return true;
18767
- }
18768
- function CountUsersResponseFromJSON(json) {
18769
- return CountUsersResponseFromJSONTyped(json, false);
18770
- }
18771
- function CountUsersResponseFromJSONTyped(json, ignoreDiscriminator) {
18772
- if (json == null) {
18773
- return json;
18774
- }
18775
- return {
18776
- data: CountResponseFromJSON(json["data"]),
18777
- params: CountUsersParamsFromJSON(json["params"])
18778
- };
18779
- }
18780
- function CountUsersResponseToJSON(value) {
18781
- if (value == null) {
18782
- return value;
18783
- }
18784
- return {
18785
- data: CountResponseToJSON(value["data"]),
18786
- params: CountUsersParamsToJSON(value["params"])
18787
- };
18788
- }
18789
-
18790
- // src/api/models/CountWebhookEventsParams.ts
18791
- function instanceOfCountWebhookEventsParams(value) {
18792
- return true;
18793
- }
18794
- function CountWebhookEventsParamsFromJSON(json) {
18795
- return CountWebhookEventsParamsFromJSONTyped(json, false);
18796
- }
18797
- function CountWebhookEventsParamsFromJSONTyped(json, ignoreDiscriminator) {
18798
- if (json == null) {
18799
- return json;
18800
- }
18801
- return {
18802
- ids: json["ids"] == null ? void 0 : json["ids"],
18803
- limit: json["limit"] == null ? void 0 : json["limit"],
18804
- offset: json["offset"] == null ? void 0 : json["offset"],
18805
- q: json["q"] == null ? void 0 : json["q"],
18806
- webhookId: json["webhook_id"] == null ? void 0 : json["webhook_id"]
18807
- };
18808
- }
18809
- function CountWebhookEventsParamsToJSON(value) {
18810
- if (value == null) {
18811
- return value;
18812
- }
18813
- return {
18814
- ids: value["ids"],
18815
- limit: value["limit"],
18816
- offset: value["offset"],
18817
- q: value["q"],
18818
- webhook_id: value["webhookId"]
18819
- };
18820
- }
18821
-
18822
- // src/api/models/CountWebhookEventsResponse.ts
18823
- function instanceOfCountWebhookEventsResponse(value) {
18824
- if (!("data" in value) || value["data"] === void 0)
18825
- return false;
18826
- if (!("params" in value) || value["params"] === void 0)
18827
- return false;
18828
- return true;
18829
- }
18830
- function CountWebhookEventsResponseFromJSON(json) {
18831
- return CountWebhookEventsResponseFromJSONTyped(json, false);
18832
- }
18833
- function CountWebhookEventsResponseFromJSONTyped(json, ignoreDiscriminator) {
18834
- if (json == null) {
18835
- return json;
18836
- }
18837
- return {
18838
- data: CountResponseFromJSON(json["data"]),
18839
- params: CountWebhookEventsParamsFromJSON(json["params"])
18840
- };
18841
- }
18842
- function CountWebhookEventsResponseToJSON(value) {
18843
- if (value == null) {
18844
- return value;
18845
- }
18846
- return {
18847
- data: CountResponseToJSON(value["data"]),
18848
- params: CountWebhookEventsParamsToJSON(value["params"])
18849
- };
18850
- }
18851
-
18852
- // src/api/models/CountWebhooksParams.ts
18853
- function instanceOfCountWebhooksParams(value) {
18854
- return true;
18855
- }
18856
- function CountWebhooksParamsFromJSON(json) {
18857
- return CountWebhooksParamsFromJSONTyped(json, false);
18858
- }
18859
- function CountWebhooksParamsFromJSONTyped(json, ignoreDiscriminator) {
18860
- if (json == null) {
18861
- return json;
18862
- }
18863
- return {
18864
- limit: json["limit"] == null ? void 0 : json["limit"],
18865
- offset: json["offset"] == null ? void 0 : json["offset"],
18866
- q: json["q"] == null ? void 0 : json["q"]
18867
- };
18868
- }
18869
- function CountWebhooksParamsToJSON(value) {
18870
- if (value == null) {
18871
- return value;
18872
- }
18873
- return {
18874
- limit: value["limit"],
18875
- offset: value["offset"],
18876
- q: value["q"]
18877
- };
18878
- }
18879
-
18880
- // src/api/models/CountWebhooksResponse.ts
18881
- function instanceOfCountWebhooksResponse(value) {
18882
- if (!("data" in value) || value["data"] === void 0)
18883
- return false;
18884
- if (!("params" in value) || value["params"] === void 0)
18885
- return false;
18886
- return true;
18887
- }
18888
- function CountWebhooksResponseFromJSON(json) {
18889
- return CountWebhooksResponseFromJSONTyped(json, false);
18890
- }
18891
- function CountWebhooksResponseFromJSONTyped(json, ignoreDiscriminator) {
18892
- if (json == null) {
18893
- return json;
18894
- }
18895
- return {
18896
- data: CountResponseFromJSON(json["data"]),
18897
- params: CountWebhooksParamsFromJSON(json["params"])
18898
- };
18899
- }
18900
- function CountWebhooksResponseToJSON(value) {
18901
- if (value == null) {
18902
- return value;
18903
- }
18904
- return {
18905
- data: CountResponseToJSON(value["data"]),
18906
- params: CountWebhooksParamsToJSON(value["params"])
18907
- };
18908
- }
18909
-
18910
- // src/api/models/CreateApiKeyRequestBody.ts
18911
- function instanceOfCreateApiKeyRequestBody(value) {
18912
- if (!("name" in value) || value["name"] === void 0)
18913
- return false;
18914
- return true;
18915
- }
18916
- function CreateApiKeyRequestBodyFromJSON(json) {
18917
- return CreateApiKeyRequestBodyFromJSONTyped(json, false);
18918
- }
18919
- function CreateApiKeyRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
18920
- if (json == null) {
18921
- return json;
18922
- }
18923
- return {
18924
- description: json["description"] == null ? void 0 : json["description"],
18925
- environmentId: json["environment_id"] == null ? void 0 : json["environment_id"],
18926
- name: json["name"]
18927
- };
18928
- }
18929
- function CreateApiKeyRequestBodyToJSON(value) {
19304
+ function CountPlansParamsToJSON(value) {
18930
19305
  if (value == null) {
18931
19306
  return value;
18932
19307
  }
18933
19308
  return {
18934
- description: value["description"],
18935
- environment_id: value["environmentId"],
18936
- name: value["name"]
19309
+ company_id: value["companyId"],
19310
+ ids: value["ids"],
19311
+ limit: value["limit"],
19312
+ offset: value["offset"],
19313
+ q: value["q"],
19314
+ without_entitlement_for: value["withoutEntitlementFor"]
18937
19315
  };
18938
19316
  }
18939
19317
 
18940
- // src/api/models/CreateApiKeyResponse.ts
18941
- function instanceOfCreateApiKeyResponse(value) {
19318
+ // src/api/models/CountPlansResponse.ts
19319
+ function instanceOfCountPlansResponse(value) {
18942
19320
  if (!("data" in value) || value["data"] === void 0)
18943
19321
  return false;
18944
19322
  if (!("params" in value) || value["params"] === void 0)
18945
19323
  return false;
18946
19324
  return true;
18947
19325
  }
18948
- function CreateApiKeyResponseFromJSON(json) {
18949
- return CreateApiKeyResponseFromJSONTyped(json, false);
19326
+ function CountPlansResponseFromJSON(json) {
19327
+ return CountPlansResponseFromJSONTyped(json, false);
18950
19328
  }
18951
- function CreateApiKeyResponseFromJSONTyped(json, ignoreDiscriminator) {
19329
+ function CountPlansResponseFromJSONTyped(json, ignoreDiscriminator) {
18952
19330
  if (json == null) {
18953
19331
  return json;
18954
19332
  }
18955
19333
  return {
18956
- data: ApiKeyCreateResponseDataFromJSON(json["data"]),
18957
- params: json["params"]
19334
+ data: CountResponseFromJSON(json["data"]),
19335
+ params: CountPlansParamsFromJSON(json["params"])
18958
19336
  };
18959
19337
  }
18960
- function CreateApiKeyResponseToJSON(value) {
19338
+ function CountPlansResponseToJSON(value) {
18961
19339
  if (value == null) {
18962
19340
  return value;
18963
19341
  }
18964
19342
  return {
18965
- data: ApiKeyCreateResponseDataToJSON(value["data"]),
18966
- params: value["params"]
19343
+ data: CountResponseToJSON(value["data"]),
19344
+ params: CountPlansParamsToJSON(value["params"])
18967
19345
  };
18968
19346
  }
18969
19347
 
18970
- // src/api/models/CreateBillingProductRequestBody.ts
18971
- function instanceOfCreateBillingProductRequestBody(value) {
18972
- if (!("currency" in value) || value["currency"] === void 0)
18973
- return false;
18974
- if (!("externalId" in value) || value["externalId"] === void 0)
18975
- return false;
18976
- if (!("name" in value) || value["name"] === void 0)
18977
- return false;
18978
- if (!("price" in value) || value["price"] === void 0)
18979
- return false;
18980
- if (!("quantity" in value) || value["quantity"] === void 0)
18981
- return false;
19348
+ // src/api/models/CountUsersParams.ts
19349
+ function instanceOfCountUsersParams(value) {
18982
19350
  return true;
18983
19351
  }
18984
- function CreateBillingProductRequestBodyFromJSON(json) {
18985
- return CreateBillingProductRequestBodyFromJSONTyped(json, false);
19352
+ function CountUsersParamsFromJSON(json) {
19353
+ return CountUsersParamsFromJSONTyped(json, false);
18986
19354
  }
18987
- function CreateBillingProductRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
19355
+ function CountUsersParamsFromJSONTyped(json, ignoreDiscriminator) {
18988
19356
  if (json == null) {
18989
19357
  return json;
18990
19358
  }
18991
19359
  return {
18992
- currency: json["currency"],
18993
- externalId: json["external_id"],
18994
- name: json["name"],
18995
- price: json["price"],
18996
- quantity: json["quantity"]
19360
+ companyId: json["company_id"] == null ? void 0 : json["company_id"],
19361
+ ids: json["ids"] == null ? void 0 : json["ids"],
19362
+ limit: json["limit"] == null ? void 0 : json["limit"],
19363
+ offset: json["offset"] == null ? void 0 : json["offset"],
19364
+ planId: json["plan_id"] == null ? void 0 : json["plan_id"],
19365
+ q: json["q"] == null ? void 0 : json["q"]
18997
19366
  };
18998
19367
  }
18999
- function CreateBillingProductRequestBodyToJSON(value) {
19368
+ function CountUsersParamsToJSON(value) {
19000
19369
  if (value == null) {
19001
19370
  return value;
19002
19371
  }
19003
19372
  return {
19004
- currency: value["currency"],
19005
- external_id: value["externalId"],
19006
- name: value["name"],
19007
- price: value["price"],
19008
- quantity: value["quantity"]
19373
+ company_id: value["companyId"],
19374
+ ids: value["ids"],
19375
+ limit: value["limit"],
19376
+ offset: value["offset"],
19377
+ plan_id: value["planId"],
19378
+ q: value["q"]
19009
19379
  };
19010
19380
  }
19011
19381
 
19012
- // src/api/models/CreateBillingSubscriptionsRequestBody.ts
19013
- function instanceOfCreateBillingSubscriptionsRequestBody(value) {
19014
- if (!("customerExternalId" in value) || value["customerExternalId"] === void 0)
19015
- return false;
19016
- if (!("expiredAt" in value) || value["expiredAt"] === void 0)
19017
- return false;
19018
- if (!("productExternalIds" in value) || value["productExternalIds"] === void 0)
19382
+ // src/api/models/CountUsersResponse.ts
19383
+ function instanceOfCountUsersResponse(value) {
19384
+ if (!("data" in value) || value["data"] === void 0)
19019
19385
  return false;
19020
- if (!("subscriptionExternalId" in value) || value["subscriptionExternalId"] === void 0)
19386
+ if (!("params" in value) || value["params"] === void 0)
19021
19387
  return false;
19022
19388
  return true;
19023
19389
  }
19024
- function CreateBillingSubscriptionsRequestBodyFromJSON(json) {
19025
- return CreateBillingSubscriptionsRequestBodyFromJSONTyped(json, false);
19390
+ function CountUsersResponseFromJSON(json) {
19391
+ return CountUsersResponseFromJSONTyped(json, false);
19026
19392
  }
19027
- function CreateBillingSubscriptionsRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
19393
+ function CountUsersResponseFromJSONTyped(json, ignoreDiscriminator) {
19028
19394
  if (json == null) {
19029
19395
  return json;
19030
19396
  }
19031
19397
  return {
19032
- customerExternalId: json["customer_external_id"],
19033
- expiredAt: new Date(json["expired_at"]),
19034
- interval: json["interval"] == null ? void 0 : json["interval"],
19035
- productExternalIds: json["product_external_ids"],
19036
- subscriptionExternalId: json["subscription_external_id"]
19398
+ data: CountResponseFromJSON(json["data"]),
19399
+ params: CountUsersParamsFromJSON(json["params"])
19037
19400
  };
19038
19401
  }
19039
- function CreateBillingSubscriptionsRequestBodyToJSON(value) {
19402
+ function CountUsersResponseToJSON(value) {
19040
19403
  if (value == null) {
19041
19404
  return value;
19042
19405
  }
19043
19406
  return {
19044
- customer_external_id: value["customerExternalId"],
19045
- expired_at: value["expiredAt"].toISOString(),
19046
- interval: value["interval"],
19047
- product_external_ids: value["productExternalIds"],
19048
- subscription_external_id: value["subscriptionExternalId"]
19407
+ data: CountResponseToJSON(value["data"]),
19408
+ params: CountUsersParamsToJSON(value["params"])
19049
19409
  };
19050
19410
  }
19051
19411
 
19052
- // src/api/models/CreateCompanyOverrideRequestBody.ts
19053
- var CreateCompanyOverrideRequestBodyMetricPeriodEnum = {
19054
- Month: "current_month",
19055
- Week: "current_week",
19056
- Day: "current_day"
19057
- };
19058
- var CreateCompanyOverrideRequestBodyValueTypeEnum = {
19059
- Boolean: "boolean",
19060
- Numeric: "numeric",
19061
- Trait: "trait",
19062
- Unlimited: "unlimited"
19063
- };
19064
- function instanceOfCreateCompanyOverrideRequestBody(value) {
19065
- if (!("companyId" in value) || value["companyId"] === void 0)
19066
- return false;
19067
- if (!("featureId" in value) || value["featureId"] === void 0)
19068
- return false;
19069
- if (!("valueType" in value) || value["valueType"] === void 0)
19070
- return false;
19412
+ // src/api/models/CountWebhookEventsParams.ts
19413
+ function instanceOfCountWebhookEventsParams(value) {
19071
19414
  return true;
19072
19415
  }
19073
- function CreateCompanyOverrideRequestBodyFromJSON(json) {
19074
- return CreateCompanyOverrideRequestBodyFromJSONTyped(json, false);
19416
+ function CountWebhookEventsParamsFromJSON(json) {
19417
+ return CountWebhookEventsParamsFromJSONTyped(json, false);
19075
19418
  }
19076
- function CreateCompanyOverrideRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
19419
+ function CountWebhookEventsParamsFromJSONTyped(json, ignoreDiscriminator) {
19077
19420
  if (json == null) {
19078
19421
  return json;
19079
19422
  }
19080
19423
  return {
19081
- companyId: json["company_id"],
19082
- featureId: json["feature_id"],
19083
- metricPeriod: json["metric_period"] == null ? void 0 : json["metric_period"],
19084
- valueBool: json["value_bool"] == null ? void 0 : json["value_bool"],
19085
- valueNumeric: json["value_numeric"] == null ? void 0 : json["value_numeric"],
19086
- valueTraitId: json["value_trait_id"] == null ? void 0 : json["value_trait_id"],
19087
- valueType: json["value_type"]
19424
+ ids: json["ids"] == null ? void 0 : json["ids"],
19425
+ limit: json["limit"] == null ? void 0 : json["limit"],
19426
+ offset: json["offset"] == null ? void 0 : json["offset"],
19427
+ q: json["q"] == null ? void 0 : json["q"],
19428
+ webhookId: json["webhook_id"] == null ? void 0 : json["webhook_id"]
19088
19429
  };
19089
19430
  }
19090
- function CreateCompanyOverrideRequestBodyToJSON(value) {
19431
+ function CountWebhookEventsParamsToJSON(value) {
19091
19432
  if (value == null) {
19092
19433
  return value;
19093
19434
  }
19094
19435
  return {
19095
- company_id: value["companyId"],
19096
- feature_id: value["featureId"],
19097
- metric_period: value["metricPeriod"],
19098
- value_bool: value["valueBool"],
19099
- value_numeric: value["valueNumeric"],
19100
- value_trait_id: value["valueTraitId"],
19101
- value_type: value["valueType"]
19436
+ ids: value["ids"],
19437
+ limit: value["limit"],
19438
+ offset: value["offset"],
19439
+ q: value["q"],
19440
+ webhook_id: value["webhookId"]
19102
19441
  };
19103
19442
  }
19104
19443
 
19105
- // src/api/models/CreateCompanyOverrideResponse.ts
19106
- function instanceOfCreateCompanyOverrideResponse(value) {
19444
+ // src/api/models/CountWebhookEventsResponse.ts
19445
+ function instanceOfCountWebhookEventsResponse(value) {
19107
19446
  if (!("data" in value) || value["data"] === void 0)
19108
19447
  return false;
19109
19448
  if (!("params" in value) || value["params"] === void 0)
19110
19449
  return false;
19111
19450
  return true;
19112
19451
  }
19113
- function CreateCompanyOverrideResponseFromJSON(json) {
19114
- return CreateCompanyOverrideResponseFromJSONTyped(json, false);
19452
+ function CountWebhookEventsResponseFromJSON(json) {
19453
+ return CountWebhookEventsResponseFromJSONTyped(json, false);
19115
19454
  }
19116
- function CreateCompanyOverrideResponseFromJSONTyped(json, ignoreDiscriminator) {
19455
+ function CountWebhookEventsResponseFromJSONTyped(json, ignoreDiscriminator) {
19117
19456
  if (json == null) {
19118
19457
  return json;
19119
19458
  }
19120
19459
  return {
19121
- data: CompanyOverrideResponseDataFromJSON(json["data"]),
19122
- params: json["params"]
19460
+ data: CountResponseFromJSON(json["data"]),
19461
+ params: CountWebhookEventsParamsFromJSON(json["params"])
19123
19462
  };
19124
19463
  }
19125
- function CreateCompanyOverrideResponseToJSON(value) {
19464
+ function CountWebhookEventsResponseToJSON(value) {
19126
19465
  if (value == null) {
19127
19466
  return value;
19128
19467
  }
19129
19468
  return {
19130
- data: CompanyOverrideResponseDataToJSON(value["data"]),
19131
- params: value["params"]
19469
+ data: CountResponseToJSON(value["data"]),
19470
+ params: CountWebhookEventsParamsToJSON(value["params"])
19132
19471
  };
19133
19472
  }
19134
19473
 
19135
- // src/api/models/CreateCompanyResponse.ts
19136
- function instanceOfCreateCompanyResponse(value) {
19137
- if (!("data" in value) || value["data"] === void 0)
19138
- return false;
19139
- if (!("params" in value) || value["params"] === void 0)
19140
- return false;
19474
+ // src/api/models/CountWebhooksParams.ts
19475
+ function instanceOfCountWebhooksParams(value) {
19141
19476
  return true;
19142
19477
  }
19143
- function CreateCompanyResponseFromJSON(json) {
19144
- return CreateCompanyResponseFromJSONTyped(json, false);
19478
+ function CountWebhooksParamsFromJSON(json) {
19479
+ return CountWebhooksParamsFromJSONTyped(json, false);
19145
19480
  }
19146
- function CreateCompanyResponseFromJSONTyped(json, ignoreDiscriminator) {
19481
+ function CountWebhooksParamsFromJSONTyped(json, ignoreDiscriminator) {
19147
19482
  if (json == null) {
19148
19483
  return json;
19149
19484
  }
19150
19485
  return {
19151
- data: CompanyDetailResponseDataFromJSON(json["data"]),
19152
- params: json["params"]
19486
+ limit: json["limit"] == null ? void 0 : json["limit"],
19487
+ offset: json["offset"] == null ? void 0 : json["offset"],
19488
+ q: json["q"] == null ? void 0 : json["q"]
19153
19489
  };
19154
19490
  }
19155
- function CreateCompanyResponseToJSON(value) {
19491
+ function CountWebhooksParamsToJSON(value) {
19156
19492
  if (value == null) {
19157
19493
  return value;
19158
19494
  }
19159
19495
  return {
19160
- data: CompanyDetailResponseDataToJSON(value["data"]),
19161
- params: value["params"]
19496
+ limit: value["limit"],
19497
+ offset: value["offset"],
19498
+ q: value["q"]
19162
19499
  };
19163
19500
  }
19164
19501
 
19165
- // src/api/models/CreateComponentRequestBody.ts
19166
- var CreateComponentRequestBodyEntityTypeEnum = {
19167
- Entitlement: "entitlement",
19168
- Billing: "billing"
19169
- };
19170
- function instanceOfCreateComponentRequestBody(value) {
19171
- if (!("ast" in value) || value["ast"] === void 0)
19172
- return false;
19173
- if (!("entityType" in value) || value["entityType"] === void 0)
19502
+ // src/api/models/CountWebhooksResponse.ts
19503
+ function instanceOfCountWebhooksResponse(value) {
19504
+ if (!("data" in value) || value["data"] === void 0)
19174
19505
  return false;
19175
- if (!("name" in value) || value["name"] === void 0)
19506
+ if (!("params" in value) || value["params"] === void 0)
19176
19507
  return false;
19177
19508
  return true;
19178
19509
  }
19179
- function CreateComponentRequestBodyFromJSON(json) {
19180
- return CreateComponentRequestBodyFromJSONTyped(json, false);
19510
+ function CountWebhooksResponseFromJSON(json) {
19511
+ return CountWebhooksResponseFromJSONTyped(json, false);
19181
19512
  }
19182
- function CreateComponentRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
19513
+ function CountWebhooksResponseFromJSONTyped(json, ignoreDiscriminator) {
19183
19514
  if (json == null) {
19184
19515
  return json;
19185
19516
  }
19186
19517
  return {
19187
- ast: json["ast"],
19188
- entityType: json["entity_type"],
19189
- name: json["name"]
19518
+ data: CountResponseFromJSON(json["data"]),
19519
+ params: CountWebhooksParamsFromJSON(json["params"])
19190
19520
  };
19191
19521
  }
19192
- function CreateComponentRequestBodyToJSON(value) {
19522
+ function CountWebhooksResponseToJSON(value) {
19193
19523
  if (value == null) {
19194
19524
  return value;
19195
19525
  }
19196
19526
  return {
19197
- ast: value["ast"],
19198
- entity_type: value["entityType"],
19199
- name: value["name"]
19527
+ data: CountResponseToJSON(value["data"]),
19528
+ params: CountWebhooksParamsToJSON(value["params"])
19200
19529
  };
19201
19530
  }
19202
19531
 
19203
- // src/api/models/CreateComponentResponse.ts
19204
- function instanceOfCreateComponentResponse(value) {
19205
- if (!("data" in value) || value["data"] === void 0)
19206
- return false;
19207
- if (!("params" in value) || value["params"] === void 0)
19532
+ // src/api/models/CreateApiKeyRequestBody.ts
19533
+ function instanceOfCreateApiKeyRequestBody(value) {
19534
+ if (!("name" in value) || value["name"] === void 0)
19208
19535
  return false;
19209
19536
  return true;
19210
19537
  }
19211
- function CreateComponentResponseFromJSON(json) {
19212
- return CreateComponentResponseFromJSONTyped(json, false);
19538
+ function CreateApiKeyRequestBodyFromJSON(json) {
19539
+ return CreateApiKeyRequestBodyFromJSONTyped(json, false);
19213
19540
  }
19214
- function CreateComponentResponseFromJSONTyped(json, ignoreDiscriminator) {
19541
+ function CreateApiKeyRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
19215
19542
  if (json == null) {
19216
19543
  return json;
19217
19544
  }
19218
19545
  return {
19219
- data: ComponentResponseDataFromJSON(json["data"]),
19220
- params: json["params"]
19546
+ description: json["description"] == null ? void 0 : json["description"],
19547
+ environmentId: json["environment_id"] == null ? void 0 : json["environment_id"],
19548
+ name: json["name"]
19221
19549
  };
19222
19550
  }
19223
- function CreateComponentResponseToJSON(value) {
19551
+ function CreateApiKeyRequestBodyToJSON(value) {
19224
19552
  if (value == null) {
19225
19553
  return value;
19226
19554
  }
19227
19555
  return {
19228
- data: ComponentResponseDataToJSON(value["data"]),
19229
- params: value["params"]
19556
+ description: value["description"],
19557
+ environment_id: value["environmentId"],
19558
+ name: value["name"]
19230
19559
  };
19231
19560
  }
19232
19561
 
19233
- // src/api/models/CreateCrmDealLineItemAssociationRequestBody.ts
19234
- function instanceOfCreateCrmDealLineItemAssociationRequestBody(value) {
19235
- if (!("dealExternalId" in value) || value["dealExternalId"] === void 0)
19562
+ // src/api/models/CreateApiKeyResponse.ts
19563
+ function instanceOfCreateApiKeyResponse(value) {
19564
+ if (!("data" in value) || value["data"] === void 0)
19236
19565
  return false;
19237
- if (!("lineItemExternalId" in value) || value["lineItemExternalId"] === void 0)
19566
+ if (!("params" in value) || value["params"] === void 0)
19238
19567
  return false;
19239
19568
  return true;
19240
19569
  }
19241
- function CreateCrmDealLineItemAssociationRequestBodyFromJSON(json) {
19242
- return CreateCrmDealLineItemAssociationRequestBodyFromJSONTyped(json, false);
19570
+ function CreateApiKeyResponseFromJSON(json) {
19571
+ return CreateApiKeyResponseFromJSONTyped(json, false);
19243
19572
  }
19244
- function CreateCrmDealLineItemAssociationRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
19573
+ function CreateApiKeyResponseFromJSONTyped(json, ignoreDiscriminator) {
19245
19574
  if (json == null) {
19246
19575
  return json;
19247
19576
  }
19248
19577
  return {
19249
- dealExternalId: json["deal_external_id"],
19250
- lineItemExternalId: json["line_item_external_id"]
19578
+ data: ApiKeyCreateResponseDataFromJSON(json["data"]),
19579
+ params: json["params"]
19251
19580
  };
19252
19581
  }
19253
- function CreateCrmDealLineItemAssociationRequestBodyToJSON(value) {
19582
+ function CreateApiKeyResponseToJSON(value) {
19254
19583
  if (value == null) {
19255
19584
  return value;
19256
19585
  }
19257
19586
  return {
19258
- deal_external_id: value["dealExternalId"],
19259
- line_item_external_id: value["lineItemExternalId"]
19587
+ data: ApiKeyCreateResponseDataToJSON(value["data"]),
19588
+ params: value["params"]
19260
19589
  };
19261
19590
  }
19262
19591
 
19263
- // src/api/models/CreateCrmDealRequestBody.ts
19264
- function instanceOfCreateCrmDealRequestBody(value) {
19265
- if (!("crmCompanyKey" in value) || value["crmCompanyKey"] === void 0)
19592
+ // src/api/models/CreateBillingProductRequestBody.ts
19593
+ function instanceOfCreateBillingProductRequestBody(value) {
19594
+ if (!("currency" in value) || value["currency"] === void 0)
19266
19595
  return false;
19267
- if (!("crmType" in value) || value["crmType"] === void 0)
19596
+ if (!("externalId" in value) || value["externalId"] === void 0)
19268
19597
  return false;
19269
- if (!("dealExternalId" in value) || value["dealExternalId"] === void 0)
19598
+ if (!("name" in value) || value["name"] === void 0)
19599
+ return false;
19600
+ if (!("price" in value) || value["price"] === void 0)
19601
+ return false;
19602
+ if (!("quantity" in value) || value["quantity"] === void 0)
19270
19603
  return false;
19271
19604
  return true;
19272
19605
  }
19273
- function CreateCrmDealRequestBodyFromJSON(json) {
19274
- return CreateCrmDealRequestBodyFromJSONTyped(json, false);
19606
+ function CreateBillingProductRequestBodyFromJSON(json) {
19607
+ return CreateBillingProductRequestBodyFromJSONTyped(json, false);
19275
19608
  }
19276
- function CreateCrmDealRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
19609
+ function CreateBillingProductRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
19277
19610
  if (json == null) {
19278
19611
  return json;
19279
19612
  }
19280
19613
  return {
19281
- arr: json["arr"] == null ? void 0 : json["arr"],
19282
- crmCompanyId: json["crm_company_id"] == null ? void 0 : json["crm_company_id"],
19283
- crmCompanyKey: json["crm_company_key"],
19284
- crmProductId: json["crm_product_id"] == null ? void 0 : json["crm_product_id"],
19285
- crmType: json["crm_type"],
19286
- dealExternalId: json["deal_external_id"],
19287
- dealName: json["deal_name"] == null ? void 0 : json["deal_name"],
19288
- dealStage: json["deal_stage"] == null ? void 0 : json["deal_stage"],
19289
- mrr: json["mrr"] == null ? void 0 : json["mrr"]
19614
+ currency: json["currency"],
19615
+ externalId: json["external_id"],
19616
+ name: json["name"],
19617
+ price: json["price"],
19618
+ quantity: json["quantity"]
19290
19619
  };
19291
19620
  }
19292
- function CreateCrmDealRequestBodyToJSON(value) {
19621
+ function CreateBillingProductRequestBodyToJSON(value) {
19293
19622
  if (value == null) {
19294
19623
  return value;
19295
19624
  }
19296
19625
  return {
19297
- arr: value["arr"],
19298
- crm_company_id: value["crmCompanyId"],
19299
- crm_company_key: value["crmCompanyKey"],
19300
- crm_product_id: value["crmProductId"],
19301
- crm_type: value["crmType"],
19302
- deal_external_id: value["dealExternalId"],
19303
- deal_name: value["dealName"],
19304
- deal_stage: value["dealStage"],
19305
- mrr: value["mrr"]
19626
+ currency: value["currency"],
19627
+ external_id: value["externalId"],
19628
+ name: value["name"],
19629
+ price: value["price"],
19630
+ quantity: value["quantity"]
19306
19631
  };
19307
19632
  }
19308
19633
 
19309
- // src/api/models/CreateCrmLineItemRequestBody.ts
19310
- function instanceOfCreateCrmLineItemRequestBody(value) {
19311
- if (!("amount" in value) || value["amount"] === void 0)
19312
- return false;
19313
- if (!("interval" in value) || value["interval"] === void 0)
19634
+ // src/api/models/CreateBillingSubscriptionsRequestBody.ts
19635
+ function instanceOfCreateBillingSubscriptionsRequestBody(value) {
19636
+ if (!("customerExternalId" in value) || value["customerExternalId"] === void 0)
19314
19637
  return false;
19315
- if (!("lineItemExternalId" in value) || value["lineItemExternalId"] === void 0)
19638
+ if (!("expiredAt" in value) || value["expiredAt"] === void 0)
19316
19639
  return false;
19317
- if (!("productExternalId" in value) || value["productExternalId"] === void 0)
19640
+ if (!("productExternalIds" in value) || value["productExternalIds"] === void 0)
19318
19641
  return false;
19319
- if (!("quantity" in value) || value["quantity"] === void 0)
19642
+ if (!("subscriptionExternalId" in value) || value["subscriptionExternalId"] === void 0)
19320
19643
  return false;
19321
19644
  return true;
19322
19645
  }
19323
- function CreateCrmLineItemRequestBodyFromJSON(json) {
19324
- return CreateCrmLineItemRequestBodyFromJSONTyped(json, false);
19646
+ function CreateBillingSubscriptionsRequestBodyFromJSON(json) {
19647
+ return CreateBillingSubscriptionsRequestBodyFromJSONTyped(json, false);
19325
19648
  }
19326
- function CreateCrmLineItemRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
19649
+ function CreateBillingSubscriptionsRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
19327
19650
  if (json == null) {
19328
19651
  return json;
19329
19652
  }
19330
19653
  return {
19331
- termMonth: json["TermMonth"] == null ? void 0 : json["TermMonth"],
19332
- amount: json["amount"],
19333
- discountPercentage: json["discount_percentage"] == null ? void 0 : json["discount_percentage"],
19334
- interval: json["interval"],
19335
- lineItemExternalId: json["line_item_external_id"],
19336
- productExternalId: json["product_external_id"],
19337
- quantity: json["quantity"],
19338
- totalDiscount: json["total_discount"] == null ? void 0 : json["total_discount"]
19654
+ customerExternalId: json["customer_external_id"],
19655
+ expiredAt: new Date(json["expired_at"]),
19656
+ interval: json["interval"] == null ? void 0 : json["interval"],
19657
+ productExternalIds: json["product_external_ids"],
19658
+ subscriptionExternalId: json["subscription_external_id"]
19339
19659
  };
19340
19660
  }
19341
- function CreateCrmLineItemRequestBodyToJSON(value) {
19661
+ function CreateBillingSubscriptionsRequestBodyToJSON(value) {
19342
19662
  if (value == null) {
19343
19663
  return value;
19344
19664
  }
19345
19665
  return {
19346
- TermMonth: value["termMonth"],
19347
- amount: value["amount"],
19348
- discount_percentage: value["discountPercentage"],
19666
+ customer_external_id: value["customerExternalId"],
19667
+ expired_at: value["expiredAt"].toISOString(),
19349
19668
  interval: value["interval"],
19350
- line_item_external_id: value["lineItemExternalId"],
19351
- product_external_id: value["productExternalId"],
19352
- quantity: value["quantity"],
19353
- total_discount: value["totalDiscount"]
19669
+ product_external_ids: value["productExternalIds"],
19670
+ subscription_external_id: value["subscriptionExternalId"]
19354
19671
  };
19355
19672
  }
19356
19673
 
19357
- // src/api/models/CreateCrmProductRequestBody.ts
19358
- function instanceOfCreateCrmProductRequestBody(value) {
19359
- if (!("currency" in value) || value["currency"] === void 0)
19360
- return false;
19361
- if (!("description" in value) || value["description"] === void 0)
19362
- return false;
19363
- if (!("externalId" in value) || value["externalId"] === void 0)
19364
- return false;
19365
- if (!("interval" in value) || value["interval"] === void 0)
19366
- return false;
19367
- if (!("name" in value) || value["name"] === void 0)
19368
- return false;
19369
- if (!("price" in value) || value["price"] === void 0)
19674
+ // src/api/models/CreateCompanyOverrideRequestBody.ts
19675
+ var CreateCompanyOverrideRequestBodyMetricPeriodEnum = {
19676
+ Month: "current_month",
19677
+ Week: "current_week",
19678
+ Day: "current_day"
19679
+ };
19680
+ var CreateCompanyOverrideRequestBodyValueTypeEnum = {
19681
+ Boolean: "boolean",
19682
+ Numeric: "numeric",
19683
+ Trait: "trait",
19684
+ Unlimited: "unlimited"
19685
+ };
19686
+ function instanceOfCreateCompanyOverrideRequestBody(value) {
19687
+ if (!("companyId" in value) || value["companyId"] === void 0)
19370
19688
  return false;
19371
- if (!("quantity" in value) || value["quantity"] === void 0)
19689
+ if (!("featureId" in value) || value["featureId"] === void 0)
19372
19690
  return false;
19373
- if (!("sku" in value) || value["sku"] === void 0)
19691
+ if (!("valueType" in value) || value["valueType"] === void 0)
19374
19692
  return false;
19375
19693
  return true;
19376
19694
  }
19377
- function CreateCrmProductRequestBodyFromJSON(json) {
19378
- return CreateCrmProductRequestBodyFromJSONTyped(json, false);
19695
+ function CreateCompanyOverrideRequestBodyFromJSON(json) {
19696
+ return CreateCompanyOverrideRequestBodyFromJSONTyped(json, false);
19379
19697
  }
19380
- function CreateCrmProductRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
19698
+ function CreateCompanyOverrideRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
19381
19699
  if (json == null) {
19382
19700
  return json;
19383
19701
  }
19384
19702
  return {
19385
- currency: json["currency"],
19386
- description: json["description"],
19387
- externalId: json["external_id"],
19388
- interval: json["interval"],
19389
- name: json["name"],
19390
- price: json["price"],
19391
- quantity: json["quantity"],
19392
- sku: json["sku"]
19703
+ companyId: json["company_id"],
19704
+ featureId: json["feature_id"],
19705
+ metricPeriod: json["metric_period"] == null ? void 0 : json["metric_period"],
19706
+ valueBool: json["value_bool"] == null ? void 0 : json["value_bool"],
19707
+ valueNumeric: json["value_numeric"] == null ? void 0 : json["value_numeric"],
19708
+ valueTraitId: json["value_trait_id"] == null ? void 0 : json["value_trait_id"],
19709
+ valueType: json["value_type"]
19393
19710
  };
19394
19711
  }
19395
- function CreateCrmProductRequestBodyToJSON(value) {
19712
+ function CreateCompanyOverrideRequestBodyToJSON(value) {
19396
19713
  if (value == null) {
19397
19714
  return value;
19398
19715
  }
19399
19716
  return {
19400
- currency: value["currency"],
19401
- description: value["description"],
19402
- external_id: value["externalId"],
19403
- interval: value["interval"],
19404
- name: value["name"],
19405
- price: value["price"],
19406
- quantity: value["quantity"],
19407
- sku: value["sku"]
19717
+ company_id: value["companyId"],
19718
+ feature_id: value["featureId"],
19719
+ metric_period: value["metricPeriod"],
19720
+ value_bool: value["valueBool"],
19721
+ value_numeric: value["valueNumeric"],
19722
+ value_trait_id: value["valueTraitId"],
19723
+ value_type: value["valueType"]
19408
19724
  };
19409
19725
  }
19410
19726
 
19411
- // src/api/models/CreateEntityTraitDefinitionRequestBody.ts
19412
- var CreateEntityTraitDefinitionRequestBodyEntityTypeEnum = {
19413
- Company: "company",
19414
- User: "user"
19415
- };
19416
- var CreateEntityTraitDefinitionRequestBodyTraitTypeEnum = {
19417
- Boolean: "boolean",
19418
- Currency: "currency",
19419
- Date: "date",
19420
- Number: "number",
19421
- String: "string",
19422
- Url: "url"
19423
- };
19424
- function instanceOfCreateEntityTraitDefinitionRequestBody(value) {
19425
- if (!("entityType" in value) || value["entityType"] === void 0)
19426
- return false;
19427
- if (!("hierarchy" in value) || value["hierarchy"] === void 0)
19727
+ // src/api/models/CreateCompanyOverrideResponse.ts
19728
+ function instanceOfCreateCompanyOverrideResponse(value) {
19729
+ if (!("data" in value) || value["data"] === void 0)
19428
19730
  return false;
19429
- if (!("traitType" in value) || value["traitType"] === void 0)
19731
+ if (!("params" in value) || value["params"] === void 0)
19430
19732
  return false;
19431
19733
  return true;
19432
19734
  }
19433
- function CreateEntityTraitDefinitionRequestBodyFromJSON(json) {
19434
- return CreateEntityTraitDefinitionRequestBodyFromJSONTyped(json, false);
19735
+ function CreateCompanyOverrideResponseFromJSON(json) {
19736
+ return CreateCompanyOverrideResponseFromJSONTyped(json, false);
19435
19737
  }
19436
- function CreateEntityTraitDefinitionRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
19738
+ function CreateCompanyOverrideResponseFromJSONTyped(json, ignoreDiscriminator) {
19437
19739
  if (json == null) {
19438
19740
  return json;
19439
19741
  }
19440
19742
  return {
19441
- displayName: json["display_name"] == null ? void 0 : json["display_name"],
19442
- entityType: json["entity_type"],
19443
- hierarchy: json["hierarchy"],
19444
- traitType: json["trait_type"]
19743
+ data: CompanyOverrideResponseDataFromJSON(json["data"]),
19744
+ params: json["params"]
19445
19745
  };
19446
19746
  }
19447
- function CreateEntityTraitDefinitionRequestBodyToJSON(value) {
19747
+ function CreateCompanyOverrideResponseToJSON(value) {
19448
19748
  if (value == null) {
19449
19749
  return value;
19450
19750
  }
19451
19751
  return {
19452
- display_name: value["displayName"],
19453
- entity_type: value["entityType"],
19454
- hierarchy: value["hierarchy"],
19455
- trait_type: value["traitType"]
19752
+ data: CompanyOverrideResponseDataToJSON(value["data"]),
19753
+ params: value["params"]
19456
19754
  };
19457
19755
  }
19458
19756
 
19459
- // src/api/models/CreateEnvironmentRequestBody.ts
19460
- var CreateEnvironmentRequestBodyEnvironmentTypeEnum = {
19461
- Development: "development",
19462
- Staging: "staging",
19463
- Production: "production"
19464
- };
19465
- function instanceOfCreateEnvironmentRequestBody(value) {
19466
- if (!("environmentType" in value) || value["environmentType"] === void 0)
19757
+ // src/api/models/CreateCompanyResponse.ts
19758
+ function instanceOfCreateCompanyResponse(value) {
19759
+ if (!("data" in value) || value["data"] === void 0)
19467
19760
  return false;
19468
- if (!("name" in value) || value["name"] === void 0)
19761
+ if (!("params" in value) || value["params"] === void 0)
19469
19762
  return false;
19470
19763
  return true;
19471
19764
  }
19472
- function CreateEnvironmentRequestBodyFromJSON(json) {
19473
- return CreateEnvironmentRequestBodyFromJSONTyped(json, false);
19765
+ function CreateCompanyResponseFromJSON(json) {
19766
+ return CreateCompanyResponseFromJSONTyped(json, false);
19474
19767
  }
19475
- function CreateEnvironmentRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
19768
+ function CreateCompanyResponseFromJSONTyped(json, ignoreDiscriminator) {
19476
19769
  if (json == null) {
19477
19770
  return json;
19478
19771
  }
19479
19772
  return {
19480
- environmentType: json["environment_type"],
19481
- name: json["name"]
19773
+ data: CompanyDetailResponseDataFromJSON(json["data"]),
19774
+ params: json["params"]
19482
19775
  };
19483
19776
  }
19484
- function CreateEnvironmentRequestBodyToJSON(value) {
19777
+ function CreateCompanyResponseToJSON(value) {
19485
19778
  if (value == null) {
19486
19779
  return value;
19487
19780
  }
19488
19781
  return {
19489
- environment_type: value["environmentType"],
19490
- name: value["name"]
19782
+ data: CompanyDetailResponseDataToJSON(value["data"]),
19783
+ params: value["params"]
19491
19784
  };
19492
19785
  }
19493
19786
 
19494
- // src/api/models/EnvironmentDetailResponseData.ts
19495
- function instanceOfEnvironmentDetailResponseData(value) {
19496
- if (!("apiKeys" in value) || value["apiKeys"] === void 0)
19497
- return false;
19498
- if (!("createdAt" in value) || value["createdAt"] === void 0)
19499
- return false;
19500
- if (!("environmentType" in value) || value["environmentType"] === void 0)
19787
+ // src/api/models/CreateComponentRequestBody.ts
19788
+ var CreateComponentRequestBodyEntityTypeEnum = {
19789
+ Entitlement: "entitlement",
19790
+ Billing: "billing"
19791
+ };
19792
+ function instanceOfCreateComponentRequestBody(value) {
19793
+ if (!("ast" in value) || value["ast"] === void 0)
19501
19794
  return false;
19502
- if (!("id" in value) || value["id"] === void 0)
19795
+ if (!("entityType" in value) || value["entityType"] === void 0)
19503
19796
  return false;
19504
19797
  if (!("name" in value) || value["name"] === void 0)
19505
19798
  return false;
19506
- if (!("updatedAt" in value) || value["updatedAt"] === void 0)
19507
- return false;
19508
19799
  return true;
19509
19800
  }
19510
- function EnvironmentDetailResponseDataFromJSON(json) {
19511
- return EnvironmentDetailResponseDataFromJSONTyped(json, false);
19801
+ function CreateComponentRequestBodyFromJSON(json) {
19802
+ return CreateComponentRequestBodyFromJSONTyped(json, false);
19512
19803
  }
19513
- function EnvironmentDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
19804
+ function CreateComponentRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
19514
19805
  if (json == null) {
19515
19806
  return json;
19516
19807
  }
19517
19808
  return {
19518
- apiKeys: json["api_keys"].map(ApiKeyResponseDataFromJSON),
19519
- createdAt: new Date(json["created_at"]),
19520
- environmentType: json["environment_type"],
19521
- id: json["id"],
19522
- name: json["name"],
19523
- updatedAt: new Date(json["updated_at"])
19809
+ ast: json["ast"],
19810
+ entityType: json["entity_type"],
19811
+ name: json["name"]
19524
19812
  };
19525
19813
  }
19526
- function EnvironmentDetailResponseDataToJSON(value) {
19814
+ function CreateComponentRequestBodyToJSON(value) {
19527
19815
  if (value == null) {
19528
19816
  return value;
19529
19817
  }
19530
19818
  return {
19531
- api_keys: value["apiKeys"].map(ApiKeyResponseDataToJSON),
19532
- created_at: value["createdAt"].toISOString(),
19533
- environment_type: value["environmentType"],
19534
- id: value["id"],
19535
- name: value["name"],
19536
- updated_at: value["updatedAt"].toISOString()
19819
+ ast: value["ast"],
19820
+ entity_type: value["entityType"],
19821
+ name: value["name"]
19537
19822
  };
19538
19823
  }
19539
19824
 
19540
- // src/api/models/CreateEnvironmentResponse.ts
19541
- function instanceOfCreateEnvironmentResponse(value) {
19825
+ // src/api/models/CreateComponentResponse.ts
19826
+ function instanceOfCreateComponentResponse(value) {
19542
19827
  if (!("data" in value) || value["data"] === void 0)
19543
19828
  return false;
19544
19829
  if (!("params" in value) || value["params"] === void 0)
19545
19830
  return false;
19546
19831
  return true;
19547
19832
  }
19548
- function CreateEnvironmentResponseFromJSON(json) {
19549
- return CreateEnvironmentResponseFromJSONTyped(json, false);
19833
+ function CreateComponentResponseFromJSON(json) {
19834
+ return CreateComponentResponseFromJSONTyped(json, false);
19550
19835
  }
19551
- function CreateEnvironmentResponseFromJSONTyped(json, ignoreDiscriminator) {
19836
+ function CreateComponentResponseFromJSONTyped(json, ignoreDiscriminator) {
19552
19837
  if (json == null) {
19553
19838
  return json;
19554
19839
  }
19555
19840
  return {
19556
- data: EnvironmentDetailResponseDataFromJSON(json["data"]),
19841
+ data: ComponentResponseDataFromJSON(json["data"]),
19557
19842
  params: json["params"]
19558
19843
  };
19559
19844
  }
19560
- function CreateEnvironmentResponseToJSON(value) {
19845
+ function CreateComponentResponseToJSON(value) {
19561
19846
  if (value == null) {
19562
19847
  return value;
19563
19848
  }
19564
19849
  return {
19565
- data: EnvironmentDetailResponseDataToJSON(value["data"]),
19850
+ data: ComponentResponseDataToJSON(value["data"]),
19566
19851
  params: value["params"]
19567
19852
  };
19568
19853
  }
19569
19854
 
19570
- // src/api/models/EventBodyIdentifyCompany.ts
19571
- function instanceOfEventBodyIdentifyCompany(value) {
19572
- if (!("keys" in value) || value["keys"] === void 0)
19855
+ // src/api/models/CreateCrmDealLineItemAssociationRequestBody.ts
19856
+ function instanceOfCreateCrmDealLineItemAssociationRequestBody(value) {
19857
+ if (!("dealExternalId" in value) || value["dealExternalId"] === void 0)
19858
+ return false;
19859
+ if (!("lineItemExternalId" in value) || value["lineItemExternalId"] === void 0)
19573
19860
  return false;
19574
19861
  return true;
19575
19862
  }
19576
- function EventBodyIdentifyCompanyFromJSON(json) {
19577
- return EventBodyIdentifyCompanyFromJSONTyped(json, false);
19863
+ function CreateCrmDealLineItemAssociationRequestBodyFromJSON(json) {
19864
+ return CreateCrmDealLineItemAssociationRequestBodyFromJSONTyped(json, false);
19578
19865
  }
19579
- function EventBodyIdentifyCompanyFromJSONTyped(json, ignoreDiscriminator) {
19866
+ function CreateCrmDealLineItemAssociationRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
19580
19867
  if (json == null) {
19581
19868
  return json;
19582
19869
  }
19583
19870
  return {
19584
- keys: json["keys"],
19585
- name: json["name"] == null ? void 0 : json["name"],
19586
- traits: json["traits"] == null ? void 0 : json["traits"]
19871
+ dealExternalId: json["deal_external_id"],
19872
+ lineItemExternalId: json["line_item_external_id"]
19587
19873
  };
19588
19874
  }
19589
- function EventBodyIdentifyCompanyToJSON(value) {
19875
+ function CreateCrmDealLineItemAssociationRequestBodyToJSON(value) {
19590
19876
  if (value == null) {
19591
19877
  return value;
19592
19878
  }
19593
19879
  return {
19594
- keys: value["keys"],
19595
- name: value["name"],
19596
- traits: value["traits"]
19880
+ deal_external_id: value["dealExternalId"],
19881
+ line_item_external_id: value["lineItemExternalId"]
19597
19882
  };
19598
19883
  }
19599
19884
 
19600
- // src/api/models/EventBodyIdentify.ts
19601
- function instanceOfEventBodyIdentify(value) {
19602
- if (!("keys" in value) || value["keys"] === void 0)
19885
+ // src/api/models/CreateCrmDealRequestBody.ts
19886
+ function instanceOfCreateCrmDealRequestBody(value) {
19887
+ if (!("crmCompanyKey" in value) || value["crmCompanyKey"] === void 0)
19888
+ return false;
19889
+ if (!("crmType" in value) || value["crmType"] === void 0)
19890
+ return false;
19891
+ if (!("dealExternalId" in value) || value["dealExternalId"] === void 0)
19603
19892
  return false;
19604
19893
  return true;
19605
19894
  }
19606
- function EventBodyIdentifyFromJSON(json) {
19607
- return EventBodyIdentifyFromJSONTyped(json, false);
19895
+ function CreateCrmDealRequestBodyFromJSON(json) {
19896
+ return CreateCrmDealRequestBodyFromJSONTyped(json, false);
19608
19897
  }
19609
- function EventBodyIdentifyFromJSONTyped(json, ignoreDiscriminator) {
19898
+ function CreateCrmDealRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
19610
19899
  if (json == null) {
19611
19900
  return json;
19612
19901
  }
19613
19902
  return {
19614
- company: json["company"] == null ? void 0 : EventBodyIdentifyCompanyFromJSON(json["company"]),
19615
- keys: json["keys"],
19616
- name: json["name"] == null ? void 0 : json["name"],
19617
- traits: json["traits"] == null ? void 0 : json["traits"]
19903
+ arr: json["arr"] == null ? void 0 : json["arr"],
19904
+ crmCompanyId: json["crm_company_id"] == null ? void 0 : json["crm_company_id"],
19905
+ crmCompanyKey: json["crm_company_key"],
19906
+ crmProductId: json["crm_product_id"] == null ? void 0 : json["crm_product_id"],
19907
+ crmType: json["crm_type"],
19908
+ dealExternalId: json["deal_external_id"],
19909
+ dealName: json["deal_name"] == null ? void 0 : json["deal_name"],
19910
+ dealStage: json["deal_stage"] == null ? void 0 : json["deal_stage"],
19911
+ mrr: json["mrr"] == null ? void 0 : json["mrr"]
19618
19912
  };
19619
19913
  }
19620
- function EventBodyIdentifyToJSON(value) {
19914
+ function CreateCrmDealRequestBodyToJSON(value) {
19621
19915
  if (value == null) {
19622
19916
  return value;
19623
19917
  }
19624
19918
  return {
19625
- company: EventBodyIdentifyCompanyToJSON(value["company"]),
19626
- keys: value["keys"],
19627
- name: value["name"],
19628
- traits: value["traits"]
19919
+ arr: value["arr"],
19920
+ crm_company_id: value["crmCompanyId"],
19921
+ crm_company_key: value["crmCompanyKey"],
19922
+ crm_product_id: value["crmProductId"],
19923
+ crm_type: value["crmType"],
19924
+ deal_external_id: value["dealExternalId"],
19925
+ deal_name: value["dealName"],
19926
+ deal_stage: value["dealStage"],
19927
+ mrr: value["mrr"]
19629
19928
  };
19630
19929
  }
19631
19930
 
19632
- // src/api/models/EventBodyTrack.ts
19633
- function instanceOfEventBodyTrack(value) {
19634
- if (!("event" in value) || value["event"] === void 0)
19931
+ // src/api/models/CreateCrmLineItemRequestBody.ts
19932
+ function instanceOfCreateCrmLineItemRequestBody(value) {
19933
+ if (!("amount" in value) || value["amount"] === void 0)
19934
+ return false;
19935
+ if (!("interval" in value) || value["interval"] === void 0)
19936
+ return false;
19937
+ if (!("lineItemExternalId" in value) || value["lineItemExternalId"] === void 0)
19938
+ return false;
19939
+ if (!("productExternalId" in value) || value["productExternalId"] === void 0)
19940
+ return false;
19941
+ if (!("quantity" in value) || value["quantity"] === void 0)
19635
19942
  return false;
19636
19943
  return true;
19637
19944
  }
19638
- function EventBodyTrackFromJSON(json) {
19639
- return EventBodyTrackFromJSONTyped(json, false);
19945
+ function CreateCrmLineItemRequestBodyFromJSON(json) {
19946
+ return CreateCrmLineItemRequestBodyFromJSONTyped(json, false);
19640
19947
  }
19641
- function EventBodyTrackFromJSONTyped(json, ignoreDiscriminator) {
19948
+ function CreateCrmLineItemRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
19642
19949
  if (json == null) {
19643
19950
  return json;
19644
19951
  }
19645
19952
  return {
19646
- company: json["company"] == null ? void 0 : json["company"],
19647
- event: json["event"],
19648
- traits: json["traits"] == null ? void 0 : json["traits"],
19649
- user: json["user"] == null ? void 0 : json["user"]
19953
+ termMonth: json["TermMonth"] == null ? void 0 : json["TermMonth"],
19954
+ amount: json["amount"],
19955
+ discountPercentage: json["discount_percentage"] == null ? void 0 : json["discount_percentage"],
19956
+ interval: json["interval"],
19957
+ lineItemExternalId: json["line_item_external_id"],
19958
+ productExternalId: json["product_external_id"],
19959
+ quantity: json["quantity"],
19960
+ totalDiscount: json["total_discount"] == null ? void 0 : json["total_discount"]
19650
19961
  };
19651
19962
  }
19652
- function EventBodyTrackToJSON(value) {
19963
+ function CreateCrmLineItemRequestBodyToJSON(value) {
19653
19964
  if (value == null) {
19654
19965
  return value;
19655
19966
  }
19656
19967
  return {
19657
- company: value["company"],
19658
- event: value["event"],
19659
- traits: value["traits"],
19660
- user: value["user"]
19968
+ TermMonth: value["termMonth"],
19969
+ amount: value["amount"],
19970
+ discount_percentage: value["discountPercentage"],
19971
+ interval: value["interval"],
19972
+ line_item_external_id: value["lineItemExternalId"],
19973
+ product_external_id: value["productExternalId"],
19974
+ quantity: value["quantity"],
19975
+ total_discount: value["totalDiscount"]
19661
19976
  };
19662
19977
  }
19663
19978
 
19664
- // src/api/models/EventBody.ts
19665
- function EventBodyFromJSON(json) {
19666
- return EventBodyFromJSONTyped(json, false);
19979
+ // src/api/models/CreateCrmProductRequestBody.ts
19980
+ function instanceOfCreateCrmProductRequestBody(value) {
19981
+ if (!("currency" in value) || value["currency"] === void 0)
19982
+ return false;
19983
+ if (!("description" in value) || value["description"] === void 0)
19984
+ return false;
19985
+ if (!("externalId" in value) || value["externalId"] === void 0)
19986
+ return false;
19987
+ if (!("interval" in value) || value["interval"] === void 0)
19988
+ return false;
19989
+ if (!("name" in value) || value["name"] === void 0)
19990
+ return false;
19991
+ if (!("price" in value) || value["price"] === void 0)
19992
+ return false;
19993
+ if (!("quantity" in value) || value["quantity"] === void 0)
19994
+ return false;
19995
+ if (!("sku" in value) || value["sku"] === void 0)
19996
+ return false;
19997
+ return true;
19667
19998
  }
19668
- function EventBodyFromJSONTyped(json, ignoreDiscriminator) {
19999
+ function CreateCrmProductRequestBodyFromJSON(json) {
20000
+ return CreateCrmProductRequestBodyFromJSONTyped(json, false);
20001
+ }
20002
+ function CreateCrmProductRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
19669
20003
  if (json == null) {
19670
20004
  return json;
19671
20005
  }
19672
- if (instanceOfEventBodyIdentify(json)) {
19673
- return EventBodyIdentifyFromJSONTyped(json, true);
19674
- }
19675
- if (instanceOfEventBodyTrack(json)) {
19676
- return EventBodyTrackFromJSONTyped(json, true);
19677
- }
19678
- throw new Error("Invalid EventBody");
20006
+ return {
20007
+ currency: json["currency"],
20008
+ description: json["description"],
20009
+ externalId: json["external_id"],
20010
+ interval: json["interval"],
20011
+ name: json["name"],
20012
+ price: json["price"],
20013
+ quantity: json["quantity"],
20014
+ sku: json["sku"]
20015
+ };
19679
20016
  }
19680
- function EventBodyToJSON(value) {
20017
+ function CreateCrmProductRequestBodyToJSON(value) {
19681
20018
  if (value == null) {
19682
20019
  return value;
19683
20020
  }
19684
- if (instanceOfEventBodyIdentify(value)) {
19685
- return EventBodyIdentifyToJSON(value);
19686
- }
19687
- if (instanceOfEventBodyTrack(value)) {
19688
- return EventBodyTrackToJSON(value);
19689
- }
19690
- return {};
20021
+ return {
20022
+ currency: value["currency"],
20023
+ description: value["description"],
20024
+ external_id: value["externalId"],
20025
+ interval: value["interval"],
20026
+ name: value["name"],
20027
+ price: value["price"],
20028
+ quantity: value["quantity"],
20029
+ sku: value["sku"]
20030
+ };
19691
20031
  }
19692
20032
 
19693
- // src/api/models/CreateEventRequestBody.ts
19694
- var CreateEventRequestBodyEventTypeEnum = {
19695
- Identify: "identify",
19696
- Track: "track"
20033
+ // src/api/models/CreateEntityTraitDefinitionRequestBody.ts
20034
+ var CreateEntityTraitDefinitionRequestBodyEntityTypeEnum = {
20035
+ Company: "company",
20036
+ User: "user"
19697
20037
  };
19698
- function instanceOfCreateEventRequestBody(value) {
19699
- if (!("eventType" in value) || value["eventType"] === void 0)
20038
+ var CreateEntityTraitDefinitionRequestBodyTraitTypeEnum = {
20039
+ Boolean: "boolean",
20040
+ Currency: "currency",
20041
+ Date: "date",
20042
+ Number: "number",
20043
+ String: "string",
20044
+ Url: "url"
20045
+ };
20046
+ function instanceOfCreateEntityTraitDefinitionRequestBody(value) {
20047
+ if (!("entityType" in value) || value["entityType"] === void 0)
20048
+ return false;
20049
+ if (!("hierarchy" in value) || value["hierarchy"] === void 0)
20050
+ return false;
20051
+ if (!("traitType" in value) || value["traitType"] === void 0)
19700
20052
  return false;
19701
20053
  return true;
19702
20054
  }
19703
- function CreateEventRequestBodyFromJSON(json) {
19704
- return CreateEventRequestBodyFromJSONTyped(json, false);
20055
+ function CreateEntityTraitDefinitionRequestBodyFromJSON(json) {
20056
+ return CreateEntityTraitDefinitionRequestBodyFromJSONTyped(json, false);
19705
20057
  }
19706
- function CreateEventRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
20058
+ function CreateEntityTraitDefinitionRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
19707
20059
  if (json == null) {
19708
20060
  return json;
19709
20061
  }
19710
20062
  return {
19711
- body: json["body"] == null ? void 0 : EventBodyFromJSON(json["body"]),
19712
- eventType: json["event_type"],
19713
- sentAt: json["sent_at"] == null ? void 0 : new Date(json["sent_at"])
20063
+ displayName: json["display_name"] == null ? void 0 : json["display_name"],
20064
+ entityType: json["entity_type"],
20065
+ hierarchy: json["hierarchy"],
20066
+ traitType: json["trait_type"]
19714
20067
  };
19715
20068
  }
19716
- function CreateEventRequestBodyToJSON(value) {
20069
+ function CreateEntityTraitDefinitionRequestBodyToJSON(value) {
19717
20070
  if (value == null) {
19718
20071
  return value;
19719
20072
  }
19720
20073
  return {
19721
- body: EventBodyToJSON(value["body"]),
19722
- event_type: value["eventType"],
19723
- sent_at: value["sentAt"] == null ? void 0 : value["sentAt"].toISOString()
20074
+ display_name: value["displayName"],
20075
+ entity_type: value["entityType"],
20076
+ hierarchy: value["hierarchy"],
20077
+ trait_type: value["traitType"]
19724
20078
  };
19725
20079
  }
19726
20080
 
19727
- // src/api/models/CreateEventBatchRequestBody.ts
19728
- function instanceOfCreateEventBatchRequestBody(value) {
19729
- if (!("events" in value) || value["events"] === void 0)
20081
+ // src/api/models/CreateEnvironmentRequestBody.ts
20082
+ var CreateEnvironmentRequestBodyEnvironmentTypeEnum = {
20083
+ Development: "development",
20084
+ Staging: "staging",
20085
+ Production: "production"
20086
+ };
20087
+ function instanceOfCreateEnvironmentRequestBody(value) {
20088
+ if (!("environmentType" in value) || value["environmentType"] === void 0)
20089
+ return false;
20090
+ if (!("name" in value) || value["name"] === void 0)
19730
20091
  return false;
19731
20092
  return true;
19732
20093
  }
19733
- function CreateEventBatchRequestBodyFromJSON(json) {
19734
- return CreateEventBatchRequestBodyFromJSONTyped(json, false);
20094
+ function CreateEnvironmentRequestBodyFromJSON(json) {
20095
+ return CreateEnvironmentRequestBodyFromJSONTyped(json, false);
19735
20096
  }
19736
- function CreateEventBatchRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
20097
+ function CreateEnvironmentRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
19737
20098
  if (json == null) {
19738
20099
  return json;
19739
20100
  }
19740
20101
  return {
19741
- events: json["events"].map(CreateEventRequestBodyFromJSON)
20102
+ environmentType: json["environment_type"],
20103
+ name: json["name"]
19742
20104
  };
19743
20105
  }
19744
- function CreateEventBatchRequestBodyToJSON(value) {
20106
+ function CreateEnvironmentRequestBodyToJSON(value) {
19745
20107
  if (value == null) {
19746
20108
  return value;
19747
20109
  }
19748
20110
  return {
19749
- events: value["events"].map(CreateEventRequestBodyToJSON)
20111
+ environment_type: value["environmentType"],
20112
+ name: value["name"]
19750
20113
  };
19751
20114
  }
19752
20115
 
19753
- // src/api/models/RawEventResponseData.ts
19754
- function instanceOfRawEventResponseData(value) {
19755
- if (!("capturedAt" in value) || value["capturedAt"] === void 0)
20116
+ // src/api/models/EnvironmentDetailResponseData.ts
20117
+ function instanceOfEnvironmentDetailResponseData(value) {
20118
+ if (!("apiKeys" in value) || value["apiKeys"] === void 0)
19756
20119
  return false;
19757
- if (!("remoteAddr" in value) || value["remoteAddr"] === void 0)
20120
+ if (!("createdAt" in value) || value["createdAt"] === void 0)
19758
20121
  return false;
19759
- if (!("remoteIp" in value) || value["remoteIp"] === void 0)
20122
+ if (!("environmentType" in value) || value["environmentType"] === void 0)
19760
20123
  return false;
19761
- if (!("userAgent" in value) || value["userAgent"] === void 0)
20124
+ if (!("id" in value) || value["id"] === void 0)
20125
+ return false;
20126
+ if (!("name" in value) || value["name"] === void 0)
20127
+ return false;
20128
+ if (!("updatedAt" in value) || value["updatedAt"] === void 0)
19762
20129
  return false;
19763
20130
  return true;
19764
20131
  }
19765
- function RawEventResponseDataFromJSON(json) {
19766
- return RawEventResponseDataFromJSONTyped(json, false);
20132
+ function EnvironmentDetailResponseDataFromJSON(json) {
20133
+ return EnvironmentDetailResponseDataFromJSONTyped(json, false);
19767
20134
  }
19768
- function RawEventResponseDataFromJSONTyped(json, ignoreDiscriminator) {
20135
+ function EnvironmentDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
19769
20136
  if (json == null) {
19770
20137
  return json;
19771
20138
  }
19772
20139
  return {
19773
- capturedAt: new Date(json["captured_at"]),
19774
- eventId: json["event_id"] == null ? void 0 : json["event_id"],
19775
- remoteAddr: json["remote_addr"],
19776
- remoteIp: json["remote_ip"],
19777
- userAgent: json["user_agent"]
20140
+ apiKeys: json["api_keys"].map(ApiKeyResponseDataFromJSON),
20141
+ createdAt: new Date(json["created_at"]),
20142
+ environmentType: json["environment_type"],
20143
+ id: json["id"],
20144
+ name: json["name"],
20145
+ updatedAt: new Date(json["updated_at"])
19778
20146
  };
19779
20147
  }
19780
- function RawEventResponseDataToJSON(value) {
20148
+ function EnvironmentDetailResponseDataToJSON(value) {
19781
20149
  if (value == null) {
19782
20150
  return value;
19783
20151
  }
19784
20152
  return {
19785
- captured_at: value["capturedAt"].toISOString(),
19786
- event_id: value["eventId"],
19787
- remote_addr: value["remoteAddr"],
19788
- remote_ip: value["remoteIp"],
19789
- user_agent: value["userAgent"]
20153
+ api_keys: value["apiKeys"].map(ApiKeyResponseDataToJSON),
20154
+ created_at: value["createdAt"].toISOString(),
20155
+ environment_type: value["environmentType"],
20156
+ id: value["id"],
20157
+ name: value["name"],
20158
+ updated_at: value["updatedAt"].toISOString()
19790
20159
  };
19791
20160
  }
19792
20161
 
19793
- // src/api/models/RawEventBatchResponseData.ts
19794
- function instanceOfRawEventBatchResponseData(value) {
19795
- if (!("events" in value) || value["events"] === void 0)
20162
+ // src/api/models/CreateEnvironmentResponse.ts
20163
+ function instanceOfCreateEnvironmentResponse(value) {
20164
+ if (!("data" in value) || value["data"] === void 0)
20165
+ return false;
20166
+ if (!("params" in value) || value["params"] === void 0)
19796
20167
  return false;
19797
20168
  return true;
19798
20169
  }
19799
- function RawEventBatchResponseDataFromJSON(json) {
19800
- return RawEventBatchResponseDataFromJSONTyped(json, false);
20170
+ function CreateEnvironmentResponseFromJSON(json) {
20171
+ return CreateEnvironmentResponseFromJSONTyped(json, false);
19801
20172
  }
19802
- function RawEventBatchResponseDataFromJSONTyped(json, ignoreDiscriminator) {
20173
+ function CreateEnvironmentResponseFromJSONTyped(json, ignoreDiscriminator) {
19803
20174
  if (json == null) {
19804
20175
  return json;
19805
20176
  }
19806
20177
  return {
19807
- events: json["events"].map(RawEventResponseDataFromJSON)
20178
+ data: EnvironmentDetailResponseDataFromJSON(json["data"]),
20179
+ params: json["params"]
19808
20180
  };
19809
20181
  }
19810
- function RawEventBatchResponseDataToJSON(value) {
20182
+ function CreateEnvironmentResponseToJSON(value) {
19811
20183
  if (value == null) {
19812
20184
  return value;
19813
20185
  }
19814
20186
  return {
19815
- events: value["events"].map(RawEventResponseDataToJSON)
20187
+ data: EnvironmentDetailResponseDataToJSON(value["data"]),
20188
+ params: value["params"]
19816
20189
  };
19817
20190
  }
19818
20191
 
19819
- // src/api/models/CreateEventBatchResponse.ts
19820
- function instanceOfCreateEventBatchResponse(value) {
19821
- if (!("data" in value) || value["data"] === void 0)
19822
- return false;
19823
- if (!("params" in value) || value["params"] === void 0)
20192
+ // src/api/models/EventBodyIdentifyCompany.ts
20193
+ function instanceOfEventBodyIdentifyCompany(value) {
20194
+ if (!("keys" in value) || value["keys"] === void 0)
19824
20195
  return false;
19825
20196
  return true;
19826
20197
  }
19827
- function CreateEventBatchResponseFromJSON(json) {
19828
- return CreateEventBatchResponseFromJSONTyped(json, false);
20198
+ function EventBodyIdentifyCompanyFromJSON(json) {
20199
+ return EventBodyIdentifyCompanyFromJSONTyped(json, false);
19829
20200
  }
19830
- function CreateEventBatchResponseFromJSONTyped(json, ignoreDiscriminator) {
20201
+ function EventBodyIdentifyCompanyFromJSONTyped(json, ignoreDiscriminator) {
19831
20202
  if (json == null) {
19832
20203
  return json;
19833
20204
  }
19834
20205
  return {
19835
- data: RawEventBatchResponseDataFromJSON(json["data"]),
19836
- params: json["params"]
20206
+ keys: json["keys"],
20207
+ name: json["name"] == null ? void 0 : json["name"],
20208
+ traits: json["traits"] == null ? void 0 : json["traits"]
19837
20209
  };
19838
20210
  }
19839
- function CreateEventBatchResponseToJSON(value) {
20211
+ function EventBodyIdentifyCompanyToJSON(value) {
19840
20212
  if (value == null) {
19841
20213
  return value;
19842
20214
  }
19843
20215
  return {
19844
- data: RawEventBatchResponseDataToJSON(value["data"]),
19845
- params: value["params"]
20216
+ keys: value["keys"],
20217
+ name: value["name"],
20218
+ traits: value["traits"]
19846
20219
  };
19847
20220
  }
19848
20221
 
19849
- // src/api/models/CreateEventResponse.ts
19850
- function instanceOfCreateEventResponse(value) {
19851
- if (!("data" in value) || value["data"] === void 0)
19852
- return false;
19853
- if (!("params" in value) || value["params"] === void 0)
20222
+ // src/api/models/EventBodyIdentify.ts
20223
+ function instanceOfEventBodyIdentify(value) {
20224
+ if (!("keys" in value) || value["keys"] === void 0)
19854
20225
  return false;
19855
20226
  return true;
19856
20227
  }
19857
- function CreateEventResponseFromJSON(json) {
19858
- return CreateEventResponseFromJSONTyped(json, false);
20228
+ function EventBodyIdentifyFromJSON(json) {
20229
+ return EventBodyIdentifyFromJSONTyped(json, false);
19859
20230
  }
19860
- function CreateEventResponseFromJSONTyped(json, ignoreDiscriminator) {
20231
+ function EventBodyIdentifyFromJSONTyped(json, ignoreDiscriminator) {
19861
20232
  if (json == null) {
19862
20233
  return json;
19863
20234
  }
19864
20235
  return {
19865
- data: RawEventResponseDataFromJSON(json["data"]),
19866
- params: json["params"]
20236
+ company: json["company"] == null ? void 0 : EventBodyIdentifyCompanyFromJSON(json["company"]),
20237
+ keys: json["keys"],
20238
+ name: json["name"] == null ? void 0 : json["name"],
20239
+ traits: json["traits"] == null ? void 0 : json["traits"]
19867
20240
  };
19868
20241
  }
19869
- function CreateEventResponseToJSON(value) {
20242
+ function EventBodyIdentifyToJSON(value) {
19870
20243
  if (value == null) {
19871
20244
  return value;
19872
20245
  }
19873
20246
  return {
19874
- data: RawEventResponseDataToJSON(value["data"]),
19875
- params: value["params"]
20247
+ company: EventBodyIdentifyCompanyToJSON(value["company"]),
20248
+ keys: value["keys"],
20249
+ name: value["name"],
20250
+ traits: value["traits"]
19876
20251
  };
19877
20252
  }
19878
20253
 
19879
- // src/api/models/CreateOrUpdateFlagRequestBody.ts
19880
- function instanceOfCreateOrUpdateFlagRequestBody(value) {
19881
- if (!("defaultValue" in value) || value["defaultValue"] === void 0)
19882
- return false;
19883
- if (!("description" in value) || value["description"] === void 0)
19884
- return false;
19885
- if (!("flagType" in value) || value["flagType"] === void 0)
19886
- return false;
19887
- if (!("key" in value) || value["key"] === void 0)
19888
- return false;
19889
- if (!("name" in value) || value["name"] === void 0)
20254
+ // src/api/models/EventBodyTrack.ts
20255
+ function instanceOfEventBodyTrack(value) {
20256
+ if (!("event" in value) || value["event"] === void 0)
19890
20257
  return false;
19891
20258
  return true;
19892
20259
  }
19893
- function CreateOrUpdateFlagRequestBodyFromJSON(json) {
19894
- return CreateOrUpdateFlagRequestBodyFromJSONTyped(json, false);
20260
+ function EventBodyTrackFromJSON(json) {
20261
+ return EventBodyTrackFromJSONTyped(json, false);
19895
20262
  }
19896
- function CreateOrUpdateFlagRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
20263
+ function EventBodyTrackFromJSONTyped(json, ignoreDiscriminator) {
19897
20264
  if (json == null) {
19898
20265
  return json;
19899
20266
  }
19900
20267
  return {
19901
- defaultValue: json["default_value"],
19902
- description: json["description"],
19903
- featureId: json["feature_id"] == null ? void 0 : json["feature_id"],
19904
- flagType: json["flag_type"],
19905
- id: json["id"] == null ? void 0 : json["id"],
19906
- key: json["key"],
19907
- name: json["name"]
20268
+ company: json["company"] == null ? void 0 : json["company"],
20269
+ event: json["event"],
20270
+ traits: json["traits"] == null ? void 0 : json["traits"],
20271
+ user: json["user"] == null ? void 0 : json["user"]
19908
20272
  };
19909
20273
  }
19910
- function CreateOrUpdateFlagRequestBodyToJSON(value) {
20274
+ function EventBodyTrackToJSON(value) {
19911
20275
  if (value == null) {
19912
20276
  return value;
19913
20277
  }
19914
20278
  return {
19915
- default_value: value["defaultValue"],
19916
- description: value["description"],
19917
- feature_id: value["featureId"],
19918
- flag_type: value["flagType"],
19919
- id: value["id"],
19920
- key: value["key"],
19921
- name: value["name"]
20279
+ company: value["company"],
20280
+ event: value["event"],
20281
+ traits: value["traits"],
20282
+ user: value["user"]
19922
20283
  };
19923
20284
  }
19924
20285
 
19925
- // src/api/models/CreateFeatureRequestBody.ts
19926
- var CreateFeatureRequestBodyFeatureTypeEnum = {
19927
- Boolean: "boolean",
19928
- Event: "event",
19929
- Trait: "trait"
19930
- };
19931
- function instanceOfCreateFeatureRequestBody(value) {
19932
- if (!("description" in value) || value["description"] === void 0)
19933
- return false;
19934
- if (!("featureType" in value) || value["featureType"] === void 0)
19935
- return false;
19936
- if (!("name" in value) || value["name"] === void 0)
19937
- return false;
19938
- return true;
19939
- }
19940
- function CreateFeatureRequestBodyFromJSON(json) {
19941
- return CreateFeatureRequestBodyFromJSONTyped(json, false);
20286
+ // src/api/models/EventBody.ts
20287
+ function EventBodyFromJSON(json) {
20288
+ return EventBodyFromJSONTyped(json, false);
19942
20289
  }
19943
- function CreateFeatureRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
20290
+ function EventBodyFromJSONTyped(json, ignoreDiscriminator) {
19944
20291
  if (json == null) {
19945
20292
  return json;
19946
20293
  }
19947
- return {
19948
- description: json["description"],
19949
- eventSubtype: json["event_subtype"] == null ? void 0 : json["event_subtype"],
19950
- featureType: json["feature_type"],
19951
- flag: json["flag"] == null ? void 0 : CreateOrUpdateFlagRequestBodyFromJSON(json["flag"]),
19952
- lifecyclePhase: json["lifecycle_phase"] == null ? void 0 : json["lifecycle_phase"],
19953
- name: json["name"],
19954
- traitId: json["trait_id"] == null ? void 0 : json["trait_id"]
19955
- };
20294
+ if (instanceOfEventBodyIdentify(json)) {
20295
+ return EventBodyIdentifyFromJSONTyped(json, true);
20296
+ }
20297
+ if (instanceOfEventBodyTrack(json)) {
20298
+ return EventBodyTrackFromJSONTyped(json, true);
20299
+ }
20300
+ throw new Error("Invalid EventBody");
19956
20301
  }
19957
- function CreateFeatureRequestBodyToJSON(value) {
20302
+ function EventBodyToJSON(value) {
19958
20303
  if (value == null) {
19959
20304
  return value;
19960
20305
  }
19961
- return {
19962
- description: value["description"],
19963
- event_subtype: value["eventSubtype"],
19964
- feature_type: value["featureType"],
19965
- flag: CreateOrUpdateFlagRequestBodyToJSON(value["flag"]),
19966
- lifecycle_phase: value["lifecyclePhase"],
19967
- name: value["name"],
19968
- trait_id: value["traitId"]
19969
- };
20306
+ if (instanceOfEventBodyIdentify(value)) {
20307
+ return EventBodyIdentifyToJSON(value);
20308
+ }
20309
+ if (instanceOfEventBodyTrack(value)) {
20310
+ return EventBodyTrackToJSON(value);
20311
+ }
20312
+ return {};
19970
20313
  }
19971
20314
 
19972
- // src/api/models/EventSummaryResponseData.ts
19973
- function instanceOfEventSummaryResponseData(value) {
19974
- if (!("companyCount" in value) || value["companyCount"] === void 0)
19975
- return false;
19976
- if (!("environmentId" in value) || value["environmentId"] === void 0)
19977
- return false;
19978
- if (!("eventCount" in value) || value["eventCount"] === void 0)
19979
- return false;
19980
- if (!("eventSubtype" in value) || value["eventSubtype"] === void 0)
19981
- return false;
19982
- if (!("userCount" in value) || value["userCount"] === void 0)
20315
+ // src/api/models/CreateEventRequestBody.ts
20316
+ var CreateEventRequestBodyEventTypeEnum = {
20317
+ Identify: "identify",
20318
+ Track: "track"
20319
+ };
20320
+ function instanceOfCreateEventRequestBody(value) {
20321
+ if (!("eventType" in value) || value["eventType"] === void 0)
19983
20322
  return false;
19984
20323
  return true;
19985
20324
  }
19986
- function EventSummaryResponseDataFromJSON(json) {
19987
- return EventSummaryResponseDataFromJSONTyped(json, false);
20325
+ function CreateEventRequestBodyFromJSON(json) {
20326
+ return CreateEventRequestBodyFromJSONTyped(json, false);
19988
20327
  }
19989
- function EventSummaryResponseDataFromJSONTyped(json, ignoreDiscriminator) {
20328
+ function CreateEventRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
19990
20329
  if (json == null) {
19991
20330
  return json;
19992
20331
  }
19993
20332
  return {
19994
- companyCount: json["company_count"],
19995
- environmentId: json["environment_id"],
19996
- eventCount: json["event_count"],
19997
- eventSubtype: json["event_subtype"],
19998
- lastSeenAt: json["last_seen_at"] == null ? void 0 : new Date(json["last_seen_at"]),
19999
- userCount: json["user_count"]
20333
+ body: json["body"] == null ? void 0 : EventBodyFromJSON(json["body"]),
20334
+ eventType: json["event_type"],
20335
+ sentAt: json["sent_at"] == null ? void 0 : new Date(json["sent_at"])
20000
20336
  };
20001
20337
  }
20002
- function EventSummaryResponseDataToJSON(value) {
20338
+ function CreateEventRequestBodyToJSON(value) {
20003
20339
  if (value == null) {
20004
20340
  return value;
20005
20341
  }
20006
20342
  return {
20007
- company_count: value["companyCount"],
20008
- environment_id: value["environmentId"],
20009
- event_count: value["eventCount"],
20010
- event_subtype: value["eventSubtype"],
20011
- last_seen_at: value["lastSeenAt"] == null ? void 0 : value["lastSeenAt"].toISOString(),
20012
- user_count: value["userCount"]
20343
+ body: EventBodyToJSON(value["body"]),
20344
+ event_type: value["eventType"],
20345
+ sent_at: value["sentAt"] == null ? void 0 : value["sentAt"].toISOString()
20013
20346
  };
20014
20347
  }
20015
20348
 
20016
- // src/api/models/RuleConditionResourceResponseData.ts
20017
- function instanceOfRuleConditionResourceResponseData(value) {
20018
- if (!("id" in value) || value["id"] === void 0)
20019
- return false;
20020
- if (!("name" in value) || value["name"] === void 0)
20349
+ // src/api/models/CreateEventBatchRequestBody.ts
20350
+ function instanceOfCreateEventBatchRequestBody(value) {
20351
+ if (!("events" in value) || value["events"] === void 0)
20021
20352
  return false;
20022
20353
  return true;
20023
20354
  }
20024
- function RuleConditionResourceResponseDataFromJSON(json) {
20025
- return RuleConditionResourceResponseDataFromJSONTyped(json, false);
20355
+ function CreateEventBatchRequestBodyFromJSON(json) {
20356
+ return CreateEventBatchRequestBodyFromJSONTyped(json, false);
20026
20357
  }
20027
- function RuleConditionResourceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
20358
+ function CreateEventBatchRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
20028
20359
  if (json == null) {
20029
20360
  return json;
20030
20361
  }
20031
20362
  return {
20032
- id: json["id"],
20033
- name: json["name"]
20363
+ events: json["events"].map(CreateEventRequestBodyFromJSON)
20034
20364
  };
20035
20365
  }
20036
- function RuleConditionResourceResponseDataToJSON(value) {
20366
+ function CreateEventBatchRequestBodyToJSON(value) {
20037
20367
  if (value == null) {
20038
20368
  return value;
20039
20369
  }
20040
20370
  return {
20041
- id: value["id"],
20042
- name: value["name"]
20371
+ events: value["events"].map(CreateEventRequestBodyToJSON)
20043
20372
  };
20044
20373
  }
20045
20374
 
20046
- // src/api/models/RuleConditionDetailResponseData.ts
20047
- function instanceOfRuleConditionDetailResponseData(value) {
20048
- if (!("conditionType" in value) || value["conditionType"] === void 0)
20049
- return false;
20050
- if (!("createdAt" in value) || value["createdAt"] === void 0)
20051
- return false;
20052
- if (!("environmentId" in value) || value["environmentId"] === void 0)
20053
- return false;
20054
- if (!("id" in value) || value["id"] === void 0)
20055
- return false;
20056
- if (!("operator" in value) || value["operator"] === void 0)
20057
- return false;
20058
- if (!("resourceIds" in value) || value["resourceIds"] === void 0)
20059
- return false;
20060
- if (!("resources" in value) || value["resources"] === void 0)
20375
+ // src/api/models/RawEventResponseData.ts
20376
+ function instanceOfRawEventResponseData(value) {
20377
+ if (!("capturedAt" in value) || value["capturedAt"] === void 0)
20061
20378
  return false;
20062
- if (!("ruleId" in value) || value["ruleId"] === void 0)
20379
+ if (!("remoteAddr" in value) || value["remoteAddr"] === void 0)
20063
20380
  return false;
20064
- if (!("traitValue" in value) || value["traitValue"] === void 0)
20381
+ if (!("remoteIp" in value) || value["remoteIp"] === void 0)
20065
20382
  return false;
20066
- if (!("updatedAt" in value) || value["updatedAt"] === void 0)
20383
+ if (!("userAgent" in value) || value["userAgent"] === void 0)
20067
20384
  return false;
20068
20385
  return true;
20069
20386
  }
20070
- function RuleConditionDetailResponseDataFromJSON(json) {
20071
- return RuleConditionDetailResponseDataFromJSONTyped(json, false);
20387
+ function RawEventResponseDataFromJSON(json) {
20388
+ return RawEventResponseDataFromJSONTyped(json, false);
20072
20389
  }
20073
- function RuleConditionDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
20390
+ function RawEventResponseDataFromJSONTyped(json, ignoreDiscriminator) {
20074
20391
  if (json == null) {
20075
20392
  return json;
20076
20393
  }
20077
20394
  return {
20078
- comparisonTrait: json["comparison_trait"] == null ? void 0 : EntityTraitDefinitionResponseDataFromJSON(json["comparison_trait"]),
20079
- comparisonTraitId: json["comparison_trait_id"] == null ? void 0 : json["comparison_trait_id"],
20080
- conditionGroupId: json["condition_group_id"] == null ? void 0 : json["condition_group_id"],
20081
- conditionType: json["condition_type"],
20082
- createdAt: new Date(json["created_at"]),
20083
- environmentId: json["environment_id"],
20084
- eventSubtype: json["event_subtype"] == null ? void 0 : json["event_subtype"],
20085
- flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
20086
- id: json["id"],
20087
- metricPeriod: json["metric_period"] == null ? void 0 : json["metric_period"],
20088
- metricValue: json["metric_value"] == null ? void 0 : json["metric_value"],
20089
- operator: json["operator"],
20090
- planId: json["plan_id"] == null ? void 0 : json["plan_id"],
20091
- resourceIds: json["resource_ids"],
20092
- resources: json["resources"].map(
20093
- RuleConditionResourceResponseDataFromJSON
20094
- ),
20095
- ruleId: json["rule_id"],
20096
- trait: json["trait"] == null ? void 0 : EntityTraitDefinitionResponseDataFromJSON(json["trait"]),
20097
- traitEntityType: json["trait_entity_type"] == null ? void 0 : json["trait_entity_type"],
20098
- traitId: json["trait_id"] == null ? void 0 : json["trait_id"],
20099
- traitValue: json["trait_value"],
20100
- updatedAt: new Date(json["updated_at"])
20395
+ capturedAt: new Date(json["captured_at"]),
20396
+ eventId: json["event_id"] == null ? void 0 : json["event_id"],
20397
+ remoteAddr: json["remote_addr"],
20398
+ remoteIp: json["remote_ip"],
20399
+ userAgent: json["user_agent"]
20101
20400
  };
20102
20401
  }
20103
- function RuleConditionDetailResponseDataToJSON(value) {
20402
+ function RawEventResponseDataToJSON(value) {
20104
20403
  if (value == null) {
20105
20404
  return value;
20106
20405
  }
20107
20406
  return {
20108
- comparison_trait: EntityTraitDefinitionResponseDataToJSON(
20109
- value["comparisonTrait"]
20110
- ),
20111
- comparison_trait_id: value["comparisonTraitId"],
20112
- condition_group_id: value["conditionGroupId"],
20113
- condition_type: value["conditionType"],
20114
- created_at: value["createdAt"].toISOString(),
20115
- environment_id: value["environmentId"],
20116
- event_subtype: value["eventSubtype"],
20117
- flag_id: value["flagId"],
20118
- id: value["id"],
20119
- metric_period: value["metricPeriod"],
20120
- metric_value: value["metricValue"],
20121
- operator: value["operator"],
20122
- plan_id: value["planId"],
20123
- resource_ids: value["resourceIds"],
20124
- resources: value["resources"].map(
20125
- RuleConditionResourceResponseDataToJSON
20126
- ),
20127
- rule_id: value["ruleId"],
20128
- trait: EntityTraitDefinitionResponseDataToJSON(value["trait"]),
20129
- trait_entity_type: value["traitEntityType"],
20130
- trait_id: value["traitId"],
20131
- trait_value: value["traitValue"],
20132
- updated_at: value["updatedAt"].toISOString()
20407
+ captured_at: value["capturedAt"].toISOString(),
20408
+ event_id: value["eventId"],
20409
+ remote_addr: value["remoteAddr"],
20410
+ remote_ip: value["remoteIp"],
20411
+ user_agent: value["userAgent"]
20133
20412
  };
20134
20413
  }
20135
20414
 
20136
- // src/api/models/RuleConditionGroupDetailResponseData.ts
20137
- function instanceOfRuleConditionGroupDetailResponseData(value) {
20138
- if (!("conditions" in value) || value["conditions"] === void 0)
20139
- return false;
20140
- if (!("createdAt" in value) || value["createdAt"] === void 0)
20141
- return false;
20142
- if (!("environmentId" in value) || value["environmentId"] === void 0)
20143
- return false;
20144
- if (!("id" in value) || value["id"] === void 0)
20145
- return false;
20146
- if (!("ruleId" in value) || value["ruleId"] === void 0)
20147
- return false;
20148
- if (!("updatedAt" in value) || value["updatedAt"] === void 0)
20415
+ // src/api/models/RawEventBatchResponseData.ts
20416
+ function instanceOfRawEventBatchResponseData(value) {
20417
+ if (!("events" in value) || value["events"] === void 0)
20149
20418
  return false;
20150
20419
  return true;
20151
20420
  }
20152
- function RuleConditionGroupDetailResponseDataFromJSON(json) {
20153
- return RuleConditionGroupDetailResponseDataFromJSONTyped(json, false);
20421
+ function RawEventBatchResponseDataFromJSON(json) {
20422
+ return RawEventBatchResponseDataFromJSONTyped(json, false);
20154
20423
  }
20155
- function RuleConditionGroupDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
20424
+ function RawEventBatchResponseDataFromJSONTyped(json, ignoreDiscriminator) {
20156
20425
  if (json == null) {
20157
20426
  return json;
20158
20427
  }
20159
20428
  return {
20160
- conditions: json["conditions"].map(
20161
- RuleConditionDetailResponseDataFromJSON
20162
- ),
20163
- createdAt: new Date(json["created_at"]),
20164
- environmentId: json["environment_id"],
20165
- flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
20166
- id: json["id"],
20167
- planId: json["plan_id"] == null ? void 0 : json["plan_id"],
20168
- ruleId: json["rule_id"],
20169
- updatedAt: new Date(json["updated_at"])
20429
+ events: json["events"].map(RawEventResponseDataFromJSON)
20170
20430
  };
20171
20431
  }
20172
- function RuleConditionGroupDetailResponseDataToJSON(value) {
20432
+ function RawEventBatchResponseDataToJSON(value) {
20173
20433
  if (value == null) {
20174
20434
  return value;
20175
20435
  }
20176
20436
  return {
20177
- conditions: value["conditions"].map(
20178
- RuleConditionDetailResponseDataToJSON
20179
- ),
20180
- created_at: value["createdAt"].toISOString(),
20181
- environment_id: value["environmentId"],
20182
- flag_id: value["flagId"],
20183
- id: value["id"],
20184
- plan_id: value["planId"],
20185
- rule_id: value["ruleId"],
20186
- updated_at: value["updatedAt"].toISOString()
20437
+ events: value["events"].map(RawEventResponseDataToJSON)
20187
20438
  };
20188
20439
  }
20189
20440
 
20190
- // src/api/models/RuleDetailResponseData.ts
20191
- function instanceOfRuleDetailResponseData(value) {
20192
- if (!("conditionGroups" in value) || value["conditionGroups"] === void 0)
20193
- return false;
20194
- if (!("conditions" in value) || value["conditions"] === void 0)
20195
- return false;
20196
- if (!("createdAt" in value) || value["createdAt"] === void 0)
20197
- return false;
20198
- if (!("environmentId" in value) || value["environmentId"] === void 0)
20199
- return false;
20200
- if (!("id" in value) || value["id"] === void 0)
20201
- return false;
20202
- if (!("name" in value) || value["name"] === void 0)
20203
- return false;
20204
- if (!("priority" in value) || value["priority"] === void 0)
20205
- return false;
20206
- if (!("ruleType" in value) || value["ruleType"] === void 0)
20207
- return false;
20208
- if (!("updatedAt" in value) || value["updatedAt"] === void 0)
20441
+ // src/api/models/CreateEventBatchResponse.ts
20442
+ function instanceOfCreateEventBatchResponse(value) {
20443
+ if (!("data" in value) || value["data"] === void 0)
20209
20444
  return false;
20210
- if (!("value" in value) || value["value"] === void 0)
20445
+ if (!("params" in value) || value["params"] === void 0)
20211
20446
  return false;
20212
20447
  return true;
20213
20448
  }
20214
- function RuleDetailResponseDataFromJSON(json) {
20215
- return RuleDetailResponseDataFromJSONTyped(json, false);
20449
+ function CreateEventBatchResponseFromJSON(json) {
20450
+ return CreateEventBatchResponseFromJSONTyped(json, false);
20216
20451
  }
20217
- function RuleDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
20452
+ function CreateEventBatchResponseFromJSONTyped(json, ignoreDiscriminator) {
20218
20453
  if (json == null) {
20219
20454
  return json;
20220
20455
  }
20221
20456
  return {
20222
- conditionGroups: json["condition_groups"].map(
20223
- RuleConditionGroupDetailResponseDataFromJSON
20224
- ),
20225
- conditions: json["conditions"].map(
20226
- RuleConditionDetailResponseDataFromJSON
20227
- ),
20228
- createdAt: new Date(json["created_at"]),
20229
- environmentId: json["environment_id"],
20230
- flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
20231
- id: json["id"],
20232
- name: json["name"],
20233
- planId: json["plan_id"] == null ? void 0 : json["plan_id"],
20234
- priority: json["priority"],
20235
- ruleType: json["rule_type"],
20236
- updatedAt: new Date(json["updated_at"]),
20237
- value: json["value"]
20457
+ data: RawEventBatchResponseDataFromJSON(json["data"]),
20458
+ params: json["params"]
20238
20459
  };
20239
20460
  }
20240
- function RuleDetailResponseDataToJSON(value) {
20461
+ function CreateEventBatchResponseToJSON(value) {
20241
20462
  if (value == null) {
20242
20463
  return value;
20243
20464
  }
20244
20465
  return {
20245
- condition_groups: value["conditionGroups"].map(
20246
- RuleConditionGroupDetailResponseDataToJSON
20247
- ),
20248
- conditions: value["conditions"].map(
20249
- RuleConditionDetailResponseDataToJSON
20250
- ),
20251
- created_at: value["createdAt"].toISOString(),
20252
- environment_id: value["environmentId"],
20253
- flag_id: value["flagId"],
20254
- id: value["id"],
20255
- name: value["name"],
20256
- plan_id: value["planId"],
20257
- priority: value["priority"],
20258
- rule_type: value["ruleType"],
20259
- updated_at: value["updatedAt"].toISOString(),
20260
- value: value["value"]
20466
+ data: RawEventBatchResponseDataToJSON(value["data"]),
20467
+ params: value["params"]
20261
20468
  };
20262
20469
  }
20263
20470
 
20264
- // src/api/models/FlagCheckLogResponseData.ts
20265
- function instanceOfFlagCheckLogResponseData(value) {
20266
- if (!("checkStatus" in value) || value["checkStatus"] === void 0)
20267
- return false;
20268
- if (!("createdAt" in value) || value["createdAt"] === void 0)
20269
- return false;
20270
- if (!("environmentId" in value) || value["environmentId"] === void 0)
20271
- return false;
20272
- if (!("flagKey" in value) || value["flagKey"] === void 0)
20273
- return false;
20274
- if (!("id" in value) || value["id"] === void 0)
20275
- return false;
20276
- if (!("reason" in value) || value["reason"] === void 0)
20277
- return false;
20278
- if (!("updatedAt" in value) || value["updatedAt"] === void 0)
20471
+ // src/api/models/CreateEventResponse.ts
20472
+ function instanceOfCreateEventResponse(value) {
20473
+ if (!("data" in value) || value["data"] === void 0)
20279
20474
  return false;
20280
- if (!("value" in value) || value["value"] === void 0)
20475
+ if (!("params" in value) || value["params"] === void 0)
20281
20476
  return false;
20282
20477
  return true;
20283
20478
  }
20284
- function FlagCheckLogResponseDataFromJSON(json) {
20285
- return FlagCheckLogResponseDataFromJSONTyped(json, false);
20479
+ function CreateEventResponseFromJSON(json) {
20480
+ return CreateEventResponseFromJSONTyped(json, false);
20286
20481
  }
20287
- function FlagCheckLogResponseDataFromJSONTyped(json, ignoreDiscriminator) {
20482
+ function CreateEventResponseFromJSONTyped(json, ignoreDiscriminator) {
20288
20483
  if (json == null) {
20289
20484
  return json;
20290
20485
  }
20291
20486
  return {
20292
- checkStatus: json["check_status"],
20293
- companyId: json["company_id"] == null ? void 0 : json["company_id"],
20294
- createdAt: new Date(json["created_at"]),
20295
- environmentId: json["environment_id"],
20296
- error: json["error"] == null ? void 0 : json["error"],
20297
- flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
20298
- flagKey: json["flag_key"],
20299
- id: json["id"],
20300
- reason: json["reason"],
20301
- reqCompany: json["req_company"] == null ? void 0 : json["req_company"],
20302
- reqUser: json["req_user"] == null ? void 0 : json["req_user"],
20303
- ruleId: json["rule_id"] == null ? void 0 : json["rule_id"],
20304
- updatedAt: new Date(json["updated_at"]),
20305
- userId: json["user_id"] == null ? void 0 : json["user_id"],
20306
- value: json["value"]
20487
+ data: RawEventResponseDataFromJSON(json["data"]),
20488
+ params: json["params"]
20307
20489
  };
20308
20490
  }
20309
- function FlagCheckLogResponseDataToJSON(value) {
20491
+ function CreateEventResponseToJSON(value) {
20310
20492
  if (value == null) {
20311
20493
  return value;
20312
20494
  }
20313
20495
  return {
20314
- check_status: value["checkStatus"],
20315
- company_id: value["companyId"],
20316
- created_at: value["createdAt"].toISOString(),
20317
- environment_id: value["environmentId"],
20318
- error: value["error"],
20319
- flag_id: value["flagId"],
20320
- flag_key: value["flagKey"],
20321
- id: value["id"],
20322
- reason: value["reason"],
20323
- req_company: value["reqCompany"],
20324
- req_user: value["reqUser"],
20325
- rule_id: value["ruleId"],
20326
- updated_at: value["updatedAt"].toISOString(),
20327
- user_id: value["userId"],
20328
- value: value["value"]
20496
+ data: RawEventResponseDataToJSON(value["data"]),
20497
+ params: value["params"]
20329
20498
  };
20330
20499
  }
20331
20500
 
20332
- // src/api/models/FlagDetailResponseData.ts
20333
- function instanceOfFlagDetailResponseData(value) {
20334
- if (!("createdAt" in value) || value["createdAt"] === void 0)
20335
- return false;
20501
+ // src/api/models/CreateOrUpdateFlagRequestBody.ts
20502
+ function instanceOfCreateOrUpdateFlagRequestBody(value) {
20336
20503
  if (!("defaultValue" in value) || value["defaultValue"] === void 0)
20337
20504
  return false;
20338
20505
  if (!("description" in value) || value["description"] === void 0)
20339
20506
  return false;
20340
20507
  if (!("flagType" in value) || value["flagType"] === void 0)
20341
20508
  return false;
20342
- if (!("id" in value) || value["id"] === void 0)
20343
- return false;
20344
20509
  if (!("key" in value) || value["key"] === void 0)
20345
20510
  return false;
20346
20511
  if (!("name" in value) || value["name"] === void 0)
20347
20512
  return false;
20348
- if (!("rules" in value) || value["rules"] === void 0)
20349
- return false;
20350
- if (!("updatedAt" in value) || value["updatedAt"] === void 0)
20351
- return false;
20352
20513
  return true;
20353
20514
  }
20354
- function FlagDetailResponseDataFromJSON(json) {
20355
- return FlagDetailResponseDataFromJSONTyped(json, false);
20515
+ function CreateOrUpdateFlagRequestBodyFromJSON(json) {
20516
+ return CreateOrUpdateFlagRequestBodyFromJSONTyped(json, false);
20356
20517
  }
20357
- function FlagDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
20518
+ function CreateOrUpdateFlagRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
20358
20519
  if (json == null) {
20359
20520
  return json;
20360
20521
  }
20361
20522
  return {
20362
- createdAt: new Date(json["created_at"]),
20363
20523
  defaultValue: json["default_value"],
20364
20524
  description: json["description"],
20365
- feature: json["feature"] == null ? void 0 : FeatureResponseDataFromJSON(json["feature"]),
20366
20525
  featureId: json["feature_id"] == null ? void 0 : json["feature_id"],
20367
20526
  flagType: json["flag_type"],
20368
- id: json["id"],
20527
+ id: json["id"] == null ? void 0 : json["id"],
20369
20528
  key: json["key"],
20370
- latestCheck: json["latest_check"] == null ? void 0 : FlagCheckLogResponseDataFromJSON(json["latest_check"]),
20371
- name: json["name"],
20372
- rules: json["rules"].map(RuleDetailResponseDataFromJSON),
20373
- updatedAt: new Date(json["updated_at"])
20529
+ name: json["name"]
20374
20530
  };
20375
20531
  }
20376
- function FlagDetailResponseDataToJSON(value) {
20532
+ function CreateOrUpdateFlagRequestBodyToJSON(value) {
20377
20533
  if (value == null) {
20378
20534
  return value;
20379
20535
  }
20380
20536
  return {
20381
- created_at: value["createdAt"].toISOString(),
20382
20537
  default_value: value["defaultValue"],
20383
20538
  description: value["description"],
20384
- feature: FeatureResponseDataToJSON(value["feature"]),
20385
20539
  feature_id: value["featureId"],
20386
20540
  flag_type: value["flagType"],
20387
20541
  id: value["id"],
20388
20542
  key: value["key"],
20389
- latest_check: FlagCheckLogResponseDataToJSON(value["latestCheck"]),
20390
- name: value["name"],
20391
- rules: value["rules"].map(RuleDetailResponseDataToJSON),
20392
- updated_at: value["updatedAt"].toISOString()
20543
+ name: value["name"]
20393
20544
  };
20394
20545
  }
20395
20546
 
20396
- // src/api/models/FeatureDetailResponseData.ts
20397
- function instanceOfFeatureDetailResponseData(value) {
20398
- if (!("createdAt" in value) || value["createdAt"] === void 0)
20399
- return false;
20547
+ // src/api/models/CreateFeatureRequestBody.ts
20548
+ var CreateFeatureRequestBodyFeatureTypeEnum = {
20549
+ Boolean: "boolean",
20550
+ Event: "event",
20551
+ Trait: "trait"
20552
+ };
20553
+ function instanceOfCreateFeatureRequestBody(value) {
20400
20554
  if (!("description" in value) || value["description"] === void 0)
20401
20555
  return false;
20402
20556
  if (!("featureType" in value) || value["featureType"] === void 0)
20403
20557
  return false;
20404
- if (!("flags" in value) || value["flags"] === void 0)
20405
- return false;
20406
- if (!("id" in value) || value["id"] === void 0)
20407
- return false;
20408
20558
  if (!("name" in value) || value["name"] === void 0)
20409
20559
  return false;
20410
- if (!("plans" in value) || value["plans"] === void 0)
20411
- return false;
20412
- if (!("updatedAt" in value) || value["updatedAt"] === void 0)
20413
- return false;
20414
20560
  return true;
20415
20561
  }
20416
- function FeatureDetailResponseDataFromJSON(json) {
20417
- return FeatureDetailResponseDataFromJSONTyped(json, false);
20562
+ function CreateFeatureRequestBodyFromJSON(json) {
20563
+ return CreateFeatureRequestBodyFromJSONTyped(json, false);
20418
20564
  }
20419
- function FeatureDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
20565
+ function CreateFeatureRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
20420
20566
  if (json == null) {
20421
20567
  return json;
20422
20568
  }
20423
20569
  return {
20424
- createdAt: new Date(json["created_at"]),
20425
20570
  description: json["description"],
20426
20571
  eventSubtype: json["event_subtype"] == null ? void 0 : json["event_subtype"],
20427
- eventSummary: json["event_summary"] == null ? void 0 : EventSummaryResponseDataFromJSON(json["event_summary"]),
20428
20572
  featureType: json["feature_type"],
20429
- flags: json["flags"].map(FlagDetailResponseDataFromJSON),
20430
- id: json["id"],
20573
+ flag: json["flag"] == null ? void 0 : CreateOrUpdateFlagRequestBodyFromJSON(json["flag"]),
20431
20574
  lifecyclePhase: json["lifecycle_phase"] == null ? void 0 : json["lifecycle_phase"],
20432
20575
  name: json["name"],
20433
- plans: json["plans"].map(PreviewObjectFromJSON),
20434
- trait: json["trait"] == null ? void 0 : EntityTraitDefinitionResponseDataFromJSON(json["trait"]),
20435
- traitId: json["trait_id"] == null ? void 0 : json["trait_id"],
20436
- updatedAt: new Date(json["updated_at"])
20576
+ traitId: json["trait_id"] == null ? void 0 : json["trait_id"]
20437
20577
  };
20438
20578
  }
20439
- function FeatureDetailResponseDataToJSON(value) {
20579
+ function CreateFeatureRequestBodyToJSON(value) {
20440
20580
  if (value == null) {
20441
20581
  return value;
20442
20582
  }
20443
20583
  return {
20444
- created_at: value["createdAt"].toISOString(),
20445
20584
  description: value["description"],
20446
20585
  event_subtype: value["eventSubtype"],
20447
- event_summary: EventSummaryResponseDataToJSON(value["eventSummary"]),
20448
20586
  feature_type: value["featureType"],
20449
- flags: value["flags"].map(FlagDetailResponseDataToJSON),
20450
- id: value["id"],
20587
+ flag: CreateOrUpdateFlagRequestBodyToJSON(value["flag"]),
20451
20588
  lifecycle_phase: value["lifecyclePhase"],
20452
20589
  name: value["name"],
20453
- plans: value["plans"].map(PreviewObjectToJSON),
20454
- trait: EntityTraitDefinitionResponseDataToJSON(value["trait"]),
20455
- trait_id: value["traitId"],
20456
- updated_at: value["updatedAt"].toISOString()
20590
+ trait_id: value["traitId"]
20457
20591
  };
20458
20592
  }
20459
20593
 
@@ -20661,68 +20795,18 @@ function CreatePlanEntitlementRequestBodyFromJSONTyped(json, ignoreDiscriminator
20661
20795
  valueType: json["value_type"]
20662
20796
  };
20663
20797
  }
20664
- function CreatePlanEntitlementRequestBodyToJSON(value) {
20665
- if (value == null) {
20666
- return value;
20667
- }
20668
- return {
20669
- feature_id: value["featureId"],
20670
- metric_period: value["metricPeriod"],
20671
- plan_id: value["planId"],
20672
- value_bool: value["valueBool"],
20673
- value_numeric: value["valueNumeric"],
20674
- value_trait_id: value["valueTraitId"],
20675
- value_type: value["valueType"]
20676
- };
20677
- }
20678
-
20679
- // src/api/models/PlanResponseData.ts
20680
- function instanceOfPlanResponseData(value) {
20681
- if (!("audienceType" in value) || value["audienceType"] === void 0)
20682
- return false;
20683
- if (!("createdAt" in value) || value["createdAt"] === void 0)
20684
- return false;
20685
- if (!("description" in value) || value["description"] === void 0)
20686
- return false;
20687
- if (!("id" in value) || value["id"] === void 0)
20688
- return false;
20689
- if (!("name" in value) || value["name"] === void 0)
20690
- return false;
20691
- if (!("planType" in value) || value["planType"] === void 0)
20692
- return false;
20693
- if (!("updatedAt" in value) || value["updatedAt"] === void 0)
20694
- return false;
20695
- return true;
20696
- }
20697
- function PlanResponseDataFromJSON(json) {
20698
- return PlanResponseDataFromJSONTyped(json, false);
20699
- }
20700
- function PlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
20701
- if (json == null) {
20702
- return json;
20703
- }
20704
- return {
20705
- audienceType: json["audience_type"],
20706
- createdAt: new Date(json["created_at"]),
20707
- description: json["description"],
20708
- id: json["id"],
20709
- name: json["name"],
20710
- planType: json["plan_type"],
20711
- updatedAt: new Date(json["updated_at"])
20712
- };
20713
- }
20714
- function PlanResponseDataToJSON(value) {
20715
- if (value == null) {
20716
- return value;
20717
- }
20718
- return {
20719
- audience_type: value["audienceType"],
20720
- created_at: value["createdAt"].toISOString(),
20721
- description: value["description"],
20722
- id: value["id"],
20723
- name: value["name"],
20724
- plan_type: value["planType"],
20725
- updated_at: value["updatedAt"].toISOString()
20798
+ function CreatePlanEntitlementRequestBodyToJSON(value) {
20799
+ if (value == null) {
20800
+ return value;
20801
+ }
20802
+ return {
20803
+ feature_id: value["featureId"],
20804
+ metric_period: value["metricPeriod"],
20805
+ plan_id: value["planId"],
20806
+ value_bool: value["valueBool"],
20807
+ value_numeric: value["valueNumeric"],
20808
+ value_trait_id: value["valueTraitId"],
20809
+ value_type: value["valueType"]
20726
20810
  };
20727
20811
  }
20728
20812
 
@@ -22372,90 +22456,6 @@ function FeatureCompanyUserResponseDataToJSON(value) {
22372
22456
  };
22373
22457
  }
22374
22458
 
22375
- // src/api/models/FeatureUsageResponseData.ts
22376
- var FeatureUsageResponseDataAllocationTypeEnum = {
22377
- Boolean: "boolean",
22378
- Numeric: "numeric",
22379
- Trait: "trait",
22380
- Unlimited: "unlimited"
22381
- };
22382
- function instanceOfFeatureUsageResponseData(value) {
22383
- if (!("access" in value) || value["access"] === void 0)
22384
- return false;
22385
- if (!("allocationType" in value) || value["allocationType"] === void 0)
22386
- return false;
22387
- if (!("entitlementId" in value) || value["entitlementId"] === void 0)
22388
- return false;
22389
- if (!("entitlementType" in value) || value["entitlementType"] === void 0)
22390
- return false;
22391
- return true;
22392
- }
22393
- function FeatureUsageResponseDataFromJSON(json) {
22394
- return FeatureUsageResponseDataFromJSONTyped(json, false);
22395
- }
22396
- function FeatureUsageResponseDataFromJSONTyped(json, ignoreDiscriminator) {
22397
- if (json == null) {
22398
- return json;
22399
- }
22400
- return {
22401
- access: json["access"],
22402
- allocation: json["allocation"] == null ? void 0 : json["allocation"],
22403
- allocationType: json["allocation_type"],
22404
- entitlementId: json["entitlement_id"],
22405
- entitlementType: json["entitlement_type"],
22406
- feature: json["feature"] == null ? void 0 : FeatureDetailResponseDataFromJSON(json["feature"]),
22407
- period: json["period"] == null ? void 0 : json["period"],
22408
- plan: json["plan"] == null ? void 0 : PlanResponseDataFromJSON(json["plan"]),
22409
- usage: json["usage"] == null ? void 0 : json["usage"]
22410
- };
22411
- }
22412
- function FeatureUsageResponseDataToJSON(value) {
22413
- if (value == null) {
22414
- return value;
22415
- }
22416
- return {
22417
- access: value["access"],
22418
- allocation: value["allocation"],
22419
- allocation_type: value["allocationType"],
22420
- entitlement_id: value["entitlementId"],
22421
- entitlement_type: value["entitlementType"],
22422
- feature: FeatureDetailResponseDataToJSON(value["feature"]),
22423
- period: value["period"],
22424
- plan: PlanResponseDataToJSON(value["plan"]),
22425
- usage: value["usage"]
22426
- };
22427
- }
22428
-
22429
- // src/api/models/FeatureUsageDetailResponseData.ts
22430
- function instanceOfFeatureUsageDetailResponseData(value) {
22431
- if (!("features" in value) || value["features"] === void 0)
22432
- return false;
22433
- return true;
22434
- }
22435
- function FeatureUsageDetailResponseDataFromJSON(json) {
22436
- return FeatureUsageDetailResponseDataFromJSONTyped(json, false);
22437
- }
22438
- function FeatureUsageDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
22439
- if (json == null) {
22440
- return json;
22441
- }
22442
- return {
22443
- features: json["features"].map(
22444
- FeatureUsageResponseDataFromJSON
22445
- )
22446
- };
22447
- }
22448
- function FeatureUsageDetailResponseDataToJSON(value) {
22449
- if (value == null) {
22450
- return value;
22451
- }
22452
- return {
22453
- features: value["features"].map(
22454
- FeatureUsageResponseDataToJSON
22455
- )
22456
- };
22457
- }
22458
-
22459
22459
  // src/api/models/FlagResponseData.ts
22460
22460
  function instanceOfFlagResponseData(value) {
22461
22461
  if (!("createdAt" in value) || value["createdAt"] === void 0)
@@ -23842,7 +23842,7 @@ function HydrateComponentResponseFromJSONTyped(json, ignoreDiscriminator) {
23842
23842
  return json;
23843
23843
  }
23844
23844
  return {
23845
- data: ComponentHydrateViewFromJSON(json["data"]),
23845
+ data: ComponentHydrateResponseDataFromJSON(json["data"]),
23846
23846
  params: json["params"]
23847
23847
  };
23848
23848
  }
@@ -23851,7 +23851,121 @@ function HydrateComponentResponseToJSON(value) {
23851
23851
  return value;
23852
23852
  }
23853
23853
  return {
23854
- data: ComponentHydrateViewToJSON(value["data"]),
23854
+ data: ComponentHydrateResponseDataToJSON(value["data"]),
23855
+ params: value["params"]
23856
+ };
23857
+ }
23858
+
23859
+ // src/api/models/IssueTemporaryAccessTokenRequestBody.ts
23860
+ function instanceOfIssueTemporaryAccessTokenRequestBody(value) {
23861
+ if (!("lookup" in value) || value["lookup"] === void 0)
23862
+ return false;
23863
+ if (!("resourceType" in value) || value["resourceType"] === void 0)
23864
+ return false;
23865
+ return true;
23866
+ }
23867
+ function IssueTemporaryAccessTokenRequestBodyFromJSON(json) {
23868
+ return IssueTemporaryAccessTokenRequestBodyFromJSONTyped(json, false);
23869
+ }
23870
+ function IssueTemporaryAccessTokenRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
23871
+ if (json == null) {
23872
+ return json;
23873
+ }
23874
+ return {
23875
+ lookup: json["lookup"],
23876
+ resourceType: json["resource_type"]
23877
+ };
23878
+ }
23879
+ function IssueTemporaryAccessTokenRequestBodyToJSON(value) {
23880
+ if (value == null) {
23881
+ return value;
23882
+ }
23883
+ return {
23884
+ lookup: value["lookup"],
23885
+ resource_type: value["resourceType"]
23886
+ };
23887
+ }
23888
+
23889
+ // src/api/models/IssueTemporaryAccessTokenResponseData.ts
23890
+ function instanceOfIssueTemporaryAccessTokenResponseData(value) {
23891
+ if (!("apiKeyId" in value) || value["apiKeyId"] === void 0)
23892
+ return false;
23893
+ if (!("createdAt" in value) || value["createdAt"] === void 0)
23894
+ return false;
23895
+ if (!("environmentId" in value) || value["environmentId"] === void 0)
23896
+ return false;
23897
+ if (!("expiredAt" in value) || value["expiredAt"] === void 0)
23898
+ return false;
23899
+ if (!("id" in value) || value["id"] === void 0)
23900
+ return false;
23901
+ if (!("resourceType" in value) || value["resourceType"] === void 0)
23902
+ return false;
23903
+ if (!("token" in value) || value["token"] === void 0)
23904
+ return false;
23905
+ if (!("updatedAt" in value) || value["updatedAt"] === void 0)
23906
+ return false;
23907
+ return true;
23908
+ }
23909
+ function IssueTemporaryAccessTokenResponseDataFromJSON(json) {
23910
+ return IssueTemporaryAccessTokenResponseDataFromJSONTyped(json, false);
23911
+ }
23912
+ function IssueTemporaryAccessTokenResponseDataFromJSONTyped(json, ignoreDiscriminator) {
23913
+ if (json == null) {
23914
+ return json;
23915
+ }
23916
+ return {
23917
+ apiKeyId: json["api_key_id"],
23918
+ createdAt: new Date(json["created_at"]),
23919
+ environmentId: json["environment_id"],
23920
+ expiredAt: new Date(json["expired_at"]),
23921
+ id: json["id"],
23922
+ resourceType: json["resource_type"],
23923
+ token: json["token"],
23924
+ updatedAt: new Date(json["updated_at"])
23925
+ };
23926
+ }
23927
+ function IssueTemporaryAccessTokenResponseDataToJSON(value) {
23928
+ if (value == null) {
23929
+ return value;
23930
+ }
23931
+ return {
23932
+ api_key_id: value["apiKeyId"],
23933
+ created_at: value["createdAt"].toISOString(),
23934
+ environment_id: value["environmentId"],
23935
+ expired_at: value["expiredAt"].toISOString(),
23936
+ id: value["id"],
23937
+ resource_type: value["resourceType"],
23938
+ token: value["token"],
23939
+ updated_at: value["updatedAt"].toISOString()
23940
+ };
23941
+ }
23942
+
23943
+ // src/api/models/IssueTemporaryAccessTokenResponse.ts
23944
+ function instanceOfIssueTemporaryAccessTokenResponse(value) {
23945
+ if (!("data" in value) || value["data"] === void 0)
23946
+ return false;
23947
+ if (!("params" in value) || value["params"] === void 0)
23948
+ return false;
23949
+ return true;
23950
+ }
23951
+ function IssueTemporaryAccessTokenResponseFromJSON(json) {
23952
+ return IssueTemporaryAccessTokenResponseFromJSONTyped(json, false);
23953
+ }
23954
+ function IssueTemporaryAccessTokenResponseFromJSONTyped(json, ignoreDiscriminator) {
23955
+ if (json == null) {
23956
+ return json;
23957
+ }
23958
+ return {
23959
+ data: IssueTemporaryAccessTokenResponseDataFromJSON(json["data"]),
23960
+ params: json["params"]
23961
+ };
23962
+ }
23963
+ function IssueTemporaryAccessTokenResponseToJSON(value) {
23964
+ if (value == null) {
23965
+ return value;
23966
+ }
23967
+ return {
23968
+ data: IssueTemporaryAccessTokenResponseDataToJSON(value["data"]),
23855
23969
  params: value["params"]
23856
23970
  };
23857
23971
  }
@@ -25938,6 +26052,56 @@ function RulesDetailResponseDataToJSON(value) {
25938
26052
  };
25939
26053
  }
25940
26054
 
26055
+ // src/api/models/TemporaryAccessTokenResponseData.ts
26056
+ function instanceOfTemporaryAccessTokenResponseData(value) {
26057
+ if (!("apiKeyId" in value) || value["apiKeyId"] === void 0)
26058
+ return false;
26059
+ if (!("createdAt" in value) || value["createdAt"] === void 0)
26060
+ return false;
26061
+ if (!("environmentId" in value) || value["environmentId"] === void 0)
26062
+ return false;
26063
+ if (!("expiredAt" in value) || value["expiredAt"] === void 0)
26064
+ return false;
26065
+ if (!("id" in value) || value["id"] === void 0)
26066
+ return false;
26067
+ if (!("resourceType" in value) || value["resourceType"] === void 0)
26068
+ return false;
26069
+ if (!("updatedAt" in value) || value["updatedAt"] === void 0)
26070
+ return false;
26071
+ return true;
26072
+ }
26073
+ function TemporaryAccessTokenResponseDataFromJSON(json) {
26074
+ return TemporaryAccessTokenResponseDataFromJSONTyped(json, false);
26075
+ }
26076
+ function TemporaryAccessTokenResponseDataFromJSONTyped(json, ignoreDiscriminator) {
26077
+ if (json == null) {
26078
+ return json;
26079
+ }
26080
+ return {
26081
+ apiKeyId: json["api_key_id"],
26082
+ createdAt: new Date(json["created_at"]),
26083
+ environmentId: json["environment_id"],
26084
+ expiredAt: new Date(json["expired_at"]),
26085
+ id: json["id"],
26086
+ resourceType: json["resource_type"],
26087
+ updatedAt: new Date(json["updated_at"])
26088
+ };
26089
+ }
26090
+ function TemporaryAccessTokenResponseDataToJSON(value) {
26091
+ if (value == null) {
26092
+ return value;
26093
+ }
26094
+ return {
26095
+ api_key_id: value["apiKeyId"],
26096
+ created_at: value["createdAt"].toISOString(),
26097
+ environment_id: value["environmentId"],
26098
+ expired_at: value["expiredAt"].toISOString(),
26099
+ id: value["id"],
26100
+ resource_type: value["resourceType"],
26101
+ updated_at: value["updatedAt"].toISOString()
26102
+ };
26103
+ }
26104
+
25941
26105
  // src/api/models/UpdateApiKeyRequestBody.ts
25942
26106
  function instanceOfUpdateApiKeyRequestBody(value) {
25943
26107
  return true;
@@ -27384,6 +27548,55 @@ function WebhookEventResponseDataToJSON(value) {
27384
27548
  };
27385
27549
  }
27386
27550
 
27551
+ // src/api/apis/AccesstokensApi.ts
27552
+ var AccesstokensApi = class extends BaseAPI {
27553
+ /**
27554
+ * Issue temporary access token
27555
+ */
27556
+ async issueTemporaryAccessTokenRaw(requestParameters, initOverrides) {
27557
+ if (requestParameters["issueTemporaryAccessTokenRequestBody"] == null) {
27558
+ throw new RequiredError(
27559
+ "issueTemporaryAccessTokenRequestBody",
27560
+ 'Required parameter "issueTemporaryAccessTokenRequestBody" was null or undefined when calling issueTemporaryAccessToken().'
27561
+ );
27562
+ }
27563
+ const queryParameters = {};
27564
+ const headerParameters = {};
27565
+ headerParameters["Content-Type"] = "application/json";
27566
+ if (this.configuration && this.configuration.apiKey) {
27567
+ headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
27568
+ "X-Schematic-Api-Key"
27569
+ );
27570
+ }
27571
+ const response = await this.request(
27572
+ {
27573
+ path: `/temporary-access-tokens`,
27574
+ method: "POST",
27575
+ headers: headerParameters,
27576
+ query: queryParameters,
27577
+ body: IssueTemporaryAccessTokenRequestBodyToJSON(
27578
+ requestParameters["issueTemporaryAccessTokenRequestBody"]
27579
+ )
27580
+ },
27581
+ initOverrides
27582
+ );
27583
+ return new JSONApiResponse(
27584
+ response,
27585
+ (jsonValue) => IssueTemporaryAccessTokenResponseFromJSON(jsonValue)
27586
+ );
27587
+ }
27588
+ /**
27589
+ * Issue temporary access token
27590
+ */
27591
+ async issueTemporaryAccessToken(requestParameters, initOverrides) {
27592
+ const response = await this.issueTemporaryAccessTokenRaw(
27593
+ requestParameters,
27594
+ initOverrides
27595
+ );
27596
+ return await response.value();
27597
+ }
27598
+ };
27599
+
27387
27600
  // src/api/apis/AccountsApi.ts
27388
27601
  var AccountsApi = class extends BaseAPI {
27389
27602
  /**
@@ -33788,6 +34001,7 @@ var offlineFetchApi = async (input, init2) => {
33788
34001
 
33789
34002
  // src/index.ts
33790
34003
  var Schematic = class {
34004
+ AccessTokens;
33791
34005
  Accounts;
33792
34006
  Billing;
33793
34007
  Companies;
@@ -33806,7 +34020,7 @@ var Schematic = class {
33806
34020
  constructor(apiKey, opts) {
33807
34021
  const { offline = false } = opts ?? {};
33808
34022
  const { basePath, flagDefaults = {} } = opts ?? {};
33809
- const version = "1.0.17";
34023
+ const version = "1.0.19";
33810
34024
  const headers = {
33811
34025
  "User-Agent": `schematic-typescript-node@v${version}`
33812
34026
  };
@@ -33839,6 +34053,7 @@ var Schematic = class {
33839
34053
  }
33840
34054
  this.offline = offline;
33841
34055
  this.flagDefaults = flagDefaults;
34056
+ this.AccessTokens = new AccesstokensApi(config);
33842
34057
  this.Accounts = new AccountsApi(config);
33843
34058
  this.Billing = new BillingApi(config);
33844
34059
  this.Companies = new CompaniesApi(config);
@@ -33924,6 +34139,7 @@ function init(apiKey, opts) {
33924
34139
  return new Schematic(apiKey, opts);
33925
34140
  }
33926
34141
  export {
34142
+ AccesstokensApi,
33927
34143
  AccountsApi,
33928
34144
  ApiErrorFromJSON,
33929
34145
  ApiErrorFromJSONTyped,
@@ -34000,9 +34216,9 @@ export {
34000
34216
  CompanySubscriptionResponseDataFromJSON,
34001
34217
  CompanySubscriptionResponseDataFromJSONTyped,
34002
34218
  CompanySubscriptionResponseDataToJSON,
34003
- ComponentHydrateViewFromJSON,
34004
- ComponentHydrateViewFromJSONTyped,
34005
- ComponentHydrateViewToJSON,
34219
+ ComponentHydrateResponseDataFromJSON,
34220
+ ComponentHydrateResponseDataFromJSONTyped,
34221
+ ComponentHydrateResponseDataToJSON,
34006
34222
  ComponentResponseDataFromJSON,
34007
34223
  ComponentResponseDataFromJSONTyped,
34008
34224
  ComponentResponseDataToJSON,
@@ -34509,6 +34725,15 @@ export {
34509
34725
  HydrateComponentResponseFromJSON,
34510
34726
  HydrateComponentResponseFromJSONTyped,
34511
34727
  HydrateComponentResponseToJSON,
34728
+ IssueTemporaryAccessTokenRequestBodyFromJSON,
34729
+ IssueTemporaryAccessTokenRequestBodyFromJSONTyped,
34730
+ IssueTemporaryAccessTokenRequestBodyToJSON,
34731
+ IssueTemporaryAccessTokenResponseDataFromJSON,
34732
+ IssueTemporaryAccessTokenResponseDataFromJSONTyped,
34733
+ IssueTemporaryAccessTokenResponseDataToJSON,
34734
+ IssueTemporaryAccessTokenResponseFromJSON,
34735
+ IssueTemporaryAccessTokenResponseFromJSONTyped,
34736
+ IssueTemporaryAccessTokenResponseToJSON,
34512
34737
  JSONApiResponse,
34513
34738
  KeysRequestBodyFromJSON,
34514
34739
  KeysRequestBodyFromJSONTyped,
@@ -34749,6 +34974,9 @@ export {
34749
34974
  SegmentStatusRespFromJSON,
34750
34975
  SegmentStatusRespFromJSONTyped,
34751
34976
  SegmentStatusRespToJSON,
34977
+ TemporaryAccessTokenResponseDataFromJSON,
34978
+ TemporaryAccessTokenResponseDataFromJSONTyped,
34979
+ TemporaryAccessTokenResponseDataToJSON,
34752
34980
  TextApiResponse,
34753
34981
  UpdateApiKeyRequestBodyFromJSON,
34754
34982
  UpdateApiKeyRequestBodyFromJSONTyped,
@@ -34929,7 +35157,7 @@ export {
34929
35157
  instanceOfCompanyPlanResponseData,
34930
35158
  instanceOfCompanyResponseData,
34931
35159
  instanceOfCompanySubscriptionResponseData,
34932
- instanceOfComponentHydrateView,
35160
+ instanceOfComponentHydrateResponseData,
34933
35161
  instanceOfComponentResponseData,
34934
35162
  instanceOfCountApiKeysParams,
34935
35163
  instanceOfCountApiKeysResponse,
@@ -35086,6 +35314,9 @@ export {
35086
35314
  instanceOfGetWebhookEventResponse,
35087
35315
  instanceOfGetWebhookResponse,
35088
35316
  instanceOfHydrateComponentResponse,
35317
+ instanceOfIssueTemporaryAccessTokenRequestBody,
35318
+ instanceOfIssueTemporaryAccessTokenResponse,
35319
+ instanceOfIssueTemporaryAccessTokenResponseData,
35089
35320
  instanceOfKeysRequestBody,
35090
35321
  instanceOfListApiKeysParams,
35091
35322
  instanceOfListApiKeysResponse,
@@ -35162,6 +35393,7 @@ export {
35162
35393
  instanceOfRuleResponseData,
35163
35394
  instanceOfRulesDetailResponseData,
35164
35395
  instanceOfSegmentStatusResp,
35396
+ instanceOfTemporaryAccessTokenResponseData,
35165
35397
  instanceOfUpdateApiKeyRequestBody,
35166
35398
  instanceOfUpdateApiKeyResponse,
35167
35399
  instanceOfUpdateAudienceRequestBody,