vayu-ts 0.2.15 → 0.3.7

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 (334) hide show
  1. package/dist/example/index.d.ts +1 -0
  2. package/dist/example/index.js +74 -0
  3. package/dist/openapi/apis/AuthApi.js +8 -4
  4. package/dist/openapi/apis/CatalogProductsApi.d.ts +89 -0
  5. package/dist/openapi/apis/CatalogProductsApi.js +377 -0
  6. package/dist/openapi/apis/CloudUsageSubmissionApi.d.ts +25 -0
  7. package/dist/openapi/apis/CloudUsageSubmissionApi.js +89 -0
  8. package/dist/openapi/apis/ContractsApi.d.ts +21 -3
  9. package/dist/openapi/apis/ContractsApi.js +119 -21
  10. package/dist/openapi/apis/CreditsApi.js +24 -12
  11. package/dist/openapi/apis/CustomFieldsApi.d.ts +89 -0
  12. package/dist/openapi/apis/CustomFieldsApi.js +377 -0
  13. package/dist/openapi/apis/CustomersApi.d.ts +63 -0
  14. package/dist/openapi/apis/CustomersApi.js +360 -38
  15. package/dist/openapi/apis/EventsApi.d.ts +132 -1
  16. package/dist/openapi/apis/EventsApi.js +660 -25
  17. package/dist/openapi/apis/InvoicesApi.d.ts +19 -3
  18. package/dist/openapi/apis/InvoicesApi.js +91 -12
  19. package/dist/openapi/apis/MeasurementsApi.js +36 -18
  20. package/dist/openapi/apis/MetersApi.js +38 -19
  21. package/dist/openapi/apis/PlansApi.d.ts +56 -0
  22. package/dist/openapi/apis/PlansApi.js +225 -0
  23. package/dist/openapi/apis/ProductConsumptionsApi.js +10 -5
  24. package/dist/openapi/apis/WebhooksApi.js +10 -5
  25. package/dist/openapi/http/http.d.ts +6 -18
  26. package/dist/openapi/http/http.js +25 -13
  27. package/dist/openapi/http/isomorphic-fetch.d.ts +1 -0
  28. package/dist/openapi/http/isomorphic-fetch.js +4 -7
  29. package/dist/openapi/index.d.ts +1 -1
  30. package/dist/openapi/index.js +5 -1
  31. package/dist/openapi/models/Address.d.ts +5 -5
  32. package/dist/openapi/models/BillingInterval.d.ts +18 -0
  33. package/dist/openapi/models/BillingInterval.js +22 -0
  34. package/dist/openapi/models/CloudUsageResult.d.ts +83 -0
  35. package/dist/openapi/models/CloudUsageResult.js +103 -0
  36. package/dist/openapi/models/ConflictErrorResponse.d.ts +42 -0
  37. package/dist/openapi/models/ConflictErrorResponse.js +52 -0
  38. package/dist/openapi/models/Contact.d.ts +3 -1
  39. package/dist/openapi/models/Contact.js +13 -1
  40. package/dist/openapi/models/ContractStatus.d.ts +23 -0
  41. package/dist/openapi/models/ContractStatus.js +27 -0
  42. package/dist/openapi/models/CreateCatalogProductRequest.d.ts +42 -0
  43. package/dist/openapi/models/CreateCatalogProductRequest.js +44 -0
  44. package/dist/openapi/models/CreateCatalogProductResponse.d.ts +32 -0
  45. package/dist/openapi/models/CreateCatalogProductResponse.js +32 -0
  46. package/dist/openapi/models/CreateCatalogProductResponseCatalogProduct.d.ts +45 -0
  47. package/dist/openapi/models/CreateCatalogProductResponseCatalogProduct.js +62 -0
  48. package/dist/openapi/models/CreateContractRequest.d.ts +53 -5
  49. package/dist/openapi/models/CreateContractRequest.js +76 -4
  50. package/dist/openapi/models/CreateCustomFieldRequest.d.ts +71 -0
  51. package/dist/openapi/models/CreateCustomFieldRequest.js +90 -0
  52. package/dist/openapi/models/CreateCustomFieldResponse.d.ts +32 -0
  53. package/dist/openapi/models/CreateCustomFieldResponse.js +32 -0
  54. package/dist/openapi/models/CreateCustomFieldResponseCustomField.d.ts +74 -0
  55. package/dist/openapi/models/CreateCustomFieldResponseCustomField.js +108 -0
  56. package/dist/openapi/models/CreateCustomerRelationRequest.d.ts +38 -0
  57. package/dist/openapi/models/CreateCustomerRelationRequest.js +38 -0
  58. package/dist/openapi/models/CreateCustomerRelationResponse.d.ts +32 -0
  59. package/dist/openapi/models/CreateCustomerRelationResponse.js +32 -0
  60. package/dist/openapi/models/CreateCustomerRelationResponseCustomerRelation.d.ts +41 -0
  61. package/dist/openapi/models/CreateCustomerRelationResponseCustomerRelation.js +56 -0
  62. package/dist/openapi/models/CreateCustomerRequest.d.ts +70 -2
  63. package/dist/openapi/models/CreateCustomerRequest.js +112 -6
  64. package/dist/openapi/models/CreateCustomerResponseCustomer.d.ts +70 -2
  65. package/dist/openapi/models/CreateCustomerResponseCustomer.js +112 -6
  66. package/dist/openapi/models/CreditLedgerEntry.d.ts +3 -1
  67. package/dist/openapi/models/CreditLedgerEntry.js +8 -2
  68. package/dist/openapi/models/Currency.d.ts +24 -0
  69. package/dist/openapi/models/Currency.js +28 -0
  70. package/dist/openapi/models/CustomField.d.ts +65 -0
  71. package/dist/openapi/models/CustomField.js +78 -0
  72. package/dist/openapi/models/CustomFieldEntities.d.ts +20 -0
  73. package/dist/openapi/models/CustomFieldEntities.js +24 -0
  74. package/dist/openapi/models/CustomFieldValue.d.ts +33 -0
  75. package/dist/openapi/models/CustomFieldValue.js +44 -0
  76. package/dist/openapi/models/CustomFieldValueTypes.d.ts +20 -0
  77. package/dist/openapi/models/CustomFieldValueTypes.js +24 -0
  78. package/dist/openapi/models/CustomerCloudProviderSettings.d.ts +39 -0
  79. package/dist/openapi/models/CustomerCloudProviderSettings.js +51 -0
  80. package/dist/openapi/models/CustomerSource.d.ts +21 -0
  81. package/dist/openapi/models/CustomerSource.js +25 -0
  82. package/dist/openapi/models/DeleteCatalogProductResponse.d.ts +32 -0
  83. package/dist/openapi/models/DeleteCatalogProductResponse.js +32 -0
  84. package/dist/openapi/models/DeleteCatalogProductResponseCatalogProduct.d.ts +46 -0
  85. package/dist/openapi/models/DeleteCatalogProductResponseCatalogProduct.js +68 -0
  86. package/dist/openapi/models/DeleteContractResponseContract.d.ts +53 -5
  87. package/dist/openapi/models/DeleteContractResponseContract.js +76 -4
  88. package/dist/openapi/models/DeleteCustomFieldResponse.d.ts +32 -0
  89. package/dist/openapi/models/DeleteCustomFieldResponse.js +32 -0
  90. package/dist/openapi/models/DeleteCustomFieldResponseCustomField.d.ts +75 -0
  91. package/dist/openapi/models/DeleteCustomFieldResponseCustomField.js +114 -0
  92. package/dist/openapi/models/DeleteCustomerResponseCustomer.d.ts +70 -2
  93. package/dist/openapi/models/DeleteCustomerResponseCustomer.js +112 -6
  94. package/dist/openapi/models/DeleteEventsByRefsRequest.d.ts +31 -0
  95. package/dist/openapi/models/DeleteEventsByRefsRequest.js +32 -0
  96. package/dist/openapi/models/DeleteEventsByRefsResponse.d.ts +35 -0
  97. package/dist/openapi/models/DeleteEventsByRefsResponse.js +32 -0
  98. package/dist/openapi/models/DeleteEventsByRefsResponseEventsInner.d.ts +56 -0
  99. package/dist/openapi/models/DeleteEventsByRefsResponseEventsInner.js +80 -0
  100. package/dist/openapi/models/DeletePlanResponse.d.ts +32 -0
  101. package/dist/openapi/models/DeletePlanResponse.js +32 -0
  102. package/dist/openapi/models/DeletePlanResponsePlan.d.ts +42 -0
  103. package/dist/openapi/models/DeletePlanResponsePlan.js +68 -0
  104. package/dist/openapi/models/EventsDryRunResponseObjectMeterWithValuesInner.d.ts +1 -1
  105. package/dist/openapi/models/ExternalOverageStrategy.d.ts +20 -0
  106. package/dist/openapi/models/ExternalOverageStrategy.js +24 -0
  107. package/dist/openapi/models/GetCatalogProductResponse.d.ts +32 -0
  108. package/dist/openapi/models/GetCatalogProductResponse.js +32 -0
  109. package/dist/openapi/models/GetContractByIntegrationIdResponse.d.ts +32 -0
  110. package/dist/openapi/models/GetContractByIntegrationIdResponse.js +32 -0
  111. package/dist/openapi/models/GetContractResponseContract.d.ts +53 -5
  112. package/dist/openapi/models/GetContractResponseContract.js +76 -4
  113. package/dist/openapi/models/GetCustomFieldResponse.d.ts +32 -0
  114. package/dist/openapi/models/GetCustomFieldResponse.js +32 -0
  115. package/dist/openapi/models/GetCustomerByIntegrationIdResponse.d.ts +32 -0
  116. package/dist/openapi/models/GetCustomerByIntegrationIdResponse.js +32 -0
  117. package/dist/openapi/models/GetCustomerByNameResponse.d.ts +32 -0
  118. package/dist/openapi/models/GetCustomerByNameResponse.js +32 -0
  119. package/dist/openapi/models/GetCustomerByNameResponseCustomer.d.ts +123 -0
  120. package/dist/openapi/models/GetCustomerByNameResponseCustomer.js +183 -0
  121. package/dist/openapi/models/GetCustomerRelationResponse.d.ts +32 -0
  122. package/dist/openapi/models/GetCustomerRelationResponse.js +32 -0
  123. package/dist/openapi/models/GetInvoiceResponseInvoice.d.ts +14 -0
  124. package/dist/openapi/models/GetInvoiceResponseInvoice.js +30 -0
  125. package/dist/openapi/models/GetInvoiceResponseInvoiceRevenueBreakdown.d.ts +39 -0
  126. package/dist/openapi/models/GetInvoiceResponseInvoiceRevenueBreakdown.js +65 -0
  127. package/dist/openapi/models/GetPlanResponse.d.ts +32 -0
  128. package/dist/openapi/models/GetPlanResponse.js +32 -0
  129. package/dist/openapi/models/GetPlanResponsePlan.d.ts +41 -0
  130. package/dist/openapi/models/GetPlanResponsePlan.js +62 -0
  131. package/dist/openapi/models/IntegrationEntity.d.ts +42 -0
  132. package/dist/openapi/models/IntegrationEntity.js +62 -0
  133. package/dist/openapi/models/IntegrationEntityTypes.d.ts +23 -0
  134. package/dist/openapi/models/IntegrationEntityTypes.js +27 -0
  135. package/dist/openapi/models/IntegrationProviders.d.ts +26 -0
  136. package/dist/openapi/models/IntegrationProviders.js +30 -0
  137. package/dist/openapi/models/IntegrationType.d.ts +26 -0
  138. package/dist/openapi/models/IntegrationType.js +30 -0
  139. package/dist/openapi/models/InternalServerErrorResponse.d.ts +42 -0
  140. package/dist/openapi/models/InternalServerErrorResponse.js +52 -0
  141. package/dist/openapi/models/InvoiceBillingStatus.d.ts +21 -0
  142. package/dist/openapi/models/InvoiceBillingStatus.js +25 -0
  143. package/dist/openapi/models/InvoicePaymentStatusResponse.d.ts +39 -0
  144. package/dist/openapi/models/InvoicePaymentStatusResponse.js +74 -0
  145. package/dist/openapi/models/ListCatalogProductsResponse.d.ts +35 -0
  146. package/dist/openapi/models/ListCatalogProductsResponse.js +50 -0
  147. package/dist/openapi/models/ListCustomFieldsResponse.d.ts +35 -0
  148. package/dist/openapi/models/ListCustomFieldsResponse.js +50 -0
  149. package/dist/openapi/models/ListPlansResponse.d.ts +35 -0
  150. package/dist/openapi/models/ListPlansResponse.js +50 -0
  151. package/dist/openapi/models/NotFoundErrorResponse.d.ts +42 -0
  152. package/dist/openapi/models/NotFoundErrorResponse.js +52 -0
  153. package/dist/openapi/models/NotificationEventType.d.ts +7 -1
  154. package/dist/openapi/models/NotificationEventType.js +6 -0
  155. package/dist/openapi/models/ObjectSerializer.d.ts +112 -0
  156. package/dist/openapi/models/ObjectSerializer.js +367 -0
  157. package/dist/openapi/models/PartnerSubmissionDetail.d.ts +46 -0
  158. package/dist/openapi/models/PartnerSubmissionDetail.js +49 -0
  159. package/dist/openapi/models/PaymentInfo.d.ts +45 -0
  160. package/dist/openapi/models/PaymentInfo.js +89 -0
  161. package/dist/openapi/models/PaymentInfoDepositTo.d.ts +32 -0
  162. package/dist/openapi/models/PaymentInfoDepositTo.js +38 -0
  163. package/dist/openapi/models/PaymentTerm.d.ts +18 -0
  164. package/dist/openapi/models/PaymentTerm.js +22 -0
  165. package/dist/openapi/models/PlanBillingData.d.ts +41 -0
  166. package/dist/openapi/models/PlanBillingData.js +59 -0
  167. package/dist/openapi/models/PlanDuration.d.ts +30 -0
  168. package/dist/openapi/models/PlanDuration.js +25 -0
  169. package/dist/openapi/models/PlanStatus.d.ts +19 -0
  170. package/dist/openapi/models/PlanStatus.js +23 -0
  171. package/dist/openapi/models/ProductCloudProviderSettings.d.ts +39 -0
  172. package/dist/openapi/models/ProductCloudProviderSettings.js +51 -0
  173. package/dist/openapi/models/ProductGroup.d.ts +65 -0
  174. package/dist/openapi/models/ProductGroup.js +80 -0
  175. package/dist/openapi/models/ProductGroupCommitment.d.ts +53 -0
  176. package/dist/openapi/models/ProductGroupCommitment.js +64 -0
  177. package/dist/openapi/models/ProductGroupProductsInner.d.ts +68 -0
  178. package/dist/openapi/models/ProductGroupProductsInner.js +98 -0
  179. package/dist/openapi/models/ProductGroupProductsInnerCommitment.d.ts +53 -0
  180. package/dist/openapi/models/ProductGroupProductsInnerCommitment.js +64 -0
  181. package/dist/openapi/models/ProductGroupProductsInnerCommitmentScheduling.d.ts +39 -0
  182. package/dist/openapi/models/ProductGroupProductsInnerCommitmentScheduling.js +41 -0
  183. package/dist/openapi/models/ProductGroupProductsInnerCommitmentSchedulingDuration.d.ts +41 -0
  184. package/dist/openapi/models/ProductGroupProductsInnerCommitmentSchedulingDuration.js +48 -0
  185. package/dist/openapi/models/ProductGroupProductsInnerPricing.d.ts +38 -0
  186. package/dist/openapi/models/ProductGroupProductsInnerPricing.js +24 -0
  187. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf.d.ts +41 -0
  188. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf.js +54 -0
  189. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1.d.ts +39 -0
  190. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1.js +54 -0
  191. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1InstallmentsInner.d.ts +32 -0
  192. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1InstallmentsInner.js +38 -0
  193. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2.d.ts +39 -0
  194. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2.js +54 -0
  195. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2SubscriptionCadence.d.ts +38 -0
  196. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2SubscriptionCadence.js +45 -0
  197. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3.d.ts +46 -0
  198. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3.js +78 -0
  199. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3SubscriptionCadence.d.ts +38 -0
  200. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3SubscriptionCadence.js +45 -0
  201. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3TiersInner.d.ts +35 -0
  202. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3TiersInner.js +56 -0
  203. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf4.d.ts +41 -0
  204. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf4.js +60 -0
  205. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf5.d.ts +42 -0
  206. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf5.js +48 -0
  207. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf6.d.ts +42 -0
  208. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf6.js +48 -0
  209. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOfDiscount.d.ts +53 -0
  210. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOfDiscount.js +58 -0
  211. package/dist/openapi/models/ProductGroupProductsInnerScheduling.d.ts +39 -0
  212. package/dist/openapi/models/ProductGroupProductsInnerScheduling.js +41 -0
  213. package/dist/openapi/models/ProductGroupProductsInnerSchedulingDuration.d.ts +41 -0
  214. package/dist/openapi/models/ProductGroupProductsInnerSchedulingDuration.js +48 -0
  215. package/dist/openapi/models/QueryEventsResponse.d.ts +3 -3
  216. package/dist/openapi/models/QueryEventsResponse.js +18 -0
  217. package/dist/openapi/models/RateLimitErrorResponse.d.ts +42 -0
  218. package/dist/openapi/models/RateLimitErrorResponse.js +52 -0
  219. package/dist/openapi/models/RequestTooLongErrorResponse.d.ts +42 -0
  220. package/dist/openapi/models/RequestTooLongErrorResponse.js +52 -0
  221. package/dist/openapi/models/SubmitCloudUsageRequest.d.ts +39 -0
  222. package/dist/openapi/models/SubmitCloudUsageRequest.js +38 -0
  223. package/dist/openapi/models/SyncStatus.d.ts +16 -0
  224. package/dist/openapi/models/SyncStatus.js +20 -0
  225. package/dist/openapi/models/UnauthorizedErrorResponse.d.ts +42 -0
  226. package/dist/openapi/models/UnauthorizedErrorResponse.js +52 -0
  227. package/dist/openapi/models/UnlimitedDuration.d.ts +14 -0
  228. package/dist/openapi/models/UnlimitedDuration.js +18 -0
  229. package/dist/openapi/models/UpdateCatalogProductRequest.d.ts +42 -0
  230. package/dist/openapi/models/UpdateCatalogProductRequest.js +44 -0
  231. package/dist/openapi/models/UpdateCatalogProductResponse.d.ts +32 -0
  232. package/dist/openapi/models/UpdateCatalogProductResponse.js +32 -0
  233. package/dist/openapi/models/UpdateCustomFieldRequest.d.ts +71 -0
  234. package/dist/openapi/models/UpdateCustomFieldRequest.js +90 -0
  235. package/dist/openapi/models/UpdateCustomFieldResponse.d.ts +32 -0
  236. package/dist/openapi/models/UpdateCustomFieldResponse.js +32 -0
  237. package/dist/openapi/models/UpdateCustomerRequest.d.ts +70 -2
  238. package/dist/openapi/models/UpdateCustomerRequest.js +112 -6
  239. package/dist/openapi/models/UsageWindow.d.ts +41 -0
  240. package/dist/openapi/models/UsageWindow.js +41 -0
  241. package/dist/openapi/models/V2DeleteEventResponse.d.ts +32 -0
  242. package/dist/openapi/models/V2DeleteEventResponse.js +32 -0
  243. package/dist/openapi/models/V2DeleteEventsByRefsRequest.d.ts +31 -0
  244. package/dist/openapi/models/V2DeleteEventsByRefsRequest.js +32 -0
  245. package/dist/openapi/models/V2DeleteEventsByRefsResponse.d.ts +35 -0
  246. package/dist/openapi/models/V2DeleteEventsByRefsResponse.js +32 -0
  247. package/dist/openapi/models/V2EventsDryRunRequest.d.ts +32 -0
  248. package/dist/openapi/models/V2EventsDryRunRequest.js +32 -0
  249. package/dist/openapi/models/V2EventsDryRunResponse.d.ts +32 -0
  250. package/dist/openapi/models/V2EventsDryRunResponse.js +32 -0
  251. package/dist/openapi/models/V2GetEventResponse.d.ts +32 -0
  252. package/dist/openapi/models/V2GetEventResponse.js +32 -0
  253. package/dist/openapi/models/V2QueryEventsAggregationRequest.d.ts +45 -0
  254. package/dist/openapi/models/V2QueryEventsAggregationRequest.js +70 -0
  255. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInner.d.ts +39 -0
  256. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInner.js +62 -0
  257. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerAggregation.d.ts +35 -0
  258. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerAggregation.js +44 -0
  259. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerAggregationFieldArithmetic.d.ts +38 -0
  260. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerAggregationFieldArithmetic.js +45 -0
  261. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerFiltersInner.d.ts +43 -0
  262. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerFiltersInner.js +54 -0
  263. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerFiltersInnerValue.d.ts +30 -0
  264. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerFiltersInnerValue.js +25 -0
  265. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerSqlFullQuery.d.ts +34 -0
  266. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerSqlFullQuery.js +38 -0
  267. package/dist/openapi/models/V2QueryEventsAggregationRequestPeriod.d.ts +32 -0
  268. package/dist/openapi/models/V2QueryEventsAggregationRequestPeriod.js +38 -0
  269. package/dist/openapi/models/V2QueryEventsAggregationResponse.d.ts +42 -0
  270. package/dist/openapi/models/V2QueryEventsAggregationResponse.js +52 -0
  271. package/dist/openapi/models/V2QueryEventsAggregationResponseDataPointsInner.d.ts +34 -0
  272. package/dist/openapi/models/V2QueryEventsAggregationResponseDataPointsInner.js +38 -0
  273. package/dist/openapi/models/V2QueryEventsResponse.d.ts +35 -0
  274. package/dist/openapi/models/V2QueryEventsResponse.js +50 -0
  275. package/dist/openapi/models/V2SendEventsRequest.d.ts +32 -0
  276. package/dist/openapi/models/V2SendEventsRequest.js +32 -0
  277. package/dist/openapi/models/V2SendEventsResponse.d.ts +40 -0
  278. package/dist/openapi/models/V2SendEventsResponse.js +38 -0
  279. package/dist/openapi/models/ValidationErrorResponse.d.ts +51 -0
  280. package/dist/openapi/models/ValidationErrorResponse.js +60 -0
  281. package/dist/openapi/models/ValidationErrorResponseParamsInner.d.ts +38 -0
  282. package/dist/openapi/models/ValidationErrorResponseParamsInner.js +38 -0
  283. package/dist/openapi/models/WebhookSubscribeRequest.d.ts +1 -0
  284. package/dist/openapi/models/WebhookSubscribeRequest.js +6 -0
  285. package/dist/openapi/models/all.d.ts +112 -0
  286. package/dist/openapi/models/all.js +112 -0
  287. package/dist/openapi/types/ObservableAPI.d.ts +447 -14
  288. package/dist/openapi/types/ObservableAPI.js +907 -29
  289. package/dist/openapi/types/PromiseAPI.d.ts +439 -14
  290. package/dist/openapi/types/PromiseAPI.js +600 -38
  291. package/dist/sdk/clients/CatalogProductsClient.d.ts +11 -0
  292. package/dist/sdk/clients/CatalogProductsClient.js +28 -0
  293. package/dist/sdk/clients/CloudUsageSubmissionClient.d.ts +6 -0
  294. package/dist/sdk/clients/CloudUsageSubmissionClient.js +14 -0
  295. package/dist/sdk/clients/ContractsClient.d.ts +2 -1
  296. package/dist/sdk/clients/ContractsClient.js +3 -0
  297. package/dist/sdk/clients/CreditsClient.d.ts +9 -0
  298. package/dist/sdk/clients/CreditsClient.js +22 -0
  299. package/dist/sdk/clients/CustomersClient.d.ts +5 -1
  300. package/dist/sdk/clients/CustomersClient.js +12 -0
  301. package/dist/sdk/clients/EventsClient.d.ts +2 -1
  302. package/dist/sdk/clients/EventsClient.js +4 -1
  303. package/dist/sdk/clients/InvoicesClient.d.ts +1 -0
  304. package/dist/sdk/clients/InvoicesClient.js +3 -0
  305. package/dist/sdk/clients/MeasurementsClient.d.ts +10 -0
  306. package/dist/sdk/clients/MeasurementsClient.js +25 -0
  307. package/dist/sdk/clients/WebhooksClient.d.ts +2 -0
  308. package/dist/sdk/clients/WebhooksClient.js +14 -0
  309. package/dist/sdk/clients/index.d.ts +4 -0
  310. package/dist/sdk/clients/index.js +4 -0
  311. package/dist/sdk/index.d.ts +6 -1
  312. package/dist/sdk/index.js +13 -0
  313. package/dist/sdk/services/authenticated-http-library.d.ts +11 -0
  314. package/dist/sdk/services/authenticated-http-library.js +29 -0
  315. package/dist/sdk/services/authenticator.d.ts +11 -0
  316. package/dist/sdk/services/authenticator.js +57 -0
  317. package/dist/sdk/services/configuration.service.d.ts +7 -6
  318. package/dist/sdk/services/configuration.service.js +12 -44
  319. package/dist/sdk/types/CatalogProducts.d.ts +1 -0
  320. package/dist/sdk/types/CatalogProducts.js +2 -0
  321. package/dist/sdk/types/CloudUsageSubmission.d.ts +1 -0
  322. package/dist/sdk/types/CloudUsageSubmission.js +2 -0
  323. package/dist/sdk/types/Contracts.d.ts +1 -1
  324. package/dist/sdk/types/Credits.d.ts +1 -0
  325. package/dist/sdk/types/Credits.js +2 -0
  326. package/dist/sdk/types/Customers.d.ts +1 -1
  327. package/dist/sdk/types/Events.d.ts +1 -1
  328. package/dist/sdk/types/Invoices.d.ts +1 -1
  329. package/dist/sdk/types/Measurements.d.ts +1 -0
  330. package/dist/sdk/types/Measurements.js +2 -0
  331. package/dist/sdk/types/index.d.ts +4 -0
  332. package/dist/sdk/types/index.js +4 -0
  333. package/dist/sdk-v2/services/configuration.service.js +16 -8
  334. package/package.json +3 -4
