@schematichq/schematic-typescript-node 1.3.2 → 1.4.1

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.
Files changed (2064) hide show
  1. package/README.md +36 -2
  2. package/dist/Client.d.ts +9 -0
  3. package/dist/api/resources/accounts/client/Client.d.ts +33 -16
  4. package/dist/api/resources/accounts/client/requests/CountAuditLogsRequest.d.ts +24 -0
  5. package/dist/api/resources/accounts/client/requests/CreateApiKeyRequestBody.d.ts +1 -0
  6. package/dist/api/resources/accounts/client/requests/ListAuditLogsRequest.d.ts +24 -0
  7. package/dist/api/resources/accounts/client/requests/index.d.ts +2 -2
  8. package/dist/api/resources/accounts/types/CountAuditLogsParams.d.ts +15 -0
  9. package/dist/api/resources/accounts/types/CountAuditLogsResponse.d.ts +6 -0
  10. package/dist/api/resources/accounts/types/GetAuditLogResponse.d.ts +6 -0
  11. package/dist/api/resources/accounts/types/GetWhoAmIResponse.d.ts +6 -0
  12. package/dist/api/resources/accounts/types/ListAuditLogsParams.d.ts +15 -0
  13. package/dist/api/resources/accounts/types/ListAuditLogsResponse.d.ts +6 -0
  14. package/dist/api/resources/accounts/types/index.d.ts +6 -5
  15. package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +2 -0
  16. package/dist/api/resources/companies/client/Client.d.ts +12 -48
  17. package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +27 -0
  18. package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +27 -0
  19. package/dist/api/resources/companies/client/requests/index.d.ts +0 -2
  20. package/dist/api/resources/companies/types/CountCompaniesParams.d.ts +21 -0
  21. package/dist/api/resources/companies/types/ListCompaniesParams.d.ts +21 -0
  22. package/dist/api/resources/companies/types/index.d.ts +0 -4
  23. package/dist/api/resources/componentspublic/client/Client.d.ts +26 -0
  24. package/dist/api/resources/componentspublic/client/index.d.ts +1 -0
  25. package/dist/api/resources/componentspublic/index.d.ts +2 -0
  26. package/dist/api/resources/componentspublic/types/GetPublicPlansResponse.d.ts +6 -0
  27. package/dist/api/resources/componentspublic/types/index.d.ts +1 -0
  28. package/dist/api/resources/credits/client/Client.d.ts +50 -0
  29. package/dist/api/resources/credits/client/requests/CountBillingPlanCreditGrantsRequest.d.ts +3 -1
  30. package/dist/api/resources/credits/client/requests/CountCreditEventLedgerRequest.d.ts +26 -0
  31. package/dist/api/resources/credits/client/requests/ListBillingPlanCreditGrantsRequest.d.ts +3 -1
  32. package/dist/api/resources/credits/client/requests/ListCreditEventLedgerRequest.d.ts +26 -0
  33. package/dist/api/resources/credits/client/requests/index.d.ts +2 -0
  34. package/dist/api/resources/credits/types/CountBillingPlanCreditGrantsParams.d.ts +1 -0
  35. package/dist/api/resources/credits/types/CountCreditEventLedgerParams.d.ts +16 -0
  36. package/dist/api/resources/credits/types/CountCreditEventLedgerResponse.d.ts +6 -0
  37. package/dist/api/resources/credits/types/ListBillingPlanCreditGrantsParams.d.ts +1 -0
  38. package/dist/api/resources/credits/types/ListCreditEventLedgerParams.d.ts +16 -0
  39. package/dist/api/resources/credits/types/ListCreditEventLedgerResponse.d.ts +6 -0
  40. package/dist/api/resources/credits/types/index.d.ts +4 -0
  41. package/dist/api/resources/entitlements/client/Client.d.ts +22 -0
  42. package/dist/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +5 -0
  43. package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -0
  44. package/dist/api/resources/entitlements/client/requests/GetFeatureUsageTimeSeriesRequest.d.ts +18 -0
  45. package/dist/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +5 -0
  46. package/dist/api/resources/entitlements/client/requests/index.d.ts +1 -0
  47. package/dist/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +4 -0
  48. package/dist/api/resources/entitlements/types/GetFeatureUsageTimeSeriesParams.d.ts +11 -0
  49. package/dist/api/resources/entitlements/types/GetFeatureUsageTimeSeriesResponse.d.ts +6 -0
  50. package/dist/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +4 -0
  51. package/dist/api/resources/entitlements/types/index.d.ts +2 -0
  52. package/dist/api/resources/features/client/Client.d.ts +2 -0
  53. package/dist/api/resources/features/client/requests/CountFeaturesRequest.d.ts +3 -0
  54. package/dist/api/resources/features/client/requests/ListFeaturesRequest.d.ts +3 -0
  55. package/dist/api/resources/features/types/CountFeaturesParams.d.ts +2 -0
  56. package/dist/api/resources/features/types/ListFeaturesParams.d.ts +2 -0
  57. package/dist/api/resources/index.d.ts +8 -0
  58. package/dist/api/resources/planbundle/client/requests/UpdatePlanBundleRequestBody.d.ts +1 -0
  59. package/dist/api/resources/plangroups/client/Client.d.ts +4 -0
  60. package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +6 -0
  61. package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +6 -0
  62. package/dist/api/resources/planmigrations/client/Client.d.ts +109 -0
  63. package/dist/api/resources/planmigrations/client/requests/CountCompanyMigrationsRequest.d.ts +20 -0
  64. package/dist/api/resources/planmigrations/client/requests/CountMigrationsRequest.d.ts +18 -0
  65. package/dist/api/resources/planmigrations/client/requests/ListCompanyMigrationsRequest.d.ts +20 -0
  66. package/dist/api/resources/planmigrations/client/requests/ListMigrationsRequest.d.ts +18 -0
  67. package/dist/api/resources/planmigrations/client/requests/index.d.ts +4 -0
  68. package/dist/api/resources/planmigrations/index.d.ts +2 -0
  69. package/dist/api/resources/planmigrations/types/CountCompanyMigrationsParams.d.ts +13 -0
  70. package/dist/api/resources/planmigrations/types/CountCompanyMigrationsResponse.d.ts +6 -0
  71. package/dist/api/resources/planmigrations/types/CountMigrationsParams.d.ts +12 -0
  72. package/dist/api/resources/planmigrations/types/CountMigrationsResponse.d.ts +6 -0
  73. package/dist/api/resources/planmigrations/types/GetMigrationResponse.d.ts +6 -0
  74. package/dist/api/resources/planmigrations/types/ListCompanyMigrationsParams.d.ts +13 -0
  75. package/dist/api/resources/planmigrations/types/ListCompanyMigrationsResponse.d.ts +6 -0
  76. package/dist/api/resources/planmigrations/types/ListMigrationsParams.d.ts +12 -0
  77. package/dist/api/resources/planmigrations/types/ListMigrationsResponse.d.ts +6 -0
  78. package/dist/api/resources/planmigrations/types/index.d.ts +9 -0
  79. package/dist/api/resources/plans/client/Client.d.ts +41 -3
  80. package/dist/api/resources/plans/client/requests/GetPlanRequest.d.ts +10 -0
  81. package/dist/api/resources/plans/client/requests/ListPlanIssuesRequest.d.ts +3 -1
  82. package/dist/api/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +12 -0
  83. package/dist/api/resources/plans/client/requests/index.d.ts +2 -0
  84. package/dist/api/resources/plans/types/CountPlansParams.d.ts +1 -0
  85. package/dist/api/resources/plans/types/DeletePlanVersionResponse.d.ts +6 -0
  86. package/dist/api/resources/plans/types/GetPlanParams.d.ts +7 -0
  87. package/dist/api/resources/plans/types/GetPlanResponse.d.ts +1 -1
  88. package/dist/api/resources/plans/types/ListPlanIssuesParams.d.ts +1 -0
  89. package/dist/api/resources/plans/types/ListPlansParams.d.ts +1 -0
  90. package/dist/api/resources/plans/types/PublishPlanVersionResponse.d.ts +6 -0
  91. package/dist/api/resources/plans/types/index.d.ts +3 -0
  92. package/dist/api/resources/scheduledcheckout/client/Client.d.ts +83 -0
  93. package/dist/api/resources/scheduledcheckout/client/requests/CreateScheduledCheckoutRequest.d.ts +15 -0
  94. package/dist/api/resources/scheduledcheckout/client/requests/ListScheduledCheckoutsRequest.d.ts +18 -0
  95. package/dist/api/resources/scheduledcheckout/client/requests/UpdateScheduledCheckoutRequest.d.ts +9 -0
  96. package/dist/api/resources/scheduledcheckout/client/requests/index.d.ts +3 -0
  97. package/dist/api/resources/scheduledcheckout/index.d.ts +2 -0
  98. package/dist/api/resources/scheduledcheckout/types/CreateScheduledCheckoutResponse.d.ts +6 -0
  99. package/dist/api/resources/scheduledcheckout/types/GetScheduledCheckoutResponse.d.ts +6 -0
  100. package/dist/api/resources/scheduledcheckout/types/ListScheduledCheckoutsParams.d.ts +12 -0
  101. package/dist/api/resources/scheduledcheckout/types/ListScheduledCheckoutsResponse.d.ts +6 -0
  102. package/dist/api/resources/scheduledcheckout/types/UpdateScheduledCheckoutResponse.d.ts +6 -0
  103. package/dist/api/resources/scheduledcheckout/types/index.d.ts +5 -0
  104. package/dist/api/types/ActorType.d.ts +8 -0
  105. package/dist/api/types/ApiKeyCreateResponseData.d.ts +1 -0
  106. package/dist/api/types/ApiKeyResponseData.d.ts +1 -0
  107. package/dist/api/types/AuditLogListResponseData.d.ts +18 -0
  108. package/dist/api/types/AuditLogResponseData.d.ts +21 -0
  109. package/dist/api/types/BillingCreditResponseData.d.ts +1 -0
  110. package/dist/api/types/BillingCreditView.d.ts +22 -0
  111. package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +9 -2
  112. package/dist/api/types/CheckFlagResponseData.d.ts +8 -5
  113. package/dist/api/types/CompanyDetailResponseData.d.ts +2 -0
  114. package/dist/api/types/CompanyPlanDetailResponseData.d.ts +2 -0
  115. package/dist/api/types/ComponentDisplaySettings.d.ts +2 -0
  116. package/dist/api/types/ComponentHydrateResponseData.d.ts +1 -0
  117. package/dist/api/types/ComponentPreviewResponseData.d.ts +1 -0
  118. package/dist/api/types/ComponentSettingsResponseData.d.ts +2 -0
  119. package/dist/api/types/ConditionConditionType.d.ts +1 -1
  120. package/dist/api/types/ConditionGroupResponseData.d.ts +10 -0
  121. package/dist/api/types/ConditionGroupView.d.ts +12 -0
  122. package/dist/api/types/ConditionResponseData.d.ts +28 -0
  123. package/dist/api/types/ConditionView.d.ts +35 -0
  124. package/dist/api/types/CreateBillingPlanCreditGrantRequestBody.d.ts +1 -0
  125. package/dist/api/types/CreateEntitlementInBundleRequestBody.d.ts +2 -0
  126. package/dist/api/types/CreateEventRequestBody.d.ts +1 -0
  127. package/dist/api/types/CreditEventLedgerResponseData.d.ts +34 -0
  128. package/dist/api/types/CreditEventType.d.ts +7 -0
  129. package/dist/api/types/CreditsAutoTopupCompanySummary.d.ts +4 -0
  130. package/dist/api/types/CreditsAutoTopupCreditSummary.d.ts +4 -0
  131. package/dist/api/types/CreditsAutoTopupHardFailure.d.ts +7 -0
  132. package/dist/api/types/CreditsAutoTopupRetryFailure.d.ts +8 -0
  133. package/dist/api/types/FeatureCompanyResponseData.d.ts +3 -0
  134. package/dist/api/types/FeatureCompanyUserResponseData.d.ts +1 -0
  135. package/dist/api/types/FeatureEntitlement.d.ts +31 -0
  136. package/dist/api/types/FeatureEntitlementMetricPeriod.d.ts +8 -0
  137. package/dist/api/types/FeatureEntitlementMonthReset.d.ts +6 -0
  138. package/dist/api/types/FeatureUsageLegacyResponseData.d.ts +9 -0
  139. package/dist/api/types/FeatureUsageResponseData.d.ts +3 -0
  140. package/dist/api/types/FeatureUsageTimeSeriesResponseData.d.ts +8 -0
  141. package/dist/api/types/FeatureView.d.ts +21 -0
  142. package/dist/api/types/FlagView.d.ts +17 -0
  143. package/dist/api/types/InvoiceRequestBody.d.ts +2 -0
  144. package/dist/api/types/InvoiceResponseData.d.ts +1 -0
  145. package/dist/api/types/InvoiceStatus.d.ts +8 -0
  146. package/dist/api/types/LimitTimeSeriesPointResponseData.d.ts +9 -0
  147. package/dist/api/types/PlanChangeAction.d.ts +1 -0
  148. package/dist/api/types/PlanChangeResponseData.d.ts +4 -2
  149. package/dist/api/types/PlanCreditGrantView.d.ts +10 -3
  150. package/dist/api/types/PlanDetailResponseData.d.ts +2 -0
  151. package/dist/api/types/PlanGroupDetailResponseData.d.ts +2 -0
  152. package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +2 -0
  153. package/dist/api/types/PlanGroupResponseData.d.ts +2 -0
  154. package/dist/api/types/PlanVersionCompanyMigrationResponseData.d.ts +14 -0
  155. package/dist/api/types/PlanVersionCompanyMigrationStatus.d.ts +8 -0
  156. package/dist/api/types/PlanVersionMigrationResponseData.d.ts +18 -0
  157. package/dist/api/types/PlanVersionMigrationStatus.d.ts +7 -0
  158. package/dist/api/types/PlanVersionMigrationStrategy.d.ts +5 -0
  159. package/dist/api/types/PlanViewPublicResponseData.d.ts +32 -0
  160. package/dist/api/types/PreviewSubscriptionChangeResponseData.d.ts +2 -0
  161. package/dist/api/types/PublicPlansResponseData.d.ts +12 -0
  162. package/dist/api/types/RuleView.d.ts +16 -0
  163. package/dist/api/types/RulesEngineSchemaVersion.d.ts +1 -1
  164. package/dist/api/types/RulesengineCheckFlagResult.d.ts +1 -0
  165. package/dist/api/types/RulesengineCompany.d.ts +2 -1
  166. package/dist/api/types/RulesengineConditionConditionType.d.ts +1 -1
  167. package/dist/api/types/RulesengineEntitlementValueType.d.ts +9 -0
  168. package/dist/api/types/RulesengineFeatureEntitlement.d.ts +31 -0
  169. package/dist/api/types/RulesengineFeatureEntitlementMetricPeriod.d.ts +8 -0
  170. package/dist/api/types/RulesengineFeatureEntitlementMonthReset.d.ts +6 -0
  171. package/dist/api/types/ScheduledCheckoutResponseData.d.ts +17 -0
  172. package/dist/api/types/ScheduledCheckoutStatus.d.ts +8 -0
  173. package/dist/api/types/ScheduledDowngradeConfigBehavior.d.ts +5 -0
  174. package/dist/api/types/ScheduledDowngradeResponseData.d.ts +13 -0
  175. package/dist/api/types/TimeSeriesGranularity.d.ts +7 -0
  176. package/dist/api/types/UpsertCompanyRequestBody.d.ts +1 -0
  177. package/dist/api/types/UsageTimeSeriesPointResponseData.d.ts +6 -0
  178. package/dist/api/types/WebFeatureUsageWebhookOutput.d.ts +10 -0
  179. package/dist/api/types/WebhookRequestType.d.ts +1 -0
  180. package/dist/api/types/WhoAmIResponseData.d.ts +12 -0
  181. package/dist/api/types/index.d.ts +43 -6
  182. package/dist/cache/index.d.ts +3 -0
  183. package/dist/cache/local.d.ts +21 -0
  184. package/dist/cache/redis.d.ts +38 -0
  185. package/dist/cache/types.d.ts +19 -0
  186. package/dist/datastream/datastream-client.d.ts +239 -0
  187. package/dist/datastream/emitter.d.ts +24 -0
  188. package/dist/datastream/index.d.ts +2 -0
  189. package/dist/datastream/types.d.ts +48 -0
  190. package/dist/datastream/websocket-client.d.ts +127 -0
  191. package/dist/index.d.ts +4 -2
  192. package/dist/index.js +3 -3
  193. package/dist/rules-engine.d.ts +54 -0
  194. package/dist/serialization/resources/accounts/client/requests/CreateApiKeyRequestBody.d.ts +1 -0
  195. package/dist/serialization/resources/accounts/types/CountAuditLogsParams.d.ts +16 -0
  196. package/dist/serialization/resources/accounts/types/CountAuditLogsResponse.d.ts +12 -0
  197. package/dist/serialization/resources/accounts/types/GetAuditLogResponse.d.ts +11 -0
  198. package/dist/serialization/resources/accounts/types/GetWhoAmIResponse.d.ts +11 -0
  199. package/dist/serialization/resources/accounts/types/ListAuditLogsParams.d.ts +16 -0
  200. package/dist/serialization/resources/accounts/types/ListAuditLogsResponse.d.ts +12 -0
  201. package/dist/serialization/resources/accounts/types/index.d.ts +6 -5
  202. package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +2 -0
  203. package/dist/serialization/resources/companies/types/CountCompaniesParams.d.ts +13 -0
  204. package/dist/serialization/resources/companies/types/ListCompaniesParams.d.ts +13 -0
  205. package/dist/serialization/resources/companies/types/index.d.ts +0 -4
  206. package/dist/serialization/resources/componentspublic/index.d.ts +1 -0
  207. package/dist/serialization/resources/componentspublic/types/GetPublicPlansResponse.d.ts +11 -0
  208. package/dist/serialization/resources/componentspublic/types/index.d.ts +1 -0
  209. package/dist/serialization/resources/credits/types/CountBillingPlanCreditGrantsParams.d.ts +1 -0
  210. package/dist/serialization/resources/credits/types/CountCreditEventLedgerParams.d.ts +17 -0
  211. package/dist/serialization/resources/credits/types/CountCreditEventLedgerResponse.d.ts +12 -0
  212. package/dist/serialization/resources/credits/types/ListBillingPlanCreditGrantsParams.d.ts +1 -0
  213. package/dist/serialization/resources/credits/types/ListCreditEventLedgerParams.d.ts +17 -0
  214. package/dist/serialization/resources/credits/types/ListCreditEventLedgerResponse.d.ts +12 -0
  215. package/dist/serialization/resources/credits/types/index.d.ts +4 -0
  216. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -0
  217. package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +2 -0
  218. package/dist/serialization/resources/entitlements/types/GetFeatureUsageTimeSeriesParams.d.ts +14 -0
  219. package/dist/serialization/resources/entitlements/types/GetFeatureUsageTimeSeriesResponse.d.ts +12 -0
  220. package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +2 -0
  221. package/dist/serialization/resources/entitlements/types/index.d.ts +2 -0
  222. package/dist/serialization/resources/features/types/CountFeaturesParams.d.ts +1 -0
  223. package/dist/serialization/resources/features/types/ListFeaturesParams.d.ts +1 -0
  224. package/dist/serialization/resources/index.d.ts +7 -0
  225. package/dist/serialization/resources/planbundle/client/requests/UpdatePlanBundleRequestBody.d.ts +1 -0
  226. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +5 -0
  227. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +5 -0
  228. package/dist/serialization/resources/planmigrations/index.d.ts +1 -0
  229. package/dist/serialization/resources/planmigrations/types/CountCompanyMigrationsParams.d.ts +14 -0
  230. package/dist/serialization/resources/planmigrations/types/CountCompanyMigrationsResponse.d.ts +12 -0
  231. package/dist/serialization/resources/planmigrations/types/CountMigrationsParams.d.ts +13 -0
  232. package/dist/serialization/resources/planmigrations/types/CountMigrationsResponse.d.ts +12 -0
  233. package/dist/serialization/resources/planmigrations/types/GetMigrationResponse.d.ts +11 -0
  234. package/dist/serialization/resources/planmigrations/types/ListCompanyMigrationsParams.d.ts +14 -0
  235. package/dist/serialization/resources/planmigrations/types/ListCompanyMigrationsResponse.d.ts +12 -0
  236. package/dist/serialization/resources/planmigrations/types/ListMigrationsParams.d.ts +13 -0
  237. package/dist/serialization/resources/planmigrations/types/ListMigrationsResponse.d.ts +12 -0
  238. package/dist/serialization/resources/planmigrations/types/index.d.ts +9 -0
  239. package/dist/serialization/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +11 -0
  240. package/dist/serialization/resources/plans/client/requests/index.d.ts +1 -0
  241. package/dist/serialization/resources/plans/types/DeletePlanVersionResponse.d.ts +11 -0
  242. package/dist/serialization/resources/plans/types/GetPlanParams.d.ts +9 -0
  243. package/dist/serialization/resources/plans/types/GetPlanResponse.d.ts +2 -1
  244. package/dist/serialization/resources/plans/types/ListPlanIssuesParams.d.ts +1 -0
  245. package/dist/serialization/resources/plans/types/PublishPlanVersionResponse.d.ts +11 -0
  246. package/dist/serialization/resources/plans/types/index.d.ts +3 -0
  247. package/dist/serialization/resources/scheduledcheckout/client/index.d.ts +1 -0
  248. package/dist/serialization/resources/scheduledcheckout/client/requests/CreateScheduledCheckoutRequest.d.ts +12 -0
  249. package/dist/serialization/resources/scheduledcheckout/client/requests/UpdateScheduledCheckoutRequest.d.ts +11 -0
  250. package/dist/serialization/resources/scheduledcheckout/client/requests/index.d.ts +2 -0
  251. package/dist/serialization/resources/scheduledcheckout/index.d.ts +2 -0
  252. package/dist/serialization/resources/scheduledcheckout/types/CreateScheduledCheckoutResponse.d.ts +11 -0
  253. package/dist/serialization/resources/scheduledcheckout/types/GetScheduledCheckoutResponse.d.ts +11 -0
  254. package/dist/serialization/resources/scheduledcheckout/types/ListScheduledCheckoutsParams.d.ts +13 -0
  255. package/dist/serialization/resources/scheduledcheckout/types/ListScheduledCheckoutsResponse.d.ts +12 -0
  256. package/dist/serialization/resources/scheduledcheckout/types/UpdateScheduledCheckoutResponse.d.ts +11 -0
  257. package/dist/serialization/resources/scheduledcheckout/types/index.d.ts +5 -0
  258. package/dist/serialization/types/ActorType.d.ts +7 -0
  259. package/dist/serialization/types/ApiKeyCreateResponseData.d.ts +1 -0
  260. package/dist/serialization/types/ApiKeyResponseData.d.ts +1 -0
  261. package/dist/serialization/types/AuditLogListResponseData.d.ts +24 -0
  262. package/dist/serialization/types/AuditLogResponseData.d.ts +27 -0
  263. package/dist/serialization/types/BillingCreditResponseData.d.ts +1 -0
  264. package/dist/serialization/types/BillingCreditView.d.ts +32 -0
  265. package/dist/serialization/types/BillingPlanCreditGrantResponseData.d.ts +7 -2
  266. package/dist/serialization/types/CheckFlagResponseData.d.ts +2 -0
  267. package/dist/serialization/types/CompanyDetailResponseData.d.ts +4 -0
  268. package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +2 -0
  269. package/dist/serialization/types/ComponentDisplaySettings.d.ts +2 -0
  270. package/dist/serialization/types/ComponentHydrateResponseData.d.ts +2 -0
  271. package/dist/serialization/types/ComponentPreviewResponseData.d.ts +2 -0
  272. package/dist/serialization/types/ComponentSettingsResponseData.d.ts +2 -0
  273. package/dist/serialization/types/ConditionConditionType.d.ts +1 -1
  274. package/dist/serialization/types/ConditionGroupResponseData.d.ts +16 -0
  275. package/dist/serialization/types/ConditionGroupView.d.ts +18 -0
  276. package/dist/serialization/types/ConditionResponseData.d.ts +34 -0
  277. package/dist/serialization/types/ConditionView.d.ts +43 -0
  278. package/dist/serialization/types/CreateBillingPlanCreditGrantRequestBody.d.ts +1 -0
  279. package/dist/serialization/types/CreateEntitlementInBundleRequestBody.d.ts +2 -0
  280. package/dist/serialization/types/CreditEventLedgerResponseData.d.ts +47 -0
  281. package/dist/serialization/types/CreditEventType.d.ts +7 -0
  282. package/dist/serialization/types/CreditsAutoTopupCompanySummary.d.ts +10 -0
  283. package/dist/serialization/types/CreditsAutoTopupCreditSummary.d.ts +10 -0
  284. package/dist/serialization/types/CreditsAutoTopupHardFailure.d.ts +14 -0
  285. package/dist/serialization/types/CreditsAutoTopupRetryFailure.d.ts +15 -0
  286. package/dist/serialization/types/FeatureEntitlement.d.ts +25 -0
  287. package/dist/serialization/types/FeatureEntitlementMetricPeriod.d.ts +7 -0
  288. package/dist/serialization/types/FeatureEntitlementMonthReset.d.ts +7 -0
  289. package/dist/serialization/types/FeatureUsageLegacyResponseData.d.ts +16 -0
  290. package/dist/serialization/types/FeatureUsageTimeSeriesResponseData.d.ts +16 -0
  291. package/dist/serialization/types/FeatureView.d.ts +32 -0
  292. package/dist/serialization/types/FlagView.d.ts +25 -0
  293. package/dist/serialization/types/InvoiceRequestBody.d.ts +2 -0
  294. package/dist/serialization/types/InvoiceResponseData.d.ts +2 -0
  295. package/dist/serialization/types/InvoiceStatus.d.ts +7 -0
  296. package/dist/serialization/types/LimitTimeSeriesPointResponseData.d.ts +16 -0
  297. package/dist/serialization/types/PlanChangeAction.d.ts +1 -1
  298. package/dist/serialization/types/PlanChangeResponseData.d.ts +4 -4
  299. package/dist/serialization/types/PlanCreditGrantView.d.ts +7 -3
  300. package/dist/serialization/types/PlanDetailResponseData.d.ts +2 -0
  301. package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +2 -0
  302. package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +2 -0
  303. package/dist/serialization/types/PlanGroupResponseData.d.ts +2 -0
  304. package/dist/serialization/types/PlanVersionCompanyMigrationResponseData.d.ts +20 -0
  305. package/dist/serialization/types/PlanVersionCompanyMigrationStatus.d.ts +7 -0
  306. package/dist/serialization/types/PlanVersionMigrationResponseData.d.ts +25 -0
  307. package/dist/serialization/types/PlanVersionMigrationStatus.d.ts +7 -0
  308. package/dist/serialization/types/PlanVersionMigrationStrategy.d.ts +7 -0
  309. package/dist/serialization/types/PlanViewPublicResponseData.d.ts +47 -0
  310. package/dist/serialization/types/PreviewSubscriptionChangeResponseData.d.ts +2 -0
  311. package/dist/serialization/types/PublicPlansResponseData.d.ts +21 -0
  312. package/dist/serialization/types/RuleView.d.ts +23 -0
  313. package/dist/serialization/types/RulesEngineSchemaVersion.d.ts +1 -1
  314. package/dist/serialization/types/RulesengineCheckFlagResult.d.ts +2 -0
  315. package/dist/serialization/types/RulesengineCompany.d.ts +3 -1
  316. package/dist/serialization/types/RulesengineConditionConditionType.d.ts +1 -1
  317. package/dist/serialization/types/RulesengineEntitlementValueType.d.ts +7 -0
  318. package/dist/serialization/types/RulesengineFeatureEntitlement.d.ts +25 -0
  319. package/dist/serialization/types/RulesengineFeatureEntitlementMetricPeriod.d.ts +7 -0
  320. package/dist/serialization/types/RulesengineFeatureEntitlementMonthReset.d.ts +7 -0
  321. package/dist/serialization/types/ScheduledCheckoutResponseData.d.ts +23 -0
  322. package/dist/serialization/types/ScheduledCheckoutStatus.d.ts +7 -0
  323. package/dist/serialization/types/ScheduledDowngradeConfigBehavior.d.ts +7 -0
  324. package/dist/serialization/types/ScheduledDowngradeResponseData.d.ts +19 -0
  325. package/dist/serialization/types/TimeSeriesGranularity.d.ts +7 -0
  326. package/dist/serialization/types/UpsertCompanyRequestBody.d.ts +1 -0
  327. package/dist/serialization/types/UsageTimeSeriesPointResponseData.d.ts +12 -0
  328. package/dist/serialization/types/WebFeatureUsageWebhookOutput.d.ts +18 -0
  329. package/dist/serialization/types/WebhookRequestType.d.ts +1 -1
  330. package/dist/serialization/types/WhoAmIResponseData.d.ts +18 -0
  331. package/dist/serialization/types/index.d.ts +43 -6
  332. package/dist/wrapper.d.ts +48 -4
  333. package/package.json +69 -66
  334. package/dist/Client.js +0 -87
  335. package/dist/api/errors/BadRequestError.js +0 -52
  336. package/dist/api/errors/ForbiddenError.js +0 -52
  337. package/dist/api/errors/InternalServerError.js +0 -52
  338. package/dist/api/errors/NotFoundError.js +0 -52
  339. package/dist/api/errors/UnauthorizedError.js +0 -52
  340. package/dist/api/errors/index.js +0 -21
  341. package/dist/api/index.js +0 -19
  342. package/dist/api/resources/accesstokens/client/Client.js +0 -184
  343. package/dist/api/resources/accesstokens/client/index.js +0 -17
  344. package/dist/api/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.js +0 -5
  345. package/dist/api/resources/accesstokens/client/requests/index.js +0 -2
  346. package/dist/api/resources/accesstokens/index.js +0 -18
  347. package/dist/api/resources/accesstokens/types/IssueTemporaryAccessTokenResponse.js +0 -5
  348. package/dist/api/resources/accesstokens/types/index.js +0 -17
  349. package/dist/api/resources/accounts/client/Client.js +0 -1755
  350. package/dist/api/resources/accounts/client/index.js +0 -17
  351. package/dist/api/resources/accounts/client/requests/CountApiKeysRequest.js +0 -5
  352. package/dist/api/resources/accounts/client/requests/CountApiRequestsRequest.d.ts +0 -19
  353. package/dist/api/resources/accounts/client/requests/CountApiRequestsRequest.js +0 -5
  354. package/dist/api/resources/accounts/client/requests/CreateApiKeyRequestBody.js +0 -5
  355. package/dist/api/resources/accounts/client/requests/CreateEnvironmentRequestBody.js +0 -5
  356. package/dist/api/resources/accounts/client/requests/ListApiKeysRequest.js +0 -5
  357. package/dist/api/resources/accounts/client/requests/ListApiRequestsRequest.d.ts +0 -19
  358. package/dist/api/resources/accounts/client/requests/ListApiRequestsRequest.js +0 -5
  359. package/dist/api/resources/accounts/client/requests/ListEnvironmentsRequest.js +0 -5
  360. package/dist/api/resources/accounts/client/requests/UpdateApiKeyRequestBody.js +0 -5
  361. package/dist/api/resources/accounts/client/requests/UpdateEnvironmentRequestBody.js +0 -5
  362. package/dist/api/resources/accounts/client/requests/index.js +0 -2
  363. package/dist/api/resources/accounts/index.js +0 -18
  364. package/dist/api/resources/accounts/types/CountApiKeysParams.js +0 -5
  365. package/dist/api/resources/accounts/types/CountApiKeysResponse.js +0 -5
  366. package/dist/api/resources/accounts/types/CountApiRequestsParams.d.ts +0 -12
  367. package/dist/api/resources/accounts/types/CountApiRequestsParams.js +0 -5
  368. package/dist/api/resources/accounts/types/CountApiRequestsResponse.d.ts +0 -6
  369. package/dist/api/resources/accounts/types/CountApiRequestsResponse.js +0 -5
  370. package/dist/api/resources/accounts/types/CreateApiKeyResponse.js +0 -5
  371. package/dist/api/resources/accounts/types/CreateEnvironmentRequestBodyEnvironmentType.d.ts +0 -9
  372. package/dist/api/resources/accounts/types/CreateEnvironmentRequestBodyEnvironmentType.js +0 -11
  373. package/dist/api/resources/accounts/types/CreateEnvironmentResponse.js +0 -5
  374. package/dist/api/resources/accounts/types/DeleteApiKeyResponse.js +0 -5
  375. package/dist/api/resources/accounts/types/DeleteEnvironmentResponse.js +0 -5
  376. package/dist/api/resources/accounts/types/GetApiKeyResponse.js +0 -5
  377. package/dist/api/resources/accounts/types/GetApiRequestResponse.d.ts +0 -6
  378. package/dist/api/resources/accounts/types/GetApiRequestResponse.js +0 -5
  379. package/dist/api/resources/accounts/types/GetEnvironmentResponse.js +0 -5
  380. package/dist/api/resources/accounts/types/ListApiKeysParams.js +0 -5
  381. package/dist/api/resources/accounts/types/ListApiKeysResponse.js +0 -5
  382. package/dist/api/resources/accounts/types/ListApiRequestsParams.d.ts +0 -12
  383. package/dist/api/resources/accounts/types/ListApiRequestsParams.js +0 -5
  384. package/dist/api/resources/accounts/types/ListApiRequestsResponse.d.ts +0 -6
  385. package/dist/api/resources/accounts/types/ListApiRequestsResponse.js +0 -5
  386. package/dist/api/resources/accounts/types/ListEnvironmentsParams.js +0 -5
  387. package/dist/api/resources/accounts/types/ListEnvironmentsResponse.js +0 -5
  388. package/dist/api/resources/accounts/types/QuickstartResponse.js +0 -5
  389. package/dist/api/resources/accounts/types/UpdateApiKeyResponse.js +0 -5
  390. package/dist/api/resources/accounts/types/UpdateEnvironmentRequestBodyEnvironmentType.d.ts +0 -9
  391. package/dist/api/resources/accounts/types/UpdateEnvironmentRequestBodyEnvironmentType.js +0 -11
  392. package/dist/api/resources/accounts/types/UpdateEnvironmentResponse.js +0 -5
  393. package/dist/api/resources/accounts/types/index.js +0 -38
  394. package/dist/api/resources/billing/client/Client.js +0 -2585
  395. package/dist/api/resources/billing/client/index.js +0 -17
  396. package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.js +0 -5
  397. package/dist/api/resources/billing/client/requests/CountCustomersRequest.js +0 -5
  398. package/dist/api/resources/billing/client/requests/CreateBillingCustomerRequestBody.js +0 -5
  399. package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.js +0 -5
  400. package/dist/api/resources/billing/client/requests/CreateBillingProductRequestBody.js +0 -5
  401. package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +0 -49
  402. package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +0 -5
  403. package/dist/api/resources/billing/client/requests/CreateCouponRequestBody.js +0 -5
  404. package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.js +0 -5
  405. package/dist/api/resources/billing/client/requests/CreateMeterRequestBody.js +0 -5
  406. package/dist/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +0 -5
  407. package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.js +0 -5
  408. package/dist/api/resources/billing/client/requests/ListCouponsRequest.js +0 -5
  409. package/dist/api/resources/billing/client/requests/ListCustomersWithSubscriptionsRequest.js +0 -5
  410. package/dist/api/resources/billing/client/requests/ListInvoicesRequest.js +0 -5
  411. package/dist/api/resources/billing/client/requests/ListMetersRequest.js +0 -5
  412. package/dist/api/resources/billing/client/requests/ListPaymentMethodsRequest.js +0 -5
  413. package/dist/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +0 -42
  414. package/dist/api/resources/billing/client/requests/ListProductPricesRequest.js +0 -5
  415. package/dist/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +0 -24
  416. package/dist/api/resources/billing/client/requests/SearchBillingPricesRequest.js +0 -5
  417. package/dist/api/resources/billing/client/requests/index.js +0 -2
  418. package/dist/api/resources/billing/index.js +0 -18
  419. package/dist/api/resources/billing/types/CountBillingProductsParams.js +0 -5
  420. package/dist/api/resources/billing/types/CountBillingProductsRequestPriceUsageType.d.ts +0 -8
  421. package/dist/api/resources/billing/types/CountBillingProductsRequestPriceUsageType.js +0 -10
  422. package/dist/api/resources/billing/types/CountBillingProductsResponse.js +0 -5
  423. package/dist/api/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.d.ts +0 -8
  424. package/dist/api/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.js +0 -10
  425. package/dist/api/resources/billing/types/CountCustomersParams.js +0 -5
  426. package/dist/api/resources/billing/types/CountCustomersResponse.js +0 -5
  427. package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.d.ts +0 -8
  428. package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.js +0 -10
  429. package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyTiersMode.d.ts +0 -8
  430. package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyTiersMode.js +0 -10
  431. package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyUsageType.d.ts +0 -8
  432. package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyUsageType.js +0 -10
  433. package/dist/api/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.d.ts +0 -8
  434. package/dist/api/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.js +0 -10
  435. package/dist/api/resources/billing/types/DeleteBillingProductResponse.js +0 -5
  436. package/dist/api/resources/billing/types/DeleteProductPriceResponse.js +0 -5
  437. package/dist/api/resources/billing/types/ListBillingProductsParams.js +0 -5
  438. package/dist/api/resources/billing/types/ListBillingProductsRequestPriceUsageType.d.ts +0 -8
  439. package/dist/api/resources/billing/types/ListBillingProductsRequestPriceUsageType.js +0 -10
  440. package/dist/api/resources/billing/types/ListBillingProductsResponse.js +0 -5
  441. package/dist/api/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.d.ts +0 -8
  442. package/dist/api/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.js +0 -10
  443. package/dist/api/resources/billing/types/ListCouponsParams.js +0 -5
  444. package/dist/api/resources/billing/types/ListCouponsResponse.js +0 -5
  445. package/dist/api/resources/billing/types/ListCustomersWithSubscriptionsParams.js +0 -5
  446. package/dist/api/resources/billing/types/ListCustomersWithSubscriptionsResponse.js +0 -5
  447. package/dist/api/resources/billing/types/ListInvoicesParams.js +0 -5
  448. package/dist/api/resources/billing/types/ListInvoicesResponse.js +0 -5
  449. package/dist/api/resources/billing/types/ListMetersParams.js +0 -5
  450. package/dist/api/resources/billing/types/ListMetersResponse.js +0 -5
  451. package/dist/api/resources/billing/types/ListPaymentMethodsParams.js +0 -5
  452. package/dist/api/resources/billing/types/ListPaymentMethodsResponse.js +0 -5
  453. package/dist/api/resources/billing/types/ListProductPricesParams.d.ts +0 -27
  454. package/dist/api/resources/billing/types/ListProductPricesParams.js +0 -5
  455. package/dist/api/resources/billing/types/ListProductPricesRequestPriceUsageType.d.ts +0 -8
  456. package/dist/api/resources/billing/types/ListProductPricesRequestPriceUsageType.js +0 -10
  457. package/dist/api/resources/billing/types/ListProductPricesResponse.d.ts +0 -10
  458. package/dist/api/resources/billing/types/ListProductPricesResponse.js +0 -5
  459. package/dist/api/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.d.ts +0 -8
  460. package/dist/api/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.js +0 -10
  461. package/dist/api/resources/billing/types/SearchBillingPricesParams.d.ts +0 -19
  462. package/dist/api/resources/billing/types/SearchBillingPricesParams.js +0 -5
  463. package/dist/api/resources/billing/types/SearchBillingPricesRequestTiersMode.d.ts +0 -8
  464. package/dist/api/resources/billing/types/SearchBillingPricesRequestTiersMode.js +0 -10
  465. package/dist/api/resources/billing/types/SearchBillingPricesRequestUsageType.d.ts +0 -8
  466. package/dist/api/resources/billing/types/SearchBillingPricesRequestUsageType.js +0 -10
  467. package/dist/api/resources/billing/types/SearchBillingPricesResponse.d.ts +0 -10
  468. package/dist/api/resources/billing/types/SearchBillingPricesResponse.js +0 -5
  469. package/dist/api/resources/billing/types/SearchBillingPricesResponseParamsTiersMode.d.ts +0 -8
  470. package/dist/api/resources/billing/types/SearchBillingPricesResponseParamsTiersMode.js +0 -10
  471. package/dist/api/resources/billing/types/SearchBillingPricesResponseParamsUsageType.d.ts +0 -8
  472. package/dist/api/resources/billing/types/SearchBillingPricesResponseParamsUsageType.js +0 -10
  473. package/dist/api/resources/billing/types/UpsertBillingCouponResponse.js +0 -5
  474. package/dist/api/resources/billing/types/UpsertBillingCustomerResponse.js +0 -5
  475. package/dist/api/resources/billing/types/UpsertBillingMeterResponse.js +0 -5
  476. package/dist/api/resources/billing/types/UpsertBillingPriceResponse.js +0 -5
  477. package/dist/api/resources/billing/types/UpsertBillingProductResponse.js +0 -5
  478. package/dist/api/resources/billing/types/UpsertBillingSubscriptionResponse.js +0 -5
  479. package/dist/api/resources/billing/types/UpsertInvoiceResponse.js +0 -5
  480. package/dist/api/resources/billing/types/UpsertPaymentMethodResponse.js +0 -5
  481. package/dist/api/resources/billing/types/index.js +0 -60
  482. package/dist/api/resources/checkout/client/Client.js +0 -546
  483. package/dist/api/resources/checkout/client/index.js +0 -17
  484. package/dist/api/resources/checkout/client/requests/CheckoutDataRequestBody.js +0 -5
  485. package/dist/api/resources/checkout/client/requests/UpdateTrialEndRequestBody.js +0 -5
  486. package/dist/api/resources/checkout/client/requests/index.js +0 -2
  487. package/dist/api/resources/checkout/index.js +0 -18
  488. package/dist/api/resources/checkout/types/CheckoutInternalResponse.js +0 -5
  489. package/dist/api/resources/checkout/types/GetCheckoutDataResponse.js +0 -5
  490. package/dist/api/resources/checkout/types/PreviewCheckoutInternalResponse.js +0 -5
  491. package/dist/api/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.js +0 -5
  492. package/dist/api/resources/checkout/types/index.js +0 -20
  493. package/dist/api/resources/companies/client/Client.js +0 -4102
  494. package/dist/api/resources/companies/client/index.js +0 -17
  495. package/dist/api/resources/companies/client/requests/CountCompaniesForAdvancedFilterRequest.d.ts +0 -46
  496. package/dist/api/resources/companies/client/requests/CountCompaniesForAdvancedFilterRequest.js +0 -5
  497. package/dist/api/resources/companies/client/requests/CountCompaniesRequest.js +0 -5
  498. package/dist/api/resources/companies/client/requests/CountEntityKeyDefinitionsRequest.js +0 -5
  499. package/dist/api/resources/companies/client/requests/CountEntityTraitDefinitionsRequest.js +0 -5
  500. package/dist/api/resources/companies/client/requests/CountUsersRequest.js +0 -5
  501. package/dist/api/resources/companies/client/requests/CreateEntityTraitDefinitionRequestBody.js +0 -5
  502. package/dist/api/resources/companies/client/requests/GetActiveCompanySubscriptionRequest.js +0 -5
  503. package/dist/api/resources/companies/client/requests/GetActiveDealsRequest.d.ts +0 -22
  504. package/dist/api/resources/companies/client/requests/GetActiveDealsRequest.js +0 -5
  505. package/dist/api/resources/companies/client/requests/GetEntityTraitValuesRequest.js +0 -5
  506. package/dist/api/resources/companies/client/requests/GetOrCreateCompanyMembershipRequestBody.js +0 -5
  507. package/dist/api/resources/companies/client/requests/ListCompaniesForAdvancedFilterRequest.d.ts +0 -46
  508. package/dist/api/resources/companies/client/requests/ListCompaniesForAdvancedFilterRequest.js +0 -5
  509. package/dist/api/resources/companies/client/requests/ListCompaniesRequest.js +0 -5
  510. package/dist/api/resources/companies/client/requests/ListCompanyMembershipsRequest.js +0 -5
  511. package/dist/api/resources/companies/client/requests/ListEntityKeyDefinitionsRequest.js +0 -5
  512. package/dist/api/resources/companies/client/requests/ListEntityTraitDefinitionsRequest.js +0 -5
  513. package/dist/api/resources/companies/client/requests/ListUsersRequest.js +0 -5
  514. package/dist/api/resources/companies/client/requests/LookupCompanyRequest.js +0 -5
  515. package/dist/api/resources/companies/client/requests/LookupUserRequest.js +0 -5
  516. package/dist/api/resources/companies/client/requests/UpdateEntityTraitDefinitionRequestBody.js +0 -5
  517. package/dist/api/resources/companies/client/requests/index.js +0 -2
  518. package/dist/api/resources/companies/index.js +0 -18
  519. package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterParams.d.ts +0 -35
  520. package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterParams.js +0 -5
  521. package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterRequestSortOrderDirection.d.ts +0 -11
  522. package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterRequestSortOrderDirection.js +0 -10
  523. package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterResponse.d.ts +0 -6
  524. package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterResponse.js +0 -5
  525. package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterResponseParamsSortOrderDirection.d.ts +0 -11
  526. package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterResponseParamsSortOrderDirection.js +0 -10
  527. package/dist/api/resources/companies/types/CountCompaniesParams.js +0 -5
  528. package/dist/api/resources/companies/types/CountCompaniesResponse.js +0 -5
  529. package/dist/api/resources/companies/types/CountEntityKeyDefinitionsParams.js +0 -5
  530. package/dist/api/resources/companies/types/CountEntityKeyDefinitionsRequestEntityType.d.ts +0 -8
  531. package/dist/api/resources/companies/types/CountEntityKeyDefinitionsRequestEntityType.js +0 -10
  532. package/dist/api/resources/companies/types/CountEntityKeyDefinitionsResponse.js +0 -5
  533. package/dist/api/resources/companies/types/CountEntityKeyDefinitionsResponseParamsEntityType.d.ts +0 -8
  534. package/dist/api/resources/companies/types/CountEntityKeyDefinitionsResponseParamsEntityType.js +0 -10
  535. package/dist/api/resources/companies/types/CountEntityTraitDefinitionsParams.js +0 -5
  536. package/dist/api/resources/companies/types/CountEntityTraitDefinitionsRequestEntityType.d.ts +0 -8
  537. package/dist/api/resources/companies/types/CountEntityTraitDefinitionsRequestEntityType.js +0 -10
  538. package/dist/api/resources/companies/types/CountEntityTraitDefinitionsRequestTraitType.d.ts +0 -12
  539. package/dist/api/resources/companies/types/CountEntityTraitDefinitionsRequestTraitType.js +0 -14
  540. package/dist/api/resources/companies/types/CountEntityTraitDefinitionsResponse.js +0 -5
  541. package/dist/api/resources/companies/types/CountEntityTraitDefinitionsResponseParamsEntityType.d.ts +0 -8
  542. package/dist/api/resources/companies/types/CountEntityTraitDefinitionsResponseParamsEntityType.js +0 -10
  543. package/dist/api/resources/companies/types/CountEntityTraitDefinitionsResponseParamsTraitType.d.ts +0 -12
  544. package/dist/api/resources/companies/types/CountEntityTraitDefinitionsResponseParamsTraitType.js +0 -14
  545. package/dist/api/resources/companies/types/CountUsersParams.js +0 -5
  546. package/dist/api/resources/companies/types/CountUsersResponse.js +0 -5
  547. package/dist/api/resources/companies/types/CreateCompanyResponse.js +0 -5
  548. package/dist/api/resources/companies/types/CreateEntityTraitDefinitionRequestBodyEntityType.d.ts +0 -8
  549. package/dist/api/resources/companies/types/CreateEntityTraitDefinitionRequestBodyEntityType.js +0 -10
  550. package/dist/api/resources/companies/types/CreateEntityTraitDefinitionRequestBodyTraitType.d.ts +0 -12
  551. package/dist/api/resources/companies/types/CreateEntityTraitDefinitionRequestBodyTraitType.js +0 -14
  552. package/dist/api/resources/companies/types/CreateUserResponse.js +0 -5
  553. package/dist/api/resources/companies/types/DeleteCompanyByKeysResponse.js +0 -5
  554. package/dist/api/resources/companies/types/DeleteCompanyMembershipResponse.js +0 -5
  555. package/dist/api/resources/companies/types/DeleteCompanyResponse.js +0 -5
  556. package/dist/api/resources/companies/types/DeleteUserByKeysResponse.js +0 -5
  557. package/dist/api/resources/companies/types/DeleteUserResponse.js +0 -5
  558. package/dist/api/resources/companies/types/GetActiveCompanySubscriptionParams.js +0 -5
  559. package/dist/api/resources/companies/types/GetActiveCompanySubscriptionResponse.js +0 -5
  560. package/dist/api/resources/companies/types/GetActiveDealsParams.d.ts +0 -14
  561. package/dist/api/resources/companies/types/GetActiveDealsParams.js +0 -5
  562. package/dist/api/resources/companies/types/GetActiveDealsResponse.d.ts +0 -10
  563. package/dist/api/resources/companies/types/GetActiveDealsResponse.js +0 -5
  564. package/dist/api/resources/companies/types/GetCompanyResponse.js +0 -5
  565. package/dist/api/resources/companies/types/GetEntityTraitDefinitionResponse.js +0 -5
  566. package/dist/api/resources/companies/types/GetEntityTraitValuesParams.js +0 -5
  567. package/dist/api/resources/companies/types/GetEntityTraitValuesResponse.js +0 -5
  568. package/dist/api/resources/companies/types/GetOrCreateCompanyMembershipResponse.js +0 -5
  569. package/dist/api/resources/companies/types/GetOrCreateEntityTraitDefinitionResponse.js +0 -5
  570. package/dist/api/resources/companies/types/GetUserResponse.js +0 -5
  571. package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterParams.d.ts +0 -35
  572. package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterParams.js +0 -5
  573. package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterRequestSortOrderDirection.d.ts +0 -11
  574. package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterRequestSortOrderDirection.js +0 -10
  575. package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterResponse.d.ts +0 -6
  576. package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterResponse.js +0 -5
  577. package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterResponseParamsSortOrderDirection.d.ts +0 -11
  578. package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterResponseParamsSortOrderDirection.js +0 -10
  579. package/dist/api/resources/companies/types/ListCompaniesParams.js +0 -5
  580. package/dist/api/resources/companies/types/ListCompaniesResponse.js +0 -5
  581. package/dist/api/resources/companies/types/ListCompanyMembershipsParams.js +0 -5
  582. package/dist/api/resources/companies/types/ListCompanyMembershipsResponse.js +0 -5
  583. package/dist/api/resources/companies/types/ListEntityKeyDefinitionsParams.js +0 -5
  584. package/dist/api/resources/companies/types/ListEntityKeyDefinitionsRequestEntityType.d.ts +0 -8
  585. package/dist/api/resources/companies/types/ListEntityKeyDefinitionsRequestEntityType.js +0 -10
  586. package/dist/api/resources/companies/types/ListEntityKeyDefinitionsResponse.js +0 -5
  587. package/dist/api/resources/companies/types/ListEntityKeyDefinitionsResponseParamsEntityType.d.ts +0 -8
  588. package/dist/api/resources/companies/types/ListEntityKeyDefinitionsResponseParamsEntityType.js +0 -10
  589. package/dist/api/resources/companies/types/ListEntityTraitDefinitionsParams.js +0 -5
  590. package/dist/api/resources/companies/types/ListEntityTraitDefinitionsRequestEntityType.d.ts +0 -8
  591. package/dist/api/resources/companies/types/ListEntityTraitDefinitionsRequestEntityType.js +0 -10
  592. package/dist/api/resources/companies/types/ListEntityTraitDefinitionsRequestTraitType.d.ts +0 -12
  593. package/dist/api/resources/companies/types/ListEntityTraitDefinitionsRequestTraitType.js +0 -14
  594. package/dist/api/resources/companies/types/ListEntityTraitDefinitionsResponse.js +0 -5
  595. package/dist/api/resources/companies/types/ListEntityTraitDefinitionsResponseParamsEntityType.d.ts +0 -8
  596. package/dist/api/resources/companies/types/ListEntityTraitDefinitionsResponseParamsEntityType.js +0 -10
  597. package/dist/api/resources/companies/types/ListEntityTraitDefinitionsResponseParamsTraitType.d.ts +0 -12
  598. package/dist/api/resources/companies/types/ListEntityTraitDefinitionsResponseParamsTraitType.js +0 -14
  599. package/dist/api/resources/companies/types/ListUsersParams.js +0 -5
  600. package/dist/api/resources/companies/types/ListUsersResponse.js +0 -5
  601. package/dist/api/resources/companies/types/LookupCompanyParams.js +0 -5
  602. package/dist/api/resources/companies/types/LookupCompanyResponse.js +0 -5
  603. package/dist/api/resources/companies/types/LookupUserParams.js +0 -5
  604. package/dist/api/resources/companies/types/LookupUserResponse.js +0 -5
  605. package/dist/api/resources/companies/types/UpdateEntityTraitDefinitionRequestBodyTraitType.d.ts +0 -12
  606. package/dist/api/resources/companies/types/UpdateEntityTraitDefinitionRequestBodyTraitType.js +0 -14
  607. package/dist/api/resources/companies/types/UpdateEntityTraitDefinitionResponse.js +0 -5
  608. package/dist/api/resources/companies/types/UpsertCompanyResponse.js +0 -5
  609. package/dist/api/resources/companies/types/UpsertCompanyTraitResponse.js +0 -5
  610. package/dist/api/resources/companies/types/UpsertUserResponse.js +0 -5
  611. package/dist/api/resources/companies/types/UpsertUserTraitResponse.js +0 -5
  612. package/dist/api/resources/companies/types/index.js +0 -84
  613. package/dist/api/resources/components/client/Client.js +0 -846
  614. package/dist/api/resources/components/client/index.js +0 -17
  615. package/dist/api/resources/components/client/requests/CountComponentsRequest.js +0 -5
  616. package/dist/api/resources/components/client/requests/CreateComponentRequestBody.js +0 -5
  617. package/dist/api/resources/components/client/requests/ListComponentsRequest.js +0 -5
  618. package/dist/api/resources/components/client/requests/PreviewComponentDataRequest.js +0 -5
  619. package/dist/api/resources/components/client/requests/UpdateComponentRequestBody.js +0 -5
  620. package/dist/api/resources/components/client/requests/index.js +0 -2
  621. package/dist/api/resources/components/index.js +0 -18
  622. package/dist/api/resources/components/types/CountComponentsParams.js +0 -5
  623. package/dist/api/resources/components/types/CountComponentsResponse.js +0 -5
  624. package/dist/api/resources/components/types/CreateComponentRequestBodyEntityType.d.ts +0 -8
  625. package/dist/api/resources/components/types/CreateComponentRequestBodyEntityType.js +0 -10
  626. package/dist/api/resources/components/types/CreateComponentResponse.js +0 -5
  627. package/dist/api/resources/components/types/DeleteComponentResponse.js +0 -5
  628. package/dist/api/resources/components/types/GetComponentResponse.js +0 -5
  629. package/dist/api/resources/components/types/ListComponentsParams.js +0 -5
  630. package/dist/api/resources/components/types/ListComponentsResponse.js +0 -5
  631. package/dist/api/resources/components/types/PreviewComponentDataParams.js +0 -5
  632. package/dist/api/resources/components/types/PreviewComponentDataResponse.js +0 -5
  633. package/dist/api/resources/components/types/UpdateComponentRequestBodyEntityType.d.ts +0 -8
  634. package/dist/api/resources/components/types/UpdateComponentRequestBodyEntityType.js +0 -10
  635. package/dist/api/resources/components/types/UpdateComponentRequestBodyState.d.ts +0 -8
  636. package/dist/api/resources/components/types/UpdateComponentRequestBodyState.js +0 -10
  637. package/dist/api/resources/components/types/UpdateComponentResponse.js +0 -5
  638. package/dist/api/resources/components/types/index.js +0 -29
  639. package/dist/api/resources/credits/client/Client.js +0 -2338
  640. package/dist/api/resources/credits/client/index.js +0 -17
  641. package/dist/api/resources/credits/client/requests/CountBillingCreditsGrantsRequest.js +0 -5
  642. package/dist/api/resources/credits/client/requests/CountBillingCreditsRequest.js +0 -5
  643. package/dist/api/resources/credits/client/requests/CountBillingPlanCreditGrantsRequest.js +0 -5
  644. package/dist/api/resources/credits/client/requests/CountCreditBundlesRequest.js +0 -5
  645. package/dist/api/resources/credits/client/requests/CreateBillingCreditRequestBody.js +0 -5
  646. package/dist/api/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.d.ts +0 -21
  647. package/dist/api/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.js +0 -5
  648. package/dist/api/resources/credits/client/requests/CreateCreditBundleRequestBody.js +0 -5
  649. package/dist/api/resources/credits/client/requests/ListBillingCreditsRequest.js +0 -5
  650. package/dist/api/resources/credits/client/requests/ListBillingPlanCreditGrantsRequest.js +0 -5
  651. package/dist/api/resources/credits/client/requests/ListCompanyGrantsRequest.js +0 -5
  652. package/dist/api/resources/credits/client/requests/ListCreditBundlesRequest.js +0 -5
  653. package/dist/api/resources/credits/client/requests/ListGrantsForCreditRequest.js +0 -5
  654. package/dist/api/resources/credits/client/requests/UpdateBillingCreditRequestBody.js +0 -5
  655. package/dist/api/resources/credits/client/requests/ZeroOutGrantRequestBody.js +0 -5
  656. package/dist/api/resources/credits/client/requests/index.js +0 -2
  657. package/dist/api/resources/credits/index.js +0 -18
  658. package/dist/api/resources/credits/types/CountBillingCreditsGrantsParams.js +0 -5
  659. package/dist/api/resources/credits/types/CountBillingCreditsGrantsResponse.js +0 -5
  660. package/dist/api/resources/credits/types/CountBillingCreditsParams.js +0 -5
  661. package/dist/api/resources/credits/types/CountBillingCreditsResponse.js +0 -5
  662. package/dist/api/resources/credits/types/CountBillingPlanCreditGrantsParams.js +0 -5
  663. package/dist/api/resources/credits/types/CountBillingPlanCreditGrantsResponse.js +0 -5
  664. package/dist/api/resources/credits/types/CountCreditBundlesParams.js +0 -5
  665. package/dist/api/resources/credits/types/CountCreditBundlesRequestStatus.d.ts +0 -8
  666. package/dist/api/resources/credits/types/CountCreditBundlesRequestStatus.js +0 -10
  667. package/dist/api/resources/credits/types/CountCreditBundlesResponse.js +0 -5
  668. package/dist/api/resources/credits/types/CountCreditBundlesResponseParamsStatus.d.ts +0 -8
  669. package/dist/api/resources/credits/types/CountCreditBundlesResponseParamsStatus.js +0 -10
  670. package/dist/api/resources/credits/types/CreateBillingCreditRequestBodyBurnStrategy.d.ts +0 -10
  671. package/dist/api/resources/credits/types/CreateBillingCreditRequestBodyBurnStrategy.js +0 -12
  672. package/dist/api/resources/credits/types/CreateBillingCreditRequestBodyDefaultRolloverPolicy.d.ts +0 -9
  673. package/dist/api/resources/credits/types/CreateBillingCreditRequestBodyDefaultRolloverPolicy.js +0 -11
  674. package/dist/api/resources/credits/types/CreateBillingCreditResponse.js +0 -5
  675. package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetCadence.d.ts +0 -10
  676. package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetCadence.js +0 -12
  677. package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetStart.d.ts +0 -8
  678. package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetStart.js +0 -10
  679. package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantResponse.js +0 -5
  680. package/dist/api/resources/credits/types/CreateCreditBundleRequestBodyExpiryType.d.ts +0 -8
  681. package/dist/api/resources/credits/types/CreateCreditBundleRequestBodyExpiryType.js +0 -10
  682. package/dist/api/resources/credits/types/CreateCreditBundleRequestBodyStatus.d.ts +0 -8
  683. package/dist/api/resources/credits/types/CreateCreditBundleRequestBodyStatus.js +0 -10
  684. package/dist/api/resources/credits/types/CreateCreditBundleResponse.js +0 -5
  685. package/dist/api/resources/credits/types/DeleteBillingPlanCreditGrantResponse.js +0 -5
  686. package/dist/api/resources/credits/types/DeleteCreditBundleResponse.js +0 -5
  687. package/dist/api/resources/credits/types/GetCreditBundleResponse.js +0 -5
  688. package/dist/api/resources/credits/types/GetSingleBillingCreditResponse.js +0 -5
  689. package/dist/api/resources/credits/types/ListBillingCreditsParams.js +0 -5
  690. package/dist/api/resources/credits/types/ListBillingCreditsResponse.js +0 -5
  691. package/dist/api/resources/credits/types/ListBillingPlanCreditGrantsParams.js +0 -5
  692. package/dist/api/resources/credits/types/ListBillingPlanCreditGrantsResponse.js +0 -5
  693. package/dist/api/resources/credits/types/ListCompanyGrantsParams.js +0 -5
  694. package/dist/api/resources/credits/types/ListCompanyGrantsRequestDir.d.ts +0 -8
  695. package/dist/api/resources/credits/types/ListCompanyGrantsRequestDir.js +0 -10
  696. package/dist/api/resources/credits/types/ListCompanyGrantsRequestOrder.d.ts +0 -10
  697. package/dist/api/resources/credits/types/ListCompanyGrantsRequestOrder.js +0 -12
  698. package/dist/api/resources/credits/types/ListCompanyGrantsResponse.js +0 -5
  699. package/dist/api/resources/credits/types/ListCompanyGrantsResponseParamsDir.d.ts +0 -8
  700. package/dist/api/resources/credits/types/ListCompanyGrantsResponseParamsDir.js +0 -10
  701. package/dist/api/resources/credits/types/ListCompanyGrantsResponseParamsOrder.d.ts +0 -10
  702. package/dist/api/resources/credits/types/ListCompanyGrantsResponseParamsOrder.js +0 -12
  703. package/dist/api/resources/credits/types/ListCreditBundlesParams.js +0 -5
  704. package/dist/api/resources/credits/types/ListCreditBundlesRequestStatus.d.ts +0 -8
  705. package/dist/api/resources/credits/types/ListCreditBundlesRequestStatus.js +0 -10
  706. package/dist/api/resources/credits/types/ListCreditBundlesResponse.js +0 -5
  707. package/dist/api/resources/credits/types/ListCreditBundlesResponseParamsStatus.d.ts +0 -8
  708. package/dist/api/resources/credits/types/ListCreditBundlesResponseParamsStatus.js +0 -10
  709. package/dist/api/resources/credits/types/ListGrantsForCreditParams.js +0 -5
  710. package/dist/api/resources/credits/types/ListGrantsForCreditResponse.js +0 -5
  711. package/dist/api/resources/credits/types/UpdateBillingCreditRequestBodyBurnStrategy.d.ts +0 -10
  712. package/dist/api/resources/credits/types/UpdateBillingCreditRequestBodyBurnStrategy.js +0 -12
  713. package/dist/api/resources/credits/types/UpdateBillingCreditRequestBodyDefaultRolloverPolicy.d.ts +0 -9
  714. package/dist/api/resources/credits/types/UpdateBillingCreditRequestBodyDefaultRolloverPolicy.js +0 -11
  715. package/dist/api/resources/credits/types/UpdateBillingCreditResponse.js +0 -5
  716. package/dist/api/resources/credits/types/UpdateCreditBundleResponse.d.ts +0 -9
  717. package/dist/api/resources/credits/types/UpdateCreditBundleResponse.js +0 -5
  718. package/dist/api/resources/credits/types/ZeroOutGrantRequestBodyReason.d.ts +0 -8
  719. package/dist/api/resources/credits/types/ZeroOutGrantRequestBodyReason.js +0 -10
  720. package/dist/api/resources/credits/types/ZeroOutGrantResponse.js +0 -5
  721. package/dist/api/resources/credits/types/index.js +0 -61
  722. package/dist/api/resources/crm/client/Client.d.ts +0 -129
  723. package/dist/api/resources/crm/client/Client.js +0 -657
  724. package/dist/api/resources/crm/client/index.js +0 -17
  725. package/dist/api/resources/crm/client/requests/CreateCrmDealLineItemAssociationRequestBody.d.ts +0 -14
  726. package/dist/api/resources/crm/client/requests/CreateCrmDealLineItemAssociationRequestBody.js +0 -5
  727. package/dist/api/resources/crm/client/requests/CreateCrmDealRequestBody.d.ts +0 -22
  728. package/dist/api/resources/crm/client/requests/CreateCrmDealRequestBody.js +0 -5
  729. package/dist/api/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +0 -23
  730. package/dist/api/resources/crm/client/requests/CreateCrmLineItemRequestBody.js +0 -5
  731. package/dist/api/resources/crm/client/requests/CreateCrmProductRequestBody.d.ts +0 -26
  732. package/dist/api/resources/crm/client/requests/CreateCrmProductRequestBody.js +0 -5
  733. package/dist/api/resources/crm/client/requests/ListCrmProductsRequest.d.ts +0 -19
  734. package/dist/api/resources/crm/client/requests/ListCrmProductsRequest.js +0 -5
  735. package/dist/api/resources/crm/client/requests/index.d.ts +0 -5
  736. package/dist/api/resources/crm/client/requests/index.js +0 -2
  737. package/dist/api/resources/crm/index.d.ts +0 -2
  738. package/dist/api/resources/crm/index.js +0 -18
  739. package/dist/api/resources/crm/types/ListCrmProductsParams.d.ts +0 -14
  740. package/dist/api/resources/crm/types/ListCrmProductsParams.js +0 -5
  741. package/dist/api/resources/crm/types/ListCrmProductsResponse.d.ts +0 -10
  742. package/dist/api/resources/crm/types/ListCrmProductsResponse.js +0 -5
  743. package/dist/api/resources/crm/types/UpsertCrmDealResponse.d.ts +0 -9
  744. package/dist/api/resources/crm/types/UpsertCrmDealResponse.js +0 -5
  745. package/dist/api/resources/crm/types/UpsertCrmProductResponse.d.ts +0 -9
  746. package/dist/api/resources/crm/types/UpsertCrmProductResponse.js +0 -5
  747. package/dist/api/resources/crm/types/UpsertDealLineItemAssociationResponse.d.ts +0 -9
  748. package/dist/api/resources/crm/types/UpsertDealLineItemAssociationResponse.js +0 -5
  749. package/dist/api/resources/crm/types/UpsertLineItemResponse.d.ts +0 -9
  750. package/dist/api/resources/crm/types/UpsertLineItemResponse.js +0 -5
  751. package/dist/api/resources/crm/types/index.d.ts +0 -6
  752. package/dist/api/resources/crm/types/index.js +0 -22
  753. package/dist/api/resources/dataexports/client/Client.js +0 -265
  754. package/dist/api/resources/dataexports/client/index.js +0 -17
  755. package/dist/api/resources/dataexports/client/requests/CreateDataExportRequestBody.js +0 -5
  756. package/dist/api/resources/dataexports/client/requests/index.js +0 -2
  757. package/dist/api/resources/dataexports/index.js +0 -18
  758. package/dist/api/resources/dataexports/types/CreateDataExportResponse.js +0 -5
  759. package/dist/api/resources/dataexports/types/index.js +0 -17
  760. package/dist/api/resources/entitlements/client/Client.js +0 -2431
  761. package/dist/api/resources/entitlements/client/index.js +0 -17
  762. package/dist/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.js +0 -5
  763. package/dist/api/resources/entitlements/client/requests/CountFeatureCompaniesRequest.js +0 -5
  764. package/dist/api/resources/entitlements/client/requests/CountFeatureUsageRequest.js +0 -5
  765. package/dist/api/resources/entitlements/client/requests/CountFeatureUsersRequest.js +0 -5
  766. package/dist/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.js +0 -5
  767. package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +0 -5
  768. package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +0 -5
  769. package/dist/api/resources/entitlements/client/requests/GetFeatureUsageByCompanyRequest.js +0 -5
  770. package/dist/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.js +0 -5
  771. package/dist/api/resources/entitlements/client/requests/ListFeatureCompaniesRequest.js +0 -5
  772. package/dist/api/resources/entitlements/client/requests/ListFeatureUsageRequest.js +0 -5
  773. package/dist/api/resources/entitlements/client/requests/ListFeatureUsersRequest.js +0 -5
  774. package/dist/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.js +0 -5
  775. package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +0 -5
  776. package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +0 -5
  777. package/dist/api/resources/entitlements/client/requests/index.js +0 -2
  778. package/dist/api/resources/entitlements/index.js +0 -18
  779. package/dist/api/resources/entitlements/types/CountCompanyOverridesParams.js +0 -5
  780. package/dist/api/resources/entitlements/types/CountCompanyOverridesResponse.js +0 -5
  781. package/dist/api/resources/entitlements/types/CountFeatureCompaniesParams.js +0 -5
  782. package/dist/api/resources/entitlements/types/CountFeatureCompaniesResponse.js +0 -5
  783. package/dist/api/resources/entitlements/types/CountFeatureUsageParams.js +0 -5
  784. package/dist/api/resources/entitlements/types/CountFeatureUsageResponse.js +0 -5
  785. package/dist/api/resources/entitlements/types/CountFeatureUsersParams.js +0 -5
  786. package/dist/api/resources/entitlements/types/CountFeatureUsersResponse.js +0 -5
  787. package/dist/api/resources/entitlements/types/CountPlanEntitlementsParams.js +0 -5
  788. package/dist/api/resources/entitlements/types/CountPlanEntitlementsResponse.js +0 -5
  789. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +0 -12
  790. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +0 -10
  791. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.d.ts +0 -11
  792. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.js +0 -13
  793. package/dist/api/resources/entitlements/types/CreateCompanyOverrideResponse.js +0 -5
  794. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +0 -12
  795. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +0 -10
  796. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyPriceBehavior.d.ts +0 -11
  797. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyPriceBehavior.js +0 -13
  798. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.d.ts +0 -11
  799. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.js +0 -13
  800. package/dist/api/resources/entitlements/types/CreatePlanEntitlementResponse.js +0 -5
  801. package/dist/api/resources/entitlements/types/DeleteCompanyOverrideResponse.js +0 -5
  802. package/dist/api/resources/entitlements/types/DeletePlanEntitlementResponse.js +0 -5
  803. package/dist/api/resources/entitlements/types/GetCompanyOverrideResponse.js +0 -5
  804. package/dist/api/resources/entitlements/types/GetFeatureUsageByCompanyParams.js +0 -5
  805. package/dist/api/resources/entitlements/types/GetFeatureUsageByCompanyResponse.js +0 -5
  806. package/dist/api/resources/entitlements/types/GetPlanEntitlementResponse.js +0 -5
  807. package/dist/api/resources/entitlements/types/ListCompanyOverridesParams.js +0 -5
  808. package/dist/api/resources/entitlements/types/ListCompanyOverridesResponse.js +0 -5
  809. package/dist/api/resources/entitlements/types/ListFeatureCompaniesParams.js +0 -5
  810. package/dist/api/resources/entitlements/types/ListFeatureCompaniesResponse.js +0 -5
  811. package/dist/api/resources/entitlements/types/ListFeatureUsageParams.js +0 -5
  812. package/dist/api/resources/entitlements/types/ListFeatureUsageResponse.js +0 -5
  813. package/dist/api/resources/entitlements/types/ListFeatureUsersParams.js +0 -5
  814. package/dist/api/resources/entitlements/types/ListFeatureUsersResponse.js +0 -5
  815. package/dist/api/resources/entitlements/types/ListPlanEntitlementsParams.js +0 -5
  816. package/dist/api/resources/entitlements/types/ListPlanEntitlementsResponse.js +0 -5
  817. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +0 -12
  818. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +0 -10
  819. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.d.ts +0 -11
  820. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.js +0 -13
  821. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideResponse.js +0 -5
  822. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +0 -12
  823. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +0 -10
  824. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyPriceBehavior.d.ts +0 -11
  825. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyPriceBehavior.js +0 -13
  826. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.d.ts +0 -11
  827. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.js +0 -13
  828. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementResponse.js +0 -5
  829. package/dist/api/resources/entitlements/types/index.js +0 -60
  830. package/dist/api/resources/events/client/Client.js +0 -757
  831. package/dist/api/resources/events/client/index.js +0 -17
  832. package/dist/api/resources/events/client/requests/CreateEventBatchRequestBody.js +0 -5
  833. package/dist/api/resources/events/client/requests/GetEventSummariesRequest.js +0 -5
  834. package/dist/api/resources/events/client/requests/ListEventsRequest.js +0 -5
  835. package/dist/api/resources/events/client/requests/index.js +0 -2
  836. package/dist/api/resources/events/index.js +0 -18
  837. package/dist/api/resources/events/types/CreateEventBatchResponse.js +0 -5
  838. package/dist/api/resources/events/types/CreateEventResponse.js +0 -5
  839. package/dist/api/resources/events/types/GetEventResponse.js +0 -5
  840. package/dist/api/resources/events/types/GetEventSummariesParams.js +0 -5
  841. package/dist/api/resources/events/types/GetEventSummariesResponse.js +0 -5
  842. package/dist/api/resources/events/types/GetSegmentIntegrationStatusResponse.js +0 -5
  843. package/dist/api/resources/events/types/ListEventsParams.js +0 -5
  844. package/dist/api/resources/events/types/ListEventsRequestEventTypesItem.d.ts +0 -9
  845. package/dist/api/resources/events/types/ListEventsRequestEventTypesItem.js +0 -11
  846. package/dist/api/resources/events/types/ListEventsResponse.js +0 -5
  847. package/dist/api/resources/events/types/ListEventsResponseParamsEventTypesItem.d.ts +0 -9
  848. package/dist/api/resources/events/types/ListEventsResponseParamsEventTypesItem.js +0 -11
  849. package/dist/api/resources/events/types/index.js +0 -26
  850. package/dist/api/resources/features/client/Client.js +0 -2324
  851. package/dist/api/resources/features/client/index.js +0 -17
  852. package/dist/api/resources/features/client/requests/CountFeaturesRequest.js +0 -5
  853. package/dist/api/resources/features/client/requests/CountFlagsRequest.js +0 -5
  854. package/dist/api/resources/features/client/requests/CreateFeatureRequestBody.js +0 -5
  855. package/dist/api/resources/features/client/requests/ListFeaturesRequest.js +0 -5
  856. package/dist/api/resources/features/client/requests/ListFlagsRequest.js +0 -5
  857. package/dist/api/resources/features/client/requests/UpdateFeatureRequestBody.js +0 -5
  858. package/dist/api/resources/features/client/requests/UpdateFlagRulesRequestBody.js +0 -5
  859. package/dist/api/resources/features/client/requests/index.js +0 -2
  860. package/dist/api/resources/features/index.js +0 -18
  861. package/dist/api/resources/features/types/CheckFlagResponse.js +0 -5
  862. package/dist/api/resources/features/types/CheckFlagsResponse.js +0 -5
  863. package/dist/api/resources/features/types/CountAudienceCompaniesResponse.d.ts +0 -9
  864. package/dist/api/resources/features/types/CountAudienceCompaniesResponse.js +0 -5
  865. package/dist/api/resources/features/types/CountAudienceUsersResponse.d.ts +0 -9
  866. package/dist/api/resources/features/types/CountAudienceUsersResponse.js +0 -5
  867. package/dist/api/resources/features/types/CountFeaturesParams.js +0 -5
  868. package/dist/api/resources/features/types/CountFeaturesResponse.js +0 -5
  869. package/dist/api/resources/features/types/CountFlagsParams.js +0 -5
  870. package/dist/api/resources/features/types/CountFlagsResponse.js +0 -5
  871. package/dist/api/resources/features/types/CreateFeatureRequestBodyFeatureType.d.ts +0 -9
  872. package/dist/api/resources/features/types/CreateFeatureRequestBodyFeatureType.js +0 -11
  873. package/dist/api/resources/features/types/CreateFeatureRequestBodyLifecyclePhase.d.ts +0 -15
  874. package/dist/api/resources/features/types/CreateFeatureRequestBodyLifecyclePhase.js +0 -17
  875. package/dist/api/resources/features/types/CreateFeatureResponse.js +0 -5
  876. package/dist/api/resources/features/types/CreateFlagResponse.js +0 -5
  877. package/dist/api/resources/features/types/DeleteFeatureResponse.js +0 -5
  878. package/dist/api/resources/features/types/DeleteFlagResponse.js +0 -5
  879. package/dist/api/resources/features/types/GetFeatureResponse.js +0 -5
  880. package/dist/api/resources/features/types/GetFlagResponse.js +0 -5
  881. package/dist/api/resources/features/types/ListAudienceCompaniesResponse.d.ts +0 -10
  882. package/dist/api/resources/features/types/ListAudienceCompaniesResponse.js +0 -5
  883. package/dist/api/resources/features/types/ListAudienceUsersResponse.d.ts +0 -10
  884. package/dist/api/resources/features/types/ListAudienceUsersResponse.js +0 -5
  885. package/dist/api/resources/features/types/ListFeaturesParams.js +0 -5
  886. package/dist/api/resources/features/types/ListFeaturesResponse.js +0 -5
  887. package/dist/api/resources/features/types/ListFlagsParams.js +0 -5
  888. package/dist/api/resources/features/types/ListFlagsResponse.js +0 -5
  889. package/dist/api/resources/features/types/UpdateFeatureRequestBodyFeatureType.d.ts +0 -9
  890. package/dist/api/resources/features/types/UpdateFeatureRequestBodyFeatureType.js +0 -11
  891. package/dist/api/resources/features/types/UpdateFeatureRequestBodyLifecyclePhase.d.ts +0 -15
  892. package/dist/api/resources/features/types/UpdateFeatureRequestBodyLifecyclePhase.js +0 -17
  893. package/dist/api/resources/features/types/UpdateFeatureResponse.js +0 -5
  894. package/dist/api/resources/features/types/UpdateFlagResponse.js +0 -5
  895. package/dist/api/resources/features/types/UpdateFlagRulesResponse.js +0 -5
  896. package/dist/api/resources/features/types/index.js +0 -43
  897. package/dist/api/resources/index.js +0 -84
  898. package/dist/api/resources/plangroups/client/Client.js +0 -396
  899. package/dist/api/resources/plangroups/client/index.js +0 -17
  900. package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +0 -5
  901. package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +0 -5
  902. package/dist/api/resources/plangroups/client/requests/index.js +0 -2
  903. package/dist/api/resources/plangroups/index.js +0 -18
  904. package/dist/api/resources/plangroups/types/CreatePlanGroupResponse.js +0 -5
  905. package/dist/api/resources/plangroups/types/GetPlanGroupResponse.js +0 -5
  906. package/dist/api/resources/plangroups/types/UpdatePlanGroupResponse.js +0 -5
  907. package/dist/api/resources/plangroups/types/index.js +0 -19
  908. package/dist/api/resources/plans/client/Client.js +0 -2047
  909. package/dist/api/resources/plans/client/index.js +0 -17
  910. package/dist/api/resources/plans/client/requests/CountPlanTraitsRequest.d.ts +0 -20
  911. package/dist/api/resources/plans/client/requests/CountPlanTraitsRequest.js +0 -5
  912. package/dist/api/resources/plans/client/requests/CountPlansRequest.js +0 -5
  913. package/dist/api/resources/plans/client/requests/CreatePlanRequestBody.d.ts +0 -18
  914. package/dist/api/resources/plans/client/requests/CreatePlanRequestBody.js +0 -5
  915. package/dist/api/resources/plans/client/requests/CreatePlanTraitRequestBody.d.ts +0 -16
  916. package/dist/api/resources/plans/client/requests/CreatePlanTraitRequestBody.js +0 -5
  917. package/dist/api/resources/plans/client/requests/ListPlanTraitsRequest.d.ts +0 -20
  918. package/dist/api/resources/plans/client/requests/ListPlanTraitsRequest.js +0 -5
  919. package/dist/api/resources/plans/client/requests/ListPlansRequest.js +0 -5
  920. package/dist/api/resources/plans/client/requests/UpdateAudienceRequestBody.d.ts +0 -25
  921. package/dist/api/resources/plans/client/requests/UpdateAudienceRequestBody.js +0 -5
  922. package/dist/api/resources/plans/client/requests/UpdateCompanyPlansRequestBody.js +0 -5
  923. package/dist/api/resources/plans/client/requests/UpdatePlanRequestBody.d.ts +0 -14
  924. package/dist/api/resources/plans/client/requests/UpdatePlanRequestBody.js +0 -5
  925. package/dist/api/resources/plans/client/requests/UpdatePlanTraitRequestBody.d.ts +0 -14
  926. package/dist/api/resources/plans/client/requests/UpdatePlanTraitRequestBody.js +0 -5
  927. package/dist/api/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +0 -24
  928. package/dist/api/resources/plans/client/requests/UpsertBillingProductRequestBody.js +0 -5
  929. package/dist/api/resources/plans/client/requests/index.js +0 -2
  930. package/dist/api/resources/plans/index.js +0 -18
  931. package/dist/api/resources/plans/types/CountPlanTraitsParams.d.ts +0 -15
  932. package/dist/api/resources/plans/types/CountPlanTraitsParams.js +0 -5
  933. package/dist/api/resources/plans/types/CountPlanTraitsResponse.d.ts +0 -9
  934. package/dist/api/resources/plans/types/CountPlanTraitsResponse.js +0 -5
  935. package/dist/api/resources/plans/types/CountPlansParams.js +0 -5
  936. package/dist/api/resources/plans/types/CountPlansRequestPlanType.d.ts +0 -11
  937. package/dist/api/resources/plans/types/CountPlansRequestPlanType.js +0 -10
  938. package/dist/api/resources/plans/types/CountPlansResponse.js +0 -5
  939. package/dist/api/resources/plans/types/CountPlansResponseParamsPlanType.d.ts +0 -11
  940. package/dist/api/resources/plans/types/CountPlansResponseParamsPlanType.js +0 -10
  941. package/dist/api/resources/plans/types/CreatePlanRequestBodyPlanType.d.ts +0 -8
  942. package/dist/api/resources/plans/types/CreatePlanRequestBodyPlanType.js +0 -10
  943. package/dist/api/resources/plans/types/CreatePlanResponse.js +0 -5
  944. package/dist/api/resources/plans/types/CreatePlanTraitResponse.d.ts +0 -9
  945. package/dist/api/resources/plans/types/CreatePlanTraitResponse.js +0 -5
  946. package/dist/api/resources/plans/types/DeleteAudienceResponse.d.ts +0 -9
  947. package/dist/api/resources/plans/types/DeleteAudienceResponse.js +0 -5
  948. package/dist/api/resources/plans/types/DeletePlanResponse.js +0 -5
  949. package/dist/api/resources/plans/types/DeletePlanTraitResponse.d.ts +0 -9
  950. package/dist/api/resources/plans/types/DeletePlanTraitResponse.js +0 -5
  951. package/dist/api/resources/plans/types/GetAudienceResponse.d.ts +0 -9
  952. package/dist/api/resources/plans/types/GetAudienceResponse.js +0 -5
  953. package/dist/api/resources/plans/types/GetPlanResponse.js +0 -5
  954. package/dist/api/resources/plans/types/GetPlanTraitResponse.d.ts +0 -9
  955. package/dist/api/resources/plans/types/GetPlanTraitResponse.js +0 -5
  956. package/dist/api/resources/plans/types/ListPlanTraitsParams.d.ts +0 -15
  957. package/dist/api/resources/plans/types/ListPlanTraitsParams.js +0 -5
  958. package/dist/api/resources/plans/types/ListPlanTraitsResponse.d.ts +0 -10
  959. package/dist/api/resources/plans/types/ListPlanTraitsResponse.js +0 -5
  960. package/dist/api/resources/plans/types/ListPlansParams.js +0 -5
  961. package/dist/api/resources/plans/types/ListPlansRequestPlanType.d.ts +0 -11
  962. package/dist/api/resources/plans/types/ListPlansRequestPlanType.js +0 -10
  963. package/dist/api/resources/plans/types/ListPlansResponse.js +0 -5
  964. package/dist/api/resources/plans/types/ListPlansResponseParamsPlanType.d.ts +0 -11
  965. package/dist/api/resources/plans/types/ListPlansResponseParamsPlanType.js +0 -10
  966. package/dist/api/resources/plans/types/UpdateAudienceResponse.d.ts +0 -9
  967. package/dist/api/resources/plans/types/UpdateAudienceResponse.js +0 -5
  968. package/dist/api/resources/plans/types/UpdateCompanyPlansResponse.js +0 -5
  969. package/dist/api/resources/plans/types/UpdatePlanResponse.js +0 -5
  970. package/dist/api/resources/plans/types/UpdatePlanTraitResponse.d.ts +0 -9
  971. package/dist/api/resources/plans/types/UpdatePlanTraitResponse.js +0 -5
  972. package/dist/api/resources/plans/types/UpsertBillingProductPlanResponse.js +0 -5
  973. package/dist/api/resources/plans/types/UpsertBillingProductRequestBodyChargeType.d.ts +0 -9
  974. package/dist/api/resources/plans/types/UpsertBillingProductRequestBodyChargeType.js +0 -11
  975. package/dist/api/resources/plans/types/index.js +0 -43
  976. package/dist/api/resources/webhooks/client/Client.js +0 -1100
  977. package/dist/api/resources/webhooks/client/index.js +0 -17
  978. package/dist/api/resources/webhooks/client/requests/CountWebhookEventsRequest.js +0 -5
  979. package/dist/api/resources/webhooks/client/requests/CountWebhooksRequest.js +0 -5
  980. package/dist/api/resources/webhooks/client/requests/CreateWebhookRequestBody.js +0 -5
  981. package/dist/api/resources/webhooks/client/requests/ListWebhookEventsRequest.js +0 -5
  982. package/dist/api/resources/webhooks/client/requests/ListWebhooksRequest.js +0 -5
  983. package/dist/api/resources/webhooks/client/requests/UpdateWebhookRequestBody.js +0 -5
  984. package/dist/api/resources/webhooks/client/requests/index.js +0 -2
  985. package/dist/api/resources/webhooks/index.js +0 -18
  986. package/dist/api/resources/webhooks/types/CountWebhookEventsParams.js +0 -5
  987. package/dist/api/resources/webhooks/types/CountWebhookEventsResponse.js +0 -5
  988. package/dist/api/resources/webhooks/types/CountWebhooksParams.js +0 -5
  989. package/dist/api/resources/webhooks/types/CountWebhooksResponse.js +0 -5
  990. package/dist/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +0 -34
  991. package/dist/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +0 -36
  992. package/dist/api/resources/webhooks/types/CreateWebhookResponse.js +0 -5
  993. package/dist/api/resources/webhooks/types/DeleteWebhookResponse.js +0 -5
  994. package/dist/api/resources/webhooks/types/GetWebhookEventResponse.js +0 -5
  995. package/dist/api/resources/webhooks/types/GetWebhookResponse.js +0 -5
  996. package/dist/api/resources/webhooks/types/ListWebhookEventsParams.js +0 -5
  997. package/dist/api/resources/webhooks/types/ListWebhookEventsResponse.js +0 -5
  998. package/dist/api/resources/webhooks/types/ListWebhooksParams.js +0 -5
  999. package/dist/api/resources/webhooks/types/ListWebhooksResponse.js +0 -5
  1000. package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +0 -34
  1001. package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +0 -36
  1002. package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyStatus.d.ts +0 -8
  1003. package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyStatus.js +0 -10
  1004. package/dist/api/resources/webhooks/types/UpdateWebhookResponse.js +0 -5
  1005. package/dist/api/resources/webhooks/types/index.js +0 -32
  1006. package/dist/api/types/ApiError.js +0 -5
  1007. package/dist/api/types/ApiKeyCreateResponseData.js +0 -5
  1008. package/dist/api/types/ApiKeyRequestListResponseData.d.ts +0 -18
  1009. package/dist/api/types/ApiKeyRequestListResponseData.js +0 -5
  1010. package/dist/api/types/ApiKeyRequestResponseData.d.ts +0 -23
  1011. package/dist/api/types/ApiKeyRequestResponseData.js +0 -5
  1012. package/dist/api/types/ApiKeyResponseData.js +0 -5
  1013. package/dist/api/types/AudienceRequestBody.d.ts +0 -13
  1014. package/dist/api/types/AudienceRequestBody.js +0 -5
  1015. package/dist/api/types/BillingCouponResponseData.js +0 -5
  1016. package/dist/api/types/BillingCreditBundleResponseData.js +0 -5
  1017. package/dist/api/types/BillingCreditGrantResponseData.js +0 -5
  1018. package/dist/api/types/BillingCreditResponseData.js +0 -5
  1019. package/dist/api/types/BillingCustomerResponseData.js +0 -5
  1020. package/dist/api/types/BillingCustomerSubscription.js +0 -5
  1021. package/dist/api/types/BillingCustomerWithSubscriptionsResponseData.js +0 -5
  1022. package/dist/api/types/BillingMeterResponseData.js +0 -5
  1023. package/dist/api/types/BillingPlanCreditGrantResponseData.js +0 -5
  1024. package/dist/api/types/BillingPriceResponseData.js +0 -5
  1025. package/dist/api/types/BillingPriceView.js +0 -5
  1026. package/dist/api/types/BillingProductDetailResponseData.js +0 -5
  1027. package/dist/api/types/BillingProductForSubscriptionResponseData.js +0 -5
  1028. package/dist/api/types/BillingProductPlanResponseData.js +0 -5
  1029. package/dist/api/types/BillingProductPriceResponseData.js +0 -5
  1030. package/dist/api/types/BillingProductPriceTierResponseData.js +0 -5
  1031. package/dist/api/types/BillingProductPricing.js +0 -5
  1032. package/dist/api/types/BillingProductPricingUsageType.d.ts +0 -8
  1033. package/dist/api/types/BillingProductPricingUsageType.js +0 -10
  1034. package/dist/api/types/BillingProductResponseData.js +0 -5
  1035. package/dist/api/types/BillingSubscriptionDiscount.js +0 -5
  1036. package/dist/api/types/BillingSubscriptionDiscountView.js +0 -5
  1037. package/dist/api/types/BillingSubscriptionResponseData.js +0 -5
  1038. package/dist/api/types/BillingSubscriptionView.js +0 -5
  1039. package/dist/api/types/ChangeSubscriptionInternalRequestBody.js +0 -5
  1040. package/dist/api/types/ChangeSubscriptionRequestBody.js +0 -5
  1041. package/dist/api/types/CheckFlagRequestBody.js +0 -5
  1042. package/dist/api/types/CheckFlagResponseData.js +0 -5
  1043. package/dist/api/types/CheckFlagsResponseData.js +0 -5
  1044. package/dist/api/types/CheckoutDataResponseData.js +0 -5
  1045. package/dist/api/types/CompanyCrmDealsResponseData.d.ts +0 -11
  1046. package/dist/api/types/CompanyCrmDealsResponseData.js +0 -5
  1047. package/dist/api/types/CompanyDetailResponseData.js +0 -5
  1048. package/dist/api/types/CompanyEventPeriodMetricsResponseData.js +0 -5
  1049. package/dist/api/types/CompanyMembershipDetailResponseData.js +0 -5
  1050. package/dist/api/types/CompanyMembershipResponseData.js +0 -5
  1051. package/dist/api/types/CompanyOverrideResponseData.js +0 -5
  1052. package/dist/api/types/CompanyPlanDetailResponseData.js +0 -5
  1053. package/dist/api/types/CompanyPlanWithBillingSubView.js +0 -5
  1054. package/dist/api/types/CompanyResponseData.js +0 -5
  1055. package/dist/api/types/CompanySubscriptionResponseData.js +0 -5
  1056. package/dist/api/types/CompanyViewWithFeatureUsageResponseData.d.ts +0 -26
  1057. package/dist/api/types/CompanyViewWithFeatureUsageResponseData.js +0 -5
  1058. package/dist/api/types/CompatiblePlans.js +0 -5
  1059. package/dist/api/types/CompatiblePlansResponseData.js +0 -5
  1060. package/dist/api/types/ComponentCapabilities.js +0 -5
  1061. package/dist/api/types/ComponentHydrateResponseData.js +0 -5
  1062. package/dist/api/types/ComponentPreviewResponseData.js +0 -5
  1063. package/dist/api/types/ComponentResponseData.js +0 -5
  1064. package/dist/api/types/CountResponse.js +0 -5
  1065. package/dist/api/types/CouponRequestBody.js +0 -5
  1066. package/dist/api/types/CreateBillingPriceTierRequestBody.js +0 -5
  1067. package/dist/api/types/CreateEntitlementReqCommon.js +0 -5
  1068. package/dist/api/types/CreateEntitlementReqCommonMetricPeriod.js +0 -12
  1069. package/dist/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +0 -10
  1070. package/dist/api/types/CreateEntitlementReqCommonValueType.d.ts +0 -11
  1071. package/dist/api/types/CreateEntitlementReqCommonValueType.js +0 -13
  1072. package/dist/api/types/CreateEventRequestBody.js +0 -5
  1073. package/dist/api/types/CreateEventRequestBodyEventType.d.ts +0 -12
  1074. package/dist/api/types/CreateEventRequestBodyEventType.js +0 -11
  1075. package/dist/api/types/CreateFlagRequestBody.js +0 -5
  1076. package/dist/api/types/CreateOrUpdateConditionGroupRequestBody.js +0 -5
  1077. package/dist/api/types/CreateOrUpdateConditionRequestBody.js +0 -5
  1078. package/dist/api/types/CreateOrUpdateConditionRequestBodyConditionType.js +0 -16
  1079. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +0 -12
  1080. package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +0 -10
  1081. package/dist/api/types/CreateOrUpdateConditionRequestBodyOperator.js +0 -16
  1082. package/dist/api/types/CreateOrUpdateFlagRequestBody.js +0 -5
  1083. package/dist/api/types/CreateOrUpdateRuleRequestBody.js +0 -5
  1084. package/dist/api/types/CreateOrUpdateRuleRequestBodyRuleType.js +0 -14
  1085. package/dist/api/types/CreatePriceTierRequestBody.js +0 -5
  1086. package/dist/api/types/CreditBundlePurchaseResponseData.js +0 -5
  1087. package/dist/api/types/CreditUsageResponseData.d.ts +0 -12
  1088. package/dist/api/types/CrmDealLineItem.d.ts +0 -18
  1089. package/dist/api/types/CrmDealLineItem.js +0 -5
  1090. package/dist/api/types/CrmDealResponseData.d.ts +0 -19
  1091. package/dist/api/types/CrmDealResponseData.js +0 -5
  1092. package/dist/api/types/CrmLineItemResponseData.d.ts +0 -14
  1093. package/dist/api/types/CrmLineItemResponseData.js +0 -5
  1094. package/dist/api/types/CrmProductResponseData.d.ts +0 -18
  1095. package/dist/api/types/CrmProductResponseData.js +0 -5
  1096. package/dist/api/types/CustomPlanConfig.js +0 -5
  1097. package/dist/api/types/CustomPlanViewConfigResponseData.js +0 -5
  1098. package/dist/api/types/DataExportResponseData.js +0 -5
  1099. package/dist/api/types/Decimal.d.ts +0 -4
  1100. package/dist/api/types/Decimal.js +0 -5
  1101. package/dist/api/types/DeleteResponse.js +0 -5
  1102. package/dist/api/types/EntitlementTriggerConfig.js +0 -5
  1103. package/dist/api/types/EntitlementsInPlan.js +0 -5
  1104. package/dist/api/types/EntityKeyDefinitionResponseData.js +0 -5
  1105. package/dist/api/types/EntityKeyDetailResponseData.js +0 -5
  1106. package/dist/api/types/EntityKeyResponseData.js +0 -5
  1107. package/dist/api/types/EntityTraitDefinitionResponseData.js +0 -5
  1108. package/dist/api/types/EntityTraitDetailResponseData.js +0 -5
  1109. package/dist/api/types/EntityTraitResponseData.js +0 -5
  1110. package/dist/api/types/EntityTraitValue.js +0 -5
  1111. package/dist/api/types/EnvironmentDetailResponseData.js +0 -5
  1112. package/dist/api/types/EnvironmentResponseData.js +0 -5
  1113. package/dist/api/types/EventBody.js +0 -5
  1114. package/dist/api/types/EventBodyFlagCheck.js +0 -5
  1115. package/dist/api/types/EventBodyIdentify.js +0 -5
  1116. package/dist/api/types/EventBodyIdentifyCompany.js +0 -5
  1117. package/dist/api/types/EventBodyTrack.js +0 -5
  1118. package/dist/api/types/EventDetailResponseData.js +0 -5
  1119. package/dist/api/types/EventResponseData.js +0 -5
  1120. package/dist/api/types/EventSummaryResponseData.js +0 -5
  1121. package/dist/api/types/FeatureCompanyResponseData.js +0 -5
  1122. package/dist/api/types/FeatureCompanyResponseDataAllocationType.d.ts +0 -13
  1123. package/dist/api/types/FeatureCompanyResponseDataAllocationType.js +0 -12
  1124. package/dist/api/types/FeatureCompanyUserResponseData.js +0 -5
  1125. package/dist/api/types/FeatureCompanyUserResponseDataAllocationType.d.ts +0 -13
  1126. package/dist/api/types/FeatureCompanyUserResponseDataAllocationType.js +0 -12
  1127. package/dist/api/types/FeatureDetailResponseData.js +0 -5
  1128. package/dist/api/types/FeatureResponseData.js +0 -5
  1129. package/dist/api/types/FeatureUsageDataResponseData.d.ts +0 -19
  1130. package/dist/api/types/FeatureUsageDataResponseData.js +0 -5
  1131. package/dist/api/types/FeatureUsageDetailResponseData.js +0 -5
  1132. package/dist/api/types/FeatureUsageResponseData.js +0 -5
  1133. package/dist/api/types/FeatureUsageResponseDataAllocationType.d.ts +0 -13
  1134. package/dist/api/types/FeatureUsageResponseDataAllocationType.js +0 -12
  1135. package/dist/api/types/FlagDetailResponseData.js +0 -5
  1136. package/dist/api/types/FlagResponseData.js +0 -5
  1137. package/dist/api/types/GenericPreviewObject.js +0 -5
  1138. package/dist/api/types/InvoiceRequestBody.js +0 -5
  1139. package/dist/api/types/InvoiceResponseData.js +0 -5
  1140. package/dist/api/types/IssueTemporaryAccessTokenResponseData.js +0 -5
  1141. package/dist/api/types/KeysRequestBody.js +0 -5
  1142. package/dist/api/types/MeterRequestBody.js +0 -5
  1143. package/dist/api/types/OrderedPlansInGroup.js +0 -5
  1144. package/dist/api/types/PaginationFilter.d.ts +0 -9
  1145. package/dist/api/types/PaginationFilter.js +0 -5
  1146. package/dist/api/types/PaymentMethodRequestBody.js +0 -5
  1147. package/dist/api/types/PaymentMethodResponseData.js +0 -5
  1148. package/dist/api/types/PlanAudienceDetailResponseData.d.ts +0 -21
  1149. package/dist/api/types/PlanAudienceDetailResponseData.js +0 -5
  1150. package/dist/api/types/PlanAudienceResponseData.d.ts +0 -15
  1151. package/dist/api/types/PlanAudienceResponseData.js +0 -5
  1152. package/dist/api/types/PlanChangeActorType.d.ts +0 -7
  1153. package/dist/api/types/PlanDetailResponseData.js +0 -5
  1154. package/dist/api/types/PlanEntitlementResponseData.js +0 -5
  1155. package/dist/api/types/PlanEntitlementsOrder.js +0 -5
  1156. package/dist/api/types/PlanGroupDetailResponseData.js +0 -5
  1157. package/dist/api/types/PlanGroupPlanDetailResponseData.js +0 -5
  1158. package/dist/api/types/PlanGroupPlanEntitlementsOrder.js +0 -5
  1159. package/dist/api/types/PlanGroupResponseData.js +0 -5
  1160. package/dist/api/types/PlanResponseData.js +0 -5
  1161. package/dist/api/types/PlanTraitResponseData.js +0 -5
  1162. package/dist/api/types/PreviewObject.js +0 -5
  1163. package/dist/api/types/PreviewObjectResponseData.js +0 -5
  1164. package/dist/api/types/PreviewSubscriptionChangeResponseData.js +0 -5
  1165. package/dist/api/types/PreviewSubscriptionFinanceResponseData.js +0 -5
  1166. package/dist/api/types/PreviewSubscriptionUpcomingInvoiceLineItems.js +0 -5
  1167. package/dist/api/types/QuickstartResp.js +0 -5
  1168. package/dist/api/types/RawEventBatchResponseData.js +0 -5
  1169. package/dist/api/types/RawEventResponseData.js +0 -5
  1170. package/dist/api/types/RuleConditionDetailResponseData.js +0 -5
  1171. package/dist/api/types/RuleConditionGroupDetailResponseData.js +0 -5
  1172. package/dist/api/types/RuleConditionGroupResponseData.js +0 -5
  1173. package/dist/api/types/RuleConditionResponseData.js +0 -5
  1174. package/dist/api/types/RuleDetailResponseData.js +0 -5
  1175. package/dist/api/types/RuleResponseData.js +0 -5
  1176. package/dist/api/types/RulesDetailResponseData.js +0 -5
  1177. package/dist/api/types/SegmentStatusResp.js +0 -5
  1178. package/dist/api/types/StripeEmbedInfo.js +0 -5
  1179. package/dist/api/types/TemporaryAccessTokenResponseData.js +0 -5
  1180. package/dist/api/types/UpdateAddOnRequestBody.js +0 -5
  1181. package/dist/api/types/UpdateCreditBundleRequestBody.js +0 -5
  1182. package/dist/api/types/UpdateEntitlementReqCommon.js +0 -5
  1183. package/dist/api/types/UpdateEntitlementReqCommonMetricPeriod.js +0 -12
  1184. package/dist/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +0 -10
  1185. package/dist/api/types/UpdateEntitlementReqCommonValueType.d.ts +0 -11
  1186. package/dist/api/types/UpdateEntitlementReqCommonValueType.js +0 -13
  1187. package/dist/api/types/UpdatePayInAdvanceRequestBody.js +0 -5
  1188. package/dist/api/types/UpdateRuleRequestBody.js +0 -5
  1189. package/dist/api/types/UpsertCompanyRequestBody.js +0 -5
  1190. package/dist/api/types/UpsertTraitRequestBody.js +0 -5
  1191. package/dist/api/types/UpsertUserRequestBody.js +0 -5
  1192. package/dist/api/types/UpsertUserSubRequestBody.js +0 -5
  1193. package/dist/api/types/UsageBasedEntitlementRequestBody.js +0 -5
  1194. package/dist/api/types/UsageBasedEntitlementRequestBodyPriceBehavior.d.ts +0 -11
  1195. package/dist/api/types/UsageBasedEntitlementRequestBodyPriceBehavior.js +0 -13
  1196. package/dist/api/types/UsageBasedEntitlementResponseData.js +0 -5
  1197. package/dist/api/types/UserDetailResponseData.js +0 -5
  1198. package/dist/api/types/UserResponseData.js +0 -5
  1199. package/dist/api/types/WebhookEventDetailResponseData.js +0 -5
  1200. package/dist/api/types/WebhookEventResponseData.js +0 -5
  1201. package/dist/api/types/WebhookResponseData.js +0 -5
  1202. package/dist/api/types/index.js +0 -188
  1203. package/dist/cache.d.ts +0 -22
  1204. package/dist/cache.js +0 -102
  1205. package/dist/core/fetcher/APIResponse.js +0 -2
  1206. package/dist/core/fetcher/Fetcher.js +0 -107
  1207. package/dist/core/fetcher/Headers.js +0 -84
  1208. package/dist/core/fetcher/HttpResponsePromise.js +0 -103
  1209. package/dist/core/fetcher/RawResponse.js +0 -44
  1210. package/dist/core/fetcher/Supplier.js +0 -22
  1211. package/dist/core/fetcher/createRequestUrl.js +0 -12
  1212. package/dist/core/fetcher/custom.js +0 -132
  1213. package/dist/core/fetcher/getFetchFn.js +0 -68
  1214. package/dist/core/fetcher/getHeader.js +0 -11
  1215. package/dist/core/fetcher/getRequestBody.js +0 -23
  1216. package/dist/core/fetcher/getResponseBody.js +0 -54
  1217. package/dist/core/fetcher/index.js +0 -15
  1218. package/dist/core/fetcher/makeRequest.js +0 -42
  1219. package/dist/core/fetcher/requestWithRetries.js +0 -40
  1220. package/dist/core/fetcher/signals.js +0 -36
  1221. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
  1222. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
  1223. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
  1224. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
  1225. package/dist/core/index.js +0 -42
  1226. package/dist/core/json.js +0 -24
  1227. package/dist/core/runtime/index.js +0 -5
  1228. package/dist/core/runtime/runtime.js +0 -103
  1229. package/dist/core/schemas/Schema.js +0 -24
  1230. package/dist/core/schemas/builders/bigint/bigint.js +0 -53
  1231. package/dist/core/schemas/builders/bigint/index.js +0 -5
  1232. package/dist/core/schemas/builders/date/date.js +0 -62
  1233. package/dist/core/schemas/builders/date/index.js +0 -5
  1234. package/dist/core/schemas/builders/enum/enum.js +0 -38
  1235. package/dist/core/schemas/builders/enum/index.js +0 -5
  1236. package/dist/core/schemas/builders/index.js +0 -30
  1237. package/dist/core/schemas/builders/lazy/index.js +0 -7
  1238. package/dist/core/schemas/builders/lazy/lazy.js +0 -24
  1239. package/dist/core/schemas/builders/lazy/lazyObject.js +0 -11
  1240. package/dist/core/schemas/builders/list/index.js +0 -5
  1241. package/dist/core/schemas/builders/list/list.js +0 -54
  1242. package/dist/core/schemas/builders/literals/booleanLiteral.js +0 -28
  1243. package/dist/core/schemas/builders/literals/index.js +0 -7
  1244. package/dist/core/schemas/builders/literals/stringLiteral.js +0 -28
  1245. package/dist/core/schemas/builders/object/index.js +0 -11
  1246. package/dist/core/schemas/builders/object/object.js +0 -261
  1247. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +0 -7
  1248. package/dist/core/schemas/builders/object/property.js +0 -15
  1249. package/dist/core/schemas/builders/object/types.js +0 -2
  1250. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +0 -53
  1251. package/dist/core/schemas/builders/object-like/index.js +0 -6
  1252. package/dist/core/schemas/builders/object-like/types.js +0 -2
  1253. package/dist/core/schemas/builders/primitives/any.js +0 -6
  1254. package/dist/core/schemas/builders/primitives/boolean.js +0 -25
  1255. package/dist/core/schemas/builders/primitives/index.js +0 -13
  1256. package/dist/core/schemas/builders/primitives/number.js +0 -25
  1257. package/dist/core/schemas/builders/primitives/string.js +0 -25
  1258. package/dist/core/schemas/builders/primitives/unknown.js +0 -6
  1259. package/dist/core/schemas/builders/record/index.js +0 -5
  1260. package/dist/core/schemas/builders/record/record.js +0 -93
  1261. package/dist/core/schemas/builders/record/types.js +0 -2
  1262. package/dist/core/schemas/builders/schema-utils/JsonError.js +0 -12
  1263. package/dist/core/schemas/builders/schema-utils/ParseError.js +0 -12
  1264. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +0 -145
  1265. package/dist/core/schemas/builders/schema-utils/index.js +0 -11
  1266. package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +0 -9
  1267. package/dist/core/schemas/builders/set/index.js +0 -5
  1268. package/dist/core/schemas/builders/set/set.js +0 -43
  1269. package/dist/core/schemas/builders/undiscriminated-union/index.js +0 -5
  1270. package/dist/core/schemas/builders/undiscriminated-union/types.js +0 -2
  1271. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +0 -39
  1272. package/dist/core/schemas/builders/union/discriminant.js +0 -9
  1273. package/dist/core/schemas/builders/union/index.js +0 -7
  1274. package/dist/core/schemas/builders/union/types.js +0 -2
  1275. package/dist/core/schemas/builders/union/union.js +0 -129
  1276. package/dist/core/schemas/index.js +0 -17
  1277. package/dist/core/schemas/utils/MaybePromise.js +0 -2
  1278. package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.js +0 -2
  1279. package/dist/core/schemas/utils/createIdentitySchemaCreator.js +0 -15
  1280. package/dist/core/schemas/utils/entries.js +0 -6
  1281. package/dist/core/schemas/utils/filterObject.js +0 -13
  1282. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +0 -27
  1283. package/dist/core/schemas/utils/isPlainObject.js +0 -17
  1284. package/dist/core/schemas/utils/keys.js +0 -6
  1285. package/dist/core/schemas/utils/maybeSkipValidation.js +0 -27
  1286. package/dist/core/schemas/utils/partition.js +0 -15
  1287. package/dist/environments.js +0 -9
  1288. package/dist/errors/SchematicError.js +0 -30
  1289. package/dist/errors/SchematicTimeoutError.js +0 -13
  1290. package/dist/errors/index.js +0 -7
  1291. package/dist/events.js +0 -118
  1292. package/dist/logger.js +0 -19
  1293. package/dist/main.js +0 -1
  1294. package/dist/serialization/index.js +0 -18
  1295. package/dist/serialization/resources/accesstokens/client/index.js +0 -17
  1296. package/dist/serialization/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.js +0 -44
  1297. package/dist/serialization/resources/accesstokens/client/requests/index.js +0 -5
  1298. package/dist/serialization/resources/accesstokens/index.js +0 -18
  1299. package/dist/serialization/resources/accesstokens/types/IssueTemporaryAccessTokenResponse.js +0 -45
  1300. package/dist/serialization/resources/accesstokens/types/index.js +0 -17
  1301. package/dist/serialization/resources/accounts/client/index.js +0 -17
  1302. package/dist/serialization/resources/accounts/client/requests/CreateApiKeyRequestBody.js +0 -45
  1303. package/dist/serialization/resources/accounts/client/requests/CreateEnvironmentRequestBody.js +0 -45
  1304. package/dist/serialization/resources/accounts/client/requests/UpdateApiKeyRequestBody.js +0 -44
  1305. package/dist/serialization/resources/accounts/client/requests/UpdateEnvironmentRequestBody.js +0 -45
  1306. package/dist/serialization/resources/accounts/client/requests/index.js +0 -11
  1307. package/dist/serialization/resources/accounts/index.js +0 -18
  1308. package/dist/serialization/resources/accounts/types/CountApiKeysParams.js +0 -46
  1309. package/dist/serialization/resources/accounts/types/CountApiKeysResponse.js +0 -46
  1310. package/dist/serialization/resources/accounts/types/CountApiRequestsParams.d.ts +0 -13
  1311. package/dist/serialization/resources/accounts/types/CountApiRequestsParams.js +0 -47
  1312. package/dist/serialization/resources/accounts/types/CountApiRequestsResponse.d.ts +0 -12
  1313. package/dist/serialization/resources/accounts/types/CountApiRequestsResponse.js +0 -46
  1314. package/dist/serialization/resources/accounts/types/CreateApiKeyResponse.js +0 -45
  1315. package/dist/serialization/resources/accounts/types/CreateEnvironmentRequestBodyEnvironmentType.d.ts +0 -10
  1316. package/dist/serialization/resources/accounts/types/CreateEnvironmentRequestBodyEnvironmentType.js +0 -41
  1317. package/dist/serialization/resources/accounts/types/CreateEnvironmentResponse.js +0 -45
  1318. package/dist/serialization/resources/accounts/types/DeleteApiKeyResponse.js +0 -45
  1319. package/dist/serialization/resources/accounts/types/DeleteEnvironmentResponse.js +0 -45
  1320. package/dist/serialization/resources/accounts/types/GetApiKeyResponse.js +0 -45
  1321. package/dist/serialization/resources/accounts/types/GetApiRequestResponse.d.ts +0 -11
  1322. package/dist/serialization/resources/accounts/types/GetApiRequestResponse.js +0 -45
  1323. package/dist/serialization/resources/accounts/types/GetEnvironmentResponse.js +0 -45
  1324. package/dist/serialization/resources/accounts/types/ListApiKeysParams.js +0 -46
  1325. package/dist/serialization/resources/accounts/types/ListApiKeysResponse.js +0 -46
  1326. package/dist/serialization/resources/accounts/types/ListApiRequestsParams.d.ts +0 -13
  1327. package/dist/serialization/resources/accounts/types/ListApiRequestsParams.js +0 -47
  1328. package/dist/serialization/resources/accounts/types/ListApiRequestsResponse.d.ts +0 -12
  1329. package/dist/serialization/resources/accounts/types/ListApiRequestsResponse.js +0 -46
  1330. package/dist/serialization/resources/accounts/types/ListEnvironmentsParams.js +0 -45
  1331. package/dist/serialization/resources/accounts/types/ListEnvironmentsResponse.js +0 -46
  1332. package/dist/serialization/resources/accounts/types/QuickstartResponse.js +0 -45
  1333. package/dist/serialization/resources/accounts/types/UpdateApiKeyResponse.js +0 -45
  1334. package/dist/serialization/resources/accounts/types/UpdateEnvironmentRequestBodyEnvironmentType.d.ts +0 -10
  1335. package/dist/serialization/resources/accounts/types/UpdateEnvironmentRequestBodyEnvironmentType.js +0 -41
  1336. package/dist/serialization/resources/accounts/types/UpdateEnvironmentResponse.js +0 -45
  1337. package/dist/serialization/resources/accounts/types/index.js +0 -38
  1338. package/dist/serialization/resources/billing/client/index.js +0 -17
  1339. package/dist/serialization/resources/billing/client/requests/CreateBillingCustomerRequestBody.js +0 -49
  1340. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +0 -60
  1341. package/dist/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.js +0 -46
  1342. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +0 -31
  1343. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +0 -62
  1344. package/dist/serialization/resources/billing/client/requests/CreateCouponRequestBody.js +0 -51
  1345. package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.js +0 -54
  1346. package/dist/serialization/resources/billing/client/requests/CreateMeterRequestBody.js +0 -46
  1347. package/dist/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +0 -54
  1348. package/dist/serialization/resources/billing/client/requests/index.js +0 -19
  1349. package/dist/serialization/resources/billing/index.js +0 -18
  1350. package/dist/serialization/resources/billing/types/CountBillingProductsParams.js +0 -54
  1351. package/dist/serialization/resources/billing/types/CountBillingProductsRequestPriceUsageType.d.ts +0 -10
  1352. package/dist/serialization/resources/billing/types/CountBillingProductsRequestPriceUsageType.js +0 -41
  1353. package/dist/serialization/resources/billing/types/CountBillingProductsResponse.js +0 -46
  1354. package/dist/serialization/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.d.ts +0 -10
  1355. package/dist/serialization/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.js +0 -41
  1356. package/dist/serialization/resources/billing/types/CountCustomersParams.js +0 -48
  1357. package/dist/serialization/resources/billing/types/CountCustomersResponse.js +0 -46
  1358. package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.d.ts +0 -10
  1359. package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.js +0 -41
  1360. package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyTiersMode.d.ts +0 -10
  1361. package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyTiersMode.js +0 -41
  1362. package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyUsageType.d.ts +0 -10
  1363. package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyUsageType.js +0 -41
  1364. package/dist/serialization/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.d.ts +0 -10
  1365. package/dist/serialization/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.js +0 -41
  1366. package/dist/serialization/resources/billing/types/DeleteBillingProductResponse.js +0 -45
  1367. package/dist/serialization/resources/billing/types/DeleteProductPriceResponse.js +0 -45
  1368. package/dist/serialization/resources/billing/types/ListBillingProductsParams.js +0 -54
  1369. package/dist/serialization/resources/billing/types/ListBillingProductsRequestPriceUsageType.d.ts +0 -10
  1370. package/dist/serialization/resources/billing/types/ListBillingProductsRequestPriceUsageType.js +0 -41
  1371. package/dist/serialization/resources/billing/types/ListBillingProductsResponse.js +0 -46
  1372. package/dist/serialization/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.d.ts +0 -10
  1373. package/dist/serialization/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.js +0 -41
  1374. package/dist/serialization/resources/billing/types/ListCouponsParams.js +0 -46
  1375. package/dist/serialization/resources/billing/types/ListCouponsResponse.js +0 -46
  1376. package/dist/serialization/resources/billing/types/ListCustomersWithSubscriptionsParams.js +0 -48
  1377. package/dist/serialization/resources/billing/types/ListCustomersWithSubscriptionsResponse.js +0 -46
  1378. package/dist/serialization/resources/billing/types/ListInvoicesParams.js +0 -47
  1379. package/dist/serialization/resources/billing/types/ListInvoicesResponse.js +0 -46
  1380. package/dist/serialization/resources/billing/types/ListMetersParams.js +0 -45
  1381. package/dist/serialization/resources/billing/types/ListMetersResponse.js +0 -46
  1382. package/dist/serialization/resources/billing/types/ListPaymentMethodsParams.js +0 -46
  1383. package/dist/serialization/resources/billing/types/ListPaymentMethodsResponse.js +0 -46
  1384. package/dist/serialization/resources/billing/types/ListProductPricesParams.d.ts +0 -23
  1385. package/dist/serialization/resources/billing/types/ListProductPricesParams.js +0 -54
  1386. package/dist/serialization/resources/billing/types/ListProductPricesRequestPriceUsageType.d.ts +0 -10
  1387. package/dist/serialization/resources/billing/types/ListProductPricesRequestPriceUsageType.js +0 -41
  1388. package/dist/serialization/resources/billing/types/ListProductPricesResponse.d.ts +0 -15
  1389. package/dist/serialization/resources/billing/types/ListProductPricesResponse.js +0 -46
  1390. package/dist/serialization/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.d.ts +0 -10
  1391. package/dist/serialization/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.js +0 -41
  1392. package/dist/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +0 -21
  1393. package/dist/serialization/resources/billing/types/SearchBillingPricesParams.js +0 -52
  1394. package/dist/serialization/resources/billing/types/SearchBillingPricesRequestTiersMode.d.ts +0 -10
  1395. package/dist/serialization/resources/billing/types/SearchBillingPricesRequestTiersMode.js +0 -41
  1396. package/dist/serialization/resources/billing/types/SearchBillingPricesRequestUsageType.d.ts +0 -10
  1397. package/dist/serialization/resources/billing/types/SearchBillingPricesRequestUsageType.js +0 -41
  1398. package/dist/serialization/resources/billing/types/SearchBillingPricesResponse.d.ts +0 -15
  1399. package/dist/serialization/resources/billing/types/SearchBillingPricesResponse.js +0 -46
  1400. package/dist/serialization/resources/billing/types/SearchBillingPricesResponseParamsTiersMode.d.ts +0 -10
  1401. package/dist/serialization/resources/billing/types/SearchBillingPricesResponseParamsTiersMode.js +0 -41
  1402. package/dist/serialization/resources/billing/types/SearchBillingPricesResponseParamsUsageType.d.ts +0 -10
  1403. package/dist/serialization/resources/billing/types/SearchBillingPricesResponseParamsUsageType.js +0 -41
  1404. package/dist/serialization/resources/billing/types/UpsertBillingCouponResponse.js +0 -45
  1405. package/dist/serialization/resources/billing/types/UpsertBillingCustomerResponse.js +0 -45
  1406. package/dist/serialization/resources/billing/types/UpsertBillingMeterResponse.js +0 -45
  1407. package/dist/serialization/resources/billing/types/UpsertBillingPriceResponse.js +0 -45
  1408. package/dist/serialization/resources/billing/types/UpsertBillingProductResponse.js +0 -45
  1409. package/dist/serialization/resources/billing/types/UpsertBillingSubscriptionResponse.js +0 -45
  1410. package/dist/serialization/resources/billing/types/UpsertInvoiceResponse.js +0 -45
  1411. package/dist/serialization/resources/billing/types/UpsertPaymentMethodResponse.js +0 -45
  1412. package/dist/serialization/resources/billing/types/index.js +0 -60
  1413. package/dist/serialization/resources/checkout/client/index.js +0 -17
  1414. package/dist/serialization/resources/checkout/client/requests/CheckoutDataRequestBody.js +0 -44
  1415. package/dist/serialization/resources/checkout/client/requests/UpdateTrialEndRequestBody.js +0 -43
  1416. package/dist/serialization/resources/checkout/client/requests/index.js +0 -7
  1417. package/dist/serialization/resources/checkout/index.js +0 -18
  1418. package/dist/serialization/resources/checkout/types/CheckoutInternalResponse.js +0 -45
  1419. package/dist/serialization/resources/checkout/types/GetCheckoutDataResponse.js +0 -45
  1420. package/dist/serialization/resources/checkout/types/PreviewCheckoutInternalResponse.js +0 -45
  1421. package/dist/serialization/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.js +0 -45
  1422. package/dist/serialization/resources/checkout/types/index.js +0 -20
  1423. package/dist/serialization/resources/companies/client/index.js +0 -17
  1424. package/dist/serialization/resources/companies/client/requests/CreateEntityTraitDefinitionRequestBody.js +0 -48
  1425. package/dist/serialization/resources/companies/client/requests/GetOrCreateCompanyMembershipRequestBody.js +0 -44
  1426. package/dist/serialization/resources/companies/client/requests/UpdateEntityTraitDefinitionRequestBody.js +0 -45
  1427. package/dist/serialization/resources/companies/client/requests/index.js +0 -9
  1428. package/dist/serialization/resources/companies/index.js +0 -18
  1429. package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterParams.d.ts +0 -26
  1430. package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterParams.js +0 -57
  1431. package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterRequestSortOrderDirection.d.ts +0 -10
  1432. package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterRequestSortOrderDirection.js +0 -41
  1433. package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterResponse.d.ts +0 -12
  1434. package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterResponse.js +0 -46
  1435. package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterResponseParamsSortOrderDirection.d.ts +0 -10
  1436. package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterResponseParamsSortOrderDirection.js +0 -41
  1437. package/dist/serialization/resources/companies/types/CountCompaniesParams.js +0 -50
  1438. package/dist/serialization/resources/companies/types/CountCompaniesResponse.js +0 -46
  1439. package/dist/serialization/resources/companies/types/CountEntityKeyDefinitionsParams.js +0 -48
  1440. package/dist/serialization/resources/companies/types/CountEntityKeyDefinitionsRequestEntityType.d.ts +0 -10
  1441. package/dist/serialization/resources/companies/types/CountEntityKeyDefinitionsRequestEntityType.js +0 -41
  1442. package/dist/serialization/resources/companies/types/CountEntityKeyDefinitionsResponse.js +0 -46
  1443. package/dist/serialization/resources/companies/types/CountEntityKeyDefinitionsResponseParamsEntityType.d.ts +0 -10
  1444. package/dist/serialization/resources/companies/types/CountEntityKeyDefinitionsResponseParamsEntityType.js +0 -41
  1445. package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsParams.js +0 -50
  1446. package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsRequestEntityType.d.ts +0 -10
  1447. package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsRequestEntityType.js +0 -41
  1448. package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsRequestTraitType.d.ts +0 -10
  1449. package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsRequestTraitType.js +0 -41
  1450. package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsResponse.js +0 -46
  1451. package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsResponseParamsEntityType.d.ts +0 -10
  1452. package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsResponseParamsEntityType.js +0 -41
  1453. package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsResponseParamsTraitType.d.ts +0 -10
  1454. package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsResponseParamsTraitType.js +0 -41
  1455. package/dist/serialization/resources/companies/types/CountUsersParams.js +0 -48
  1456. package/dist/serialization/resources/companies/types/CountUsersResponse.js +0 -46
  1457. package/dist/serialization/resources/companies/types/CreateCompanyResponse.js +0 -45
  1458. package/dist/serialization/resources/companies/types/CreateEntityTraitDefinitionRequestBodyEntityType.d.ts +0 -10
  1459. package/dist/serialization/resources/companies/types/CreateEntityTraitDefinitionRequestBodyEntityType.js +0 -41
  1460. package/dist/serialization/resources/companies/types/CreateEntityTraitDefinitionRequestBodyTraitType.d.ts +0 -10
  1461. package/dist/serialization/resources/companies/types/CreateEntityTraitDefinitionRequestBodyTraitType.js +0 -41
  1462. package/dist/serialization/resources/companies/types/CreateUserResponse.js +0 -45
  1463. package/dist/serialization/resources/companies/types/DeleteCompanyByKeysResponse.js +0 -45
  1464. package/dist/serialization/resources/companies/types/DeleteCompanyMembershipResponse.js +0 -45
  1465. package/dist/serialization/resources/companies/types/DeleteCompanyResponse.js +0 -45
  1466. package/dist/serialization/resources/companies/types/DeleteUserByKeysResponse.js +0 -45
  1467. package/dist/serialization/resources/companies/types/DeleteUserResponse.js +0 -45
  1468. package/dist/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.js +0 -46
  1469. package/dist/serialization/resources/companies/types/GetActiveCompanySubscriptionResponse.js +0 -46
  1470. package/dist/serialization/resources/companies/types/GetActiveDealsParams.d.ts +0 -15
  1471. package/dist/serialization/resources/companies/types/GetActiveDealsParams.js +0 -46
  1472. package/dist/serialization/resources/companies/types/GetActiveDealsResponse.d.ts +0 -15
  1473. package/dist/serialization/resources/companies/types/GetActiveDealsResponse.js +0 -46
  1474. package/dist/serialization/resources/companies/types/GetCompanyResponse.js +0 -45
  1475. package/dist/serialization/resources/companies/types/GetEntityTraitDefinitionResponse.js +0 -45
  1476. package/dist/serialization/resources/companies/types/GetEntityTraitValuesParams.js +0 -46
  1477. package/dist/serialization/resources/companies/types/GetEntityTraitValuesResponse.js +0 -46
  1478. package/dist/serialization/resources/companies/types/GetOrCreateCompanyMembershipResponse.js +0 -45
  1479. package/dist/serialization/resources/companies/types/GetOrCreateEntityTraitDefinitionResponse.js +0 -45
  1480. package/dist/serialization/resources/companies/types/GetUserResponse.js +0 -45
  1481. package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterParams.d.ts +0 -26
  1482. package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterParams.js +0 -57
  1483. package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterRequestSortOrderDirection.d.ts +0 -10
  1484. package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterRequestSortOrderDirection.js +0 -41
  1485. package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterResponse.d.ts +0 -12
  1486. package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterResponse.js +0 -46
  1487. package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterResponseParamsSortOrderDirection.d.ts +0 -10
  1488. package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterResponseParamsSortOrderDirection.js +0 -41
  1489. package/dist/serialization/resources/companies/types/ListCompaniesParams.js +0 -50
  1490. package/dist/serialization/resources/companies/types/ListCompaniesResponse.js +0 -46
  1491. package/dist/serialization/resources/companies/types/ListCompanyMembershipsParams.js +0 -46
  1492. package/dist/serialization/resources/companies/types/ListCompanyMembershipsResponse.js +0 -46
  1493. package/dist/serialization/resources/companies/types/ListEntityKeyDefinitionsParams.js +0 -48
  1494. package/dist/serialization/resources/companies/types/ListEntityKeyDefinitionsRequestEntityType.d.ts +0 -10
  1495. package/dist/serialization/resources/companies/types/ListEntityKeyDefinitionsRequestEntityType.js +0 -41
  1496. package/dist/serialization/resources/companies/types/ListEntityKeyDefinitionsResponse.js +0 -46
  1497. package/dist/serialization/resources/companies/types/ListEntityKeyDefinitionsResponseParamsEntityType.d.ts +0 -10
  1498. package/dist/serialization/resources/companies/types/ListEntityKeyDefinitionsResponseParamsEntityType.js +0 -41
  1499. package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsParams.js +0 -50
  1500. package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsRequestEntityType.d.ts +0 -10
  1501. package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsRequestEntityType.js +0 -41
  1502. package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsRequestTraitType.d.ts +0 -10
  1503. package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsRequestTraitType.js +0 -41
  1504. package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsResponse.js +0 -46
  1505. package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsResponseParamsEntityType.d.ts +0 -10
  1506. package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsResponseParamsEntityType.js +0 -41
  1507. package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsResponseParamsTraitType.d.ts +0 -10
  1508. package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsResponseParamsTraitType.js +0 -41
  1509. package/dist/serialization/resources/companies/types/ListUsersParams.js +0 -48
  1510. package/dist/serialization/resources/companies/types/ListUsersResponse.js +0 -46
  1511. package/dist/serialization/resources/companies/types/LookupCompanyParams.js +0 -43
  1512. package/dist/serialization/resources/companies/types/LookupCompanyResponse.js +0 -46
  1513. package/dist/serialization/resources/companies/types/LookupUserParams.js +0 -43
  1514. package/dist/serialization/resources/companies/types/LookupUserResponse.js +0 -46
  1515. package/dist/serialization/resources/companies/types/UpdateEntityTraitDefinitionRequestBodyTraitType.d.ts +0 -10
  1516. package/dist/serialization/resources/companies/types/UpdateEntityTraitDefinitionRequestBodyTraitType.js +0 -41
  1517. package/dist/serialization/resources/companies/types/UpdateEntityTraitDefinitionResponse.js +0 -45
  1518. package/dist/serialization/resources/companies/types/UpsertCompanyResponse.js +0 -45
  1519. package/dist/serialization/resources/companies/types/UpsertCompanyTraitResponse.js +0 -45
  1520. package/dist/serialization/resources/companies/types/UpsertUserResponse.js +0 -45
  1521. package/dist/serialization/resources/companies/types/UpsertUserTraitResponse.js +0 -45
  1522. package/dist/serialization/resources/companies/types/index.js +0 -84
  1523. package/dist/serialization/resources/components/client/index.js +0 -17
  1524. package/dist/serialization/resources/components/client/requests/CreateComponentRequestBody.js +0 -46
  1525. package/dist/serialization/resources/components/client/requests/UpdateComponentRequestBody.js +0 -48
  1526. package/dist/serialization/resources/components/client/requests/index.js +0 -7
  1527. package/dist/serialization/resources/components/index.js +0 -18
  1528. package/dist/serialization/resources/components/types/CountComponentsParams.js +0 -45
  1529. package/dist/serialization/resources/components/types/CountComponentsResponse.js +0 -46
  1530. package/dist/serialization/resources/components/types/CreateComponentRequestBodyEntityType.d.ts +0 -10
  1531. package/dist/serialization/resources/components/types/CreateComponentRequestBodyEntityType.js +0 -41
  1532. package/dist/serialization/resources/components/types/CreateComponentResponse.js +0 -45
  1533. package/dist/serialization/resources/components/types/DeleteComponentResponse.js +0 -45
  1534. package/dist/serialization/resources/components/types/GetComponentResponse.js +0 -45
  1535. package/dist/serialization/resources/components/types/ListComponentsParams.js +0 -45
  1536. package/dist/serialization/resources/components/types/ListComponentsResponse.js +0 -46
  1537. package/dist/serialization/resources/components/types/PreviewComponentDataParams.js +0 -44
  1538. package/dist/serialization/resources/components/types/PreviewComponentDataResponse.js +0 -46
  1539. package/dist/serialization/resources/components/types/UpdateComponentRequestBodyEntityType.d.ts +0 -10
  1540. package/dist/serialization/resources/components/types/UpdateComponentRequestBodyEntityType.js +0 -41
  1541. package/dist/serialization/resources/components/types/UpdateComponentRequestBodyState.d.ts +0 -10
  1542. package/dist/serialization/resources/components/types/UpdateComponentRequestBodyState.js +0 -41
  1543. package/dist/serialization/resources/components/types/UpdateComponentResponse.js +0 -45
  1544. package/dist/serialization/resources/components/types/index.js +0 -29
  1545. package/dist/serialization/resources/credits/client/index.js +0 -17
  1546. package/dist/serialization/resources/credits/client/requests/CreateBillingCreditRequestBody.js +0 -56
  1547. package/dist/serialization/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.d.ts +0 -18
  1548. package/dist/serialization/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.js +0 -49
  1549. package/dist/serialization/resources/credits/client/requests/CreateCreditBundleRequestBody.js +0 -54
  1550. package/dist/serialization/resources/credits/client/requests/UpdateBillingCreditRequestBody.js +0 -55
  1551. package/dist/serialization/resources/credits/client/requests/ZeroOutGrantRequestBody.js +0 -44
  1552. package/dist/serialization/resources/credits/client/requests/index.js +0 -13
  1553. package/dist/serialization/resources/credits/index.js +0 -18
  1554. package/dist/serialization/resources/credits/types/CountBillingCreditsGrantsParams.js +0 -46
  1555. package/dist/serialization/resources/credits/types/CountBillingCreditsGrantsResponse.js +0 -46
  1556. package/dist/serialization/resources/credits/types/CountBillingCreditsParams.js +0 -46
  1557. package/dist/serialization/resources/credits/types/CountBillingCreditsResponse.js +0 -46
  1558. package/dist/serialization/resources/credits/types/CountBillingPlanCreditGrantsParams.js +0 -47
  1559. package/dist/serialization/resources/credits/types/CountBillingPlanCreditGrantsResponse.js +0 -46
  1560. package/dist/serialization/resources/credits/types/CountCreditBundlesParams.js +0 -49
  1561. package/dist/serialization/resources/credits/types/CountCreditBundlesRequestStatus.d.ts +0 -10
  1562. package/dist/serialization/resources/credits/types/CountCreditBundlesRequestStatus.js +0 -41
  1563. package/dist/serialization/resources/credits/types/CountCreditBundlesResponse.js +0 -46
  1564. package/dist/serialization/resources/credits/types/CountCreditBundlesResponseParamsStatus.d.ts +0 -10
  1565. package/dist/serialization/resources/credits/types/CountCreditBundlesResponseParamsStatus.js +0 -41
  1566. package/dist/serialization/resources/credits/types/CreateBillingCreditRequestBodyBurnStrategy.d.ts +0 -10
  1567. package/dist/serialization/resources/credits/types/CreateBillingCreditRequestBodyBurnStrategy.js +0 -46
  1568. package/dist/serialization/resources/credits/types/CreateBillingCreditRequestBodyDefaultRolloverPolicy.d.ts +0 -10
  1569. package/dist/serialization/resources/credits/types/CreateBillingCreditRequestBodyDefaultRolloverPolicy.js +0 -41
  1570. package/dist/serialization/resources/credits/types/CreateBillingCreditResponse.js +0 -45
  1571. package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetCadence.d.ts +0 -10
  1572. package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetCadence.js +0 -41
  1573. package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetStart.d.ts +0 -10
  1574. package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetStart.js +0 -41
  1575. package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantResponse.js +0 -45
  1576. package/dist/serialization/resources/credits/types/CreateCreditBundleRequestBodyExpiryType.d.ts +0 -10
  1577. package/dist/serialization/resources/credits/types/CreateCreditBundleRequestBodyExpiryType.js +0 -41
  1578. package/dist/serialization/resources/credits/types/CreateCreditBundleRequestBodyStatus.d.ts +0 -10
  1579. package/dist/serialization/resources/credits/types/CreateCreditBundleRequestBodyStatus.js +0 -41
  1580. package/dist/serialization/resources/credits/types/CreateCreditBundleResponse.js +0 -45
  1581. package/dist/serialization/resources/credits/types/DeleteBillingPlanCreditGrantResponse.js +0 -45
  1582. package/dist/serialization/resources/credits/types/DeleteCreditBundleResponse.js +0 -45
  1583. package/dist/serialization/resources/credits/types/GetCreditBundleResponse.js +0 -45
  1584. package/dist/serialization/resources/credits/types/GetSingleBillingCreditResponse.js +0 -45
  1585. package/dist/serialization/resources/credits/types/ListBillingCreditsParams.js +0 -46
  1586. package/dist/serialization/resources/credits/types/ListBillingCreditsResponse.js +0 -46
  1587. package/dist/serialization/resources/credits/types/ListBillingPlanCreditGrantsParams.js +0 -47
  1588. package/dist/serialization/resources/credits/types/ListBillingPlanCreditGrantsResponse.js +0 -46
  1589. package/dist/serialization/resources/credits/types/ListCompanyGrantsParams.js +0 -49
  1590. package/dist/serialization/resources/credits/types/ListCompanyGrantsRequestDir.d.ts +0 -10
  1591. package/dist/serialization/resources/credits/types/ListCompanyGrantsRequestDir.js +0 -41
  1592. package/dist/serialization/resources/credits/types/ListCompanyGrantsRequestOrder.d.ts +0 -10
  1593. package/dist/serialization/resources/credits/types/ListCompanyGrantsRequestOrder.js +0 -41
  1594. package/dist/serialization/resources/credits/types/ListCompanyGrantsResponse.js +0 -46
  1595. package/dist/serialization/resources/credits/types/ListCompanyGrantsResponseParamsDir.d.ts +0 -10
  1596. package/dist/serialization/resources/credits/types/ListCompanyGrantsResponseParamsDir.js +0 -41
  1597. package/dist/serialization/resources/credits/types/ListCompanyGrantsResponseParamsOrder.d.ts +0 -10
  1598. package/dist/serialization/resources/credits/types/ListCompanyGrantsResponseParamsOrder.js +0 -41
  1599. package/dist/serialization/resources/credits/types/ListCreditBundlesParams.js +0 -49
  1600. package/dist/serialization/resources/credits/types/ListCreditBundlesRequestStatus.d.ts +0 -10
  1601. package/dist/serialization/resources/credits/types/ListCreditBundlesRequestStatus.js +0 -41
  1602. package/dist/serialization/resources/credits/types/ListCreditBundlesResponse.js +0 -46
  1603. package/dist/serialization/resources/credits/types/ListCreditBundlesResponseParamsStatus.d.ts +0 -10
  1604. package/dist/serialization/resources/credits/types/ListCreditBundlesResponseParamsStatus.js +0 -41
  1605. package/dist/serialization/resources/credits/types/ListGrantsForCreditParams.js +0 -46
  1606. package/dist/serialization/resources/credits/types/ListGrantsForCreditResponse.js +0 -46
  1607. package/dist/serialization/resources/credits/types/UpdateBillingCreditRequestBodyBurnStrategy.d.ts +0 -10
  1608. package/dist/serialization/resources/credits/types/UpdateBillingCreditRequestBodyBurnStrategy.js +0 -46
  1609. package/dist/serialization/resources/credits/types/UpdateBillingCreditRequestBodyDefaultRolloverPolicy.d.ts +0 -10
  1610. package/dist/serialization/resources/credits/types/UpdateBillingCreditRequestBodyDefaultRolloverPolicy.js +0 -41
  1611. package/dist/serialization/resources/credits/types/UpdateBillingCreditResponse.js +0 -45
  1612. package/dist/serialization/resources/credits/types/UpdateCreditBundleResponse.d.ts +0 -14
  1613. package/dist/serialization/resources/credits/types/UpdateCreditBundleResponse.js +0 -45
  1614. package/dist/serialization/resources/credits/types/ZeroOutGrantRequestBodyReason.d.ts +0 -10
  1615. package/dist/serialization/resources/credits/types/ZeroOutGrantRequestBodyReason.js +0 -41
  1616. package/dist/serialization/resources/credits/types/ZeroOutGrantResponse.js +0 -45
  1617. package/dist/serialization/resources/credits/types/index.js +0 -61
  1618. package/dist/serialization/resources/crm/client/index.js +0 -17
  1619. package/dist/serialization/resources/crm/client/requests/CreateCrmDealLineItemAssociationRequestBody.d.ts +0 -13
  1620. package/dist/serialization/resources/crm/client/requests/CreateCrmDealLineItemAssociationRequestBody.js +0 -44
  1621. package/dist/serialization/resources/crm/client/requests/CreateCrmDealRequestBody.d.ts +0 -20
  1622. package/dist/serialization/resources/crm/client/requests/CreateCrmDealRequestBody.js +0 -51
  1623. package/dist/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +0 -19
  1624. package/dist/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.js +0 -50
  1625. package/dist/serialization/resources/crm/client/requests/CreateCrmProductRequestBody.d.ts +0 -19
  1626. package/dist/serialization/resources/crm/client/requests/CreateCrmProductRequestBody.js +0 -50
  1627. package/dist/serialization/resources/crm/client/requests/index.d.ts +0 -4
  1628. package/dist/serialization/resources/crm/client/requests/index.js +0 -11
  1629. package/dist/serialization/resources/crm/index.d.ts +0 -2
  1630. package/dist/serialization/resources/crm/index.js +0 -18
  1631. package/dist/serialization/resources/crm/types/ListCrmProductsParams.d.ts +0 -15
  1632. package/dist/serialization/resources/crm/types/ListCrmProductsParams.js +0 -46
  1633. package/dist/serialization/resources/crm/types/ListCrmProductsResponse.d.ts +0 -15
  1634. package/dist/serialization/resources/crm/types/ListCrmProductsResponse.js +0 -46
  1635. package/dist/serialization/resources/crm/types/UpsertCrmDealResponse.d.ts +0 -14
  1636. package/dist/serialization/resources/crm/types/UpsertCrmDealResponse.js +0 -45
  1637. package/dist/serialization/resources/crm/types/UpsertCrmProductResponse.d.ts +0 -14
  1638. package/dist/serialization/resources/crm/types/UpsertCrmProductResponse.js +0 -45
  1639. package/dist/serialization/resources/crm/types/UpsertDealLineItemAssociationResponse.d.ts +0 -14
  1640. package/dist/serialization/resources/crm/types/UpsertDealLineItemAssociationResponse.js +0 -45
  1641. package/dist/serialization/resources/crm/types/UpsertLineItemResponse.d.ts +0 -14
  1642. package/dist/serialization/resources/crm/types/UpsertLineItemResponse.js +0 -45
  1643. package/dist/serialization/resources/crm/types/index.d.ts +0 -6
  1644. package/dist/serialization/resources/crm/types/index.js +0 -22
  1645. package/dist/serialization/resources/dataexports/client/index.js +0 -17
  1646. package/dist/serialization/resources/dataexports/client/requests/CreateDataExportRequestBody.js +0 -43
  1647. package/dist/serialization/resources/dataexports/client/requests/index.js +0 -5
  1648. package/dist/serialization/resources/dataexports/index.js +0 -18
  1649. package/dist/serialization/resources/dataexports/types/CreateDataExportResponse.js +0 -45
  1650. package/dist/serialization/resources/dataexports/types/index.js +0 -17
  1651. package/dist/serialization/resources/entitlements/client/index.js +0 -17
  1652. package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +0 -55
  1653. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +0 -69
  1654. package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +0 -53
  1655. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +0 -67
  1656. package/dist/serialization/resources/entitlements/client/requests/index.js +0 -11
  1657. package/dist/serialization/resources/entitlements/index.js +0 -18
  1658. package/dist/serialization/resources/entitlements/types/CountCompanyOverridesParams.js +0 -51
  1659. package/dist/serialization/resources/entitlements/types/CountCompanyOverridesResponse.js +0 -46
  1660. package/dist/serialization/resources/entitlements/types/CountFeatureCompaniesParams.js +0 -46
  1661. package/dist/serialization/resources/entitlements/types/CountFeatureCompaniesResponse.js +0 -46
  1662. package/dist/serialization/resources/entitlements/types/CountFeatureUsageParams.js +0 -49
  1663. package/dist/serialization/resources/entitlements/types/CountFeatureUsageResponse.js +0 -46
  1664. package/dist/serialization/resources/entitlements/types/CountFeatureUsersParams.js +0 -46
  1665. package/dist/serialization/resources/entitlements/types/CountFeatureUsersResponse.js +0 -46
  1666. package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsParams.js +0 -51
  1667. package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsResponse.js +0 -46
  1668. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +0 -41
  1669. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +0 -41
  1670. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.d.ts +0 -10
  1671. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.js +0 -41
  1672. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideResponse.js +0 -45
  1673. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +0 -41
  1674. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +0 -41
  1675. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyPriceBehavior.d.ts +0 -10
  1676. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyPriceBehavior.js +0 -41
  1677. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.d.ts +0 -10
  1678. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.js +0 -41
  1679. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementResponse.js +0 -45
  1680. package/dist/serialization/resources/entitlements/types/DeleteCompanyOverrideResponse.js +0 -45
  1681. package/dist/serialization/resources/entitlements/types/DeletePlanEntitlementResponse.js +0 -45
  1682. package/dist/serialization/resources/entitlements/types/GetCompanyOverrideResponse.js +0 -45
  1683. package/dist/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.js +0 -43
  1684. package/dist/serialization/resources/entitlements/types/GetFeatureUsageByCompanyResponse.js +0 -46
  1685. package/dist/serialization/resources/entitlements/types/GetPlanEntitlementResponse.js +0 -45
  1686. package/dist/serialization/resources/entitlements/types/ListCompanyOverridesParams.js +0 -51
  1687. package/dist/serialization/resources/entitlements/types/ListCompanyOverridesResponse.js +0 -46
  1688. package/dist/serialization/resources/entitlements/types/ListFeatureCompaniesParams.js +0 -46
  1689. package/dist/serialization/resources/entitlements/types/ListFeatureCompaniesResponse.js +0 -46
  1690. package/dist/serialization/resources/entitlements/types/ListFeatureUsageParams.js +0 -49
  1691. package/dist/serialization/resources/entitlements/types/ListFeatureUsageResponse.js +0 -46
  1692. package/dist/serialization/resources/entitlements/types/ListFeatureUsersParams.js +0 -46
  1693. package/dist/serialization/resources/entitlements/types/ListFeatureUsersResponse.js +0 -46
  1694. package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsParams.js +0 -51
  1695. package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsResponse.js +0 -46
  1696. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +0 -41
  1697. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +0 -41
  1698. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.d.ts +0 -10
  1699. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.js +0 -41
  1700. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideResponse.js +0 -45
  1701. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +0 -41
  1702. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +0 -41
  1703. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyPriceBehavior.d.ts +0 -10
  1704. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyPriceBehavior.js +0 -41
  1705. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.d.ts +0 -10
  1706. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.js +0 -41
  1707. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementResponse.js +0 -45
  1708. package/dist/serialization/resources/entitlements/types/index.js +0 -60
  1709. package/dist/serialization/resources/events/client/index.js +0 -17
  1710. package/dist/serialization/resources/events/client/requests/CreateEventBatchRequestBody.js +0 -44
  1711. package/dist/serialization/resources/events/client/requests/index.js +0 -5
  1712. package/dist/serialization/resources/events/index.js +0 -18
  1713. package/dist/serialization/resources/events/types/CreateEventBatchResponse.js +0 -45
  1714. package/dist/serialization/resources/events/types/CreateEventResponse.js +0 -45
  1715. package/dist/serialization/resources/events/types/GetEventResponse.js +0 -45
  1716. package/dist/serialization/resources/events/types/GetEventSummariesParams.js +0 -46
  1717. package/dist/serialization/resources/events/types/GetEventSummariesResponse.js +0 -46
  1718. package/dist/serialization/resources/events/types/GetSegmentIntegrationStatusResponse.js +0 -45
  1719. package/dist/serialization/resources/events/types/ListEventsParams.js +0 -50
  1720. package/dist/serialization/resources/events/types/ListEventsRequestEventTypesItem.d.ts +0 -10
  1721. package/dist/serialization/resources/events/types/ListEventsRequestEventTypesItem.js +0 -41
  1722. package/dist/serialization/resources/events/types/ListEventsResponse.js +0 -46
  1723. package/dist/serialization/resources/events/types/ListEventsResponseParamsEventTypesItem.d.ts +0 -10
  1724. package/dist/serialization/resources/events/types/ListEventsResponseParamsEventTypesItem.js +0 -41
  1725. package/dist/serialization/resources/events/types/index.js +0 -26
  1726. package/dist/serialization/resources/features/client/index.js +0 -17
  1727. package/dist/serialization/resources/features/client/requests/CreateFeatureRequestBody.js +0 -56
  1728. package/dist/serialization/resources/features/client/requests/UpdateFeatureRequestBody.js +0 -56
  1729. package/dist/serialization/resources/features/client/requests/UpdateFlagRulesRequestBody.js +0 -44
  1730. package/dist/serialization/resources/features/client/requests/index.js +0 -9
  1731. package/dist/serialization/resources/features/index.js +0 -18
  1732. package/dist/serialization/resources/features/types/CheckFlagResponse.js +0 -45
  1733. package/dist/serialization/resources/features/types/CheckFlagsResponse.js +0 -45
  1734. package/dist/serialization/resources/features/types/CountAudienceCompaniesResponse.d.ts +0 -14
  1735. package/dist/serialization/resources/features/types/CountAudienceCompaniesResponse.js +0 -45
  1736. package/dist/serialization/resources/features/types/CountAudienceUsersResponse.d.ts +0 -14
  1737. package/dist/serialization/resources/features/types/CountAudienceUsersResponse.js +0 -45
  1738. package/dist/serialization/resources/features/types/CountFeaturesParams.js +0 -50
  1739. package/dist/serialization/resources/features/types/CountFeaturesResponse.js +0 -46
  1740. package/dist/serialization/resources/features/types/CountFlagsParams.js +0 -47
  1741. package/dist/serialization/resources/features/types/CountFlagsResponse.js +0 -46
  1742. package/dist/serialization/resources/features/types/CreateFeatureRequestBodyFeatureType.d.ts +0 -10
  1743. package/dist/serialization/resources/features/types/CreateFeatureRequestBodyFeatureType.js +0 -41
  1744. package/dist/serialization/resources/features/types/CreateFeatureRequestBodyLifecyclePhase.d.ts +0 -10
  1745. package/dist/serialization/resources/features/types/CreateFeatureRequestBodyLifecyclePhase.js +0 -51
  1746. package/dist/serialization/resources/features/types/CreateFeatureResponse.js +0 -45
  1747. package/dist/serialization/resources/features/types/CreateFlagResponse.js +0 -45
  1748. package/dist/serialization/resources/features/types/DeleteFeatureResponse.js +0 -45
  1749. package/dist/serialization/resources/features/types/DeleteFlagResponse.js +0 -45
  1750. package/dist/serialization/resources/features/types/GetFeatureResponse.js +0 -45
  1751. package/dist/serialization/resources/features/types/GetFlagResponse.js +0 -45
  1752. package/dist/serialization/resources/features/types/ListAudienceCompaniesResponse.d.ts +0 -14
  1753. package/dist/serialization/resources/features/types/ListAudienceCompaniesResponse.js +0 -45
  1754. package/dist/serialization/resources/features/types/ListAudienceUsersResponse.d.ts +0 -14
  1755. package/dist/serialization/resources/features/types/ListAudienceUsersResponse.js +0 -45
  1756. package/dist/serialization/resources/features/types/ListFeaturesParams.js +0 -50
  1757. package/dist/serialization/resources/features/types/ListFeaturesResponse.js +0 -46
  1758. package/dist/serialization/resources/features/types/ListFlagsParams.js +0 -47
  1759. package/dist/serialization/resources/features/types/ListFlagsResponse.js +0 -46
  1760. package/dist/serialization/resources/features/types/UpdateFeatureRequestBodyFeatureType.d.ts +0 -10
  1761. package/dist/serialization/resources/features/types/UpdateFeatureRequestBodyFeatureType.js +0 -41
  1762. package/dist/serialization/resources/features/types/UpdateFeatureRequestBodyLifecyclePhase.d.ts +0 -10
  1763. package/dist/serialization/resources/features/types/UpdateFeatureRequestBodyLifecyclePhase.js +0 -51
  1764. package/dist/serialization/resources/features/types/UpdateFeatureResponse.js +0 -45
  1765. package/dist/serialization/resources/features/types/UpdateFlagResponse.js +0 -45
  1766. package/dist/serialization/resources/features/types/UpdateFlagRulesResponse.js +0 -45
  1767. package/dist/serialization/resources/features/types/index.js +0 -43
  1768. package/dist/serialization/resources/index.js +0 -84
  1769. package/dist/serialization/resources/plangroups/client/index.js +0 -17
  1770. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +0 -53
  1771. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +0 -53
  1772. package/dist/serialization/resources/plangroups/client/requests/index.js +0 -7
  1773. package/dist/serialization/resources/plangroups/index.js +0 -18
  1774. package/dist/serialization/resources/plangroups/types/CreatePlanGroupResponse.js +0 -45
  1775. package/dist/serialization/resources/plangroups/types/GetPlanGroupResponse.js +0 -45
  1776. package/dist/serialization/resources/plangroups/types/UpdatePlanGroupResponse.js +0 -45
  1777. package/dist/serialization/resources/plangroups/types/index.js +0 -19
  1778. package/dist/serialization/resources/plans/client/index.js +0 -17
  1779. package/dist/serialization/resources/plans/client/requests/CreatePlanRequestBody.d.ts +0 -16
  1780. package/dist/serialization/resources/plans/client/requests/CreatePlanRequestBody.js +0 -47
  1781. package/dist/serialization/resources/plans/client/requests/CreatePlanTraitRequestBody.d.ts +0 -14
  1782. package/dist/serialization/resources/plans/client/requests/CreatePlanTraitRequestBody.js +0 -45
  1783. package/dist/serialization/resources/plans/client/requests/UpdateAudienceRequestBody.d.ts +0 -15
  1784. package/dist/serialization/resources/plans/client/requests/UpdateAudienceRequestBody.js +0 -46
  1785. package/dist/serialization/resources/plans/client/requests/UpdateCompanyPlansRequestBody.js +0 -44
  1786. package/dist/serialization/resources/plans/client/requests/UpdatePlanRequestBody.d.ts +0 -14
  1787. package/dist/serialization/resources/plans/client/requests/UpdatePlanRequestBody.js +0 -45
  1788. package/dist/serialization/resources/plans/client/requests/UpdatePlanTraitRequestBody.d.ts +0 -13
  1789. package/dist/serialization/resources/plans/client/requests/UpdatePlanTraitRequestBody.js +0 -44
  1790. package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +0 -23
  1791. package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +0 -54
  1792. package/dist/serialization/resources/plans/client/requests/index.js +0 -17
  1793. package/dist/serialization/resources/plans/index.js +0 -18
  1794. package/dist/serialization/resources/plans/types/CountPlanTraitsParams.d.ts +0 -16
  1795. package/dist/serialization/resources/plans/types/CountPlanTraitsParams.js +0 -47
  1796. package/dist/serialization/resources/plans/types/CountPlanTraitsResponse.d.ts +0 -15
  1797. package/dist/serialization/resources/plans/types/CountPlanTraitsResponse.js +0 -46
  1798. package/dist/serialization/resources/plans/types/CountPlansParams.js +0 -53
  1799. package/dist/serialization/resources/plans/types/CountPlansRequestPlanType.d.ts +0 -10
  1800. package/dist/serialization/resources/plans/types/CountPlansRequestPlanType.js +0 -41
  1801. package/dist/serialization/resources/plans/types/CountPlansResponse.js +0 -46
  1802. package/dist/serialization/resources/plans/types/CountPlansResponseParamsPlanType.d.ts +0 -10
  1803. package/dist/serialization/resources/plans/types/CountPlansResponseParamsPlanType.js +0 -41
  1804. package/dist/serialization/resources/plans/types/CreatePlanRequestBodyPlanType.d.ts +0 -10
  1805. package/dist/serialization/resources/plans/types/CreatePlanRequestBodyPlanType.js +0 -41
  1806. package/dist/serialization/resources/plans/types/CreatePlanResponse.js +0 -45
  1807. package/dist/serialization/resources/plans/types/CreatePlanTraitResponse.d.ts +0 -14
  1808. package/dist/serialization/resources/plans/types/CreatePlanTraitResponse.js +0 -45
  1809. package/dist/serialization/resources/plans/types/DeleteAudienceResponse.d.ts +0 -14
  1810. package/dist/serialization/resources/plans/types/DeleteAudienceResponse.js +0 -45
  1811. package/dist/serialization/resources/plans/types/DeletePlanResponse.js +0 -45
  1812. package/dist/serialization/resources/plans/types/DeletePlanTraitResponse.d.ts +0 -14
  1813. package/dist/serialization/resources/plans/types/DeletePlanTraitResponse.js +0 -45
  1814. package/dist/serialization/resources/plans/types/GetAudienceResponse.d.ts +0 -14
  1815. package/dist/serialization/resources/plans/types/GetAudienceResponse.js +0 -45
  1816. package/dist/serialization/resources/plans/types/GetPlanResponse.js +0 -45
  1817. package/dist/serialization/resources/plans/types/GetPlanTraitResponse.d.ts +0 -14
  1818. package/dist/serialization/resources/plans/types/GetPlanTraitResponse.js +0 -45
  1819. package/dist/serialization/resources/plans/types/ListPlanTraitsParams.d.ts +0 -16
  1820. package/dist/serialization/resources/plans/types/ListPlanTraitsParams.js +0 -47
  1821. package/dist/serialization/resources/plans/types/ListPlanTraitsResponse.d.ts +0 -15
  1822. package/dist/serialization/resources/plans/types/ListPlanTraitsResponse.js +0 -46
  1823. package/dist/serialization/resources/plans/types/ListPlansParams.js +0 -53
  1824. package/dist/serialization/resources/plans/types/ListPlansRequestPlanType.d.ts +0 -10
  1825. package/dist/serialization/resources/plans/types/ListPlansRequestPlanType.js +0 -41
  1826. package/dist/serialization/resources/plans/types/ListPlansResponse.js +0 -46
  1827. package/dist/serialization/resources/plans/types/ListPlansResponseParamsPlanType.d.ts +0 -10
  1828. package/dist/serialization/resources/plans/types/ListPlansResponseParamsPlanType.js +0 -41
  1829. package/dist/serialization/resources/plans/types/UpdateAudienceResponse.d.ts +0 -14
  1830. package/dist/serialization/resources/plans/types/UpdateAudienceResponse.js +0 -45
  1831. package/dist/serialization/resources/plans/types/UpdateCompanyPlansResponse.js +0 -45
  1832. package/dist/serialization/resources/plans/types/UpdatePlanResponse.js +0 -45
  1833. package/dist/serialization/resources/plans/types/UpdatePlanTraitResponse.d.ts +0 -14
  1834. package/dist/serialization/resources/plans/types/UpdatePlanTraitResponse.js +0 -45
  1835. package/dist/serialization/resources/plans/types/UpsertBillingProductPlanResponse.js +0 -45
  1836. package/dist/serialization/resources/plans/types/UpsertBillingProductRequestBodyChargeType.d.ts +0 -10
  1837. package/dist/serialization/resources/plans/types/UpsertBillingProductRequestBodyChargeType.js +0 -41
  1838. package/dist/serialization/resources/plans/types/index.js +0 -43
  1839. package/dist/serialization/resources/webhooks/client/index.js +0 -17
  1840. package/dist/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.js +0 -48
  1841. package/dist/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.js +0 -50
  1842. package/dist/serialization/resources/webhooks/client/requests/index.js +0 -7
  1843. package/dist/serialization/resources/webhooks/index.js +0 -18
  1844. package/dist/serialization/resources/webhooks/types/CountWebhookEventsParams.js +0 -47
  1845. package/dist/serialization/resources/webhooks/types/CountWebhookEventsResponse.js +0 -46
  1846. package/dist/serialization/resources/webhooks/types/CountWebhooksParams.js +0 -45
  1847. package/dist/serialization/resources/webhooks/types/CountWebhooksResponse.js +0 -46
  1848. package/dist/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +0 -10
  1849. package/dist/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +0 -70
  1850. package/dist/serialization/resources/webhooks/types/CreateWebhookResponse.js +0 -45
  1851. package/dist/serialization/resources/webhooks/types/DeleteWebhookResponse.js +0 -45
  1852. package/dist/serialization/resources/webhooks/types/GetWebhookEventResponse.js +0 -45
  1853. package/dist/serialization/resources/webhooks/types/GetWebhookResponse.js +0 -45
  1854. package/dist/serialization/resources/webhooks/types/ListWebhookEventsParams.js +0 -47
  1855. package/dist/serialization/resources/webhooks/types/ListWebhookEventsResponse.js +0 -46
  1856. package/dist/serialization/resources/webhooks/types/ListWebhooksParams.js +0 -45
  1857. package/dist/serialization/resources/webhooks/types/ListWebhooksResponse.js +0 -46
  1858. package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +0 -10
  1859. package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +0 -70
  1860. package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyStatus.d.ts +0 -10
  1861. package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyStatus.js +0 -41
  1862. package/dist/serialization/resources/webhooks/types/UpdateWebhookResponse.js +0 -45
  1863. package/dist/serialization/resources/webhooks/types/index.js +0 -32
  1864. package/dist/serialization/types/ApiError.js +0 -43
  1865. package/dist/serialization/types/ApiKeyCreateResponseData.js +0 -51
  1866. package/dist/serialization/types/ApiKeyRequestListResponseData.d.ts +0 -24
  1867. package/dist/serialization/types/ApiKeyRequestListResponseData.js +0 -58
  1868. package/dist/serialization/types/ApiKeyRequestResponseData.d.ts +0 -29
  1869. package/dist/serialization/types/ApiKeyRequestResponseData.js +0 -61
  1870. package/dist/serialization/types/ApiKeyResponseData.js +0 -50
  1871. package/dist/serialization/types/AudienceRequestBody.d.ts +0 -18
  1872. package/dist/serialization/types/AudienceRequestBody.js +0 -49
  1873. package/dist/serialization/types/BillingCouponResponseData.js +0 -58
  1874. package/dist/serialization/types/BillingCreditBundleResponseData.js +0 -55
  1875. package/dist/serialization/types/BillingCreditGrantResponseData.js +0 -60
  1876. package/dist/serialization/types/BillingCreditResponseData.js +0 -59
  1877. package/dist/serialization/types/BillingCustomerResponseData.js +0 -50
  1878. package/dist/serialization/types/BillingCustomerSubscription.js +0 -48
  1879. package/dist/serialization/types/BillingCustomerWithSubscriptionsResponseData.js +0 -52
  1880. package/dist/serialization/types/BillingMeterResponseData.js +0 -47
  1881. package/dist/serialization/types/BillingPlanCreditGrantResponseData.js +0 -51
  1882. package/dist/serialization/types/BillingPriceResponseData.js +0 -49
  1883. package/dist/serialization/types/BillingPriceView.js +0 -64
  1884. package/dist/serialization/types/BillingProductDetailResponseData.js +0 -57
  1885. package/dist/serialization/types/BillingProductForSubscriptionResponseData.js +0 -62
  1886. package/dist/serialization/types/BillingProductPlanResponseData.js +0 -53
  1887. package/dist/serialization/types/BillingProductPriceResponseData.js +0 -57
  1888. package/dist/serialization/types/BillingProductPriceTierResponseData.js +0 -46
  1889. package/dist/serialization/types/BillingProductPricing.js +0 -53
  1890. package/dist/serialization/types/BillingProductPricingUsageType.d.ts +0 -10
  1891. package/dist/serialization/types/BillingProductPricingUsageType.js +0 -41
  1892. package/dist/serialization/types/BillingProductResponseData.js +0 -54
  1893. package/dist/serialization/types/BillingSubscriptionDiscount.js +0 -49
  1894. package/dist/serialization/types/BillingSubscriptionDiscountView.js +0 -56
  1895. package/dist/serialization/types/BillingSubscriptionResponseData.js +0 -60
  1896. package/dist/serialization/types/BillingSubscriptionView.js +0 -68
  1897. package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.js +0 -55
  1898. package/dist/serialization/types/ChangeSubscriptionRequestBody.js +0 -54
  1899. package/dist/serialization/types/CheckFlagRequestBody.js +0 -44
  1900. package/dist/serialization/types/CheckFlagResponseData.js +0 -56
  1901. package/dist/serialization/types/CheckFlagsResponseData.js +0 -44
  1902. package/dist/serialization/types/CheckoutDataResponseData.js +0 -59
  1903. package/dist/serialization/types/CompanyCrmDealsResponseData.d.ts +0 -17
  1904. package/dist/serialization/types/CompanyCrmDealsResponseData.js +0 -48
  1905. package/dist/serialization/types/CompanyDetailResponseData.js +0 -68
  1906. package/dist/serialization/types/CompanyEventPeriodMetricsResponseData.js +0 -53
  1907. package/dist/serialization/types/CompanyMembershipDetailResponseData.js +0 -49
  1908. package/dist/serialization/types/CompanyMembershipResponseData.js +0 -47
  1909. package/dist/serialization/types/CompanyOverrideResponseData.js +0 -64
  1910. package/dist/serialization/types/CompanyPlanDetailResponseData.js +0 -75
  1911. package/dist/serialization/types/CompanyPlanWithBillingSubView.js +0 -51
  1912. package/dist/serialization/types/CompanyResponseData.js +0 -49
  1913. package/dist/serialization/types/CompanySubscriptionResponseData.js +0 -60
  1914. package/dist/serialization/types/CompanyViewWithFeatureUsageResponseData.d.ts +0 -39
  1915. package/dist/serialization/types/CompanyViewWithFeatureUsageResponseData.js +0 -70
  1916. package/dist/serialization/types/CompatiblePlans.js +0 -44
  1917. package/dist/serialization/types/CompatiblePlansResponseData.js +0 -44
  1918. package/dist/serialization/types/ComponentCapabilities.js +0 -44
  1919. package/dist/serialization/types/ComponentHydrateResponseData.js +0 -66
  1920. package/dist/serialization/types/ComponentPreviewResponseData.js +0 -67
  1921. package/dist/serialization/types/ComponentResponseData.js +0 -49
  1922. package/dist/serialization/types/CountResponse.js +0 -43
  1923. package/dist/serialization/types/CouponRequestBody.js +0 -50
  1924. package/dist/serialization/types/CreateBillingPriceTierRequestBody.js +0 -47
  1925. package/dist/serialization/types/CreateEntitlementReqCommon.js +0 -53
  1926. package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriod.js +0 -41
  1927. package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +0 -41
  1928. package/dist/serialization/types/CreateEntitlementReqCommonValueType.d.ts +0 -10
  1929. package/dist/serialization/types/CreateEntitlementReqCommonValueType.js +0 -41
  1930. package/dist/serialization/types/CreateEventRequestBody.js +0 -47
  1931. package/dist/serialization/types/CreateEventRequestBodyEventType.d.ts +0 -10
  1932. package/dist/serialization/types/CreateEventRequestBodyEventType.js +0 -41
  1933. package/dist/serialization/types/CreateFlagRequestBody.js +0 -49
  1934. package/dist/serialization/types/CreateOrUpdateConditionGroupRequestBody.js +0 -47
  1935. package/dist/serialization/types/CreateOrUpdateConditionRequestBody.js +0 -57
  1936. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.js +0 -50
  1937. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +0 -41
  1938. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +0 -41
  1939. package/dist/serialization/types/CreateOrUpdateConditionRequestBodyOperator.js +0 -41
  1940. package/dist/serialization/types/CreateOrUpdateFlagRequestBody.js +0 -50
  1941. package/dist/serialization/types/CreateOrUpdateRuleRequestBody.js +0 -52
  1942. package/dist/serialization/types/CreateOrUpdateRuleRequestBodyRuleType.js +0 -48
  1943. package/dist/serialization/types/CreatePriceTierRequestBody.js +0 -46
  1944. package/dist/serialization/types/CreditBundlePurchaseResponseData.js +0 -46
  1945. package/dist/serialization/types/CreditUsageResponseData.d.ts +0 -17
  1946. package/dist/serialization/types/CrmDealLineItem.d.ts +0 -24
  1947. package/dist/serialization/types/CrmDealLineItem.js +0 -55
  1948. package/dist/serialization/types/CrmDealResponseData.d.ts +0 -22
  1949. package/dist/serialization/types/CrmDealResponseData.js +0 -53
  1950. package/dist/serialization/types/CrmLineItemResponseData.d.ts +0 -17
  1951. package/dist/serialization/types/CrmLineItemResponseData.js +0 -48
  1952. package/dist/serialization/types/CrmProductResponseData.d.ts +0 -21
  1953. package/dist/serialization/types/CrmProductResponseData.js +0 -52
  1954. package/dist/serialization/types/CustomPlanConfig.js +0 -45
  1955. package/dist/serialization/types/CustomPlanViewConfigResponseData.js +0 -45
  1956. package/dist/serialization/types/DataExportResponseData.js +0 -51
  1957. package/dist/serialization/types/Decimal.d.ts +0 -10
  1958. package/dist/serialization/types/Decimal.js +0 -41
  1959. package/dist/serialization/types/DeleteResponse.js +0 -43
  1960. package/dist/serialization/types/EntitlementTriggerConfig.js +0 -43
  1961. package/dist/serialization/types/EntitlementsInPlan.js +0 -44
  1962. package/dist/serialization/types/EntityKeyDefinitionResponseData.js +0 -47
  1963. package/dist/serialization/types/EntityKeyDetailResponseData.js +0 -53
  1964. package/dist/serialization/types/EntityKeyResponseData.js +0 -51
  1965. package/dist/serialization/types/EntityTraitDefinitionResponseData.js +0 -49
  1966. package/dist/serialization/types/EntityTraitDetailResponseData.js +0 -50
  1967. package/dist/serialization/types/EntityTraitResponseData.js +0 -48
  1968. package/dist/serialization/types/EntityTraitValue.js +0 -44
  1969. package/dist/serialization/types/EnvironmentDetailResponseData.js +0 -49
  1970. package/dist/serialization/types/EnvironmentResponseData.js +0 -47
  1971. package/dist/serialization/types/EventBody.js +0 -44
  1972. package/dist/serialization/types/EventBodyFlagCheck.js +0 -52
  1973. package/dist/serialization/types/EventBodyIdentify.js +0 -47
  1974. package/dist/serialization/types/EventBodyIdentifyCompany.js +0 -45
  1975. package/dist/serialization/types/EventBodyTrack.js +0 -47
  1976. package/dist/serialization/types/EventDetailResponseData.js +0 -65
  1977. package/dist/serialization/types/EventResponseData.js +0 -61
  1978. package/dist/serialization/types/EventSummaryResponseData.js +0 -48
  1979. package/dist/serialization/types/FeatureCompanyResponseData.js +0 -59
  1980. package/dist/serialization/types/FeatureCompanyResponseDataAllocationType.d.ts +0 -10
  1981. package/dist/serialization/types/FeatureCompanyResponseDataAllocationType.js +0 -41
  1982. package/dist/serialization/types/FeatureCompanyUserResponseData.js +0 -60
  1983. package/dist/serialization/types/FeatureCompanyUserResponseDataAllocationType.d.ts +0 -10
  1984. package/dist/serialization/types/FeatureCompanyUserResponseDataAllocationType.js +0 -41
  1985. package/dist/serialization/types/FeatureDetailResponseData.js +0 -63
  1986. package/dist/serialization/types/FeatureResponseData.js +0 -55
  1987. package/dist/serialization/types/FeatureUsageDataResponseData.d.ts +0 -27
  1988. package/dist/serialization/types/FeatureUsageDataResponseData.js +0 -51
  1989. package/dist/serialization/types/FeatureUsageDetailResponseData.js +0 -44
  1990. package/dist/serialization/types/FeatureUsageResponseData.js +0 -62
  1991. package/dist/serialization/types/FeatureUsageResponseDataAllocationType.d.ts +0 -10
  1992. package/dist/serialization/types/FeatureUsageResponseDataAllocationType.js +0 -41
  1993. package/dist/serialization/types/FlagDetailResponseData.js +0 -57
  1994. package/dist/serialization/types/FlagResponseData.js +0 -52
  1995. package/dist/serialization/types/GenericPreviewObject.js +0 -46
  1996. package/dist/serialization/types/InvoiceRequestBody.js +0 -53
  1997. package/dist/serialization/types/InvoiceResponseData.js +0 -59
  1998. package/dist/serialization/types/IssueTemporaryAccessTokenResponseData.js +0 -50
  1999. package/dist/serialization/types/KeysRequestBody.js +0 -43
  2000. package/dist/serialization/types/MeterRequestBody.js +0 -45
  2001. package/dist/serialization/types/OrderedPlansInGroup.js +0 -45
  2002. package/dist/serialization/types/PaginationFilter.d.ts +0 -13
  2003. package/dist/serialization/types/PaginationFilter.js +0 -44
  2004. package/dist/serialization/types/PaymentMethodRequestBody.js +0 -53
  2005. package/dist/serialization/types/PaymentMethodResponseData.js +0 -59
  2006. package/dist/serialization/types/PlanAudienceDetailResponseData.d.ts +0 -25
  2007. package/dist/serialization/types/PlanAudienceDetailResponseData.js +0 -56
  2008. package/dist/serialization/types/PlanAudienceResponseData.d.ts +0 -21
  2009. package/dist/serialization/types/PlanAudienceResponseData.js +0 -52
  2010. package/dist/serialization/types/PlanChangeActorType.d.ts +0 -7
  2011. package/dist/serialization/types/PlanDetailResponseData.js +0 -65
  2012. package/dist/serialization/types/PlanEntitlementResponseData.js +0 -72
  2013. package/dist/serialization/types/PlanEntitlementsOrder.js +0 -44
  2014. package/dist/serialization/types/PlanGroupDetailResponseData.js +0 -55
  2015. package/dist/serialization/types/PlanGroupPlanDetailResponseData.js +0 -71
  2016. package/dist/serialization/types/PlanGroupPlanEntitlementsOrder.js +0 -45
  2017. package/dist/serialization/types/PlanGroupResponseData.js +0 -51
  2018. package/dist/serialization/types/PlanResponseData.js +0 -50
  2019. package/dist/serialization/types/PlanTraitResponseData.js +0 -50
  2020. package/dist/serialization/types/PreviewObject.js +0 -46
  2021. package/dist/serialization/types/PreviewObjectResponseData.js +0 -46
  2022. package/dist/serialization/types/PreviewSubscriptionChangeResponseData.js +0 -55
  2023. package/dist/serialization/types/PreviewSubscriptionFinanceResponseData.js +0 -52
  2024. package/dist/serialization/types/PreviewSubscriptionUpcomingInvoiceLineItems.js +0 -47
  2025. package/dist/serialization/types/QuickstartResp.js +0 -43
  2026. package/dist/serialization/types/RawEventBatchResponseData.js +0 -44
  2027. package/dist/serialization/types/RawEventResponseData.js +0 -47
  2028. package/dist/serialization/types/RuleConditionDetailResponseData.js +0 -66
  2029. package/dist/serialization/types/RuleConditionGroupDetailResponseData.js +0 -51
  2030. package/dist/serialization/types/RuleConditionGroupResponseData.js +0 -49
  2031. package/dist/serialization/types/RuleConditionResponseData.js +0 -61
  2032. package/dist/serialization/types/RuleDetailResponseData.js +0 -56
  2033. package/dist/serialization/types/RuleResponseData.js +0 -52
  2034. package/dist/serialization/types/RulesDetailResponseData.js +0 -46
  2035. package/dist/serialization/types/SegmentStatusResp.js +0 -45
  2036. package/dist/serialization/types/StripeEmbedInfo.js +0 -44
  2037. package/dist/serialization/types/TemporaryAccessTokenResponseData.js +0 -49
  2038. package/dist/serialization/types/UpdateAddOnRequestBody.js +0 -44
  2039. package/dist/serialization/types/UpdateCreditBundleRequestBody.js +0 -44
  2040. package/dist/serialization/types/UpdateEntitlementReqCommon.js +0 -52
  2041. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +0 -41
  2042. package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +0 -41
  2043. package/dist/serialization/types/UpdateEntitlementReqCommonValueType.d.ts +0 -10
  2044. package/dist/serialization/types/UpdateEntitlementReqCommonValueType.js +0 -41
  2045. package/dist/serialization/types/UpdatePayInAdvanceRequestBody.js +0 -44
  2046. package/dist/serialization/types/UpdateRuleRequestBody.js +0 -49
  2047. package/dist/serialization/types/UpsertCompanyRequestBody.js +0 -48
  2048. package/dist/serialization/types/UpsertTraitRequestBody.js +0 -47
  2049. package/dist/serialization/types/UpsertUserRequestBody.js +0 -54
  2050. package/dist/serialization/types/UpsertUserSubRequestBody.js +0 -50
  2051. package/dist/serialization/types/UsageBasedEntitlementRequestBody.js +0 -57
  2052. package/dist/serialization/types/UsageBasedEntitlementRequestBodyPriceBehavior.d.ts +0 -10
  2053. package/dist/serialization/types/UsageBasedEntitlementRequestBodyPriceBehavior.js +0 -41
  2054. package/dist/serialization/types/UsageBasedEntitlementResponseData.js +0 -54
  2055. package/dist/serialization/types/UserDetailResponseData.js +0 -55
  2056. package/dist/serialization/types/UserResponseData.js +0 -48
  2057. package/dist/serialization/types/WebhookEventDetailResponseData.js +0 -53
  2058. package/dist/serialization/types/WebhookEventResponseData.js +0 -51
  2059. package/dist/serialization/types/WebhookResponseData.js +0 -52
  2060. package/dist/serialization/types/index.js +0 -188
  2061. package/dist/webhooks.js +0 -170
  2062. package/dist/wrapper.js +0 -178
  2063. /package/dist/api/resources/{crm → planmigrations}/client/index.d.ts +0 -0
  2064. /package/dist/{serialization/resources/crm → api/resources/scheduledcheckout}/client/index.d.ts +0 -0
