@schematichq/schematic-typescript-node 1.0.20 → 1.0.22

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.
@@ -14549,6 +14549,12 @@ __export(src_exports, {
14549
14549
  BillingCustomerWithSubscriptionsResponseDataFromJSON: () => BillingCustomerWithSubscriptionsResponseDataFromJSON,
14550
14550
  BillingCustomerWithSubscriptionsResponseDataFromJSONTyped: () => BillingCustomerWithSubscriptionsResponseDataFromJSONTyped,
14551
14551
  BillingCustomerWithSubscriptionsResponseDataToJSON: () => BillingCustomerWithSubscriptionsResponseDataToJSON,
14552
+ BillingPriceResponseDataFromJSON: () => BillingPriceResponseDataFromJSON,
14553
+ BillingPriceResponseDataFromJSONTyped: () => BillingPriceResponseDataFromJSONTyped,
14554
+ BillingPriceResponseDataToJSON: () => BillingPriceResponseDataToJSON,
14555
+ BillingProductDetailResponseDataFromJSON: () => BillingProductDetailResponseDataFromJSON,
14556
+ BillingProductDetailResponseDataFromJSONTyped: () => BillingProductDetailResponseDataFromJSONTyped,
14557
+ BillingProductDetailResponseDataToJSON: () => BillingProductDetailResponseDataToJSON,
14552
14558
  BillingProductPlanResponseDataFromJSON: () => BillingProductPlanResponseDataFromJSON,
14553
14559
  BillingProductPlanResponseDataFromJSONTyped: () => BillingProductPlanResponseDataFromJSONTyped,
14554
14560
  BillingProductPlanResponseDataToJSON: () => BillingProductPlanResponseDataToJSON,
@@ -14698,12 +14704,6 @@ __export(src_exports, {
14698
14704
  CountFeaturesResponseFromJSON: () => CountFeaturesResponseFromJSON,
14699
14705
  CountFeaturesResponseFromJSONTyped: () => CountFeaturesResponseFromJSONTyped,
14700
14706
  CountFeaturesResponseToJSON: () => CountFeaturesResponseToJSON,
14701
- CountFlagChecksParamsFromJSON: () => CountFlagChecksParamsFromJSON,
14702
- CountFlagChecksParamsFromJSONTyped: () => CountFlagChecksParamsFromJSONTyped,
14703
- CountFlagChecksParamsToJSON: () => CountFlagChecksParamsToJSON,
14704
- CountFlagChecksResponseFromJSON: () => CountFlagChecksResponseFromJSON,
14705
- CountFlagChecksResponseFromJSONTyped: () => CountFlagChecksResponseFromJSONTyped,
14706
- CountFlagChecksResponseToJSON: () => CountFlagChecksResponseToJSON,
14707
14707
  CountFlagsParamsFromJSON: () => CountFlagsParamsFromJSON,
14708
14708
  CountFlagsParamsFromJSONTyped: () => CountFlagsParamsFromJSONTyped,
14709
14709
  CountFlagsParamsToJSON: () => CountFlagsParamsToJSON,
@@ -14752,6 +14752,9 @@ __export(src_exports, {
14752
14752
  CreateBillingCustomerRequestBodyFromJSON: () => CreateBillingCustomerRequestBodyFromJSON,
14753
14753
  CreateBillingCustomerRequestBodyFromJSONTyped: () => CreateBillingCustomerRequestBodyFromJSONTyped,
14754
14754
  CreateBillingCustomerRequestBodyToJSON: () => CreateBillingCustomerRequestBodyToJSON,
14755
+ CreateBillingPriceRequestBodyFromJSON: () => CreateBillingPriceRequestBodyFromJSON,
14756
+ CreateBillingPriceRequestBodyFromJSONTyped: () => CreateBillingPriceRequestBodyFromJSONTyped,
14757
+ CreateBillingPriceRequestBodyToJSON: () => CreateBillingPriceRequestBodyToJSON,
14755
14758
  CreateBillingProductRequestBodyFromJSON: () => CreateBillingProductRequestBodyFromJSON,
14756
14759
  CreateBillingProductRequestBodyFromJSONTyped: () => CreateBillingProductRequestBodyFromJSONTyped,
14757
14760
  CreateBillingProductRequestBodyToJSON: () => CreateBillingProductRequestBodyToJSON,
@@ -14962,6 +14965,9 @@ __export(src_exports, {
14962
14965
  EnvironmentResponseDataFromJSON: () => EnvironmentResponseDataFromJSON,
14963
14966
  EnvironmentResponseDataFromJSONTyped: () => EnvironmentResponseDataFromJSONTyped,
14964
14967
  EnvironmentResponseDataToJSON: () => EnvironmentResponseDataToJSON,
14968
+ EventBodyFlagCheckFromJSON: () => EventBodyFlagCheckFromJSON,
14969
+ EventBodyFlagCheckFromJSONTyped: () => EventBodyFlagCheckFromJSONTyped,
14970
+ EventBodyFlagCheckToJSON: () => EventBodyFlagCheckToJSON,
14965
14971
  EventBodyFromJSON: () => EventBodyFromJSON,
14966
14972
  EventBodyFromJSONTyped: () => EventBodyFromJSONTyped,
14967
14973
  EventBodyIdentifyCompanyFromJSON: () => EventBodyIdentifyCompanyFromJSON,
@@ -15007,12 +15013,6 @@ __export(src_exports, {
15007
15013
  FeatureUsageResponseDataToJSON: () => FeatureUsageResponseDataToJSON,
15008
15014
  FeaturesApi: () => FeaturesApi,
15009
15015
  FetchError: () => FetchError2,
15010
- FlagCheckLogDetailResponseDataFromJSON: () => FlagCheckLogDetailResponseDataFromJSON,
15011
- FlagCheckLogDetailResponseDataFromJSONTyped: () => FlagCheckLogDetailResponseDataFromJSONTyped,
15012
- FlagCheckLogDetailResponseDataToJSON: () => FlagCheckLogDetailResponseDataToJSON,
15013
- FlagCheckLogResponseDataFromJSON: () => FlagCheckLogResponseDataFromJSON,
15014
- FlagCheckLogResponseDataFromJSONTyped: () => FlagCheckLogResponseDataFromJSONTyped,
15015
- FlagCheckLogResponseDataToJSON: () => FlagCheckLogResponseDataToJSON,
15016
15016
  FlagDetailResponseDataFromJSON: () => FlagDetailResponseDataFromJSON,
15017
15017
  FlagDetailResponseDataFromJSONTyped: () => FlagDetailResponseDataFromJSONTyped,
15018
15018
  FlagDetailResponseDataToJSON: () => FlagDetailResponseDataToJSON,
@@ -15082,18 +15082,9 @@ __export(src_exports, {
15082
15082
  GetFeatureUsageByCompanyResponseFromJSON: () => GetFeatureUsageByCompanyResponseFromJSON,
15083
15083
  GetFeatureUsageByCompanyResponseFromJSONTyped: () => GetFeatureUsageByCompanyResponseFromJSONTyped,
15084
15084
  GetFeatureUsageByCompanyResponseToJSON: () => GetFeatureUsageByCompanyResponseToJSON,
15085
- GetFlagCheckResponseFromJSON: () => GetFlagCheckResponseFromJSON,
15086
- GetFlagCheckResponseFromJSONTyped: () => GetFlagCheckResponseFromJSONTyped,
15087
- GetFlagCheckResponseToJSON: () => GetFlagCheckResponseToJSON,
15088
15085
  GetFlagResponseFromJSON: () => GetFlagResponseFromJSON,
15089
15086
  GetFlagResponseFromJSONTyped: () => GetFlagResponseFromJSONTyped,
15090
15087
  GetFlagResponseToJSON: () => GetFlagResponseToJSON,
15091
- GetLatestFlagChecksParamsFromJSON: () => GetLatestFlagChecksParamsFromJSON,
15092
- GetLatestFlagChecksParamsFromJSONTyped: () => GetLatestFlagChecksParamsFromJSONTyped,
15093
- GetLatestFlagChecksParamsToJSON: () => GetLatestFlagChecksParamsToJSON,
15094
- GetLatestFlagChecksResponseFromJSON: () => GetLatestFlagChecksResponseFromJSON,
15095
- GetLatestFlagChecksResponseFromJSONTyped: () => GetLatestFlagChecksResponseFromJSONTyped,
15096
- GetLatestFlagChecksResponseToJSON: () => GetLatestFlagChecksResponseToJSON,
15097
15088
  GetOrCreateCompanyMembershipRequestBodyFromJSON: () => GetOrCreateCompanyMembershipRequestBodyFromJSON,
15098
15089
  GetOrCreateCompanyMembershipRequestBodyFromJSONTyped: () => GetOrCreateCompanyMembershipRequestBodyFromJSONTyped,
15099
15090
  GetOrCreateCompanyMembershipRequestBodyToJSON: () => GetOrCreateCompanyMembershipRequestBodyToJSON,
@@ -15155,6 +15146,12 @@ __export(src_exports, {
15155
15146
  ListAudienceUsersResponseFromJSON: () => ListAudienceUsersResponseFromJSON,
15156
15147
  ListAudienceUsersResponseFromJSONTyped: () => ListAudienceUsersResponseFromJSONTyped,
15157
15148
  ListAudienceUsersResponseToJSON: () => ListAudienceUsersResponseToJSON,
15149
+ ListBillingProductsParamsFromJSON: () => ListBillingProductsParamsFromJSON,
15150
+ ListBillingProductsParamsFromJSONTyped: () => ListBillingProductsParamsFromJSONTyped,
15151
+ ListBillingProductsParamsToJSON: () => ListBillingProductsParamsToJSON,
15152
+ ListBillingProductsResponseFromJSON: () => ListBillingProductsResponseFromJSON,
15153
+ ListBillingProductsResponseFromJSONTyped: () => ListBillingProductsResponseFromJSONTyped,
15154
+ ListBillingProductsResponseToJSON: () => ListBillingProductsResponseToJSON,
15158
15155
  ListCompaniesParamsFromJSON: () => ListCompaniesParamsFromJSON,
15159
15156
  ListCompaniesParamsFromJSONTyped: () => ListCompaniesParamsFromJSONTyped,
15160
15157
  ListCompaniesParamsToJSON: () => ListCompaniesParamsToJSON,
@@ -15251,12 +15248,6 @@ __export(src_exports, {
15251
15248
  ListFeaturesResponseFromJSON: () => ListFeaturesResponseFromJSON,
15252
15249
  ListFeaturesResponseFromJSONTyped: () => ListFeaturesResponseFromJSONTyped,
15253
15250
  ListFeaturesResponseToJSON: () => ListFeaturesResponseToJSON,
15254
- ListFlagChecksParamsFromJSON: () => ListFlagChecksParamsFromJSON,
15255
- ListFlagChecksParamsFromJSONTyped: () => ListFlagChecksParamsFromJSONTyped,
15256
- ListFlagChecksParamsToJSON: () => ListFlagChecksParamsToJSON,
15257
- ListFlagChecksResponseFromJSON: () => ListFlagChecksResponseFromJSON,
15258
- ListFlagChecksResponseFromJSONTyped: () => ListFlagChecksResponseFromJSONTyped,
15259
- ListFlagChecksResponseToJSON: () => ListFlagChecksResponseToJSON,
15260
15251
  ListFlagsParamsFromJSON: () => ListFlagsParamsFromJSON,
15261
15252
  ListFlagsParamsFromJSONTyped: () => ListFlagsParamsFromJSONTyped,
15262
15253
  ListFlagsParamsToJSON: () => ListFlagsParamsToJSON,
@@ -15281,12 +15272,12 @@ __export(src_exports, {
15281
15272
  ListPlansResponseFromJSON: () => ListPlansResponseFromJSON,
15282
15273
  ListPlansResponseFromJSONTyped: () => ListPlansResponseFromJSONTyped,
15283
15274
  ListPlansResponseToJSON: () => ListPlansResponseToJSON,
15284
- ListProductsParamsFromJSON: () => ListProductsParamsFromJSON,
15285
- ListProductsParamsFromJSONTyped: () => ListProductsParamsFromJSONTyped,
15286
- ListProductsParamsToJSON: () => ListProductsParamsToJSON,
15287
- ListProductsResponseFromJSON: () => ListProductsResponseFromJSON,
15288
- ListProductsResponseFromJSONTyped: () => ListProductsResponseFromJSONTyped,
15289
- ListProductsResponseToJSON: () => ListProductsResponseToJSON,
15275
+ ListProductPricesParamsFromJSON: () => ListProductPricesParamsFromJSON,
15276
+ ListProductPricesParamsFromJSONTyped: () => ListProductPricesParamsFromJSONTyped,
15277
+ ListProductPricesParamsToJSON: () => ListProductPricesParamsToJSON,
15278
+ ListProductPricesResponseFromJSON: () => ListProductPricesResponseFromJSON,
15279
+ ListProductPricesResponseFromJSONTyped: () => ListProductPricesResponseFromJSONTyped,
15280
+ ListProductPricesResponseToJSON: () => ListProductPricesResponseToJSON,
15290
15281
  ListUsersParamsFromJSON: () => ListUsersParamsFromJSON,
15291
15282
  ListUsersParamsFromJSONTyped: () => ListUsersParamsFromJSONTyped,
15292
15283
  ListUsersParamsToJSON: () => ListUsersParamsToJSON,
@@ -15475,6 +15466,9 @@ __export(src_exports, {
15475
15466
  UpsertBillingCustomerResponseFromJSON: () => UpsertBillingCustomerResponseFromJSON,
15476
15467
  UpsertBillingCustomerResponseFromJSONTyped: () => UpsertBillingCustomerResponseFromJSONTyped,
15477
15468
  UpsertBillingCustomerResponseToJSON: () => UpsertBillingCustomerResponseToJSON,
15469
+ UpsertBillingPriceResponseFromJSON: () => UpsertBillingPriceResponseFromJSON,
15470
+ UpsertBillingPriceResponseFromJSONTyped: () => UpsertBillingPriceResponseFromJSONTyped,
15471
+ UpsertBillingPriceResponseToJSON: () => UpsertBillingPriceResponseToJSON,
15478
15472
  UpsertBillingProductPlanResponseFromJSON: () => UpsertBillingProductPlanResponseFromJSON,
15479
15473
  UpsertBillingProductPlanResponseFromJSONTyped: () => UpsertBillingProductPlanResponseFromJSONTyped,
15480
15474
  UpsertBillingProductPlanResponseToJSON: () => UpsertBillingProductPlanResponseToJSON,
@@ -15551,6 +15545,8 @@ __export(src_exports, {
15551
15545
  instanceOfBillingCustomerResponseData: () => instanceOfBillingCustomerResponseData,
15552
15546
  instanceOfBillingCustomerSubscription: () => instanceOfBillingCustomerSubscription,
15553
15547
  instanceOfBillingCustomerWithSubscriptionsResponseData: () => instanceOfBillingCustomerWithSubscriptionsResponseData,
15548
+ instanceOfBillingPriceResponseData: () => instanceOfBillingPriceResponseData,
15549
+ instanceOfBillingProductDetailResponseData: () => instanceOfBillingProductDetailResponseData,
15554
15550
  instanceOfBillingProductPlanResponseData: () => instanceOfBillingProductPlanResponseData,
15555
15551
  instanceOfBillingProductPricing: () => instanceOfBillingProductPricing,
15556
15552
  instanceOfBillingProductResponseData: () => instanceOfBillingProductResponseData,
@@ -15597,8 +15593,6 @@ __export(src_exports, {
15597
15593
  instanceOfCountFeatureUsersResponse: () => instanceOfCountFeatureUsersResponse,
15598
15594
  instanceOfCountFeaturesParams: () => instanceOfCountFeaturesParams,
15599
15595
  instanceOfCountFeaturesResponse: () => instanceOfCountFeaturesResponse,
15600
- instanceOfCountFlagChecksParams: () => instanceOfCountFlagChecksParams,
15601
- instanceOfCountFlagChecksResponse: () => instanceOfCountFlagChecksResponse,
15602
15596
  instanceOfCountFlagsParams: () => instanceOfCountFlagsParams,
15603
15597
  instanceOfCountFlagsResponse: () => instanceOfCountFlagsResponse,
15604
15598
  instanceOfCountPlanEntitlementsParams: () => instanceOfCountPlanEntitlementsParams,
@@ -15615,6 +15609,7 @@ __export(src_exports, {
15615
15609
  instanceOfCreateApiKeyRequestBody: () => instanceOfCreateApiKeyRequestBody,
15616
15610
  instanceOfCreateApiKeyResponse: () => instanceOfCreateApiKeyResponse,
15617
15611
  instanceOfCreateBillingCustomerRequestBody: () => instanceOfCreateBillingCustomerRequestBody,
15612
+ instanceOfCreateBillingPriceRequestBody: () => instanceOfCreateBillingPriceRequestBody,
15618
15613
  instanceOfCreateBillingProductRequestBody: () => instanceOfCreateBillingProductRequestBody,
15619
15614
  instanceOfCreateBillingSubscriptionsRequestBody: () => instanceOfCreateBillingSubscriptionsRequestBody,
15620
15615
  instanceOfCreateCompanyOverrideRequestBody: () => instanceOfCreateCompanyOverrideRequestBody,
@@ -15678,6 +15673,7 @@ __export(src_exports, {
15678
15673
  instanceOfEntityTraitValue: () => instanceOfEntityTraitValue,
15679
15674
  instanceOfEnvironmentDetailResponseData: () => instanceOfEnvironmentDetailResponseData,
15680
15675
  instanceOfEnvironmentResponseData: () => instanceOfEnvironmentResponseData,
15676
+ instanceOfEventBodyFlagCheck: () => instanceOfEventBodyFlagCheck,
15681
15677
  instanceOfEventBodyIdentify: () => instanceOfEventBodyIdentify,
15682
15678
  instanceOfEventBodyIdentifyCompany: () => instanceOfEventBodyIdentifyCompany,
15683
15679
  instanceOfEventBodyTrack: () => instanceOfEventBodyTrack,
@@ -15690,8 +15686,6 @@ __export(src_exports, {
15690
15686
  instanceOfFeatureResponseData: () => instanceOfFeatureResponseData,
15691
15687
  instanceOfFeatureUsageDetailResponseData: () => instanceOfFeatureUsageDetailResponseData,
15692
15688
  instanceOfFeatureUsageResponseData: () => instanceOfFeatureUsageResponseData,
15693
- instanceOfFlagCheckLogDetailResponseData: () => instanceOfFlagCheckLogDetailResponseData,
15694
- instanceOfFlagCheckLogResponseData: () => instanceOfFlagCheckLogResponseData,
15695
15689
  instanceOfFlagDetailResponseData: () => instanceOfFlagDetailResponseData,
15696
15690
  instanceOfFlagResponseData: () => instanceOfFlagResponseData,
15697
15691
  instanceOfGetActiveCompanySubscriptionParams: () => instanceOfGetActiveCompanySubscriptionParams,
@@ -15715,10 +15709,7 @@ __export(src_exports, {
15715
15709
  instanceOfGetFeatureResponse: () => instanceOfGetFeatureResponse,
15716
15710
  instanceOfGetFeatureUsageByCompanyParams: () => instanceOfGetFeatureUsageByCompanyParams,
15717
15711
  instanceOfGetFeatureUsageByCompanyResponse: () => instanceOfGetFeatureUsageByCompanyResponse,
15718
- instanceOfGetFlagCheckResponse: () => instanceOfGetFlagCheckResponse,
15719
15712
  instanceOfGetFlagResponse: () => instanceOfGetFlagResponse,
15720
- instanceOfGetLatestFlagChecksParams: () => instanceOfGetLatestFlagChecksParams,
15721
- instanceOfGetLatestFlagChecksResponse: () => instanceOfGetLatestFlagChecksResponse,
15722
15713
  instanceOfGetOrCreateCompanyMembershipRequestBody: () => instanceOfGetOrCreateCompanyMembershipRequestBody,
15723
15714
  instanceOfGetOrCreateCompanyMembershipResponse: () => instanceOfGetOrCreateCompanyMembershipResponse,
15724
15715
  instanceOfGetOrCreateEntityTraitDefinitionResponse: () => instanceOfGetOrCreateEntityTraitDefinitionResponse,
@@ -15739,6 +15730,8 @@ __export(src_exports, {
15739
15730
  instanceOfListApiRequestsResponse: () => instanceOfListApiRequestsResponse,
15740
15731
  instanceOfListAudienceCompaniesResponse: () => instanceOfListAudienceCompaniesResponse,
15741
15732
  instanceOfListAudienceUsersResponse: () => instanceOfListAudienceUsersResponse,
15733
+ instanceOfListBillingProductsParams: () => instanceOfListBillingProductsParams,
15734
+ instanceOfListBillingProductsResponse: () => instanceOfListBillingProductsResponse,
15742
15735
  instanceOfListCompaniesParams: () => instanceOfListCompaniesParams,
15743
15736
  instanceOfListCompaniesResponse: () => instanceOfListCompaniesResponse,
15744
15737
  instanceOfListCompanyMembershipsParams: () => instanceOfListCompanyMembershipsParams,
@@ -15769,8 +15762,6 @@ __export(src_exports, {
15769
15762
  instanceOfListFeatureUsersResponse: () => instanceOfListFeatureUsersResponse,
15770
15763
  instanceOfListFeaturesParams: () => instanceOfListFeaturesParams,
15771
15764
  instanceOfListFeaturesResponse: () => instanceOfListFeaturesResponse,
15772
- instanceOfListFlagChecksParams: () => instanceOfListFlagChecksParams,
15773
- instanceOfListFlagChecksResponse: () => instanceOfListFlagChecksResponse,
15774
15765
  instanceOfListFlagsParams: () => instanceOfListFlagsParams,
15775
15766
  instanceOfListFlagsResponse: () => instanceOfListFlagsResponse,
15776
15767
  instanceOfListMetricCountsParams: () => instanceOfListMetricCountsParams,
@@ -15779,8 +15770,8 @@ __export(src_exports, {
15779
15770
  instanceOfListPlanEntitlementsResponse: () => instanceOfListPlanEntitlementsResponse,
15780
15771
  instanceOfListPlansParams: () => instanceOfListPlansParams,
15781
15772
  instanceOfListPlansResponse: () => instanceOfListPlansResponse,
15782
- instanceOfListProductsParams: () => instanceOfListProductsParams,
15783
- instanceOfListProductsResponse: () => instanceOfListProductsResponse,
15773
+ instanceOfListProductPricesParams: () => instanceOfListProductPricesParams,
15774
+ instanceOfListProductPricesResponse: () => instanceOfListProductPricesResponse,
15784
15775
  instanceOfListUsersParams: () => instanceOfListUsersParams,
15785
15776
  instanceOfListUsersResponse: () => instanceOfListUsersResponse,
15786
15777
  instanceOfListWebhookEventsParams: () => instanceOfListWebhookEventsParams,
@@ -15837,6 +15828,7 @@ __export(src_exports, {
15837
15828
  instanceOfUpdateWebhookRequestBody: () => instanceOfUpdateWebhookRequestBody,
15838
15829
  instanceOfUpdateWebhookResponse: () => instanceOfUpdateWebhookResponse,
15839
15830
  instanceOfUpsertBillingCustomerResponse: () => instanceOfUpsertBillingCustomerResponse,
15831
+ instanceOfUpsertBillingPriceResponse: () => instanceOfUpsertBillingPriceResponse,
15840
15832
  instanceOfUpsertBillingProductPlanResponse: () => instanceOfUpsertBillingProductPlanResponse,
15841
15833
  instanceOfUpsertBillingProductRequestBody: () => instanceOfUpsertBillingProductRequestBody,
15842
15834
  instanceOfUpsertBillingProductResponse: () => instanceOfUpsertBillingProductResponse,
@@ -18005,6 +17997,112 @@ function BillingCustomerWithSubscriptionsResponseDataToJSON(value) {
18005
17997
  };
18006
17998
  }
18007
17999
 
18000
+ // src/api/models/BillingPriceResponseData.ts
18001
+ function instanceOfBillingPriceResponseData(value) {
18002
+ if (!("externalPriceId" in value) || value["externalPriceId"] === void 0)
18003
+ return false;
18004
+ if (!("id" in value) || value["id"] === void 0)
18005
+ return false;
18006
+ if (!("interval" in value) || value["interval"] === void 0)
18007
+ return false;
18008
+ if (!("price" in value) || value["price"] === void 0)
18009
+ return false;
18010
+ return true;
18011
+ }
18012
+ function BillingPriceResponseDataFromJSON(json) {
18013
+ return BillingPriceResponseDataFromJSONTyped(json, false);
18014
+ }
18015
+ function BillingPriceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
18016
+ if (json == null) {
18017
+ return json;
18018
+ }
18019
+ return {
18020
+ externalPriceId: json["external_price_id"],
18021
+ id: json["id"],
18022
+ interval: json["interval"],
18023
+ price: json["price"]
18024
+ };
18025
+ }
18026
+ function BillingPriceResponseDataToJSON(value) {
18027
+ if (value == null) {
18028
+ return value;
18029
+ }
18030
+ return {
18031
+ external_price_id: value["externalPriceId"],
18032
+ id: value["id"],
18033
+ interval: value["interval"],
18034
+ price: value["price"]
18035
+ };
18036
+ }
18037
+
18038
+ // src/api/models/BillingProductDetailResponseData.ts
18039
+ function instanceOfBillingProductDetailResponseData(value) {
18040
+ if (!("prices" in value) || value["prices"] === void 0)
18041
+ return false;
18042
+ if (!("accountId" in value) || value["accountId"] === void 0)
18043
+ return false;
18044
+ if (!("createdAt" in value) || value["createdAt"] === void 0)
18045
+ return false;
18046
+ if (!("currency" in value) || value["currency"] === void 0)
18047
+ return false;
18048
+ if (!("environmentId" in value) || value["environmentId"] === void 0)
18049
+ return false;
18050
+ if (!("externalId" in value) || value["externalId"] === void 0)
18051
+ return false;
18052
+ if (!("name" in value) || value["name"] === void 0)
18053
+ return false;
18054
+ if (!("price" in value) || value["price"] === void 0)
18055
+ return false;
18056
+ if (!("productId" in value) || value["productId"] === void 0)
18057
+ return false;
18058
+ if (!("quantity" in value) || value["quantity"] === void 0)
18059
+ return false;
18060
+ if (!("updatedAt" in value) || value["updatedAt"] === void 0)
18061
+ return false;
18062
+ return true;
18063
+ }
18064
+ function BillingProductDetailResponseDataFromJSON(json) {
18065
+ return BillingProductDetailResponseDataFromJSONTyped(json, false);
18066
+ }
18067
+ function BillingProductDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
18068
+ if (json == null) {
18069
+ return json;
18070
+ }
18071
+ return {
18072
+ prices: json["Prices"].map(
18073
+ BillingPriceResponseDataFromJSON
18074
+ ),
18075
+ accountId: json["account_id"],
18076
+ createdAt: new Date(json["created_at"]),
18077
+ currency: json["currency"],
18078
+ environmentId: json["environment_id"],
18079
+ externalId: json["external_id"],
18080
+ name: json["name"],
18081
+ price: json["price"],
18082
+ productId: json["product_id"],
18083
+ quantity: json["quantity"],
18084
+ updatedAt: new Date(json["updated_at"])
18085
+ };
18086
+ }
18087
+ function BillingProductDetailResponseDataToJSON(value) {
18088
+ if (value == null) {
18089
+ return value;
18090
+ }
18091
+ return {
18092
+ Prices: value["prices"].map(BillingPriceResponseDataToJSON),
18093
+ account_id: value["accountId"],
18094
+ created_at: value["createdAt"].toISOString(),
18095
+ currency: value["currency"],
18096
+ environment_id: value["environmentId"],
18097
+ external_id: value["externalId"],
18098
+ name: value["name"],
18099
+ price: value["price"],
18100
+ product_id: value["productId"],
18101
+ quantity: value["quantity"],
18102
+ updated_at: value["updatedAt"].toISOString()
18103
+ };
18104
+ }
18105
+
18008
18106
  // src/api/models/BillingProductPlanResponseData.ts
18009
18107
  function instanceOfBillingProductPlanResponseData(value) {
18010
18108
  if (!("accountId" in value) || value["accountId"] === void 0)
@@ -18485,6 +18583,7 @@ function PreviewObjectFromJSONTyped(json, ignoreDiscriminator) {
18485
18583
  return json;
18486
18584
  }
18487
18585
  return {
18586
+ description: json["description"] == null ? void 0 : json["description"],
18488
18587
  id: json["id"],
18489
18588
  imageUrl: json["image_url"] == null ? void 0 : json["image_url"],
18490
18589
  name: json["name"]
@@ -18495,6 +18594,7 @@ function PreviewObjectToJSON(value) {
18495
18594
  return value;
18496
18595
  }
18497
18596
  return {
18597
+ description: value["description"],
18498
18598
  id: value["id"],
18499
18599
  image_url: value["imageUrl"],
18500
18600
  name: value["name"]
@@ -18909,6 +19009,8 @@ function instanceOfFeatureResponseData(value) {
18909
19009
  return false;
18910
19010
  if (!("featureType" in value) || value["featureType"] === void 0)
18911
19011
  return false;
19012
+ if (!("icon" in value) || value["icon"] === void 0)
19013
+ return false;
18912
19014
  if (!("id" in value) || value["id"] === void 0)
18913
19015
  return false;
18914
19016
  if (!("name" in value) || value["name"] === void 0)
@@ -18929,8 +19031,10 @@ function FeatureResponseDataFromJSONTyped(json, ignoreDiscriminator) {
18929
19031
  description: json["description"],
18930
19032
  eventSubtype: json["event_subtype"] == null ? void 0 : json["event_subtype"],
18931
19033
  featureType: json["feature_type"],
19034
+ icon: json["icon"],
18932
19035
  id: json["id"],
18933
19036
  lifecyclePhase: json["lifecycle_phase"] == null ? void 0 : json["lifecycle_phase"],
19037
+ maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
18934
19038
  name: json["name"],
18935
19039
  traitId: json["trait_id"] == null ? void 0 : json["trait_id"],
18936
19040
  updatedAt: new Date(json["updated_at"])
@@ -18945,8 +19049,10 @@ function FeatureResponseDataToJSON(value) {
18945
19049
  description: value["description"],
18946
19050
  event_subtype: value["eventSubtype"],
18947
19051
  feature_type: value["featureType"],
19052
+ icon: value["icon"],
18948
19053
  id: value["id"],
18949
19054
  lifecycle_phase: value["lifecyclePhase"],
19055
+ maintainer_id: value["maintainerId"],
18950
19056
  name: value["name"],
18951
19057
  trait_id: value["traitId"],
18952
19058
  updated_at: value["updatedAt"].toISOString()
@@ -19453,74 +19559,6 @@ function RuleDetailResponseDataToJSON(value) {
19453
19559
  };
19454
19560
  }
19455
19561
 
19456
- // src/api/models/FlagCheckLogResponseData.ts
19457
- function instanceOfFlagCheckLogResponseData(value) {
19458
- if (!("checkStatus" in value) || value["checkStatus"] === void 0)
19459
- return false;
19460
- if (!("createdAt" in value) || value["createdAt"] === void 0)
19461
- return false;
19462
- if (!("environmentId" in value) || value["environmentId"] === void 0)
19463
- return false;
19464
- if (!("flagKey" in value) || value["flagKey"] === void 0)
19465
- return false;
19466
- if (!("id" in value) || value["id"] === void 0)
19467
- return false;
19468
- if (!("reason" in value) || value["reason"] === void 0)
19469
- return false;
19470
- if (!("updatedAt" in value) || value["updatedAt"] === void 0)
19471
- return false;
19472
- if (!("value" in value) || value["value"] === void 0)
19473
- return false;
19474
- return true;
19475
- }
19476
- function FlagCheckLogResponseDataFromJSON(json) {
19477
- return FlagCheckLogResponseDataFromJSONTyped(json, false);
19478
- }
19479
- function FlagCheckLogResponseDataFromJSONTyped(json, ignoreDiscriminator) {
19480
- if (json == null) {
19481
- return json;
19482
- }
19483
- return {
19484
- checkStatus: json["check_status"],
19485
- companyId: json["company_id"] == null ? void 0 : json["company_id"],
19486
- createdAt: new Date(json["created_at"]),
19487
- environmentId: json["environment_id"],
19488
- error: json["error"] == null ? void 0 : json["error"],
19489
- flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
19490
- flagKey: json["flag_key"],
19491
- id: json["id"],
19492
- reason: json["reason"],
19493
- reqCompany: json["req_company"] == null ? void 0 : json["req_company"],
19494
- reqUser: json["req_user"] == null ? void 0 : json["req_user"],
19495
- ruleId: json["rule_id"] == null ? void 0 : json["rule_id"],
19496
- updatedAt: new Date(json["updated_at"]),
19497
- userId: json["user_id"] == null ? void 0 : json["user_id"],
19498
- value: json["value"]
19499
- };
19500
- }
19501
- function FlagCheckLogResponseDataToJSON(value) {
19502
- if (value == null) {
19503
- return value;
19504
- }
19505
- return {
19506
- check_status: value["checkStatus"],
19507
- company_id: value["companyId"],
19508
- created_at: value["createdAt"].toISOString(),
19509
- environment_id: value["environmentId"],
19510
- error: value["error"],
19511
- flag_id: value["flagId"],
19512
- flag_key: value["flagKey"],
19513
- id: value["id"],
19514
- reason: value["reason"],
19515
- req_company: value["reqCompany"],
19516
- req_user: value["reqUser"],
19517
- rule_id: value["ruleId"],
19518
- updated_at: value["updatedAt"].toISOString(),
19519
- user_id: value["userId"],
19520
- value: value["value"]
19521
- };
19522
- }
19523
-
19524
19562
  // src/api/models/FlagDetailResponseData.ts
19525
19563
  function instanceOfFlagDetailResponseData(value) {
19526
19564
  if (!("createdAt" in value) || value["createdAt"] === void 0)
@@ -19559,7 +19597,8 @@ function FlagDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
19559
19597
  flagType: json["flag_type"],
19560
19598
  id: json["id"],
19561
19599
  key: json["key"],
19562
- latestCheck: json["latest_check"] == null ? void 0 : FlagCheckLogResponseDataFromJSON(json["latest_check"]),
19600
+ lastCheckedAt: json["last_checked_at"] == null ? void 0 : new Date(json["last_checked_at"]),
19601
+ maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
19563
19602
  name: json["name"],
19564
19603
  rules: json["rules"].map(RuleDetailResponseDataFromJSON),
19565
19604
  updatedAt: new Date(json["updated_at"])
@@ -19578,7 +19617,8 @@ function FlagDetailResponseDataToJSON(value) {
19578
19617
  flag_type: value["flagType"],
19579
19618
  id: value["id"],
19580
19619
  key: value["key"],
19581
- latest_check: FlagCheckLogResponseDataToJSON(value["latestCheck"]),
19620
+ last_checked_at: value["lastCheckedAt"] == null ? void 0 : value["lastCheckedAt"].toISOString(),
19621
+ maintainer_id: value["maintainerId"],
19582
19622
  name: value["name"],
19583
19623
  rules: value["rules"].map(RuleDetailResponseDataToJSON),
19584
19624
  updated_at: value["updatedAt"].toISOString()
@@ -19595,6 +19635,8 @@ function instanceOfFeatureDetailResponseData(value) {
19595
19635
  return false;
19596
19636
  if (!("flags" in value) || value["flags"] === void 0)
19597
19637
  return false;
19638
+ if (!("icon" in value) || value["icon"] === void 0)
19639
+ return false;
19598
19640
  if (!("id" in value) || value["id"] === void 0)
19599
19641
  return false;
19600
19642
  if (!("name" in value) || value["name"] === void 0)
@@ -19619,8 +19661,10 @@ function FeatureDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
19619
19661
  eventSummary: json["event_summary"] == null ? void 0 : EventSummaryResponseDataFromJSON(json["event_summary"]),
19620
19662
  featureType: json["feature_type"],
19621
19663
  flags: json["flags"].map(FlagDetailResponseDataFromJSON),
19664
+ icon: json["icon"],
19622
19665
  id: json["id"],
19623
19666
  lifecyclePhase: json["lifecycle_phase"] == null ? void 0 : json["lifecycle_phase"],
19667
+ maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
19624
19668
  name: json["name"],
19625
19669
  plans: json["plans"].map(PreviewObjectFromJSON),
19626
19670
  trait: json["trait"] == null ? void 0 : EntityTraitDefinitionResponseDataFromJSON(json["trait"]),
@@ -19639,8 +19683,10 @@ function FeatureDetailResponseDataToJSON(value) {
19639
19683
  event_summary: EventSummaryResponseDataToJSON(value["eventSummary"]),
19640
19684
  feature_type: value["featureType"],
19641
19685
  flags: value["flags"].map(FlagDetailResponseDataToJSON),
19686
+ icon: value["icon"],
19642
19687
  id: value["id"],
19643
19688
  lifecycle_phase: value["lifecyclePhase"],
19689
+ maintainer_id: value["maintainerId"],
19644
19690
  name: value["name"],
19645
19691
  plans: value["plans"].map(PreviewObjectToJSON),
19646
19692
  trait: EntityTraitDefinitionResponseDataToJSON(value["trait"]),
@@ -19657,6 +19703,8 @@ function instanceOfPlanResponseData(value) {
19657
19703
  return false;
19658
19704
  if (!("description" in value) || value["description"] === void 0)
19659
19705
  return false;
19706
+ if (!("icon" in value) || value["icon"] === void 0)
19707
+ return false;
19660
19708
  if (!("id" in value) || value["id"] === void 0)
19661
19709
  return false;
19662
19710
  if (!("name" in value) || value["name"] === void 0)
@@ -19678,6 +19726,7 @@ function PlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
19678
19726
  audienceType: json["audience_type"],
19679
19727
  createdAt: new Date(json["created_at"]),
19680
19728
  description: json["description"],
19729
+ icon: json["icon"],
19681
19730
  id: json["id"],
19682
19731
  name: json["name"],
19683
19732
  planType: json["plan_type"],
@@ -19692,6 +19741,7 @@ function PlanResponseDataToJSON(value) {
19692
19741
  audience_type: value["audienceType"],
19693
19742
  created_at: value["createdAt"].toISOString(),
19694
19743
  description: value["description"],
19744
+ icon: value["icon"],
19695
19745
  id: value["id"],
19696
19746
  name: value["name"],
19697
19747
  plan_type: value["planType"],
@@ -20661,68 +20711,6 @@ function CountFeaturesResponseToJSON(value) {
20661
20711
  };
20662
20712
  }
20663
20713
 
20664
- // src/api/models/CountFlagChecksParams.ts
20665
- function instanceOfCountFlagChecksParams(value) {
20666
- return true;
20667
- }
20668
- function CountFlagChecksParamsFromJSON(json) {
20669
- return CountFlagChecksParamsFromJSONTyped(json, false);
20670
- }
20671
- function CountFlagChecksParamsFromJSONTyped(json, ignoreDiscriminator) {
20672
- if (json == null) {
20673
- return json;
20674
- }
20675
- return {
20676
- flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
20677
- flagIds: json["flag_ids"] == null ? void 0 : json["flag_ids"],
20678
- id: json["id"] == null ? void 0 : json["id"],
20679
- limit: json["limit"] == null ? void 0 : json["limit"],
20680
- offset: json["offset"] == null ? void 0 : json["offset"]
20681
- };
20682
- }
20683
- function CountFlagChecksParamsToJSON(value) {
20684
- if (value == null) {
20685
- return value;
20686
- }
20687
- return {
20688
- flag_id: value["flagId"],
20689
- flag_ids: value["flagIds"],
20690
- id: value["id"],
20691
- limit: value["limit"],
20692
- offset: value["offset"]
20693
- };
20694
- }
20695
-
20696
- // src/api/models/CountFlagChecksResponse.ts
20697
- function instanceOfCountFlagChecksResponse(value) {
20698
- if (!("data" in value) || value["data"] === void 0)
20699
- return false;
20700
- if (!("params" in value) || value["params"] === void 0)
20701
- return false;
20702
- return true;
20703
- }
20704
- function CountFlagChecksResponseFromJSON(json) {
20705
- return CountFlagChecksResponseFromJSONTyped(json, false);
20706
- }
20707
- function CountFlagChecksResponseFromJSONTyped(json, ignoreDiscriminator) {
20708
- if (json == null) {
20709
- return json;
20710
- }
20711
- return {
20712
- data: CountResponseFromJSON(json["data"]),
20713
- params: CountFlagChecksParamsFromJSON(json["params"])
20714
- };
20715
- }
20716
- function CountFlagChecksResponseToJSON(value) {
20717
- if (value == null) {
20718
- return value;
20719
- }
20720
- return {
20721
- data: CountResponseToJSON(value["data"]),
20722
- params: CountFlagChecksParamsToJSON(value["params"])
20723
- };
20724
- }
20725
-
20726
20714
  // src/api/models/CountFlagsParams.ts
20727
20715
  function instanceOfCountFlagsParams(value) {
20728
20716
  return true;
@@ -21205,6 +21193,44 @@ function CreateBillingCustomerRequestBodyToJSON(value) {
21205
21193
  };
21206
21194
  }
21207
21195
 
21196
+ // src/api/models/CreateBillingPriceRequestBody.ts
21197
+ function instanceOfCreateBillingPriceRequestBody(value) {
21198
+ if (!("interval" in value) || value["interval"] === void 0)
21199
+ return false;
21200
+ if (!("price" in value) || value["price"] === void 0)
21201
+ return false;
21202
+ if (!("priceExternalId" in value) || value["priceExternalId"] === void 0)
21203
+ return false;
21204
+ if (!("productExternalId" in value) || value["productExternalId"] === void 0)
21205
+ return false;
21206
+ return true;
21207
+ }
21208
+ function CreateBillingPriceRequestBodyFromJSON(json) {
21209
+ return CreateBillingPriceRequestBodyFromJSONTyped(json, false);
21210
+ }
21211
+ function CreateBillingPriceRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
21212
+ if (json == null) {
21213
+ return json;
21214
+ }
21215
+ return {
21216
+ interval: json["interval"],
21217
+ price: json["price"],
21218
+ priceExternalId: json["price_external_id"],
21219
+ productExternalId: json["product_external_id"]
21220
+ };
21221
+ }
21222
+ function CreateBillingPriceRequestBodyToJSON(value) {
21223
+ if (value == null) {
21224
+ return value;
21225
+ }
21226
+ return {
21227
+ interval: value["interval"],
21228
+ price: value["price"],
21229
+ price_external_id: value["priceExternalId"],
21230
+ product_external_id: value["productExternalId"]
21231
+ };
21232
+ }
21233
+
21208
21234
  // src/api/models/CreateBillingProductRequestBody.ts
21209
21235
  function instanceOfCreateBillingProductRequestBody(value) {
21210
21236
  if (!("currency" in value) || value["currency"] === void 0)
@@ -21813,6 +21839,54 @@ function CreateEnvironmentResponseToJSON(value) {
21813
21839
  };
21814
21840
  }
21815
21841
 
21842
+ // src/api/models/EventBodyFlagCheck.ts
21843
+ function instanceOfEventBodyFlagCheck(value) {
21844
+ if (!("flagKey" in value) || value["flagKey"] === void 0)
21845
+ return false;
21846
+ if (!("reason" in value) || value["reason"] === void 0)
21847
+ return false;
21848
+ if (!("value" in value) || value["value"] === void 0)
21849
+ return false;
21850
+ return true;
21851
+ }
21852
+ function EventBodyFlagCheckFromJSON(json) {
21853
+ return EventBodyFlagCheckFromJSONTyped(json, false);
21854
+ }
21855
+ function EventBodyFlagCheckFromJSONTyped(json, ignoreDiscriminator) {
21856
+ if (json == null) {
21857
+ return json;
21858
+ }
21859
+ return {
21860
+ companyId: json["company_id"] == null ? void 0 : json["company_id"],
21861
+ error: json["error"] == null ? void 0 : json["error"],
21862
+ flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
21863
+ flagKey: json["flag_key"],
21864
+ reason: json["reason"],
21865
+ reqCompany: json["req_company"] == null ? void 0 : json["req_company"],
21866
+ reqUser: json["req_user"] == null ? void 0 : json["req_user"],
21867
+ ruleId: json["rule_id"] == null ? void 0 : json["rule_id"],
21868
+ userId: json["user_id"] == null ? void 0 : json["user_id"],
21869
+ value: json["value"]
21870
+ };
21871
+ }
21872
+ function EventBodyFlagCheckToJSON(value) {
21873
+ if (value == null) {
21874
+ return value;
21875
+ }
21876
+ return {
21877
+ company_id: value["companyId"],
21878
+ error: value["error"],
21879
+ flag_id: value["flagId"],
21880
+ flag_key: value["flagKey"],
21881
+ reason: value["reason"],
21882
+ req_company: value["reqCompany"],
21883
+ req_user: value["reqUser"],
21884
+ rule_id: value["ruleId"],
21885
+ user_id: value["userId"],
21886
+ value: value["value"]
21887
+ };
21888
+ }
21889
+
21816
21890
  // src/api/models/EventBodyIdentifyCompany.ts
21817
21891
  function instanceOfEventBodyIdentifyCompany(value) {
21818
21892
  if (!("keys" in value) || value["keys"] === void 0)
@@ -21915,6 +21989,9 @@ function EventBodyFromJSONTyped(json, ignoreDiscriminator) {
21915
21989
  if (json == null) {
21916
21990
  return json;
21917
21991
  }
21992
+ if (instanceOfEventBodyFlagCheck(json)) {
21993
+ return EventBodyFlagCheckFromJSONTyped(json, true);
21994
+ }
21918
21995
  if (instanceOfEventBodyIdentify(json)) {
21919
21996
  return EventBodyIdentifyFromJSONTyped(json, true);
21920
21997
  }
@@ -21927,6 +22004,9 @@ function EventBodyToJSON(value) {
21927
22004
  if (value == null) {
21928
22005
  return value;
21929
22006
  }
22007
+ if (instanceOfEventBodyFlagCheck(value)) {
22008
+ return EventBodyFlagCheckToJSON(value);
22009
+ }
21930
22010
  if (instanceOfEventBodyIdentify(value)) {
21931
22011
  return EventBodyIdentifyToJSON(value);
21932
22012
  }
@@ -21939,7 +22019,8 @@ function EventBodyToJSON(value) {
21939
22019
  // src/api/models/CreateEventRequestBody.ts
21940
22020
  var CreateEventRequestBodyEventTypeEnum = {
21941
22021
  Identify: "identify",
21942
- Track: "track"
22022
+ Track: "track",
22023
+ FlagCheck: "flag_check"
21943
22024
  };
21944
22025
  function instanceOfCreateEventRequestBody(value) {
21945
22026
  if (!("eventType" in value) || value["eventType"] === void 0)
@@ -22150,6 +22231,7 @@ function CreateOrUpdateFlagRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
22150
22231
  flagType: json["flag_type"],
22151
22232
  id: json["id"] == null ? void 0 : json["id"],
22152
22233
  key: json["key"],
22234
+ maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
22153
22235
  name: json["name"]
22154
22236
  };
22155
22237
  }
@@ -22164,6 +22246,7 @@ function CreateOrUpdateFlagRequestBodyToJSON(value) {
22164
22246
  flag_type: value["flagType"],
22165
22247
  id: value["id"],
22166
22248
  key: value["key"],
22249
+ maintainer_id: value["maintainerId"],
22167
22250
  name: value["name"]
22168
22251
  };
22169
22252
  }
@@ -22195,7 +22278,9 @@ function CreateFeatureRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
22195
22278
  eventSubtype: json["event_subtype"] == null ? void 0 : json["event_subtype"],
22196
22279
  featureType: json["feature_type"],
22197
22280
  flag: json["flag"] == null ? void 0 : CreateOrUpdateFlagRequestBodyFromJSON(json["flag"]),
22281
+ icon: json["icon"] == null ? void 0 : json["icon"],
22198
22282
  lifecyclePhase: json["lifecycle_phase"] == null ? void 0 : json["lifecycle_phase"],
22283
+ maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
22199
22284
  name: json["name"],
22200
22285
  traitId: json["trait_id"] == null ? void 0 : json["trait_id"]
22201
22286
  };
@@ -22209,7 +22294,9 @@ function CreateFeatureRequestBodyToJSON(value) {
22209
22294
  event_subtype: value["eventSubtype"],
22210
22295
  feature_type: value["featureType"],
22211
22296
  flag: CreateOrUpdateFlagRequestBodyToJSON(value["flag"]),
22297
+ icon: value["icon"],
22212
22298
  lifecycle_phase: value["lifecyclePhase"],
22299
+ maintainer_id: value["maintainerId"],
22213
22300
  name: value["name"],
22214
22301
  trait_id: value["traitId"]
22215
22302
  };
@@ -22272,6 +22359,7 @@ function CreateFlagRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
22272
22359
  featureId: json["feature_id"] == null ? void 0 : json["feature_id"],
22273
22360
  flagType: json["flag_type"],
22274
22361
  key: json["key"],
22362
+ maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
22275
22363
  name: json["name"]
22276
22364
  };
22277
22365
  }
@@ -22285,6 +22373,7 @@ function CreateFlagRequestBodyToJSON(value) {
22285
22373
  feature_id: value["featureId"],
22286
22374
  flag_type: value["flagType"],
22287
22375
  key: value["key"],
22376
+ maintainer_id: value["maintainerId"],
22288
22377
  name: value["name"]
22289
22378
  };
22290
22379
  }
@@ -22560,6 +22649,7 @@ function CreatePlanRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
22560
22649
  return {
22561
22650
  audienceType: json["audience_type"] == null ? void 0 : json["audience_type"],
22562
22651
  description: json["description"],
22652
+ icon: json["icon"] == null ? void 0 : json["icon"],
22563
22653
  name: json["name"],
22564
22654
  planType: json["plan_type"]
22565
22655
  };
@@ -22571,6 +22661,7 @@ function CreatePlanRequestBodyToJSON(value) {
22571
22661
  return {
22572
22662
  audience_type: value["audienceType"],
22573
22663
  description: value["description"],
22664
+ icon: value["icon"],
22574
22665
  name: value["name"],
22575
22666
  plan_type: value["planType"]
22576
22667
  };
@@ -22588,6 +22679,8 @@ function instanceOfPlanDetailResponseData(value) {
22588
22679
  return false;
22589
22680
  if (!("features" in value) || value["features"] === void 0)
22590
22681
  return false;
22682
+ if (!("icon" in value) || value["icon"] === void 0)
22683
+ return false;
22591
22684
  if (!("id" in value) || value["id"] === void 0)
22592
22685
  return false;
22593
22686
  if (!("name" in value) || value["name"] === void 0)
@@ -22607,12 +22700,14 @@ function PlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
22607
22700
  }
22608
22701
  return {
22609
22702
  audienceType: json["audience_type"],
22703
+ billingProduct: json["billing_product"] == null ? void 0 : BillingProductDetailResponseDataFromJSON(json["billing_product"]),
22610
22704
  companyCount: json["company_count"],
22611
22705
  createdAt: new Date(json["created_at"]),
22612
22706
  description: json["description"],
22613
22707
  features: json["features"].map(
22614
22708
  FeatureDetailResponseDataFromJSON
22615
22709
  ),
22710
+ icon: json["icon"],
22616
22711
  id: json["id"],
22617
22712
  name: json["name"],
22618
22713
  planType: json["plan_type"],
@@ -22625,12 +22720,16 @@ function PlanDetailResponseDataToJSON(value) {
22625
22720
  }
22626
22721
  return {
22627
22722
  audience_type: value["audienceType"],
22723
+ billing_product: BillingProductDetailResponseDataToJSON(
22724
+ value["billingProduct"]
22725
+ ),
22628
22726
  company_count: value["companyCount"],
22629
22727
  created_at: value["createdAt"].toISOString(),
22630
22728
  description: value["description"],
22631
22729
  features: value["features"].map(
22632
22730
  FeatureDetailResponseDataToJSON
22633
22731
  ),
22732
+ icon: value["icon"],
22634
22733
  id: value["id"],
22635
22734
  name: value["name"],
22636
22735
  plan_type: value["planType"],
@@ -24115,6 +24214,7 @@ function FlagResponseDataFromJSONTyped(json, ignoreDiscriminator) {
24115
24214
  flagType: json["flag_type"],
24116
24215
  id: json["id"],
24117
24216
  key: json["key"],
24217
+ maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
24118
24218
  name: json["name"],
24119
24219
  updatedAt: new Date(json["updated_at"])
24120
24220
  };
@@ -24128,147 +24228,12 @@ function FlagResponseDataToJSON(value) {
24128
24228
  default_value: value["defaultValue"],
24129
24229
  description: value["description"],
24130
24230
  feature_id: value["featureId"],
24131
- flag_type: value["flagType"],
24132
- id: value["id"],
24133
- key: value["key"],
24134
- name: value["name"],
24135
- updated_at: value["updatedAt"].toISOString()
24136
- };
24137
- }
24138
-
24139
- // src/api/models/RuleResponseData.ts
24140
- function instanceOfRuleResponseData(value) {
24141
- if (!("createdAt" in value) || value["createdAt"] === void 0)
24142
- return false;
24143
- if (!("environmentId" in value) || value["environmentId"] === void 0)
24144
- return false;
24145
- if (!("id" in value) || value["id"] === void 0)
24146
- return false;
24147
- if (!("name" in value) || value["name"] === void 0)
24148
- return false;
24149
- if (!("priority" in value) || value["priority"] === void 0)
24150
- return false;
24151
- if (!("ruleType" in value) || value["ruleType"] === void 0)
24152
- return false;
24153
- if (!("updatedAt" in value) || value["updatedAt"] === void 0)
24154
- return false;
24155
- if (!("value" in value) || value["value"] === void 0)
24156
- return false;
24157
- return true;
24158
- }
24159
- function RuleResponseDataFromJSON(json) {
24160
- return RuleResponseDataFromJSONTyped(json, false);
24161
- }
24162
- function RuleResponseDataFromJSONTyped(json, ignoreDiscriminator) {
24163
- if (json == null) {
24164
- return json;
24165
- }
24166
- return {
24167
- createdAt: new Date(json["created_at"]),
24168
- environmentId: json["environment_id"],
24169
- flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
24170
- id: json["id"],
24171
- name: json["name"],
24172
- planId: json["plan_id"] == null ? void 0 : json["plan_id"],
24173
- priority: json["priority"],
24174
- ruleType: json["rule_type"],
24175
- updatedAt: new Date(json["updated_at"]),
24176
- value: json["value"]
24177
- };
24178
- }
24179
- function RuleResponseDataToJSON(value) {
24180
- if (value == null) {
24181
- return value;
24182
- }
24183
- return {
24184
- created_at: value["createdAt"].toISOString(),
24185
- environment_id: value["environmentId"],
24186
- flag_id: value["flagId"],
24187
- id: value["id"],
24188
- name: value["name"],
24189
- plan_id: value["planId"],
24190
- priority: value["priority"],
24191
- rule_type: value["ruleType"],
24192
- updated_at: value["updatedAt"].toISOString(),
24193
- value: value["value"]
24194
- };
24195
- }
24196
-
24197
- // src/api/models/FlagCheckLogDetailResponseData.ts
24198
- function instanceOfFlagCheckLogDetailResponseData(value) {
24199
- if (!("checkStatus" in value) || value["checkStatus"] === void 0)
24200
- return false;
24201
- if (!("createdAt" in value) || value["createdAt"] === void 0)
24202
- return false;
24203
- if (!("environmentId" in value) || value["environmentId"] === void 0)
24204
- return false;
24205
- if (!("flagKey" in value) || value["flagKey"] === void 0)
24206
- return false;
24207
- if (!("id" in value) || value["id"] === void 0)
24208
- return false;
24209
- if (!("reason" in value) || value["reason"] === void 0)
24210
- return false;
24211
- if (!("updatedAt" in value) || value["updatedAt"] === void 0)
24212
- return false;
24213
- if (!("value" in value) || value["value"] === void 0)
24214
- return false;
24215
- return true;
24216
- }
24217
- function FlagCheckLogDetailResponseDataFromJSON(json) {
24218
- return FlagCheckLogDetailResponseDataFromJSONTyped(json, false);
24219
- }
24220
- function FlagCheckLogDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
24221
- if (json == null) {
24222
- return json;
24223
- }
24224
- return {
24225
- checkStatus: json["check_status"],
24226
- company: json["company"] == null ? void 0 : CompanyResponseDataFromJSON(json["company"]),
24227
- companyId: json["company_id"] == null ? void 0 : json["company_id"],
24228
- createdAt: new Date(json["created_at"]),
24229
- environment: json["environment"] == null ? void 0 : EnvironmentResponseDataFromJSON(json["environment"]),
24230
- environmentId: json["environment_id"],
24231
- error: json["error"] == null ? void 0 : json["error"],
24232
- flag: json["flag"] == null ? void 0 : FlagResponseDataFromJSON(json["flag"]),
24233
- flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
24234
- flagKey: json["flag_key"],
24235
- id: json["id"],
24236
- reason: json["reason"],
24237
- reqCompany: json["req_company"] == null ? void 0 : json["req_company"],
24238
- reqUser: json["req_user"] == null ? void 0 : json["req_user"],
24239
- rule: json["rule"] == null ? void 0 : RuleResponseDataFromJSON(json["rule"]),
24240
- ruleId: json["rule_id"] == null ? void 0 : json["rule_id"],
24241
- updatedAt: new Date(json["updated_at"]),
24242
- user: json["user"] == null ? void 0 : UserResponseDataFromJSON(json["user"]),
24243
- userId: json["user_id"] == null ? void 0 : json["user_id"],
24244
- value: json["value"]
24245
- };
24246
- }
24247
- function FlagCheckLogDetailResponseDataToJSON(value) {
24248
- if (value == null) {
24249
- return value;
24250
- }
24251
- return {
24252
- check_status: value["checkStatus"],
24253
- company: CompanyResponseDataToJSON(value["company"]),
24254
- company_id: value["companyId"],
24255
- created_at: value["createdAt"].toISOString(),
24256
- environment: EnvironmentResponseDataToJSON(value["environment"]),
24257
- environment_id: value["environmentId"],
24258
- error: value["error"],
24259
- flag: FlagResponseDataToJSON(value["flag"]),
24260
- flag_id: value["flagId"],
24261
- flag_key: value["flagKey"],
24262
- id: value["id"],
24263
- reason: value["reason"],
24264
- req_company: value["reqCompany"],
24265
- req_user: value["reqUser"],
24266
- rule: RuleResponseDataToJSON(value["rule"]),
24267
- rule_id: value["ruleId"],
24268
- updated_at: value["updatedAt"].toISOString(),
24269
- user: UserResponseDataToJSON(value["user"]),
24270
- user_id: value["userId"],
24271
- value: value["value"]
24231
+ flag_type: value["flagType"],
24232
+ id: value["id"],
24233
+ key: value["key"],
24234
+ maintainer_id: value["maintainerId"],
24235
+ name: value["name"],
24236
+ updated_at: value["updatedAt"].toISOString()
24272
24237
  };
24273
24238
  }
24274
24239
 
@@ -24972,36 +24937,6 @@ function GetFeatureUsageByCompanyResponseToJSON(value) {
24972
24937
  };
24973
24938
  }
24974
24939
 
24975
- // src/api/models/GetFlagCheckResponse.ts
24976
- function instanceOfGetFlagCheckResponse(value) {
24977
- if (!("data" in value) || value["data"] === void 0)
24978
- return false;
24979
- if (!("params" in value) || value["params"] === void 0)
24980
- return false;
24981
- return true;
24982
- }
24983
- function GetFlagCheckResponseFromJSON(json) {
24984
- return GetFlagCheckResponseFromJSONTyped(json, false);
24985
- }
24986
- function GetFlagCheckResponseFromJSONTyped(json, ignoreDiscriminator) {
24987
- if (json == null) {
24988
- return json;
24989
- }
24990
- return {
24991
- data: FlagCheckLogDetailResponseDataFromJSON(json["data"]),
24992
- params: json["params"]
24993
- };
24994
- }
24995
- function GetFlagCheckResponseToJSON(value) {
24996
- if (value == null) {
24997
- return value;
24998
- }
24999
- return {
25000
- data: FlagCheckLogDetailResponseDataToJSON(value["data"]),
25001
- params: value["params"]
25002
- };
25003
- }
25004
-
25005
24940
  // src/api/models/GetFlagResponse.ts
25006
24941
  function instanceOfGetFlagResponse(value) {
25007
24942
  if (!("data" in value) || value["data"] === void 0)
@@ -25032,68 +24967,6 @@ function GetFlagResponseToJSON(value) {
25032
24967
  };
25033
24968
  }
25034
24969
 
25035
- // src/api/models/GetLatestFlagChecksParams.ts
25036
- function instanceOfGetLatestFlagChecksParams(value) {
25037
- return true;
25038
- }
25039
- function GetLatestFlagChecksParamsFromJSON(json) {
25040
- return GetLatestFlagChecksParamsFromJSONTyped(json, false);
25041
- }
25042
- function GetLatestFlagChecksParamsFromJSONTyped(json, ignoreDiscriminator) {
25043
- if (json == null) {
25044
- return json;
25045
- }
25046
- return {
25047
- flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
25048
- flagIds: json["flag_ids"] == null ? void 0 : json["flag_ids"],
25049
- id: json["id"] == null ? void 0 : json["id"],
25050
- limit: json["limit"] == null ? void 0 : json["limit"],
25051
- offset: json["offset"] == null ? void 0 : json["offset"]
25052
- };
25053
- }
25054
- function GetLatestFlagChecksParamsToJSON(value) {
25055
- if (value == null) {
25056
- return value;
25057
- }
25058
- return {
25059
- flag_id: value["flagId"],
25060
- flag_ids: value["flagIds"],
25061
- id: value["id"],
25062
- limit: value["limit"],
25063
- offset: value["offset"]
25064
- };
25065
- }
25066
-
25067
- // src/api/models/GetLatestFlagChecksResponse.ts
25068
- function instanceOfGetLatestFlagChecksResponse(value) {
25069
- if (!("data" in value) || value["data"] === void 0)
25070
- return false;
25071
- if (!("params" in value) || value["params"] === void 0)
25072
- return false;
25073
- return true;
25074
- }
25075
- function GetLatestFlagChecksResponseFromJSON(json) {
25076
- return GetLatestFlagChecksResponseFromJSONTyped(json, false);
25077
- }
25078
- function GetLatestFlagChecksResponseFromJSONTyped(json, ignoreDiscriminator) {
25079
- if (json == null) {
25080
- return json;
25081
- }
25082
- return {
25083
- data: json["data"].map(FlagCheckLogResponseDataFromJSON),
25084
- params: GetLatestFlagChecksParamsFromJSON(json["params"])
25085
- };
25086
- }
25087
- function GetLatestFlagChecksResponseToJSON(value) {
25088
- if (value == null) {
25089
- return value;
25090
- }
25091
- return {
25092
- data: value["data"].map(FlagCheckLogResponseDataToJSON),
25093
- params: GetLatestFlagChecksParamsToJSON(value["params"])
25094
- };
25095
- }
25096
-
25097
24970
  // src/api/models/GetOrCreateCompanyMembershipRequestBody.ts
25098
24971
  function instanceOfGetOrCreateCompanyMembershipRequestBody(value) {
25099
24972
  if (!("companyId" in value) || value["companyId"] === void 0)
@@ -25806,6 +25679,72 @@ function ListAudienceUsersResponseToJSON(value) {
25806
25679
  };
25807
25680
  }
25808
25681
 
25682
+ // src/api/models/ListBillingProductsParams.ts
25683
+ function instanceOfListBillingProductsParams(value) {
25684
+ return true;
25685
+ }
25686
+ function ListBillingProductsParamsFromJSON(json) {
25687
+ return ListBillingProductsParamsFromJSONTyped(json, false);
25688
+ }
25689
+ function ListBillingProductsParamsFromJSONTyped(json, ignoreDiscriminator) {
25690
+ if (json == null) {
25691
+ return json;
25692
+ }
25693
+ return {
25694
+ ids: json["ids"] == null ? void 0 : json["ids"],
25695
+ limit: json["limit"] == null ? void 0 : json["limit"],
25696
+ name: json["name"] == null ? void 0 : json["name"],
25697
+ offset: json["offset"] == null ? void 0 : json["offset"],
25698
+ q: json["q"] == null ? void 0 : json["q"]
25699
+ };
25700
+ }
25701
+ function ListBillingProductsParamsToJSON(value) {
25702
+ if (value == null) {
25703
+ return value;
25704
+ }
25705
+ return {
25706
+ ids: value["ids"],
25707
+ limit: value["limit"],
25708
+ name: value["name"],
25709
+ offset: value["offset"],
25710
+ q: value["q"]
25711
+ };
25712
+ }
25713
+
25714
+ // src/api/models/ListBillingProductsResponse.ts
25715
+ function instanceOfListBillingProductsResponse(value) {
25716
+ if (!("data" in value) || value["data"] === void 0)
25717
+ return false;
25718
+ if (!("params" in value) || value["params"] === void 0)
25719
+ return false;
25720
+ return true;
25721
+ }
25722
+ function ListBillingProductsResponseFromJSON(json) {
25723
+ return ListBillingProductsResponseFromJSONTyped(json, false);
25724
+ }
25725
+ function ListBillingProductsResponseFromJSONTyped(json, ignoreDiscriminator) {
25726
+ if (json == null) {
25727
+ return json;
25728
+ }
25729
+ return {
25730
+ data: json["data"].map(
25731
+ BillingProductDetailResponseDataFromJSON
25732
+ ),
25733
+ params: ListBillingProductsParamsFromJSON(json["params"])
25734
+ };
25735
+ }
25736
+ function ListBillingProductsResponseToJSON(value) {
25737
+ if (value == null) {
25738
+ return value;
25739
+ }
25740
+ return {
25741
+ data: value["data"].map(
25742
+ BillingProductDetailResponseDataToJSON
25743
+ ),
25744
+ params: ListBillingProductsParamsToJSON(value["params"])
25745
+ };
25746
+ }
25747
+
25809
25748
  // src/api/models/ListCompaniesParams.ts
25810
25749
  function instanceOfListCompaniesParams(value) {
25811
25750
  return true;
@@ -26468,6 +26407,8 @@ function ListEventsParamsFromJSONTyped(json, ignoreDiscriminator) {
26468
26407
  return {
26469
26408
  companyId: json["company_id"] == null ? void 0 : json["company_id"],
26470
26409
  eventSubtype: json["event_subtype"] == null ? void 0 : json["event_subtype"],
26410
+ eventTypes: json["event_types"] == null ? void 0 : json["event_types"],
26411
+ flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
26471
26412
  limit: json["limit"] == null ? void 0 : json["limit"],
26472
26413
  offset: json["offset"] == null ? void 0 : json["offset"],
26473
26414
  userId: json["user_id"] == null ? void 0 : json["user_id"]
@@ -26480,6 +26421,8 @@ function ListEventsParamsToJSON(value) {
26480
26421
  return {
26481
26422
  company_id: value["companyId"],
26482
26423
  event_subtype: value["eventSubtype"],
26424
+ event_types: value["eventTypes"],
26425
+ flag_id: value["flagId"],
26483
26426
  limit: value["limit"],
26484
26427
  offset: value["offset"],
26485
26428
  user_id: value["userId"]
@@ -26768,72 +26711,6 @@ function ListFeaturesResponseToJSON(value) {
26768
26711
  };
26769
26712
  }
26770
26713
 
26771
- // src/api/models/ListFlagChecksParams.ts
26772
- function instanceOfListFlagChecksParams(value) {
26773
- return true;
26774
- }
26775
- function ListFlagChecksParamsFromJSON(json) {
26776
- return ListFlagChecksParamsFromJSONTyped(json, false);
26777
- }
26778
- function ListFlagChecksParamsFromJSONTyped(json, ignoreDiscriminator) {
26779
- if (json == null) {
26780
- return json;
26781
- }
26782
- return {
26783
- flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
26784
- flagIds: json["flag_ids"] == null ? void 0 : json["flag_ids"],
26785
- id: json["id"] == null ? void 0 : json["id"],
26786
- limit: json["limit"] == null ? void 0 : json["limit"],
26787
- offset: json["offset"] == null ? void 0 : json["offset"]
26788
- };
26789
- }
26790
- function ListFlagChecksParamsToJSON(value) {
26791
- if (value == null) {
26792
- return value;
26793
- }
26794
- return {
26795
- flag_id: value["flagId"],
26796
- flag_ids: value["flagIds"],
26797
- id: value["id"],
26798
- limit: value["limit"],
26799
- offset: value["offset"]
26800
- };
26801
- }
26802
-
26803
- // src/api/models/ListFlagChecksResponse.ts
26804
- function instanceOfListFlagChecksResponse(value) {
26805
- if (!("data" in value) || value["data"] === void 0)
26806
- return false;
26807
- if (!("params" in value) || value["params"] === void 0)
26808
- return false;
26809
- return true;
26810
- }
26811
- function ListFlagChecksResponseFromJSON(json) {
26812
- return ListFlagChecksResponseFromJSONTyped(json, false);
26813
- }
26814
- function ListFlagChecksResponseFromJSONTyped(json, ignoreDiscriminator) {
26815
- if (json == null) {
26816
- return json;
26817
- }
26818
- return {
26819
- data: json["data"].map(
26820
- FlagCheckLogDetailResponseDataFromJSON
26821
- ),
26822
- params: ListFlagChecksParamsFromJSON(json["params"])
26823
- };
26824
- }
26825
- function ListFlagChecksResponseToJSON(value) {
26826
- if (value == null) {
26827
- return value;
26828
- }
26829
- return {
26830
- data: value["data"].map(
26831
- FlagCheckLogDetailResponseDataToJSON
26832
- ),
26833
- params: ListFlagChecksParamsToJSON(value["params"])
26834
- };
26835
- }
26836
-
26837
26714
  // src/api/models/ListFlagsParams.ts
26838
26715
  function instanceOfListFlagsParams(value) {
26839
26716
  return true;
@@ -27150,14 +27027,14 @@ function ListPlansResponseToJSON(value) {
27150
27027
  };
27151
27028
  }
27152
27029
 
27153
- // src/api/models/ListProductsParams.ts
27154
- function instanceOfListProductsParams(value) {
27030
+ // src/api/models/ListProductPricesParams.ts
27031
+ function instanceOfListProductPricesParams(value) {
27155
27032
  return true;
27156
27033
  }
27157
- function ListProductsParamsFromJSON(json) {
27158
- return ListProductsParamsFromJSONTyped(json, false);
27034
+ function ListProductPricesParamsFromJSON(json) {
27035
+ return ListProductPricesParamsFromJSONTyped(json, false);
27159
27036
  }
27160
- function ListProductsParamsFromJSONTyped(json, ignoreDiscriminator) {
27037
+ function ListProductPricesParamsFromJSONTyped(json, ignoreDiscriminator) {
27161
27038
  if (json == null) {
27162
27039
  return json;
27163
27040
  }
@@ -27169,7 +27046,7 @@ function ListProductsParamsFromJSONTyped(json, ignoreDiscriminator) {
27169
27046
  q: json["q"] == null ? void 0 : json["q"]
27170
27047
  };
27171
27048
  }
27172
- function ListProductsParamsToJSON(value) {
27049
+ function ListProductPricesParamsToJSON(value) {
27173
27050
  if (value == null) {
27174
27051
  return value;
27175
27052
  }
@@ -27182,33 +27059,33 @@ function ListProductsParamsToJSON(value) {
27182
27059
  };
27183
27060
  }
27184
27061
 
27185
- // src/api/models/ListProductsResponse.ts
27186
- function instanceOfListProductsResponse(value) {
27062
+ // src/api/models/ListProductPricesResponse.ts
27063
+ function instanceOfListProductPricesResponse(value) {
27187
27064
  if (!("data" in value) || value["data"] === void 0)
27188
27065
  return false;
27189
27066
  if (!("params" in value) || value["params"] === void 0)
27190
27067
  return false;
27191
27068
  return true;
27192
27069
  }
27193
- function ListProductsResponseFromJSON(json) {
27194
- return ListProductsResponseFromJSONTyped(json, false);
27070
+ function ListProductPricesResponseFromJSON(json) {
27071
+ return ListProductPricesResponseFromJSONTyped(json, false);
27195
27072
  }
27196
- function ListProductsResponseFromJSONTyped(json, ignoreDiscriminator) {
27073
+ function ListProductPricesResponseFromJSONTyped(json, ignoreDiscriminator) {
27197
27074
  if (json == null) {
27198
27075
  return json;
27199
27076
  }
27200
27077
  return {
27201
- data: json["data"].map(BillingProductResponseDataFromJSON),
27202
- params: ListProductsParamsFromJSON(json["params"])
27078
+ data: json["data"].map(BillingPriceResponseDataFromJSON),
27079
+ params: ListProductPricesParamsFromJSON(json["params"])
27203
27080
  };
27204
27081
  }
27205
- function ListProductsResponseToJSON(value) {
27082
+ function ListProductPricesResponseToJSON(value) {
27206
27083
  if (value == null) {
27207
27084
  return value;
27208
27085
  }
27209
27086
  return {
27210
- data: value["data"].map(BillingProductResponseDataToJSON),
27211
- params: ListProductsParamsToJSON(value["params"])
27087
+ data: value["data"].map(BillingPriceResponseDataToJSON),
27088
+ params: ListProductPricesParamsToJSON(value["params"])
27212
27089
  };
27213
27090
  }
27214
27091
 
@@ -27714,6 +27591,64 @@ function RuleConditionResponseDataToJSON(value) {
27714
27591
  };
27715
27592
  }
27716
27593
 
27594
+ // src/api/models/RuleResponseData.ts
27595
+ function instanceOfRuleResponseData(value) {
27596
+ if (!("createdAt" in value) || value["createdAt"] === void 0)
27597
+ return false;
27598
+ if (!("environmentId" in value) || value["environmentId"] === void 0)
27599
+ return false;
27600
+ if (!("id" in value) || value["id"] === void 0)
27601
+ return false;
27602
+ if (!("name" in value) || value["name"] === void 0)
27603
+ return false;
27604
+ if (!("priority" in value) || value["priority"] === void 0)
27605
+ return false;
27606
+ if (!("ruleType" in value) || value["ruleType"] === void 0)
27607
+ return false;
27608
+ if (!("updatedAt" in value) || value["updatedAt"] === void 0)
27609
+ return false;
27610
+ if (!("value" in value) || value["value"] === void 0)
27611
+ return false;
27612
+ return true;
27613
+ }
27614
+ function RuleResponseDataFromJSON(json) {
27615
+ return RuleResponseDataFromJSONTyped(json, false);
27616
+ }
27617
+ function RuleResponseDataFromJSONTyped(json, ignoreDiscriminator) {
27618
+ if (json == null) {
27619
+ return json;
27620
+ }
27621
+ return {
27622
+ createdAt: new Date(json["created_at"]),
27623
+ environmentId: json["environment_id"],
27624
+ flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
27625
+ id: json["id"],
27626
+ name: json["name"],
27627
+ planId: json["plan_id"] == null ? void 0 : json["plan_id"],
27628
+ priority: json["priority"],
27629
+ ruleType: json["rule_type"],
27630
+ updatedAt: new Date(json["updated_at"]),
27631
+ value: json["value"]
27632
+ };
27633
+ }
27634
+ function RuleResponseDataToJSON(value) {
27635
+ if (value == null) {
27636
+ return value;
27637
+ }
27638
+ return {
27639
+ created_at: value["createdAt"].toISOString(),
27640
+ environment_id: value["environmentId"],
27641
+ flag_id: value["flagId"],
27642
+ id: value["id"],
27643
+ name: value["name"],
27644
+ plan_id: value["planId"],
27645
+ priority: value["priority"],
27646
+ rule_type: value["ruleType"],
27647
+ updated_at: value["updatedAt"].toISOString(),
27648
+ value: value["value"]
27649
+ };
27650
+ }
27651
+
27717
27652
  // src/api/models/RulesDetailResponseData.ts
27718
27653
  function instanceOfRulesDetailResponseData(value) {
27719
27654
  if (!("rules" in value) || value["rules"] === void 0)
@@ -28207,7 +28142,9 @@ function UpdateFeatureRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
28207
28142
  eventSubtype: json["event_subtype"] == null ? void 0 : json["event_subtype"],
28208
28143
  featureType: json["feature_type"] == null ? void 0 : json["feature_type"],
28209
28144
  flag: json["flag"] == null ? void 0 : CreateOrUpdateFlagRequestBodyFromJSON(json["flag"]),
28145
+ icon: json["icon"] == null ? void 0 : json["icon"],
28210
28146
  lifecyclePhase: json["lifecycle_phase"] == null ? void 0 : json["lifecycle_phase"],
28147
+ maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
28211
28148
  name: json["name"] == null ? void 0 : json["name"],
28212
28149
  traitId: json["trait_id"] == null ? void 0 : json["trait_id"]
28213
28150
  };
@@ -28221,7 +28158,9 @@ function UpdateFeatureRequestBodyToJSON(value) {
28221
28158
  event_subtype: value["eventSubtype"],
28222
28159
  feature_type: value["featureType"],
28223
28160
  flag: CreateOrUpdateFlagRequestBodyToJSON(value["flag"]),
28161
+ icon: value["icon"],
28224
28162
  lifecycle_phase: value["lifecyclePhase"],
28163
+ maintainer_id: value["maintainerId"],
28225
28164
  name: value["name"],
28226
28165
  trait_id: value["traitId"]
28227
28166
  };
@@ -28448,6 +28387,7 @@ function UpdatePlanRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
28448
28387
  return {
28449
28388
  audienceType: json["audience_type"],
28450
28389
  description: json["description"] == null ? void 0 : json["description"],
28390
+ icon: json["icon"] == null ? void 0 : json["icon"],
28451
28391
  name: json["name"],
28452
28392
  planType: json["plan_type"] == null ? void 0 : json["plan_type"]
28453
28393
  };
@@ -28459,6 +28399,7 @@ function UpdatePlanRequestBodyToJSON(value) {
28459
28399
  return {
28460
28400
  audience_type: value["audienceType"],
28461
28401
  description: value["description"],
28402
+ icon: value["icon"],
28462
28403
  name: value["name"],
28463
28404
  plan_type: value["planType"]
28464
28405
  };
@@ -28659,51 +28600,81 @@ function instanceOfUpdateWebhookResponse(value) {
28659
28600
  function UpdateWebhookResponseFromJSON(json) {
28660
28601
  return UpdateWebhookResponseFromJSONTyped(json, false);
28661
28602
  }
28662
- function UpdateWebhookResponseFromJSONTyped(json, ignoreDiscriminator) {
28603
+ function UpdateWebhookResponseFromJSONTyped(json, ignoreDiscriminator) {
28604
+ if (json == null) {
28605
+ return json;
28606
+ }
28607
+ return {
28608
+ data: WebhookResponseDataFromJSON(json["data"]),
28609
+ params: json["params"]
28610
+ };
28611
+ }
28612
+ function UpdateWebhookResponseToJSON(value) {
28613
+ if (value == null) {
28614
+ return value;
28615
+ }
28616
+ return {
28617
+ data: WebhookResponseDataToJSON(value["data"]),
28618
+ params: value["params"]
28619
+ };
28620
+ }
28621
+
28622
+ // src/api/models/UpsertBillingCustomerResponse.ts
28623
+ function instanceOfUpsertBillingCustomerResponse(value) {
28624
+ if (!("data" in value) || value["data"] === void 0)
28625
+ return false;
28626
+ if (!("params" in value) || value["params"] === void 0)
28627
+ return false;
28628
+ return true;
28629
+ }
28630
+ function UpsertBillingCustomerResponseFromJSON(json) {
28631
+ return UpsertBillingCustomerResponseFromJSONTyped(json, false);
28632
+ }
28633
+ function UpsertBillingCustomerResponseFromJSONTyped(json, ignoreDiscriminator) {
28663
28634
  if (json == null) {
28664
28635
  return json;
28665
28636
  }
28666
28637
  return {
28667
- data: WebhookResponseDataFromJSON(json["data"]),
28638
+ data: BillingCustomerResponseDataFromJSON(json["data"]),
28668
28639
  params: json["params"]
28669
28640
  };
28670
28641
  }
28671
- function UpdateWebhookResponseToJSON(value) {
28642
+ function UpsertBillingCustomerResponseToJSON(value) {
28672
28643
  if (value == null) {
28673
28644
  return value;
28674
28645
  }
28675
28646
  return {
28676
- data: WebhookResponseDataToJSON(value["data"]),
28647
+ data: BillingCustomerResponseDataToJSON(value["data"]),
28677
28648
  params: value["params"]
28678
28649
  };
28679
28650
  }
28680
28651
 
28681
- // src/api/models/UpsertBillingCustomerResponse.ts
28682
- function instanceOfUpsertBillingCustomerResponse(value) {
28652
+ // src/api/models/UpsertBillingPriceResponse.ts
28653
+ function instanceOfUpsertBillingPriceResponse(value) {
28683
28654
  if (!("data" in value) || value["data"] === void 0)
28684
28655
  return false;
28685
28656
  if (!("params" in value) || value["params"] === void 0)
28686
28657
  return false;
28687
28658
  return true;
28688
28659
  }
28689
- function UpsertBillingCustomerResponseFromJSON(json) {
28690
- return UpsertBillingCustomerResponseFromJSONTyped(json, false);
28660
+ function UpsertBillingPriceResponseFromJSON(json) {
28661
+ return UpsertBillingPriceResponseFromJSONTyped(json, false);
28691
28662
  }
28692
- function UpsertBillingCustomerResponseFromJSONTyped(json, ignoreDiscriminator) {
28663
+ function UpsertBillingPriceResponseFromJSONTyped(json, ignoreDiscriminator) {
28693
28664
  if (json == null) {
28694
28665
  return json;
28695
28666
  }
28696
28667
  return {
28697
- data: BillingCustomerResponseDataFromJSON(json["data"]),
28668
+ data: BillingPriceResponseDataFromJSON(json["data"]),
28698
28669
  params: json["params"]
28699
28670
  };
28700
28671
  }
28701
- function UpsertBillingCustomerResponseToJSON(value) {
28672
+ function UpsertBillingPriceResponseToJSON(value) {
28702
28673
  if (value == null) {
28703
28674
  return value;
28704
28675
  }
28705
28676
  return {
28706
- data: BillingCustomerResponseDataToJSON(value["data"]),
28677
+ data: BillingPriceResponseDataToJSON(value["data"]),
28707
28678
  params: value["params"]
28708
28679
  };
28709
28680
  }
@@ -30038,6 +30009,56 @@ var BillingApi = class extends BaseAPI {
30038
30009
  );
30039
30010
  return await response.value();
30040
30011
  }
30012
+ /**
30013
+ * List billing products
30014
+ */
30015
+ async listBillingProductsRaw(requestParameters, initOverrides) {
30016
+ const queryParameters = {};
30017
+ if (requestParameters["ids"] != null) {
30018
+ queryParameters["ids"] = requestParameters["ids"];
30019
+ }
30020
+ if (requestParameters["name"] != null) {
30021
+ queryParameters["name"] = requestParameters["name"];
30022
+ }
30023
+ if (requestParameters["q"] != null) {
30024
+ queryParameters["q"] = requestParameters["q"];
30025
+ }
30026
+ if (requestParameters["limit"] != null) {
30027
+ queryParameters["limit"] = requestParameters["limit"];
30028
+ }
30029
+ if (requestParameters["offset"] != null) {
30030
+ queryParameters["offset"] = requestParameters["offset"];
30031
+ }
30032
+ const headerParameters = {};
30033
+ if (this.configuration && this.configuration.apiKey) {
30034
+ headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
30035
+ "X-Schematic-Api-Key"
30036
+ );
30037
+ }
30038
+ const response = await this.request(
30039
+ {
30040
+ path: `/billing/products`,
30041
+ method: "GET",
30042
+ headers: headerParameters,
30043
+ query: queryParameters
30044
+ },
30045
+ initOverrides
30046
+ );
30047
+ return new JSONApiResponse(
30048
+ response,
30049
+ (jsonValue) => ListBillingProductsResponseFromJSON(jsonValue)
30050
+ );
30051
+ }
30052
+ /**
30053
+ * List billing products
30054
+ */
30055
+ async listBillingProducts(requestParameters = {}, initOverrides) {
30056
+ const response = await this.listBillingProductsRaw(
30057
+ requestParameters,
30058
+ initOverrides
30059
+ );
30060
+ return await response.value();
30061
+ }
30041
30062
  /**
30042
30063
  * List customers
30043
30064
  */
@@ -30089,9 +30110,9 @@ var BillingApi = class extends BaseAPI {
30089
30110
  return await response.value();
30090
30111
  }
30091
30112
  /**
30092
- * List products
30113
+ * List product prices
30093
30114
  */
30094
- async listProductsRaw(requestParameters, initOverrides) {
30115
+ async listProductPricesRaw(requestParameters, initOverrides) {
30095
30116
  const queryParameters = {};
30096
30117
  if (requestParameters["ids"] != null) {
30097
30118
  queryParameters["ids"] = requestParameters["ids"];
@@ -30116,7 +30137,7 @@ var BillingApi = class extends BaseAPI {
30116
30137
  }
30117
30138
  const response = await this.request(
30118
30139
  {
30119
- path: `/billing/products`,
30140
+ path: `/billing/product/prices`,
30120
30141
  method: "GET",
30121
30142
  headers: headerParameters,
30122
30143
  query: queryParameters
@@ -30125,14 +30146,14 @@ var BillingApi = class extends BaseAPI {
30125
30146
  );
30126
30147
  return new JSONApiResponse(
30127
30148
  response,
30128
- (jsonValue) => ListProductsResponseFromJSON(jsonValue)
30149
+ (jsonValue) => ListProductPricesResponseFromJSON(jsonValue)
30129
30150
  );
30130
30151
  }
30131
30152
  /**
30132
- * List products
30153
+ * List product prices
30133
30154
  */
30134
- async listProducts(requestParameters = {}, initOverrides) {
30135
- const response = await this.listProductsRaw(
30155
+ async listProductPrices(requestParameters = {}, initOverrides) {
30156
+ const response = await this.listProductPricesRaw(
30136
30157
  requestParameters,
30137
30158
  initOverrides
30138
30159
  );
@@ -30183,6 +30204,51 @@ var BillingApi = class extends BaseAPI {
30183
30204
  );
30184
30205
  return await response.value();
30185
30206
  }
30207
+ /**
30208
+ * Upsert billing price
30209
+ */
30210
+ async upsertBillingPriceRaw(requestParameters, initOverrides) {
30211
+ if (requestParameters["createBillingPriceRequestBody"] == null) {
30212
+ throw new RequiredError(
30213
+ "createBillingPriceRequestBody",
30214
+ 'Required parameter "createBillingPriceRequestBody" was null or undefined when calling upsertBillingPrice().'
30215
+ );
30216
+ }
30217
+ const queryParameters = {};
30218
+ const headerParameters = {};
30219
+ headerParameters["Content-Type"] = "application/json";
30220
+ if (this.configuration && this.configuration.apiKey) {
30221
+ headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
30222
+ "X-Schematic-Api-Key"
30223
+ );
30224
+ }
30225
+ const response = await this.request(
30226
+ {
30227
+ path: `/billing/price/upsert`,
30228
+ method: "POST",
30229
+ headers: headerParameters,
30230
+ query: queryParameters,
30231
+ body: CreateBillingPriceRequestBodyToJSON(
30232
+ requestParameters["createBillingPriceRequestBody"]
30233
+ )
30234
+ },
30235
+ initOverrides
30236
+ );
30237
+ return new JSONApiResponse(
30238
+ response,
30239
+ (jsonValue) => UpsertBillingPriceResponseFromJSON(jsonValue)
30240
+ );
30241
+ }
30242
+ /**
30243
+ * Upsert billing price
30244
+ */
30245
+ async upsertBillingPrice(requestParameters, initOverrides) {
30246
+ const response = await this.upsertBillingPriceRaw(
30247
+ requestParameters,
30248
+ initOverrides
30249
+ );
30250
+ return await response.value();
30251
+ }
30186
30252
  /**
30187
30253
  * Upsert billing product
30188
30254
  */
@@ -33611,12 +33677,18 @@ var EventsApi = class extends BaseAPI {
33611
33677
  if (requestParameters["companyId"] != null) {
33612
33678
  queryParameters["company_id"] = requestParameters["companyId"];
33613
33679
  }
33614
- if (requestParameters["userId"] != null) {
33615
- queryParameters["user_id"] = requestParameters["userId"];
33616
- }
33617
33680
  if (requestParameters["eventSubtype"] != null) {
33618
33681
  queryParameters["event_subtype"] = requestParameters["eventSubtype"];
33619
33682
  }
33683
+ if (requestParameters["eventTypes"] != null) {
33684
+ queryParameters["event_types"] = requestParameters["eventTypes"];
33685
+ }
33686
+ if (requestParameters["flagId"] != null) {
33687
+ queryParameters["flag_id"] = requestParameters["flagId"];
33688
+ }
33689
+ if (requestParameters["userId"] != null) {
33690
+ queryParameters["user_id"] = requestParameters["userId"];
33691
+ }
33620
33692
  if (requestParameters["limit"] != null) {
33621
33693
  queryParameters["limit"] = requestParameters["limit"];
33622
33694
  }
@@ -33955,56 +34027,6 @@ var FeaturesApi = class extends BaseAPI {
33955
34027
  );
33956
34028
  return await response.value();
33957
34029
  }
33958
- /**
33959
- * Count flag checks
33960
- */
33961
- async countFlagChecksRaw(requestParameters, initOverrides) {
33962
- const queryParameters = {};
33963
- if (requestParameters["flagId"] != null) {
33964
- queryParameters["flag_id"] = requestParameters["flagId"];
33965
- }
33966
- if (requestParameters["flagIds"] != null) {
33967
- queryParameters["flag_ids"] = requestParameters["flagIds"];
33968
- }
33969
- if (requestParameters["id"] != null) {
33970
- queryParameters["id"] = requestParameters["id"];
33971
- }
33972
- if (requestParameters["limit"] != null) {
33973
- queryParameters["limit"] = requestParameters["limit"];
33974
- }
33975
- if (requestParameters["offset"] != null) {
33976
- queryParameters["offset"] = requestParameters["offset"];
33977
- }
33978
- const headerParameters = {};
33979
- if (this.configuration && this.configuration.apiKey) {
33980
- headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
33981
- "X-Schematic-Api-Key"
33982
- );
33983
- }
33984
- const response = await this.request(
33985
- {
33986
- path: `/flag-checks/count`,
33987
- method: "GET",
33988
- headers: headerParameters,
33989
- query: queryParameters
33990
- },
33991
- initOverrides
33992
- );
33993
- return new JSONApiResponse(
33994
- response,
33995
- (jsonValue) => CountFlagChecksResponseFromJSON(jsonValue)
33996
- );
33997
- }
33998
- /**
33999
- * Count flag checks
34000
- */
34001
- async countFlagChecks(requestParameters = {}, initOverrides) {
34002
- const response = await this.countFlagChecksRaw(
34003
- requestParameters,
34004
- initOverrides
34005
- );
34006
- return await response.value();
34007
- }
34008
34030
  /**
34009
34031
  * Count flags
34010
34032
  */
@@ -34306,100 +34328,6 @@ var FeaturesApi = class extends BaseAPI {
34306
34328
  const response = await this.getFlagRaw(requestParameters, initOverrides);
34307
34329
  return await response.value();
34308
34330
  }
34309
- /**
34310
- * Get flag check
34311
- */
34312
- async getFlagCheckRaw(requestParameters, initOverrides) {
34313
- if (requestParameters["flagCheckId"] == null) {
34314
- throw new RequiredError(
34315
- "flagCheckId",
34316
- 'Required parameter "flagCheckId" was null or undefined when calling getFlagCheck().'
34317
- );
34318
- }
34319
- const queryParameters = {};
34320
- const headerParameters = {};
34321
- if (this.configuration && this.configuration.apiKey) {
34322
- headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
34323
- "X-Schematic-Api-Key"
34324
- );
34325
- }
34326
- const response = await this.request(
34327
- {
34328
- path: `/flag-checks/{flag_check_id}`.replace(
34329
- `{${"flag_check_id"}}`,
34330
- encodeURIComponent(String(requestParameters["flagCheckId"]))
34331
- ),
34332
- method: "GET",
34333
- headers: headerParameters,
34334
- query: queryParameters
34335
- },
34336
- initOverrides
34337
- );
34338
- return new JSONApiResponse(
34339
- response,
34340
- (jsonValue) => GetFlagCheckResponseFromJSON(jsonValue)
34341
- );
34342
- }
34343
- /**
34344
- * Get flag check
34345
- */
34346
- async getFlagCheck(requestParameters, initOverrides) {
34347
- const response = await this.getFlagCheckRaw(
34348
- requestParameters,
34349
- initOverrides
34350
- );
34351
- return await response.value();
34352
- }
34353
- /**
34354
- * Get latest flag checks
34355
- */
34356
- async getLatestFlagChecksRaw(requestParameters, initOverrides) {
34357
- const queryParameters = {};
34358
- if (requestParameters["flagId"] != null) {
34359
- queryParameters["flag_id"] = requestParameters["flagId"];
34360
- }
34361
- if (requestParameters["flagIds"] != null) {
34362
- queryParameters["flag_ids"] = requestParameters["flagIds"];
34363
- }
34364
- if (requestParameters["id"] != null) {
34365
- queryParameters["id"] = requestParameters["id"];
34366
- }
34367
- if (requestParameters["limit"] != null) {
34368
- queryParameters["limit"] = requestParameters["limit"];
34369
- }
34370
- if (requestParameters["offset"] != null) {
34371
- queryParameters["offset"] = requestParameters["offset"];
34372
- }
34373
- const headerParameters = {};
34374
- if (this.configuration && this.configuration.apiKey) {
34375
- headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
34376
- "X-Schematic-Api-Key"
34377
- );
34378
- }
34379
- const response = await this.request(
34380
- {
34381
- path: `/flag-checks/latest`,
34382
- method: "GET",
34383
- headers: headerParameters,
34384
- query: queryParameters
34385
- },
34386
- initOverrides
34387
- );
34388
- return new JSONApiResponse(
34389
- response,
34390
- (jsonValue) => GetLatestFlagChecksResponseFromJSON(jsonValue)
34391
- );
34392
- }
34393
- /**
34394
- * Get latest flag checks
34395
- */
34396
- async getLatestFlagChecks(requestParameters = {}, initOverrides) {
34397
- const response = await this.getLatestFlagChecksRaw(
34398
- requestParameters,
34399
- initOverrides
34400
- );
34401
- return await response.value();
34402
- }
34403
34331
  /**
34404
34332
  * List audience companies
34405
34333
  */
@@ -34543,56 +34471,6 @@ var FeaturesApi = class extends BaseAPI {
34543
34471
  );
34544
34472
  return await response.value();
34545
34473
  }
34546
- /**
34547
- * List flag checks
34548
- */
34549
- async listFlagChecksRaw(requestParameters, initOverrides) {
34550
- const queryParameters = {};
34551
- if (requestParameters["flagId"] != null) {
34552
- queryParameters["flag_id"] = requestParameters["flagId"];
34553
- }
34554
- if (requestParameters["flagIds"] != null) {
34555
- queryParameters["flag_ids"] = requestParameters["flagIds"];
34556
- }
34557
- if (requestParameters["id"] != null) {
34558
- queryParameters["id"] = requestParameters["id"];
34559
- }
34560
- if (requestParameters["limit"] != null) {
34561
- queryParameters["limit"] = requestParameters["limit"];
34562
- }
34563
- if (requestParameters["offset"] != null) {
34564
- queryParameters["offset"] = requestParameters["offset"];
34565
- }
34566
- const headerParameters = {};
34567
- if (this.configuration && this.configuration.apiKey) {
34568
- headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
34569
- "X-Schematic-Api-Key"
34570
- );
34571
- }
34572
- const response = await this.request(
34573
- {
34574
- path: `/flag-checks`,
34575
- method: "GET",
34576
- headers: headerParameters,
34577
- query: queryParameters
34578
- },
34579
- initOverrides
34580
- );
34581
- return new JSONApiResponse(
34582
- response,
34583
- (jsonValue) => ListFlagChecksResponseFromJSON(jsonValue)
34584
- );
34585
- }
34586
- /**
34587
- * List flag checks
34588
- */
34589
- async listFlagChecks(requestParameters = {}, initOverrides) {
34590
- const response = await this.listFlagChecksRaw(
34591
- requestParameters,
34592
- initOverrides
34593
- );
34594
- return await response.value();
34595
- }
34596
34474
  /**
34597
34475
  * List flags
34598
34476
  */
@@ -35885,7 +35763,7 @@ var Schematic = class {
35885
35763
  constructor(apiKey, opts) {
35886
35764
  const { offline = false } = opts ?? {};
35887
35765
  const { basePath, flagDefaults = {} } = opts ?? {};
35888
- const version = "1.0.20";
35766
+ const version = "1.0.22";
35889
35767
  const headers = {
35890
35768
  "User-Agent": `schematic-typescript-node@v${version}`
35891
35769
  };
@@ -36037,6 +35915,12 @@ function init(apiKey, opts) {
36037
35915
  BillingCustomerWithSubscriptionsResponseDataFromJSON,
36038
35916
  BillingCustomerWithSubscriptionsResponseDataFromJSONTyped,
36039
35917
  BillingCustomerWithSubscriptionsResponseDataToJSON,
35918
+ BillingPriceResponseDataFromJSON,
35919
+ BillingPriceResponseDataFromJSONTyped,
35920
+ BillingPriceResponseDataToJSON,
35921
+ BillingProductDetailResponseDataFromJSON,
35922
+ BillingProductDetailResponseDataFromJSONTyped,
35923
+ BillingProductDetailResponseDataToJSON,
36040
35924
  BillingProductPlanResponseDataFromJSON,
36041
35925
  BillingProductPlanResponseDataFromJSONTyped,
36042
35926
  BillingProductPlanResponseDataToJSON,
@@ -36186,12 +36070,6 @@ function init(apiKey, opts) {
36186
36070
  CountFeaturesResponseFromJSON,
36187
36071
  CountFeaturesResponseFromJSONTyped,
36188
36072
  CountFeaturesResponseToJSON,
36189
- CountFlagChecksParamsFromJSON,
36190
- CountFlagChecksParamsFromJSONTyped,
36191
- CountFlagChecksParamsToJSON,
36192
- CountFlagChecksResponseFromJSON,
36193
- CountFlagChecksResponseFromJSONTyped,
36194
- CountFlagChecksResponseToJSON,
36195
36073
  CountFlagsParamsFromJSON,
36196
36074
  CountFlagsParamsFromJSONTyped,
36197
36075
  CountFlagsParamsToJSON,
@@ -36240,6 +36118,9 @@ function init(apiKey, opts) {
36240
36118
  CreateBillingCustomerRequestBodyFromJSON,
36241
36119
  CreateBillingCustomerRequestBodyFromJSONTyped,
36242
36120
  CreateBillingCustomerRequestBodyToJSON,
36121
+ CreateBillingPriceRequestBodyFromJSON,
36122
+ CreateBillingPriceRequestBodyFromJSONTyped,
36123
+ CreateBillingPriceRequestBodyToJSON,
36243
36124
  CreateBillingProductRequestBodyFromJSON,
36244
36125
  CreateBillingProductRequestBodyFromJSONTyped,
36245
36126
  CreateBillingProductRequestBodyToJSON,
@@ -36450,6 +36331,9 @@ function init(apiKey, opts) {
36450
36331
  EnvironmentResponseDataFromJSON,
36451
36332
  EnvironmentResponseDataFromJSONTyped,
36452
36333
  EnvironmentResponseDataToJSON,
36334
+ EventBodyFlagCheckFromJSON,
36335
+ EventBodyFlagCheckFromJSONTyped,
36336
+ EventBodyFlagCheckToJSON,
36453
36337
  EventBodyFromJSON,
36454
36338
  EventBodyFromJSONTyped,
36455
36339
  EventBodyIdentifyCompanyFromJSON,
@@ -36495,12 +36379,6 @@ function init(apiKey, opts) {
36495
36379
  FeatureUsageResponseDataToJSON,
36496
36380
  FeaturesApi,
36497
36381
  FetchError,
36498
- FlagCheckLogDetailResponseDataFromJSON,
36499
- FlagCheckLogDetailResponseDataFromJSONTyped,
36500
- FlagCheckLogDetailResponseDataToJSON,
36501
- FlagCheckLogResponseDataFromJSON,
36502
- FlagCheckLogResponseDataFromJSONTyped,
36503
- FlagCheckLogResponseDataToJSON,
36504
36382
  FlagDetailResponseDataFromJSON,
36505
36383
  FlagDetailResponseDataFromJSONTyped,
36506
36384
  FlagDetailResponseDataToJSON,
@@ -36570,18 +36448,9 @@ function init(apiKey, opts) {
36570
36448
  GetFeatureUsageByCompanyResponseFromJSON,
36571
36449
  GetFeatureUsageByCompanyResponseFromJSONTyped,
36572
36450
  GetFeatureUsageByCompanyResponseToJSON,
36573
- GetFlagCheckResponseFromJSON,
36574
- GetFlagCheckResponseFromJSONTyped,
36575
- GetFlagCheckResponseToJSON,
36576
36451
  GetFlagResponseFromJSON,
36577
36452
  GetFlagResponseFromJSONTyped,
36578
36453
  GetFlagResponseToJSON,
36579
- GetLatestFlagChecksParamsFromJSON,
36580
- GetLatestFlagChecksParamsFromJSONTyped,
36581
- GetLatestFlagChecksParamsToJSON,
36582
- GetLatestFlagChecksResponseFromJSON,
36583
- GetLatestFlagChecksResponseFromJSONTyped,
36584
- GetLatestFlagChecksResponseToJSON,
36585
36454
  GetOrCreateCompanyMembershipRequestBodyFromJSON,
36586
36455
  GetOrCreateCompanyMembershipRequestBodyFromJSONTyped,
36587
36456
  GetOrCreateCompanyMembershipRequestBodyToJSON,
@@ -36643,6 +36512,12 @@ function init(apiKey, opts) {
36643
36512
  ListAudienceUsersResponseFromJSON,
36644
36513
  ListAudienceUsersResponseFromJSONTyped,
36645
36514
  ListAudienceUsersResponseToJSON,
36515
+ ListBillingProductsParamsFromJSON,
36516
+ ListBillingProductsParamsFromJSONTyped,
36517
+ ListBillingProductsParamsToJSON,
36518
+ ListBillingProductsResponseFromJSON,
36519
+ ListBillingProductsResponseFromJSONTyped,
36520
+ ListBillingProductsResponseToJSON,
36646
36521
  ListCompaniesParamsFromJSON,
36647
36522
  ListCompaniesParamsFromJSONTyped,
36648
36523
  ListCompaniesParamsToJSON,
@@ -36739,12 +36614,6 @@ function init(apiKey, opts) {
36739
36614
  ListFeaturesResponseFromJSON,
36740
36615
  ListFeaturesResponseFromJSONTyped,
36741
36616
  ListFeaturesResponseToJSON,
36742
- ListFlagChecksParamsFromJSON,
36743
- ListFlagChecksParamsFromJSONTyped,
36744
- ListFlagChecksParamsToJSON,
36745
- ListFlagChecksResponseFromJSON,
36746
- ListFlagChecksResponseFromJSONTyped,
36747
- ListFlagChecksResponseToJSON,
36748
36617
  ListFlagsParamsFromJSON,
36749
36618
  ListFlagsParamsFromJSONTyped,
36750
36619
  ListFlagsParamsToJSON,
@@ -36769,12 +36638,12 @@ function init(apiKey, opts) {
36769
36638
  ListPlansResponseFromJSON,
36770
36639
  ListPlansResponseFromJSONTyped,
36771
36640
  ListPlansResponseToJSON,
36772
- ListProductsParamsFromJSON,
36773
- ListProductsParamsFromJSONTyped,
36774
- ListProductsParamsToJSON,
36775
- ListProductsResponseFromJSON,
36776
- ListProductsResponseFromJSONTyped,
36777
- ListProductsResponseToJSON,
36641
+ ListProductPricesParamsFromJSON,
36642
+ ListProductPricesParamsFromJSONTyped,
36643
+ ListProductPricesParamsToJSON,
36644
+ ListProductPricesResponseFromJSON,
36645
+ ListProductPricesResponseFromJSONTyped,
36646
+ ListProductPricesResponseToJSON,
36778
36647
  ListUsersParamsFromJSON,
36779
36648
  ListUsersParamsFromJSONTyped,
36780
36649
  ListUsersParamsToJSON,
@@ -36963,6 +36832,9 @@ function init(apiKey, opts) {
36963
36832
  UpsertBillingCustomerResponseFromJSON,
36964
36833
  UpsertBillingCustomerResponseFromJSONTyped,
36965
36834
  UpsertBillingCustomerResponseToJSON,
36835
+ UpsertBillingPriceResponseFromJSON,
36836
+ UpsertBillingPriceResponseFromJSONTyped,
36837
+ UpsertBillingPriceResponseToJSON,
36966
36838
  UpsertBillingProductPlanResponseFromJSON,
36967
36839
  UpsertBillingProductPlanResponseFromJSONTyped,
36968
36840
  UpsertBillingProductPlanResponseToJSON,
@@ -37039,6 +36911,8 @@ function init(apiKey, opts) {
37039
36911
  instanceOfBillingCustomerResponseData,
37040
36912
  instanceOfBillingCustomerSubscription,
37041
36913
  instanceOfBillingCustomerWithSubscriptionsResponseData,
36914
+ instanceOfBillingPriceResponseData,
36915
+ instanceOfBillingProductDetailResponseData,
37042
36916
  instanceOfBillingProductPlanResponseData,
37043
36917
  instanceOfBillingProductPricing,
37044
36918
  instanceOfBillingProductResponseData,
@@ -37085,8 +36959,6 @@ function init(apiKey, opts) {
37085
36959
  instanceOfCountFeatureUsersResponse,
37086
36960
  instanceOfCountFeaturesParams,
37087
36961
  instanceOfCountFeaturesResponse,
37088
- instanceOfCountFlagChecksParams,
37089
- instanceOfCountFlagChecksResponse,
37090
36962
  instanceOfCountFlagsParams,
37091
36963
  instanceOfCountFlagsResponse,
37092
36964
  instanceOfCountPlanEntitlementsParams,
@@ -37103,6 +36975,7 @@ function init(apiKey, opts) {
37103
36975
  instanceOfCreateApiKeyRequestBody,
37104
36976
  instanceOfCreateApiKeyResponse,
37105
36977
  instanceOfCreateBillingCustomerRequestBody,
36978
+ instanceOfCreateBillingPriceRequestBody,
37106
36979
  instanceOfCreateBillingProductRequestBody,
37107
36980
  instanceOfCreateBillingSubscriptionsRequestBody,
37108
36981
  instanceOfCreateCompanyOverrideRequestBody,
@@ -37166,6 +37039,7 @@ function init(apiKey, opts) {
37166
37039
  instanceOfEntityTraitValue,
37167
37040
  instanceOfEnvironmentDetailResponseData,
37168
37041
  instanceOfEnvironmentResponseData,
37042
+ instanceOfEventBodyFlagCheck,
37169
37043
  instanceOfEventBodyIdentify,
37170
37044
  instanceOfEventBodyIdentifyCompany,
37171
37045
  instanceOfEventBodyTrack,
@@ -37178,8 +37052,6 @@ function init(apiKey, opts) {
37178
37052
  instanceOfFeatureResponseData,
37179
37053
  instanceOfFeatureUsageDetailResponseData,
37180
37054
  instanceOfFeatureUsageResponseData,
37181
- instanceOfFlagCheckLogDetailResponseData,
37182
- instanceOfFlagCheckLogResponseData,
37183
37055
  instanceOfFlagDetailResponseData,
37184
37056
  instanceOfFlagResponseData,
37185
37057
  instanceOfGetActiveCompanySubscriptionParams,
@@ -37203,10 +37075,7 @@ function init(apiKey, opts) {
37203
37075
  instanceOfGetFeatureResponse,
37204
37076
  instanceOfGetFeatureUsageByCompanyParams,
37205
37077
  instanceOfGetFeatureUsageByCompanyResponse,
37206
- instanceOfGetFlagCheckResponse,
37207
37078
  instanceOfGetFlagResponse,
37208
- instanceOfGetLatestFlagChecksParams,
37209
- instanceOfGetLatestFlagChecksResponse,
37210
37079
  instanceOfGetOrCreateCompanyMembershipRequestBody,
37211
37080
  instanceOfGetOrCreateCompanyMembershipResponse,
37212
37081
  instanceOfGetOrCreateEntityTraitDefinitionResponse,
@@ -37227,6 +37096,8 @@ function init(apiKey, opts) {
37227
37096
  instanceOfListApiRequestsResponse,
37228
37097
  instanceOfListAudienceCompaniesResponse,
37229
37098
  instanceOfListAudienceUsersResponse,
37099
+ instanceOfListBillingProductsParams,
37100
+ instanceOfListBillingProductsResponse,
37230
37101
  instanceOfListCompaniesParams,
37231
37102
  instanceOfListCompaniesResponse,
37232
37103
  instanceOfListCompanyMembershipsParams,
@@ -37257,8 +37128,6 @@ function init(apiKey, opts) {
37257
37128
  instanceOfListFeatureUsersResponse,
37258
37129
  instanceOfListFeaturesParams,
37259
37130
  instanceOfListFeaturesResponse,
37260
- instanceOfListFlagChecksParams,
37261
- instanceOfListFlagChecksResponse,
37262
37131
  instanceOfListFlagsParams,
37263
37132
  instanceOfListFlagsResponse,
37264
37133
  instanceOfListMetricCountsParams,
@@ -37267,8 +37136,8 @@ function init(apiKey, opts) {
37267
37136
  instanceOfListPlanEntitlementsResponse,
37268
37137
  instanceOfListPlansParams,
37269
37138
  instanceOfListPlansResponse,
37270
- instanceOfListProductsParams,
37271
- instanceOfListProductsResponse,
37139
+ instanceOfListProductPricesParams,
37140
+ instanceOfListProductPricesResponse,
37272
37141
  instanceOfListUsersParams,
37273
37142
  instanceOfListUsersResponse,
37274
37143
  instanceOfListWebhookEventsParams,
@@ -37325,6 +37194,7 @@ function init(apiKey, opts) {
37325
37194
  instanceOfUpdateWebhookRequestBody,
37326
37195
  instanceOfUpdateWebhookResponse,
37327
37196
  instanceOfUpsertBillingCustomerResponse,
37197
+ instanceOfUpsertBillingPriceResponse,
37328
37198
  instanceOfUpsertBillingProductPlanResponse,
37329
37199
  instanceOfUpsertBillingProductRequestBody,
37330
37200
  instanceOfUpsertBillingProductResponse,