@@ -1,44 +1,83 @@
1
1
  import { HttpInfo } from '../http/http';
2
2
  import { Configuration } from '../configuration';
3
+ import { CreateCatalogProductRequest } from '../models/CreateCatalogProductRequest';
4
+ import { CreateCatalogProductResponse } from '../models/CreateCatalogProductResponse';
3
5
  import { CreateContractRequest } from '../models/CreateContractRequest';
4
6
  import { CreateContractResponse } from '../models/CreateContractResponse';
7
+ import { CreateCustomFieldRequest } from '../models/CreateCustomFieldRequest';
8
+ import { CreateCustomFieldResponse } from '../models/CreateCustomFieldResponse';
9
+ import { CreateCustomerRelationRequest } from '../models/CreateCustomerRelationRequest';
10
+ import { CreateCustomerRelationResponse } from '../models/CreateCustomerRelationResponse';
5
11
  import { CreateCustomerRequest } from '../models/CreateCustomerRequest';
6
12
  import { CreateCustomerResponse } from '../models/CreateCustomerResponse';
7
13
  import { CreateMeasurementRequest } from '../models/CreateMeasurementRequest';
8
14
  import { CreateMeasurementResponse } from '../models/CreateMeasurementResponse';
9
15
  import { DeductCreditsRequest } from '../models/DeductCreditsRequest';
