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,45 +1,84 @@
1
1
  import { HttpInfo } from '../http/http';
2
2
  import { Configuration } from '../configuration';
3
3
  import { Observable } from '../rxjsStub';
4
+ import { CreateCatalogProductRequest } from '../models/CreateCatalogProductRequest';
5
+ import { CreateCatalogProductResponse } from '../models/CreateCatalogProductResponse';
4
6
  import { CreateContractRequest } from '../models/CreateContractRequest';
5
7
  import { CreateContractResponse } from '../models/CreateContractResponse';
8
+ import { CreateCustomFieldRequest } from '../models/CreateCustomFieldRequest';
9
+ import { CreateCustomFieldResponse } from '../models/CreateCustomFieldResponse';
10
+ import { CreateCustomerRelationRequest } from '../models/CreateCustomerRelationRequest';
11
+ import { CreateCustomerRelationResponse } from '../models/CreateCustomerRelationResponse';
6
12
  import { CreateCustomerRequest } from '../models/CreateCustomerRequest';
7
13
  import { CreateCustomerResponse } from '../models/CreateCustomerResponse';
8
14
  import { CreateMeasurementRequest } from '../models/CreateMeasurementRequest';
9
15
  import { CreateMeasurementResponse } from '../models/CreateMeasurementResponse';
10
16
  import { DeductCreditsRequest } from '../models/DeductCreditsRequest';
17
+ import { DeleteCatalogProductResponse } from '../models/DeleteCatalogProductResponse';
11
18
  import { DeleteContractResponse } from '../models/DeleteContractResponse';
19
+ import { DeleteCustomFieldResponse } from '../models/DeleteCustomFieldResponse';
12
20
  import { DeleteCustomerResponse } from '../models/DeleteCustomerResponse';
13
21
  import { DeleteEventResponse } from '../models/DeleteEventResponse';
22
+ import { DeleteEventsByRefsRequest } from '../models/DeleteEventsByRefsRequest';
23
+ import { DeleteEventsByRefsResponse } from '../models/DeleteEventsByRefsResponse';
14
24
  import { DeleteMeasurementResponse } from '../models/DeleteMeasurementResponse';
15
25
  import { DeleteMeterResponse } from '../models/DeleteMeterResponse';
26
+ import { DeletePlanResponse } from '../models/DeletePlanResponse';
16
27
  import { EventsDryRunRequest } from '../models/EventsDryRunRequest';
17
28
  import { EventsDryRunResponse } from '../models/EventsDryRunResponse';
29
+ import { GetCatalogProductResponse } from '../models/GetCatalogProductResponse';
30
+ import { GetContractByIntegrationIdResponse } from '../models/GetContractByIntegrationIdResponse';
18
31
  import { GetContractResponse } from '../models/GetContractResponse';
32
+ import { GetCustomFieldResponse } from '../models/GetCustomFieldResponse';
33
+ import { GetCustomerByIntegrationIdResponse } from '../models/GetCustomerByIntegrationIdResponse';
34
+ import { GetCustomerByNameResponse } from '../models/GetCustomerByNameResponse';
19
35
  import { GetCustomerProductsConsumptionsByAliasResponse } from '../models/GetCustomerProductsConsumptionsByAliasResponse';
20
36
  import { GetCustomerProductsConsumptionsResponse } from '../models/GetCustomerProductsConsumptionsResponse';
37
+ import { GetCustomerRelationResponse } from '../models/GetCustomerRelationResponse';
21
38
  import { GetCustomerResponse } from '../models/GetCustomerResponse';
22
39
  import { GetEventResponse } from '../models/GetEventResponse';
23
40
  import { GetInvoiceResponse } from '../models/GetInvoiceResponse';
24
41
  import { GetMeasurementResponse } from '../models/GetMeasurementResponse';
25
42
  import { GetMeterResponse } from '../models/GetMeterResponse';
43
+ import { GetPlanResponse } from '../models/GetPlanResponse';
26
44
  import { GetProductConsumptionResponse } from '../models/GetProductConsumptionResponse';
27
45
  import { GrantCreditsRequest } from '../models/GrantCreditsRequest';
46
+ import { IntegrationType } from '../models/IntegrationType';
47
+ import { InvoicePaymentStatusResponse } from '../models/InvoicePaymentStatusResponse';
48
+ import { ListCatalogProductsResponse } from '../models/ListCatalogProductsResponse';
28
49
  import { ListContractsResponse } from '../models/ListContractsResponse';
29
50
  import { ListCreditLedgerEntriesResponse } from '../models/ListCreditLedgerEntriesResponse';
51
+ import { ListCustomFieldsResponse } from '../models/ListCustomFieldsResponse';
30
52
  import { ListCustomersResponse } from '../models/ListCustomersResponse';
