vayu-ts 0.3.4 → 0.3.8

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 (173) hide show
  1. package/dist/openapi/apis/AuthApi.js +8 -4
  2. package/dist/openapi/apis/CatalogProductsApi.js +46 -23
  3. package/dist/openapi/apis/CloudUsageSubmissionApi.js +8 -4
  4. package/dist/openapi/apis/ContractsApi.js +48 -22
  5. package/dist/openapi/apis/CreditsApi.js +24 -12
  6. package/dist/openapi/apis/CustomFieldsApi.d.ts +89 -0
  7. package/dist/openapi/apis/CustomFieldsApi.js +377 -0
  8. package/dist/openapi/apis/CustomersApi.js +124 -52
  9. package/dist/openapi/apis/EventsApi.d.ts +116 -1
  10. package/dist/openapi/apis/EventsApi.js +605 -25
  11. package/dist/openapi/apis/InvoicesApi.d.ts +4 -1
  12. package/dist/openapi/apis/InvoicesApi.js +42 -14
  13. package/dist/openapi/apis/MeasurementsApi.js +36 -18
  14. package/dist/openapi/apis/MetersApi.js +38 -19
  15. package/dist/openapi/apis/PlansApi.d.ts +56 -0
  16. package/dist/openapi/apis/PlansApi.js +225 -0
  17. package/dist/openapi/apis/ProductConsumptionsApi.js +12 -4
  18. package/dist/openapi/apis/WebhooksApi.js +12 -4
  19. package/dist/openapi/index.d.ts +1 -1
  20. package/dist/openapi/index.js +3 -1
  21. package/dist/openapi/models/BillingInterval.d.ts +18 -0
  22. package/dist/openapi/models/BillingInterval.js +22 -0
  23. package/dist/openapi/models/ConflictErrorResponse.d.ts +42 -0
  24. package/dist/openapi/models/ConflictErrorResponse.js +52 -0
  25. package/dist/openapi/models/Contact.js +1 -1
  26. package/dist/openapi/models/CreateContractRequest.d.ts +14 -0
  27. package/dist/openapi/models/CreateContractRequest.js +24 -0
  28. package/dist/openapi/models/CreateCustomFieldRequest.d.ts +71 -0
  29. package/dist/openapi/models/CreateCustomFieldRequest.js +90 -0
  30. package/dist/openapi/models/CreateCustomFieldResponse.d.ts +32 -0
  31. package/dist/openapi/models/CreateCustomFieldResponse.js +32 -0
  32. package/dist/openapi/models/CreateCustomFieldResponseCustomField.d.ts +74 -0
  33. package/dist/openapi/models/CreateCustomFieldResponseCustomField.js +108 -0
  34. package/dist/openapi/models/CreateCustomerRequest.d.ts +20 -0
  35. package/dist/openapi/models/CreateCustomerRequest.js +30 -0
  36. package/dist/openapi/models/CreateCustomerResponseCustomer.d.ts +20 -0
  37. package/dist/openapi/models/CreateCustomerResponseCustomer.js +30 -0
  38. package/dist/openapi/models/CustomFieldEntities.d.ts +20 -0
  39. package/dist/openapi/models/CustomFieldEntities.js +24 -0
  40. package/dist/openapi/models/CustomFieldValueTypes.d.ts +2 -1
  41. package/dist/openapi/models/CustomFieldValueTypes.js +1 -0
  42. package/dist/openapi/models/DeleteContractResponseContract.d.ts +6 -0
  43. package/dist/openapi/models/DeleteContractResponseContract.js +12 -0
  44. package/dist/openapi/models/DeleteCustomFieldResponse.d.ts +32 -0
  45. package/dist/openapi/models/DeleteCustomFieldResponse.js +32 -0
  46. package/dist/openapi/models/DeleteCustomFieldResponseCustomField.d.ts +75 -0
  47. package/dist/openapi/models/DeleteCustomFieldResponseCustomField.js +114 -0
  48. package/dist/openapi/models/DeleteCustomerResponseCustomer.d.ts +20 -0
  49. package/dist/openapi/models/DeleteCustomerResponseCustomer.js +30 -0
  50. package/dist/openapi/models/DeletePlanResponse.d.ts +32 -0
  51. package/dist/openapi/models/DeletePlanResponse.js +32 -0
  52. package/dist/openapi/models/DeletePlanResponsePlan.d.ts +42 -0
  53. package/dist/openapi/models/DeletePlanResponsePlan.js +68 -0
  54. package/dist/openapi/models/EventsDryRunResponseObjectMeterWithValuesInner.d.ts +1 -1
  55. package/dist/openapi/models/GetContractResponseContract.d.ts +6 -0
  56. package/dist/openapi/models/GetContractResponseContract.js +12 -0
  57. package/dist/openapi/models/GetCustomFieldResponse.d.ts +32 -0
  58. package/dist/openapi/models/GetCustomFieldResponse.js +32 -0
  59. package/dist/openapi/models/GetCustomerByNameResponseCustomer.d.ts +20 -0
  60. package/dist/openapi/models/GetCustomerByNameResponseCustomer.js +30 -0
  61. package/dist/openapi/models/GetPlanResponse.d.ts +32 -0
  62. package/dist/openapi/models/GetPlanResponse.js +32 -0
  63. package/dist/openapi/models/GetPlanResponsePlan.d.ts +41 -0
  64. package/dist/openapi/models/GetPlanResponsePlan.js +62 -0
  65. package/dist/openapi/models/InternalServerErrorResponse.d.ts +42 -0
  66. package/dist/openapi/models/InternalServerErrorResponse.js +52 -0
  67. package/dist/openapi/models/ListCustomFieldsResponse.d.ts +35 -0
  68. package/dist/openapi/models/ListCustomFieldsResponse.js +50 -0
  69. package/dist/openapi/models/ListPlansResponse.d.ts +35 -0
  70. package/dist/openapi/models/ListPlansResponse.js +50 -0
  71. package/dist/openapi/models/NotFoundErrorResponse.d.ts +42 -0
  72. package/dist/openapi/models/NotFoundErrorResponse.js +52 -0
  73. package/dist/openapi/models/NotificationEventType.d.ts +5 -1
  74. package/dist/openapi/models/NotificationEventType.js +4 -0
  75. package/dist/openapi/models/ObjectSerializer.d.ts +51 -0
  76. package/dist/openapi/models/ObjectSerializer.js +176 -0
  77. package/dist/openapi/models/PlanBillingData.d.ts +41 -0
  78. package/dist/openapi/models/PlanBillingData.js +59 -0
  79. package/dist/openapi/models/PlanDuration.d.ts +30 -0
  80. package/dist/openapi/models/PlanDuration.js +25 -0
  81. package/dist/openapi/models/PlanStatus.d.ts +19 -0
  82. package/dist/openapi/models/PlanStatus.js +23 -0
  83. package/dist/openapi/models/ProductGroupCommitment.d.ts +8 -0
  84. package/dist/openapi/models/ProductGroupCommitment.js +12 -1
  85. package/dist/openapi/models/ProductGroupProductsInnerCommitment.d.ts +8 -0
  86. package/dist/openapi/models/ProductGroupProductsInnerCommitment.js +12 -1
  87. package/dist/openapi/models/ProductGroupProductsInnerCommitmentScheduling.d.ts +4 -4
  88. package/dist/openapi/models/ProductGroupProductsInnerCommitmentScheduling.js +2 -2
  89. package/dist/openapi/models/ProductGroupProductsInnerCommitmentSchedulingDuration.d.ts +41 -0
  90. package/dist/openapi/models/ProductGroupProductsInnerCommitmentSchedulingDuration.js +48 -0
  91. package/dist/openapi/models/ProductGroupProductsInnerPricing.d.ts +3 -1
  92. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf.d.ts +6 -0
  93. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf.js +12 -0
  94. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1.d.ts +2 -0
  95. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1.js +6 -0
  96. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2.d.ts +2 -0
  97. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2.js +6 -0
  98. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf5.d.ts +42 -0
  99. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf5.js +48 -0
  100. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf6.d.ts +42 -0
  101. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf6.js +48 -0
  102. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOfDiscount.d.ts +53 -0
  103. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOfDiscount.js +58 -0
  104. package/dist/openapi/models/QueryEventsResponse.d.ts +3 -3
  105. package/dist/openapi/models/QueryEventsResponse.js +18 -0
  106. package/dist/openapi/models/RateLimitErrorResponse.d.ts +42 -0
  107. package/dist/openapi/models/RateLimitErrorResponse.js +52 -0
  108. package/dist/openapi/models/RequestTooLongErrorResponse.d.ts +42 -0
  109. package/dist/openapi/models/RequestTooLongErrorResponse.js +52 -0
  110. package/dist/openapi/models/UnauthorizedErrorResponse.d.ts +42 -0
  111. package/dist/openapi/models/UnauthorizedErrorResponse.js +52 -0
  112. package/dist/openapi/models/UnlimitedDuration.d.ts +14 -0
  113. package/dist/openapi/models/UnlimitedDuration.js +18 -0
  114. package/dist/openapi/models/UpdateCustomFieldRequest.d.ts +71 -0
  115. package/dist/openapi/models/UpdateCustomFieldRequest.js +90 -0
  116. package/dist/openapi/models/UpdateCustomFieldResponse.d.ts +32 -0
  117. package/dist/openapi/models/UpdateCustomFieldResponse.js +32 -0
  118. package/dist/openapi/models/UpdateCustomerRequest.d.ts +20 -0
  119. package/dist/openapi/models/UpdateCustomerRequest.js +30 -0
  120. package/dist/openapi/models/V2DeleteEventResponse.d.ts +32 -0
  121. package/dist/openapi/models/V2DeleteEventResponse.js +32 -0
  122. package/dist/openapi/models/V2DeleteEventsByRefsRequest.d.ts +31 -0
  123. package/dist/openapi/models/V2DeleteEventsByRefsRequest.js +32 -0
  124. package/dist/openapi/models/V2DeleteEventsByRefsResponse.d.ts +35 -0
  125. package/dist/openapi/models/V2DeleteEventsByRefsResponse.js +32 -0
  126. package/dist/openapi/models/V2EventsDryRunRequest.d.ts +32 -0
  127. package/dist/openapi/models/V2EventsDryRunRequest.js +32 -0
  128. package/dist/openapi/models/V2EventsDryRunResponse.d.ts +32 -0
  129. package/dist/openapi/models/V2EventsDryRunResponse.js +32 -0
  130. package/dist/openapi/models/V2GetEventResponse.d.ts +32 -0
  131. package/dist/openapi/models/V2GetEventResponse.js +32 -0
  132. package/dist/openapi/models/V2QueryEventsAggregationRequest.d.ts +45 -0
  133. package/dist/openapi/models/V2QueryEventsAggregationRequest.js +70 -0
  134. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInner.d.ts +39 -0
  135. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInner.js +62 -0
  136. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerAggregation.d.ts +35 -0
  137. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerAggregation.js +44 -0
  138. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerAggregationFieldArithmetic.d.ts +38 -0
  139. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerAggregationFieldArithmetic.js +45 -0
  140. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerFiltersInner.d.ts +43 -0
  141. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerFiltersInner.js +54 -0
  142. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerFiltersInnerValue.d.ts +30 -0
  143. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerFiltersInnerValue.js +25 -0
  144. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerSqlFullQuery.d.ts +34 -0
  145. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerSqlFullQuery.js +38 -0
  146. package/dist/openapi/models/V2QueryEventsAggregationRequestPeriod.d.ts +32 -0
  147. package/dist/openapi/models/V2QueryEventsAggregationRequestPeriod.js +38 -0
  148. package/dist/openapi/models/V2QueryEventsAggregationResponse.d.ts +42 -0
  149. package/dist/openapi/models/V2QueryEventsAggregationResponse.js +52 -0
  150. package/dist/openapi/models/V2QueryEventsAggregationResponseDataPointsInner.d.ts +34 -0
  151. package/dist/openapi/models/V2QueryEventsAggregationResponseDataPointsInner.js +38 -0
  152. package/dist/openapi/models/V2QueryEventsResponse.d.ts +35 -0
  153. package/dist/openapi/models/V2QueryEventsResponse.js +50 -0
  154. package/dist/openapi/models/V2SendEventsRequest.d.ts +32 -0
  155. package/dist/openapi/models/V2SendEventsRequest.js +32 -0
  156. package/dist/openapi/models/V2SendEventsResponse.d.ts +40 -0
  157. package/dist/openapi/models/V2SendEventsResponse.js +38 -0
  158. package/dist/openapi/models/ValidationErrorResponse.d.ts +51 -0
  159. package/dist/openapi/models/ValidationErrorResponse.js +60 -0
  160. package/dist/openapi/models/ValidationErrorResponseParamsInner.d.ts +38 -0
  161. package/dist/openapi/models/ValidationErrorResponseParamsInner.js +38 -0
  162. package/dist/openapi/models/WebhookSubscribeRequest.d.ts +1 -0
  163. package/dist/openapi/models/WebhookSubscribeRequest.js +6 -0
  164. package/dist/openapi/models/all.d.ts +51 -0
  165. package/dist/openapi/models/all.js +51 -0
  166. package/dist/openapi/types/ObservableAPI.d.ts +243 -4
  167. package/dist/openapi/types/ObservableAPI.js +486 -9
  168. package/dist/openapi/types/PromiseAPI.d.ts +239 -4
  169. package/dist/openapi/types/PromiseAPI.js +330 -22
  170. package/dist/sdk/clients/EventsClient.js +1 -1
  171. package/dist/sdk/clients/WebhooksClient.d.ts +2 -0
  172. package/dist/sdk/clients/WebhooksClient.js +14 -0
  173. package/package.json +1 -1