16
+ import { DeleteCatalogProductResponse } from '../models/DeleteCatalogProductResponse';
10
17
  import { DeleteContractResponse } from '../models/DeleteContractResponse';
18
+ import { DeleteCustomFieldResponse } from '../models/DeleteCustomFieldResponse';
11
19
  import { DeleteCustomerResponse } from '../models/DeleteCustomerResponse';
12
20
  import { DeleteEventResponse } from '../models/DeleteEventResponse';
21
+ import { DeleteEventsByRefsRequest } from '../models/DeleteEventsByRefsRequest';
22
+ import { DeleteEventsByRefsResponse } from '../models/DeleteEventsByRefsResponse';
13
23
  import { DeleteMeasurementResponse } from '../models/DeleteMeasurementResponse';
14
24
  import { DeleteMeterResponse } from '../models/DeleteMeterResponse';
25
+ import { DeletePlanResponse } from '../models/DeletePlanResponse';
15
26
  import { EventsDryRunRequest } from '../models/EventsDryRunRequest';
16
27
  import { EventsDryRunResponse } from '../models/EventsDryRunResponse';
28
+ import { GetCatalogProductResponse } from '../models/GetCatalogProductResponse';
29
+ import { GetContractByIntegrationIdResponse } from '../models/GetContractByIntegrationIdResponse';
17
30
  import { GetContractResponse } from '../models/GetContractResponse';