31
53
  import { ListInvoicesResponse } from '../models/ListInvoicesResponse';
32
54
  import { ListMeasurementsResponse } from '../models/ListMeasurementsResponse';
33
55
  import { ListMetersResponse } from '../models/ListMetersResponse';
56
+ import { ListPlansResponse } from '../models/ListPlansResponse';
34
57
  import { LoginRequest } from '../models/LoginRequest';
35
58
  import { LoginResponse } from '../models/LoginResponse';
36
59
  import { QueryEventsResponse } from '../models/QueryEventsResponse';
37
60
  import { SendEventsRequest } from '../models/SendEventsRequest';
38
61
  import { SendEventsResponse } from '../models/SendEventsResponse';
62
+ import { SubmitCloudUsageRequest } from '../models/SubmitCloudUsageRequest';
63
+ import { UpdateCatalogProductRequest } from '../models/UpdateCatalogProductRequest';
64
+ import { UpdateCatalogProductResponse } from '../models/UpdateCatalogProductResponse';
65
+ import { UpdateCustomFieldRequest } from '../models/UpdateCustomFieldRequest';
66
+ import { UpdateCustomFieldResponse } from '../models/UpdateCustomFieldResponse';
39
67
  import { UpdateCustomerRequest } from '../models/UpdateCustomerRequest';
40
68
  import { UpdateCustomerResponse } from '../models/UpdateCustomerResponse';
41
69
  import { UpdateMeterRequest } from '../models/UpdateMeterRequest';
42
70
  import { UpdateMeterResponse } from '../models/UpdateMeterResponse';
71
+ import { V2DeleteEventResponse } from '../models/V2DeleteEventResponse';
72
+ import { V2DeleteEventsByRefsRequest } from '../models/V2DeleteEventsByRefsRequest';
73
+ import { V2DeleteEventsByRefsResponse } from '../models/V2DeleteEventsByRefsResponse';
74
+ import { V2EventsDryRunRequest } from '../models/V2EventsDryRunRequest';
75
+ import { V2EventsDryRunResponse } from '../models/V2EventsDryRunResponse';
76
+ import { V2GetEventResponse } from '../models/V2GetEventResponse';
77
+ import { V2QueryEventsAggregationRequest } from '../models/V2QueryEventsAggregationRequest';
78
+ import { V2QueryEventsAggregationResponse } from '../models/V2QueryEventsAggregationResponse';
79
+ import { V2QueryEventsResponse } from '../models/V2QueryEventsResponse';
80
+ import { V2SendEventsRequest } from '../models/V2SendEventsRequest';
81
+ import { V2SendEventsResponse } from '../models/V2SendEventsResponse';
43
82
  import { WebhookSubscribeRequest } from '../models/WebhookSubscribeRequest';
44
83
  import { AuthApiRequestFactory, AuthApiResponseProcessor } from "../apis/AuthApi";
