@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.
@@ -16661,6 +16661,112 @@ function BillingCustomerWithSubscriptionsResponseDataToJSON(value) {
16661
16661
  };
16662
16662
  }
16663
16663
 
16664
+ // src/api/models/BillingPriceResponseData.ts
16665
+ function instanceOfBillingPriceResponseData(value) {
16666
+ if (!("externalPriceId" in value) || value["externalPriceId"] === void 0)
16667
+ return false;
16668
+ if (!("id" in value) || value["id"] === void 0)
16669
+ return false;
16670
+ if (!("interval" in value) || value["interval"] === void 0)
16671
+ return false;
16672
+ if (!("price" in value) || value["price"] === void 0)
16673
+ return false;
16674
+ return true;
16675
+ }
16676
+ function BillingPriceResponseDataFromJSON(json) {
16677
+ return BillingPriceResponseDataFromJSONTyped(json, false);
16678
+ }
16679
+ function BillingPriceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
16680
+ if (json == null) {
16681
+ return json;
16682
+ }
16683
+ return {
16684
+ externalPriceId: json["external_price_id"],
16685
+ id: json["id"],
16686
+ interval: json["interval"],
16687
+ price: json["price"]
16688
+ };
16689
+ }
16690
+ function BillingPriceResponseDataToJSON(value) {
16691
+ if (value == null) {
16692
+ return value;
16693
+ }
16694
+ return {
16695
+ external_price_id: value["externalPriceId"],
16696
+ id: value["id"],
16697
+ interval: value["interval"],
16698
+ price: value["price"]
16699
+ };
16700
+ }
16701
+
16702
+ // src/api/models/BillingProductDetailResponseData.ts
16703
+ function instanceOfBillingProductDetailResponseData(value) {
16704
+ if (!("prices" in value) || value["prices"] === void 0)
16705
+ return false;
16706
+ if (!("accountId" in value) || value["accountId"] === void 0)
16707
+ return false;
16708
+ if (!("createdAt" in value) || value["createdAt"] === void 0)
16709
+ return false;
16710
+ if (!("currency" in value) || value["currency"] === void 0)
16711
+ return false;
16712
+ if (!("environmentId" in value) || value["environmentId"] === void 0)
16713
+ return false;
16714
+ if (!("externalId" in value) || value["externalId"] === void 0)
16715
+ return false;
16716
+ if (!("name" in value) || value["name"] === void 0)
16717
+ return false;
16718
+ if (!("price" in value) || value["price"] === void 0)
16719
+ return false;
16720
+ if (!("productId" in value) || value["productId"] === void 0)
16721
+ return false;
16722
+ if (!("quantity" in value) || value["quantity"] === void 0)
16723
+ return false;
16724
+ if (!("updatedAt" in value) || value["updatedAt"] === void 0)
16725
+ return false;
16726
+ return true;
16727
+ }
16728
+ function BillingProductDetailResponseDataFromJSON(json) {
16729
+ return BillingProductDetailResponseDataFromJSONTyped(json, false);
16730
+ }
16731
+ function BillingProductDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
16732
+ if (json == null) {
16733
+ return json;
16734
+ }
16735
+ return {
16736
+ prices: json["Prices"].map(
16737
+ BillingPriceResponseDataFromJSON
16738
+ ),
16739
+ accountId: json["account_id"],
16740
+ createdAt: new Date(json["created_at"]),
16741
+ currency: json["currency"],
16742
+ environmentId: json["environment_id"],
16743
+ externalId: json["external_id"],
16744
+ name: json["name"],
16745
+ price: json["price"],
16746
+ productId: json["product_id"],
16747
+ quantity: json["quantity"],
16748
+ updatedAt: new Date(json["updated_at"])
16749
+ };
16750
+ }
16751
+ function BillingProductDetailResponseDataToJSON(value) {
16752
+ if (value == null) {
16753
+ return value;
16754
+ }
16755
+ return {
16756
+ Prices: value["prices"].map(BillingPriceResponseDataToJSON),
16757
+ account_id: value["accountId"],
16758
+ created_at: value["createdAt"].toISOString(),
16759
+ currency: value["currency"],
16760
+ environment_id: value["environmentId"],
16761
+ external_id: value["externalId"],
16762
+ name: value["name"],
16763
+ price: value["price"],
16764
+ product_id: value["productId"],
16765
+ quantity: value["quantity"],
16766
+ updated_at: value["updatedAt"].toISOString()
16767
+ };
16768
+ }
16769
+
16664
16770
  // src/api/models/BillingProductPlanResponseData.ts