31
+ import { GetCustomFieldResponse } from '../models/GetCustomFieldResponse';
32
+ import { GetCustomerByIntegrationIdResponse } from '../models/GetCustomerByIntegrationIdResponse';
33
+ import { GetCustomerByNameResponse } from '../models/GetCustomerByNameResponse';
18
34
  import { GetCustomerProductsConsumptionsByAliasResponse } from '../models/GetCustomerProductsConsumptionsByAliasResponse';
19
35
  import { GetCustomerProductsConsumptionsResponse } from '../models/GetCustomerProductsConsumptionsResponse';
36
+ import { GetCustomerRelationResponse } from '../models/GetCustomerRelationResponse';
20
37
  import { GetCustomerResponse } from '../models/GetCustomerResponse';
21
38
  import { GetEventResponse } from '../models/GetEventResponse';
22
39
  import { GetInvoiceResponse } from '../models/GetInvoiceResponse';
23
40
  import { GetMeasurementResponse } from '../models/GetMeasurementResponse';
24
41
  import { GetMeterResponse } from '../models/GetMeterResponse';
42
+ import { GetPlanResponse } from '../models/GetPlanResponse';
25
43
  import { GetProductConsumptionResponse } from '../models/GetProductConsumptionResponse';
26
44
  import { GrantCreditsRequest } from '../models/GrantCreditsRequest';
45
+ import { IntegrationType } from '../models/IntegrationType';
46
+ import { InvoicePaymentStatusResponse } from '../models/InvoicePaymentStatusResponse';
47
+ import { ListCatalogProductsResponse } from '../models/ListCatalogProductsResponse';
27
48
  import { ListContractsResponse } from '../models/ListContractsResponse';
28
49
  import { ListCreditLedgerEntriesResponse } from '../models/ListCreditLedgerEntriesResponse';
50
+ import { ListCustomFieldsResponse } from '../models/ListCustomFieldsResponse';
29
51
  import { ListCustomersResponse } from '../models/ListCustomersResponse';
30
52
  import { ListInvoicesResponse } from '../models/ListInvoicesResponse';
31
53
  import { ListMeasurementsResponse } from '../models/ListMeasurementsResponse';
32
54
  import { ListMetersResponse } from '../models/ListMetersResponse';
55
+ import { ListPlansResponse } from '../models/ListPlansResponse';
33
56
  import { LoginRequest } from '../models/LoginRequest';
34
57
  import { LoginResponse } from '../models/LoginResponse';
35
58
  import { QueryEventsResponse } from '../models/QueryEventsResponse';
36
59
  import { SendEventsRequest } from '../models/SendEventsRequest';
37
60
  import { SendEventsResponse } from '../models/SendEventsResponse';