@@ -4,6 +4,8 @@ import { CreateCatalogProductRequest } from '../models/CreateCatalogProductReque
4
4
  import { CreateCatalogProductResponse } from '../models/CreateCatalogProductResponse';
5
5
  import { CreateContractRequest } from '../models/CreateContractRequest';
6
6
  import { CreateContractResponse } from '../models/CreateContractResponse';
7
+ import { CreateCustomFieldRequest } from '../models/CreateCustomFieldRequest';
8
+ import { CreateCustomFieldResponse } from '../models/CreateCustomFieldResponse';
7
9
  import { CreateCustomerRelationRequest } from '../models/CreateCustomerRelationRequest';
8
10
  import { CreateCustomerRelationResponse } from '../models/CreateCustomerRelationResponse';
9
11
  import { CreateCustomerRequest } from '../models/CreateCustomerRequest';
@@ -13,17 +15,20 @@ import { CreateMeasurementResponse } from '../models/CreateMeasurementResponse';
13
15
  import { DeductCreditsRequest } from '../models/DeductCreditsRequest';
14
16
  import { DeleteCatalogProductResponse } from '../models/DeleteCatalogProductResponse';
15
17
  import { DeleteContractResponse } from '../models/DeleteContractResponse';
18
+ import { DeleteCustomFieldResponse } from '../models/DeleteCustomFieldResponse';
16
19
  import { DeleteCustomerResponse } from '../models/DeleteCustomerResponse';
