@schematichq/schematic-typescript-node 1.0.16 → 1.0.18

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.
@@ -16525,6 +16525,44 @@ function AudienceRequestBodyToJSON(value) {
16525
16525
  };
16526
16526
  }
16527
16527
 
16528
+ // src/api/models/BillingProductPlanResponseData.ts
16529
+ function instanceOfBillingProductPlanResponseData(value) {
16530
+ if (!("accountId" in value) || value["accountId"] === void 0)
16531
+ return false;
16532
+ if (!("billingProductId" in value) || value["billingProductId"] === void 0)
16533
+ return false;
16534
+ if (!("environmentId" in value) || value["environmentId"] === void 0)
16535
+ return false;
16536
+ if (!("planId" in value) || value["planId"] === void 0)
16537
+ return false;
16538
+ return true;
16539
+ }
16540
+ function BillingProductPlanResponseDataFromJSON(json) {
16541
+ return BillingProductPlanResponseDataFromJSONTyped(json, false);
16542
+ }
16543
+ function BillingProductPlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
16544
+ if (json == null) {
16545
+ return json;
16546
+ }
16547
+ return {
16548
+ accountId: json["account_id"],
16549
+ billingProductId: json["billing_product_id"],
16550
+ environmentId: json["environment_id"],
16551
+ planId: json["plan_id"]
16552
+ };
16553
+ }
16554
+ function BillingProductPlanResponseDataToJSON(value) {
16555
+ if (value == null) {
16556
+ return value;
16557
+ }
16558
+ return {
16559
+ account_id: value["accountId"],
16560
+ billing_product_id: value["billingProductId"],
16561
+ environment_id: value["environmentId"],
16562
+ plan_id: value["planId"]
16563
+ };
16564
+ }
16565
+
16528
16566
  // src/api/models/BillingProductResponseData.ts