61
+ import { SubmitCloudUsageRequest } from '../models/SubmitCloudUsageRequest';
62
+ import { UpdateCatalogProductRequest } from '../models/UpdateCatalogProductRequest';
63
+ import { UpdateCatalogProductResponse } from '../models/UpdateCatalogProductResponse';
64
+ import { UpdateCustomFieldRequest } from '../models/UpdateCustomFieldRequest';
65
+ import { UpdateCustomFieldResponse } from '../models/UpdateCustomFieldResponse';
38
66
  import { UpdateCustomerRequest } from '../models/UpdateCustomerRequest';
39
67
  import { UpdateCustomerResponse } from '../models/UpdateCustomerResponse';
40
68
  import { UpdateMeterRequest } from '../models/UpdateMeterRequest';
41
69
  import { UpdateMeterResponse } from '../models/UpdateMeterResponse';
70
+ import { V2DeleteEventResponse } from '../models/V2DeleteEventResponse';
71
+ import { V2DeleteEventsByRefsRequest } from '../models/V2DeleteEventsByRefsRequest';
72
+ import { V2DeleteEventsByRefsResponse } from '../models/V2DeleteEventsByRefsResponse';
73
+ import { V2EventsDryRunRequest } from '../models/V2EventsDryRunRequest';
74
+ import { V2EventsDryRunResponse } from '../models/V2EventsDryRunResponse';
75
+ import { V2GetEventResponse } from '../models/V2GetEventResponse';
76
+ import { V2QueryEventsAggregationRequest } from '../models/V2QueryEventsAggregationRequest';
77
+ import { V2QueryEventsAggregationResponse } from '../models/V2QueryEventsAggregationResponse';
78
+ import { V2QueryEventsResponse } from '../models/V2QueryEventsResponse';
79
+ import { V2SendEventsRequest } from '../models/V2SendEventsRequest';
80
+ import { V2SendEventsResponse } from '../models/V2SendEventsResponse';
42
81
  import { WebhookSubscribeRequest } from '../models/WebhookSubscribeRequest';
43
82
  import { AuthApiRequestFactory, AuthApiResponseProcessor } from "../apis/AuthApi";