17
20
  import { DeleteEventResponse } from '../models/DeleteEventResponse';
18
21
  import { DeleteEventsByRefsRequest } from '../models/DeleteEventsByRefsRequest';
19
22
  import { DeleteEventsByRefsResponse } from '../models/DeleteEventsByRefsResponse';
20
23
  import { DeleteMeasurementResponse } from '../models/DeleteMeasurementResponse';
21
24
  import { DeleteMeterResponse } from '../models/DeleteMeterResponse';
25
+ import { DeletePlanResponse } from '../models/DeletePlanResponse';
22
26
  import { EventsDryRunRequest } from '../models/EventsDryRunRequest';
23
27
  import { EventsDryRunResponse } from '../models/EventsDryRunResponse';
24
28
  import { GetCatalogProductResponse } from '../models/GetCatalogProductResponse';
25
29
  import { GetContractByIntegrationIdResponse } from '../models/GetContractByIntegrationIdResponse';
26
30
  import { GetContractResponse } from '../models/GetContractResponse';
31
+ import { GetCustomFieldResponse } from '../models/GetCustomFieldResponse';
27
32
  import { GetCustomerByIntegrationIdResponse } from '../models/GetCustomerByIntegrationIdResponse';
28
33
  import { GetCustomerByNameResponse } from '../models/GetCustomerByNameResponse';