45
84
  export declare class ObservableAuthApi {
@@ -60,6 +99,96 @@ export declare class ObservableAuthApi {
60
99
  */
61
100
  login(loginRequest: LoginRequest, _options?: Configuration): Observable<LoginResponse>;
62
101
  }
102
+ import { CatalogProductsApiRequestFactory, CatalogProductsApiResponseProcessor } from "../apis/CatalogProductsApi";
103
+ export declare class ObservableCatalogProductsApi {
104
+ private requestFactory;
105
+ private responseProcessor;
106
+ private configuration;
107
+ constructor(configuration: Configuration, requestFactory?: CatalogProductsApiRequestFactory, responseProcessor?: CatalogProductsApiResponseProcessor);
108
+ /**
109
+ * Create a new Catalog product.
110
+ * Create Catalog product
111
+ * @param createCatalogProductRequest
112
+ */
113
+ createCatalogProductWithHttpInfo(createCatalogProductRequest: CreateCatalogProductRequest, _options?: Configuration): Observable<HttpInfo<CreateCatalogProductResponse>>;
114
+ /**
115
+ * Create a new Catalog product.
116
+ * Create Catalog product
117
+ * @param createCatalogProductRequest
118
+ */
119
+ createCatalogProduct(createCatalogProductRequest: CreateCatalogProductRequest, _options?: Configuration): Observable<CreateCatalogProductResponse>;
120
+ /**
121
+ * Delete a Catalog product by id.
122
+ * Delete Catalog product
123
+ * @param catalogProductId
124
+ */
125
+ deleteCatalogProductWithHttpInfo(catalogProductId: string, _options?: Configuration): Observable<HttpInfo<DeleteCatalogProductResponse>>;
126
+ /**
127
+ * Delete a Catalog product by id.
128
+ * Delete Catalog product
129
+ * @param catalogProductId
130
+ */
131
+ deleteCatalogProduct(catalogProductId: string, _options?: Configuration): Observable<DeleteCatalogProductResponse>;
132
+ /**
133
+ * Get a Catalog product by id.
134
+ * Get Catalog product
135
+ * @param catalogProductId
136
+ */
137
+ getCatalogProductWithHttpInfo(catalogProductId: string, _options?: Configuration): Observable<HttpInfo<GetCatalogProductResponse>>;
138
+ /**
139
+ * Get a Catalog product by id.
140
+ * Get Catalog product
141
+ * @param catalogProductId
142
+ */
143
+ getCatalogProduct(catalogProductId: string, _options?: Configuration): Observable<GetCatalogProductResponse>;
144
+ /**
145
+ * Get a list of Catalog products.
146
+ * List Catalog products
147
+ * @param [limit]
148
+ * @param [cursor]
149
+ */
150
+ listCatalogProductsWithHttpInfo(limit?: number, cursor?: string, _options?: Configuration): Observable<HttpInfo<ListCatalogProductsResponse>>;
151
+ /**
152
+ * Get a list of Catalog products.
153
+ * List Catalog products
154
+ * @param [limit]
155
+ * @param [cursor]
156
+ */
157
+ listCatalogProducts(limit?: number, cursor?: string, _options?: Configuration): Observable<ListCatalogProductsResponse>;
158
+ /**
159
+ * Update a Catalog product by id.
160
+ * Update Catalog product
161
+ * @param updateCatalogProductRequest
162
+ * @param catalogProductId
163
+ */
164
+ updateCatalogProductWithHttpInfo(updateCatalogProductRequest: UpdateCatalogProductRequest, catalogProductId: string, _options?: Configuration): Observable<HttpInfo<UpdateCatalogProductResponse>>;
165
+ /**
166
+ * Update a Catalog product by id.
167
+ * Update Catalog product
168
+ * @param updateCatalogProductRequest
169
+ * @param catalogProductId
170
+ */
171
+ updateCatalogProduct(updateCatalogProductRequest: UpdateCatalogProductRequest, catalogProductId: string, _options?: Configuration): Observable<UpdateCatalogProductResponse>;
172
+ }
173
+ import { CloudUsageSubmissionApiRequestFactory, CloudUsageSubmissionApiResponseProcessor } from "../apis/CloudUsageSubmissionApi";
174
+ export declare class ObservableCloudUsageSubmissionApi {
175
+ private requestFactory;
176
+ private responseProcessor;
177
+ private configuration;
178
+ constructor(configuration: Configuration, requestFactory?: CloudUsageSubmissionApiRequestFactory, responseProcessor?: CloudUsageSubmissionApiResponseProcessor);
179
+ /**
180
+ * Submit cloud usage data
181
+ * Submit cloud usage
182
+ * @param submitCloudUsageRequest
183
+ */
184
+ submitCloudUsageWithHttpInfo(submitCloudUsageRequest: SubmitCloudUsageRequest, _options?: Configuration): Observable<HttpInfo<any>>;
185
+ /**
186
+ * Submit cloud usage data
187
+ * Submit cloud usage
188
+ * @param submitCloudUsageRequest
189
+ */
190
+ submitCloudUsage(submitCloudUsageRequest: SubmitCloudUsageRequest, _options?: Configuration): Observable<any>;
191
+ }
63
192
  import { ContractsApiRequestFactory, ContractsApiResponseProcessor } from "../apis/ContractsApi";
64
193
  export declare class ObservableContractsApi {
65
194
  private requestFactory;
@@ -103,19 +232,35 @@ export declare class ObservableContractsApi {
103
232
  */
104
233
  getContract(contractId: string, _options?: Configuration): Observable<GetContractResponse>;
105
234
  /**
106
- * Get a list of Contracts.
107
- * List Contracts
235
+ * Use this endpoint to get a specific contract using its integration provider and identifier.
236
+ * Get contract by integration id
237
+ * @param integrationType
238
+ * @param integrationId
239
+ */
240
+ getContractByIntegrationIdWithHttpInfo(integrationType: IntegrationType, integrationId: string, _options?: Configuration): Observable<HttpInfo<GetContractByIntegrationIdResponse>>;
241
+ /**
242
+ * Use this endpoint to get a specific contract using its integration provider and identifier.
243
+ * Get contract by integration id
244
+ * @param integrationType
245
+ * @param integrationId
246
+ */
247
+ getContractByIntegrationId(integrationType: IntegrationType, integrationId: string, _options?: Configuration): Observable<GetContractByIntegrationIdResponse>;
248
+ /**
249
+ * List contracts for the account. Optionally filter by customerId to retrieve contracts for a specific customer.
250
+ * List contracts
108
251
  * @param [limit]
109
252
  * @param [cursor]
253
+ * @param [customerId]
110
254
  */
111
- listContractsWithHttpInfo(limit?: number, cursor?: string, _options?: Configuration): Observable<HttpInfo<ListContractsResponse>>;
255
+ listContractsWithHttpInfo(limit?: number, cursor?: string, customerId?: string, _options?: Configuration): Observable<HttpInfo<ListContractsResponse>>;
112
256
  /**
113
- * Get a list of Contracts.
114
- * List Contracts
257
+ * List contracts for the account. Optionally filter by customerId to retrieve contracts for a specific customer.
258
+ * List contracts
115
259
  * @param [limit]
116
260
  * @param [cursor]
261
+ * @param [customerId]
117
262
  */
118
- listContracts(limit?: number, cursor?: string, _options?: Configuration): Observable<ListContractsResponse>;
263
+ listContracts(limit?: number, cursor?: string, customerId?: string, _options?: Configuration): Observable<ListContractsResponse>;
119
264
  }
120
265
  import { CreditsApiRequestFactory, CreditsApiResponseProcessor } from "../apis/CreditsApi";
121
266
  export declare class ObservableCreditsApi {
@@ -164,6 +309,77 @@ export declare class ObservableCreditsApi {
164
309
  */
165
310
  listCreditLedgerEntries(customerId: string, limit?: number, cursor?: string, _options?: Configuration): Observable<ListCreditLedgerEntriesResponse>;
166
311
  }
312
+ import { CustomFieldsApiRequestFactory, CustomFieldsApiResponseProcessor } from "../apis/CustomFieldsApi";
313
+ export declare class ObservableCustomFieldsApi {
314
+ private requestFactory;
315
+ private responseProcessor;
316
+ private configuration;
317
+ constructor(configuration: Configuration, requestFactory?: CustomFieldsApiRequestFactory, responseProcessor?: CustomFieldsApiResponseProcessor);
318
+ /**
319
+ * Create a new Custom field.
320
+ * Create Custom field
321
+ * @param createCustomFieldRequest
322
+ */
323
+ createCustomFieldWithHttpInfo(createCustomFieldRequest: CreateCustomFieldRequest, _options?: Configuration): Observable<HttpInfo<CreateCustomFieldResponse>>;
324
+ /**
325
+ * Create a new Custom field.
326
+ * Create Custom field
327
+ * @param createCustomFieldRequest
328
+ */
329
+ createCustomField(createCustomFieldRequest: CreateCustomFieldRequest, _options?: Configuration): Observable<CreateCustomFieldResponse>;
330
+ /**
331
+ * Delete a Custom field by id.
332
+ * Delete Custom field
333
+ * @param customFieldId
334
+ */
335
+ deleteCustomFieldWithHttpInfo(customFieldId: string, _options?: Configuration): Observable<HttpInfo<DeleteCustomFieldResponse>>;
336
+ /**
337
+ * Delete a Custom field by id.
338
+ * Delete Custom field
339
+ * @param customFieldId
340
+ */
341
+ deleteCustomField(customFieldId: string, _options?: Configuration): Observable<DeleteCustomFieldResponse>;
342
+ /**
343
+ * Get a Custom field by id.
344
+ * Get Custom field
345
+ * @param customFieldId
346
+ */
347
+ getCustomFieldWithHttpInfo(customFieldId: string, _options?: Configuration): Observable<HttpInfo<GetCustomFieldResponse>>;
348
+ /**
349
+ * Get a Custom field by id.
350
+ * Get Custom field
351
+ * @param customFieldId
352
+ */
353
+ getCustomField(customFieldId: string, _options?: Configuration): Observable<GetCustomFieldResponse>;
354
+ /**
355
+ * Get a list of Custom fields.
356
+ * List Custom fields
357
+ * @param [limit]
358
+ * @param [cursor]
359
+ */
360
+ listCustomFieldsWithHttpInfo(limit?: number, cursor?: string, _options?: Configuration): Observable<HttpInfo<ListCustomFieldsResponse>>;
361
+ /**
362
+ * Get a list of Custom fields.
363
+ * List Custom fields
364
+ * @param [limit]
365
+ * @param [cursor]
366
+ */
367
+ listCustomFields(limit?: number, cursor?: string, _options?: Configuration): Observable<ListCustomFieldsResponse>;
368
+ /**
369
+ * Update a Custom field by id.
370
+ * Update Custom field
371
+ * @param updateCustomFieldRequest
372
+ * @param customFieldId
373
+ */
374
+ updateCustomFieldWithHttpInfo(updateCustomFieldRequest: UpdateCustomFieldRequest, customFieldId: string, _options?: Configuration): Observable<HttpInfo<UpdateCustomFieldResponse>>;
375
+ /**
376
+ * Update a Custom field by id.
377
+ * Update Custom field
378
+ * @param updateCustomFieldRequest
379
+ * @param customFieldId
380
+ */
381
+ updateCustomField(updateCustomFieldRequest: UpdateCustomFieldRequest, customFieldId: string, _options?: Configuration): Observable<UpdateCustomFieldResponse>;
382
+ }
167
383
  import { CustomersApiRequestFactory, CustomersApiResponseProcessor } from "../apis/CustomersApi";
168
384
  export declare class ObservableCustomersApi {
169
385
  private requestFactory;
@@ -182,6 +398,18 @@ export declare class ObservableCustomersApi {
182
398
  * @param createCustomerRequest
183
399
  */
184
400
  createCustomer(createCustomerRequest: CreateCustomerRequest, _options?: Configuration): Observable<CreateCustomerResponse>;
401
+ /**
402
+ * Create a new Customer relation.
403
+ * Create Customer relation
404
+ * @param createCustomerRelationRequest
405
+ */
406
+ createCustomerRelationWithHttpInfo(createCustomerRelationRequest: CreateCustomerRelationRequest, _options?: Configuration): Observable<HttpInfo<CreateCustomerRelationResponse>>;
407
+ /**
408
+ * Create a new Customer relation.
409
+ * Create Customer relation
410
+ * @param createCustomerRelationRequest
411
+ */
412
+ createCustomerRelation(createCustomerRelationRequest: CreateCustomerRelationRequest, _options?: Configuration): Observable<CreateCustomerRelationResponse>;
185
413
  /**
186
414
  * Delete a Customer by id.
187
415
  * Delete Customer
@@ -218,6 +446,32 @@ export declare class ObservableCustomersApi {
218
446
  * @param externalId
219
447
  */
220
448
  getCustomerByExternalId(externalId: string, _options?: Configuration): Observable<GetCustomerResponse>;
449
+ /**
450
+ * Use this endpoint to get a specific customer using its integration provider and identifier.
451
+ * Get customer by integration id
452
+ * @param integrationType
453
+ * @param integrationId
454
+ */
455
+ getCustomerByIntegrationIdWithHttpInfo(integrationType: IntegrationType, integrationId: string, _options?: Configuration): Observable<HttpInfo<GetCustomerByIntegrationIdResponse>>;
456
+ /**
457
+ * Use this endpoint to get a specific customer using its integration provider and identifier.
458
+ * Get customer by integration id
459
+ * @param integrationType
460
+ * @param integrationId
461
+ */
462
+ getCustomerByIntegrationId(integrationType: IntegrationType, integrationId: string, _options?: Configuration): Observable<GetCustomerByIntegrationIdResponse>;
463
+ /**
464
+ * Use this endpoint to get a specific customer using its name.
465
+ * Get customer by name
466
+ * @param name
467
+ */
468
+ getCustomerByNameWithHttpInfo(name: string, _options?: Configuration): Observable<HttpInfo<GetCustomerByNameResponse>>;
469
+ /**
470
+ * Use this endpoint to get a specific customer using its name.
471
+ * Get customer by name
472
+ * @param name
473
+ */
474
+ getCustomerByName(name: string, _options?: Configuration): Observable<GetCustomerByNameResponse>;
221
475
  /**
222
476
  * Use this endpoint to get the products consumptions by the customer id.
223
477
  * Get products consumptions by customer id
@@ -242,6 +496,18 @@ export declare class ObservableCustomersApi {
242
496
  * @param alias
243
497
  */
244
498
  getCustomerProductsConsumptionsByAlias(alias: string, _options?: Configuration): Observable<GetCustomerProductsConsumptionsByAliasResponse>;
499
+ /**
500
+ * Get a Customer relation by id.
501
+ * Get Customer relation
502
+ * @param customerRelationId
503
+ */
504
+ getCustomerRelationWithHttpInfo(customerRelationId: string, _options?: Configuration): Observable<HttpInfo<GetCustomerRelationResponse>>;
505
+ /**
506
+ * Get a Customer relation by id.
507
+ * Get Customer relation
508
+ * @param customerRelationId
509
+ */
510
+ getCustomerRelation(customerRelationId: string, _options?: Configuration): Observable<GetCustomerRelationResponse>;
245
511
  /**
246
512
  * Get a list of Customers.
247
513
  * List Customers
@@ -289,6 +555,18 @@ export declare class ObservableEventsApi {
289
555
  * @param refId
290
556
  */
291
557
  deleteEventByRefId(refId: string, _options?: Configuration): Observable<DeleteEventResponse>;
558
+ /**
559
+ * Delete multiple events, identified by ref, in a single request.
560
+ * Delete events by refs
561
+ * @param deleteEventsByRefsRequest A list of event refs to delete. The request deletes the matching events for the authenticated account.
562
+ */
563
+ deleteEventsByRefsWithHttpInfo(deleteEventsByRefsRequest: DeleteEventsByRefsRequest, _options?: Configuration): Observable<HttpInfo<DeleteEventsByRefsResponse>>;
564
+ /**
565
+ * Delete multiple events, identified by ref, in a single request.
566
+ * Delete events by refs
567
+ * @param deleteEventsByRefsRequest A list of event refs to delete. The request deletes the matching events for the authenticated account.
568
+ */
569
+ deleteEventsByRefs(deleteEventsByRefsRequest: DeleteEventsByRefsRequest, _options?: Configuration): Observable<DeleteEventsByRefsResponse>;
292
570
  /**
293
571
  * Use this endpoint to get a specific event using its reference ID.
294
572
  * Get event by refId
@@ -307,20 +585,22 @@ export declare class ObservableEventsApi {
307
585
  * @param startTime
308
586
  * @param endTime
309
587
  * @param [eventName]
588
+ * @param [customerAlias]
310
589
  * @param [limit]
311
590
  * @param [cursor]
312
591
  */
313
- queryEventsWithHttpInfo(startTime: Date, endTime: Date, eventName?: string, limit?: number, cursor?: string, _options?: Configuration): Observable<HttpInfo<QueryEventsResponse>>;
592
+ queryEventsWithHttpInfo(startTime: Date, endTime: Date, eventName?: string, customerAlias?: string, limit?: number, cursor?: string, _options?: Configuration): Observable<HttpInfo<QueryEventsResponse>>;
314
593
  /**
315
594
  * Fetch events occurring within a specified timestamp range. An optional event name can be provided to further filter the events.
316
595
  * Query events by timestamp period and optional event name
317
596
  * @param startTime
318
597
  * @param endTime
319
598
  * @param [eventName]
599
+ * @param [customerAlias]
320
600
  * @param [limit]
321
601
  * @param [cursor]
322
602
  */
323
- queryEvents(startTime: Date, endTime: Date, eventName?: string, limit?: number, cursor?: string, _options?: Configuration): Observable<QueryEventsResponse>;
603
+ queryEvents(startTime: Date, endTime: Date, eventName?: string, customerAlias?: string, limit?: number, cursor?: string, _options?: Configuration): Observable<QueryEventsResponse>;
324
604
  /**
325
605
  * Use this endpoint to send an array of events for processing and storage. Make sure to comply with the request schema for each event.
326
606
  * Submit a batch of events for ingestion
@@ -345,6 +625,100 @@ export declare class ObservableEventsApi {
345
625
  * @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
346
626
  */
347
627
  sendEventsDryRun(eventsDryRunRequest: EventsDryRunRequest, _options?: Configuration): Observable<EventsDryRunResponse>;
628
+ /**
629
+ * Use this endpoint to remove a specific event using its reference ID (v2).
630
+ * Delete an event by refId (v2)
631
+ * @param refId
632
+ */
633
+ v2DeleteEventByRefIdWithHttpInfo(refId: string, _options?: Configuration): Observable<HttpInfo<V2DeleteEventResponse>>;
634
+ /**
635
+ * Use this endpoint to remove a specific event using its reference ID (v2).
636
+ * Delete an event by refId (v2)
637
+ * @param refId
638
+ */
639
+ v2DeleteEventByRefId(refId: string, _options?: Configuration): Observable<V2DeleteEventResponse>;
640
+ /**
641
+ * Delete multiple events, identified by ref, in a single request (v2).
642
+ * Delete events by refs (v2)
643
+ * @param v2DeleteEventsByRefsRequest A list of event refs to delete. The request deletes the matching events for the authenticated account.
644
+ */
645
+ v2DeleteEventsByRefsWithHttpInfo(v2DeleteEventsByRefsRequest: V2DeleteEventsByRefsRequest, _options?: Configuration): Observable<HttpInfo<V2DeleteEventsByRefsResponse>>;
646
+ /**
647
+ * Delete multiple events, identified by ref, in a single request (v2).
648
+ * Delete events by refs (v2)
649
+ * @param v2DeleteEventsByRefsRequest A list of event refs to delete. The request deletes the matching events for the authenticated account.
650
+ */
651
+ v2DeleteEventsByRefs(v2DeleteEventsByRefsRequest: V2DeleteEventsByRefsRequest, _options?: Configuration): Observable<V2DeleteEventsByRefsResponse>;
652
+ /**
653
+ * Use this endpoint to get a specific event using its reference ID (v2).
654
+ * Get event by refId (v2)
655
+ * @param refId
656
+ */
657
+ v2GetEventByRefIdWithHttpInfo(refId: string, _options?: Configuration): Observable<HttpInfo<V2GetEventResponse>>;
658
+ /**
659
+ * Use this endpoint to get a specific event using its reference ID (v2).
660
+ * Get event by refId (v2)
661
+ * @param refId
662
+ */
663
+ v2GetEventByRefId(refId: string, _options?: Configuration): Observable<V2GetEventResponse>;
664
+ /**
665
+ * Fetch events occurring within a specified timestamp range via the events-service (ClickHouse-backed).
666
+ * Query events by timestamp period and optional event name (v2)
667
+ * @param startTime
668
+ * @param endTime
669
+ * @param [eventName]
670
+ * @param [customerAlias]
671
+ * @param [limit]
672
+ * @param [cursor]
673
+ */
674
+ v2QueryEventsWithHttpInfo(startTime: Date, endTime: Date, eventName?: string, customerAlias?: string, limit?: number, cursor?: string, _options?: Configuration): Observable<HttpInfo<V2QueryEventsResponse>>;
675
+ /**
676
+ * Fetch events occurring within a specified timestamp range via the events-service (ClickHouse-backed).
677
+ * Query events by timestamp period and optional event name (v2)
678
+ * @param startTime
679
+ * @param endTime
680
+ * @param [eventName]
681
+ * @param [customerAlias]
682
+ * @param [limit]
683
+ * @param [cursor]
684
+ */
685
+ v2QueryEvents(startTime: Date, endTime: Date, eventName?: string, customerAlias?: string, limit?: number, cursor?: string, _options?: Configuration): Observable<V2QueryEventsResponse>;
686
+ /**
687
+ * Aggregate events by meters and time grouping via the events-service.
688
+ * Aggregate events (v2)
689
+ * @param v2QueryEventsAggregationRequest Configuration for aggregating events by meters and time grouping.
690
+ */
691
+ v2QueryEventsAggregationWithHttpInfo(v2QueryEventsAggregationRequest: V2QueryEventsAggregationRequest, _options?: Configuration): Observable<HttpInfo<V2QueryEventsAggregationResponse>>;
692
+ /**
693
+ * Aggregate events by meters and time grouping via the events-service.
694
+ * Aggregate events (v2)
695
+ * @param v2QueryEventsAggregationRequest Configuration for aggregating events by meters and time grouping.
696
+ */
697
+ v2QueryEventsAggregation(v2QueryEventsAggregationRequest: V2QueryEventsAggregationRequest, _options?: Configuration): Observable<V2QueryEventsAggregationResponse>;
698
+ /**
699
+ * Submit a batch of events for ingestion via the events-service.
700
+ * Submit a batch of events for ingestion (v2)
701
+ * @param v2SendEventsRequest An array of events following the EventInput schema. Up to 1000 events or a total payload max size of 256KB
702
+ */
703
+ v2SendEventsWithHttpInfo(v2SendEventsRequest: V2SendEventsRequest, _options?: Configuration): Observable<HttpInfo<V2SendEventsResponse>>;
704
+ /**
705
+ * Submit a batch of events for ingestion via the events-service.
706
+ * Submit a batch of events for ingestion (v2)
707
+ * @param v2SendEventsRequest An array of events following the EventInput schema. Up to 1000 events or a total payload max size of 256KB
708
+ */
709
+ v2SendEvents(v2SendEventsRequest: V2SendEventsRequest, _options?: Configuration): Observable<V2SendEventsResponse>;
710
+ /**
711
+ * Submit a batch of events for testing via the events-service. NOTE: this is a dry run and will not store the events.
712
+ * Submit a batch of events for testing (v2)
713
+ * @param v2EventsDryRunRequest An array of events following the EventInput schema. Up to 1000 events or a total payload max size of 256KB
714
+ */
715
+ v2SendEventsDryRunWithHttpInfo(v2EventsDryRunRequest: V2EventsDryRunRequest, _options?: Configuration): Observable<HttpInfo<V2EventsDryRunResponse>>;
716
+ /**
717
+ * Submit a batch of events for testing via the events-service. NOTE: this is a dry run and will not store the events.
718
+ * Submit a batch of events for testing (v2)
719
+ * @param v2EventsDryRunRequest An array of events following the EventInput schema. Up to 1000 events or a total payload max size of 256KB
720
+ */
721
+ v2SendEventsDryRun(v2EventsDryRunRequest: V2EventsDryRunRequest, _options?: Configuration): Observable<V2EventsDryRunResponse>;
348
722
  }
349
723
  import { InvoicesApiRequestFactory, InvoicesApiResponseProcessor } from "../apis/InvoicesApi";
350
724
  export declare class ObservableInvoicesApi {
@@ -365,19 +739,33 @@ export declare class ObservableInvoicesApi {
365
739
  */
366
740
  getInvoice(invoiceId: string, _options?: Configuration): Observable<GetInvoiceResponse>;
367
741
  /**
368
- * Get a list of Invoices.
369
- * List Invoices
742
+ * 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.
743
+ * Get invoice payment status
744
+ * @param invoiceId
745
+ */
746
+ getInvoicePaymentStatusWithHttpInfo(invoiceId: string, _options?: Configuration): Observable<HttpInfo<InvoicePaymentStatusResponse>>;
747
+ /**
748
+ * 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.
749
+ * Get invoice payment status
750
+ * @param invoiceId
751
+ */
752
+ getInvoicePaymentStatus(invoiceId: string, _options?: Configuration): Observable<InvoicePaymentStatusResponse>;
753
+ /**
754
+ * List invoices for the account. Optionally filter by customerId to retrieve invoices for a specific customer.
755
+ * List invoices
370
756
  * @param [limit]
371
757
  * @param [cursor]
758
+ * @param [customerId]
372
759
  */
373
- listInvoicesWithHttpInfo(limit?: number, cursor?: string, _options?: Configuration): Observable<HttpInfo<ListInvoicesResponse>>;
760
+ listInvoicesWithHttpInfo(limit?: number, cursor?: string, customerId?: string, _options?: Configuration): Observable<HttpInfo<ListInvoicesResponse>>;
374
761
  /**
375
- * Get a list of Invoices.
376
- * List Invoices
762
+ * List invoices for the account. Optionally filter by customerId to retrieve invoices for a specific customer.
763
+ * List invoices
377
764
  * @param [limit]
378
765
  * @param [cursor]
766
+ * @param [customerId]
379
767
  */
380
- listInvoices(limit?: number, cursor?: string, _options?: Configuration): Observable<ListInvoicesResponse>;
768
+ listInvoices(limit?: number, cursor?: string, customerId?: string, _options?: Configuration): Observable<ListInvoicesResponse>;
381
769
  }
382
770
  import { MeasurementsApiRequestFactory, MeasurementsApiResponseProcessor } from "../apis/MeasurementsApi";
383
771
  export declare class ObservableMeasurementsApi {
@@ -495,6 +883,51 @@ export declare class ObservableMetersApi {
495
883
  */
496
884
  updateMeter(updateMeterRequest: UpdateMeterRequest, meterId: string, _options?: Configuration): Observable<UpdateMeterResponse>;
497
885
  }
886
+ import { PlansApiRequestFactory, PlansApiResponseProcessor } from "../apis/PlansApi";
887
+ export declare class ObservablePlansApi {
888
+ private requestFactory;
889
+ private responseProcessor;
890
+ private configuration;
891
+ constructor(configuration: Configuration, requestFactory?: PlansApiRequestFactory, responseProcessor?: PlansApiResponseProcessor);
892
+ /**
893
+ * Delete a Plan by id.
894
+ * Delete Plan
895
+ * @param planId
896
+ */
897
+ deletePlanWithHttpInfo(planId: string, _options?: Configuration): Observable<HttpInfo<DeletePlanResponse>>;
898
+ /**
899
+ * Delete a Plan by id.
900
+ * Delete Plan
901
+ * @param planId
902
+ */
903
+ deletePlan(planId: string, _options?: Configuration): Observable<DeletePlanResponse>;
904
+ /**
905
+ * Get a Plan by id.
906
+ * Get Plan
907
+ * @param planId
908
+ */
909
+ getPlanWithHttpInfo(planId: string, _options?: Configuration): Observable<HttpInfo<GetPlanResponse>>;
910
+ /**
911
+ * Get a Plan by id.
912
+ * Get Plan
913
+ * @param planId
914
+ */
915
+ getPlan(planId: string, _options?: Configuration): Observable<GetPlanResponse>;
916
+ /**
917
+ * Get a list of Plans.
918
+ * List Plans
919
+ * @param [limit]
920
+ * @param [cursor]
921
+ */
922
+ listPlansWithHttpInfo(limit?: number, cursor?: string, _options?: Configuration): Observable<HttpInfo<ListPlansResponse>>;
923
+ /**
924
+ * Get a list of Plans.
925
+ * List Plans
926
+ * @param [limit]
927
+ * @param [cursor]
928
+ */
929
+ listPlans(limit?: number, cursor?: string, _options?: Configuration): Observable<ListPlansResponse>;
930
+ }
498
931
  import { ProductConsumptionsApiRequestFactory, ProductConsumptionsApiResponseProcessor } from "../apis/ProductConsumptionsApi";
499
932
  export declare class ObservableProductConsumptionsApi {
500
933
  private requestFactory;