44
83
  export declare class PromiseAuthApi {
@@ -57,6 +96,92 @@ export declare class PromiseAuthApi {
57
96
  */
58
97
  login(loginRequest: LoginRequest, _options?: Configuration): Promise<LoginResponse>;
59
98
  }
99
+ import { CatalogProductsApiRequestFactory, CatalogProductsApiResponseProcessor } from "../apis/CatalogProductsApi";
100
+ export declare class PromiseCatalogProductsApi {
101
+ private api;
102
+ constructor(configuration: Configuration, requestFactory?: CatalogProductsApiRequestFactory, responseProcessor?: CatalogProductsApiResponseProcessor);
103
+ /**
104
+ * Create a new Catalog product.
105
+ * Create Catalog product
106
+ * @param createCatalogProductRequest
107
+ */
108
+ createCatalogProductWithHttpInfo(createCatalogProductRequest: CreateCatalogProductRequest, _options?: Configuration): Promise<HttpInfo<CreateCatalogProductResponse>>;
109
+ /**
110
+ * Create a new Catalog product.
111
+ * Create Catalog product
112
+ * @param createCatalogProductRequest
113
+ */
114
+ createCatalogProduct(createCatalogProductRequest: CreateCatalogProductRequest, _options?: Configuration): Promise<CreateCatalogProductResponse>;
115
+ /**
116
+ * Delete a Catalog product by id.
117
+ * Delete Catalog product
118
+ * @param catalogProductId
119
+ */
120
+ deleteCatalogProductWithHttpInfo(catalogProductId: string, _options?: Configuration): Promise<HttpInfo<DeleteCatalogProductResponse>>;
121
+ /**
122
+ * Delete a Catalog product by id.
123
+ * Delete Catalog product
124
+ * @param catalogProductId
125
+ */
126
+ deleteCatalogProduct(catalogProductId: string, _options?: Configuration): Promise<DeleteCatalogProductResponse>;
127
+ /**
128
+ * Get a Catalog product by id.
129
+ * Get Catalog product
130
+ * @param catalogProductId
131
+ */
132
+ getCatalogProductWithHttpInfo(catalogProductId: string, _options?: Configuration): Promise<HttpInfo<GetCatalogProductResponse>>;
133
+ /**
134
+ * Get a Catalog product by id.
135
+ * Get Catalog product
136
+ * @param catalogProductId
137
+ */
138
+ getCatalogProduct(catalogProductId: string, _options?: Configuration): Promise<GetCatalogProductResponse>;
139
+ /**
140
+ * Get a list of Catalog products.
141
+ * List Catalog products
142
+ * @param [limit]
143
+ * @param [cursor]
144
+ */
145
+ listCatalogProductsWithHttpInfo(limit?: number, cursor?: string, _options?: Configuration): Promise<HttpInfo<ListCatalogProductsResponse>>;
146
+ /**
147
+ * Get a list of Catalog products.
148
+ * List Catalog products
149
+ * @param [limit]
150
+ * @param [cursor]
151
+ */
152
+ listCatalogProducts(limit?: number, cursor?: string, _options?: Configuration): Promise<ListCatalogProductsResponse>;
153
+ /**
154
+ * Update a Catalog product by id.
155
+ * Update Catalog product
156
+ * @param updateCatalogProductRequest
157
+ * @param catalogProductId
158
+ */
159
+ updateCatalogProductWithHttpInfo(updateCatalogProductRequest: UpdateCatalogProductRequest, catalogProductId: string, _options?: Configuration): Promise<HttpInfo<UpdateCatalogProductResponse>>;
160
+ /**
161
+ * Update a Catalog product by id.
162
+ * Update Catalog product
163
+ * @param updateCatalogProductRequest
164
+ * @param catalogProductId
165
+ */
166
+ updateCatalogProduct(updateCatalogProductRequest: UpdateCatalogProductRequest, catalogProductId: string, _options?: Configuration): Promise<UpdateCatalogProductResponse>;
167
+ }
168
+ import { CloudUsageSubmissionApiRequestFactory, CloudUsageSubmissionApiResponseProcessor } from "../apis/CloudUsageSubmissionApi";
169
+ export declare class PromiseCloudUsageSubmissionApi {
170
+ private api;
171
+ constructor(configuration: Configuration, requestFactory?: CloudUsageSubmissionApiRequestFactory, responseProcessor?: CloudUsageSubmissionApiResponseProcessor);
172
+ /**
173
+ * Submit cloud usage data
174
+ * Submit cloud usage
175
+ * @param submitCloudUsageRequest
176
+ */
177
+ submitCloudUsageWithHttpInfo(submitCloudUsageRequest: SubmitCloudUsageRequest, _options?: Configuration): Promise<HttpInfo<any>>;
178
+ /**
179
+ * Submit cloud usage data
180
+ * Submit cloud usage
181
+ * @param submitCloudUsageRequest
182
+ */
183
+ submitCloudUsage(submitCloudUsageRequest: SubmitCloudUsageRequest, _options?: Configuration): Promise<any>;
184
+ }
60
185
  import { ContractsApiRequestFactory, ContractsApiResponseProcessor } from "../apis/ContractsApi";
61
186
  export declare class PromiseContractsApi {
62
187
  private api;
@@ -98,19 +223,35 @@ export declare class PromiseContractsApi {
98
223
  */
99
224
  getContract(contractId: string, _options?: Configuration): Promise<GetContractResponse>;
100
225
  /**
101
- * Get a list of Contracts.
102
- * List Contracts
226
+ * Use this endpoint to get a specific contract using its integration provider and identifier.
227
+ * Get contract by integration id
228
+ * @param integrationType
229
+ * @param integrationId
230
+ */
231
+ getContractByIntegrationIdWithHttpInfo(integrationType: IntegrationType, integrationId: string, _options?: Configuration): Promise<HttpInfo<GetContractByIntegrationIdResponse>>;
232
+ /**
233
+ * Use this endpoint to get a specific contract using its integration provider and identifier.
234
+ * Get contract by integration id
235
+ * @param integrationType
236
+ * @param integrationId
237
+ */
238
+ getContractByIntegrationId(integrationType: IntegrationType, integrationId: string, _options?: Configuration): Promise<GetContractByIntegrationIdResponse>;
239
+ /**
240
+ * List contracts for the account. Optionally filter by customerId to retrieve contracts for a specific customer.
241
+ * List contracts
103
242
  * @param [limit]
104
243
  * @param [cursor]
244
+ * @param [customerId]
105
245
  */
106
- listContractsWithHttpInfo(limit?: number, cursor?: string, _options?: Configuration): Promise<HttpInfo<ListContractsResponse>>;
246
+ listContractsWithHttpInfo(limit?: number, cursor?: string, customerId?: string, _options?: Configuration): Promise<HttpInfo<ListContractsResponse>>;
107
247
  /**
108
- * Get a list of Contracts.
109
- * List Contracts
248
+ * List contracts for the account. Optionally filter by customerId to retrieve contracts for a specific customer.
249
+ * List contracts
110
250
  * @param [limit]
111
251
  * @param [cursor]
252
+ * @param [customerId]
112
253
  */
113
- listContracts(limit?: number, cursor?: string, _options?: Configuration): Promise<ListContractsResponse>;
254
+ listContracts(limit?: number, cursor?: string, customerId?: string, _options?: Configuration): Promise<ListContractsResponse>;
114
255
  }
115
256
  import { CreditsApiRequestFactory, CreditsApiResponseProcessor } from "../apis/CreditsApi";
116
257
  export declare class PromiseCreditsApi {
@@ -157,6 +298,75 @@ export declare class PromiseCreditsApi {
157
298
  */
158
299
  listCreditLedgerEntries(customerId: string, limit?: number, cursor?: string, _options?: Configuration): Promise<ListCreditLedgerEntriesResponse>;
159
300
  }
301
+ import { CustomFieldsApiRequestFactory, CustomFieldsApiResponseProcessor } from "../apis/CustomFieldsApi";
302
+ export declare class PromiseCustomFieldsApi {
303
+ private api;
304
+ constructor(configuration: Configuration, requestFactory?: CustomFieldsApiRequestFactory, responseProcessor?: CustomFieldsApiResponseProcessor);
305
+ /**
306
+ * Create a new Custom field.
307
+ * Create Custom field
308
+ * @param createCustomFieldRequest
309
+ */
310
+ createCustomFieldWithHttpInfo(createCustomFieldRequest: CreateCustomFieldRequest, _options?: Configuration): Promise<HttpInfo<CreateCustomFieldResponse>>;
311
+ /**
312
+ * Create a new Custom field.
313
+ * Create Custom field
314
+ * @param createCustomFieldRequest
315
+ */
316
+ createCustomField(createCustomFieldRequest: CreateCustomFieldRequest, _options?: Configuration): Promise<CreateCustomFieldResponse>;
317
+ /**
318
+ * Delete a Custom field by id.
319
+ * Delete Custom field
320
+ * @param customFieldId
321
+ */
322
+ deleteCustomFieldWithHttpInfo(customFieldId: string, _options?: Configuration): Promise<HttpInfo<DeleteCustomFieldResponse>>;
323
+ /**
324
+ * Delete a Custom field by id.
325
+ * Delete Custom field
326
+ * @param customFieldId
327
+ */
328
+ deleteCustomField(customFieldId: string, _options?: Configuration): Promise<DeleteCustomFieldResponse>;
329
+ /**
330
+ * Get a Custom field by id.
331
+ * Get Custom field
332
+ * @param customFieldId
333
+ */
334
+ getCustomFieldWithHttpInfo(customFieldId: string, _options?: Configuration): Promise<HttpInfo<GetCustomFieldResponse>>;
335
+ /**
336
+ * Get a Custom field by id.
337
+ * Get Custom field
338
+ * @param customFieldId
339
+ */
340
+ getCustomField(customFieldId: string, _options?: Configuration): Promise<GetCustomFieldResponse>;
341
+ /**
342
+ * Get a list of Custom fields.
343
+ * List Custom fields
344
+ * @param [limit]
345
+ * @param [cursor]
346
+ */
347
+ listCustomFieldsWithHttpInfo(limit?: number, cursor?: string, _options?: Configuration): Promise<HttpInfo<ListCustomFieldsResponse>>;
348
+ /**
349
+ * Get a list of Custom fields.
350
+ * List Custom fields
351
+ * @param [limit]
352
+ * @param [cursor]
353
+ */
354
+ listCustomFields(limit?: number, cursor?: string, _options?: Configuration): Promise<ListCustomFieldsResponse>;
355
+ /**
356
+ * Update a Custom field by id.
357
+ * Update Custom field
358
+ * @param updateCustomFieldRequest
359
+ * @param customFieldId
360
+ */
361
+ updateCustomFieldWithHttpInfo(updateCustomFieldRequest: UpdateCustomFieldRequest, customFieldId: string, _options?: Configuration): Promise<HttpInfo<UpdateCustomFieldResponse>>;
362
+ /**
363
+ * Update a Custom field by id.
364
+ * Update Custom field
365
+ * @param updateCustomFieldRequest
366
+ * @param customFieldId
367
+ */
368
+ updateCustomField(updateCustomFieldRequest: UpdateCustomFieldRequest, customFieldId: string, _options?: Configuration): Promise<UpdateCustomFieldResponse>;
369
+ }
160
370
  import { CustomersApiRequestFactory, CustomersApiResponseProcessor } from "../apis/CustomersApi";
161
371
  export declare class PromiseCustomersApi {
162
372
  private api;
@@ -173,6 +383,18 @@ export declare class PromiseCustomersApi {
173
383
  * @param createCustomerRequest
174
384
  */
175
385
  createCustomer(createCustomerRequest: CreateCustomerRequest, _options?: Configuration): Promise<CreateCustomerResponse>;
386
+ /**
387
+ * Create a new Customer relation.
388
+ * Create Customer relation
389
+ * @param createCustomerRelationRequest
390
+ */
391
+ createCustomerRelationWithHttpInfo(createCustomerRelationRequest: CreateCustomerRelationRequest, _options?: Configuration): Promise<HttpInfo<CreateCustomerRelationResponse>>;
392
+ /**
393
+ * Create a new Customer relation.
394
+ * Create Customer relation
395
+ * @param createCustomerRelationRequest
396
+ */
397
+ createCustomerRelation(createCustomerRelationRequest: CreateCustomerRelationRequest, _options?: Configuration): Promise<CreateCustomerRelationResponse>;
176
398
  /**
177
399
  * Delete a Customer by id.
178
400
  * Delete Customer
@@ -209,6 +431,32 @@ export declare class PromiseCustomersApi {
209
431
  * @param externalId
210
432
  */
211
433
  getCustomerByExternalId(externalId: string, _options?: Configuration): Promise<GetCustomerResponse>;
434
+ /**
435
+ * Use this endpoint to get a specific customer using its integration provider and identifier.
436
+ * Get customer by integration id
437
+ * @param integrationType
438
+ * @param integrationId
439
+ */
440
+ getCustomerByIntegrationIdWithHttpInfo(integrationType: IntegrationType, integrationId: string, _options?: Configuration): Promise<HttpInfo<GetCustomerByIntegrationIdResponse>>;
441
+ /**
442
+ * Use this endpoint to get a specific customer using its integration provider and identifier.
443
+ * Get customer by integration id
444
+ * @param integrationType
445
+ * @param integrationId
446
+ */
447
+ getCustomerByIntegrationId(integrationType: IntegrationType, integrationId: string, _options?: Configuration): Promise<GetCustomerByIntegrationIdResponse>;
448
+ /**
449
+ * Use this endpoint to get a specific customer using its name.
450
+ * Get customer by name
451
+ * @param name
452
+ */
453
+ getCustomerByNameWithHttpInfo(name: string, _options?: Configuration): Promise<HttpInfo<GetCustomerByNameResponse>>;
454
+ /**
455
+ * Use this endpoint to get a specific customer using its name.
456
+ * Get customer by name
457
+ * @param name
458
+ */
459
+ getCustomerByName(name: string, _options?: Configuration): Promise<GetCustomerByNameResponse>;
212
460
  /**
213
461
  * Use this endpoint to get the products consumptions by the customer id.
214
462
  * Get products consumptions by customer id
@@ -233,6 +481,18 @@ export declare class PromiseCustomersApi {
233
481
  * @param alias
234
482
  */
235
483
  getCustomerProductsConsumptionsByAlias(alias: string, _options?: Configuration): Promise<GetCustomerProductsConsumptionsByAliasResponse>;
484
+ /**
485
+ * Get a Customer relation by id.
486
+ * Get Customer relation
487
+ * @param customerRelationId
488
+ */
489
+ getCustomerRelationWithHttpInfo(customerRelationId: string, _options?: Configuration): Promise<HttpInfo<GetCustomerRelationResponse>>;
490
+ /**
491
+ * Get a Customer relation by id.
492
+ * Get Customer relation
493
+ * @param customerRelationId
494
+ */
495
+ getCustomerRelation(customerRelationId: string, _options?: Configuration): Promise<GetCustomerRelationResponse>;
236
496
  /**
237
497
  * Get a list of Customers.
238
498
  * List Customers
@@ -278,6 +538,18 @@ export declare class PromiseEventsApi {
278
538
  * @param refId
279
539
  */
280
540
  deleteEventByRefId(refId: string, _options?: Configuration): Promise<DeleteEventResponse>;
541
+ /**
542
+ * Delete multiple events, identified by ref, in a single request.
543
+ * Delete events by refs
544
+ * @param deleteEventsByRefsRequest A list of event refs to delete. The request deletes the matching events for the authenticated account.
545
+ */
546
+ deleteEventsByRefsWithHttpInfo(deleteEventsByRefsRequest: DeleteEventsByRefsRequest, _options?: Configuration): Promise<HttpInfo<DeleteEventsByRefsResponse>>;
547
+ /**
548
+ * Delete multiple events, identified by ref, in a single request.
549
+ * Delete events by refs
550
+ * @param deleteEventsByRefsRequest A list of event refs to delete. The request deletes the matching events for the authenticated account.
551
+ */
552
+ deleteEventsByRefs(deleteEventsByRefsRequest: DeleteEventsByRefsRequest, _options?: Configuration): Promise<DeleteEventsByRefsResponse>;
281
553
  /**
282
554
  * Use this endpoint to get a specific event using its reference ID.
283
555
  * Get event by refId
@@ -296,20 +568,22 @@ export declare class PromiseEventsApi {
296
568
  * @param startTime
297
569
  * @param endTime
298
570
  * @param [eventName]
571
+ * @param [customerAlias]
299
572
  * @param [limit]
300
573
  * @param [cursor]
301
574
  */
302
- queryEventsWithHttpInfo(startTime: Date, endTime: Date, eventName?: string, limit?: number, cursor?: string, _options?: Configuration): Promise<HttpInfo<QueryEventsResponse>>;
575
+ queryEventsWithHttpInfo(startTime: Date, endTime: Date, eventName?: string, customerAlias?: string, limit?: number, cursor?: string, _options?: Configuration): Promise<HttpInfo<QueryEventsResponse>>;
303
576
  /**
304
577
  * Fetch events occurring within a specified timestamp range. An optional event name can be provided to further filter the events.
305
578
  * Query events by timestamp period and optional event name
306
579
  * @param startTime
307
580
  * @param endTime
308
581
  * @param [eventName]
582
+ * @param [customerAlias]
309
583
  * @param [limit]
310
584
  * @param [cursor]
311
585
  */
312
- queryEvents(startTime: Date, endTime: Date, eventName?: string, limit?: number, cursor?: string, _options?: Configuration): Promise<QueryEventsResponse>;
586
+ queryEvents(startTime: Date, endTime: Date, eventName?: string, customerAlias?: string, limit?: number, cursor?: string, _options?: Configuration): Promise<QueryEventsResponse>;
313
587
  /**
314
588
  * Use this endpoint to send an array of events for processing and storage. Make sure to comply with the request schema for each event.
315
589
  * Submit a batch of events for ingestion
@@ -334,6 +608,100 @@ export declare class PromiseEventsApi {
334
608
  * @param eventsDryRunRequest An array of events following the EventInput schema. This request body should be included in the PUT request to \&#39;/events\&#39; Up to 1000 events or a total payload max size of 256KB
335
609
  */
336
610
  sendEventsDryRun(eventsDryRunRequest: EventsDryRunRequest, _options?: Configuration): Promise<EventsDryRunResponse>;
611
+ /**
612
+ * Use this endpoint to remove a specific event using its reference ID (v2).
613
+ * Delete an event by refId (v2)
614
+ * @param refId
615
+ */
616
+ v2DeleteEventByRefIdWithHttpInfo(refId: string, _options?: Configuration): Promise<HttpInfo<V2DeleteEventResponse>>;
617
+ /**
618
+ * Use this endpoint to remove a specific event using its reference ID (v2).
619
+ * Delete an event by refId (v2)
620
+ * @param refId
621
+ */
622
+ v2DeleteEventByRefId(refId: string, _options?: Configuration): Promise<V2DeleteEventResponse>;
623
+ /**
624
+ * Delete multiple events, identified by ref, in a single request (v2).
625
+ * Delete events by refs (v2)
626
+ * @param v2DeleteEventsByRefsRequest A list of event refs to delete. The request deletes the matching events for the authenticated account.
627
+ */
628
+ v2DeleteEventsByRefsWithHttpInfo(v2DeleteEventsByRefsRequest: V2DeleteEventsByRefsRequest, _options?: Configuration): Promise<HttpInfo<V2DeleteEventsByRefsResponse>>;
629
+ /**
630
+ * Delete multiple events, identified by ref, in a single request (v2).
631
+ * Delete events by refs (v2)
632
+ * @param v2DeleteEventsByRefsRequest A list of event refs to delete. The request deletes the matching events for the authenticated account.
633
+ */
634
+ v2DeleteEventsByRefs(v2DeleteEventsByRefsRequest: V2DeleteEventsByRefsRequest, _options?: Configuration): Promise<V2DeleteEventsByRefsResponse>;
635
+ /**
636
+ * Use this endpoint to get a specific event using its reference ID (v2).
637
+ * Get event by refId (v2)
638
+ * @param refId
639
+ */
640
+ v2GetEventByRefIdWithHttpInfo(refId: string, _options?: Configuration): Promise<HttpInfo<V2GetEventResponse>>;
641
+ /**
642
+ * Use this endpoint to get a specific event using its reference ID (v2).
643
+ * Get event by refId (v2)
644
+ * @param refId
645
+ */
646
+ v2GetEventByRefId(refId: string, _options?: Configuration): Promise<V2GetEventResponse>;
647
+ /**
648
+ * Fetch events occurring within a specified timestamp range via the events-service (ClickHouse-backed).
649
+ * Query events by timestamp period and optional event name (v2)
650
+ * @param startTime
651
+ * @param endTime
652
+ * @param [eventName]
653
+ * @param [customerAlias]
654
+ * @param [limit]
655
+ * @param [cursor]
656
+ */
657
+ v2QueryEventsWithHttpInfo(startTime: Date, endTime: Date, eventName?: string, customerAlias?: string, limit?: number, cursor?: string, _options?: Configuration): Promise<HttpInfo<V2QueryEventsResponse>>;
658
+ /**
659
+ * Fetch events occurring within a specified timestamp range via the events-service (ClickHouse-backed).
660
+ * Query events by timestamp period and optional event name (v2)
661
+ * @param startTime
662
+ * @param endTime
663
+ * @param [eventName]
664
+ * @param [customerAlias]
665
+ * @param [limit]
666
+ * @param [cursor]
667
+ */
668
+ v2QueryEvents(startTime: Date, endTime: Date, eventName?: string, customerAlias?: string, limit?: number, cursor?: string, _options?: Configuration): Promise<V2QueryEventsResponse>;
669
+ /**
670
+ * Aggregate events by meters and time grouping via the events-service.
671
+ * Aggregate events (v2)
672
+ * @param v2QueryEventsAggregationRequest Configuration for aggregating events by meters and time grouping.
673
+ */
674
+ v2QueryEventsAggregationWithHttpInfo(v2QueryEventsAggregationRequest: V2QueryEventsAggregationRequest, _options?: Configuration): Promise<HttpInfo<V2QueryEventsAggregationResponse>>;
675
+ /**
676
+ * Aggregate events by meters and time grouping via the events-service.
677
+ * Aggregate events (v2)
678
+ * @param v2QueryEventsAggregationRequest Configuration for aggregating events by meters and time grouping.
679
+ */
680
+ v2QueryEventsAggregation(v2QueryEventsAggregationRequest: V2QueryEventsAggregationRequest, _options?: Configuration): Promise<V2QueryEventsAggregationResponse>;
681
+ /**
682
+ * Submit a batch of events for ingestion via the events-service.
683
+ * Submit a batch of events for ingestion (v2)
684
+ * @param v2SendEventsRequest An array of events following the EventInput schema. Up to 1000 events or a total payload max size of 256KB
685
+ */
686
+ v2SendEventsWithHttpInfo(v2SendEventsRequest: V2SendEventsRequest, _options?: Configuration): Promise<HttpInfo<V2SendEventsResponse>>;
687
+ /**
688
+ * Submit a batch of events for ingestion via the events-service.
689
+ * Submit a batch of events for ingestion (v2)
690
+ * @param v2SendEventsRequest An array of events following the EventInput schema. Up to 1000 events or a total payload max size of 256KB
691
+ */
692
+ v2SendEvents(v2SendEventsRequest: V2SendEventsRequest, _options?: Configuration): Promise<V2SendEventsResponse>;
693
+ /**
694
+ * Submit a batch of events for testing via the events-service. NOTE: this is a dry run and will not store the events.
695
+ * Submit a batch of events for testing (v2)
696
+ * @param v2EventsDryRunRequest An array of events following the EventInput schema. Up to 1000 events or a total payload max size of 256KB
697
+ */
698
+ v2SendEventsDryRunWithHttpInfo(v2EventsDryRunRequest: V2EventsDryRunRequest, _options?: Configuration): Promise<HttpInfo<V2EventsDryRunResponse>>;
699
+ /**
700
+ * Submit a batch of events for testing via the events-service. NOTE: this is a dry run and will not store the events.
701
+ * Submit a batch of events for testing (v2)
702
+ * @param v2EventsDryRunRequest An array of events following the EventInput schema. Up to 1000 events or a total payload max size of 256KB
703
+ */
704
+ v2SendEventsDryRun(v2EventsDryRunRequest: V2EventsDryRunRequest, _options?: Configuration): Promise<V2EventsDryRunResponse>;
337
705
  }
338
706
  import { InvoicesApiRequestFactory, InvoicesApiResponseProcessor } from "../apis/InvoicesApi";
339
707
  export declare class PromiseInvoicesApi {
@@ -352,19 +720,33 @@ export declare class PromiseInvoicesApi {
352
720
  */
353
721
  getInvoice(invoiceId: string, _options?: Configuration): Promise<GetInvoiceResponse>;
354
722
  /**
355
- * Get a list of Invoices.
356
- * List Invoices
723
+ * Use this endpoint to retrieve payment status information for a specific invoice, including payment status, amount due, amount paid, total, due date, paid date, and invoice PDF URL.
724
+ * Get invoice payment status
725
+ * @param invoiceId
726
+ */
727
+ getInvoicePaymentStatusWithHttpInfo(invoiceId: string, _options?: Configuration): Promise<HttpInfo<InvoicePaymentStatusResponse>>;
728
+ /**
729
+ * Use this endpoint to retrieve payment status information for a specific invoice, including payment status, amount due, amount paid, total, due date, paid date, and invoice PDF URL.
730
+ * Get invoice payment status
731
+ * @param invoiceId
732
+ */
733
+ getInvoicePaymentStatus(invoiceId: string, _options?: Configuration): Promise<InvoicePaymentStatusResponse>;
734
+ /**
735
+ * List invoices for the account. Optionally filter by customerId to retrieve invoices for a specific customer.
736
+ * List invoices
357
737
  * @param [limit]
358
738
  * @param [cursor]
739
+ * @param [customerId]
359
740
  */
360
- listInvoicesWithHttpInfo(limit?: number, cursor?: string, _options?: Configuration): Promise<HttpInfo<ListInvoicesResponse>>;
741
+ listInvoicesWithHttpInfo(limit?: number, cursor?: string, customerId?: string, _options?: Configuration): Promise<HttpInfo<ListInvoicesResponse>>;
361
742
  /**
362
- * Get a list of Invoices.
363
- * List Invoices
743
+ * List invoices for the account. Optionally filter by customerId to retrieve invoices for a specific customer.
744
+ * List invoices
364
745
  * @param [limit]
365
746
  * @param [cursor]
747
+ * @param [customerId]
366
748
  */
367
- listInvoices(limit?: number, cursor?: string, _options?: Configuration): Promise<ListInvoicesResponse>;
749
+ listInvoices(limit?: number, cursor?: string, customerId?: string, _options?: Configuration): Promise<ListInvoicesResponse>;
368
750
  }
369
751
  import { MeasurementsApiRequestFactory, MeasurementsApiResponseProcessor } from "../apis/MeasurementsApi";
370
752
  export declare class PromiseMeasurementsApi {
@@ -478,6 +860,49 @@ export declare class PromiseMetersApi {
478
860
  */
479
861
  updateMeter(updateMeterRequest: UpdateMeterRequest, meterId: string, _options?: Configuration): Promise<UpdateMeterResponse>;
480
862
  }
863
+ import { PlansApiRequestFactory, PlansApiResponseProcessor } from "../apis/PlansApi";
864
+ export declare class PromisePlansApi {
865
+ private api;
866
+ constructor(configuration: Configuration, requestFactory?: PlansApiRequestFactory, responseProcessor?: PlansApiResponseProcessor);
867
+ /**
868
+ * Delete a Plan by id.
869
+ * Delete Plan
870
+ * @param planId
871
+ */
872
+ deletePlanWithHttpInfo(planId: string, _options?: Configuration): Promise<HttpInfo<DeletePlanResponse>>;
873
+ /**
874
+ * Delete a Plan by id.
875
+ * Delete Plan
876
+ * @param planId
877
+ */
878
+ deletePlan(planId: string, _options?: Configuration): Promise<DeletePlanResponse>;
879
+ /**
880
+ * Get a Plan by id.
881
+ * Get Plan
882
+ * @param planId
883
+ */
884
+ getPlanWithHttpInfo(planId: string, _options?: Configuration): Promise<HttpInfo<GetPlanResponse>>;
885
+ /**
886
+ * Get a Plan by id.
887
+ * Get Plan
888
+ * @param planId
889
+ */
890
+ getPlan(planId: string, _options?: Configuration): Promise<GetPlanResponse>;
891
+ /**
892
+ * Get a list of Plans.
893
+ * List Plans
894
+ * @param [limit]
895
+ * @param [cursor]
896
+ */
897
+ listPlansWithHttpInfo(limit?: number, cursor?: string, _options?: Configuration): Promise<HttpInfo<ListPlansResponse>>;
898
+ /**
899
+ * Get a list of Plans.
900
+ * List Plans
901
+ * @param [limit]
902
+ * @param [cursor]
903
+ */
904
+ listPlans(limit?: number, cursor?: string, _options?: Configuration): Promise<ListPlansResponse>;
905
+ }
481
906
  import { ProductConsumptionsApiRequestFactory, ProductConsumptionsApiResponseProcessor } from "../apis/ProductConsumptionsApi";
482
907
  export declare class PromiseProductConsumptionsApi {
483
908
  private api;