29
34
  import { GetCustomerProductsConsumptionsByAliasResponse } from '../models/GetCustomerProductsConsumptionsByAliasResponse';
@@ -34,6 +39,7 @@ import { GetEventResponse } from '../models/GetEventResponse';
34
39
  import { GetInvoiceResponse } from '../models/GetInvoiceResponse';
35
40
  import { GetMeasurementResponse } from '../models/GetMeasurementResponse';
36
41
  import { GetMeterResponse } from '../models/GetMeterResponse';
42
+ import { GetPlanResponse } from '../models/GetPlanResponse';
37
43
  import { GetProductConsumptionResponse } from '../models/GetProductConsumptionResponse';
38
44
  import { GrantCreditsRequest } from '../models/GrantCreditsRequest';
39
45
  import { IntegrationType } from '../models/IntegrationType';
@@ -41,10 +47,12 @@ import { InvoicePaymentStatusResponse } from '../models/InvoicePaymentStatusResp
41
47
  import { ListCatalogProductsResponse } from '../models/ListCatalogProductsResponse';
42
48
  import { ListContractsResponse } from '../models/ListContractsResponse';
43
49
  import { ListCreditLedgerEntriesResponse } from '../models/ListCreditLedgerEntriesResponse';
50
+ import { ListCustomFieldsResponse } from '../models/ListCustomFieldsResponse';
44
51
  import { ListCustomersResponse } from '../models/ListCustomersResponse';