16665
16771
  function instanceOfBillingProductPlanResponseData(value) {
16666
16772
  if (!("accountId" in value) || value["accountId"] === void 0)
@@ -17141,6 +17247,7 @@ function PreviewObjectFromJSONTyped(json, ignoreDiscriminator) {
17141
17247
  return json;
17142
17248
  }
17143
17249
  return {
17250
+ description: json["description"] == null ? void 0 : json["description"],
17144
17251
  id: json["id"],
17145
17252
  imageUrl: json["image_url"] == null ? void 0 : json["image_url"],
17146
17253
  name: json["name"]
@@ -17151,6 +17258,7 @@ function PreviewObjectToJSON(value) {
17151
17258
  return value;
17152
17259
  }
17153
17260
  return {
17261
+ description: value["description"],
17154
17262
  id: value["id"],
17155
17263
  image_url: value["imageUrl"],
17156
17264
  name: value["name"]
@@ -17565,6 +17673,8 @@ function instanceOfFeatureResponseData(value) {
17565
17673
  return false;
17566
17674
  if (!("featureType" in value) || value["featureType"] === void 0)
17567
17675
  return false;
17676
+ if (!("icon" in value) || value["icon"] === void 0)
17677
+ return false;
17568
17678
  if (!("id" in value) || value["id"] === void 0)
17569
17679
  return false;
17570
17680
  if (!("name" in value) || value["name"] === void 0)
@@ -17585,8 +17695,10 @@ function FeatureResponseDataFromJSONTyped(json, ignoreDiscriminator) {
17585
17695
  description: json["description"],
17586
17696
  eventSubtype: json["event_subtype"] == null ? void 0 : json["event_subtype"],
17587
17697
  featureType: json["feature_type"],
17698
+ icon: json["icon"],
17588
17699
  id: json["id"],
17589
17700
  lifecyclePhase: json["lifecycle_phase"] == null ? void 0 : json["lifecycle_phase"],
17701
+ maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
17590
17702
  name: json["name"],
17591
17703
  traitId: json["trait_id"] == null ? void 0 : json["trait_id"],
17592
17704
  updatedAt: new Date(json["updated_at"])
@@ -17601,8 +17713,10 @@ function FeatureResponseDataToJSON(value) {
17601
17713
  description: value["description"],
17602
17714
  event_subtype: value["eventSubtype"],
17603
17715
  feature_type: value["featureType"],
17716
+ icon: value["icon"],
17604
17717
  id: value["id"],
17605
17718
  lifecycle_phase: value["lifecyclePhase"],
17719
+ maintainer_id: value["maintainerId"],
17606
17720
  name: value["name"],
17607
17721
  trait_id: value["traitId"],
17608
17722
  updated_at: value["updatedAt"].toISOString()
@@ -18109,74 +18223,6 @@ function RuleDetailResponseDataToJSON(value) {
18109
18223
  };
18110
18224
  }
18111
18225
 
18112
- // src/api/models/FlagCheckLogResponseData.ts
18113
- function instanceOfFlagCheckLogResponseData(value) {
18114
- if (!("checkStatus" in value) || value["checkStatus"] === void 0)
18115
- return false;
18116
- if (!("createdAt" in value) || value["createdAt"] === void 0)
18117
- return false;
18118
- if (!("environmentId" in value) || value["environmentId"] === void 0)
18119
- return false;
18120
- if (!("flagKey" in value) || value["flagKey"] === void 0)
18121
- return false;
18122
- if (!("id" in value) || value["id"] === void 0)
18123
- return false;
18124
- if (!("reason" in value) || value["reason"] === void 0)
18125
- return false;
18126
- if (!("updatedAt" in value) || value["updatedAt"] === void 0)
18127
- return false;
18128
- if (!("value" in value) || value["value"] === void 0)
18129
- return false;
18130
- return true;
18131
- }
18132
- function FlagCheckLogResponseDataFromJSON(json) {
18133
- return FlagCheckLogResponseDataFromJSONTyped(json, false);
18134
- }
18135
- function FlagCheckLogResponseDataFromJSONTyped(json, ignoreDiscriminator) {
18136
- if (json == null) {
18137
- return json;
18138
- }
18139
- return {
18140
- checkStatus: json["check_status"],
18141
- companyId: json["company_id"] == null ? void 0 : json["company_id"],
18142
- createdAt: new Date(json["created_at"]),
18143
- environmentId: json["environment_id"],
18144
- error: json["error"] == null ? void 0 : json["error"],
18145
- flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
18146
- flagKey: json["flag_key"],
18147
- id: json["id"],
18148
- reason: json["reason"],
18149
- reqCompany: json["req_company"] == null ? void 0 : json["req_company"],
18150
- reqUser: json["req_user"] == null ? void 0 : json["req_user"],
18151
- ruleId: json["rule_id"] == null ? void 0 : json["rule_id"],
18152
- updatedAt: new Date(json["updated_at"]),
18153
- userId: json["user_id"] == null ? void 0 : json["user_id"],
18154
- value: json["value"]
18155
- };
18156
- }
18157
- function FlagCheckLogResponseDataToJSON(value) {
18158
- if (value == null) {
18159
- return value;
18160
- }
18161
- return {
18162
- check_status: value["checkStatus"],
18163
- company_id: value["companyId"],
18164
- created_at: value["createdAt"].toISOString(),
18165
- environment_id: value["environmentId"],
18166
- error: value["error"],
18167
- flag_id: value["flagId"],
18168
- flag_key: value["flagKey"],
18169
- id: value["id"],
18170
- reason: value["reason"],
18171
- req_company: value["reqCompany"],
18172
- req_user: value["reqUser"],
18173
- rule_id: value["ruleId"],
18174
- updated_at: value["updatedAt"].toISOString(),
18175
- user_id: value["userId"],
18176
- value: value["value"]
18177
- };
18178
- }
18179
-
18180
18226
  // src/api/models/FlagDetailResponseData.ts
18181
18227
  function instanceOfFlagDetailResponseData(value) {
18182
18228
  if (!("createdAt" in value) || value["createdAt"] === void 0)
@@ -18215,7 +18261,8 @@ function FlagDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
18215
18261
  flagType: json["flag_type"],
18216
18262
  id: json["id"],
18217
18263
  key: json["key"],
18218
- latestCheck: json["latest_check"] == null ? void 0 : FlagCheckLogResponseDataFromJSON(json["latest_check"]),
18264
+ lastCheckedAt: json["last_checked_at"] == null ? void 0 : new Date(json["last_checked_at"]),
18265
+ maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
18219
18266
  name: json["name"],
18220
18267
  rules: json["rules"].map(RuleDetailResponseDataFromJSON),
18221
18268
  updatedAt: new Date(json["updated_at"])
@@ -18234,7 +18281,8 @@ function FlagDetailResponseDataToJSON(value) {
18234
18281
  flag_type: value["flagType"],
18235
18282
  id: value["id"],
18236
18283
  key: value["key"],
18237
- latest_check: FlagCheckLogResponseDataToJSON(value["latestCheck"]),
18284
+ last_checked_at: value["lastCheckedAt"] == null ? void 0 : value["lastCheckedAt"].toISOString(),
18285
+ maintainer_id: value["maintainerId"],
18238
18286
  name: value["name"],
18239
18287
  rules: value["rules"].map(RuleDetailResponseDataToJSON),
18240
18288
  updated_at: value["updatedAt"].toISOString()
@@ -18251,6 +18299,8 @@ function instanceOfFeatureDetailResponseData(value) {
18251
18299
  return false;
18252
18300
  if (!("flags" in value) || value["flags"] === void 0)
18253
18301
  return false;
18302
+ if (!("icon" in value) || value["icon"] === void 0)
18303
+ return false;
18254
18304
  if (!("id" in value) || value["id"] === void 0)
18255
18305
  return false;
18256
18306
  if (!("name" in value) || value["name"] === void 0)
@@ -18275,8 +18325,10 @@ function FeatureDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
18275
18325
  eventSummary: json["event_summary"] == null ? void 0 : EventSummaryResponseDataFromJSON(json["event_summary"]),
18276
18326
  featureType: json["feature_type"],
18277
18327
  flags: json["flags"].map(FlagDetailResponseDataFromJSON),
18328
+ icon: json["icon"],
18278
18329
  id: json["id"],
18279
18330
  lifecyclePhase: json["lifecycle_phase"] == null ? void 0 : json["lifecycle_phase"],
18331
+ maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
18280
18332
  name: json["name"],
18281
18333
  plans: json["plans"].map(PreviewObjectFromJSON),
18282
18334
  trait: json["trait"] == null ? void 0 : EntityTraitDefinitionResponseDataFromJSON(json["trait"]),
@@ -18295,8 +18347,10 @@ function FeatureDetailResponseDataToJSON(value) {
18295
18347
  event_summary: EventSummaryResponseDataToJSON(value["eventSummary"]),
18296
18348
  feature_type: value["featureType"],
18297
18349
  flags: value["flags"].map(FlagDetailResponseDataToJSON),
18350
+ icon: value["icon"],
18298
18351
  id: value["id"],
18299
18352
  lifecycle_phase: value["lifecyclePhase"],
18353
+ maintainer_id: value["maintainerId"],
18300
18354
  name: value["name"],
18301
18355
  plans: value["plans"].map(PreviewObjectToJSON),
18302
18356
  trait: EntityTraitDefinitionResponseDataToJSON(value["trait"]),
@@ -18313,6 +18367,8 @@ function instanceOfPlanResponseData(value) {
18313
18367
  return false;
18314
18368
  if (!("description" in value) || value["description"] === void 0)
18315
18369
  return false;
18370
+ if (!("icon" in value) || value["icon"] === void 0)
18371
+ return false;
18316
18372
  if (!("id" in value) || value["id"] === void 0)
18317
18373
  return false;
18318
18374
  if (!("name" in value) || value["name"] === void 0)
@@ -18334,6 +18390,7 @@ function PlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
18334
18390
  audienceType: json["audience_type"],
18335
18391
  createdAt: new Date(json["created_at"]),
18336
18392
  description: json["description"],
18393
+ icon: json["icon"],
18337
18394
  id: json["id"],
18338
18395
  name: json["name"],
18339
18396
  planType: json["plan_type"],
@@ -18348,6 +18405,7 @@ function PlanResponseDataToJSON(value) {
18348
18405
  audience_type: value["audienceType"],
18349
18406
  created_at: value["createdAt"].toISOString(),
18350
18407
  description: value["description"],
18408
+ icon: value["icon"],
18351
18409
  id: value["id"],
18352
18410
  name: value["name"],
18353
18411
  plan_type: value["planType"],
@@ -19317,68 +19375,6 @@ function CountFeaturesResponseToJSON(value) {
19317
19375
  };
19318
19376
  }
19319
19377
 
19320
- // src/api/models/CountFlagChecksParams.ts
19321
- function instanceOfCountFlagChecksParams(value) {
19322
- return true;
19323
- }
19324
- function CountFlagChecksParamsFromJSON(json) {
19325
- return CountFlagChecksParamsFromJSONTyped(json, false);
19326
- }
19327
- function CountFlagChecksParamsFromJSONTyped(json, ignoreDiscriminator) {
19328
- if (json == null) {
19329
- return json;
19330
- }
19331
- return {
19332
- flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
19333
- flagIds: json["flag_ids"] == null ? void 0 : json["flag_ids"],
19334
- id: json["id"] == null ? void 0 : json["id"],
19335
- limit: json["limit"] == null ? void 0 : json["limit"],
19336
- offset: json["offset"] == null ? void 0 : json["offset"]
19337
- };
19338
- }
19339
- function CountFlagChecksParamsToJSON(value) {
19340
- if (value == null) {
19341
- return value;
19342
- }
19343
- return {
19344
- flag_id: value["flagId"],
19345
- flag_ids: value["flagIds"],
19346
- id: value["id"],
19347
- limit: value["limit"],
19348
- offset: value["offset"]
19349
- };
19350
- }
19351
-
19352
- // src/api/models/CountFlagChecksResponse.ts
19353
- function instanceOfCountFlagChecksResponse(value) {
19354
- if (!("data" in value) || value["data"] === void 0)
19355
- return false;
19356
- if (!("params" in value) || value["params"] === void 0)
19357
- return false;
19358
- return true;
19359
- }
19360
- function CountFlagChecksResponseFromJSON(json) {
19361
- return CountFlagChecksResponseFromJSONTyped(json, false);
19362
- }
19363
- function CountFlagChecksResponseFromJSONTyped(json, ignoreDiscriminator) {
19364
- if (json == null) {
19365
- return json;
19366
- }
19367
- return {
19368
- data: CountResponseFromJSON(json["data"]),
19369
- params: CountFlagChecksParamsFromJSON(json["params"])
19370
- };
19371
- }
19372
- function CountFlagChecksResponseToJSON(value) {
19373
- if (value == null) {
19374
- return value;
19375
- }
19376
- return {
19377
- data: CountResponseToJSON(value["data"]),
19378
- params: CountFlagChecksParamsToJSON(value["params"])
19379
- };
19380
- }
19381
-
19382
19378
  // src/api/models/CountFlagsParams.ts
19383
19379
  function instanceOfCountFlagsParams(value) {
19384
19380
  return true;
@@ -19861,6 +19857,44 @@ function CreateBillingCustomerRequestBodyToJSON(value) {
19861
19857
  };
19862
19858
  }
19863
19859
 
19860
+ // src/api/models/CreateBillingPriceRequestBody.ts
19861
+ function instanceOfCreateBillingPriceRequestBody(value) {
19862
+ if (!("interval" in value) || value["interval"] === void 0)
19863
+ return false;
19864
+ if (!("price" in value) || value["price"] === void 0)
19865
+ return false;
19866
+ if (!("priceExternalId" in value) || value["priceExternalId"] === void 0)
19867
+ return false;
19868
+ if (!("productExternalId" in value) || value["productExternalId"] === void 0)
19869
+ return false;
19870
+ return true;
19871
+ }
19872
+ function CreateBillingPriceRequestBodyFromJSON(json) {
19873
+ return CreateBillingPriceRequestBodyFromJSONTyped(json, false);
19874
+ }
19875
+ function CreateBillingPriceRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
19876
+ if (json == null) {
19877
+ return json;
19878
+ }
19879
+ return {
19880
+ interval: json["interval"],
19881
+ price: json["price"],
19882
+ priceExternalId: json["price_external_id"],
19883
+ productExternalId: json["product_external_id"]
19884
+ };
19885
+ }
19886
+ function CreateBillingPriceRequestBodyToJSON(value) {
19887
+ if (value == null) {
19888
+ return value;
19889
+ }
19890
+ return {
19891
+ interval: value["interval"],
19892
+ price: value["price"],
19893
+ price_external_id: value["priceExternalId"],
19894
+ product_external_id: value["productExternalId"]
19895
+ };
19896
+ }
19897
+
19864
19898
  // src/api/models/CreateBillingProductRequestBody.ts
19865
19899
  function instanceOfCreateBillingProductRequestBody(value) {
19866
19900
  if (!("currency" in value) || value["currency"] === void 0)
@@ -20469,6 +20503,54 @@ function CreateEnvironmentResponseToJSON(value) {
20469
20503
  };
20470
20504
  }
20471
20505
 
20506
+ // src/api/models/EventBodyFlagCheck.ts
20507
+ function instanceOfEventBodyFlagCheck(value) {
20508
+ if (!("flagKey" in value) || value["flagKey"] === void 0)
20509
+ return false;
20510
+ if (!("reason" in value) || value["reason"] === void 0)
20511
+ return false;
20512
+ if (!("value" in value) || value["value"] === void 0)
20513
+ return false;
20514
+ return true;
20515
+ }
20516
+ function EventBodyFlagCheckFromJSON(json) {
20517
+ return EventBodyFlagCheckFromJSONTyped(json, false);
20518
+ }
20519
+ function EventBodyFlagCheckFromJSONTyped(json, ignoreDiscriminator) {
20520
+ if (json == null) {
20521
+ return json;
20522
+ }
20523
+ return {
20524
+ companyId: json["company_id"] == null ? void 0 : json["company_id"],
20525
+ error: json["error"] == null ? void 0 : json["error"],
20526
+ flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
20527
+ flagKey: json["flag_key"],
20528
+ reason: json["reason"],
20529
+ reqCompany: json["req_company"] == null ? void 0 : json["req_company"],
20530
+ reqUser: json["req_user"] == null ? void 0 : json["req_user"],
20531
+ ruleId: json["rule_id"] == null ? void 0 : json["rule_id"],
20532
+ userId: json["user_id"] == null ? void 0 : json["user_id"],
20533
+ value: json["value"]
20534
+ };
20535
+ }
20536
+ function EventBodyFlagCheckToJSON(value) {
20537
+ if (value == null) {
20538
+ return value;
20539
+ }
20540
+ return {
20541
+ company_id: value["companyId"],
20542
+ error: value["error"],
20543
+ flag_id: value["flagId"],
20544
+ flag_key: value["flagKey"],
20545
+ reason: value["reason"],
20546
+ req_company: value["reqCompany"],
20547
+ req_user: value["reqUser"],
20548
+ rule_id: value["ruleId"],
20549
+ user_id: value["userId"],
20550
+ value: value["value"]
20551
+ };
20552
+ }
20553
+
20472
20554
  // src/api/models/EventBodyIdentifyCompany.ts
20473
20555
  function instanceOfEventBodyIdentifyCompany(value) {
20474
20556
  if (!("keys" in value) || value["keys"] === void 0)
@@ -20571,6 +20653,9 @@ function EventBodyFromJSONTyped(json, ignoreDiscriminator) {
20571
20653
  if (json == null) {
20572
20654
  return json;
20573
20655
  }
20656
+ if (instanceOfEventBodyFlagCheck(json)) {
20657
+ return EventBodyFlagCheckFromJSONTyped(json, true);
20658
+ }
20574
20659
  if (instanceOfEventBodyIdentify(json)) {
20575
20660
  return EventBodyIdentifyFromJSONTyped(json, true);
20576
20661
  }
@@ -20583,6 +20668,9 @@ function EventBodyToJSON(value) {
20583
20668
  if (value == null) {
20584
20669
  return value;
20585
20670
  }
20671
+ if (instanceOfEventBodyFlagCheck(value)) {
20672
+ return EventBodyFlagCheckToJSON(value);
20673
+ }
20586
20674
  if (instanceOfEventBodyIdentify(value)) {
20587
20675
  return EventBodyIdentifyToJSON(value);
20588
20676
  }
@@ -20595,7 +20683,8 @@ function EventBodyToJSON(value) {
20595
20683
  // src/api/models/CreateEventRequestBody.ts
20596
20684
  var CreateEventRequestBodyEventTypeEnum = {
20597
20685
  Identify: "identify",
20598
- Track: "track"
20686
+ Track: "track",
20687
+ FlagCheck: "flag_check"
20599
20688
  };
20600
20689
  function instanceOfCreateEventRequestBody(value) {
20601
20690
  if (!("eventType" in value) || value["eventType"] === void 0)
@@ -20806,6 +20895,7 @@ function CreateOrUpdateFlagRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
20806
20895
  flagType: json["flag_type"],
20807
20896
  id: json["id"] == null ? void 0 : json["id"],
20808
20897
  key: json["key"],
20898
+ maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
20809
20899
  name: json["name"]
20810
20900
  };
20811
20901
  }
@@ -20820,6 +20910,7 @@ function CreateOrUpdateFlagRequestBodyToJSON(value) {
20820
20910
  flag_type: value["flagType"],
20821
20911
  id: value["id"],
20822
20912
  key: value["key"],
20913
+ maintainer_id: value["maintainerId"],
20823
20914
  name: value["name"]
20824
20915
  };
20825
20916
  }
@@ -20851,7 +20942,9 @@ function CreateFeatureRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
20851
20942
  eventSubtype: json["event_subtype"] == null ? void 0 : json["event_subtype"],
20852
20943
  featureType: json["feature_type"],
20853
20944
  flag: json["flag"] == null ? void 0 : CreateOrUpdateFlagRequestBodyFromJSON(json["flag"]),
20945
+ icon: json["icon"] == null ? void 0 : json["icon"],
20854
20946
  lifecyclePhase: json["lifecycle_phase"] == null ? void 0 : json["lifecycle_phase"],
20947
+ maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
20855
20948
  name: json["name"],
20856
20949
  traitId: json["trait_id"] == null ? void 0 : json["trait_id"]
20857
20950
  };
@@ -20865,7 +20958,9 @@ function CreateFeatureRequestBodyToJSON(value) {
20865
20958
  event_subtype: value["eventSubtype"],
20866
20959
  feature_type: value["featureType"],
20867
20960
  flag: CreateOrUpdateFlagRequestBodyToJSON(value["flag"]),
20961
+ icon: value["icon"],
20868
20962
  lifecycle_phase: value["lifecyclePhase"],
20963
+ maintainer_id: value["maintainerId"],
20869
20964
  name: value["name"],
20870
20965
  trait_id: value["traitId"]
20871
20966
  };
@@ -20928,6 +21023,7 @@ function CreateFlagRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
20928
21023
  featureId: json["feature_id"] == null ? void 0 : json["feature_id"],
20929
21024
  flagType: json["flag_type"],
20930
21025
  key: json["key"],
21026
+ maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
20931
21027
  name: json["name"]
20932
21028
  };
20933
21029
  }
@@ -20941,6 +21037,7 @@ function CreateFlagRequestBodyToJSON(value) {
20941
21037
  feature_id: value["featureId"],
20942
21038
  flag_type: value["flagType"],
20943
21039
  key: value["key"],
21040
+ maintainer_id: value["maintainerId"],
20944
21041
  name: value["name"]
20945
21042
  };
20946
21043
  }
@@ -21216,6 +21313,7 @@ function CreatePlanRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
21216
21313
  return {
21217
21314
  audienceType: json["audience_type"] == null ? void 0 : json["audience_type"],
21218
21315
  description: json["description"],
21316
+ icon: json["icon"] == null ? void 0 : json["icon"],
21219
21317
  name: json["name"],
21220
21318
  planType: json["plan_type"]
21221
21319
  };
@@ -21227,6 +21325,7 @@ function CreatePlanRequestBodyToJSON(value) {
21227
21325
  return {
21228
21326
  audience_type: value["audienceType"],
21229
21327
  description: value["description"],
21328
+ icon: value["icon"],
21230
21329
  name: value["name"],
21231
21330
  plan_type: value["planType"]
21232
21331
  };
@@ -21244,6 +21343,8 @@ function instanceOfPlanDetailResponseData(value) {
21244
21343
  return false;
21245
21344
  if (!("features" in value) || value["features"] === void 0)
21246
21345
  return false;
21346
+ if (!("icon" in value) || value["icon"] === void 0)
21347
+ return false;
21247
21348
  if (!("id" in value) || value["id"] === void 0)
21248
21349
  return false;
21249
21350
  if (!("name" in value) || value["name"] === void 0)
@@ -21263,12 +21364,14 @@ function PlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
21263
21364
  }
21264
21365
  return {
21265
21366
  audienceType: json["audience_type"],
21367
+ billingProduct: json["billing_product"] == null ? void 0 : BillingProductDetailResponseDataFromJSON(json["billing_product"]),
21266
21368
  companyCount: json["company_count"],
21267
21369
  createdAt: new Date(json["created_at"]),
21268
21370
  description: json["description"],
21269
21371
  features: json["features"].map(
21270
21372
  FeatureDetailResponseDataFromJSON
21271
21373
  ),
21374
+ icon: json["icon"],
21272
21375
  id: json["id"],
21273
21376
  name: json["name"],
21274
21377
  planType: json["plan_type"],
@@ -21281,12 +21384,16 @@ function PlanDetailResponseDataToJSON(value) {
21281
21384
  }
21282
21385
  return {
21283
21386
  audience_type: value["audienceType"],
21387
+ billing_product: BillingProductDetailResponseDataToJSON(
21388
+ value["billingProduct"]
21389
+ ),
21284
21390
  company_count: value["companyCount"],
21285
21391
  created_at: value["createdAt"].toISOString(),
21286
21392
  description: value["description"],
21287
21393
  features: value["features"].map(
21288
21394
  FeatureDetailResponseDataToJSON
21289
21395
  ),
21396
+ icon: value["icon"],
21290
21397
  id: value["id"],
21291
21398
  name: value["name"],
21292
21399
  plan_type: value["planType"],
@@ -22771,6 +22878,7 @@ function FlagResponseDataFromJSONTyped(json, ignoreDiscriminator) {
22771
22878
  flagType: json["flag_type"],
22772
22879
  id: json["id"],
22773
22880
  key: json["key"],
22881
+ maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
22774
22882
  name: json["name"],
22775
22883
  updatedAt: new Date(json["updated_at"])
22776
22884
  };
@@ -22784,147 +22892,12 @@ function FlagResponseDataToJSON(value) {
22784
22892
  default_value: value["defaultValue"],
22785
22893
  description: value["description"],
22786
22894
  feature_id: value["featureId"],
22787
- flag_type: value["flagType"],
22788
- id: value["id"],
22789
- key: value["key"],
22790
- name: value["name"],
22791
- updated_at: value["updatedAt"].toISOString()
22792
- };
22793
- }
22794
-
22795
- // src/api/models/RuleResponseData.ts
22796
- function instanceOfRuleResponseData(value) {
22797
- if (!("createdAt" in value) || value["createdAt"] === void 0)
22798
- return false;
22799
- if (!("environmentId" in value) || value["environmentId"] === void 0)
22800
- return false;
22801
- if (!("id" in value) || value["id"] === void 0)
22802
- return false;
22803
- if (!("name" in value) || value["name"] === void 0)
22804
- return false;
22805
- if (!("priority" in value) || value["priority"] === void 0)
22806
- return false;
22807
- if (!("ruleType" in value) || value["ruleType"] === void 0)
22808
- return false;
22809
- if (!("updatedAt" in value) || value["updatedAt"] === void 0)
22810
- return false;
22811
- if (!("value" in value) || value["value"] === void 0)
22812
- return false;
22813
- return true;
22814
- }
22815
- function RuleResponseDataFromJSON(json) {
22816
- return RuleResponseDataFromJSONTyped(json, false);
22817
- }
22818
- function RuleResponseDataFromJSONTyped(json, ignoreDiscriminator) {
22819
- if (json == null) {
22820
- return json;
22821
- }
22822
- return {
22823
- createdAt: new Date(json["created_at"]),
22824
- environmentId: json["environment_id"],
22825
- flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
22826
- id: json["id"],
22827
- name: json["name"],
22828
- planId: json["plan_id"] == null ? void 0 : json["plan_id"],
22829
- priority: json["priority"],
22830
- ruleType: json["rule_type"],
22831
- updatedAt: new Date(json["updated_at"]),
22832
- value: json["value"]
22833
- };
22834
- }
22835
- function RuleResponseDataToJSON(value) {
22836
- if (value == null) {
22837
- return value;
22838
- }
22839
- return {
22840
- created_at: value["createdAt"].toISOString(),
22841
- environment_id: value["environmentId"],
22842
- flag_id: value["flagId"],
22843
- id: value["id"],
22844
- name: value["name"],
22845
- plan_id: value["planId"],
22846
- priority: value["priority"],
22847
- rule_type: value["ruleType"],
22848
- updated_at: value["updatedAt"].toISOString(),
22849
- value: value["value"]
22850
- };
22851
- }
22852
-
22853
- // src/api/models/FlagCheckLogDetailResponseData.ts
22854
- function instanceOfFlagCheckLogDetailResponseData(value) {
22855
- if (!("checkStatus" in value) || value["checkStatus"] === void 0)
22856
- return false;
22857
- if (!("createdAt" in value) || value["createdAt"] === void 0)
22858
- return false;
22859
- if (!("environmentId" in value) || value["environmentId"] === void 0)
22860
- return false;
22861
- if (!("flagKey" in value) || value["flagKey"] === void 0)
22862
- return false;
22863
- if (!("id" in value) || value["id"] === void 0)
22864
- return false;
22865
- if (!("reason" in value) || value["reason"] === void 0)
22866
- return false;
22867
- if (!("updatedAt" in value) || value["updatedAt"] === void 0)
22868
- return false;
22869
- if (!("value" in value) || value["value"] === void 0)
22870
- return false;
22871
- return true;
22872
- }
22873
- function FlagCheckLogDetailResponseDataFromJSON(json) {
22874
- return FlagCheckLogDetailResponseDataFromJSONTyped(json, false);
22875
- }
22876
- function FlagCheckLogDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
22877
- if (json == null) {
22878
- return json;
22879
- }
22880
- return {
22881
- checkStatus: json["check_status"],
22882
- company: json["company"] == null ? void 0 : CompanyResponseDataFromJSON(json["company"]),
22883
- companyId: json["company_id"] == null ? void 0 : json["company_id"],
22884
- createdAt: new Date(json["created_at"]),
22885
- environment: json["environment"] == null ? void 0 : EnvironmentResponseDataFromJSON(json["environment"]),
22886
- environmentId: json["environment_id"],
22887
- error: json["error"] == null ? void 0 : json["error"],
22888
- flag: json["flag"] == null ? void 0 : FlagResponseDataFromJSON(json["flag"]),
22889
- flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
22890
- flagKey: json["flag_key"],
22891
- id: json["id"],
22892
- reason: json["reason"],
22893
- reqCompany: json["req_company"] == null ? void 0 : json["req_company"],
22894
- reqUser: json["req_user"] == null ? void 0 : json["req_user"],
22895
- rule: json["rule"] == null ? void 0 : RuleResponseDataFromJSON(json["rule"]),
22896
- ruleId: json["rule_id"] == null ? void 0 : json["rule_id"],
22897
- updatedAt: new Date(json["updated_at"]),
22898
- user: json["user"] == null ? void 0 : UserResponseDataFromJSON(json["user"]),
22899
- userId: json["user_id"] == null ? void 0 : json["user_id"],
22900
- value: json["value"]
22901
- };
22902
- }
22903
- function FlagCheckLogDetailResponseDataToJSON(value) {
22904
- if (value == null) {
22905
- return value;
22906
- }
22907
- return {
22908
- check_status: value["checkStatus"],
22909
- company: CompanyResponseDataToJSON(value["company"]),
22910
- company_id: value["companyId"],
22911
- created_at: value["createdAt"].toISOString(),
22912
- environment: EnvironmentResponseDataToJSON(value["environment"]),
22913
- environment_id: value["environmentId"],
22914
- error: value["error"],
22915
- flag: FlagResponseDataToJSON(value["flag"]),
22916
- flag_id: value["flagId"],
22917
- flag_key: value["flagKey"],
22918
- id: value["id"],
22919
- reason: value["reason"],
22920
- req_company: value["reqCompany"],
22921
- req_user: value["reqUser"],
22922
- rule: RuleResponseDataToJSON(value["rule"]),
22923
- rule_id: value["ruleId"],
22924
- updated_at: value["updatedAt"].toISOString(),
22925
- user: UserResponseDataToJSON(value["user"]),
22926
- user_id: value["userId"],
22927
- value: value["value"]
22895
+ flag_type: value["flagType"],
22896
+ id: value["id"],
22897
+ key: value["key"],
22898
+ maintainer_id: value["maintainerId"],
22899
+ name: value["name"],
22900
+ updated_at: value["updatedAt"].toISOString()
22928
22901
  };
22929
22902
  }
22930
22903
 
@@ -23628,36 +23601,6 @@ function GetFeatureUsageByCompanyResponseToJSON(value) {
23628
23601
  };
23629
23602
  }
23630
23603
 
23631
- // src/api/models/GetFlagCheckResponse.ts
23632
- function instanceOfGetFlagCheckResponse(value) {
23633
- if (!("data" in value) || value["data"] === void 0)
23634
- return false;
23635
- if (!("params" in value) || value["params"] === void 0)
23636
- return false;
23637
- return true;
23638
- }
23639
- function GetFlagCheckResponseFromJSON(json) {
23640
- return GetFlagCheckResponseFromJSONTyped(json, false);
23641
- }
23642
- function GetFlagCheckResponseFromJSONTyped(json, ignoreDiscriminator) {
23643
- if (json == null) {
23644
- return json;
23645
- }
23646
- return {
23647
- data: FlagCheckLogDetailResponseDataFromJSON(json["data"]),
23648
- params: json["params"]
23649
- };
23650
- }
23651
- function GetFlagCheckResponseToJSON(value) {
23652
- if (value == null) {
23653
- return value;
23654
- }
23655
- return {
23656
- data: FlagCheckLogDetailResponseDataToJSON(value["data"]),
23657
- params: value["params"]
23658
- };
23659
- }
23660
-
23661
23604
  // src/api/models/GetFlagResponse.ts
23662
23605
  function instanceOfGetFlagResponse(value) {
23663
23606
  if (!("data" in value) || value["data"] === void 0)
@@ -23688,68 +23631,6 @@ function GetFlagResponseToJSON(value) {
23688
23631
  };
23689
23632
  }
23690
23633
 
23691
- // src/api/models/GetLatestFlagChecksParams.ts
23692
- function instanceOfGetLatestFlagChecksParams(value) {
23693
- return true;
23694
- }
23695
- function GetLatestFlagChecksParamsFromJSON(json) {
23696
- return GetLatestFlagChecksParamsFromJSONTyped(json, false);
23697
- }
23698
- function GetLatestFlagChecksParamsFromJSONTyped(json, ignoreDiscriminator) {
23699
- if (json == null) {
23700
- return json;
23701
- }
23702
- return {
23703
- flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
23704
- flagIds: json["flag_ids"] == null ? void 0 : json["flag_ids"],
23705
- id: json["id"] == null ? void 0 : json["id"],
23706
- limit: json["limit"] == null ? void 0 : json["limit"],
23707
- offset: json["offset"] == null ? void 0 : json["offset"]
23708
- };
23709
- }
23710
- function GetLatestFlagChecksParamsToJSON(value) {
23711
- if (value == null) {
23712
- return value;
23713
- }
23714
- return {
23715
- flag_id: value["flagId"],
23716
- flag_ids: value["flagIds"],
23717
- id: value["id"],
23718
- limit: value["limit"],
23719
- offset: value["offset"]
23720
- };
23721
- }
23722
-
23723
- // src/api/models/GetLatestFlagChecksResponse.ts
23724
- function instanceOfGetLatestFlagChecksResponse(value) {
23725
- if (!("data" in value) || value["data"] === void 0)
23726
- return false;
23727
- if (!("params" in value) || value["params"] === void 0)
23728
- return false;
23729
- return true;
23730
- }
23731
- function GetLatestFlagChecksResponseFromJSON(json) {
23732
- return GetLatestFlagChecksResponseFromJSONTyped(json, false);
23733
- }
23734
- function GetLatestFlagChecksResponseFromJSONTyped(json, ignoreDiscriminator) {
23735
- if (json == null) {
23736
- return json;
23737
- }
23738
- return {
23739
- data: json["data"].map(FlagCheckLogResponseDataFromJSON),
23740
- params: GetLatestFlagChecksParamsFromJSON(json["params"])
23741
- };
23742
- }
23743
- function GetLatestFlagChecksResponseToJSON(value) {
23744
- if (value == null) {
23745
- return value;
23746
- }
23747
- return {
23748
- data: value["data"].map(FlagCheckLogResponseDataToJSON),
23749
- params: GetLatestFlagChecksParamsToJSON(value["params"])
23750
- };
23751
- }
23752
-
23753
23634
  // src/api/models/GetOrCreateCompanyMembershipRequestBody.ts
23754
23635
  function instanceOfGetOrCreateCompanyMembershipRequestBody(value) {
23755
23636
  if (!("companyId" in value) || value["companyId"] === void 0)
@@ -24462,6 +24343,72 @@ function ListAudienceUsersResponseToJSON(value) {
24462
24343
  };
24463
24344
  }
24464
24345
 
24346
+ // src/api/models/ListBillingProductsParams.ts
24347
+ function instanceOfListBillingProductsParams(value) {
24348
+ return true;
24349
+ }
24350
+ function ListBillingProductsParamsFromJSON(json) {
24351
+ return ListBillingProductsParamsFromJSONTyped(json, false);
24352
+ }
24353
+ function ListBillingProductsParamsFromJSONTyped(json, ignoreDiscriminator) {
24354
+ if (json == null) {
24355
+ return json;
24356
+ }
24357
+ return {
24358
+ ids: json["ids"] == null ? void 0 : json["ids"],
24359
+ limit: json["limit"] == null ? void 0 : json["limit"],
24360
+ name: json["name"] == null ? void 0 : json["name"],
24361
+ offset: json["offset"] == null ? void 0 : json["offset"],
24362
+ q: json["q"] == null ? void 0 : json["q"]
24363
+ };
24364
+ }
24365
+ function ListBillingProductsParamsToJSON(value) {
24366
+ if (value == null) {
24367
+ return value;
24368
+ }
24369
+ return {
24370
+ ids: value["ids"],
24371
+ limit: value["limit"],
24372
+ name: value["name"],
24373
+ offset: value["offset"],
24374
+ q: value["q"]
24375
+ };
24376
+ }
24377
+
24378
+ // src/api/models/ListBillingProductsResponse.ts
24379
+ function instanceOfListBillingProductsResponse(value) {
24380
+ if (!("data" in value) || value["data"] === void 0)
24381
+ return false;
24382
+ if (!("params" in value) || value["params"] === void 0)
24383
+ return false;
24384
+ return true;
24385
+ }
24386
+ function ListBillingProductsResponseFromJSON(json) {
24387
+ return ListBillingProductsResponseFromJSONTyped(json, false);
24388
+ }
24389
+ function ListBillingProductsResponseFromJSONTyped(json, ignoreDiscriminator) {
24390
+ if (json == null) {
24391
+ return json;
24392
+ }
24393
+ return {
24394
+ data: json["data"].map(
24395
+ BillingProductDetailResponseDataFromJSON
24396
+ ),
24397
+ params: ListBillingProductsParamsFromJSON(json["params"])
24398
+ };
24399
+ }
24400
+ function ListBillingProductsResponseToJSON(value) {
24401
+ if (value == null) {
24402
+ return value;
24403
+ }
24404
+ return {
24405
+ data: value["data"].map(
24406
+ BillingProductDetailResponseDataToJSON
24407
+ ),
24408
+ params: ListBillingProductsParamsToJSON(value["params"])
24409
+ };
24410
+ }
24411
+
24465
24412
  // src/api/models/ListCompaniesParams.ts
24466
24413
  function instanceOfListCompaniesParams(value) {
24467
24414
  return true;
@@ -25124,6 +25071,8 @@ function ListEventsParamsFromJSONTyped(json, ignoreDiscriminator) {
25124
25071
  return {
25125
25072
  companyId: json["company_id"] == null ? void 0 : json["company_id"],
25126
25073
  eventSubtype: json["event_subtype"] == null ? void 0 : json["event_subtype"],
25074
+ eventTypes: json["event_types"] == null ? void 0 : json["event_types"],
25075
+ flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
25127
25076
  limit: json["limit"] == null ? void 0 : json["limit"],
25128
25077
  offset: json["offset"] == null ? void 0 : json["offset"],
25129
25078
  userId: json["user_id"] == null ? void 0 : json["user_id"]
@@ -25136,6 +25085,8 @@ function ListEventsParamsToJSON(value) {
25136
25085
  return {
25137
25086
  company_id: value["companyId"],
25138
25087
  event_subtype: value["eventSubtype"],
25088
+ event_types: value["eventTypes"],
25089
+ flag_id: value["flagId"],
25139
25090
  limit: value["limit"],
25140
25091
  offset: value["offset"],
25141
25092
  user_id: value["userId"]
@@ -25424,72 +25375,6 @@ function ListFeaturesResponseToJSON(value) {
25424
25375
  };
25425
25376
  }
25426
25377
 
25427
- // src/api/models/ListFlagChecksParams.ts
25428
- function instanceOfListFlagChecksParams(value) {
25429
- return true;
25430
- }
25431
- function ListFlagChecksParamsFromJSON(json) {
25432
- return ListFlagChecksParamsFromJSONTyped(json, false);
25433
- }
25434
- function ListFlagChecksParamsFromJSONTyped(json, ignoreDiscriminator) {
25435
- if (json == null) {
25436
- return json;
25437
- }
25438
- return {
25439
- flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
25440
- flagIds: json["flag_ids"] == null ? void 0 : json["flag_ids"],
25441
- id: json["id"] == null ? void 0 : json["id"],
25442
- limit: json["limit"] == null ? void 0 : json["limit"],
25443
- offset: json["offset"] == null ? void 0 : json["offset"]
25444
- };
25445
- }
25446
- function ListFlagChecksParamsToJSON(value) {
25447
- if (value == null) {
25448
- return value;
25449
- }
25450
- return {
25451
- flag_id: value["flagId"],
25452
- flag_ids: value["flagIds"],
25453
- id: value["id"],
25454
- limit: value["limit"],
25455
- offset: value["offset"]
25456
- };
25457
- }
25458
-
25459
- // src/api/models/ListFlagChecksResponse.ts
25460
- function instanceOfListFlagChecksResponse(value) {
25461
- if (!("data" in value) || value["data"] === void 0)
25462
- return false;
25463
- if (!("params" in value) || value["params"] === void 0)
25464
- return false;
25465
- return true;
25466
- }
25467
- function ListFlagChecksResponseFromJSON(json) {
25468
- return ListFlagChecksResponseFromJSONTyped(json, false);
25469
- }
25470
- function ListFlagChecksResponseFromJSONTyped(json, ignoreDiscriminator) {
25471
- if (json == null) {
25472
- return json;
25473
- }
25474
- return {
25475
- data: json["data"].map(
25476
- FlagCheckLogDetailResponseDataFromJSON
25477
- ),
25478
- params: ListFlagChecksParamsFromJSON(json["params"])
25479
- };
25480
- }
25481
- function ListFlagChecksResponseToJSON(value) {
25482
- if (value == null) {
25483
- return value;
25484
- }
25485
- return {
25486
- data: value["data"].map(
25487
- FlagCheckLogDetailResponseDataToJSON
25488
- ),
25489
- params: ListFlagChecksParamsToJSON(value["params"])
25490
- };
25491
- }
25492
-
25493
25378
  // src/api/models/ListFlagsParams.ts
25494
25379
  function instanceOfListFlagsParams(value) {
25495
25380
  return true;
@@ -25806,14 +25691,14 @@ function ListPlansResponseToJSON(value) {
25806
25691
  };
25807
25692
  }
25808
25693
 
25809
- // src/api/models/ListProductsParams.ts
25810
- function instanceOfListProductsParams(value) {
25694
+ // src/api/models/ListProductPricesParams.ts
25695
+ function instanceOfListProductPricesParams(value) {
25811
25696
  return true;
25812
25697
  }
25813
- function ListProductsParamsFromJSON(json) {
25814
- return ListProductsParamsFromJSONTyped(json, false);
25698
+ function ListProductPricesParamsFromJSON(json) {
25699
+ return ListProductPricesParamsFromJSONTyped(json, false);
25815
25700
  }
25816
- function ListProductsParamsFromJSONTyped(json, ignoreDiscriminator) {
25701
+ function ListProductPricesParamsFromJSONTyped(json, ignoreDiscriminator) {
25817
25702
  if (json == null) {
25818
25703
  return json;
25819
25704
  }
@@ -25825,7 +25710,7 @@ function ListProductsParamsFromJSONTyped(json, ignoreDiscriminator) {
25825
25710
  q: json["q"] == null ? void 0 : json["q"]
25826
25711
  };
25827
25712
  }
25828
- function ListProductsParamsToJSON(value) {
25713
+ function ListProductPricesParamsToJSON(value) {
25829
25714
  if (value == null) {
25830
25715
  return value;
25831
25716
  }
@@ -25838,33 +25723,33 @@ function ListProductsParamsToJSON(value) {
25838
25723
  };
25839
25724
  }
25840
25725
 
25841
- // src/api/models/ListProductsResponse.ts
25842
- function instanceOfListProductsResponse(value) {
25726
+ // src/api/models/ListProductPricesResponse.ts
25727
+ function instanceOfListProductPricesResponse(value) {
25843
25728
  if (!("data" in value) || value["data"] === void 0)
25844
25729
  return false;
25845
25730
  if (!("params" in value) || value["params"] === void 0)
25846
25731
  return false;
25847
25732
  return true;
25848
25733
  }
25849
- function ListProductsResponseFromJSON(json) {
25850
- return ListProductsResponseFromJSONTyped(json, false);
25734
+ function ListProductPricesResponseFromJSON(json) {
25735
+ return ListProductPricesResponseFromJSONTyped(json, false);
25851
25736
  }
25852
- function ListProductsResponseFromJSONTyped(json, ignoreDiscriminator) {
25737
+ function ListProductPricesResponseFromJSONTyped(json, ignoreDiscriminator) {
25853
25738
  if (json == null) {
25854
25739
  return json;
25855
25740
  }
25856
25741
  return {
25857
- data: json["data"].map(BillingProductResponseDataFromJSON),
25858
- params: ListProductsParamsFromJSON(json["params"])
25742
+ data: json["data"].map(BillingPriceResponseDataFromJSON),
25743
+ params: ListProductPricesParamsFromJSON(json["params"])
25859
25744
  };
25860
25745
  }
25861
- function ListProductsResponseToJSON(value) {
25746
+ function ListProductPricesResponseToJSON(value) {
25862
25747
  if (value == null) {
25863
25748
  return value;
25864
25749
  }
25865
25750
  return {
25866
- data: value["data"].map(BillingProductResponseDataToJSON),
25867
- params: ListProductsParamsToJSON(value["params"])
25751
+ data: value["data"].map(BillingPriceResponseDataToJSON),
25752
+ params: ListProductPricesParamsToJSON(value["params"])
25868
25753
  };
25869
25754
  }
25870
25755
 
@@ -26370,6 +26255,64 @@ function RuleConditionResponseDataToJSON(value) {
26370
26255
  };
26371
26256
  }
26372
26257
 
26258
+ // src/api/models/RuleResponseData.ts
26259
+ function instanceOfRuleResponseData(value) {
26260
+ if (!("createdAt" in value) || value["createdAt"] === void 0)
26261
+ return false;
26262
+ if (!("environmentId" in value) || value["environmentId"] === void 0)
26263
+ return false;
26264
+ if (!("id" in value) || value["id"] === void 0)
26265
+ return false;
26266
+ if (!("name" in value) || value["name"] === void 0)
26267
+ return false;
26268
+ if (!("priority" in value) || value["priority"] === void 0)
26269
+ return false;
26270
+ if (!("ruleType" in value) || value["ruleType"] === void 0)
26271
+ return false;
26272
+ if (!("updatedAt" in value) || value["updatedAt"] === void 0)
26273
+ return false;
26274
+ if (!("value" in value) || value["value"] === void 0)
26275
+ return false;
26276
+ return true;
26277
+ }
26278
+ function RuleResponseDataFromJSON(json) {
26279
+ return RuleResponseDataFromJSONTyped(json, false);
26280
+ }
26281
+ function RuleResponseDataFromJSONTyped(json, ignoreDiscriminator) {
26282
+ if (json == null) {
26283
+ return json;
26284
+ }
26285
+ return {
26286
+ createdAt: new Date(json["created_at"]),
26287
+ environmentId: json["environment_id"],
26288
+ flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
26289
+ id: json["id"],
26290
+ name: json["name"],
26291
+ planId: json["plan_id"] == null ? void 0 : json["plan_id"],
26292
+ priority: json["priority"],
26293
+ ruleType: json["rule_type"],
26294
+ updatedAt: new Date(json["updated_at"]),
26295
+ value: json["value"]
26296
+ };
26297
+ }
26298
+ function RuleResponseDataToJSON(value) {
26299
+ if (value == null) {
26300
+ return value;
26301
+ }
26302
+ return {
26303
+ created_at: value["createdAt"].toISOString(),
26304
+ environment_id: value["environmentId"],
26305
+ flag_id: value["flagId"],
26306
+ id: value["id"],
26307
+ name: value["name"],
26308
+ plan_id: value["planId"],
26309
+ priority: value["priority"],
26310
+ rule_type: value["ruleType"],
26311
+ updated_at: value["updatedAt"].toISOString(),
26312
+ value: value["value"]
26313
+ };
26314
+ }
26315
+
26373
26316
  // src/api/models/RulesDetailResponseData.ts
26374
26317
  function instanceOfRulesDetailResponseData(value) {
26375
26318
  if (!("rules" in value) || value["rules"] === void 0)
@@ -26863,7 +26806,9 @@ function UpdateFeatureRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
26863
26806
  eventSubtype: json["event_subtype"] == null ? void 0 : json["event_subtype"],
26864
26807
  featureType: json["feature_type"] == null ? void 0 : json["feature_type"],
26865
26808
  flag: json["flag"] == null ? void 0 : CreateOrUpdateFlagRequestBodyFromJSON(json["flag"]),
26809
+ icon: json["icon"] == null ? void 0 : json["icon"],
26866
26810
  lifecyclePhase: json["lifecycle_phase"] == null ? void 0 : json["lifecycle_phase"],
26811
+ maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
26867
26812
  name: json["name"] == null ? void 0 : json["name"],
26868
26813
  traitId: json["trait_id"] == null ? void 0 : json["trait_id"]
26869
26814
  };
@@ -26877,7 +26822,9 @@ function UpdateFeatureRequestBodyToJSON(value) {
26877
26822
  event_subtype: value["eventSubtype"],
26878
26823
  feature_type: value["featureType"],
26879
26824
  flag: CreateOrUpdateFlagRequestBodyToJSON(value["flag"]),
26825
+ icon: value["icon"],
26880
26826
  lifecycle_phase: value["lifecyclePhase"],
26827
+ maintainer_id: value["maintainerId"],
26881
26828
  name: value["name"],
26882
26829
  trait_id: value["traitId"]
26883
26830
  };
@@ -27104,6 +27051,7 @@ function UpdatePlanRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
27104
27051
  return {
27105
27052
  audienceType: json["audience_type"],
27106
27053
  description: json["description"] == null ? void 0 : json["description"],
27054
+ icon: json["icon"] == null ? void 0 : json["icon"],
27107
27055
  name: json["name"],
27108
27056
  planType: json["plan_type"] == null ? void 0 : json["plan_type"]
27109
27057
  };
@@ -27115,6 +27063,7 @@ function UpdatePlanRequestBodyToJSON(value) {
27115
27063
  return {
27116
27064
  audience_type: value["audienceType"],
27117
27065
  description: value["description"],
27066
+ icon: value["icon"],
27118
27067
  name: value["name"],
27119
27068
  plan_type: value["planType"]
27120
27069
  };
@@ -27315,51 +27264,81 @@ function instanceOfUpdateWebhookResponse(value) {
27315
27264
  function UpdateWebhookResponseFromJSON(json) {
27316
27265
  return UpdateWebhookResponseFromJSONTyped(json, false);
27317
27266
  }
27318
- function UpdateWebhookResponseFromJSONTyped(json, ignoreDiscriminator) {
27267
+ function UpdateWebhookResponseFromJSONTyped(json, ignoreDiscriminator) {
27268
+ if (json == null) {
27269
+ return json;
27270
+ }
27271
+ return {
27272
+ data: WebhookResponseDataFromJSON(json["data"]),
27273
+ params: json["params"]
27274
+ };
27275
+ }
27276
+ function UpdateWebhookResponseToJSON(value) {
27277
+ if (value == null) {
27278
+ return value;
27279
+ }
27280
+ return {
27281
+ data: WebhookResponseDataToJSON(value["data"]),
27282
+ params: value["params"]
27283
+ };
27284
+ }
27285
+
27286
+ // src/api/models/UpsertBillingCustomerResponse.ts
27287
+ function instanceOfUpsertBillingCustomerResponse(value) {
27288
+ if (!("data" in value) || value["data"] === void 0)
27289
+ return false;
27290
+ if (!("params" in value) || value["params"] === void 0)
27291
+ return false;
27292
+ return true;
27293
+ }
27294
+ function UpsertBillingCustomerResponseFromJSON(json) {
27295
+ return UpsertBillingCustomerResponseFromJSONTyped(json, false);
27296
+ }
27297
+ function UpsertBillingCustomerResponseFromJSONTyped(json, ignoreDiscriminator) {
27319
27298
  if (json == null) {
27320
27299
  return json;
27321
27300
  }
27322
27301
  return {
27323
- data: WebhookResponseDataFromJSON(json["data"]),
27302
+ data: BillingCustomerResponseDataFromJSON(json["data"]),
27324
27303
  params: json["params"]
27325
27304
  };
27326
27305
  }
27327
- function UpdateWebhookResponseToJSON(value) {
27306
+ function UpsertBillingCustomerResponseToJSON(value) {
27328
27307
  if (value == null) {
27329
27308
  return value;
27330
27309
  }
27331
27310
  return {
27332
- data: WebhookResponseDataToJSON(value["data"]),
27311
+ data: BillingCustomerResponseDataToJSON(value["data"]),
27333
27312
  params: value["params"]
27334
27313
  };
27335
27314
  }
27336
27315
 
27337
- // src/api/models/UpsertBillingCustomerResponse.ts
27338
- function instanceOfUpsertBillingCustomerResponse(value) {
27316
+ // src/api/models/UpsertBillingPriceResponse.ts
27317
+ function instanceOfUpsertBillingPriceResponse(value) {
27339
27318
  if (!("data" in value) || value["data"] === void 0)
27340
27319
  return false;
27341
27320
  if (!("params" in value) || value["params"] === void 0)
27342
27321
  return false;
27343
27322
  return true;
27344
27323
  }
27345
- function UpsertBillingCustomerResponseFromJSON(json) {
27346
- return UpsertBillingCustomerResponseFromJSONTyped(json, false);
27324
+ function UpsertBillingPriceResponseFromJSON(json) {
27325
+ return UpsertBillingPriceResponseFromJSONTyped(json, false);
27347
27326
  }
27348
- function UpsertBillingCustomerResponseFromJSONTyped(json, ignoreDiscriminator) {
27327
+ function UpsertBillingPriceResponseFromJSONTyped(json, ignoreDiscriminator) {
27349
27328
  if (json == null) {
27350
27329
  return json;
27351
27330
  }
27352
27331
  return {
27353
- data: BillingCustomerResponseDataFromJSON(json["data"]),
27332
+ data: BillingPriceResponseDataFromJSON(json["data"]),
27354
27333
  params: json["params"]
27355
27334
  };
27356
27335
  }
27357
- function UpsertBillingCustomerResponseToJSON(value) {
27336
+ function UpsertBillingPriceResponseToJSON(value) {
27358
27337
  if (value == null) {
27359
27338
  return value;
27360
27339
  }
27361
27340
  return {
27362
- data: BillingCustomerResponseDataToJSON(value["data"]),
27341
+ data: BillingPriceResponseDataToJSON(value["data"]),
27363
27342
  params: value["params"]
27364
27343
  };
27365
27344
  }
@@ -28694,6 +28673,56 @@ var BillingApi = class extends BaseAPI {
28694
28673
  );
28695
28674
  return await response.value();
28696
28675
  }
28676
+ /**
28677
+ * List billing products
28678
+ */
28679
+ async listBillingProductsRaw(requestParameters, initOverrides) {
28680
+ const queryParameters = {};
28681
+ if (requestParameters["ids"] != null) {
28682
+ queryParameters["ids"] = requestParameters["ids"];
28683
+ }
28684
+ if (requestParameters["name"] != null) {
28685
+ queryParameters["name"] = requestParameters["name"];
28686
+ }
28687
+ if (requestParameters["q"] != null) {
28688
+ queryParameters["q"] = requestParameters["q"];
28689
+ }
28690
+ if (requestParameters["limit"] != null) {
28691
+ queryParameters["limit"] = requestParameters["limit"];
28692
+ }
28693
+ if (requestParameters["offset"] != null) {
28694
+ queryParameters["offset"] = requestParameters["offset"];
28695
+ }
28696
+ const headerParameters = {};
28697
+ if (this.configuration && this.configuration.apiKey) {
28698
+ headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
28699
+ "X-Schematic-Api-Key"
28700
+ );
28701
+ }
28702
+ const response = await this.request(
28703
+ {
28704
+ path: `/billing/products`,
28705
+ method: "GET",
28706
+ headers: headerParameters,
28707
+ query: queryParameters
28708
+ },
28709
+ initOverrides
28710
+ );
28711
+ return new JSONApiResponse(
28712
+ response,
28713
+ (jsonValue) => ListBillingProductsResponseFromJSON(jsonValue)
28714
+ );
28715
+ }
28716
+ /**
28717
+ * List billing products
28718
+ */
28719
+ async listBillingProducts(requestParameters = {}, initOverrides) {
28720
+ const response = await this.listBillingProductsRaw(
28721
+ requestParameters,
28722
+ initOverrides
28723
+ );
28724
+ return await response.value();
28725
+ }
28697
28726
  /**
28698
28727
  * List customers
28699
28728
  */
@@ -28745,9 +28774,9 @@ var BillingApi = class extends BaseAPI {
28745
28774
  return await response.value();
28746
28775
  }
28747
28776
  /**
28748
- * List products
28777
+ * List product prices
28749
28778
  */
28750
- async listProductsRaw(requestParameters, initOverrides) {
28779
+ async listProductPricesRaw(requestParameters, initOverrides) {
28751
28780
  const queryParameters = {};
28752
28781
  if (requestParameters["ids"] != null) {
28753
28782
  queryParameters["ids"] = requestParameters["ids"];
@@ -28772,7 +28801,7 @@ var BillingApi = class extends BaseAPI {
28772
28801
  }
28773
28802
  const response = await this.request(
28774
28803
  {
28775
- path: `/billing/products`,
28804
+ path: `/billing/product/prices`,
28776
28805
  method: "GET",
28777
28806
  headers: headerParameters,
28778
28807
  query: queryParameters
@@ -28781,14 +28810,14 @@ var BillingApi = class extends BaseAPI {
28781
28810
  );
28782
28811
  return new JSONApiResponse(
28783
28812
  response,
28784
- (jsonValue) => ListProductsResponseFromJSON(jsonValue)
28813
+ (jsonValue) => ListProductPricesResponseFromJSON(jsonValue)
28785
28814
  );
28786
28815
  }
28787
28816
  /**
28788
- * List products
28817
+ * List product prices
28789
28818
  */
28790
- async listProducts(requestParameters = {}, initOverrides) {
28791
- const response = await this.listProductsRaw(
28819
+ async listProductPrices(requestParameters = {}, initOverrides) {
28820
+ const response = await this.listProductPricesRaw(
28792
28821
  requestParameters,
28793
28822
  initOverrides
28794
28823
  );
@@ -28839,6 +28868,51 @@ var BillingApi = class extends BaseAPI {
28839
28868
  );
28840
28869
  return await response.value();
28841
28870
  }
28871
+ /**
28872
+ * Upsert billing price
28873
+ */
28874
+ async upsertBillingPriceRaw(requestParameters, initOverrides) {
28875
+ if (requestParameters["createBillingPriceRequestBody"] == null) {
28876
+ throw new RequiredError(
28877
+ "createBillingPriceRequestBody",
28878
+ 'Required parameter "createBillingPriceRequestBody" was null or undefined when calling upsertBillingPrice().'
28879
+ );
28880
+ }
28881
+ const queryParameters = {};
28882
+ const headerParameters = {};
28883
+ headerParameters["Content-Type"] = "application/json";
28884
+ if (this.configuration && this.configuration.apiKey) {
28885
+ headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
28886
+ "X-Schematic-Api-Key"
28887
+ );
28888
+ }
28889
+ const response = await this.request(
28890
+ {
28891
+ path: `/billing/price/upsert`,
28892
+ method: "POST",
28893
+ headers: headerParameters,
28894
+ query: queryParameters,
28895
+ body: CreateBillingPriceRequestBodyToJSON(
28896
+ requestParameters["createBillingPriceRequestBody"]
28897
+ )
28898
+ },
28899
+ initOverrides
28900
+ );
28901
+ return new JSONApiResponse(
28902
+ response,
28903
+ (jsonValue) => UpsertBillingPriceResponseFromJSON(jsonValue)
28904
+ );
28905
+ }
28906
+ /**
28907
+ * Upsert billing price
28908
+ */
28909
+ async upsertBillingPrice(requestParameters, initOverrides) {
28910
+ const response = await this.upsertBillingPriceRaw(
28911
+ requestParameters,
28912
+ initOverrides
28913
+ );
28914
+ return await response.value();
28915
+ }
28842
28916
  /**
28843
28917
  * Upsert billing product
28844
28918
  */
@@ -32267,12 +32341,18 @@ var EventsApi = class extends BaseAPI {
32267
32341
  if (requestParameters["companyId"] != null) {
32268
32342
  queryParameters["company_id"] = requestParameters["companyId"];
32269
32343
  }
32270
- if (requestParameters["userId"] != null) {
32271
- queryParameters["user_id"] = requestParameters["userId"];
32272
- }
32273
32344
  if (requestParameters["eventSubtype"] != null) {
32274
32345
  queryParameters["event_subtype"] = requestParameters["eventSubtype"];
32275
32346
  }
32347
+ if (requestParameters["eventTypes"] != null) {
32348
+ queryParameters["event_types"] = requestParameters["eventTypes"];
32349
+ }
32350
+ if (requestParameters["flagId"] != null) {
32351
+ queryParameters["flag_id"] = requestParameters["flagId"];
32352
+ }
32353
+ if (requestParameters["userId"] != null) {
32354
+ queryParameters["user_id"] = requestParameters["userId"];
32355
+ }
32276
32356
  if (requestParameters["limit"] != null) {
32277
32357
  queryParameters["limit"] = requestParameters["limit"];
32278
32358
  }
@@ -32611,56 +32691,6 @@ var FeaturesApi = class extends BaseAPI {
32611
32691
  );
32612
32692
  return await response.value();
32613
32693
  }
32614
- /**
32615
- * Count flag checks
32616
- */
32617
- async countFlagChecksRaw(requestParameters, initOverrides) {
32618
- const queryParameters = {};
32619
- if (requestParameters["flagId"] != null) {
32620
- queryParameters["flag_id"] = requestParameters["flagId"];
32621
- }
32622
- if (requestParameters["flagIds"] != null) {
32623
- queryParameters["flag_ids"] = requestParameters["flagIds"];
32624
- }
32625
- if (requestParameters["id"] != null) {
32626
- queryParameters["id"] = requestParameters["id"];
32627
- }
32628
- if (requestParameters["limit"] != null) {
32629
- queryParameters["limit"] = requestParameters["limit"];
32630
- }
32631
- if (requestParameters["offset"] != null) {
32632
- queryParameters["offset"] = requestParameters["offset"];
32633
- }
32634
- const headerParameters = {};
32635
- if (this.configuration && this.configuration.apiKey) {
32636
- headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
32637
- "X-Schematic-Api-Key"
32638
- );
32639
- }
32640
- const response = await this.request(
32641
- {
32642
- path: `/flag-checks/count`,
32643
- method: "GET",
32644
- headers: headerParameters,
32645
- query: queryParameters
32646
- },
32647
- initOverrides
32648
- );
32649
- return new JSONApiResponse(
32650
- response,
32651
- (jsonValue) => CountFlagChecksResponseFromJSON(jsonValue)
32652
- );
32653
- }
32654
- /**
32655
- * Count flag checks
32656
- */
32657
- async countFlagChecks(requestParameters = {}, initOverrides) {
32658
- const response = await this.countFlagChecksRaw(
32659
- requestParameters,
32660
- initOverrides
32661
- );
32662
- return await response.value();
32663
- }
32664
32694
  /**
32665
32695
  * Count flags
32666
32696
  */
@@ -32962,100 +32992,6 @@ var FeaturesApi = class extends BaseAPI {
32962
32992
  const response = await this.getFlagRaw(requestParameters, initOverrides);
32963
32993
  return await response.value();
32964
32994
  }
32965
- /**
32966
- * Get flag check
32967
- */
32968
- async getFlagCheckRaw(requestParameters, initOverrides) {
32969
- if (requestParameters["flagCheckId"] == null) {
32970
- throw new RequiredError(
32971
- "flagCheckId",
32972
- 'Required parameter "flagCheckId" was null or undefined when calling getFlagCheck().'
32973
- );
32974
- }
32975
- const queryParameters = {};
32976
- const headerParameters = {};
32977
- if (this.configuration && this.configuration.apiKey) {
32978
- headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
32979
- "X-Schematic-Api-Key"
32980
- );
32981
- }
32982
- const response = await this.request(
32983
- {
32984
- path: `/flag-checks/{flag_check_id}`.replace(
32985
- `{${"flag_check_id"}}`,
32986
- encodeURIComponent(String(requestParameters["flagCheckId"]))
32987
- ),
32988
- method: "GET",
32989
- headers: headerParameters,
32990
- query: queryParameters
32991
- },
32992
- initOverrides
32993
- );
32994
- return new JSONApiResponse(
32995
- response,
32996
- (jsonValue) => GetFlagCheckResponseFromJSON(jsonValue)
32997
- );
32998
- }
32999
- /**
33000
- * Get flag check
33001
- */
33002
- async getFlagCheck(requestParameters, initOverrides) {
33003
- const response = await this.getFlagCheckRaw(
33004
- requestParameters,
33005
- initOverrides
33006
- );
33007
- return await response.value();
33008
- }
33009
- /**
33010
- * Get latest flag checks
33011
- */
33012
- async getLatestFlagChecksRaw(requestParameters, initOverrides) {
33013
- const queryParameters = {};
33014
- if (requestParameters["flagId"] != null) {
33015
- queryParameters["flag_id"] = requestParameters["flagId"];
33016
- }
33017
- if (requestParameters["flagIds"] != null) {
33018
- queryParameters["flag_ids"] = requestParameters["flagIds"];
33019
- }
33020
- if (requestParameters["id"] != null) {
33021
- queryParameters["id"] = requestParameters["id"];
33022
- }
33023
- if (requestParameters["limit"] != null) {
33024
- queryParameters["limit"] = requestParameters["limit"];
33025
- }
33026
- if (requestParameters["offset"] != null) {
33027
- queryParameters["offset"] = requestParameters["offset"];
33028
- }
33029
- const headerParameters = {};
33030
- if (this.configuration && this.configuration.apiKey) {
33031
- headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
33032
- "X-Schematic-Api-Key"
33033
- );
33034
- }
33035
- const response = await this.request(
33036
- {
33037
- path: `/flag-checks/latest`,
33038
- method: "GET",
33039
- headers: headerParameters,
33040
- query: queryParameters
33041
- },
33042
- initOverrides
33043
- );
33044
- return new JSONApiResponse(
33045
- response,
33046
- (jsonValue) => GetLatestFlagChecksResponseFromJSON(jsonValue)
33047
- );
33048
- }
33049
- /**
33050
- * Get latest flag checks
33051
- */
33052
- async getLatestFlagChecks(requestParameters = {}, initOverrides) {
33053
- const response = await this.getLatestFlagChecksRaw(
33054
- requestParameters,
33055
- initOverrides
33056
- );
33057
- return await response.value();
33058
- }
33059
32995
  /**
33060
32996
  * List audience companies
33061
32997
  */
@@ -33199,56 +33135,6 @@ var FeaturesApi = class extends BaseAPI {
33199
33135
  );
33200
33136
  return await response.value();
33201
33137
  }
33202
- /**
33203
- * List flag checks
33204
- */
33205
- async listFlagChecksRaw(requestParameters, initOverrides) {
33206
- const queryParameters = {};
33207
- if (requestParameters["flagId"] != null) {
33208
- queryParameters["flag_id"] = requestParameters["flagId"];
33209
- }
33210
- if (requestParameters["flagIds"] != null) {
33211
- queryParameters["flag_ids"] = requestParameters["flagIds"];
33212
- }
33213
- if (requestParameters["id"] != null) {
33214
- queryParameters["id"] = requestParameters["id"];
33215
- }
33216
- if (requestParameters["limit"] != null) {
33217
- queryParameters["limit"] = requestParameters["limit"];
33218
- }
33219
- if (requestParameters["offset"] != null) {
33220
- queryParameters["offset"] = requestParameters["offset"];
33221
- }
33222
- const headerParameters = {};
33223
- if (this.configuration && this.configuration.apiKey) {
33224
- headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
33225
- "X-Schematic-Api-Key"
33226
- );
33227
- }
33228
- const response = await this.request(
33229
- {
33230
- path: `/flag-checks`,
33231
- method: "GET",
33232
- headers: headerParameters,
33233
- query: queryParameters
33234
- },
33235
- initOverrides
33236
- );
33237
- return new JSONApiResponse(
33238
- response,
33239
- (jsonValue) => ListFlagChecksResponseFromJSON(jsonValue)
33240
- );
33241
- }
33242
- /**
33243
- * List flag checks
33244
- */
33245
- async listFlagChecks(requestParameters = {}, initOverrides) {
33246
- const response = await this.listFlagChecksRaw(
33247
- requestParameters,
33248
- initOverrides
33249
- );
33250
- return await response.value();
33251
- }
33252
33138
  /**
33253
33139
  * List flags
33254
33140
  */
@@ -34541,7 +34427,7 @@ var Schematic = class {
34541
34427
  constructor(apiKey, opts) {
34542
34428
  const { offline = false } = opts ?? {};
34543
34429
  const { basePath, flagDefaults = {} } = opts ?? {};
34544
- const version = "1.0.20";
34430
+ const version = "1.0.22";
34545
34431
  const headers = {
34546
34432
  "User-Agent": `schematic-typescript-node@v${version}`
34547
34433
  };
@@ -34692,6 +34578,12 @@ export {
34692
34578
  BillingCustomerWithSubscriptionsResponseDataFromJSON,
34693
34579
  BillingCustomerWithSubscriptionsResponseDataFromJSONTyped,
34694
34580
  BillingCustomerWithSubscriptionsResponseDataToJSON,
34581
+ BillingPriceResponseDataFromJSON,
34582
+ BillingPriceResponseDataFromJSONTyped,
34583
+ BillingPriceResponseDataToJSON,
34584
+ BillingProductDetailResponseDataFromJSON,
34585
+ BillingProductDetailResponseDataFromJSONTyped,
34586
+ BillingProductDetailResponseDataToJSON,
34695
34587
  BillingProductPlanResponseDataFromJSON,
34696
34588
  BillingProductPlanResponseDataFromJSONTyped,
34697
34589
  BillingProductPlanResponseDataToJSON,
@@ -34841,12 +34733,6 @@ export {
34841
34733
  CountFeaturesResponseFromJSON,
34842
34734
  CountFeaturesResponseFromJSONTyped,
34843
34735
  CountFeaturesResponseToJSON,
34844
- CountFlagChecksParamsFromJSON,
34845
- CountFlagChecksParamsFromJSONTyped,
34846
- CountFlagChecksParamsToJSON,
34847
- CountFlagChecksResponseFromJSON,
34848
- CountFlagChecksResponseFromJSONTyped,
34849
- CountFlagChecksResponseToJSON,
34850
34736
  CountFlagsParamsFromJSON,
34851
34737
  CountFlagsParamsFromJSONTyped,
34852
34738
  CountFlagsParamsToJSON,
@@ -34895,6 +34781,9 @@ export {
34895
34781
  CreateBillingCustomerRequestBodyFromJSON,
34896
34782
  CreateBillingCustomerRequestBodyFromJSONTyped,
34897
34783
  CreateBillingCustomerRequestBodyToJSON,
34784
+ CreateBillingPriceRequestBodyFromJSON,
34785
+ CreateBillingPriceRequestBodyFromJSONTyped,
34786
+ CreateBillingPriceRequestBodyToJSON,
34898
34787
  CreateBillingProductRequestBodyFromJSON,
34899
34788
  CreateBillingProductRequestBodyFromJSONTyped,
34900
34789
  CreateBillingProductRequestBodyToJSON,
@@ -35105,6 +34994,9 @@ export {
35105
34994
  EnvironmentResponseDataFromJSON,
35106
34995
  EnvironmentResponseDataFromJSONTyped,
35107
34996
  EnvironmentResponseDataToJSON,
34997
+ EventBodyFlagCheckFromJSON,
34998
+ EventBodyFlagCheckFromJSONTyped,
34999
+ EventBodyFlagCheckToJSON,
35108
35000
  EventBodyFromJSON,
35109
35001
  EventBodyFromJSONTyped,
35110
35002
  EventBodyIdentifyCompanyFromJSON,
@@ -35150,12 +35042,6 @@ export {
35150
35042
  FeatureUsageResponseDataToJSON,
35151
35043
  FeaturesApi,
35152
35044
  FetchError2 as FetchError,
35153
- FlagCheckLogDetailResponseDataFromJSON,
35154
- FlagCheckLogDetailResponseDataFromJSONTyped,
35155
- FlagCheckLogDetailResponseDataToJSON,
35156
- FlagCheckLogResponseDataFromJSON,
35157
- FlagCheckLogResponseDataFromJSONTyped,
35158
- FlagCheckLogResponseDataToJSON,
35159
35045
  FlagDetailResponseDataFromJSON,
35160
35046
  FlagDetailResponseDataFromJSONTyped,
35161
35047
  FlagDetailResponseDataToJSON,
@@ -35225,18 +35111,9 @@ export {
35225
35111
  GetFeatureUsageByCompanyResponseFromJSON,
35226
35112
  GetFeatureUsageByCompanyResponseFromJSONTyped,
35227
35113
  GetFeatureUsageByCompanyResponseToJSON,
35228
- GetFlagCheckResponseFromJSON,
35229
- GetFlagCheckResponseFromJSONTyped,
35230
- GetFlagCheckResponseToJSON,
35231
35114
  GetFlagResponseFromJSON,
35232
35115
  GetFlagResponseFromJSONTyped,
35233
35116
  GetFlagResponseToJSON,
35234
- GetLatestFlagChecksParamsFromJSON,
35235
- GetLatestFlagChecksParamsFromJSONTyped,
35236
- GetLatestFlagChecksParamsToJSON,
35237
- GetLatestFlagChecksResponseFromJSON,
35238
- GetLatestFlagChecksResponseFromJSONTyped,
35239
- GetLatestFlagChecksResponseToJSON,
35240
35117
  GetOrCreateCompanyMembershipRequestBodyFromJSON,
35241
35118
  GetOrCreateCompanyMembershipRequestBodyFromJSONTyped,
35242
35119
  GetOrCreateCompanyMembershipRequestBodyToJSON,
@@ -35298,6 +35175,12 @@ export {
35298
35175
  ListAudienceUsersResponseFromJSON,
35299
35176
  ListAudienceUsersResponseFromJSONTyped,
35300
35177
  ListAudienceUsersResponseToJSON,
35178
+ ListBillingProductsParamsFromJSON,
35179
+ ListBillingProductsParamsFromJSONTyped,
35180
+ ListBillingProductsParamsToJSON,
35181
+ ListBillingProductsResponseFromJSON,
35182
+ ListBillingProductsResponseFromJSONTyped,
35183
+ ListBillingProductsResponseToJSON,
35301
35184
  ListCompaniesParamsFromJSON,
35302
35185
  ListCompaniesParamsFromJSONTyped,
35303
35186
  ListCompaniesParamsToJSON,
@@ -35394,12 +35277,6 @@ export {
35394
35277
  ListFeaturesResponseFromJSON,
35395
35278
  ListFeaturesResponseFromJSONTyped,
35396
35279
  ListFeaturesResponseToJSON,
35397
- ListFlagChecksParamsFromJSON,
35398
- ListFlagChecksParamsFromJSONTyped,
35399
- ListFlagChecksParamsToJSON,
35400
- ListFlagChecksResponseFromJSON,
35401
- ListFlagChecksResponseFromJSONTyped,
35402
- ListFlagChecksResponseToJSON,
35403
35280
  ListFlagsParamsFromJSON,
35404
35281
  ListFlagsParamsFromJSONTyped,
35405
35282
  ListFlagsParamsToJSON,
@@ -35424,12 +35301,12 @@ export {
35424
35301
  ListPlansResponseFromJSON,
35425
35302
  ListPlansResponseFromJSONTyped,
35426
35303
  ListPlansResponseToJSON,
35427
- ListProductsParamsFromJSON,
35428
- ListProductsParamsFromJSONTyped,
35429
- ListProductsParamsToJSON,
35430
- ListProductsResponseFromJSON,
35431
- ListProductsResponseFromJSONTyped,
35432
- ListProductsResponseToJSON,
35304
+ ListProductPricesParamsFromJSON,
35305
+ ListProductPricesParamsFromJSONTyped,
35306
+ ListProductPricesParamsToJSON,
35307
+ ListProductPricesResponseFromJSON,
35308
+ ListProductPricesResponseFromJSONTyped,
35309
+ ListProductPricesResponseToJSON,
35433
35310
  ListUsersParamsFromJSON,
35434
35311
  ListUsersParamsFromJSONTyped,
35435
35312
  ListUsersParamsToJSON,
@@ -35618,6 +35495,9 @@ export {
35618
35495
  UpsertBillingCustomerResponseFromJSON,
35619
35496
  UpsertBillingCustomerResponseFromJSONTyped,
35620
35497
  UpsertBillingCustomerResponseToJSON,
35498
+ UpsertBillingPriceResponseFromJSON,
35499
+ UpsertBillingPriceResponseFromJSONTyped,
35500
+ UpsertBillingPriceResponseToJSON,
35621
35501
  UpsertBillingProductPlanResponseFromJSON,
35622
35502
  UpsertBillingProductPlanResponseFromJSONTyped,
35623
35503
  UpsertBillingProductPlanResponseToJSON,
@@ -35694,6 +35574,8 @@ export {
35694
35574
  instanceOfBillingCustomerResponseData,
35695
35575
  instanceOfBillingCustomerSubscription,
35696
35576
  instanceOfBillingCustomerWithSubscriptionsResponseData,
35577
+ instanceOfBillingPriceResponseData,
35578
+ instanceOfBillingProductDetailResponseData,
35697
35579
  instanceOfBillingProductPlanResponseData,
35698
35580
  instanceOfBillingProductPricing,
35699
35581
  instanceOfBillingProductResponseData,
@@ -35740,8 +35622,6 @@ export {
35740
35622
  instanceOfCountFeatureUsersResponse,
35741
35623
  instanceOfCountFeaturesParams,
35742
35624
  instanceOfCountFeaturesResponse,
35743
- instanceOfCountFlagChecksParams,
35744
- instanceOfCountFlagChecksResponse,
35745
35625
  instanceOfCountFlagsParams,
35746
35626
  instanceOfCountFlagsResponse,
35747
35627
  instanceOfCountPlanEntitlementsParams,
@@ -35758,6 +35638,7 @@ export {
35758
35638
  instanceOfCreateApiKeyRequestBody,
35759
35639
  instanceOfCreateApiKeyResponse,
35760
35640
  instanceOfCreateBillingCustomerRequestBody,
35641
+ instanceOfCreateBillingPriceRequestBody,
35761
35642
  instanceOfCreateBillingProductRequestBody,
35762
35643
  instanceOfCreateBillingSubscriptionsRequestBody,
35763
35644
  instanceOfCreateCompanyOverrideRequestBody,
@@ -35821,6 +35702,7 @@ export {
35821
35702
  instanceOfEntityTraitValue,
35822
35703
  instanceOfEnvironmentDetailResponseData,
35823
35704
  instanceOfEnvironmentResponseData,
35705
+ instanceOfEventBodyFlagCheck,
35824
35706
  instanceOfEventBodyIdentify,
35825
35707
  instanceOfEventBodyIdentifyCompany,
35826
35708
  instanceOfEventBodyTrack,
@@ -35833,8 +35715,6 @@ export {
35833
35715
  instanceOfFeatureResponseData,
35834
35716
  instanceOfFeatureUsageDetailResponseData,
35835
35717
  instanceOfFeatureUsageResponseData,
35836
- instanceOfFlagCheckLogDetailResponseData,
35837
- instanceOfFlagCheckLogResponseData,
35838
35718
  instanceOfFlagDetailResponseData,
35839
35719
  instanceOfFlagResponseData,
35840
35720
  instanceOfGetActiveCompanySubscriptionParams,
@@ -35858,10 +35738,7 @@ export {
35858
35738
  instanceOfGetFeatureResponse,
35859
35739
  instanceOfGetFeatureUsageByCompanyParams,
35860
35740
  instanceOfGetFeatureUsageByCompanyResponse,
35861
- instanceOfGetFlagCheckResponse,
35862
35741
  instanceOfGetFlagResponse,
35863
- instanceOfGetLatestFlagChecksParams,
35864
- instanceOfGetLatestFlagChecksResponse,
35865
35742
  instanceOfGetOrCreateCompanyMembershipRequestBody,
35866
35743
  instanceOfGetOrCreateCompanyMembershipResponse,
35867
35744
  instanceOfGetOrCreateEntityTraitDefinitionResponse,
@@ -35882,6 +35759,8 @@ export {
35882
35759
  instanceOfListApiRequestsResponse,
35883
35760
  instanceOfListAudienceCompaniesResponse,
35884
35761
  instanceOfListAudienceUsersResponse,
35762
+ instanceOfListBillingProductsParams,
35763
+ instanceOfListBillingProductsResponse,
35885
35764
  instanceOfListCompaniesParams,
35886
35765
  instanceOfListCompaniesResponse,
35887
35766
  instanceOfListCompanyMembershipsParams,
@@ -35912,8 +35791,6 @@ export {
35912
35791
  instanceOfListFeatureUsersResponse,
35913
35792
  instanceOfListFeaturesParams,
35914
35793
  instanceOfListFeaturesResponse,
35915
- instanceOfListFlagChecksParams,
35916
- instanceOfListFlagChecksResponse,
35917
35794
  instanceOfListFlagsParams,
35918
35795
  instanceOfListFlagsResponse,
35919
35796
  instanceOfListMetricCountsParams,
@@ -35922,8 +35799,8 @@ export {
35922
35799
  instanceOfListPlanEntitlementsResponse,
35923
35800
  instanceOfListPlansParams,
35924
35801
  instanceOfListPlansResponse,
35925
- instanceOfListProductsParams,
35926
- instanceOfListProductsResponse,
35802
+ instanceOfListProductPricesParams,
35803
+ instanceOfListProductPricesResponse,
35927
35804
  instanceOfListUsersParams,
35928
35805
  instanceOfListUsersResponse,
35929
35806
  instanceOfListWebhookEventsParams,
@@ -35980,6 +35857,7 @@ export {
35980
35857
  instanceOfUpdateWebhookRequestBody,
35981
35858
  instanceOfUpdateWebhookResponse,
35982
35859
  instanceOfUpsertBillingCustomerResponse,
35860
+ instanceOfUpsertBillingPriceResponse,
35983
35861
  instanceOfUpsertBillingProductPlanResponse,
35984
35862
  instanceOfUpsertBillingProductRequestBody,
35985
35863
  instanceOfUpsertBillingProductResponse,