16529
16567
  function instanceOfBillingProductResponseData(value) {
16530
16568
  if (!("accountId" in value) || value["accountId"] === void 0)
@@ -16560,7 +16598,6 @@ function BillingProductResponseDataFromJSONTyped(json, ignoreDiscriminator) {
16560
16598
  accountId: json["account_id"],
16561
16599
  createdAt: new Date(json["created_at"]),
16562
16600
  currency: json["currency"],
16563
- deletedAt: json["deleted_at"] == null ? void 0 : new Date(json["deleted_at"]),
16564
16601
  environmentId: json["environment_id"],
16565
16602
  externalId: json["external_id"],
16566
16603
  name: json["name"],
@@ -16578,7 +16615,6 @@ function BillingProductResponseDataToJSON(value) {
16578
16615
  account_id: value["accountId"],
16579
16616
  created_at: value["createdAt"].toISOString(),
16580
16617
  currency: value["currency"],
16581
- deleted_at: value["deletedAt"] == null ? void 0 : value["deletedAt"].toISOString(),
16582
16618
  environment_id: value["environmentId"],
16583
16619
  external_id: value["externalId"],
16584
16620
  name: value["name"],
@@ -16607,7 +16643,6 @@ function BillingSubscriptionResponseDataFromJSONTyped(json, ignoreDiscriminator)
16607
16643
  return json;
16608
16644
  }
16609
16645
  return {
16610
- deletedAt: json["deleted_at"] == null ? void 0 : new Date(json["deleted_at"]),
16611
16646
  expiredAt: json["expired_at"] == null ? void 0 : new Date(json["expired_at"]),
16612
16647
  externalId: json["external_id"],
16613
16648
  id: json["id"],
@@ -16619,7 +16654,6 @@ function BillingSubscriptionResponseDataToJSON(value) {
16619
16654
  return value;
16620
16655
  }
16621
16656
  return {
16622
- deleted_at: value["deletedAt"] == null ? void 0 : value["deletedAt"].toISOString(),
16623
16657
  expired_at: value["expiredAt"] == null ? void 0 : value["expiredAt"].toISOString(),
16624
16658
  external_id: value["externalId"],
16625
16659
  id: value["id"],
@@ -16854,7 +16888,6 @@ function CrmDealLineItemFromJSONTyped(json, ignoreDiscriminator) {
16854
16888
  billingFrequency: json["billing_frequency"],
16855
16889
  createdAt: new Date(json["created_at"]),
16856
16890
  currency: json["currency"],
16857
- deletedAt: json["deleted_at"] == null ? void 0 : new Date(json["deleted_at"]),
16858
16891
  description: json["description"],
16859
16892
  discountPercentage: json["discount_percentage"] == null ? void 0 : json["discount_percentage"],
16860
16893
  id: json["id"],
@@ -16874,7 +16907,6 @@ function CrmDealLineItemToJSON(value) {
16874
16907
  billing_frequency: value["billingFrequency"],
16875
16908
  created_at: value["createdAt"].toISOString(),
16876
16909
  currency: value["currency"],
16877
- deleted_at: value["deletedAt"] == null ? void 0 : value["deletedAt"].toISOString(),
16878
16910
  description: value["description"],
16879
16911
  discount_percentage: value["discountPercentage"],
16880
16912
  id: value["id"],
@@ -17579,6 +17611,8 @@ function instanceOfComponentResponseData(value) {
17579
17611
  return false;
17580
17612
  if (!("name" in value) || value["name"] === void 0)
17581
17613
  return false;
17614
+ if (!("state" in value) || value["state"] === void 0)
17615
+ return false;
17582
17616
  if (!("type" in value) || value["type"] === void 0)
17583
17617
  return false;
17584
17618
  if (!("updatedAt" in value) || value["updatedAt"] === void 0)
@@ -17597,6 +17631,7 @@ function ComponentResponseDataFromJSONTyped(json, ignoreDiscriminator) {
17597
17631
  createdAt: new Date(json["created_at"]),
17598
17632
  id: json["id"],
17599
17633
  name: json["name"],
17634
+ state: json["state"],
17600
17635
  type: json["type"],
17601
17636
  updatedAt: new Date(json["updated_at"])
17602
17637
  };
@@ -17610,11 +17645,40 @@ function ComponentResponseDataToJSON(value) {
17610
17645
  created_at: value["createdAt"].toISOString(),
17611
17646
  id: value["id"],
17612
17647
  name: value["name"],
17648
+ state: value["state"],
17613
17649
  type: value["type"],
17614
17650
  updated_at: value["updatedAt"].toISOString()
17615
17651
  };
17616
17652
  }
17617
17653
 
17654
+ // src/api/models/ComponentHydrateView.ts
17655
+ function instanceOfComponentHydrateView(value) {
17656
+ if (!("data" in value) || value["data"] === void 0)
17657
+ return false;
17658
+ return true;
17659
+ }
17660
+ function ComponentHydrateViewFromJSON(json) {
17661
+ return ComponentHydrateViewFromJSONTyped(json, false);
17662
+ }
17663
+ function ComponentHydrateViewFromJSONTyped(json, ignoreDiscriminator) {
17664
+ if (json == null) {
17665
+ return json;
17666
+ }
17667
+ return {
17668
+ component: json["component"] == null ? void 0 : ComponentResponseDataFromJSON(json["component"]),
17669
+ data: json["data"]
17670
+ };
17671
+ }
17672
+ function ComponentHydrateViewToJSON(value) {
17673
+ if (value == null) {
17674
+ return value;
17675
+ }
17676
+ return {
17677
+ component: ComponentResponseDataToJSON(value["component"]),
17678
+ data: value["data"]
17679
+ };
17680
+ }
17681
+
17618
17682
  // src/api/models/CountApiKeysParams.ts
17619
17683
  function instanceOfCountApiKeysParams(value) {
17620
17684
  return true;
@@ -20614,6 +20678,8 @@ function CreatePlanEntitlementRequestBodyToJSON(value) {
20614
20678
 
20615
20679
  // src/api/models/PlanResponseData.ts
20616
20680
  function instanceOfPlanResponseData(value) {
20681
+ if (!("audienceType" in value) || value["audienceType"] === void 0)
20682
+ return false;
20617
20683
  if (!("createdAt" in value) || value["createdAt"] === void 0)
20618
20684
  return false;
20619
20685
  if (!("description" in value) || value["description"] === void 0)
@@ -20636,6 +20702,7 @@ function PlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
20636
20702
  return json;
20637
20703
  }
20638
20704
  return {
20705
+ audienceType: json["audience_type"],
20639
20706
  createdAt: new Date(json["created_at"]),
20640
20707
  description: json["description"],
20641
20708
  id: json["id"],
@@ -20649,6 +20716,7 @@ function PlanResponseDataToJSON(value) {
20649
20716
  return value;
20650
20717
  }
20651
20718
  return {
20719
+ audience_type: value["audienceType"],
20652
20720
  created_at: value["createdAt"].toISOString(),
20653
20721
  description: value["description"],
20654
20722
  id: value["id"],
@@ -20782,6 +20850,7 @@ function CreatePlanRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
20782
20850
  return json;
20783
20851
  }
20784
20852
  return {
20853
+ audienceType: json["audience_type"] == null ? void 0 : json["audience_type"],
20785
20854
  description: json["description"],
20786
20855
  name: json["name"],
20787
20856
  planType: json["plan_type"]
@@ -20792,6 +20861,7 @@ function CreatePlanRequestBodyToJSON(value) {
20792
20861
  return value;
20793
20862
  }
20794
20863
  return {
20864
+ audience_type: value["audienceType"],
20795
20865
  description: value["description"],
20796
20866
  name: value["name"],
20797
20867
  plan_type: value["planType"]
@@ -20800,6 +20870,8 @@ function CreatePlanRequestBodyToJSON(value) {
20800
20870
 
20801
20871
  // src/api/models/PlanDetailResponseData.ts
20802
20872
  function instanceOfPlanDetailResponseData(value) {
20873
+ if (!("audienceType" in value) || value["audienceType"] === void 0)
20874
+ return false;
20803
20875
  if (!("companyCount" in value) || value["companyCount"] === void 0)
20804
20876
  return false;
20805
20877
  if (!("createdAt" in value) || value["createdAt"] === void 0)
@@ -20826,6 +20898,7 @@ function PlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
20826
20898
  return json;
20827
20899
  }
20828
20900
  return {
20901
+ audienceType: json["audience_type"],
20829
20902
  companyCount: json["company_count"],
20830
20903
  createdAt: new Date(json["created_at"]),
20831
20904
  description: json["description"],
@@ -20843,6 +20916,7 @@ function PlanDetailResponseDataToJSON(value) {
20843
20916
  return value;
20844
20917
  }
20845
20918
  return {
20919
+ audience_type: value["audienceType"],
20846
20920
  company_count: value["companyCount"],
20847
20921
  created_at: value["createdAt"].toISOString(),
20848
20922
  description: value["description"],
@@ -21204,7 +21278,6 @@ function CrmDealResponseDataFromJSONTyped(json, ignoreDiscriminator) {
21204
21278
  createdAt: new Date(json["created_at"]),
21205
21279
  dealExternalId: json["deal_external_id"],
21206
21280
  dealId: json["deal_id"],
21207
- deletedAt: json["deleted_at"] == null ? void 0 : new Date(json["deleted_at"]),
21208
21281
  environmentId: json["environment_id"],
21209
21282
  mrr: json["mrr"],
21210
21283
  name: json["name"] == null ? void 0 : json["name"],
@@ -21223,7 +21296,6 @@ function CrmDealResponseDataToJSON(value) {
21223
21296
  created_at: value["createdAt"].toISOString(),
21224
21297
  deal_external_id: value["dealExternalId"],
21225
21298
  deal_id: value["dealId"],
21226
- deleted_at: value["deletedAt"] == null ? void 0 : value["deletedAt"].toISOString(),
21227
21299
  environment_id: value["environmentId"],
21228
21300
  mrr: value["mrr"],
21229
21301
  name: value["name"],
@@ -21255,7 +21327,6 @@ function CrmLineItemResponseDataFromJSONTyped(json, ignoreDiscriminator) {
21255
21327
  accountId: json["account_id"],
21256
21328
  createdAt: new Date(json["created_at"]),
21257
21329
  dealId: json["deal_id"] == null ? void 0 : json["deal_id"],
21258
- deletedAt: json["deleted_at"] == null ? void 0 : new Date(json["deleted_at"]),
21259
21330
  environmentId: json["environment_id"],
21260
21331
  productExternalId: json["product_external_id"] == null ? void 0 : json["product_external_id"],
21261
21332
  updatedAt: new Date(json["updated_at"])
@@ -21269,7 +21340,6 @@ function CrmLineItemResponseDataToJSON(value) {
21269
21340
  account_id: value["accountId"],
21270
21341
  created_at: value["createdAt"].toISOString(),
21271
21342
  deal_id: value["dealId"],
21272
- deleted_at: value["deletedAt"] == null ? void 0 : value["deletedAt"].toISOString(),
21273
21343
  environment_id: value["environmentId"],
21274
21344
  product_external_id: value["productExternalId"],
21275
21345
  updated_at: value["updatedAt"].toISOString()
@@ -21311,7 +21381,6 @@ function CrmProductResponseDataFromJSONTyped(json, ignoreDiscriminator) {
21311
21381
  accountId: json["account_id"],
21312
21382
  createdAt: new Date(json["created_at"]),
21313
21383
  currency: json["currency"],
21314
- deletedAt: json["deleted_at"] == null ? void 0 : new Date(json["deleted_at"]),
21315
21384
  environmentId: json["environment_id"],
21316
21385
  externalId: json["external_id"],
21317
21386
  name: json["name"],
@@ -21329,7 +21398,6 @@ function CrmProductResponseDataToJSON(value) {
21329
21398
  account_id: value["accountId"],
21330
21399
  created_at: value["createdAt"].toISOString(),
21331
21400
  currency: value["currency"],
21332
- deleted_at: value["deletedAt"] == null ? void 0 : value["deletedAt"].toISOString(),
21333
21401
  environment_id: value["environmentId"],
21334
21402
  external_id: value["externalId"],
21335
21403
  name: value["name"],
@@ -23758,6 +23826,154 @@ function GetWebhookResponseToJSON(value) {
23758
23826
  };
23759
23827
  }
23760
23828
 
23829
+ // src/api/models/HydrateComponentResponse.ts
23830
+ function instanceOfHydrateComponentResponse(value) {
23831
+ if (!("data" in value) || value["data"] === void 0)
23832
+ return false;
23833
+ if (!("params" in value) || value["params"] === void 0)
23834
+ return false;
23835
+ return true;
23836
+ }
23837
+ function HydrateComponentResponseFromJSON(json) {
23838
+ return HydrateComponentResponseFromJSONTyped(json, false);
23839
+ }
23840
+ function HydrateComponentResponseFromJSONTyped(json, ignoreDiscriminator) {
23841
+ if (json == null) {
23842
+ return json;
23843
+ }
23844
+ return {
23845
+ data: ComponentHydrateViewFromJSON(json["data"]),
23846
+ params: json["params"]
23847
+ };
23848
+ }
23849
+ function HydrateComponentResponseToJSON(value) {
23850
+ if (value == null) {
23851
+ return value;
23852
+ }
23853
+ return {
23854
+ data: ComponentHydrateViewToJSON(value["data"]),
23855
+ params: value["params"]
23856
+ };
23857
+ }
23858
+
23859
+ // src/api/models/IssueTemporaryAccessTokenRequestBody.ts
23860
+ function instanceOfIssueTemporaryAccessTokenRequestBody(value) {
23861
+ if (!("lookup" in value) || value["lookup"] === void 0)
23862
+ return false;
23863
+ if (!("resourceType" in value) || value["resourceType"] === void 0)
23864
+ return false;
23865
+ return true;
23866
+ }
23867
+ function IssueTemporaryAccessTokenRequestBodyFromJSON(json) {
23868
+ return IssueTemporaryAccessTokenRequestBodyFromJSONTyped(json, false);
23869
+ }
23870
+ function IssueTemporaryAccessTokenRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
23871
+ if (json == null) {
23872
+ return json;
23873
+ }
23874
+ return {
23875
+ lookup: json["lookup"],
23876
+ resourceType: json["resource_type"]
23877
+ };
23878
+ }
23879
+ function IssueTemporaryAccessTokenRequestBodyToJSON(value) {
23880
+ if (value == null) {
23881
+ return value;
23882
+ }
23883
+ return {
23884
+ lookup: value["lookup"],
23885
+ resource_type: value["resourceType"]
23886
+ };
23887
+ }
23888
+
23889
+ // src/api/models/IssueTemporaryAccessTokenResponseData.ts
23890
+ function instanceOfIssueTemporaryAccessTokenResponseData(value) {
23891
+ if (!("accountId" in value) || value["accountId"] === void 0)
23892
+ return false;
23893
+ if (!("apiKeyId" in value) || value["apiKeyId"] === void 0)
23894
+ return false;
23895
+ if (!("createdAt" in value) || value["createdAt"] === void 0)
23896
+ return false;
23897
+ if (!("environmentId" in value) || value["environmentId"] === void 0)
23898
+ return false;
23899
+ if (!("expiredAt" in value) || value["expiredAt"] === void 0)
23900
+ return false;
23901
+ if (!("id" in value) || value["id"] === void 0)
23902
+ return false;
23903
+ if (!("resourceType" in value) || value["resourceType"] === void 0)
23904
+ return false;
23905
+ if (!("token" in value) || value["token"] === void 0)
23906
+ return false;
23907
+ if (!("updatedAt" in value) || value["updatedAt"] === void 0)
23908
+ return false;
23909
+ return true;
23910
+ }
23911
+ function IssueTemporaryAccessTokenResponseDataFromJSON(json) {
23912
+ return IssueTemporaryAccessTokenResponseDataFromJSONTyped(json, false);
23913
+ }
23914
+ function IssueTemporaryAccessTokenResponseDataFromJSONTyped(json, ignoreDiscriminator) {
23915
+ if (json == null) {
23916
+ return json;
23917
+ }
23918
+ return {
23919
+ accountId: json["account_id"],
23920
+ apiKeyId: json["api_key_id"],
23921
+ createdAt: new Date(json["created_at"]),
23922
+ environmentId: json["environment_id"],
23923
+ expiredAt: new Date(json["expired_at"]),
23924
+ id: json["id"],
23925
+ resourceType: json["resource_type"],
23926
+ token: json["token"],
23927
+ updatedAt: new Date(json["updated_at"])
23928
+ };
23929
+ }
23930
+ function IssueTemporaryAccessTokenResponseDataToJSON(value) {
23931
+ if (value == null) {
23932
+ return value;
23933
+ }
23934
+ return {
23935
+ account_id: value["accountId"],
23936
+ api_key_id: value["apiKeyId"],
23937
+ created_at: value["createdAt"].toISOString(),
23938
+ environment_id: value["environmentId"],
23939
+ expired_at: value["expiredAt"].toISOString(),
23940
+ id: value["id"],
23941
+ resource_type: value["resourceType"],
23942
+ token: value["token"],
23943
+ updated_at: value["updatedAt"].toISOString()
23944
+ };
23945
+ }
23946
+
23947
+ // src/api/models/IssueTemporaryAccessTokenResponse.ts
23948
+ function instanceOfIssueTemporaryAccessTokenResponse(value) {
23949
+ if (!("data" in value) || value["data"] === void 0)
23950
+ return false;
23951
+ if (!("params" in value) || value["params"] === void 0)
23952
+ return false;
23953
+ return true;
23954
+ }
23955
+ function IssueTemporaryAccessTokenResponseFromJSON(json) {
23956
+ return IssueTemporaryAccessTokenResponseFromJSONTyped(json, false);
23957
+ }
23958
+ function IssueTemporaryAccessTokenResponseFromJSONTyped(json, ignoreDiscriminator) {
23959
+ if (json == null) {
23960
+ return json;
23961
+ }
23962
+ return {
23963
+ data: IssueTemporaryAccessTokenResponseDataFromJSON(json["data"]),
23964
+ params: json["params"]
23965
+ };
23966
+ }
23967
+ function IssueTemporaryAccessTokenResponseToJSON(value) {
23968
+ if (value == null) {
23969
+ return value;
23970
+ }
23971
+ return {
23972
+ data: IssueTemporaryAccessTokenResponseDataToJSON(value["data"]),
23973
+ params: value["params"]
23974
+ };
23975
+ }
23976
+
23761
23977
  // src/api/models/KeysRequestBody.ts
23762
23978
  function instanceOfKeysRequestBody(value) {
23763
23979
  if (!("keys" in value) || value["keys"] === void 0)
@@ -25840,6 +26056,60 @@ function RulesDetailResponseDataToJSON(value) {
25840
26056
  };
25841
26057
  }
25842
26058
 
26059
+ // src/api/models/TemporaryAccessTokenResponseData.ts
26060
+ function instanceOfTemporaryAccessTokenResponseData(value) {
26061
+ if (!("accountId" in value) || value["accountId"] === void 0)
26062
+ return false;
26063
+ if (!("apiKeyId" in value) || value["apiKeyId"] === void 0)
26064
+ return false;
26065
+ if (!("createdAt" in value) || value["createdAt"] === void 0)
26066
+ return false;
26067
+ if (!("environmentId" in value) || value["environmentId"] === void 0)
26068
+ return false;
26069
+ if (!("expiredAt" in value) || value["expiredAt"] === void 0)
26070
+ return false;
26071
+ if (!("id" in value) || value["id"] === void 0)
26072
+ return false;
26073
+ if (!("resourceType" in value) || value["resourceType"] === void 0)
26074
+ return false;
26075
+ if (!("updatedAt" in value) || value["updatedAt"] === void 0)
26076
+ return false;
26077
+ return true;
26078
+ }
26079
+ function TemporaryAccessTokenResponseDataFromJSON(json) {
26080
+ return TemporaryAccessTokenResponseDataFromJSONTyped(json, false);
26081
+ }
26082
+ function TemporaryAccessTokenResponseDataFromJSONTyped(json, ignoreDiscriminator) {
26083
+ if (json == null) {
26084
+ return json;
26085
+ }
26086
+ return {
26087
+ accountId: json["account_id"],
26088
+ apiKeyId: json["api_key_id"],
26089
+ createdAt: new Date(json["created_at"]),
26090
+ environmentId: json["environment_id"],
26091
+ expiredAt: new Date(json["expired_at"]),
26092
+ id: json["id"],
26093
+ resourceType: json["resource_type"],
26094
+ updatedAt: new Date(json["updated_at"])
26095
+ };
26096
+ }
26097
+ function TemporaryAccessTokenResponseDataToJSON(value) {
26098
+ if (value == null) {
26099
+ return value;
26100
+ }
26101
+ return {
26102
+ account_id: value["accountId"],
26103
+ api_key_id: value["apiKeyId"],
26104
+ created_at: value["createdAt"].toISOString(),
26105
+ environment_id: value["environmentId"],
26106
+ expired_at: value["expiredAt"].toISOString(),
26107
+ id: value["id"],
26108
+ resource_type: value["resourceType"],
26109
+ updated_at: value["updatedAt"].toISOString()
26110
+ };
26111
+ }
26112
+
25843
26113
  // src/api/models/UpdateApiKeyRequestBody.ts
25844
26114
  function instanceOfUpdateApiKeyRequestBody(value) {
25845
26115
  return true;
@@ -26044,6 +26314,10 @@ var UpdateComponentRequestBodyEntityTypeEnum = {
26044
26314
  Entitlement: "entitlement",
26045
26315
  Billing: "billing"
26046
26316
  };
26317
+ var UpdateComponentRequestBodyStateEnum = {
26318
+ Draft: "draft",
26319
+ Live: "live"
26320
+ };
26047
26321
  function instanceOfUpdateComponentRequestBody(value) {
26048
26322
  return true;
26049
26323
  }
@@ -26057,7 +26331,8 @@ function UpdateComponentRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
26057
26331
  return {
26058
26332
  ast: json["ast"] == null ? void 0 : json["ast"],
26059
26333
  entityType: json["entity_type"] == null ? void 0 : json["entity_type"],
26060
- name: json["name"] == null ? void 0 : json["name"]
26334
+ name: json["name"] == null ? void 0 : json["name"],
26335
+ state: json["state"] == null ? void 0 : json["state"]
26061
26336
  };
26062
26337
  }
26063
26338
  function UpdateComponentRequestBodyToJSON(value) {
@@ -26067,7 +26342,8 @@ function UpdateComponentRequestBodyToJSON(value) {
26067
26342
  return {
26068
26343
  ast: value["ast"],
26069
26344
  entity_type: value["entityType"],
26070
- name: value["name"]
26345
+ name: value["name"],
26346
+ state: value["state"]
26071
26347
  };
26072
26348
  }
26073
26349
 
@@ -26474,6 +26750,8 @@ var UpdatePlanRequestBodyPlanTypeEnum = {
26474
26750
  Other: "other"
26475
26751
  };
26476
26752
  function instanceOfUpdatePlanRequestBody(value) {
26753
+ if (!("audienceType" in value) || value["audienceType"] === void 0)
26754
+ return false;
26477
26755
  if (!("name" in value) || value["name"] === void 0)
26478
26756
  return false;
26479
26757
  return true;
@@ -26486,6 +26764,7 @@ function UpdatePlanRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
26486
26764
  return json;
26487
26765
  }
26488
26766
  return {
26767
+ audienceType: json["audience_type"],
26489
26768
  description: json["description"] == null ? void 0 : json["description"],
26490
26769
  name: json["name"],
26491
26770
  planType: json["plan_type"] == null ? void 0 : json["plan_type"]
@@ -26496,6 +26775,7 @@ function UpdatePlanRequestBodyToJSON(value) {
26496
26775
  return value;
26497
26776
  }
26498
26777
  return {
26778
+ audience_type: value["audienceType"],
26499
26779
  description: value["description"],
26500
26780
  name: value["name"],
26501
26781
  plan_type: value["planType"]
@@ -26716,6 +26996,62 @@ function UpdateWebhookResponseToJSON(value) {
26716
26996
  };
26717
26997
  }
26718
26998
 
26999
+ // src/api/models/UpsertBillingProductPlanResponse.ts
27000
+ function instanceOfUpsertBillingProductPlanResponse(value) {
27001
+ if (!("data" in value) || value["data"] === void 0)
27002
+ return false;
27003
+ if (!("params" in value) || value["params"] === void 0)
27004
+ return false;
27005
+ return true;
27006
+ }
27007
+ function UpsertBillingProductPlanResponseFromJSON(json) {
27008
+ return UpsertBillingProductPlanResponseFromJSONTyped(json, false);
27009
+ }
27010
+ function UpsertBillingProductPlanResponseFromJSONTyped(json, ignoreDiscriminator) {
27011
+ if (json == null) {
27012
+ return json;
27013
+ }
27014
+ return {
27015
+ data: BillingProductPlanResponseDataFromJSON(json["data"]),
27016
+ params: json["params"]
27017
+ };
27018
+ }
27019
+ function UpsertBillingProductPlanResponseToJSON(value) {
27020
+ if (value == null) {
27021
+ return value;
27022
+ }
27023
+ return {
27024
+ data: BillingProductPlanResponseDataToJSON(value["data"]),
27025
+ params: value["params"]
27026
+ };
27027
+ }
27028
+
27029
+ // src/api/models/UpsertBillingProductRequestBody.ts
27030
+ function instanceOfUpsertBillingProductRequestBody(value) {
27031
+ if (!("billingProductID" in value) || value["billingProductID"] === void 0)
27032
+ return false;
27033
+ return true;
27034
+ }
27035
+ function UpsertBillingProductRequestBodyFromJSON(json) {
27036
+ return UpsertBillingProductRequestBodyFromJSONTyped(json, false);
27037
+ }
27038
+ function UpsertBillingProductRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
27039
+ if (json == null) {
27040
+ return json;
27041
+ }
27042
+ return {
27043
+ billingProductID: json["BillingProductID"]
27044
+ };
27045
+ }
27046
+ function UpsertBillingProductRequestBodyToJSON(value) {
27047
+ if (value == null) {
27048
+ return value;
27049
+ }
27050
+ return {
27051
+ BillingProductID: value["billingProductID"]
27052
+ };
27053
+ }
27054
+
26719
27055
  // src/api/models/UpsertBillingProductResponse.ts
26720
27056
  function instanceOfUpsertBillingProductResponse(value) {
26721
27057
  if (!("data" in value) || value["data"] === void 0)
@@ -27220,6 +27556,55 @@ function WebhookEventResponseDataToJSON(value) {
27220
27556
  };
27221
27557
  }
27222
27558
 
27559
+ // src/api/apis/AccesstokensApi.ts
27560
+ var AccesstokensApi = class extends BaseAPI {
27561
+ /**
27562
+ * Issue temporary access token
27563
+ */
27564
+ async issueTemporaryAccessTokenRaw(requestParameters, initOverrides) {
27565
+ if (requestParameters["issueTemporaryAccessTokenRequestBody"] == null) {
27566
+ throw new RequiredError(
27567
+ "issueTemporaryAccessTokenRequestBody",
27568
+ 'Required parameter "issueTemporaryAccessTokenRequestBody" was null or undefined when calling issueTemporaryAccessToken().'
27569
+ );
27570
+ }
27571
+ const queryParameters = {};
27572
+ const headerParameters = {};
27573
+ headerParameters["Content-Type"] = "application/json";
27574
+ if (this.configuration && this.configuration.apiKey) {
27575
+ headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
27576
+ "X-Schematic-Api-Key"
27577
+ );
27578
+ }
27579
+ const response = await this.request(
27580
+ {
27581
+ path: `/temporary-access-tokens`,
27582
+ method: "POST",
27583
+ headers: headerParameters,
27584
+ query: queryParameters,
27585
+ body: IssueTemporaryAccessTokenRequestBodyToJSON(
27586
+ requestParameters["issueTemporaryAccessTokenRequestBody"]
27587
+ )
27588
+ },
27589
+ initOverrides
27590
+ );
27591
+ return new JSONApiResponse(
27592
+ response,
27593
+ (jsonValue) => IssueTemporaryAccessTokenResponseFromJSON(jsonValue)
27594
+ );
27595
+ }
27596
+ /**
27597
+ * Issue temporary access token
27598
+ */
27599
+ async issueTemporaryAccessToken(requestParameters, initOverrides) {
27600
+ const response = await this.issueTemporaryAccessTokenRaw(
27601
+ requestParameters,
27602
+ initOverrides
27603
+ );
27604
+ return await response.value();
27605
+ }
27606
+ };
27607
+
27223
27608
  // src/api/apis/AccountsApi.ts
27224
27609
  var AccountsApi = class extends BaseAPI {
27225
27610
  /**
@@ -29754,6 +30139,50 @@ var ComponentsApi = class extends BaseAPI {
29754
30139
  );
29755
30140
  return await response.value();
29756
30141
  }
30142
+ /**
30143
+ * Hydrate component
30144
+ */
30145
+ async hydrateComponentRaw(requestParameters, initOverrides) {
30146
+ if (requestParameters["componentId"] == null) {
30147
+ throw new RequiredError(
30148
+ "componentId",
30149
+ 'Required parameter "componentId" was null or undefined when calling hydrateComponent().'
30150
+ );
30151
+ }
30152
+ const queryParameters = {};
30153
+ const headerParameters = {};
30154
+ if (this.configuration && this.configuration.apiKey) {
30155
+ headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
30156
+ "X-Schematic-Api-Key"
30157
+ );
30158
+ }
30159
+ const response = await this.request(
30160
+ {
30161
+ path: `/components/{component_id}/hydrate`.replace(
30162
+ `{${"component_id"}}`,
30163
+ encodeURIComponent(String(requestParameters["componentId"]))
30164
+ ),
30165
+ method: "GET",
30166
+ headers: headerParameters,
30167
+ query: queryParameters
30168
+ },
30169
+ initOverrides
30170
+ );
30171
+ return new JSONApiResponse(
30172
+ response,
30173
+ (jsonValue) => HydrateComponentResponseFromJSON(jsonValue)
30174
+ );
30175
+ }
30176
+ /**
30177
+ * Hydrate component
30178
+ */
30179
+ async hydrateComponent(requestParameters, initOverrides) {
30180
+ const response = await this.hydrateComponentRaw(
30181
+ requestParameters,
30182
+ initOverrides
30183
+ );
30184
+ return await response.value();
30185
+ }
29757
30186
  /**
29758
30187
  * List components
29759
30188
  */
@@ -32934,6 +33363,60 @@ var PlansApi = class extends BaseAPI {
32934
33363
  const response = await this.updatePlanRaw(requestParameters, initOverrides);
32935
33364
  return await response.value();
32936
33365
  }
33366
+ /**
33367
+ * Upsert billing product plan
33368
+ */
33369
+ async upsertBillingProductPlanRaw(requestParameters, initOverrides) {
33370
+ if (requestParameters["upsertBillingProductRequestBody"] == null) {
33371
+ throw new RequiredError(
33372
+ "upsertBillingProductRequestBody",
33373
+ 'Required parameter "upsertBillingProductRequestBody" was null or undefined when calling upsertBillingProductPlan().'
33374
+ );
33375
+ }
33376
+ if (requestParameters["planId"] == null) {
33377
+ throw new RequiredError(
33378
+ "planId",
33379
+ 'Required parameter "planId" was null or undefined when calling upsertBillingProductPlan().'
33380
+ );
33381
+ }
33382
+ const queryParameters = {};
33383
+ const headerParameters = {};
33384
+ headerParameters["Content-Type"] = "application/json";
33385
+ if (this.configuration && this.configuration.apiKey) {
33386
+ headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
33387
+ "X-Schematic-Api-Key"
33388
+ );
33389
+ }
33390
+ const response = await this.request(
33391
+ {
33392
+ path: `/plans/{plan_id}/billing_products`.replace(
33393
+ `{${"plan_id"}}`,
33394
+ encodeURIComponent(String(requestParameters["planId"]))
33395
+ ),
33396
+ method: "PUT",
33397
+ headers: headerParameters,
33398
+ query: queryParameters,
33399
+ body: UpsertBillingProductRequestBodyToJSON(
33400
+ requestParameters["upsertBillingProductRequestBody"]
33401
+ )
33402
+ },
33403
+ initOverrides
33404
+ );
33405
+ return new JSONApiResponse(
33406
+ response,
33407
+ (jsonValue) => UpsertBillingProductPlanResponseFromJSON(jsonValue)
33408
+ );
33409
+ }
33410
+ /**
33411
+ * Upsert billing product plan
33412
+ */
33413
+ async upsertBillingProductPlan(requestParameters, initOverrides) {
33414
+ const response = await this.upsertBillingProductPlanRaw(
33415
+ requestParameters,
33416
+ initOverrides
33417
+ );
33418
+ return await response.value();
33419
+ }
32937
33420
  };
32938
33421
 
32939
33422
  // src/api/apis/WebhooksApi.ts
@@ -33526,6 +34009,7 @@ var offlineFetchApi = async (input, init2) => {
33526
34009
 
33527
34010
  // src/index.ts
33528
34011
  var Schematic = class {
34012
+ AccessTokens;
33529
34013
  Accounts;
33530
34014
  Billing;
33531
34015
  Companies;
@@ -33544,7 +34028,7 @@ var Schematic = class {
33544
34028
  constructor(apiKey, opts) {
33545
34029
  const { offline = false } = opts ?? {};
33546
34030
  const { basePath, flagDefaults = {} } = opts ?? {};
33547
- const version = "1.0.16";
34031
+ const version = "1.0.18";
33548
34032
  const headers = {
33549
34033
  "User-Agent": `schematic-typescript-node@v${version}`
33550
34034
  };
@@ -33577,6 +34061,7 @@ var Schematic = class {
33577
34061
  }
33578
34062
  this.offline = offline;
33579
34063
  this.flagDefaults = flagDefaults;
34064
+ this.AccessTokens = new AccesstokensApi(config);
33580
34065
  this.Accounts = new AccountsApi(config);
33581
34066
  this.Billing = new BillingApi(config);
33582
34067
  this.Companies = new CompaniesApi(config);
@@ -33662,6 +34147,7 @@ function init(apiKey, opts) {
33662
34147
  return new Schematic(apiKey, opts);
33663
34148
  }
33664
34149
  export {
34150
+ AccesstokensApi,
33665
34151
  AccountsApi,
33666
34152
  ApiErrorFromJSON,
33667
34153
  ApiErrorFromJSONTyped,
@@ -33684,6 +34170,9 @@ export {
33684
34170
  BASE_PATH,
33685
34171
  BaseAPI,
33686
34172
  BillingApi,
34173
+ BillingProductPlanResponseDataFromJSON,
34174
+ BillingProductPlanResponseDataFromJSONTyped,
34175
+ BillingProductPlanResponseDataToJSON,
33687
34176
  BillingProductResponseDataFromJSON,
33688
34177
  BillingProductResponseDataFromJSONTyped,
33689
34178
  BillingProductResponseDataToJSON,
@@ -33735,6 +34224,9 @@ export {
33735
34224
  CompanySubscriptionResponseDataFromJSON,
33736
34225
  CompanySubscriptionResponseDataFromJSONTyped,
33737
34226
  CompanySubscriptionResponseDataToJSON,
34227
+ ComponentHydrateViewFromJSON,
34228
+ ComponentHydrateViewFromJSONTyped,
34229
+ ComponentHydrateViewToJSON,
33738
34230
  ComponentResponseDataFromJSON,
33739
34231
  ComponentResponseDataFromJSONTyped,
33740
34232
  ComponentResponseDataToJSON,
@@ -34238,6 +34730,18 @@ export {
34238
34730
  GetWebhookResponseFromJSON,
34239
34731
  GetWebhookResponseFromJSONTyped,
34240
34732
  GetWebhookResponseToJSON,
34733
+ HydrateComponentResponseFromJSON,
34734
+ HydrateComponentResponseFromJSONTyped,
34735
+ HydrateComponentResponseToJSON,
34736
+ IssueTemporaryAccessTokenRequestBodyFromJSON,
34737
+ IssueTemporaryAccessTokenRequestBodyFromJSONTyped,
34738
+ IssueTemporaryAccessTokenRequestBodyToJSON,
34739
+ IssueTemporaryAccessTokenResponseDataFromJSON,
34740
+ IssueTemporaryAccessTokenResponseDataFromJSONTyped,
34741
+ IssueTemporaryAccessTokenResponseDataToJSON,
34742
+ IssueTemporaryAccessTokenResponseFromJSON,
34743
+ IssueTemporaryAccessTokenResponseFromJSONTyped,
34744
+ IssueTemporaryAccessTokenResponseToJSON,
34241
34745
  JSONApiResponse,
34242
34746
  KeysRequestBodyFromJSON,
34243
34747
  KeysRequestBodyFromJSONTyped,
@@ -34478,6 +34982,9 @@ export {
34478
34982
  SegmentStatusRespFromJSON,
34479
34983
  SegmentStatusRespFromJSONTyped,
34480
34984
  SegmentStatusRespToJSON,
34985
+ TemporaryAccessTokenResponseDataFromJSON,
34986
+ TemporaryAccessTokenResponseDataFromJSONTyped,
34987
+ TemporaryAccessTokenResponseDataToJSON,
34481
34988
  TextApiResponse,
34482
34989
  UpdateApiKeyRequestBodyFromJSON,
34483
34990
  UpdateApiKeyRequestBodyFromJSONTyped,
@@ -34502,6 +35009,7 @@ export {
34502
35009
  UpdateComponentRequestBodyEntityTypeEnum,
34503
35010
  UpdateComponentRequestBodyFromJSON,
34504
35011
  UpdateComponentRequestBodyFromJSONTyped,
35012
+ UpdateComponentRequestBodyStateEnum,
34505
35013
  UpdateComponentRequestBodyToJSON,
34506
35014
  UpdateComponentResponseFromJSON,
34507
35015
  UpdateComponentResponseFromJSONTyped,
@@ -34567,6 +35075,12 @@ export {
34567
35075
  UpdateWebhookResponseFromJSON,
34568
35076
  UpdateWebhookResponseFromJSONTyped,
34569
35077
  UpdateWebhookResponseToJSON,
35078
+ UpsertBillingProductPlanResponseFromJSON,
35079
+ UpsertBillingProductPlanResponseFromJSONTyped,
35080
+ UpsertBillingProductPlanResponseToJSON,
35081
+ UpsertBillingProductRequestBodyFromJSON,
35082
+ UpsertBillingProductRequestBodyFromJSONTyped,
35083
+ UpsertBillingProductRequestBodyToJSON,
34570
35084
  UpsertBillingProductResponseFromJSON,
34571
35085
  UpsertBillingProductResponseFromJSONTyped,
34572
35086
  UpsertBillingProductResponseToJSON,
@@ -34634,6 +35148,7 @@ export {
34634
35148
  instanceOfApiKeyRequestResponseData,
34635
35149
  instanceOfApiKeyResponseData,
34636
35150
  instanceOfAudienceRequestBody,
35151
+ instanceOfBillingProductPlanResponseData,
34637
35152
  instanceOfBillingProductResponseData,
34638
35153
  instanceOfBillingSubscriptionResponseData,
34639
35154
  instanceOfCheckFlagOutputWithFlagKey,
@@ -34650,6 +35165,7 @@ export {
34650
35165
  instanceOfCompanyPlanResponseData,
34651
35166
  instanceOfCompanyResponseData,
34652
35167
  instanceOfCompanySubscriptionResponseData,
35168
+ instanceOfComponentHydrateView,
34653
35169
  instanceOfComponentResponseData,
34654
35170
  instanceOfCountApiKeysParams,
34655
35171
  instanceOfCountApiKeysResponse,
@@ -34805,6 +35321,10 @@ export {
34805
35321
  instanceOfGetUserResponse,
34806
35322
  instanceOfGetWebhookEventResponse,
34807
35323
  instanceOfGetWebhookResponse,
35324
+ instanceOfHydrateComponentResponse,
35325
+ instanceOfIssueTemporaryAccessTokenRequestBody,
35326
+ instanceOfIssueTemporaryAccessTokenResponse,
35327
+ instanceOfIssueTemporaryAccessTokenResponseData,
34808
35328
  instanceOfKeysRequestBody,
34809
35329
  instanceOfListApiKeysParams,
34810
35330
  instanceOfListApiKeysResponse,
@@ -34881,6 +35401,7 @@ export {
34881
35401
  instanceOfRuleResponseData,
34882
35402
  instanceOfRulesDetailResponseData,
34883
35403
  instanceOfSegmentStatusResp,
35404
+ instanceOfTemporaryAccessTokenResponseData,
34884
35405
  instanceOfUpdateApiKeyRequestBody,
34885
35406
  instanceOfUpdateApiKeyResponse,
34886
35407
  instanceOfUpdateAudienceRequestBody,
@@ -34906,6 +35427,8 @@ export {
34906
35427
  instanceOfUpdateRuleRequestBody,
34907
35428
  instanceOfUpdateWebhookRequestBody,
34908
35429
  instanceOfUpdateWebhookResponse,
35430
+ instanceOfUpsertBillingProductPlanResponse,
35431
+ instanceOfUpsertBillingProductRequestBody,
34909
35432
  instanceOfUpsertBillingProductResponse,
34910
35433
  instanceOfUpsertBillingSubscriptionResponse,
34911
35434
  instanceOfUpsertCompanyRequestBody,