45
52
  import { ListInvoicesResponse } from '../models/ListInvoicesResponse';
46
53
  import { ListMeasurementsResponse } from '../models/ListMeasurementsResponse';
47
54
  import { ListMetersResponse } from '../models/ListMetersResponse';
55
+ import { ListPlansResponse } from '../models/ListPlansResponse';
48
56
  import { LoginRequest } from '../models/LoginRequest';
49
57
  import { LoginResponse } from '../models/LoginResponse';
50
58
  import { QueryEventsResponse } from '../models/QueryEventsResponse';
@@ -53,10 +61,23 @@ import { SendEventsResponse } from '../models/SendEventsResponse';
53
61
  import { SubmitCloudUsageRequest } from '../models/SubmitCloudUsageRequest';
54
62
  import { UpdateCatalogProductRequest } from '../models/UpdateCatalogProductRequest';
55
63
  import { UpdateCatalogProductResponse } from '../models/UpdateCatalogProductResponse';
64
+ import { UpdateCustomFieldRequest } from '../models/UpdateCustomFieldRequest';
65
+ import { UpdateCustomFieldResponse } from '../models/UpdateCustomFieldResponse';
56
66
  import { UpdateCustomerRequest } from '../models/UpdateCustomerRequest';
57
67
  import { UpdateCustomerResponse } from '../models/UpdateCustomerResponse';
58
68
  import { UpdateMeterRequest } from '../models/UpdateMeterRequest';
59
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';
60
81
  import { WebhookSubscribeRequest } from '../models/WebhookSubscribeRequest';
61
82
  import { AuthApiRequestFactory, AuthApiResponseProcessor } from "../apis/AuthApi";