@@ -1,2324 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
- return new (P || (P = Promise))(function (resolve, reject) {
41
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
- step((generator = generator.apply(thisArg, _arguments || [])).next());
45
- });
46
- };
47
- var __importDefault = (this && this.__importDefault) || function (mod) {
48
- return (mod && mod.__esModule) ? mod : { "default": mod };
49
- };
50
- Object.defineProperty(exports, "__esModule", { value: true });
51
- exports.Features = void 0;
52
- const environments = __importStar(require("../../../../environments"));
53
- const core = __importStar(require("../../../../core"));
54
- const Schematic = __importStar(require("../../../index"));
55
- const serializers = __importStar(require("../../../../serialization/index"));
56
- const url_join_1 = __importDefault(require("url-join"));
57
- const errors = __importStar(require("../../../../errors/index"));
58
- class Features {
59
- constructor(_options) {
60
- this._options = _options;
61
- }
62
- /**
63
- * @param {Schematic.AudienceRequestBody} request
64
- * @param {Features.RequestOptions} requestOptions - Request-specific configuration.
65
- *
66
- * @throws {@link Schematic.BadRequestError}
67
- * @throws {@link Schematic.UnauthorizedError}
68
- * @throws {@link Schematic.ForbiddenError}
69
- * @throws {@link Schematic.NotFoundError}
70
- * @throws {@link Schematic.InternalServerError}
71
- *
72
- * @example
73
- * await client.features.countAudienceCompanies({
74
- * conditionGroups: [{
75
- * conditions: [{
76
- * conditionType: "company",
77
- * operator: "eq",
78
- * resourceIds: ["resource_ids"]
79
- * }]
80
- * }],
81
- * conditions: [{
82
- * conditionType: "company",
83
- * operator: "eq",
84
- * resourceIds: ["resource_ids"]
85
- * }]
86
- * })
87
- */
88
- countAudienceCompanies(request, requestOptions) {
89
- return core.HttpResponsePromise.fromPromise(this.__countAudienceCompanies(request, requestOptions));
90
- }
91
- __countAudienceCompanies(request, requestOptions) {
92
- return __awaiter(this, void 0, void 0, function* () {
93
- var _a, _b, _c;
94
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
95
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "audience/count-companies"),
96
- method: "POST",
97
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
98
- contentType: "application/json",
99
- requestType: "json",
100
- body: serializers.AudienceRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
101
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
102
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
103
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
104
- });
105
- if (_response.ok) {
106
- return {
107
- data: serializers.CountAudienceCompaniesResponse.parseOrThrow(_response.body, {
108
- unrecognizedObjectKeys: "passthrough",
109
- allowUnrecognizedUnionMembers: true,
110
- allowUnrecognizedEnumValues: true,
111
- skipValidation: true,
112
- breadcrumbsPrefix: ["response"],
113
- }),
114
- rawResponse: _response.rawResponse,
115
- };
116
- }
117
- if (_response.error.reason === "status-code") {
118
- switch (_response.error.statusCode) {
119
- case 400:
120
- throw new Schematic.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
121
- unrecognizedObjectKeys: "passthrough",
122
- allowUnrecognizedUnionMembers: true,
123
- allowUnrecognizedEnumValues: true,
124
- skipValidation: true,
125
- breadcrumbsPrefix: ["response"],
126
- }), _response.rawResponse);
127
- case 401:
128
- throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
129
- unrecognizedObjectKeys: "passthrough",
130
- allowUnrecognizedUnionMembers: true,
131
- allowUnrecognizedEnumValues: true,
132
- skipValidation: true,
133
- breadcrumbsPrefix: ["response"],
134
- }), _response.rawResponse);
135
- case 403:
136
- throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
137
- unrecognizedObjectKeys: "passthrough",
138
- allowUnrecognizedUnionMembers: true,
139
- allowUnrecognizedEnumValues: true,
140
- skipValidation: true,
141
- breadcrumbsPrefix: ["response"],
142
- }), _response.rawResponse);
143
- case 404:
144
- throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
145
- unrecognizedObjectKeys: "passthrough",
146
- allowUnrecognizedUnionMembers: true,
147
- allowUnrecognizedEnumValues: true,
148
- skipValidation: true,
149
- breadcrumbsPrefix: ["response"],
150
- }), _response.rawResponse);
151
- case 500:
152
- throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
153
- unrecognizedObjectKeys: "passthrough",
154
- allowUnrecognizedUnionMembers: true,
155
- allowUnrecognizedEnumValues: true,
156
- skipValidation: true,
157
- breadcrumbsPrefix: ["response"],
158
- }), _response.rawResponse);
159
- default:
160
- throw new errors.SchematicError({
161
- statusCode: _response.error.statusCode,
162
- body: _response.error.body,
163
- rawResponse: _response.rawResponse,
164
- });
165
- }
166
- }
167
- switch (_response.error.reason) {
168
- case "non-json":
169
- throw new errors.SchematicError({
170
- statusCode: _response.error.statusCode,
171
- body: _response.error.rawBody,
172
- rawResponse: _response.rawResponse,
173
- });
174
- case "timeout":
175
- throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /audience/count-companies.");
176
- case "unknown":
177
- throw new errors.SchematicError({
178
- message: _response.error.errorMessage,
179
- rawResponse: _response.rawResponse,
180
- });
181
- }
182
- });
183
- }
184
- /**
185
- * @param {Schematic.AudienceRequestBody} request
186
- * @param {Features.RequestOptions} requestOptions - Request-specific configuration.
187
- *
188
- * @throws {@link Schematic.BadRequestError}
189
- * @throws {@link Schematic.UnauthorizedError}
190
- * @throws {@link Schematic.ForbiddenError}
191
- * @throws {@link Schematic.NotFoundError}
192
- * @throws {@link Schematic.InternalServerError}
193
- *
194
- * @example
195
- * await client.features.countAudienceUsers({
196
- * conditionGroups: [{
197
- * conditions: [{
198
- * conditionType: "company",
199
- * operator: "eq",
200
- * resourceIds: ["resource_ids"]
201
- * }]
202
- * }],
203
- * conditions: [{
204
- * conditionType: "company",
205
- * operator: "eq",
206
- * resourceIds: ["resource_ids"]
207
- * }]
208
- * })
209
- */
210
- countAudienceUsers(request, requestOptions) {
211
- return core.HttpResponsePromise.fromPromise(this.__countAudienceUsers(request, requestOptions));
212
- }
213
- __countAudienceUsers(request, requestOptions) {
214
- return __awaiter(this, void 0, void 0, function* () {
215
- var _a, _b, _c;
216
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
217
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "audience/count-users"),
218
- method: "POST",
219
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
220
- contentType: "application/json",
221
- requestType: "json",
222
- body: serializers.AudienceRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
223
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
224
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
225
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
226
- });
227
- if (_response.ok) {
228
- return {
229
- data: serializers.CountAudienceUsersResponse.parseOrThrow(_response.body, {
230
- unrecognizedObjectKeys: "passthrough",
231
- allowUnrecognizedUnionMembers: true,
232
- allowUnrecognizedEnumValues: true,
233
- skipValidation: true,
234
- breadcrumbsPrefix: ["response"],
235
- }),
236
- rawResponse: _response.rawResponse,
237
- };
238
- }
239
- if (_response.error.reason === "status-code") {
240
- switch (_response.error.statusCode) {
241
- case 400:
242
- throw new Schematic.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
243
- unrecognizedObjectKeys: "passthrough",
244
- allowUnrecognizedUnionMembers: true,
245
- allowUnrecognizedEnumValues: true,
246
- skipValidation: true,
247
- breadcrumbsPrefix: ["response"],
248
- }), _response.rawResponse);
249
- case 401:
250
- throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
251
- unrecognizedObjectKeys: "passthrough",
252
- allowUnrecognizedUnionMembers: true,
253
- allowUnrecognizedEnumValues: true,
254
- skipValidation: true,
255
- breadcrumbsPrefix: ["response"],
256
- }), _response.rawResponse);
257
- case 403:
258
- throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
259
- unrecognizedObjectKeys: "passthrough",
260
- allowUnrecognizedUnionMembers: true,
261
- allowUnrecognizedEnumValues: true,
262
- skipValidation: true,
263
- breadcrumbsPrefix: ["response"],
264
- }), _response.rawResponse);
265
- case 404:
266
- throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
267
- unrecognizedObjectKeys: "passthrough",
268
- allowUnrecognizedUnionMembers: true,
269
- allowUnrecognizedEnumValues: true,
270
- skipValidation: true,
271
- breadcrumbsPrefix: ["response"],
272
- }), _response.rawResponse);
273
- case 500:
274
- throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
275
- unrecognizedObjectKeys: "passthrough",
276
- allowUnrecognizedUnionMembers: true,
277
- allowUnrecognizedEnumValues: true,
278
- skipValidation: true,
279
- breadcrumbsPrefix: ["response"],
280
- }), _response.rawResponse);
281
- default:
282
- throw new errors.SchematicError({
283
- statusCode: _response.error.statusCode,
284
- body: _response.error.body,
285
- rawResponse: _response.rawResponse,
286
- });
287
- }
288
- }
289
- switch (_response.error.reason) {
290
- case "non-json":
291
- throw new errors.SchematicError({
292
- statusCode: _response.error.statusCode,
293
- body: _response.error.rawBody,
294
- rawResponse: _response.rawResponse,
295
- });
296
- case "timeout":
297
- throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /audience/count-users.");
298
- case "unknown":
299
- throw new errors.SchematicError({
300
- message: _response.error.errorMessage,
301
- rawResponse: _response.rawResponse,
302
- });
303
- }
304
- });
305
- }
306
- /**
307
- * @param {Schematic.AudienceRequestBody} request
308
- * @param {Features.RequestOptions} requestOptions - Request-specific configuration.
309
- *
310
- * @throws {@link Schematic.BadRequestError}
311
- * @throws {@link Schematic.UnauthorizedError}
312
- * @throws {@link Schematic.ForbiddenError}
313
- * @throws {@link Schematic.NotFoundError}
314
- * @throws {@link Schematic.InternalServerError}
315
- *
316
- * @example
317
- * await client.features.listAudienceCompanies({
318
- * conditionGroups: [{
319
- * conditions: [{
320
- * conditionType: "company",
321
- * operator: "eq",
322
- * resourceIds: ["resource_ids"]
323
- * }]
324
- * }],
325
- * conditions: [{
326
- * conditionType: "company",
327
- * operator: "eq",
328
- * resourceIds: ["resource_ids"]
329
- * }]
330
- * })
331
- */
332
- listAudienceCompanies(request, requestOptions) {
333
- return core.HttpResponsePromise.fromPromise(this.__listAudienceCompanies(request, requestOptions));
334
- }
335
- __listAudienceCompanies(request, requestOptions) {
336
- return __awaiter(this, void 0, void 0, function* () {
337
- var _a, _b, _c;
338
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
339
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "audience/get-companies"),
340
- method: "POST",
341
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
342
- contentType: "application/json",
343
- requestType: "json",
344
- body: serializers.AudienceRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
345
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
346
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
347
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
348
- });
349
- if (_response.ok) {
350
- return {
351
- data: serializers.ListAudienceCompaniesResponse.parseOrThrow(_response.body, {
352
- unrecognizedObjectKeys: "passthrough",
353
- allowUnrecognizedUnionMembers: true,
354
- allowUnrecognizedEnumValues: true,
355
- skipValidation: true,
356
- breadcrumbsPrefix: ["response"],
357
- }),
358
- rawResponse: _response.rawResponse,
359
- };
360
- }
361
- if (_response.error.reason === "status-code") {
362
- switch (_response.error.statusCode) {
363
- case 400:
364
- throw new Schematic.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
365
- unrecognizedObjectKeys: "passthrough",
366
- allowUnrecognizedUnionMembers: true,
367
- allowUnrecognizedEnumValues: true,
368
- skipValidation: true,
369
- breadcrumbsPrefix: ["response"],
370
- }), _response.rawResponse);
371
- case 401:
372
- throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
373
- unrecognizedObjectKeys: "passthrough",
374
- allowUnrecognizedUnionMembers: true,
375
- allowUnrecognizedEnumValues: true,
376
- skipValidation: true,
377
- breadcrumbsPrefix: ["response"],
378
- }), _response.rawResponse);
379
- case 403:
380
- throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
381
- unrecognizedObjectKeys: "passthrough",
382
- allowUnrecognizedUnionMembers: true,
383
- allowUnrecognizedEnumValues: true,
384
- skipValidation: true,
385
- breadcrumbsPrefix: ["response"],
386
- }), _response.rawResponse);
387
- case 404:
388
- throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
389
- unrecognizedObjectKeys: "passthrough",
390
- allowUnrecognizedUnionMembers: true,
391
- allowUnrecognizedEnumValues: true,
392
- skipValidation: true,
393
- breadcrumbsPrefix: ["response"],
394
- }), _response.rawResponse);
395
- case 500:
396
- throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
397
- unrecognizedObjectKeys: "passthrough",
398
- allowUnrecognizedUnionMembers: true,
399
- allowUnrecognizedEnumValues: true,
400
- skipValidation: true,
401
- breadcrumbsPrefix: ["response"],
402
- }), _response.rawResponse);
403
- default:
404
- throw new errors.SchematicError({
405
- statusCode: _response.error.statusCode,
406
- body: _response.error.body,
407
- rawResponse: _response.rawResponse,
408
- });
409
- }
410
- }
411
- switch (_response.error.reason) {
412
- case "non-json":
413
- throw new errors.SchematicError({
414
- statusCode: _response.error.statusCode,
415
- body: _response.error.rawBody,
416
- rawResponse: _response.rawResponse,
417
- });
418
- case "timeout":
419
- throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /audience/get-companies.");
420
- case "unknown":
421
- throw new errors.SchematicError({
422
- message: _response.error.errorMessage,
423
- rawResponse: _response.rawResponse,
424
- });
425
- }
426
- });
427
- }
428
- /**
429
- * @param {Schematic.AudienceRequestBody} request
430
- * @param {Features.RequestOptions} requestOptions - Request-specific configuration.
431
- *
432
- * @throws {@link Schematic.BadRequestError}
433
- * @throws {@link Schematic.UnauthorizedError}
434
- * @throws {@link Schematic.ForbiddenError}
435
- * @throws {@link Schematic.NotFoundError}
436
- * @throws {@link Schematic.InternalServerError}
437
- *
438
- * @example
439
- * await client.features.listAudienceUsers({
440
- * conditionGroups: [{
441
- * conditions: [{
442
- * conditionType: "company",
443
- * operator: "eq",
444
- * resourceIds: ["resource_ids"]
445
- * }]
446
- * }],
447
- * conditions: [{
448
- * conditionType: "company",
449
- * operator: "eq",
450
- * resourceIds: ["resource_ids"]
451
- * }]
452
- * })
453
- */
454
- listAudienceUsers(request, requestOptions) {
455
- return core.HttpResponsePromise.fromPromise(this.__listAudienceUsers(request, requestOptions));
456
- }
457
- __listAudienceUsers(request, requestOptions) {
458
- return __awaiter(this, void 0, void 0, function* () {
459
- var _a, _b, _c;
460
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
461
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "audience/get-users"),
462
- method: "POST",
463
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
464
- contentType: "application/json",
465
- requestType: "json",
466
- body: serializers.AudienceRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
467
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
468
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
469
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
470
- });
471
- if (_response.ok) {
472
- return {
473
- data: serializers.ListAudienceUsersResponse.parseOrThrow(_response.body, {
474
- unrecognizedObjectKeys: "passthrough",
475
- allowUnrecognizedUnionMembers: true,
476
- allowUnrecognizedEnumValues: true,
477
- skipValidation: true,
478
- breadcrumbsPrefix: ["response"],
479
- }),
480
- rawResponse: _response.rawResponse,
481
- };
482
- }
483
- if (_response.error.reason === "status-code") {
484
- switch (_response.error.statusCode) {
485
- case 400:
486
- throw new Schematic.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
487
- unrecognizedObjectKeys: "passthrough",
488
- allowUnrecognizedUnionMembers: true,
489
- allowUnrecognizedEnumValues: true,
490
- skipValidation: true,
491
- breadcrumbsPrefix: ["response"],
492
- }), _response.rawResponse);
493
- case 401:
494
- throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
495
- unrecognizedObjectKeys: "passthrough",
496
- allowUnrecognizedUnionMembers: true,
497
- allowUnrecognizedEnumValues: true,
498
- skipValidation: true,
499
- breadcrumbsPrefix: ["response"],
500
- }), _response.rawResponse);
501
- case 403:
502
- throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
503
- unrecognizedObjectKeys: "passthrough",
504
- allowUnrecognizedUnionMembers: true,
505
- allowUnrecognizedEnumValues: true,
506
- skipValidation: true,
507
- breadcrumbsPrefix: ["response"],
508
- }), _response.rawResponse);
509
- case 404:
510
- throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
511
- unrecognizedObjectKeys: "passthrough",
512
- allowUnrecognizedUnionMembers: true,
513
- allowUnrecognizedEnumValues: true,
514
- skipValidation: true,
515
- breadcrumbsPrefix: ["response"],
516
- }), _response.rawResponse);
517
- case 500:
518
- throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
519
- unrecognizedObjectKeys: "passthrough",
520
- allowUnrecognizedUnionMembers: true,
521
- allowUnrecognizedEnumValues: true,
522
- skipValidation: true,
523
- breadcrumbsPrefix: ["response"],
524
- }), _response.rawResponse);
525
- default:
526
- throw new errors.SchematicError({
527
- statusCode: _response.error.statusCode,
528
- body: _response.error.body,
529
- rawResponse: _response.rawResponse,
530
- });
531
- }
532
- }
533
- switch (_response.error.reason) {
534
- case "non-json":
535
- throw new errors.SchematicError({
536
- statusCode: _response.error.statusCode,
537
- body: _response.error.rawBody,
538
- rawResponse: _response.rawResponse,
539
- });
540
- case "timeout":
541
- throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /audience/get-users.");
542
- case "unknown":
543
- throw new errors.SchematicError({
544
- message: _response.error.errorMessage,
545
- rawResponse: _response.rawResponse,
546
- });
547
- }
548
- });
549
- }
550
- /**
551
- * @param {Schematic.ListFeaturesRequest} request
552
- * @param {Features.RequestOptions} requestOptions - Request-specific configuration.
553
- *
554
- * @throws {@link Schematic.BadRequestError}
555
- * @throws {@link Schematic.UnauthorizedError}
556
- * @throws {@link Schematic.ForbiddenError}
557
- * @throws {@link Schematic.NotFoundError}
558
- * @throws {@link Schematic.InternalServerError}
559
- *
560
- * @example
561
- * await client.features.listFeatures()
562
- */
563
- listFeatures(request = {}, requestOptions) {
564
- return core.HttpResponsePromise.fromPromise(this.__listFeatures(request, requestOptions));
565
- }
566
- __listFeatures() {
567
- return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
568
- var _a, _b, _c;
569
- const { ids, q, withoutCompanyOverrideFor, withoutPlanEntitlementFor, featureType, booleanRequireEvent, limit, offset, } = request;
570
- const _queryParams = {};
571
- if (ids != null) {
572
- if (Array.isArray(ids)) {
573
- _queryParams["ids"] = ids.map((item) => item);
574
- }
575
- else {
576
- _queryParams["ids"] = ids;
577
- }
578
- }
579
- if (q != null) {
580
- _queryParams["q"] = q;
581
- }
582
- if (withoutCompanyOverrideFor != null) {
583
- _queryParams["without_company_override_for"] = withoutCompanyOverrideFor;
584
- }
585
- if (withoutPlanEntitlementFor != null) {
586
- _queryParams["without_plan_entitlement_for"] = withoutPlanEntitlementFor;
587
- }
588
- if (featureType != null) {
589
- if (Array.isArray(featureType)) {
590
- _queryParams["feature_type"] = featureType.map((item) => item);
591
- }
592
- else {
593
- _queryParams["feature_type"] = featureType;
594
- }
595
- }
596
- if (booleanRequireEvent != null) {
597
- _queryParams["boolean_require_event"] = booleanRequireEvent.toString();
598
- }
599
- if (limit != null) {
600
- _queryParams["limit"] = limit.toString();
601
- }
602
- if (offset != null) {
603
- _queryParams["offset"] = offset.toString();
604
- }
605
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
606
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "features"),
607
- method: "GET",
608
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
609
- contentType: "application/json",
610
- queryParameters: _queryParams,
611
- requestType: "json",
612
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
613
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
614
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
615
- });
616
- if (_response.ok) {
617
- return {
618
- data: serializers.ListFeaturesResponse.parseOrThrow(_response.body, {
619
- unrecognizedObjectKeys: "passthrough",
620
- allowUnrecognizedUnionMembers: true,
621
- allowUnrecognizedEnumValues: true,
622
- skipValidation: true,
623
- breadcrumbsPrefix: ["response"],
624
- }),
625
- rawResponse: _response.rawResponse,
626
- };
627
- }
628
- if (_response.error.reason === "status-code") {
629
- switch (_response.error.statusCode) {
630
- case 400:
631
- throw new Schematic.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
632
- unrecognizedObjectKeys: "passthrough",
633
- allowUnrecognizedUnionMembers: true,
634
- allowUnrecognizedEnumValues: true,
635
- skipValidation: true,
636
- breadcrumbsPrefix: ["response"],
637
- }), _response.rawResponse);
638
- case 401:
639
- throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
640
- unrecognizedObjectKeys: "passthrough",
641
- allowUnrecognizedUnionMembers: true,
642
- allowUnrecognizedEnumValues: true,
643
- skipValidation: true,
644
- breadcrumbsPrefix: ["response"],
645
- }), _response.rawResponse);
646
- case 403:
647
- throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
648
- unrecognizedObjectKeys: "passthrough",
649
- allowUnrecognizedUnionMembers: true,
650
- allowUnrecognizedEnumValues: true,
651
- skipValidation: true,
652
- breadcrumbsPrefix: ["response"],
653
- }), _response.rawResponse);
654
- case 404:
655
- throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
656
- unrecognizedObjectKeys: "passthrough",
657
- allowUnrecognizedUnionMembers: true,
658
- allowUnrecognizedEnumValues: true,
659
- skipValidation: true,
660
- breadcrumbsPrefix: ["response"],
661
- }), _response.rawResponse);
662
- case 500:
663
- throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
664
- unrecognizedObjectKeys: "passthrough",
665
- allowUnrecognizedUnionMembers: true,
666
- allowUnrecognizedEnumValues: true,
667
- skipValidation: true,
668
- breadcrumbsPrefix: ["response"],
669
- }), _response.rawResponse);
670
- default:
671
- throw new errors.SchematicError({
672
- statusCode: _response.error.statusCode,
673
- body: _response.error.body,
674
- rawResponse: _response.rawResponse,
675
- });
676
- }
677
- }
678
- switch (_response.error.reason) {
679
- case "non-json":
680
- throw new errors.SchematicError({
681
- statusCode: _response.error.statusCode,
682
- body: _response.error.rawBody,
683
- rawResponse: _response.rawResponse,
684
- });
685
- case "timeout":
686
- throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /features.");
687
- case "unknown":
688
- throw new errors.SchematicError({
689
- message: _response.error.errorMessage,
690
- rawResponse: _response.rawResponse,
691
- });
692
- }
693
- });
694
- }
695
- /**
696
- * @param {Schematic.CreateFeatureRequestBody} request
697
- * @param {Features.RequestOptions} requestOptions - Request-specific configuration.
698
- *
699
- * @throws {@link Schematic.BadRequestError}
700
- * @throws {@link Schematic.UnauthorizedError}
701
- * @throws {@link Schematic.ForbiddenError}
702
- * @throws {@link Schematic.NotFoundError}
703
- * @throws {@link Schematic.InternalServerError}
704
- *
705
- * @example
706
- * await client.features.createFeature({
707
- * description: "description",
708
- * featureType: "boolean",
709
- * name: "name"
710
- * })
711
- */
712
- createFeature(request, requestOptions) {
713
- return core.HttpResponsePromise.fromPromise(this.__createFeature(request, requestOptions));
714
- }
715
- __createFeature(request, requestOptions) {
716
- return __awaiter(this, void 0, void 0, function* () {
717
- var _a, _b, _c;
718
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
719
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "features"),
720
- method: "POST",
721
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
722
- contentType: "application/json",
723
- requestType: "json",
724
- body: serializers.CreateFeatureRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
725
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
726
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
727
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
728
- });
729
- if (_response.ok) {
730
- return {
731
- data: serializers.CreateFeatureResponse.parseOrThrow(_response.body, {
732
- unrecognizedObjectKeys: "passthrough",
733
- allowUnrecognizedUnionMembers: true,
734
- allowUnrecognizedEnumValues: true,
735
- skipValidation: true,
736
- breadcrumbsPrefix: ["response"],
737
- }),
738
- rawResponse: _response.rawResponse,
739
- };
740
- }
741
- if (_response.error.reason === "status-code") {
742
- switch (_response.error.statusCode) {
743
- case 400:
744
- throw new Schematic.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
745
- unrecognizedObjectKeys: "passthrough",
746
- allowUnrecognizedUnionMembers: true,
747
- allowUnrecognizedEnumValues: true,
748
- skipValidation: true,
749
- breadcrumbsPrefix: ["response"],
750
- }), _response.rawResponse);
751
- case 401:
752
- throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
753
- unrecognizedObjectKeys: "passthrough",
754
- allowUnrecognizedUnionMembers: true,
755
- allowUnrecognizedEnumValues: true,
756
- skipValidation: true,
757
- breadcrumbsPrefix: ["response"],
758
- }), _response.rawResponse);
759
- case 403:
760
- throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
761
- unrecognizedObjectKeys: "passthrough",
762
- allowUnrecognizedUnionMembers: true,
763
- allowUnrecognizedEnumValues: true,
764
- skipValidation: true,
765
- breadcrumbsPrefix: ["response"],
766
- }), _response.rawResponse);
767
- case 404:
768
- throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
769
- unrecognizedObjectKeys: "passthrough",
770
- allowUnrecognizedUnionMembers: true,
771
- allowUnrecognizedEnumValues: true,
772
- skipValidation: true,
773
- breadcrumbsPrefix: ["response"],
774
- }), _response.rawResponse);
775
- case 500:
776
- throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
777
- unrecognizedObjectKeys: "passthrough",
778
- allowUnrecognizedUnionMembers: true,
779
- allowUnrecognizedEnumValues: true,
780
- skipValidation: true,
781
- breadcrumbsPrefix: ["response"],
782
- }), _response.rawResponse);
783
- default:
784
- throw new errors.SchematicError({
785
- statusCode: _response.error.statusCode,
786
- body: _response.error.body,
787
- rawResponse: _response.rawResponse,
788
- });
789
- }
790
- }
791
- switch (_response.error.reason) {
792
- case "non-json":
793
- throw new errors.SchematicError({
794
- statusCode: _response.error.statusCode,
795
- body: _response.error.rawBody,
796
- rawResponse: _response.rawResponse,
797
- });
798
- case "timeout":
799
- throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /features.");
800
- case "unknown":
801
- throw new errors.SchematicError({
802
- message: _response.error.errorMessage,
803
- rawResponse: _response.rawResponse,
804
- });
805
- }
806
- });
807
- }
808
- /**
809
- * @param {string} featureId - feature_id
810
- * @param {Features.RequestOptions} requestOptions - Request-specific configuration.
811
- *
812
- * @throws {@link Schematic.UnauthorizedError}
813
- * @throws {@link Schematic.ForbiddenError}
814
- * @throws {@link Schematic.NotFoundError}
815
- * @throws {@link Schematic.InternalServerError}
816
- *
817
- * @example
818
- * await client.features.getFeature("feature_id")
819
- */
820
- getFeature(featureId, requestOptions) {
821
- return core.HttpResponsePromise.fromPromise(this.__getFeature(featureId, requestOptions));
822
- }
823
- __getFeature(featureId, requestOptions) {
824
- return __awaiter(this, void 0, void 0, function* () {
825
- var _a, _b, _c;
826
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
827
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, `features/${encodeURIComponent(featureId)}`),
828
- method: "GET",
829
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
830
- contentType: "application/json",
831
- requestType: "json",
832
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
833
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
834
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
835
- });
836
- if (_response.ok) {
837
- return {
838
- data: serializers.GetFeatureResponse.parseOrThrow(_response.body, {
839
- unrecognizedObjectKeys: "passthrough",
840
- allowUnrecognizedUnionMembers: true,
841
- allowUnrecognizedEnumValues: true,
842
- skipValidation: true,
843
- breadcrumbsPrefix: ["response"],
844
- }),
845
- rawResponse: _response.rawResponse,
846
- };
847
- }
848
- if (_response.error.reason === "status-code") {
849
- switch (_response.error.statusCode) {
850
- case 401:
851
- throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
852
- unrecognizedObjectKeys: "passthrough",
853
- allowUnrecognizedUnionMembers: true,
854
- allowUnrecognizedEnumValues: true,
855
- skipValidation: true,
856
- breadcrumbsPrefix: ["response"],
857
- }), _response.rawResponse);
858
- case 403:
859
- throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
860
- unrecognizedObjectKeys: "passthrough",
861
- allowUnrecognizedUnionMembers: true,
862
- allowUnrecognizedEnumValues: true,
863
- skipValidation: true,
864
- breadcrumbsPrefix: ["response"],
865
- }), _response.rawResponse);
866
- case 404:
867
- throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
868
- unrecognizedObjectKeys: "passthrough",
869
- allowUnrecognizedUnionMembers: true,
870
- allowUnrecognizedEnumValues: true,
871
- skipValidation: true,
872
- breadcrumbsPrefix: ["response"],
873
- }), _response.rawResponse);
874
- case 500:
875
- throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
876
- unrecognizedObjectKeys: "passthrough",
877
- allowUnrecognizedUnionMembers: true,
878
- allowUnrecognizedEnumValues: true,
879
- skipValidation: true,
880
- breadcrumbsPrefix: ["response"],
881
- }), _response.rawResponse);
882
- default:
883
- throw new errors.SchematicError({
884
- statusCode: _response.error.statusCode,
885
- body: _response.error.body,
886
- rawResponse: _response.rawResponse,
887
- });
888
- }
889
- }
890
- switch (_response.error.reason) {
891
- case "non-json":
892
- throw new errors.SchematicError({
893
- statusCode: _response.error.statusCode,
894
- body: _response.error.rawBody,
895
- rawResponse: _response.rawResponse,
896
- });
897
- case "timeout":
898
- throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /features/{feature_id}.");
899
- case "unknown":
900
- throw new errors.SchematicError({
901
- message: _response.error.errorMessage,
902
- rawResponse: _response.rawResponse,
903
- });
904
- }
905
- });
906
- }
907
- /**
908
- * @param {string} featureId - feature_id
909
- * @param {Schematic.UpdateFeatureRequestBody} request
910
- * @param {Features.RequestOptions} requestOptions - Request-specific configuration.
911
- *
912
- * @throws {@link Schematic.BadRequestError}
913
- * @throws {@link Schematic.UnauthorizedError}
914
- * @throws {@link Schematic.ForbiddenError}
915
- * @throws {@link Schematic.NotFoundError}
916
- * @throws {@link Schematic.InternalServerError}
917
- *
918
- * @example
919
- * await client.features.updateFeature("feature_id")
920
- */
921
- updateFeature(featureId, request = {}, requestOptions) {
922
- return core.HttpResponsePromise.fromPromise(this.__updateFeature(featureId, request, requestOptions));
923
- }
924
- __updateFeature(featureId_1) {
925
- return __awaiter(this, arguments, void 0, function* (featureId, request = {}, requestOptions) {
926
- var _a, _b, _c;
927
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
928
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, `features/${encodeURIComponent(featureId)}`),
929
- method: "PUT",
930
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
931
- contentType: "application/json",
932
- requestType: "json",
933
- body: serializers.UpdateFeatureRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
934
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
935
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
936
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
937
- });
938
- if (_response.ok) {
939
- return {
940
- data: serializers.UpdateFeatureResponse.parseOrThrow(_response.body, {
941
- unrecognizedObjectKeys: "passthrough",
942
- allowUnrecognizedUnionMembers: true,
943
- allowUnrecognizedEnumValues: true,
944
- skipValidation: true,
945
- breadcrumbsPrefix: ["response"],
946
- }),
947
- rawResponse: _response.rawResponse,
948
- };
949
- }
950
- if (_response.error.reason === "status-code") {
951
- switch (_response.error.statusCode) {
952
- case 400:
953
- throw new Schematic.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
954
- unrecognizedObjectKeys: "passthrough",
955
- allowUnrecognizedUnionMembers: true,
956
- allowUnrecognizedEnumValues: true,
957
- skipValidation: true,
958
- breadcrumbsPrefix: ["response"],
959
- }), _response.rawResponse);
960
- case 401:
961
- throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
962
- unrecognizedObjectKeys: "passthrough",
963
- allowUnrecognizedUnionMembers: true,
964
- allowUnrecognizedEnumValues: true,
965
- skipValidation: true,
966
- breadcrumbsPrefix: ["response"],
967
- }), _response.rawResponse);
968
- case 403:
969
- throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
970
- unrecognizedObjectKeys: "passthrough",
971
- allowUnrecognizedUnionMembers: true,
972
- allowUnrecognizedEnumValues: true,
973
- skipValidation: true,
974
- breadcrumbsPrefix: ["response"],
975
- }), _response.rawResponse);
976
- case 404:
977
- throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
978
- unrecognizedObjectKeys: "passthrough",
979
- allowUnrecognizedUnionMembers: true,
980
- allowUnrecognizedEnumValues: true,
981
- skipValidation: true,
982
- breadcrumbsPrefix: ["response"],
983
- }), _response.rawResponse);
984
- case 500:
985
- throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
986
- unrecognizedObjectKeys: "passthrough",
987
- allowUnrecognizedUnionMembers: true,
988
- allowUnrecognizedEnumValues: true,
989
- skipValidation: true,
990
- breadcrumbsPrefix: ["response"],
991
- }), _response.rawResponse);
992
- default:
993
- throw new errors.SchematicError({
994
- statusCode: _response.error.statusCode,
995
- body: _response.error.body,
996
- rawResponse: _response.rawResponse,
997
- });
998
- }
999
- }
1000
- switch (_response.error.reason) {
1001
- case "non-json":
1002
- throw new errors.SchematicError({
1003
- statusCode: _response.error.statusCode,
1004
- body: _response.error.rawBody,
1005
- rawResponse: _response.rawResponse,
1006
- });
1007
- case "timeout":
1008
- throw new errors.SchematicTimeoutError("Timeout exceeded when calling PUT /features/{feature_id}.");
1009
- case "unknown":
1010
- throw new errors.SchematicError({
1011
- message: _response.error.errorMessage,
1012
- rawResponse: _response.rawResponse,
1013
- });
1014
- }
1015
- });
1016
- }
1017
- /**
1018
- * @param {string} featureId - feature_id
1019
- * @param {Features.RequestOptions} requestOptions - Request-specific configuration.
1020
- *
1021
- * @throws {@link Schematic.BadRequestError}
1022
- * @throws {@link Schematic.UnauthorizedError}
1023
- * @throws {@link Schematic.ForbiddenError}
1024
- * @throws {@link Schematic.NotFoundError}
1025
- * @throws {@link Schematic.InternalServerError}
1026
- *
1027
- * @example
1028
- * await client.features.deleteFeature("feature_id")
1029
- */
1030
- deleteFeature(featureId, requestOptions) {
1031
- return core.HttpResponsePromise.fromPromise(this.__deleteFeature(featureId, requestOptions));
1032
- }
1033
- __deleteFeature(featureId, requestOptions) {
1034
- return __awaiter(this, void 0, void 0, function* () {
1035
- var _a, _b, _c;
1036
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1037
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, `features/${encodeURIComponent(featureId)}`),
1038
- method: "DELETE",
1039
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1040
- contentType: "application/json",
1041
- requestType: "json",
1042
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1043
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1044
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1045
- });
1046
- if (_response.ok) {
1047
- return {
1048
- data: serializers.DeleteFeatureResponse.parseOrThrow(_response.body, {
1049
- unrecognizedObjectKeys: "passthrough",
1050
- allowUnrecognizedUnionMembers: true,
1051
- allowUnrecognizedEnumValues: true,
1052
- skipValidation: true,
1053
- breadcrumbsPrefix: ["response"],
1054
- }),
1055
- rawResponse: _response.rawResponse,
1056
- };
1057
- }
1058
- if (_response.error.reason === "status-code") {
1059
- switch (_response.error.statusCode) {
1060
- case 400:
1061
- throw new Schematic.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
1062
- unrecognizedObjectKeys: "passthrough",
1063
- allowUnrecognizedUnionMembers: true,
1064
- allowUnrecognizedEnumValues: true,
1065
- skipValidation: true,
1066
- breadcrumbsPrefix: ["response"],
1067
- }), _response.rawResponse);
1068
- case 401:
1069
- throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
1070
- unrecognizedObjectKeys: "passthrough",
1071
- allowUnrecognizedUnionMembers: true,
1072
- allowUnrecognizedEnumValues: true,
1073
- skipValidation: true,
1074
- breadcrumbsPrefix: ["response"],
1075
- }), _response.rawResponse);
1076
- case 403:
1077
- throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
1078
- unrecognizedObjectKeys: "passthrough",
1079
- allowUnrecognizedUnionMembers: true,
1080
- allowUnrecognizedEnumValues: true,
1081
- skipValidation: true,
1082
- breadcrumbsPrefix: ["response"],
1083
- }), _response.rawResponse);
1084
- case 404:
1085
- throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
1086
- unrecognizedObjectKeys: "passthrough",
1087
- allowUnrecognizedUnionMembers: true,
1088
- allowUnrecognizedEnumValues: true,
1089
- skipValidation: true,
1090
- breadcrumbsPrefix: ["response"],
1091
- }), _response.rawResponse);
1092
- case 500:
1093
- throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
1094
- unrecognizedObjectKeys: "passthrough",
1095
- allowUnrecognizedUnionMembers: true,
1096
- allowUnrecognizedEnumValues: true,
1097
- skipValidation: true,
1098
- breadcrumbsPrefix: ["response"],
1099
- }), _response.rawResponse);
1100
- default:
1101
- throw new errors.SchematicError({
1102
- statusCode: _response.error.statusCode,
1103
- body: _response.error.body,
1104
- rawResponse: _response.rawResponse,
1105
- });
1106
- }
1107
- }
1108
- switch (_response.error.reason) {
1109
- case "non-json":
1110
- throw new errors.SchematicError({
1111
- statusCode: _response.error.statusCode,
1112
- body: _response.error.rawBody,
1113
- rawResponse: _response.rawResponse,
1114
- });
1115
- case "timeout":
1116
- throw new errors.SchematicTimeoutError("Timeout exceeded when calling DELETE /features/{feature_id}.");
1117
- case "unknown":
1118
- throw new errors.SchematicError({
1119
- message: _response.error.errorMessage,
1120
- rawResponse: _response.rawResponse,
1121
- });
1122
- }
1123
- });
1124
- }
1125
- /**
1126
- * @param {Schematic.CountFeaturesRequest} request
1127
- * @param {Features.RequestOptions} requestOptions - Request-specific configuration.
1128
- *
1129
- * @throws {@link Schematic.BadRequestError}
1130
- * @throws {@link Schematic.UnauthorizedError}
1131
- * @throws {@link Schematic.ForbiddenError}
1132
- * @throws {@link Schematic.NotFoundError}
1133
- * @throws {@link Schematic.InternalServerError}
1134
- *
1135
- * @example
1136
- * await client.features.countFeatures()
1137
- */
1138
- countFeatures(request = {}, requestOptions) {
1139
- return core.HttpResponsePromise.fromPromise(this.__countFeatures(request, requestOptions));
1140
- }
1141
- __countFeatures() {
1142
- return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
1143
- var _a, _b, _c;
1144
- const { ids, q, withoutCompanyOverrideFor, withoutPlanEntitlementFor, featureType, booleanRequireEvent, limit, offset, } = request;
1145
- const _queryParams = {};
1146
- if (ids != null) {
1147
- if (Array.isArray(ids)) {
1148
- _queryParams["ids"] = ids.map((item) => item);
1149
- }
1150
- else {
1151
- _queryParams["ids"] = ids;
1152
- }
1153
- }
1154
- if (q != null) {
1155
- _queryParams["q"] = q;
1156
- }
1157
- if (withoutCompanyOverrideFor != null) {
1158
- _queryParams["without_company_override_for"] = withoutCompanyOverrideFor;
1159
- }
1160
- if (withoutPlanEntitlementFor != null) {
1161
- _queryParams["without_plan_entitlement_for"] = withoutPlanEntitlementFor;
1162
- }
1163
- if (featureType != null) {
1164
- if (Array.isArray(featureType)) {
1165
- _queryParams["feature_type"] = featureType.map((item) => item);
1166
- }
1167
- else {
1168
- _queryParams["feature_type"] = featureType;
1169
- }
1170
- }
1171
- if (booleanRequireEvent != null) {
1172
- _queryParams["boolean_require_event"] = booleanRequireEvent.toString();
1173
- }
1174
- if (limit != null) {
1175
- _queryParams["limit"] = limit.toString();
1176
- }
1177
- if (offset != null) {
1178
- _queryParams["offset"] = offset.toString();
1179
- }
1180
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1181
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "features/count"),
1182
- method: "GET",
1183
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1184
- contentType: "application/json",
1185
- queryParameters: _queryParams,
1186
- requestType: "json",
1187
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1188
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1189
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1190
- });
1191
- if (_response.ok) {
1192
- return {
1193
- data: serializers.CountFeaturesResponse.parseOrThrow(_response.body, {
1194
- unrecognizedObjectKeys: "passthrough",
1195
- allowUnrecognizedUnionMembers: true,
1196
- allowUnrecognizedEnumValues: true,
1197
- skipValidation: true,
1198
- breadcrumbsPrefix: ["response"],
1199
- }),
1200
- rawResponse: _response.rawResponse,
1201
- };
1202
- }
1203
- if (_response.error.reason === "status-code") {
1204
- switch (_response.error.statusCode) {
1205
- case 400:
1206
- throw new Schematic.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
1207
- unrecognizedObjectKeys: "passthrough",
1208
- allowUnrecognizedUnionMembers: true,
1209
- allowUnrecognizedEnumValues: true,
1210
- skipValidation: true,
1211
- breadcrumbsPrefix: ["response"],
1212
- }), _response.rawResponse);
1213
- case 401:
1214
- throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
1215
- unrecognizedObjectKeys: "passthrough",
1216
- allowUnrecognizedUnionMembers: true,
1217
- allowUnrecognizedEnumValues: true,
1218
- skipValidation: true,
1219
- breadcrumbsPrefix: ["response"],
1220
- }), _response.rawResponse);
1221
- case 403:
1222
- throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
1223
- unrecognizedObjectKeys: "passthrough",
1224
- allowUnrecognizedUnionMembers: true,
1225
- allowUnrecognizedEnumValues: true,
1226
- skipValidation: true,
1227
- breadcrumbsPrefix: ["response"],
1228
- }), _response.rawResponse);
1229
- case 404:
1230
- throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
1231
- unrecognizedObjectKeys: "passthrough",
1232
- allowUnrecognizedUnionMembers: true,
1233
- allowUnrecognizedEnumValues: true,
1234
- skipValidation: true,
1235
- breadcrumbsPrefix: ["response"],
1236
- }), _response.rawResponse);
1237
- case 500:
1238
- throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
1239
- unrecognizedObjectKeys: "passthrough",
1240
- allowUnrecognizedUnionMembers: true,
1241
- allowUnrecognizedEnumValues: true,
1242
- skipValidation: true,
1243
- breadcrumbsPrefix: ["response"],
1244
- }), _response.rawResponse);
1245
- default:
1246
- throw new errors.SchematicError({
1247
- statusCode: _response.error.statusCode,
1248
- body: _response.error.body,
1249
- rawResponse: _response.rawResponse,
1250
- });
1251
- }
1252
- }
1253
- switch (_response.error.reason) {
1254
- case "non-json":
1255
- throw new errors.SchematicError({
1256
- statusCode: _response.error.statusCode,
1257
- body: _response.error.rawBody,
1258
- rawResponse: _response.rawResponse,
1259
- });
1260
- case "timeout":
1261
- throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /features/count.");
1262
- case "unknown":
1263
- throw new errors.SchematicError({
1264
- message: _response.error.errorMessage,
1265
- rawResponse: _response.rawResponse,
1266
- });
1267
- }
1268
- });
1269
- }
1270
- /**
1271
- * @param {Schematic.ListFlagsRequest} request
1272
- * @param {Features.RequestOptions} requestOptions - Request-specific configuration.
1273
- *
1274
- * @throws {@link Schematic.BadRequestError}
1275
- * @throws {@link Schematic.UnauthorizedError}
1276
- * @throws {@link Schematic.ForbiddenError}
1277
- * @throws {@link Schematic.NotFoundError}
1278
- * @throws {@link Schematic.InternalServerError}
1279
- *
1280
- * @example
1281
- * await client.features.listFlags()
1282
- */
1283
- listFlags(request = {}, requestOptions) {
1284
- return core.HttpResponsePromise.fromPromise(this.__listFlags(request, requestOptions));
1285
- }
1286
- __listFlags() {
1287
- return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
1288
- var _a, _b, _c;
1289
- const { featureId, ids, q, limit, offset } = request;
1290
- const _queryParams = {};
1291
- if (featureId != null) {
1292
- _queryParams["feature_id"] = featureId;
1293
- }
1294
- if (ids != null) {
1295
- if (Array.isArray(ids)) {
1296
- _queryParams["ids"] = ids.map((item) => item);
1297
- }
1298
- else {
1299
- _queryParams["ids"] = ids;
1300
- }
1301
- }
1302
- if (q != null) {
1303
- _queryParams["q"] = q;
1304
- }
1305
- if (limit != null) {
1306
- _queryParams["limit"] = limit.toString();
1307
- }
1308
- if (offset != null) {
1309
- _queryParams["offset"] = offset.toString();
1310
- }
1311
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1312
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "flags"),
1313
- method: "GET",
1314
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1315
- contentType: "application/json",
1316
- queryParameters: _queryParams,
1317
- requestType: "json",
1318
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1319
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1320
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1321
- });
1322
- if (_response.ok) {
1323
- return {
1324
- data: serializers.ListFlagsResponse.parseOrThrow(_response.body, {
1325
- unrecognizedObjectKeys: "passthrough",
1326
- allowUnrecognizedUnionMembers: true,
1327
- allowUnrecognizedEnumValues: true,
1328
- skipValidation: true,
1329
- breadcrumbsPrefix: ["response"],
1330
- }),
1331
- rawResponse: _response.rawResponse,
1332
- };
1333
- }
1334
- if (_response.error.reason === "status-code") {
1335
- switch (_response.error.statusCode) {
1336
- case 400:
1337
- throw new Schematic.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
1338
- unrecognizedObjectKeys: "passthrough",
1339
- allowUnrecognizedUnionMembers: true,
1340
- allowUnrecognizedEnumValues: true,
1341
- skipValidation: true,
1342
- breadcrumbsPrefix: ["response"],
1343
- }), _response.rawResponse);
1344
- case 401:
1345
- throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
1346
- unrecognizedObjectKeys: "passthrough",
1347
- allowUnrecognizedUnionMembers: true,
1348
- allowUnrecognizedEnumValues: true,
1349
- skipValidation: true,
1350
- breadcrumbsPrefix: ["response"],
1351
- }), _response.rawResponse);
1352
- case 403:
1353
- throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
1354
- unrecognizedObjectKeys: "passthrough",
1355
- allowUnrecognizedUnionMembers: true,
1356
- allowUnrecognizedEnumValues: true,
1357
- skipValidation: true,
1358
- breadcrumbsPrefix: ["response"],
1359
- }), _response.rawResponse);
1360
- case 404:
1361
- throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
1362
- unrecognizedObjectKeys: "passthrough",
1363
- allowUnrecognizedUnionMembers: true,
1364
- allowUnrecognizedEnumValues: true,
1365
- skipValidation: true,
1366
- breadcrumbsPrefix: ["response"],
1367
- }), _response.rawResponse);
1368
- case 500:
1369
- throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
1370
- unrecognizedObjectKeys: "passthrough",
1371
- allowUnrecognizedUnionMembers: true,
1372
- allowUnrecognizedEnumValues: true,
1373
- skipValidation: true,
1374
- breadcrumbsPrefix: ["response"],
1375
- }), _response.rawResponse);
1376
- default:
1377
- throw new errors.SchematicError({
1378
- statusCode: _response.error.statusCode,
1379
- body: _response.error.body,
1380
- rawResponse: _response.rawResponse,
1381
- });
1382
- }
1383
- }
1384
- switch (_response.error.reason) {
1385
- case "non-json":
1386
- throw new errors.SchematicError({
1387
- statusCode: _response.error.statusCode,
1388
- body: _response.error.rawBody,
1389
- rawResponse: _response.rawResponse,
1390
- });
1391
- case "timeout":
1392
- throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /flags.");
1393
- case "unknown":
1394
- throw new errors.SchematicError({
1395
- message: _response.error.errorMessage,
1396
- rawResponse: _response.rawResponse,
1397
- });
1398
- }
1399
- });
1400
- }
1401
- /**
1402
- * @param {Schematic.CreateFlagRequestBody} request
1403
- * @param {Features.RequestOptions} requestOptions - Request-specific configuration.
1404
- *
1405
- * @throws {@link Schematic.BadRequestError}
1406
- * @throws {@link Schematic.UnauthorizedError}
1407
- * @throws {@link Schematic.ForbiddenError}
1408
- * @throws {@link Schematic.NotFoundError}
1409
- * @throws {@link Schematic.InternalServerError}
1410
- *
1411
- * @example
1412
- * await client.features.createFlag({
1413
- * defaultValue: true,
1414
- * description: "description",
1415
- * flagType: "boolean",
1416
- * key: "key",
1417
- * name: "name"
1418
- * })
1419
- */
1420
- createFlag(request, requestOptions) {
1421
- return core.HttpResponsePromise.fromPromise(this.__createFlag(request, requestOptions));
1422
- }
1423
- __createFlag(request, requestOptions) {
1424
- return __awaiter(this, void 0, void 0, function* () {
1425
- var _a, _b, _c;
1426
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1427
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "flags"),
1428
- method: "POST",
1429
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1430
- contentType: "application/json",
1431
- requestType: "json",
1432
- body: serializers.CreateFlagRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
1433
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1434
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1435
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1436
- });
1437
- if (_response.ok) {
1438
- return {
1439
- data: serializers.CreateFlagResponse.parseOrThrow(_response.body, {
1440
- unrecognizedObjectKeys: "passthrough",
1441
- allowUnrecognizedUnionMembers: true,
1442
- allowUnrecognizedEnumValues: true,
1443
- skipValidation: true,
1444
- breadcrumbsPrefix: ["response"],
1445
- }),
1446
- rawResponse: _response.rawResponse,
1447
- };
1448
- }
1449
- if (_response.error.reason === "status-code") {
1450
- switch (_response.error.statusCode) {
1451
- case 400:
1452
- throw new Schematic.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
1453
- unrecognizedObjectKeys: "passthrough",
1454
- allowUnrecognizedUnionMembers: true,
1455
- allowUnrecognizedEnumValues: true,
1456
- skipValidation: true,
1457
- breadcrumbsPrefix: ["response"],
1458
- }), _response.rawResponse);
1459
- case 401:
1460
- throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
1461
- unrecognizedObjectKeys: "passthrough",
1462
- allowUnrecognizedUnionMembers: true,
1463
- allowUnrecognizedEnumValues: true,
1464
- skipValidation: true,
1465
- breadcrumbsPrefix: ["response"],
1466
- }), _response.rawResponse);
1467
- case 403:
1468
- throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
1469
- unrecognizedObjectKeys: "passthrough",
1470
- allowUnrecognizedUnionMembers: true,
1471
- allowUnrecognizedEnumValues: true,
1472
- skipValidation: true,
1473
- breadcrumbsPrefix: ["response"],
1474
- }), _response.rawResponse);
1475
- case 404:
1476
- throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
1477
- unrecognizedObjectKeys: "passthrough",
1478
- allowUnrecognizedUnionMembers: true,
1479
- allowUnrecognizedEnumValues: true,
1480
- skipValidation: true,
1481
- breadcrumbsPrefix: ["response"],
1482
- }), _response.rawResponse);
1483
- case 500:
1484
- throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
1485
- unrecognizedObjectKeys: "passthrough",
1486
- allowUnrecognizedUnionMembers: true,
1487
- allowUnrecognizedEnumValues: true,
1488
- skipValidation: true,
1489
- breadcrumbsPrefix: ["response"],
1490
- }), _response.rawResponse);
1491
- default:
1492
- throw new errors.SchematicError({
1493
- statusCode: _response.error.statusCode,
1494
- body: _response.error.body,
1495
- rawResponse: _response.rawResponse,
1496
- });
1497
- }
1498
- }
1499
- switch (_response.error.reason) {
1500
- case "non-json":
1501
- throw new errors.SchematicError({
1502
- statusCode: _response.error.statusCode,
1503
- body: _response.error.rawBody,
1504
- rawResponse: _response.rawResponse,
1505
- });
1506
- case "timeout":
1507
- throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /flags.");
1508
- case "unknown":
1509
- throw new errors.SchematicError({
1510
- message: _response.error.errorMessage,
1511
- rawResponse: _response.rawResponse,
1512
- });
1513
- }
1514
- });
1515
- }
1516
- /**
1517
- * @param {string} flagId - flag_id
1518
- * @param {Features.RequestOptions} requestOptions - Request-specific configuration.
1519
- *
1520
- * @throws {@link Schematic.UnauthorizedError}
1521
- * @throws {@link Schematic.ForbiddenError}
1522
- * @throws {@link Schematic.NotFoundError}
1523
- * @throws {@link Schematic.InternalServerError}
1524
- *
1525
- * @example
1526
- * await client.features.getFlag("flag_id")
1527
- */
1528
- getFlag(flagId, requestOptions) {
1529
- return core.HttpResponsePromise.fromPromise(this.__getFlag(flagId, requestOptions));
1530
- }
1531
- __getFlag(flagId, requestOptions) {
1532
- return __awaiter(this, void 0, void 0, function* () {
1533
- var _a, _b, _c;
1534
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1535
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, `flags/${encodeURIComponent(flagId)}`),
1536
- method: "GET",
1537
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1538
- contentType: "application/json",
1539
- requestType: "json",
1540
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1541
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1542
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1543
- });
1544
- if (_response.ok) {
1545
- return {
1546
- data: serializers.GetFlagResponse.parseOrThrow(_response.body, {
1547
- unrecognizedObjectKeys: "passthrough",
1548
- allowUnrecognizedUnionMembers: true,
1549
- allowUnrecognizedEnumValues: true,
1550
- skipValidation: true,
1551
- breadcrumbsPrefix: ["response"],
1552
- }),
1553
- rawResponse: _response.rawResponse,
1554
- };
1555
- }
1556
- if (_response.error.reason === "status-code") {
1557
- switch (_response.error.statusCode) {
1558
- case 401:
1559
- throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
1560
- unrecognizedObjectKeys: "passthrough",
1561
- allowUnrecognizedUnionMembers: true,
1562
- allowUnrecognizedEnumValues: true,
1563
- skipValidation: true,
1564
- breadcrumbsPrefix: ["response"],
1565
- }), _response.rawResponse);
1566
- case 403:
1567
- throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
1568
- unrecognizedObjectKeys: "passthrough",
1569
- allowUnrecognizedUnionMembers: true,
1570
- allowUnrecognizedEnumValues: true,
1571
- skipValidation: true,
1572
- breadcrumbsPrefix: ["response"],
1573
- }), _response.rawResponse);
1574
- case 404:
1575
- throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
1576
- unrecognizedObjectKeys: "passthrough",
1577
- allowUnrecognizedUnionMembers: true,
1578
- allowUnrecognizedEnumValues: true,
1579
- skipValidation: true,
1580
- breadcrumbsPrefix: ["response"],
1581
- }), _response.rawResponse);
1582
- case 500:
1583
- throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
1584
- unrecognizedObjectKeys: "passthrough",
1585
- allowUnrecognizedUnionMembers: true,
1586
- allowUnrecognizedEnumValues: true,
1587
- skipValidation: true,
1588
- breadcrumbsPrefix: ["response"],
1589
- }), _response.rawResponse);
1590
- default:
1591
- throw new errors.SchematicError({
1592
- statusCode: _response.error.statusCode,
1593
- body: _response.error.body,
1594
- rawResponse: _response.rawResponse,
1595
- });
1596
- }
1597
- }
1598
- switch (_response.error.reason) {
1599
- case "non-json":
1600
- throw new errors.SchematicError({
1601
- statusCode: _response.error.statusCode,
1602
- body: _response.error.rawBody,
1603
- rawResponse: _response.rawResponse,
1604
- });
1605
- case "timeout":
1606
- throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /flags/{flag_id}.");
1607
- case "unknown":
1608
- throw new errors.SchematicError({
1609
- message: _response.error.errorMessage,
1610
- rawResponse: _response.rawResponse,
1611
- });
1612
- }
1613
- });
1614
- }
1615
- /**
1616
- * @param {string} flagId - flag_id
1617
- * @param {Schematic.CreateFlagRequestBody} request
1618
- * @param {Features.RequestOptions} requestOptions - Request-specific configuration.
1619
- *
1620
- * @throws {@link Schematic.BadRequestError}
1621
- * @throws {@link Schematic.UnauthorizedError}
1622
- * @throws {@link Schematic.ForbiddenError}
1623
- * @throws {@link Schematic.NotFoundError}
1624
- * @throws {@link Schematic.InternalServerError}
1625
- *
1626
- * @example
1627
- * await client.features.updateFlag("flag_id", {
1628
- * defaultValue: true,
1629
- * description: "description",
1630
- * flagType: "boolean",
1631
- * key: "key",
1632
- * name: "name"
1633
- * })
1634
- */
1635
- updateFlag(flagId, request, requestOptions) {
1636
- return core.HttpResponsePromise.fromPromise(this.__updateFlag(flagId, request, requestOptions));
1637
- }
1638
- __updateFlag(flagId, request, requestOptions) {
1639
- return __awaiter(this, void 0, void 0, function* () {
1640
- var _a, _b, _c;
1641
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1642
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, `flags/${encodeURIComponent(flagId)}`),
1643
- method: "PUT",
1644
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1645
- contentType: "application/json",
1646
- requestType: "json",
1647
- body: serializers.CreateFlagRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
1648
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1649
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1650
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1651
- });
1652
- if (_response.ok) {
1653
- return {
1654
- data: serializers.UpdateFlagResponse.parseOrThrow(_response.body, {
1655
- unrecognizedObjectKeys: "passthrough",
1656
- allowUnrecognizedUnionMembers: true,
1657
- allowUnrecognizedEnumValues: true,
1658
- skipValidation: true,
1659
- breadcrumbsPrefix: ["response"],
1660
- }),
1661
- rawResponse: _response.rawResponse,
1662
- };
1663
- }
1664
- if (_response.error.reason === "status-code") {
1665
- switch (_response.error.statusCode) {
1666
- case 400:
1667
- throw new Schematic.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
1668
- unrecognizedObjectKeys: "passthrough",
1669
- allowUnrecognizedUnionMembers: true,
1670
- allowUnrecognizedEnumValues: true,
1671
- skipValidation: true,
1672
- breadcrumbsPrefix: ["response"],
1673
- }), _response.rawResponse);
1674
- case 401:
1675
- throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
1676
- unrecognizedObjectKeys: "passthrough",
1677
- allowUnrecognizedUnionMembers: true,
1678
- allowUnrecognizedEnumValues: true,
1679
- skipValidation: true,
1680
- breadcrumbsPrefix: ["response"],
1681
- }), _response.rawResponse);
1682
- case 403:
1683
- throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
1684
- unrecognizedObjectKeys: "passthrough",
1685
- allowUnrecognizedUnionMembers: true,
1686
- allowUnrecognizedEnumValues: true,
1687
- skipValidation: true,
1688
- breadcrumbsPrefix: ["response"],
1689
- }), _response.rawResponse);
1690
- case 404:
1691
- throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
1692
- unrecognizedObjectKeys: "passthrough",
1693
- allowUnrecognizedUnionMembers: true,
1694
- allowUnrecognizedEnumValues: true,
1695
- skipValidation: true,
1696
- breadcrumbsPrefix: ["response"],
1697
- }), _response.rawResponse);
1698
- case 500:
1699
- throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
1700
- unrecognizedObjectKeys: "passthrough",
1701
- allowUnrecognizedUnionMembers: true,
1702
- allowUnrecognizedEnumValues: true,
1703
- skipValidation: true,
1704
- breadcrumbsPrefix: ["response"],
1705
- }), _response.rawResponse);
1706
- default:
1707
- throw new errors.SchematicError({
1708
- statusCode: _response.error.statusCode,
1709
- body: _response.error.body,
1710
- rawResponse: _response.rawResponse,
1711
- });
1712
- }
1713
- }
1714
- switch (_response.error.reason) {
1715
- case "non-json":
1716
- throw new errors.SchematicError({
1717
- statusCode: _response.error.statusCode,
1718
- body: _response.error.rawBody,
1719
- rawResponse: _response.rawResponse,
1720
- });
1721
- case "timeout":
1722
- throw new errors.SchematicTimeoutError("Timeout exceeded when calling PUT /flags/{flag_id}.");
1723
- case "unknown":
1724
- throw new errors.SchematicError({
1725
- message: _response.error.errorMessage,
1726
- rawResponse: _response.rawResponse,
1727
- });
1728
- }
1729
- });
1730
- }
1731
- /**
1732
- * @param {string} flagId - flag_id
1733
- * @param {Features.RequestOptions} requestOptions - Request-specific configuration.
1734
- *
1735
- * @throws {@link Schematic.BadRequestError}
1736
- * @throws {@link Schematic.UnauthorizedError}
1737
- * @throws {@link Schematic.ForbiddenError}
1738
- * @throws {@link Schematic.NotFoundError}
1739
- * @throws {@link Schematic.InternalServerError}
1740
- *
1741
- * @example
1742
- * await client.features.deleteFlag("flag_id")
1743
- */
1744
- deleteFlag(flagId, requestOptions) {
1745
- return core.HttpResponsePromise.fromPromise(this.__deleteFlag(flagId, requestOptions));
1746
- }
1747
- __deleteFlag(flagId, requestOptions) {
1748
- return __awaiter(this, void 0, void 0, function* () {
1749
- var _a, _b, _c;
1750
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1751
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, `flags/${encodeURIComponent(flagId)}`),
1752
- method: "DELETE",
1753
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1754
- contentType: "application/json",
1755
- requestType: "json",
1756
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1757
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1758
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1759
- });
1760
- if (_response.ok) {
1761
- return {
1762
- data: serializers.DeleteFlagResponse.parseOrThrow(_response.body, {
1763
- unrecognizedObjectKeys: "passthrough",
1764
- allowUnrecognizedUnionMembers: true,
1765
- allowUnrecognizedEnumValues: true,
1766
- skipValidation: true,
1767
- breadcrumbsPrefix: ["response"],
1768
- }),
1769
- rawResponse: _response.rawResponse,
1770
- };
1771
- }
1772
- if (_response.error.reason === "status-code") {
1773
- switch (_response.error.statusCode) {
1774
- case 400:
1775
- throw new Schematic.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
1776
- unrecognizedObjectKeys: "passthrough",
1777
- allowUnrecognizedUnionMembers: true,
1778
- allowUnrecognizedEnumValues: true,
1779
- skipValidation: true,
1780
- breadcrumbsPrefix: ["response"],
1781
- }), _response.rawResponse);
1782
- case 401:
1783
- throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
1784
- unrecognizedObjectKeys: "passthrough",
1785
- allowUnrecognizedUnionMembers: true,
1786
- allowUnrecognizedEnumValues: true,
1787
- skipValidation: true,
1788
- breadcrumbsPrefix: ["response"],
1789
- }), _response.rawResponse);
1790
- case 403:
1791
- throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
1792
- unrecognizedObjectKeys: "passthrough",
1793
- allowUnrecognizedUnionMembers: true,
1794
- allowUnrecognizedEnumValues: true,
1795
- skipValidation: true,
1796
- breadcrumbsPrefix: ["response"],
1797
- }), _response.rawResponse);
1798
- case 404:
1799
- throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
1800
- unrecognizedObjectKeys: "passthrough",
1801
- allowUnrecognizedUnionMembers: true,
1802
- allowUnrecognizedEnumValues: true,
1803
- skipValidation: true,
1804
- breadcrumbsPrefix: ["response"],
1805
- }), _response.rawResponse);
1806
- case 500:
1807
- throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
1808
- unrecognizedObjectKeys: "passthrough",
1809
- allowUnrecognizedUnionMembers: true,
1810
- allowUnrecognizedEnumValues: true,
1811
- skipValidation: true,
1812
- breadcrumbsPrefix: ["response"],
1813
- }), _response.rawResponse);
1814
- default:
1815
- throw new errors.SchematicError({
1816
- statusCode: _response.error.statusCode,
1817
- body: _response.error.body,
1818
- rawResponse: _response.rawResponse,
1819
- });
1820
- }
1821
- }
1822
- switch (_response.error.reason) {
1823
- case "non-json":
1824
- throw new errors.SchematicError({
1825
- statusCode: _response.error.statusCode,
1826
- body: _response.error.rawBody,
1827
- rawResponse: _response.rawResponse,
1828
- });
1829
- case "timeout":
1830
- throw new errors.SchematicTimeoutError("Timeout exceeded when calling DELETE /flags/{flag_id}.");
1831
- case "unknown":
1832
- throw new errors.SchematicError({
1833
- message: _response.error.errorMessage,
1834
- rawResponse: _response.rawResponse,
1835
- });
1836
- }
1837
- });
1838
- }
1839
- /**
1840
- * @param {string} flagId - flag_id
1841
- * @param {Schematic.UpdateFlagRulesRequestBody} request
1842
- * @param {Features.RequestOptions} requestOptions - Request-specific configuration.
1843
- *
1844
- * @throws {@link Schematic.BadRequestError}
1845
- * @throws {@link Schematic.UnauthorizedError}
1846
- * @throws {@link Schematic.ForbiddenError}
1847
- * @throws {@link Schematic.NotFoundError}
1848
- * @throws {@link Schematic.InternalServerError}
1849
- *
1850
- * @example
1851
- * await client.features.updateFlagRules("flag_id", {
1852
- * rules: [{
1853
- * conditionGroups: [{
1854
- * conditions: [{
1855
- * conditionType: "company",
1856
- * operator: "eq",
1857
- * resourceIds: ["resource_ids"]
1858
- * }]
1859
- * }],
1860
- * conditions: [{
1861
- * conditionType: "company",
1862
- * operator: "eq",
1863
- * resourceIds: ["resource_ids"]
1864
- * }],
1865
- * name: "name",
1866
- * priority: 1,
1867
- * value: true
1868
- * }]
1869
- * })
1870
- */
1871
- updateFlagRules(flagId, request, requestOptions) {
1872
- return core.HttpResponsePromise.fromPromise(this.__updateFlagRules(flagId, request, requestOptions));
1873
- }
1874
- __updateFlagRules(flagId, request, requestOptions) {
1875
- return __awaiter(this, void 0, void 0, function* () {
1876
- var _a, _b, _c;
1877
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1878
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, `flags/${encodeURIComponent(flagId)}/rules`),
1879
- method: "PUT",
1880
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1881
- contentType: "application/json",
1882
- requestType: "json",
1883
- body: serializers.UpdateFlagRulesRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
1884
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1885
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1886
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1887
- });
1888
- if (_response.ok) {
1889
- return {
1890
- data: serializers.UpdateFlagRulesResponse.parseOrThrow(_response.body, {
1891
- unrecognizedObjectKeys: "passthrough",
1892
- allowUnrecognizedUnionMembers: true,
1893
- allowUnrecognizedEnumValues: true,
1894
- skipValidation: true,
1895
- breadcrumbsPrefix: ["response"],
1896
- }),
1897
- rawResponse: _response.rawResponse,
1898
- };
1899
- }
1900
- if (_response.error.reason === "status-code") {
1901
- switch (_response.error.statusCode) {
1902
- case 400:
1903
- throw new Schematic.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
1904
- unrecognizedObjectKeys: "passthrough",
1905
- allowUnrecognizedUnionMembers: true,
1906
- allowUnrecognizedEnumValues: true,
1907
- skipValidation: true,
1908
- breadcrumbsPrefix: ["response"],
1909
- }), _response.rawResponse);
1910
- case 401:
1911
- throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
1912
- unrecognizedObjectKeys: "passthrough",
1913
- allowUnrecognizedUnionMembers: true,
1914
- allowUnrecognizedEnumValues: true,
1915
- skipValidation: true,
1916
- breadcrumbsPrefix: ["response"],
1917
- }), _response.rawResponse);
1918
- case 403:
1919
- throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
1920
- unrecognizedObjectKeys: "passthrough",
1921
- allowUnrecognizedUnionMembers: true,
1922
- allowUnrecognizedEnumValues: true,
1923
- skipValidation: true,
1924
- breadcrumbsPrefix: ["response"],
1925
- }), _response.rawResponse);
1926
- case 404:
1927
- throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
1928
- unrecognizedObjectKeys: "passthrough",
1929
- allowUnrecognizedUnionMembers: true,
1930
- allowUnrecognizedEnumValues: true,
1931
- skipValidation: true,
1932
- breadcrumbsPrefix: ["response"],
1933
- }), _response.rawResponse);
1934
- case 500:
1935
- throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
1936
- unrecognizedObjectKeys: "passthrough",
1937
- allowUnrecognizedUnionMembers: true,
1938
- allowUnrecognizedEnumValues: true,
1939
- skipValidation: true,
1940
- breadcrumbsPrefix: ["response"],
1941
- }), _response.rawResponse);
1942
- default:
1943
- throw new errors.SchematicError({
1944
- statusCode: _response.error.statusCode,
1945
- body: _response.error.body,
1946
- rawResponse: _response.rawResponse,
1947
- });
1948
- }
1949
- }
1950
- switch (_response.error.reason) {
1951
- case "non-json":
1952
- throw new errors.SchematicError({
1953
- statusCode: _response.error.statusCode,
1954
- body: _response.error.rawBody,
1955
- rawResponse: _response.rawResponse,
1956
- });
1957
- case "timeout":
1958
- throw new errors.SchematicTimeoutError("Timeout exceeded when calling PUT /flags/{flag_id}/rules.");
1959
- case "unknown":
1960
- throw new errors.SchematicError({
1961
- message: _response.error.errorMessage,
1962
- rawResponse: _response.rawResponse,
1963
- });
1964
- }
1965
- });
1966
- }
1967
- /**
1968
- * @param {string} key - key
1969
- * @param {Schematic.CheckFlagRequestBody} request
1970
- * @param {Features.RequestOptions} requestOptions - Request-specific configuration.
1971
- *
1972
- * @throws {@link Schematic.BadRequestError}
1973
- * @throws {@link Schematic.UnauthorizedError}
1974
- * @throws {@link Schematic.ForbiddenError}
1975
- * @throws {@link Schematic.NotFoundError}
1976
- * @throws {@link Schematic.InternalServerError}
1977
- *
1978
- * @example
1979
- * await client.features.checkFlag("key", {})
1980
- */
1981
- checkFlag(key, request, requestOptions) {
1982
- return core.HttpResponsePromise.fromPromise(this.__checkFlag(key, request, requestOptions));
1983
- }
1984
- __checkFlag(key, request, requestOptions) {
1985
- return __awaiter(this, void 0, void 0, function* () {
1986
- var _a, _b, _c;
1987
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1988
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, `flags/${encodeURIComponent(key)}/check`),
1989
- method: "POST",
1990
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1991
- contentType: "application/json",
1992
- requestType: "json",
1993
- body: serializers.CheckFlagRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
1994
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1995
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1996
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1997
- });
1998
- if (_response.ok) {
1999
- return {
2000
- data: serializers.CheckFlagResponse.parseOrThrow(_response.body, {
2001
- unrecognizedObjectKeys: "passthrough",
2002
- allowUnrecognizedUnionMembers: true,
2003
- allowUnrecognizedEnumValues: true,
2004
- skipValidation: true,
2005
- breadcrumbsPrefix: ["response"],
2006
- }),
2007
- rawResponse: _response.rawResponse,
2008
- };
2009
- }
2010
- if (_response.error.reason === "status-code") {
2011
- switch (_response.error.statusCode) {
2012
- case 400:
2013
- throw new Schematic.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
2014
- unrecognizedObjectKeys: "passthrough",
2015
- allowUnrecognizedUnionMembers: true,
2016
- allowUnrecognizedEnumValues: true,
2017
- skipValidation: true,
2018
- breadcrumbsPrefix: ["response"],
2019
- }), _response.rawResponse);
2020
- case 401:
2021
- throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
2022
- unrecognizedObjectKeys: "passthrough",
2023
- allowUnrecognizedUnionMembers: true,
2024
- allowUnrecognizedEnumValues: true,
2025
- skipValidation: true,
2026
- breadcrumbsPrefix: ["response"],
2027
- }), _response.rawResponse);
2028
- case 403:
2029
- throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
2030
- unrecognizedObjectKeys: "passthrough",
2031
- allowUnrecognizedUnionMembers: true,
2032
- allowUnrecognizedEnumValues: true,
2033
- skipValidation: true,
2034
- breadcrumbsPrefix: ["response"],
2035
- }), _response.rawResponse);
2036
- case 404:
2037
- throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
2038
- unrecognizedObjectKeys: "passthrough",
2039
- allowUnrecognizedUnionMembers: true,
2040
- allowUnrecognizedEnumValues: true,
2041
- skipValidation: true,
2042
- breadcrumbsPrefix: ["response"],
2043
- }), _response.rawResponse);
2044
- case 500:
2045
- throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
2046
- unrecognizedObjectKeys: "passthrough",
2047
- allowUnrecognizedUnionMembers: true,
2048
- allowUnrecognizedEnumValues: true,
2049
- skipValidation: true,
2050
- breadcrumbsPrefix: ["response"],
2051
- }), _response.rawResponse);
2052
- default:
2053
- throw new errors.SchematicError({
2054
- statusCode: _response.error.statusCode,
2055
- body: _response.error.body,
2056
- rawResponse: _response.rawResponse,
2057
- });
2058
- }
2059
- }
2060
- switch (_response.error.reason) {
2061
- case "non-json":
2062
- throw new errors.SchematicError({
2063
- statusCode: _response.error.statusCode,
2064
- body: _response.error.rawBody,
2065
- rawResponse: _response.rawResponse,
2066
- });
2067
- case "timeout":
2068
- throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /flags/{key}/check.");
2069
- case "unknown":
2070
- throw new errors.SchematicError({
2071
- message: _response.error.errorMessage,
2072
- rawResponse: _response.rawResponse,
2073
- });
2074
- }
2075
- });
2076
- }
2077
- /**
2078
- * @param {Schematic.CheckFlagRequestBody} request
2079
- * @param {Features.RequestOptions} requestOptions - Request-specific configuration.
2080
- *
2081
- * @throws {@link Schematic.BadRequestError}
2082
- * @throws {@link Schematic.UnauthorizedError}
2083
- * @throws {@link Schematic.ForbiddenError}
2084
- * @throws {@link Schematic.NotFoundError}
2085
- * @throws {@link Schematic.InternalServerError}
2086
- *
2087
- * @example
2088
- * await client.features.checkFlags({})
2089
- */
2090
- checkFlags(request, requestOptions) {
2091
- return core.HttpResponsePromise.fromPromise(this.__checkFlags(request, requestOptions));
2092
- }
2093
- __checkFlags(request, requestOptions) {
2094
- return __awaiter(this, void 0, void 0, function* () {
2095
- var _a, _b, _c;
2096
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
2097
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "flags/check"),
2098
- method: "POST",
2099
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
2100
- contentType: "application/json",
2101
- requestType: "json",
2102
- body: serializers.CheckFlagRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
2103
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
2104
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
2105
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
2106
- });
2107
- if (_response.ok) {
2108
- return {
2109
- data: serializers.CheckFlagsResponse.parseOrThrow(_response.body, {
2110
- unrecognizedObjectKeys: "passthrough",
2111
- allowUnrecognizedUnionMembers: true,
2112
- allowUnrecognizedEnumValues: true,
2113
- skipValidation: true,
2114
- breadcrumbsPrefix: ["response"],
2115
- }),
2116
- rawResponse: _response.rawResponse,
2117
- };
2118
- }
2119
- if (_response.error.reason === "status-code") {
2120
- switch (_response.error.statusCode) {
2121
- case 400:
2122
- throw new Schematic.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
2123
- unrecognizedObjectKeys: "passthrough",
2124
- allowUnrecognizedUnionMembers: true,
2125
- allowUnrecognizedEnumValues: true,
2126
- skipValidation: true,
2127
- breadcrumbsPrefix: ["response"],
2128
- }), _response.rawResponse);
2129
- case 401:
2130
- throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
2131
- unrecognizedObjectKeys: "passthrough",
2132
- allowUnrecognizedUnionMembers: true,
2133
- allowUnrecognizedEnumValues: true,
2134
- skipValidation: true,
2135
- breadcrumbsPrefix: ["response"],
2136
- }), _response.rawResponse);
2137
- case 403:
2138
- throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
2139
- unrecognizedObjectKeys: "passthrough",
2140
- allowUnrecognizedUnionMembers: true,
2141
- allowUnrecognizedEnumValues: true,
2142
- skipValidation: true,
2143
- breadcrumbsPrefix: ["response"],
2144
- }), _response.rawResponse);
2145
- case 404:
2146
- throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
2147
- unrecognizedObjectKeys: "passthrough",
2148
- allowUnrecognizedUnionMembers: true,
2149
- allowUnrecognizedEnumValues: true,
2150
- skipValidation: true,
2151
- breadcrumbsPrefix: ["response"],
2152
- }), _response.rawResponse);
2153
- case 500:
2154
- throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
2155
- unrecognizedObjectKeys: "passthrough",
2156
- allowUnrecognizedUnionMembers: true,
2157
- allowUnrecognizedEnumValues: true,
2158
- skipValidation: true,
2159
- breadcrumbsPrefix: ["response"],
2160
- }), _response.rawResponse);
2161
- default:
2162
- throw new errors.SchematicError({
2163
- statusCode: _response.error.statusCode,
2164
- body: _response.error.body,
2165
- rawResponse: _response.rawResponse,
2166
- });
2167
- }
2168
- }
2169
- switch (_response.error.reason) {
2170
- case "non-json":
2171
- throw new errors.SchematicError({
2172
- statusCode: _response.error.statusCode,
2173
- body: _response.error.rawBody,
2174
- rawResponse: _response.rawResponse,
2175
- });
2176
- case "timeout":
2177
- throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /flags/check.");
2178
- case "unknown":
2179
- throw new errors.SchematicError({
2180
- message: _response.error.errorMessage,
2181
- rawResponse: _response.rawResponse,
2182
- });
2183
- }
2184
- });
2185
- }
2186
- /**
2187
- * @param {Schematic.CountFlagsRequest} request
2188
- * @param {Features.RequestOptions} requestOptions - Request-specific configuration.
2189
- *
2190
- * @throws {@link Schematic.BadRequestError}
2191
- * @throws {@link Schematic.UnauthorizedError}
2192
- * @throws {@link Schematic.ForbiddenError}
2193
- * @throws {@link Schematic.NotFoundError}
2194
- * @throws {@link Schematic.InternalServerError}
2195
- *
2196
- * @example
2197
- * await client.features.countFlags()
2198
- */
2199
- countFlags(request = {}, requestOptions) {
2200
- return core.HttpResponsePromise.fromPromise(this.__countFlags(request, requestOptions));
2201
- }
2202
- __countFlags() {
2203
- return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
2204
- var _a, _b, _c;
2205
- const { featureId, ids, q, limit, offset } = request;
2206
- const _queryParams = {};
2207
- if (featureId != null) {
2208
- _queryParams["feature_id"] = featureId;
2209
- }
2210
- if (ids != null) {
2211
- if (Array.isArray(ids)) {
2212
- _queryParams["ids"] = ids.map((item) => item);
2213
- }
2214
- else {
2215
- _queryParams["ids"] = ids;
2216
- }
2217
- }
2218
- if (q != null) {
2219
- _queryParams["q"] = q;
2220
- }
2221
- if (limit != null) {
2222
- _queryParams["limit"] = limit.toString();
2223
- }
2224
- if (offset != null) {
2225
- _queryParams["offset"] = offset.toString();
2226
- }
2227
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
2228
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "flags/count"),
2229
- method: "GET",
2230
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
2231
- contentType: "application/json",
2232
- queryParameters: _queryParams,
2233
- requestType: "json",
2234
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
2235
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
2236
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
2237
- });
2238
- if (_response.ok) {
2239
- return {
2240
- data: serializers.CountFlagsResponse.parseOrThrow(_response.body, {
2241
- unrecognizedObjectKeys: "passthrough",
2242
- allowUnrecognizedUnionMembers: true,
2243
- allowUnrecognizedEnumValues: true,
2244
- skipValidation: true,
2245
- breadcrumbsPrefix: ["response"],
2246
- }),
2247
- rawResponse: _response.rawResponse,
2248
- };
2249
- }
2250
- if (_response.error.reason === "status-code") {
2251
- switch (_response.error.statusCode) {
2252
- case 400:
2253
- throw new Schematic.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
2254
- unrecognizedObjectKeys: "passthrough",
2255
- allowUnrecognizedUnionMembers: true,
2256
- allowUnrecognizedEnumValues: true,
2257
- skipValidation: true,
2258
- breadcrumbsPrefix: ["response"],
2259
- }), _response.rawResponse);
2260
- case 401:
2261
- throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
2262
- unrecognizedObjectKeys: "passthrough",
2263
- allowUnrecognizedUnionMembers: true,
2264
- allowUnrecognizedEnumValues: true,
2265
- skipValidation: true,
2266
- breadcrumbsPrefix: ["response"],
2267
- }), _response.rawResponse);
2268
- case 403:
2269
- throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
2270
- unrecognizedObjectKeys: "passthrough",
2271
- allowUnrecognizedUnionMembers: true,
2272
- allowUnrecognizedEnumValues: true,
2273
- skipValidation: true,
2274
- breadcrumbsPrefix: ["response"],
2275
- }), _response.rawResponse);
2276
- case 404:
2277
- throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
2278
- unrecognizedObjectKeys: "passthrough",
2279
- allowUnrecognizedUnionMembers: true,
2280
- allowUnrecognizedEnumValues: true,
2281
- skipValidation: true,
2282
- breadcrumbsPrefix: ["response"],
2283
- }), _response.rawResponse);
2284
- case 500:
2285
- throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
2286
- unrecognizedObjectKeys: "passthrough",
2287
- allowUnrecognizedUnionMembers: true,
2288
- allowUnrecognizedEnumValues: true,
2289
- skipValidation: true,
2290
- breadcrumbsPrefix: ["response"],
2291
- }), _response.rawResponse);
2292
- default:
2293
- throw new errors.SchematicError({
2294
- statusCode: _response.error.statusCode,
2295
- body: _response.error.body,
2296
- rawResponse: _response.rawResponse,
2297
- });
2298
- }
2299
- }
2300
- switch (_response.error.reason) {
2301
- case "non-json":
2302
- throw new errors.SchematicError({
2303
- statusCode: _response.error.statusCode,
2304
- body: _response.error.rawBody,
2305
- rawResponse: _response.rawResponse,
2306
- });
2307
- case "timeout":
2308
- throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /flags/count.");
2309
- case "unknown":
2310
- throw new errors.SchematicError({
2311
- message: _response.error.errorMessage,
2312
- rawResponse: _response.rawResponse,
2313
- });
2314
- }
2315
- });
2316
- }
2317
- _getCustomAuthorizationHeaders() {
2318
- return __awaiter(this, void 0, void 0, function* () {
2319
- const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
2320
- return { "X-Schematic-Api-Key": apiKeyValue };
2321
- });
2322
- }
2323
- }
2324
- exports.Features = Features;