62
83
  export declare class PromiseAuthApi {
@@ -277,6 +298,75 @@ export declare class PromiseCreditsApi {
277
298
  */
278
299
  listCreditLedgerEntries(customerId: string, limit?: number, cursor?: string, _options?: Configuration): Promise<ListCreditLedgerEntriesResponse>;
279
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
+ }
280
370
  import { CustomersApiRequestFactory, CustomersApiResponseProcessor } from "../apis/CustomersApi";
281
371
  export declare class PromiseCustomersApi {
282
372
  private api;
@@ -478,20 +568,22 @@ export declare class PromiseEventsApi {
478
568
  * @param startTime
479
569
  * @param endTime
480
570
  * @param [eventName]
571
+ * @param [customerAlias]
481
572
  * @param [limit]
482
573
  * @param [cursor]
483
574
  */
484
- 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>>;
485
576
  /**
486
577
  * Fetch events occurring within a specified timestamp range. An optional event name can be provided to further filter the events.
487
578
  * Query events by timestamp period and optional event name
488
579
  * @param startTime
489
580
  * @param endTime
490
581
  * @param [eventName]
582
+ * @param [customerAlias]
491
583
  * @param [limit]
492
584
  * @param [cursor]
493
585
  */
494
- 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>;
495
587
  /**
496
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.
497
589
  * Submit a batch of events for ingestion
@@ -516,6 +608,100 @@ export declare class PromiseEventsApi {
516
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
517
609
  */
518
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>;
519
705
  }
520
706
  import { InvoicesApiRequestFactory, InvoicesApiResponseProcessor } from "../apis/InvoicesApi";
521
707
  export declare class PromiseInvoicesApi {
@@ -551,16 +737,22 @@ export declare class PromiseInvoicesApi {
551
737
  * @param [limit]
552
738
  * @param [cursor]
553
739
  * @param [customerId]
740
+ * @param [billingStatus] Filter invoices by their billing status
741
+ * @param [issuedAtFrom] Only include invoices issued on or after this timestamp
742
+ * @param [issuedAtTo] Only include invoices issued on or before this timestamp
554
743
  */
555
- listInvoicesWithHttpInfo(limit?: number, cursor?: string, customerId?: string, _options?: Configuration): Promise<HttpInfo<ListInvoicesResponse>>;
744
+ listInvoicesWithHttpInfo(limit?: number, cursor?: string, customerId?: string, billingStatus?: 'None' | 'Paid' | 'Rejected' | 'PendingPayment' | 'Overdue', issuedAtFrom?: Date, issuedAtTo?: Date, _options?: Configuration): Promise<HttpInfo<ListInvoicesResponse>>;
556
745
  /**
557
746
  * List invoices for the account. Optionally filter by customerId to retrieve invoices for a specific customer.
558
747
  * List invoices
559
748
  * @param [limit]
560
749
  * @param [cursor]
561
750
  * @param [customerId]
751
+ * @param [billingStatus] Filter invoices by their billing status
752
+ * @param [issuedAtFrom] Only include invoices issued on or after this timestamp
753
+ * @param [issuedAtTo] Only include invoices issued on or before this timestamp
562
754
  */
563
- listInvoices(limit?: number, cursor?: string, customerId?: string, _options?: Configuration): Promise<ListInvoicesResponse>;
755
+ listInvoices(limit?: number, cursor?: string, customerId?: string, billingStatus?: 'None' | 'Paid' | 'Rejected' | 'PendingPayment' | 'Overdue', issuedAtFrom?: Date, issuedAtTo?: Date, _options?: Configuration): Promise<ListInvoicesResponse>;
564
756
  }
565
757
  import { MeasurementsApiRequestFactory, MeasurementsApiResponseProcessor } from "../apis/MeasurementsApi";
566
758
  export declare class PromiseMeasurementsApi {
@@ -674,6 +866,49 @@ export declare class PromiseMetersApi {
674
866
  */
675
867
  updateMeter(updateMeterRequest: UpdateMeterRequest, meterId: string, _options?: Configuration): Promise<UpdateMeterResponse>;
676
868
  }
869
+ import { PlansApiRequestFactory, PlansApiResponseProcessor } from "../apis/PlansApi";
870
+ export declare class PromisePlansApi {
871
+ private api;
872
+ constructor(configuration: Configuration, requestFactory?: PlansApiRequestFactory, responseProcessor?: PlansApiResponseProcessor);
873
+ /**
874
+ * Delete a Plan by id.
875
+ * Delete Plan
876
+ * @param planId
877
+ */
878
+ deletePlanWithHttpInfo(planId: string, _options?: Configuration): Promise<HttpInfo<DeletePlanResponse>>;
879
+ /**
880
+ * Delete a Plan by id.
881
+ * Delete Plan
882
+ * @param planId
883
+ */
884
+ deletePlan(planId: string, _options?: Configuration): Promise<DeletePlanResponse>;
885
+ /**
886
+ * Get a Plan by id.
887
+ * Get Plan
888
+ * @param planId
889
+ */
890
+ getPlanWithHttpInfo(planId: string, _options?: Configuration): Promise<HttpInfo<GetPlanResponse>>;
891
+ /**
892
+ * Get a Plan by id.
893
+ * Get Plan
894
+ * @param planId
895
+ */
896
+ getPlan(planId: string, _options?: Configuration): Promise<GetPlanResponse>;
897
+ /**
898
+ * Get a list of Plans.
899
+ * List Plans
900
+ * @param [limit]
901
+ * @param [cursor]
902
+ */
903
+ listPlansWithHttpInfo(limit?: number, cursor?: string, _options?: Configuration): Promise<HttpInfo<ListPlansResponse>>;
904
+ /**
905
+ * Get a list of Plans.
906
+ * List Plans
907
+ * @param [limit]
908
+ * @param [cursor]
909
+ */
910
+ listPlans(limit?: number, cursor?: string, _options?: Configuration): Promise<ListPlansResponse>;
911
+ }
677
912
  import { ProductConsumptionsApiRequestFactory, ProductConsumptionsApiResponseProcessor } from "../apis/ProductConsumptionsApi";
678
913
  export declare class PromiseProductConsumptionsApi {
679
914
  private api;