@paid-ai/paid-node 1.8.0 → 2.0.0

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 (804) hide show
  1. package/dist/cjs/Client.d.ts +3 -3
  2. package/dist/cjs/Client.js +13 -13
  3. package/dist/cjs/api/errors/UnprocessableEntityError.d.ts +6 -0
  4. package/dist/cjs/api/errors/UnprocessableEntityError.js +50 -0
  5. package/dist/cjs/api/errors/index.d.ts +1 -0
  6. package/dist/cjs/api/errors/index.js +1 -0
  7. package/dist/cjs/api/resources/analytics/client/Client.d.ts +3 -2
  8. package/dist/cjs/api/resources/analytics/client/Client.js +5 -2
  9. package/dist/cjs/api/resources/analyticsExperimental/client/Client.d.ts +3 -2
  10. package/dist/cjs/api/resources/analyticsExperimental/client/Client.js +5 -2
  11. package/dist/cjs/api/resources/checkouts/client/Client.d.ts +2 -1
  12. package/dist/cjs/api/resources/checkouts/client/Client.js +4 -1
  13. package/dist/cjs/api/resources/checkouts/client/requests/CreateCheckoutRequest.d.ts +5 -0
  14. package/dist/cjs/api/resources/contacts/client/Client.d.ts +6 -4
  15. package/dist/cjs/api/resources/contacts/client/Client.js +10 -4
  16. package/dist/cjs/api/resources/credits/client/Client.d.ts +19 -0
  17. package/dist/cjs/api/resources/credits/client/Client.js +105 -1
  18. package/dist/cjs/api/resources/credits/client/requests/GetCreditTransactionSummaryRequest.d.ts +33 -0
  19. package/dist/cjs/api/resources/credits/client/requests/ListCreditTransactionsRequest.d.ts +2 -0
  20. package/dist/cjs/api/resources/credits/client/requests/index.d.ts +1 -0
  21. package/dist/cjs/api/resources/credits/types/GetCreditTransactionSummaryRequestGroupBy.d.ts +4 -0
  22. package/dist/cjs/api/resources/credits/types/GetCreditTransactionSummaryRequestGroupBy.js +7 -0
  23. package/dist/cjs/api/resources/credits/types/GetCreditTransactionSummaryRequestInterval.d.ts +6 -0
  24. package/dist/cjs/api/resources/credits/types/GetCreditTransactionSummaryRequestInterval.js +9 -0
  25. package/dist/cjs/api/resources/credits/types/GetCreditTransactionSummaryRequestType.d.ts +6 -0
  26. package/dist/cjs/api/resources/credits/types/GetCreditTransactionSummaryRequestType.js +9 -0
  27. package/dist/cjs/api/resources/credits/types/index.d.ts +3 -0
  28. package/dist/cjs/api/resources/credits/types/index.js +3 -0
  29. package/dist/cjs/api/resources/customViewsExperimental/client/Client.d.ts +26 -3
  30. package/dist/cjs/api/resources/customViewsExperimental/client/Client.js +101 -4
  31. package/dist/cjs/api/resources/customViewsExperimental/client/requests/CreateCustomViewRequest.d.ts +4 -0
  32. package/dist/cjs/api/resources/customViewsExperimental/client/requests/GetCustomViewCustomerUnitsRequest.d.ts +14 -0
  33. package/dist/cjs/api/resources/customViewsExperimental/client/requests/GetCustomViewDataRequest.d.ts +6 -0
  34. package/dist/cjs/api/resources/customViewsExperimental/client/requests/UpdateCustomViewRequest.d.ts +4 -0
  35. package/dist/cjs/api/resources/customViewsExperimental/client/requests/index.d.ts +1 -0
  36. package/dist/cjs/api/resources/customViewsExperimental/types/GetCustomViewDataRequestIncludeDraft.d.ts +5 -0
  37. package/dist/cjs/api/resources/customViewsExperimental/types/GetCustomViewDataRequestIncludeDraft.js +8 -0
  38. package/dist/cjs/api/resources/customViewsExperimental/types/GetCustomViewDataRequestUnitMode.d.ts +6 -0
  39. package/dist/cjs/api/resources/customViewsExperimental/types/GetCustomViewDataRequestUnitMode.js +9 -0
  40. package/dist/cjs/api/resources/customViewsExperimental/types/index.d.ts +2 -0
  41. package/dist/cjs/api/resources/customViewsExperimental/types/index.js +2 -0
  42. package/dist/cjs/api/resources/customerPortals/client/Client.d.ts +1 -1
  43. package/dist/cjs/api/resources/customerPortals/client/Client.js +1 -1
  44. package/dist/cjs/api/resources/customers/client/Client.d.ts +489 -19
  45. package/dist/cjs/api/resources/customers/client/Client.js +2018 -207
  46. package/dist/cjs/api/resources/customers/client/requests/CreateCustomerApiKeyByExternalIdRequest.d.ts +15 -0
  47. package/dist/cjs/api/resources/customers/client/requests/CreateCustomerApiKeyRequest.d.ts +15 -0
  48. package/dist/cjs/api/resources/customers/client/requests/CreateCustomerFundingInstructionsByExternalIdRequest.d.ts +12 -0
  49. package/dist/cjs/api/resources/customers/client/requests/CreateCustomerFundingInstructionsRequest.d.ts +13 -0
  50. package/dist/cjs/api/resources/customers/client/requests/CreateCustomerUnitAliasByExternalIdRequest.d.ts +18 -0
  51. package/dist/cjs/api/resources/customers/client/requests/CreateCustomerUnitAliasByKeyRequest.d.ts +15 -0
  52. package/dist/cjs/api/resources/customers/client/requests/CreateCustomerUnitAliasRequest.d.ts +18 -0
  53. package/dist/cjs/api/resources/customers/client/requests/CustomerUnitCreateUnderParent.d.ts +21 -0
  54. package/dist/cjs/api/resources/customers/client/requests/DeleteCustomerUnitAliasByExternalIdRequest.d.ts +16 -0
  55. package/dist/cjs/api/resources/customers/client/requests/DeleteCustomerUnitAliasByKeyRequest.d.ts +13 -0
  56. package/dist/cjs/api/resources/customers/client/requests/DeleteCustomerUnitAliasRequest.d.ts +16 -0
  57. package/dist/cjs/api/resources/customers/client/requests/GetCustomerFundingInstructionsByExternalIdRequest.d.ts +11 -0
  58. package/dist/cjs/api/resources/customers/client/requests/GetCustomerFundingInstructionsRequest.d.ts +12 -0
  59. package/dist/cjs/api/resources/customers/client/requests/GetCustomerUnitByKeyRequest.d.ts +10 -0
  60. package/dist/cjs/api/resources/customers/client/requests/GetCustomerUnitSpendByExternalIdRequest.d.ts +22 -0
  61. package/dist/cjs/api/resources/customers/client/requests/GetCustomerUnitSpendRequest.d.ts +22 -0
  62. package/dist/cjs/api/resources/customers/client/requests/GetCustomerUnitSpendRequest.js +3 -0
  63. package/dist/cjs/api/resources/customers/client/requests/GrantCustomerCreditsByExternalIdRequest.d.ts +2 -1
  64. package/dist/cjs/api/resources/customers/client/requests/GrantCustomerCreditsRequest.d.ts +2 -1
  65. package/dist/cjs/api/resources/customers/client/requests/ListCustomerApiKeysByExternalIdRequest.d.ts +12 -0
  66. package/dist/cjs/api/resources/customers/client/requests/ListCustomerApiKeysByExternalIdRequest.js +3 -0
  67. package/dist/cjs/api/resources/customers/client/requests/ListCustomerApiKeysRequest.d.ts +12 -0
  68. package/dist/cjs/api/resources/customers/client/requests/ListCustomerApiKeysRequest.js +3 -0
  69. package/dist/cjs/api/resources/customers/client/requests/ListCustomerUnitAliasesByExternalIdRequest.d.ts +15 -0
  70. package/dist/cjs/api/resources/customers/client/requests/ListCustomerUnitAliasesByExternalIdRequest.js +3 -0
  71. package/dist/cjs/api/resources/customers/client/requests/ListCustomerUnitAliasesByKeyRequest.d.ts +12 -0
  72. package/dist/cjs/api/resources/customers/client/requests/ListCustomerUnitAliasesByKeyRequest.js +3 -0
  73. package/dist/cjs/api/resources/customers/client/requests/ListCustomerUnitAliasesRequest.d.ts +15 -0
  74. package/dist/cjs/api/resources/customers/client/requests/ListCustomerUnitAliasesRequest.js +3 -0
  75. package/dist/cjs/api/resources/customers/client/requests/ListCustomerUnitsByExternalIdRequest.d.ts +1 -1
  76. package/dist/cjs/api/resources/customers/client/requests/ListCustomerUnitsRequest.d.ts +1 -1
  77. package/dist/cjs/api/resources/customers/client/requests/RevokeCustomerApiKeyByExternalIdRequest.d.ts +13 -0
  78. package/dist/cjs/api/resources/customers/client/requests/RevokeCustomerApiKeyByExternalIdRequest.js +3 -0
  79. package/dist/cjs/api/resources/customers/client/requests/RevokeCustomerApiKeyRequest.d.ts +13 -0
  80. package/dist/cjs/api/resources/customers/client/requests/RevokeCustomerApiKeyRequest.js +3 -0
  81. package/dist/cjs/api/resources/customers/client/requests/index.d.ts +23 -0
  82. package/dist/cjs/api/resources/customers/types/DeleteCustomerUnitAliasByExternalIdResponse.d.ts +1 -0
  83. package/dist/cjs/api/resources/customers/types/DeleteCustomerUnitAliasByExternalIdResponse.js +3 -0
  84. package/dist/cjs/api/resources/customers/types/DeleteCustomerUnitAliasByKeyResponse.d.ts +1 -0
  85. package/dist/cjs/api/resources/customers/types/DeleteCustomerUnitAliasByKeyResponse.js +3 -0
  86. package/dist/cjs/api/resources/customers/types/DeleteCustomerUnitAliasResponse.d.ts +1 -0
  87. package/dist/cjs/api/resources/customers/types/DeleteCustomerUnitAliasResponse.js +3 -0
  88. package/dist/cjs/api/resources/customers/types/ListCustomerUnitsByExternalIdRequestStatus.d.ts +1 -0
  89. package/dist/cjs/api/resources/customers/types/ListCustomerUnitsByExternalIdRequestStatus.js +1 -0
  90. package/dist/cjs/api/resources/customers/types/ListCustomerUnitsRequestStatus.d.ts +1 -0
  91. package/dist/cjs/api/resources/customers/types/ListCustomerUnitsRequestStatus.js +1 -0
  92. package/dist/cjs/api/resources/customers/types/index.d.ts +3 -0
  93. package/dist/cjs/api/resources/customers/types/index.js +3 -0
  94. package/dist/cjs/api/resources/deliveredValue/client/Client.d.ts +60 -0
  95. package/dist/cjs/api/resources/deliveredValue/client/Client.js +248 -0
  96. package/dist/cjs/api/resources/deliveredValue/client/requests/GetDeliveredValueRequest.d.ts +18 -0
  97. package/dist/cjs/api/resources/deliveredValue/client/requests/GetDeliveredValueRequest.js +3 -0
  98. package/dist/cjs/api/resources/deliveredValue/client/requests/GetDeliveredValueSummaryRequest.d.ts +29 -0
  99. package/dist/cjs/api/resources/deliveredValue/client/requests/GetDeliveredValueSummaryRequest.js +3 -0
  100. package/dist/cjs/api/resources/deliveredValue/client/requests/index.d.ts +2 -0
  101. package/dist/cjs/api/resources/{customerGroups → deliveredValue}/index.d.ts +1 -0
  102. package/dist/cjs/api/resources/{customerGroups → deliveredValue}/index.js +1 -0
  103. package/dist/cjs/api/resources/deliveredValue/types/GetDeliveredValueSummaryRequestGroupBy.d.ts +7 -0
  104. package/dist/cjs/api/resources/deliveredValue/types/GetDeliveredValueSummaryRequestGroupBy.js +10 -0
  105. package/dist/cjs/api/resources/deliveredValue/types/GetDeliveredValueSummaryRequestInterval.d.ts +8 -0
  106. package/dist/cjs/api/resources/deliveredValue/types/GetDeliveredValueSummaryRequestInterval.js +11 -0
  107. package/dist/cjs/api/resources/deliveredValue/types/index.d.ts +2 -0
  108. package/dist/cjs/api/resources/deliveredValue/types/index.js +18 -0
  109. package/dist/cjs/api/resources/index.d.ts +4 -2
  110. package/dist/cjs/api/resources/index.js +5 -3
  111. package/dist/cjs/api/resources/orders/client/Client.d.ts +87 -1
  112. package/dist/cjs/api/resources/orders/client/Client.js +146 -1
  113. package/dist/cjs/api/resources/orders/client/requests/CreateOrderRequest.d.ts +12 -1
  114. package/dist/cjs/api/resources/orders/client/requests/CreateOrderRequest.js +12 -0
  115. package/dist/cjs/api/resources/orders/client/requests/ProvisionRequest.d.ts +82 -0
  116. package/dist/cjs/api/resources/orders/client/requests/ProvisionRequest.js +3 -0
  117. package/dist/cjs/api/resources/orders/client/requests/UpdateOrderRequest.d.ts +12 -1
  118. package/dist/cjs/api/resources/orders/client/requests/UpdateOrderRequest.js +12 -0
  119. package/dist/cjs/api/resources/orders/client/requests/index.d.ts +1 -0
  120. package/dist/cjs/api/resources/paymentAllocations/client/Client.d.ts +2 -1
  121. package/dist/cjs/api/resources/paymentAllocations/client/Client.js +4 -1
  122. package/dist/cjs/api/resources/payments/client/requests/CreatePaymentRequest.d.ts +1 -1
  123. package/dist/cjs/api/resources/signals/client/Client.d.ts +137 -4
  124. package/dist/cjs/api/resources/signals/client/Client.js +389 -4
  125. package/dist/cjs/api/resources/signals/client/requests/BulkSignalsRequest.d.ts +17 -3
  126. package/dist/cjs/api/resources/signals/client/requests/CreateSignalSummaryExportRequest.d.ts +56 -0
  127. package/dist/cjs/api/resources/signals/client/requests/CreateSignalSummaryExportRequest.js +12 -0
  128. package/dist/cjs/api/resources/signals/client/requests/GetSignalSummaryExportRequest.d.ts +9 -0
  129. package/dist/cjs/api/resources/signals/client/requests/GetSignalSummaryExportRequest.js +3 -0
  130. package/dist/cjs/api/resources/signals/client/requests/GetSignalSummaryRequest.d.ts +45 -0
  131. package/dist/cjs/api/resources/signals/client/requests/GetSignalSummaryRequest.js +3 -0
  132. package/dist/cjs/api/resources/signals/client/requests/SignalLookupRequest.d.ts +10 -0
  133. package/dist/cjs/api/resources/signals/client/requests/SignalLookupRequest.js +3 -0
  134. package/dist/cjs/api/resources/signals/client/requests/index.d.ts +4 -0
  135. package/dist/cjs/api/resources/signals/index.d.ts +1 -0
  136. package/dist/cjs/api/resources/signals/index.js +1 -0
  137. package/dist/cjs/api/resources/signals/types/GetSignalSummaryRequestGroupBy.d.ts +5 -0
  138. package/dist/cjs/api/resources/signals/types/GetSignalSummaryRequestGroupBy.js +8 -0
  139. package/dist/cjs/api/resources/signals/types/GetSignalSummaryRequestInterval.d.ts +7 -0
  140. package/dist/cjs/api/resources/signals/types/GetSignalSummaryRequestInterval.js +10 -0
  141. package/dist/cjs/api/resources/signals/types/index.d.ts +2 -0
  142. package/dist/cjs/api/resources/signals/types/index.js +18 -0
  143. package/dist/cjs/api/resources/valueMetrics/client/Client.d.ts +1 -1
  144. package/dist/cjs/api/resources/valueMetrics/client/Client.js +1 -1
  145. package/dist/cjs/api/resources/valueModels/client/Client.d.ts +4 -2
  146. package/dist/cjs/api/resources/valueModels/client/Client.js +8 -2
  147. package/dist/cjs/api/resources/valueModels/client/requests/ValueModelUploadRequest.d.ts +2 -0
  148. package/dist/cjs/api/resources/valueReceipts/client/Client.d.ts +5 -5
  149. package/dist/cjs/api/resources/valueReceipts/client/Client.js +5 -5
  150. package/dist/cjs/api/resources/valueReceipts/client/requests/PublishValueReceiptBody.d.ts +1 -0
  151. package/dist/cjs/api/resources/webhooks/client/Client.d.ts +2 -2
  152. package/dist/cjs/api/resources/webhooks/client/Client.js +2 -2
  153. package/dist/cjs/api/resources/webhooks/client/requests/TestWebhookRequest.d.ts +1 -1
  154. package/dist/cjs/api/resources/webhooks/client/requests/UpdateWebhookRequest.d.ts +2 -2
  155. package/dist/cjs/api/resources/webhooks/types/TestWebhookRequestWebhookName.d.ts +0 -1
  156. package/dist/cjs/api/resources/webhooks/types/TestWebhookRequestWebhookName.js +0 -1
  157. package/dist/cjs/api/resources/webhooks/types/UpdateWebhookRequestWebhookName.d.ts +0 -1
  158. package/dist/cjs/api/resources/webhooks/types/UpdateWebhookRequestWebhookName.js +0 -1
  159. package/dist/cjs/api/types/Attribution.d.ts +3 -0
  160. package/dist/cjs/api/types/Checkout.d.ts +4 -0
  161. package/dist/cjs/api/types/CheckoutDetails.d.ts +4 -0
  162. package/dist/cjs/api/types/CreateOrderLineAttributeRequest.d.ts +9 -0
  163. package/dist/cjs/api/types/CreateOrderLineAttributeRequest.js +3 -0
  164. package/dist/cjs/api/types/CreditBenefitInput.d.ts +5 -0
  165. package/dist/cjs/api/types/CreditBenefitInput.js +2 -0
  166. package/dist/cjs/api/types/CreditBenefitOutput.d.ts +2 -0
  167. package/dist/cjs/api/types/CreditGrantCreateRequest.d.ts +2 -0
  168. package/dist/cjs/api/types/CreditTransaction.d.ts +1 -1
  169. package/dist/cjs/api/types/CreditTransactionSummaryBucket.d.ts +25 -0
  170. package/dist/cjs/api/types/CreditTransactionSummaryBucket.js +3 -0
  171. package/dist/cjs/api/types/CreditTransactionSummaryResponse.d.ts +32 -0
  172. package/dist/cjs/api/types/CreditTransactionSummaryResponse.js +23 -0
  173. package/dist/cjs/api/types/CustomView.d.ts +4 -0
  174. package/dist/cjs/api/types/CustomViewAuthoringDetail.d.ts +4 -0
  175. package/dist/cjs/api/types/CustomViewContextCap.d.ts +27 -0
  176. package/dist/cjs/api/types/CustomViewContextCap.js +11 -0
  177. package/dist/cjs/api/types/CustomViewCustomerUnit.d.ts +16 -0
  178. package/dist/cjs/api/types/CustomViewCustomerUnit.js +3 -0
  179. package/dist/cjs/api/types/CustomViewDataContext.d.ts +57 -0
  180. package/dist/cjs/api/types/CustomViewDataContext.js +21 -0
  181. package/dist/cjs/api/types/CustomViewDetail.d.ts +4 -0
  182. package/dist/cjs/api/types/CustomViewPreviewHarnessRequest.d.ts +2 -1
  183. package/dist/cjs/api/types/CustomViewSummary.d.ts +4 -0
  184. package/dist/cjs/api/types/CustomViewUnitSelection.d.ts +14 -0
  185. package/dist/cjs/api/types/CustomViewUnitSelection.js +3 -0
  186. package/dist/cjs/api/types/CustomerAlias.d.ts +2 -0
  187. package/dist/cjs/api/types/CustomerApiKey.d.ts +31 -0
  188. package/dist/cjs/api/types/CustomerApiKey.js +13 -0
  189. package/dist/cjs/api/types/CustomerApiKeyCreate.d.ts +8 -0
  190. package/dist/cjs/api/types/CustomerApiKeyCreate.js +3 -0
  191. package/dist/cjs/api/types/CustomerApiKeyCreated.d.ts +33 -0
  192. package/dist/cjs/api/types/CustomerApiKeyCreated.js +13 -0
  193. package/dist/cjs/api/types/CustomerApiKeyList.d.ts +5 -0
  194. package/dist/cjs/api/types/CustomerApiKeyList.js +3 -0
  195. package/dist/cjs/api/types/CustomerAttribution.d.ts +3 -0
  196. package/dist/cjs/api/types/CustomerFundingInstructions.d.ts +24 -0
  197. package/dist/cjs/api/types/CustomerFundingInstructions.js +10 -0
  198. package/dist/cjs/api/types/CustomerFundingInstructionsCreateRequest.d.ts +4 -0
  199. package/dist/cjs/api/types/CustomerFundingInstructionsCreateRequest.js +3 -0
  200. package/dist/cjs/api/types/CustomerUnit.d.ts +13 -2
  201. package/dist/cjs/api/types/CustomerUnit.js +2 -1
  202. package/dist/cjs/api/types/CustomerUnitAttribution.d.ts +2 -2
  203. package/dist/cjs/api/types/CustomerUnitByKey.d.ts +37 -0
  204. package/dist/cjs/api/types/CustomerUnitByKey.js +13 -0
  205. package/dist/cjs/api/types/CustomerUnitCapEndedPolicy.d.ts +5 -3
  206. package/dist/cjs/api/types/CustomerUnitCapEndedPolicy.js +1 -1
  207. package/dist/cjs/api/types/CustomerUnitCapPolicy.d.ts +5 -3
  208. package/dist/cjs/api/types/CustomerUnitCapPolicy.js +1 -1
  209. package/dist/cjs/api/types/CustomerUnitCapSavedPolicy.d.ts +26 -0
  210. package/dist/cjs/api/types/CustomerUnitCapSavedPolicy.js +11 -0
  211. package/dist/cjs/api/types/CustomerUnitCapSchedule.d.ts +9 -0
  212. package/dist/cjs/api/types/CustomerUnitCapSchedule.js +3 -0
  213. package/dist/cjs/api/types/CustomerUnitCapScheduleInput.d.ts +9 -0
  214. package/dist/cjs/api/types/CustomerUnitCapScheduleInput.js +3 -0
  215. package/dist/cjs/api/types/CustomerUnitCapSet.d.ts +5 -3
  216. package/dist/cjs/api/types/CustomerUnitCapSet.js +1 -1
  217. package/dist/cjs/api/types/CustomerUnitCapSetResponse.d.ts +3 -1
  218. package/dist/cjs/api/types/CustomerUnitCreate.d.ts +3 -1
  219. package/dist/cjs/api/types/CustomerUnitCreatedUnderParent.d.ts +34 -0
  220. package/dist/cjs/api/types/CustomerUnitCreatedUnderParent.js +13 -0
  221. package/dist/cjs/api/types/CustomerUnitSpendResponse.d.ts +12 -0
  222. package/dist/cjs/api/types/CustomerUnitSpendResponse.js +3 -0
  223. package/dist/cjs/api/types/CustomerUnitSpendWindow.d.ts +9 -0
  224. package/dist/cjs/api/types/CustomerUnitSpendWindow.js +3 -0
  225. package/dist/cjs/api/types/CustomerUnitUpdate.d.ts +2 -0
  226. package/dist/cjs/api/types/DeliveredValueCalculation.d.ts +11 -0
  227. package/dist/cjs/api/types/DeliveredValueCalculation.js +3 -0
  228. package/dist/cjs/api/types/DeliveredValueCalculationTerm.d.ts +34 -0
  229. package/dist/cjs/api/types/DeliveredValueCalculationTerm.js +24 -0
  230. package/dist/cjs/api/types/DeliveredValueMetric.d.ts +54 -0
  231. package/dist/cjs/api/types/DeliveredValueMetric.js +3 -0
  232. package/dist/cjs/api/types/DeliveredValueResponse.d.ts +34 -0
  233. package/dist/cjs/api/types/DeliveredValueResponse.js +3 -0
  234. package/dist/cjs/api/types/DeliveredValueSignal.d.ts +14 -0
  235. package/dist/cjs/api/types/DeliveredValueSignal.js +3 -0
  236. package/dist/cjs/api/types/DeliveredValueSignalValue.d.ts +8 -0
  237. package/dist/cjs/api/types/DeliveredValueSignalValue.js +3 -0
  238. package/dist/cjs/api/types/DeliveredValueSummaryBucket.d.ts +20 -0
  239. package/dist/cjs/api/types/DeliveredValueSummaryBucket.js +3 -0
  240. package/dist/cjs/api/types/DeliveredValueSummaryResponse.d.ts +41 -0
  241. package/dist/cjs/api/types/DeliveredValueSummaryResponse.js +22 -0
  242. package/dist/cjs/api/types/GrantCustomerCreditsResponse.d.ts +1 -1
  243. package/dist/cjs/api/types/PlanCreditBenefit.d.ts +4 -6
  244. package/dist/cjs/api/types/PlanCreditBenefit.js +0 -4
  245. package/dist/cjs/api/types/PricingOutput.d.ts +3 -0
  246. package/dist/cjs/api/types/ProductCreditBenefitInput.d.ts +5 -0
  247. package/dist/cjs/api/types/ProductCreditBenefitInput.js +2 -0
  248. package/dist/cjs/api/types/ProductCreditBenefitOutput.d.ts +2 -0
  249. package/dist/cjs/api/types/ProductPricingOutput.d.ts +3 -0
  250. package/dist/cjs/api/types/ProductSeatBasedPrepaidCreditsInput.d.ts +3 -0
  251. package/dist/cjs/api/types/ProductUsageBracketedPrepaidCreditsInput.d.ts +4 -0
  252. package/dist/cjs/api/types/ProductUsageBracketedPrepaidCreditsInput.js +1 -0
  253. package/dist/cjs/api/types/ProductUsageCostPlusInput.d.ts +2 -0
  254. package/dist/cjs/api/types/ProductUsageCostPlusInput.js +1 -0
  255. package/dist/cjs/api/types/ProductUsageGraduatedInput.d.ts +2 -0
  256. package/dist/cjs/api/types/ProductUsageGraduatedInput.js +1 -0
  257. package/dist/cjs/api/types/ProductUsagePerUnitInput.d.ts +2 -0
  258. package/dist/cjs/api/types/ProductUsagePerUnitInput.js +1 -0
  259. package/dist/cjs/api/types/ProductUsagePrepaidCreditsInput.d.ts +5 -0
  260. package/dist/cjs/api/types/ProductUsagePrepaidCreditsInput.js +1 -0
  261. package/dist/cjs/api/types/ProductUsageVolumeInput.d.ts +2 -0
  262. package/dist/cjs/api/types/ProductUsageVolumeInput.js +1 -0
  263. package/dist/cjs/api/types/ProvisionBillingFrequencyOverride.d.ts +14 -0
  264. package/dist/cjs/api/types/ProvisionBillingFrequencyOverride.js +14 -0
  265. package/dist/cjs/api/types/ProvisionContact.d.ts +20 -0
  266. package/dist/cjs/api/types/ProvisionContact.js +14 -0
  267. package/dist/cjs/api/types/ProvisionCreatedContact.d.ts +14 -0
  268. package/dist/cjs/api/types/ProvisionCreatedContact.js +12 -0
  269. package/dist/cjs/api/types/ProvisionCreatedCustomer.d.ts +14 -0
  270. package/dist/cjs/api/types/ProvisionCreatedCustomer.js +12 -0
  271. package/dist/cjs/api/types/ProvisionCreatedOrder.d.ts +17 -0
  272. package/dist/cjs/api/types/ProvisionCreatedOrder.js +12 -0
  273. package/dist/cjs/api/types/ProvisionCreatedOrderLine.d.ts +17 -0
  274. package/dist/cjs/api/types/ProvisionCreatedOrderLine.js +12 -0
  275. package/dist/cjs/api/types/ProvisionCreditBenefit.d.ts +44 -0
  276. package/dist/cjs/api/types/ProvisionCreditBenefit.js +26 -0
  277. package/dist/cjs/api/types/ProvisionCustomer.d.ts +23 -0
  278. package/dist/cjs/api/types/ProvisionCustomer.js +12 -0
  279. package/dist/cjs/api/types/ProvisionExternalReference.d.ts +16 -0
  280. package/dist/cjs/api/types/ProvisionExternalReference.js +14 -0
  281. package/dist/cjs/api/types/ProvisionOrder.d.ts +39 -0
  282. package/dist/cjs/api/types/ProvisionOrder.js +20 -0
  283. package/dist/cjs/api/types/ProvisionOrderLine.d.ts +12 -0
  284. package/dist/cjs/api/types/ProvisionOrderLine.js +3 -0
  285. package/dist/cjs/api/types/ProvisionOrderLineAttribute.d.ts +96 -0
  286. package/dist/cjs/api/types/ProvisionOrderLineAttribute.js +50 -0
  287. package/dist/cjs/api/types/ProvisionOrderLineType.d.ts +7 -0
  288. package/dist/cjs/api/types/ProvisionOrderLineType.js +10 -0
  289. package/dist/cjs/api/types/ProvisionProduct.d.ts +95 -0
  290. package/dist/cjs/api/types/ProvisionProduct.js +52 -0
  291. package/dist/cjs/api/types/ProvisionResponse.d.ts +17 -0
  292. package/dist/cjs/api/types/ProvisionResponse.js +12 -0
  293. package/dist/cjs/api/types/SeatBasedPrepaidCreditsInput.d.ts +3 -0
  294. package/dist/cjs/api/types/Signal.d.ts +8 -2
  295. package/dist/cjs/api/types/SignalListItem.d.ts +1 -1
  296. package/dist/cjs/api/types/SignalLookupResponse.d.ts +7 -0
  297. package/dist/cjs/api/types/SignalLookupResponse.js +3 -0
  298. package/dist/cjs/api/types/SignalSummaryBandsDimension.d.ts +21 -0
  299. package/dist/cjs/api/types/SignalSummaryBandsDimension.js +3 -0
  300. package/dist/cjs/api/types/SignalSummaryColumn.d.ts +8 -0
  301. package/dist/cjs/api/types/SignalSummaryColumn.js +3 -0
  302. package/dist/cjs/api/types/SignalSummaryDefinitionSpec.d.ts +21 -0
  303. package/dist/cjs/api/types/SignalSummaryDefinitionSpec.js +11 -0
  304. package/dist/cjs/api/types/SignalSummaryDefinitionSpecDimensionsItem.d.ts +10 -0
  305. package/dist/cjs/api/types/SignalSummaryDefinitionSpecDimensionsItem.js +3 -0
  306. package/dist/cjs/api/types/SignalSummaryExport.d.ts +36 -0
  307. package/dist/cjs/api/types/SignalSummaryExport.js +18 -0
  308. package/dist/cjs/api/types/SignalSummaryGroups.d.ts +9 -0
  309. package/dist/cjs/api/types/SignalSummaryGroups.js +3 -0
  310. package/dist/cjs/api/types/SignalSummaryMeasure.d.ts +16 -0
  311. package/dist/cjs/api/types/SignalSummaryMeasure.js +14 -0
  312. package/dist/cjs/api/types/SignalSummaryPage.d.ts +8 -0
  313. package/dist/cjs/api/types/SignalSummaryPage.js +3 -0
  314. package/dist/cjs/api/types/SignalSummaryPoint.d.ts +16 -0
  315. package/dist/cjs/api/types/SignalSummaryPoint.js +3 -0
  316. package/dist/cjs/api/types/SignalSummaryPresenceDimension.d.ts +23 -0
  317. package/dist/cjs/api/types/SignalSummaryPresenceDimension.js +3 -0
  318. package/dist/cjs/api/types/SignalSummaryResponse.d.ts +29 -0
  319. package/dist/cjs/api/types/SignalSummaryResponse.js +19 -0
  320. package/dist/cjs/api/types/SignalSummarySignalSelection.d.ts +8 -0
  321. package/dist/cjs/api/types/SignalSummarySignalSelection.js +3 -0
  322. package/dist/cjs/api/types/SignalSummarySpecInput.d.ts +21 -0
  323. package/dist/cjs/api/types/SignalSummarySpecInput.js +11 -0
  324. package/dist/cjs/api/types/SignalSummarySpecInputDimensionsItem.d.ts +10 -0
  325. package/dist/cjs/api/types/SignalSummarySpecInputDimensionsItem.js +3 -0
  326. package/dist/cjs/api/types/SignalsMetadataResponse.d.ts +22 -1
  327. package/dist/cjs/api/types/SignalsMetadataResponse.js +24 -0
  328. package/dist/cjs/api/types/UpdateContactRequest.d.ts +1 -0
  329. package/dist/cjs/api/types/UsageBracketedPrepaidCreditsInput.d.ts +4 -0
  330. package/dist/cjs/api/types/UsageBracketedPrepaidCreditsInput.js +1 -0
  331. package/dist/cjs/api/types/UsageCostPlusInput.d.ts +2 -0
  332. package/dist/cjs/api/types/UsageCostPlusInput.js +1 -0
  333. package/dist/cjs/api/types/UsageGraduatedInput.d.ts +2 -0
  334. package/dist/cjs/api/types/UsageGraduatedInput.js +1 -0
  335. package/dist/cjs/api/types/UsagePerUnitInput.d.ts +2 -0
  336. package/dist/cjs/api/types/UsagePerUnitInput.js +1 -0
  337. package/dist/cjs/api/types/UsagePrepaidCreditsInput.d.ts +5 -0
  338. package/dist/cjs/api/types/UsagePrepaidCreditsInput.js +1 -0
  339. package/dist/cjs/api/types/UsageVolumeInput.d.ts +2 -0
  340. package/dist/cjs/api/types/UsageVolumeInput.js +1 -0
  341. package/dist/cjs/api/types/ValidateCustomViewRequest.d.ts +4 -0
  342. package/dist/cjs/api/types/ValueModelContent.d.ts +17 -15
  343. package/dist/cjs/api/types/ValueModelContent.js +7 -0
  344. package/dist/cjs/api/types/ValueReceiptDetail.d.ts +1 -0
  345. package/dist/cjs/api/types/ValueReceiptSummary.d.ts +1 -0
  346. package/dist/cjs/api/types/ValueReceiptSyncResponse.d.ts +1 -0
  347. package/dist/cjs/api/types/ViewCustomerUnitsResponse.d.ts +7 -0
  348. package/dist/cjs/api/types/ViewCustomerUnitsResponse.js +3 -0
  349. package/dist/cjs/api/types/ViewDataResponse.d.ts +2 -0
  350. package/dist/cjs/api/types/Webhook.d.ts +0 -1
  351. package/dist/cjs/api/types/Webhook.js +0 -1
  352. package/dist/cjs/api/types/WebhookUpdateResponse.d.ts +0 -1
  353. package/dist/cjs/api/types/WebhookUpdateResponse.js +0 -1
  354. package/dist/cjs/api/types/WritableProvisionOrderLineType.d.ts +6 -0
  355. package/dist/cjs/api/types/WritableProvisionOrderLineType.js +9 -0
  356. package/dist/cjs/api/types/index.d.ts +59 -10
  357. package/dist/cjs/api/types/index.js +59 -10
  358. package/dist/cjs/version.d.ts +1 -1
  359. package/dist/cjs/version.js +1 -1
  360. package/dist/esm/Client.d.mts +3 -3
  361. package/dist/esm/Client.mjs +7 -7
  362. package/dist/esm/api/errors/UnprocessableEntityError.d.mts +6 -0
  363. package/dist/esm/api/errors/UnprocessableEntityError.mjs +13 -0
  364. package/dist/esm/api/errors/index.d.mts +1 -0
  365. package/dist/esm/api/errors/index.mjs +1 -0
  366. package/dist/esm/api/resources/analytics/client/Client.d.mts +3 -2
  367. package/dist/esm/api/resources/analytics/client/Client.mjs +5 -2
  368. package/dist/esm/api/resources/analyticsExperimental/client/Client.d.mts +3 -2
  369. package/dist/esm/api/resources/analyticsExperimental/client/Client.mjs +5 -2
  370. package/dist/esm/api/resources/checkouts/client/Client.d.mts +2 -1
  371. package/dist/esm/api/resources/checkouts/client/Client.mjs +4 -1
  372. package/dist/esm/api/resources/checkouts/client/requests/CreateCheckoutRequest.d.mts +5 -0
  373. package/dist/esm/api/resources/contacts/client/Client.d.mts +6 -4
  374. package/dist/esm/api/resources/contacts/client/Client.mjs +10 -4
  375. package/dist/esm/api/resources/credits/client/Client.d.mts +19 -0
  376. package/dist/esm/api/resources/credits/client/Client.mjs +105 -1
  377. package/dist/esm/api/resources/credits/client/requests/GetCreditTransactionSummaryRequest.d.mts +33 -0
  378. package/dist/esm/api/resources/credits/client/requests/ListCreditTransactionsRequest.d.mts +2 -0
  379. package/dist/esm/api/resources/credits/client/requests/index.d.mts +1 -0
  380. package/dist/esm/api/resources/credits/types/GetCreditTransactionSummaryRequestGroupBy.d.mts +4 -0
  381. package/dist/esm/api/resources/credits/types/GetCreditTransactionSummaryRequestGroupBy.mjs +4 -0
  382. package/dist/esm/api/resources/credits/types/GetCreditTransactionSummaryRequestInterval.d.mts +6 -0
  383. package/dist/esm/api/resources/credits/types/GetCreditTransactionSummaryRequestInterval.mjs +6 -0
  384. package/dist/esm/api/resources/credits/types/GetCreditTransactionSummaryRequestType.d.mts +6 -0
  385. package/dist/esm/api/resources/credits/types/GetCreditTransactionSummaryRequestType.mjs +6 -0
  386. package/dist/esm/api/resources/credits/types/index.d.mts +3 -0
  387. package/dist/esm/api/resources/credits/types/index.mjs +3 -0
  388. package/dist/esm/api/resources/customViewsExperimental/client/Client.d.mts +26 -3
  389. package/dist/esm/api/resources/customViewsExperimental/client/Client.mjs +101 -4
  390. package/dist/esm/api/resources/customViewsExperimental/client/requests/CreateCustomViewRequest.d.mts +4 -0
  391. package/dist/esm/api/resources/customViewsExperimental/client/requests/GetCustomViewCustomerUnitsRequest.d.mts +14 -0
  392. package/dist/esm/api/resources/customViewsExperimental/client/requests/GetCustomViewDataRequest.d.mts +6 -0
  393. package/dist/esm/api/resources/customViewsExperimental/client/requests/UpdateCustomViewRequest.d.mts +4 -0
  394. package/dist/esm/api/resources/customViewsExperimental/client/requests/index.d.mts +1 -0
  395. package/dist/esm/api/resources/customViewsExperimental/types/GetCustomViewDataRequestIncludeDraft.d.mts +5 -0
  396. package/dist/esm/api/resources/customViewsExperimental/types/GetCustomViewDataRequestIncludeDraft.mjs +5 -0
  397. package/dist/esm/api/resources/customViewsExperimental/types/GetCustomViewDataRequestUnitMode.d.mts +6 -0
  398. package/dist/esm/api/resources/customViewsExperimental/types/GetCustomViewDataRequestUnitMode.mjs +6 -0
  399. package/dist/esm/api/resources/customViewsExperimental/types/index.d.mts +2 -0
  400. package/dist/esm/api/resources/customViewsExperimental/types/index.mjs +2 -0
  401. package/dist/esm/api/resources/customerPortals/client/Client.d.mts +1 -1
  402. package/dist/esm/api/resources/customerPortals/client/Client.mjs +1 -1
  403. package/dist/esm/api/resources/customers/client/Client.d.mts +489 -19
  404. package/dist/esm/api/resources/customers/client/Client.mjs +2018 -207
  405. package/dist/esm/api/resources/customers/client/requests/CreateCustomerApiKeyByExternalIdRequest.d.mts +15 -0
  406. package/dist/esm/api/resources/customers/client/requests/CreateCustomerApiKeyRequest.d.mts +15 -0
  407. package/dist/esm/api/resources/customers/client/requests/CreateCustomerFundingInstructionsByExternalIdRequest.d.mts +12 -0
  408. package/dist/esm/api/resources/customers/client/requests/CreateCustomerFundingInstructionsRequest.d.mts +13 -0
  409. package/dist/esm/api/resources/customers/client/requests/CreateCustomerUnitAliasByExternalIdRequest.d.mts +18 -0
  410. package/dist/esm/api/resources/customers/client/requests/CreateCustomerUnitAliasByKeyRequest.d.mts +15 -0
  411. package/dist/esm/api/resources/customers/client/requests/CreateCustomerUnitAliasRequest.d.mts +18 -0
  412. package/dist/esm/api/resources/customers/client/requests/CustomerUnitCreateUnderParent.d.mts +21 -0
  413. package/dist/esm/api/resources/customers/client/requests/DeleteCustomerUnitAliasByExternalIdRequest.d.mts +16 -0
  414. package/dist/esm/api/resources/customers/client/requests/DeleteCustomerUnitAliasByKeyRequest.d.mts +13 -0
  415. package/dist/esm/api/resources/customers/client/requests/DeleteCustomerUnitAliasRequest.d.mts +16 -0
  416. package/dist/esm/api/resources/customers/client/requests/GetCustomerFundingInstructionsByExternalIdRequest.d.mts +11 -0
  417. package/dist/esm/api/resources/customers/client/requests/GetCustomerFundingInstructionsRequest.d.mts +12 -0
  418. package/dist/esm/api/resources/customers/client/requests/GetCustomerUnitByKeyRequest.d.mts +10 -0
  419. package/dist/esm/api/resources/customers/client/requests/GetCustomerUnitSpendByExternalIdRequest.d.mts +22 -0
  420. package/dist/esm/api/resources/customers/client/requests/GetCustomerUnitSpendRequest.d.mts +22 -0
  421. package/dist/esm/api/resources/customers/client/requests/GetCustomerUnitSpendRequest.mjs +2 -0
  422. package/dist/esm/api/resources/customers/client/requests/GrantCustomerCreditsByExternalIdRequest.d.mts +2 -1
  423. package/dist/esm/api/resources/customers/client/requests/GrantCustomerCreditsRequest.d.mts +2 -1
  424. package/dist/esm/api/resources/customers/client/requests/ListCustomerApiKeysByExternalIdRequest.d.mts +12 -0
  425. package/dist/esm/api/resources/customers/client/requests/ListCustomerApiKeysByExternalIdRequest.mjs +2 -0
  426. package/dist/esm/api/resources/customers/client/requests/ListCustomerApiKeysRequest.d.mts +12 -0
  427. package/dist/esm/api/resources/customers/client/requests/ListCustomerApiKeysRequest.mjs +2 -0
  428. package/dist/esm/api/resources/customers/client/requests/ListCustomerUnitAliasesByExternalIdRequest.d.mts +15 -0
  429. package/dist/esm/api/resources/customers/client/requests/ListCustomerUnitAliasesByExternalIdRequest.mjs +2 -0
  430. package/dist/esm/api/resources/customers/client/requests/ListCustomerUnitAliasesByKeyRequest.d.mts +12 -0
  431. package/dist/esm/api/resources/customers/client/requests/ListCustomerUnitAliasesByKeyRequest.mjs +2 -0
  432. package/dist/esm/api/resources/customers/client/requests/ListCustomerUnitAliasesRequest.d.mts +15 -0
  433. package/dist/esm/api/resources/customers/client/requests/ListCustomerUnitAliasesRequest.mjs +2 -0
  434. package/dist/esm/api/resources/customers/client/requests/ListCustomerUnitsByExternalIdRequest.d.mts +1 -1
  435. package/dist/esm/api/resources/customers/client/requests/ListCustomerUnitsRequest.d.mts +1 -1
  436. package/dist/esm/api/resources/customers/client/requests/RevokeCustomerApiKeyByExternalIdRequest.d.mts +13 -0
  437. package/dist/esm/api/resources/customers/client/requests/RevokeCustomerApiKeyByExternalIdRequest.mjs +2 -0
  438. package/dist/esm/api/resources/customers/client/requests/RevokeCustomerApiKeyRequest.d.mts +13 -0
  439. package/dist/esm/api/resources/customers/client/requests/RevokeCustomerApiKeyRequest.mjs +2 -0
  440. package/dist/esm/api/resources/customers/client/requests/index.d.mts +23 -0
  441. package/dist/esm/api/resources/customers/types/DeleteCustomerUnitAliasByExternalIdResponse.d.mts +1 -0
  442. package/dist/esm/api/resources/customers/types/DeleteCustomerUnitAliasByExternalIdResponse.mjs +2 -0
  443. package/dist/esm/api/resources/customers/types/DeleteCustomerUnitAliasByKeyResponse.d.mts +1 -0
  444. package/dist/esm/api/resources/customers/types/DeleteCustomerUnitAliasByKeyResponse.mjs +2 -0
  445. package/dist/esm/api/resources/customers/types/DeleteCustomerUnitAliasResponse.d.mts +1 -0
  446. package/dist/esm/api/resources/customers/types/DeleteCustomerUnitAliasResponse.mjs +2 -0
  447. package/dist/esm/api/resources/customers/types/ListCustomerUnitsByExternalIdRequestStatus.d.mts +1 -0
  448. package/dist/esm/api/resources/customers/types/ListCustomerUnitsByExternalIdRequestStatus.mjs +1 -0
  449. package/dist/esm/api/resources/customers/types/ListCustomerUnitsRequestStatus.d.mts +1 -0
  450. package/dist/esm/api/resources/customers/types/ListCustomerUnitsRequestStatus.mjs +1 -0
  451. package/dist/esm/api/resources/customers/types/index.d.mts +3 -0
  452. package/dist/esm/api/resources/customers/types/index.mjs +3 -0
  453. package/dist/esm/api/resources/deliveredValue/client/Client.d.mts +60 -0
  454. package/dist/esm/api/resources/deliveredValue/client/Client.mjs +211 -0
  455. package/dist/esm/api/resources/deliveredValue/client/requests/GetDeliveredValueRequest.d.mts +18 -0
  456. package/dist/esm/api/resources/deliveredValue/client/requests/GetDeliveredValueRequest.mjs +2 -0
  457. package/dist/esm/api/resources/deliveredValue/client/requests/GetDeliveredValueSummaryRequest.d.mts +29 -0
  458. package/dist/esm/api/resources/deliveredValue/client/requests/GetDeliveredValueSummaryRequest.mjs +2 -0
  459. package/dist/esm/api/resources/deliveredValue/client/requests/index.d.mts +2 -0
  460. package/dist/esm/api/resources/{customerGroups → deliveredValue}/index.d.mts +1 -0
  461. package/dist/esm/api/resources/{customerGroups → deliveredValue}/index.mjs +1 -0
  462. package/dist/esm/api/resources/deliveredValue/types/GetDeliveredValueSummaryRequestGroupBy.d.mts +7 -0
  463. package/dist/esm/api/resources/deliveredValue/types/GetDeliveredValueSummaryRequestGroupBy.mjs +7 -0
  464. package/dist/esm/api/resources/deliveredValue/types/GetDeliveredValueSummaryRequestInterval.d.mts +8 -0
  465. package/dist/esm/api/resources/deliveredValue/types/GetDeliveredValueSummaryRequestInterval.mjs +8 -0
  466. package/dist/esm/api/resources/deliveredValue/types/index.d.mts +2 -0
  467. package/dist/esm/api/resources/deliveredValue/types/index.mjs +2 -0
  468. package/dist/esm/api/resources/index.d.mts +4 -2
  469. package/dist/esm/api/resources/index.mjs +4 -2
  470. package/dist/esm/api/resources/orders/client/Client.d.mts +87 -1
  471. package/dist/esm/api/resources/orders/client/Client.mjs +146 -1
  472. package/dist/esm/api/resources/orders/client/requests/CreateOrderRequest.d.mts +12 -1
  473. package/dist/esm/api/resources/orders/client/requests/CreateOrderRequest.mjs +11 -1
  474. package/dist/esm/api/resources/orders/client/requests/ProvisionRequest.d.mts +82 -0
  475. package/dist/esm/api/resources/orders/client/requests/ProvisionRequest.mjs +2 -0
  476. package/dist/esm/api/resources/orders/client/requests/UpdateOrderRequest.d.mts +12 -1
  477. package/dist/esm/api/resources/orders/client/requests/UpdateOrderRequest.mjs +11 -1
  478. package/dist/esm/api/resources/orders/client/requests/index.d.mts +1 -0
  479. package/dist/esm/api/resources/paymentAllocations/client/Client.d.mts +2 -1
  480. package/dist/esm/api/resources/paymentAllocations/client/Client.mjs +4 -1
  481. package/dist/esm/api/resources/payments/client/requests/CreatePaymentRequest.d.mts +1 -1
  482. package/dist/esm/api/resources/signals/client/Client.d.mts +137 -4
  483. package/dist/esm/api/resources/signals/client/Client.mjs +389 -4
  484. package/dist/esm/api/resources/signals/client/requests/BulkSignalsRequest.d.mts +17 -3
  485. package/dist/esm/api/resources/signals/client/requests/CreateSignalSummaryExportRequest.d.mts +56 -0
  486. package/dist/esm/api/resources/signals/client/requests/CreateSignalSummaryExportRequest.mjs +9 -0
  487. package/dist/esm/api/resources/signals/client/requests/GetSignalSummaryExportRequest.d.mts +9 -0
  488. package/dist/esm/api/resources/signals/client/requests/GetSignalSummaryExportRequest.mjs +2 -0
  489. package/dist/esm/api/resources/signals/client/requests/GetSignalSummaryRequest.d.mts +45 -0
  490. package/dist/esm/api/resources/signals/client/requests/GetSignalSummaryRequest.mjs +2 -0
  491. package/dist/esm/api/resources/signals/client/requests/SignalLookupRequest.d.mts +10 -0
  492. package/dist/esm/api/resources/signals/client/requests/SignalLookupRequest.mjs +2 -0
  493. package/dist/esm/api/resources/signals/client/requests/index.d.mts +4 -0
  494. package/dist/esm/api/resources/signals/index.d.mts +1 -0
  495. package/dist/esm/api/resources/signals/index.mjs +1 -0
  496. package/dist/esm/api/resources/signals/types/GetSignalSummaryRequestGroupBy.d.mts +5 -0
  497. package/dist/esm/api/resources/signals/types/GetSignalSummaryRequestGroupBy.mjs +5 -0
  498. package/dist/esm/api/resources/signals/types/GetSignalSummaryRequestInterval.d.mts +7 -0
  499. package/dist/esm/api/resources/signals/types/GetSignalSummaryRequestInterval.mjs +7 -0
  500. package/dist/esm/api/resources/signals/types/index.d.mts +2 -0
  501. package/dist/esm/api/resources/signals/types/index.mjs +2 -0
  502. package/dist/esm/api/resources/valueMetrics/client/Client.d.mts +1 -1
  503. package/dist/esm/api/resources/valueMetrics/client/Client.mjs +1 -1
  504. package/dist/esm/api/resources/valueModels/client/Client.d.mts +4 -2
  505. package/dist/esm/api/resources/valueModels/client/Client.mjs +8 -2
  506. package/dist/esm/api/resources/valueModels/client/requests/ValueModelUploadRequest.d.mts +2 -0
  507. package/dist/esm/api/resources/valueReceipts/client/Client.d.mts +5 -5
  508. package/dist/esm/api/resources/valueReceipts/client/Client.mjs +5 -5
  509. package/dist/esm/api/resources/valueReceipts/client/requests/PublishValueReceiptBody.d.mts +1 -0
  510. package/dist/esm/api/resources/webhooks/client/Client.d.mts +2 -2
  511. package/dist/esm/api/resources/webhooks/client/Client.mjs +2 -2
  512. package/dist/esm/api/resources/webhooks/client/requests/TestWebhookRequest.d.mts +1 -1
  513. package/dist/esm/api/resources/webhooks/client/requests/UpdateWebhookRequest.d.mts +2 -2
  514. package/dist/esm/api/resources/webhooks/types/TestWebhookRequestWebhookName.d.mts +0 -1
  515. package/dist/esm/api/resources/webhooks/types/TestWebhookRequestWebhookName.mjs +0 -1
  516. package/dist/esm/api/resources/webhooks/types/UpdateWebhookRequestWebhookName.d.mts +0 -1
  517. package/dist/esm/api/resources/webhooks/types/UpdateWebhookRequestWebhookName.mjs +0 -1
  518. package/dist/esm/api/types/Attribution.d.mts +3 -0
  519. package/dist/esm/api/types/Checkout.d.mts +4 -0
  520. package/dist/esm/api/types/CheckoutDetails.d.mts +4 -0
  521. package/dist/esm/api/types/CreateOrderLineAttributeRequest.d.mts +9 -0
  522. package/dist/esm/api/types/CreateOrderLineAttributeRequest.mjs +3 -0
  523. package/dist/esm/api/types/CreditBenefitInput.d.mts +5 -0
  524. package/dist/esm/api/types/CreditBenefitInput.mjs +2 -0
  525. package/dist/esm/api/types/CreditBenefitOutput.d.mts +2 -0
  526. package/dist/esm/api/types/CreditGrantCreateRequest.d.mts +2 -0
  527. package/dist/esm/api/types/CreditTransaction.d.mts +1 -1
  528. package/dist/esm/api/types/CreditTransactionSummaryBucket.d.mts +25 -0
  529. package/dist/esm/api/types/CreditTransactionSummaryBucket.mjs +2 -0
  530. package/dist/esm/api/types/CreditTransactionSummaryResponse.d.mts +32 -0
  531. package/dist/esm/api/types/CreditTransactionSummaryResponse.mjs +20 -0
  532. package/dist/esm/api/types/CustomView.d.mts +4 -0
  533. package/dist/esm/api/types/CustomViewAuthoringDetail.d.mts +4 -0
  534. package/dist/esm/api/types/CustomViewContextCap.d.mts +27 -0
  535. package/dist/esm/api/types/CustomViewContextCap.mjs +8 -0
  536. package/dist/esm/api/types/CustomViewCustomerUnit.d.mts +16 -0
  537. package/dist/esm/api/types/CustomViewCustomerUnit.mjs +2 -0
  538. package/dist/esm/api/types/CustomViewDataContext.d.mts +57 -0
  539. package/dist/esm/api/types/CustomViewDataContext.mjs +18 -0
  540. package/dist/esm/api/types/CustomViewDetail.d.mts +4 -0
  541. package/dist/esm/api/types/CustomViewPreviewHarnessRequest.d.mts +2 -1
  542. package/dist/esm/api/types/CustomViewSummary.d.mts +4 -0
  543. package/dist/esm/api/types/CustomViewUnitSelection.d.mts +14 -0
  544. package/dist/esm/api/types/CustomViewUnitSelection.mjs +2 -0
  545. package/dist/esm/api/types/CustomerAlias.d.mts +2 -0
  546. package/dist/esm/api/types/CustomerApiKey.d.mts +31 -0
  547. package/dist/esm/api/types/CustomerApiKey.mjs +10 -0
  548. package/dist/esm/api/types/CustomerApiKeyCreate.d.mts +8 -0
  549. package/dist/esm/api/types/CustomerApiKeyCreate.mjs +2 -0
  550. package/dist/esm/api/types/CustomerApiKeyCreated.d.mts +33 -0
  551. package/dist/esm/api/types/CustomerApiKeyCreated.mjs +10 -0
  552. package/dist/esm/api/types/CustomerApiKeyList.d.mts +5 -0
  553. package/dist/esm/api/types/CustomerApiKeyList.mjs +2 -0
  554. package/dist/esm/api/types/CustomerAttribution.d.mts +3 -0
  555. package/dist/esm/api/types/CustomerFundingInstructions.d.mts +24 -0
  556. package/dist/esm/api/types/CustomerFundingInstructions.mjs +7 -0
  557. package/dist/esm/api/types/CustomerFundingInstructionsCreateRequest.d.mts +4 -0
  558. package/dist/esm/api/types/CustomerFundingInstructionsCreateRequest.mjs +2 -0
  559. package/dist/esm/api/types/CustomerUnit.d.mts +13 -2
  560. package/dist/esm/api/types/CustomerUnit.mjs +2 -1
  561. package/dist/esm/api/types/CustomerUnitAttribution.d.mts +2 -2
  562. package/dist/esm/api/types/CustomerUnitByKey.d.mts +37 -0
  563. package/dist/esm/api/types/CustomerUnitByKey.mjs +10 -0
  564. package/dist/esm/api/types/CustomerUnitCapEndedPolicy.d.mts +5 -3
  565. package/dist/esm/api/types/CustomerUnitCapEndedPolicy.mjs +1 -1
  566. package/dist/esm/api/types/CustomerUnitCapPolicy.d.mts +5 -3
  567. package/dist/esm/api/types/CustomerUnitCapPolicy.mjs +1 -1
  568. package/dist/esm/api/types/CustomerUnitCapSavedPolicy.d.mts +26 -0
  569. package/dist/esm/api/types/CustomerUnitCapSavedPolicy.mjs +8 -0
  570. package/dist/esm/api/types/CustomerUnitCapSchedule.d.mts +9 -0
  571. package/dist/esm/api/types/CustomerUnitCapSchedule.mjs +2 -0
  572. package/dist/esm/api/types/CustomerUnitCapScheduleInput.d.mts +9 -0
  573. package/dist/esm/api/types/CustomerUnitCapScheduleInput.mjs +2 -0
  574. package/dist/esm/api/types/CustomerUnitCapSet.d.mts +5 -3
  575. package/dist/esm/api/types/CustomerUnitCapSet.mjs +1 -1
  576. package/dist/esm/api/types/CustomerUnitCapSetResponse.d.mts +3 -1
  577. package/dist/esm/api/types/CustomerUnitCreate.d.mts +3 -1
  578. package/dist/esm/api/types/CustomerUnitCreatedUnderParent.d.mts +34 -0
  579. package/dist/esm/api/types/CustomerUnitCreatedUnderParent.mjs +10 -0
  580. package/dist/esm/api/types/CustomerUnitSpendResponse.d.mts +12 -0
  581. package/dist/esm/api/types/CustomerUnitSpendResponse.mjs +2 -0
  582. package/dist/esm/api/types/CustomerUnitSpendWindow.d.mts +9 -0
  583. package/dist/esm/api/types/CustomerUnitSpendWindow.mjs +2 -0
  584. package/dist/esm/api/types/CustomerUnitUpdate.d.mts +2 -0
  585. package/dist/esm/api/types/DeliveredValueCalculation.d.mts +11 -0
  586. package/dist/esm/api/types/DeliveredValueCalculation.mjs +2 -0
  587. package/dist/esm/api/types/DeliveredValueCalculationTerm.d.mts +34 -0
  588. package/dist/esm/api/types/DeliveredValueCalculationTerm.mjs +21 -0
  589. package/dist/esm/api/types/DeliveredValueMetric.d.mts +54 -0
  590. package/dist/esm/api/types/DeliveredValueMetric.mjs +2 -0
  591. package/dist/esm/api/types/DeliveredValueResponse.d.mts +34 -0
  592. package/dist/esm/api/types/DeliveredValueResponse.mjs +2 -0
  593. package/dist/esm/api/types/DeliveredValueSignal.d.mts +14 -0
  594. package/dist/esm/api/types/DeliveredValueSignal.mjs +2 -0
  595. package/dist/esm/api/types/DeliveredValueSignalValue.d.mts +8 -0
  596. package/dist/esm/api/types/DeliveredValueSignalValue.mjs +2 -0
  597. package/dist/esm/api/types/DeliveredValueSummaryBucket.d.mts +20 -0
  598. package/dist/esm/api/types/DeliveredValueSummaryBucket.mjs +2 -0
  599. package/dist/esm/api/types/DeliveredValueSummaryResponse.d.mts +41 -0
  600. package/dist/esm/api/types/DeliveredValueSummaryResponse.mjs +19 -0
  601. package/dist/esm/api/types/GrantCustomerCreditsResponse.d.mts +1 -1
  602. package/dist/esm/api/types/PlanCreditBenefit.d.mts +4 -6
  603. package/dist/esm/api/types/PlanCreditBenefit.mjs +0 -4
  604. package/dist/esm/api/types/PricingOutput.d.mts +3 -0
  605. package/dist/esm/api/types/ProductCreditBenefitInput.d.mts +5 -0
  606. package/dist/esm/api/types/ProductCreditBenefitInput.mjs +2 -0
  607. package/dist/esm/api/types/ProductCreditBenefitOutput.d.mts +2 -0
  608. package/dist/esm/api/types/ProductPricingOutput.d.mts +3 -0
  609. package/dist/esm/api/types/ProductSeatBasedPrepaidCreditsInput.d.mts +3 -0
  610. package/dist/esm/api/types/ProductUsageBracketedPrepaidCreditsInput.d.mts +4 -0
  611. package/dist/esm/api/types/ProductUsageBracketedPrepaidCreditsInput.mjs +1 -0
  612. package/dist/esm/api/types/ProductUsageCostPlusInput.d.mts +2 -0
  613. package/dist/esm/api/types/ProductUsageCostPlusInput.mjs +1 -0
  614. package/dist/esm/api/types/ProductUsageGraduatedInput.d.mts +2 -0
  615. package/dist/esm/api/types/ProductUsageGraduatedInput.mjs +1 -0
  616. package/dist/esm/api/types/ProductUsagePerUnitInput.d.mts +2 -0
  617. package/dist/esm/api/types/ProductUsagePerUnitInput.mjs +1 -0
  618. package/dist/esm/api/types/ProductUsagePrepaidCreditsInput.d.mts +5 -0
  619. package/dist/esm/api/types/ProductUsagePrepaidCreditsInput.mjs +1 -0
  620. package/dist/esm/api/types/ProductUsageVolumeInput.d.mts +2 -0
  621. package/dist/esm/api/types/ProductUsageVolumeInput.mjs +1 -0
  622. package/dist/esm/api/types/ProvisionBillingFrequencyOverride.d.mts +14 -0
  623. package/dist/esm/api/types/ProvisionBillingFrequencyOverride.mjs +11 -0
  624. package/dist/esm/api/types/ProvisionContact.d.mts +20 -0
  625. package/dist/esm/api/types/ProvisionContact.mjs +11 -0
  626. package/dist/esm/api/types/ProvisionCreatedContact.d.mts +14 -0
  627. package/dist/esm/api/types/ProvisionCreatedContact.mjs +9 -0
  628. package/dist/esm/api/types/ProvisionCreatedCustomer.d.mts +14 -0
  629. package/dist/esm/api/types/ProvisionCreatedCustomer.mjs +9 -0
  630. package/dist/esm/api/types/ProvisionCreatedOrder.d.mts +17 -0
  631. package/dist/esm/api/types/ProvisionCreatedOrder.mjs +9 -0
  632. package/dist/esm/api/types/ProvisionCreatedOrderLine.d.mts +17 -0
  633. package/dist/esm/api/types/ProvisionCreatedOrderLine.mjs +9 -0
  634. package/dist/esm/api/types/ProvisionCreditBenefit.d.mts +44 -0
  635. package/dist/esm/api/types/ProvisionCreditBenefit.mjs +23 -0
  636. package/dist/esm/api/types/ProvisionCustomer.d.mts +23 -0
  637. package/dist/esm/api/types/ProvisionCustomer.mjs +9 -0
  638. package/dist/esm/api/types/ProvisionExternalReference.d.mts +16 -0
  639. package/dist/esm/api/types/ProvisionExternalReference.mjs +11 -0
  640. package/dist/esm/api/types/ProvisionOrder.d.mts +39 -0
  641. package/dist/esm/api/types/ProvisionOrder.mjs +17 -0
  642. package/dist/esm/api/types/ProvisionOrderLine.d.mts +12 -0
  643. package/dist/esm/api/types/ProvisionOrderLine.mjs +2 -0
  644. package/dist/esm/api/types/ProvisionOrderLineAttribute.d.mts +96 -0
  645. package/dist/esm/api/types/ProvisionOrderLineAttribute.mjs +47 -0
  646. package/dist/esm/api/types/ProvisionOrderLineType.d.mts +7 -0
  647. package/dist/esm/api/types/ProvisionOrderLineType.mjs +7 -0
  648. package/dist/esm/api/types/ProvisionProduct.d.mts +95 -0
  649. package/dist/esm/api/types/ProvisionProduct.mjs +49 -0
  650. package/dist/esm/api/types/ProvisionResponse.d.mts +17 -0
  651. package/dist/esm/api/types/ProvisionResponse.mjs +9 -0
  652. package/dist/esm/api/types/SeatBasedPrepaidCreditsInput.d.mts +3 -0
  653. package/dist/esm/api/types/Signal.d.mts +8 -2
  654. package/dist/esm/api/types/SignalListItem.d.mts +1 -1
  655. package/dist/esm/api/types/SignalLookupResponse.d.mts +7 -0
  656. package/dist/esm/api/types/SignalLookupResponse.mjs +2 -0
  657. package/dist/esm/api/types/SignalSummaryBandsDimension.d.mts +21 -0
  658. package/dist/esm/api/types/SignalSummaryBandsDimension.mjs +2 -0
  659. package/dist/esm/api/types/SignalSummaryColumn.d.mts +8 -0
  660. package/dist/esm/api/types/SignalSummaryColumn.mjs +2 -0
  661. package/dist/esm/api/types/SignalSummaryDefinitionSpec.d.mts +21 -0
  662. package/dist/esm/api/types/SignalSummaryDefinitionSpec.mjs +8 -0
  663. package/dist/esm/api/types/SignalSummaryDefinitionSpecDimensionsItem.d.mts +10 -0
  664. package/dist/esm/api/types/SignalSummaryDefinitionSpecDimensionsItem.mjs +2 -0
  665. package/dist/esm/api/types/SignalSummaryExport.d.mts +36 -0
  666. package/dist/esm/api/types/SignalSummaryExport.mjs +15 -0
  667. package/dist/esm/api/types/SignalSummaryGroups.d.mts +9 -0
  668. package/dist/esm/api/types/SignalSummaryGroups.mjs +2 -0
  669. package/dist/esm/api/types/SignalSummaryMeasure.d.mts +16 -0
  670. package/dist/esm/api/types/SignalSummaryMeasure.mjs +11 -0
  671. package/dist/esm/api/types/SignalSummaryPage.d.mts +8 -0
  672. package/dist/esm/api/types/SignalSummaryPage.mjs +2 -0
  673. package/dist/esm/api/types/SignalSummaryPoint.d.mts +16 -0
  674. package/dist/esm/api/types/SignalSummaryPoint.mjs +2 -0
  675. package/dist/esm/api/types/SignalSummaryPresenceDimension.d.mts +23 -0
  676. package/dist/esm/api/types/SignalSummaryPresenceDimension.mjs +2 -0
  677. package/dist/esm/api/types/SignalSummaryResponse.d.mts +29 -0
  678. package/dist/esm/api/types/SignalSummaryResponse.mjs +16 -0
  679. package/dist/esm/api/types/SignalSummarySignalSelection.d.mts +8 -0
  680. package/dist/esm/api/types/SignalSummarySignalSelection.mjs +2 -0
  681. package/dist/esm/api/types/SignalSummarySpecInput.d.mts +21 -0
  682. package/dist/esm/api/types/SignalSummarySpecInput.mjs +8 -0
  683. package/dist/esm/api/types/SignalSummarySpecInputDimensionsItem.d.mts +10 -0
  684. package/dist/esm/api/types/SignalSummarySpecInputDimensionsItem.mjs +2 -0
  685. package/dist/esm/api/types/SignalsMetadataResponse.d.mts +22 -1
  686. package/dist/esm/api/types/SignalsMetadataResponse.mjs +23 -1
  687. package/dist/esm/api/types/UpdateContactRequest.d.mts +1 -0
  688. package/dist/esm/api/types/UsageBracketedPrepaidCreditsInput.d.mts +4 -0
  689. package/dist/esm/api/types/UsageBracketedPrepaidCreditsInput.mjs +1 -0
  690. package/dist/esm/api/types/UsageCostPlusInput.d.mts +2 -0
  691. package/dist/esm/api/types/UsageCostPlusInput.mjs +1 -0
  692. package/dist/esm/api/types/UsageGraduatedInput.d.mts +2 -0
  693. package/dist/esm/api/types/UsageGraduatedInput.mjs +1 -0
  694. package/dist/esm/api/types/UsagePerUnitInput.d.mts +2 -0
  695. package/dist/esm/api/types/UsagePerUnitInput.mjs +1 -0
  696. package/dist/esm/api/types/UsagePrepaidCreditsInput.d.mts +5 -0
  697. package/dist/esm/api/types/UsagePrepaidCreditsInput.mjs +1 -0
  698. package/dist/esm/api/types/UsageVolumeInput.d.mts +2 -0
  699. package/dist/esm/api/types/UsageVolumeInput.mjs +1 -0
  700. package/dist/esm/api/types/ValidateCustomViewRequest.d.mts +4 -0
  701. package/dist/esm/api/types/ValueModelContent.d.mts +17 -15
  702. package/dist/esm/api/types/ValueModelContent.mjs +7 -0
  703. package/dist/esm/api/types/ValueReceiptDetail.d.mts +1 -0
  704. package/dist/esm/api/types/ValueReceiptSummary.d.mts +1 -0
  705. package/dist/esm/api/types/ValueReceiptSyncResponse.d.mts +1 -0
  706. package/dist/esm/api/types/ViewCustomerUnitsResponse.d.mts +7 -0
  707. package/dist/esm/api/types/ViewCustomerUnitsResponse.mjs +2 -0
  708. package/dist/esm/api/types/ViewDataResponse.d.mts +2 -0
  709. package/dist/esm/api/types/Webhook.d.mts +0 -1
  710. package/dist/esm/api/types/Webhook.mjs +0 -1
  711. package/dist/esm/api/types/WebhookUpdateResponse.d.mts +0 -1
  712. package/dist/esm/api/types/WebhookUpdateResponse.mjs +0 -1
  713. package/dist/esm/api/types/WritableProvisionOrderLineType.d.mts +6 -0
  714. package/dist/esm/api/types/WritableProvisionOrderLineType.mjs +6 -0
  715. package/dist/esm/api/types/index.d.mts +59 -10
  716. package/dist/esm/api/types/index.mjs +59 -10
  717. package/dist/esm/version.d.mts +1 -1
  718. package/dist/esm/version.mjs +1 -1
  719. package/package.json +1 -1
  720. package/reference.md +2461 -730
  721. package/dist/cjs/api/resources/customerGroups/client/Client.d.ts +0 -153
  722. package/dist/cjs/api/resources/customerGroups/client/Client.js +0 -636
  723. package/dist/cjs/api/resources/customerGroups/client/requests/CreateCustomerGroupMembersRequest.d.ts +0 -14
  724. package/dist/cjs/api/resources/customerGroups/client/requests/CreateCustomerGroupRequest.d.ts +0 -10
  725. package/dist/cjs/api/resources/customerGroups/client/requests/DeleteCustomerGroupMembersRequest.d.ts +0 -14
  726. package/dist/cjs/api/resources/customerGroups/client/requests/DeleteCustomerGroupRequest.d.ts +0 -9
  727. package/dist/cjs/api/resources/customerGroups/client/requests/GetCustomerGroupRequest.d.ts +0 -9
  728. package/dist/cjs/api/resources/customerGroups/client/requests/ListCustomerGroupsRequest.d.ts +0 -8
  729. package/dist/cjs/api/resources/customerGroups/client/requests/UpdateCustomerGroupMembersRequest.d.ts +0 -14
  730. package/dist/cjs/api/resources/customerGroups/client/requests/UpdateCustomerGroupRequest.d.ts +0 -11
  731. package/dist/cjs/api/resources/customerGroups/client/requests/index.d.ts +0 -8
  732. package/dist/cjs/api/types/AddMembersResponse.d.ts +0 -5
  733. package/dist/cjs/api/types/CustomerGroupDeleteResponse.d.ts +0 -4
  734. package/dist/cjs/api/types/CustomerGroupDetail.d.ts +0 -10
  735. package/dist/cjs/api/types/CustomerGroupListResponse.d.ts +0 -5
  736. package/dist/cjs/api/types/CustomerGroupMember.d.ts +0 -5
  737. package/dist/cjs/api/types/CustomerGroupSummary.d.ts +0 -8
  738. package/dist/cjs/api/types/CustomerUnitCapOpenPolicy.d.ts +0 -29
  739. package/dist/cjs/api/types/CustomerUnitCapOpenPolicy.js +0 -15
  740. package/dist/cjs/api/types/MemberRequest.d.ts +0 -4
  741. package/dist/cjs/api/types/RemoveMembersResponse.d.ts +0 -5
  742. package/dist/cjs/api/types/SetMembersResponse.d.ts +0 -6
  743. package/dist/esm/api/resources/customerGroups/client/Client.d.mts +0 -153
  744. package/dist/esm/api/resources/customerGroups/client/Client.mjs +0 -599
  745. package/dist/esm/api/resources/customerGroups/client/requests/CreateCustomerGroupMembersRequest.d.mts +0 -14
  746. package/dist/esm/api/resources/customerGroups/client/requests/CreateCustomerGroupRequest.d.mts +0 -10
  747. package/dist/esm/api/resources/customerGroups/client/requests/DeleteCustomerGroupMembersRequest.d.mts +0 -14
  748. package/dist/esm/api/resources/customerGroups/client/requests/DeleteCustomerGroupRequest.d.mts +0 -9
  749. package/dist/esm/api/resources/customerGroups/client/requests/GetCustomerGroupRequest.d.mts +0 -9
  750. package/dist/esm/api/resources/customerGroups/client/requests/ListCustomerGroupsRequest.d.mts +0 -8
  751. package/dist/esm/api/resources/customerGroups/client/requests/UpdateCustomerGroupMembersRequest.d.mts +0 -14
  752. package/dist/esm/api/resources/customerGroups/client/requests/UpdateCustomerGroupRequest.d.mts +0 -11
  753. package/dist/esm/api/resources/customerGroups/client/requests/index.d.mts +0 -8
  754. package/dist/esm/api/types/AddMembersResponse.d.mts +0 -5
  755. package/dist/esm/api/types/CustomerGroupDeleteResponse.d.mts +0 -4
  756. package/dist/esm/api/types/CustomerGroupDetail.d.mts +0 -10
  757. package/dist/esm/api/types/CustomerGroupListResponse.d.mts +0 -5
  758. package/dist/esm/api/types/CustomerGroupMember.d.mts +0 -5
  759. package/dist/esm/api/types/CustomerGroupSummary.d.mts +0 -8
  760. package/dist/esm/api/types/CustomerUnitCapOpenPolicy.d.mts +0 -29
  761. package/dist/esm/api/types/CustomerUnitCapOpenPolicy.mjs +0 -12
  762. package/dist/esm/api/types/MemberRequest.d.mts +0 -4
  763. package/dist/esm/api/types/RemoveMembersResponse.d.mts +0 -5
  764. package/dist/esm/api/types/SetMembersResponse.d.mts +0 -6
  765. /package/dist/cjs/api/resources/{customerGroups/client/requests/CreateCustomerGroupMembersRequest.js → credits/client/requests/GetCreditTransactionSummaryRequest.js} +0 -0
  766. /package/dist/cjs/api/resources/{customerGroups/client/requests/CreateCustomerGroupRequest.js → customViewsExperimental/client/requests/GetCustomViewCustomerUnitsRequest.js} +0 -0
  767. /package/dist/cjs/api/resources/{customerGroups/client/requests/DeleteCustomerGroupMembersRequest.js → customers/client/requests/CreateCustomerApiKeyByExternalIdRequest.js} +0 -0
  768. /package/dist/cjs/api/resources/{customerGroups/client/requests/DeleteCustomerGroupRequest.js → customers/client/requests/CreateCustomerApiKeyRequest.js} +0 -0
  769. /package/dist/cjs/api/resources/{customerGroups/client/requests/GetCustomerGroupRequest.js → customers/client/requests/CreateCustomerFundingInstructionsByExternalIdRequest.js} +0 -0
  770. /package/dist/cjs/api/resources/{customerGroups/client/requests/ListCustomerGroupsRequest.js → customers/client/requests/CreateCustomerFundingInstructionsRequest.js} +0 -0
  771. /package/dist/cjs/api/resources/{customerGroups/client/requests/UpdateCustomerGroupMembersRequest.js → customers/client/requests/CreateCustomerUnitAliasByExternalIdRequest.js} +0 -0
  772. /package/dist/cjs/api/resources/{customerGroups/client/requests/UpdateCustomerGroupRequest.js → customers/client/requests/CreateCustomerUnitAliasByKeyRequest.js} +0 -0
  773. /package/dist/cjs/api/{types/AddMembersResponse.js → resources/customers/client/requests/CreateCustomerUnitAliasRequest.js} +0 -0
  774. /package/dist/cjs/api/{types/CustomerGroupDeleteResponse.js → resources/customers/client/requests/CustomerUnitCreateUnderParent.js} +0 -0
  775. /package/dist/cjs/api/{types/CustomerGroupDetail.js → resources/customers/client/requests/DeleteCustomerUnitAliasByExternalIdRequest.js} +0 -0
  776. /package/dist/cjs/api/{types/CustomerGroupListResponse.js → resources/customers/client/requests/DeleteCustomerUnitAliasByKeyRequest.js} +0 -0
  777. /package/dist/cjs/api/{types/CustomerGroupMember.js → resources/customers/client/requests/DeleteCustomerUnitAliasRequest.js} +0 -0
  778. /package/dist/cjs/api/{types/CustomerGroupSummary.js → resources/customers/client/requests/GetCustomerFundingInstructionsByExternalIdRequest.js} +0 -0
  779. /package/dist/cjs/api/{types/MemberRequest.js → resources/customers/client/requests/GetCustomerFundingInstructionsRequest.js} +0 -0
  780. /package/dist/cjs/api/{types/RemoveMembersResponse.js → resources/customers/client/requests/GetCustomerUnitByKeyRequest.js} +0 -0
  781. /package/dist/cjs/api/{types/SetMembersResponse.js → resources/customers/client/requests/GetCustomerUnitSpendByExternalIdRequest.js} +0 -0
  782. /package/dist/cjs/api/resources/{customerGroups → deliveredValue}/client/index.d.ts +0 -0
  783. /package/dist/cjs/api/resources/{customerGroups → deliveredValue}/client/index.js +0 -0
  784. /package/dist/cjs/api/resources/{customerGroups → deliveredValue}/client/requests/index.js +0 -0
  785. /package/dist/esm/api/resources/{customerGroups/client/requests/CreateCustomerGroupMembersRequest.mjs → credits/client/requests/GetCreditTransactionSummaryRequest.mjs} +0 -0
  786. /package/dist/esm/api/resources/{customerGroups/client/requests/CreateCustomerGroupRequest.mjs → customViewsExperimental/client/requests/GetCustomViewCustomerUnitsRequest.mjs} +0 -0
  787. /package/dist/esm/api/resources/{customerGroups/client/requests/DeleteCustomerGroupMembersRequest.mjs → customers/client/requests/CreateCustomerApiKeyByExternalIdRequest.mjs} +0 -0
  788. /package/dist/esm/api/resources/{customerGroups/client/requests/DeleteCustomerGroupRequest.mjs → customers/client/requests/CreateCustomerApiKeyRequest.mjs} +0 -0
  789. /package/dist/esm/api/resources/{customerGroups/client/requests/GetCustomerGroupRequest.mjs → customers/client/requests/CreateCustomerFundingInstructionsByExternalIdRequest.mjs} +0 -0
  790. /package/dist/esm/api/resources/{customerGroups/client/requests/ListCustomerGroupsRequest.mjs → customers/client/requests/CreateCustomerFundingInstructionsRequest.mjs} +0 -0
  791. /package/dist/esm/api/resources/{customerGroups/client/requests/UpdateCustomerGroupMembersRequest.mjs → customers/client/requests/CreateCustomerUnitAliasByExternalIdRequest.mjs} +0 -0
  792. /package/dist/esm/api/resources/{customerGroups/client/requests/UpdateCustomerGroupRequest.mjs → customers/client/requests/CreateCustomerUnitAliasByKeyRequest.mjs} +0 -0
  793. /package/dist/esm/api/{types/AddMembersResponse.mjs → resources/customers/client/requests/CreateCustomerUnitAliasRequest.mjs} +0 -0
  794. /package/dist/esm/api/{types/CustomerGroupDeleteResponse.mjs → resources/customers/client/requests/CustomerUnitCreateUnderParent.mjs} +0 -0
  795. /package/dist/esm/api/{types/CustomerGroupDetail.mjs → resources/customers/client/requests/DeleteCustomerUnitAliasByExternalIdRequest.mjs} +0 -0
  796. /package/dist/esm/api/{types/CustomerGroupListResponse.mjs → resources/customers/client/requests/DeleteCustomerUnitAliasByKeyRequest.mjs} +0 -0
  797. /package/dist/esm/api/{types/CustomerGroupMember.mjs → resources/customers/client/requests/DeleteCustomerUnitAliasRequest.mjs} +0 -0
  798. /package/dist/esm/api/{types/CustomerGroupSummary.mjs → resources/customers/client/requests/GetCustomerFundingInstructionsByExternalIdRequest.mjs} +0 -0
  799. /package/dist/esm/api/{types/MemberRequest.mjs → resources/customers/client/requests/GetCustomerFundingInstructionsRequest.mjs} +0 -0
  800. /package/dist/esm/api/{types/RemoveMembersResponse.mjs → resources/customers/client/requests/GetCustomerUnitByKeyRequest.mjs} +0 -0
  801. /package/dist/esm/api/{types/SetMembersResponse.mjs → resources/customers/client/requests/GetCustomerUnitSpendByExternalIdRequest.mjs} +0 -0
  802. /package/dist/esm/api/resources/{customerGroups → deliveredValue}/client/index.d.mts +0 -0
  803. /package/dist/esm/api/resources/{customerGroups → deliveredValue}/client/index.mjs +0 -0
  804. /package/dist/esm/api/resources/{customerGroups → deliveredValue}/client/requests/index.mjs +0 -0
@@ -222,7 +222,7 @@ class Credits {
222
222
  __listCreditTransactions() {
223
223
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
224
224
  var _a, _b, _c, _d, _e, _f, _g, _h;
225
- const { limit, offset, customerId, externalCustomerId, creditsCurrencyId, creditCurrencyKey, type: type_, orderId, createdAtFrom, createdAtTo, } = request;
225
+ const { limit, offset, customerId, externalCustomerId, creditsCurrencyId, creditCurrencyKey, type: type_, orderId, eventName, createdAtFrom, createdAtTo, } = request;
226
226
  const _queryParams = {};
227
227
  if (limit != null) {
228
228
  _queryParams.limit = limit.toString();
@@ -248,6 +248,9 @@ class Credits {
248
248
  if (orderId != null) {
249
249
  _queryParams.orderId = orderId;
250
250
  }
251
+ if (eventName != null) {
252
+ _queryParams.eventName = eventName;
253
+ }
251
254
  if (createdAtFrom != null) {
252
255
  _queryParams.createdAtFrom = createdAtFrom;
253
256
  }
@@ -300,6 +303,107 @@ class Credits {
300
303
  }
301
304
  });
302
305
  }
306
+ /**
307
+ * Aggregate credit ledger transactions of one type into period buckets grouped by a dimension, for charting credit consumption over time. Accepts the same filters as the transaction list and reads the same ledger, so bucket totals always match summing that list over the same filters and the same `type` — pass this endpoint's effective `type` (it defaults to `spend`) to the list, which has no default and otherwise returns every type.
308
+ *
309
+ * @param {Paid.GetCreditTransactionSummaryRequest} request
310
+ * @param {Credits.RequestOptions} requestOptions - Request-specific configuration.
311
+ *
312
+ * @throws {@link Paid.BadRequestError}
313
+ * @throws {@link Paid.ForbiddenError}
314
+ * @throws {@link Paid.InternalServerError}
315
+ *
316
+ * @example
317
+ * await client.credits.getCreditTransactionSummary({
318
+ * createdAtFrom: "createdAtFrom",
319
+ * groupBy: "eventName",
320
+ * interval: "day"
321
+ * })
322
+ */
323
+ getCreditTransactionSummary(request, requestOptions) {
324
+ return core.HttpResponsePromise.fromPromise(this.__getCreditTransactionSummary(request, requestOptions));
325
+ }
326
+ __getCreditTransactionSummary(request, requestOptions) {
327
+ return __awaiter(this, void 0, void 0, function* () {
328
+ var _a, _b, _c, _d, _e, _f, _g, _h;
329
+ const { customerId, externalCustomerId, creditsCurrencyId, creditCurrencyKey, type: type_, orderId, eventName, createdAtFrom, createdAtTo, groupBy, interval, } = request;
330
+ const _queryParams = {};
331
+ if (customerId != null) {
332
+ _queryParams.customerId = customerId;
333
+ }
334
+ if (externalCustomerId != null) {
335
+ _queryParams.externalCustomerId = externalCustomerId;
336
+ }
337
+ if (creditsCurrencyId != null) {
338
+ _queryParams.creditsCurrencyId = creditsCurrencyId;
339
+ }
340
+ if (creditCurrencyKey != null) {
341
+ _queryParams.creditCurrencyKey = creditCurrencyKey;
342
+ }
343
+ if (type_ != null) {
344
+ _queryParams.type = type_;
345
+ }
346
+ if (orderId != null) {
347
+ _queryParams.orderId = orderId;
348
+ }
349
+ if (eventName != null) {
350
+ _queryParams.eventName = eventName;
351
+ }
352
+ _queryParams.createdAtFrom = createdAtFrom;
353
+ if (createdAtTo != null) {
354
+ _queryParams.createdAtTo = createdAtTo;
355
+ }
356
+ _queryParams.groupBy = groupBy;
357
+ _queryParams.interval = interval;
358
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
359
+ const _response = yield core.fetcher({
360
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PaidEnvironment.Default, "credits/transactions/summary"),
361
+ method: "GET",
362
+ headers: _headers,
363
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
364
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
365
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
366
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
367
+ });
368
+ if (_response.ok) {
369
+ return {
370
+ data: _response.body,
371
+ rawResponse: _response.rawResponse,
372
+ };
373
+ }
374
+ if (_response.error.reason === "status-code") {
375
+ switch (_response.error.statusCode) {
376
+ case 400:
377
+ throw new Paid.BadRequestError(_response.error.body, _response.rawResponse);
378
+ case 403:
379
+ throw new Paid.ForbiddenError(_response.error.body, _response.rawResponse);
380
+ case 500:
381
+ throw new Paid.InternalServerError(_response.error.body, _response.rawResponse);
382
+ default:
383
+ throw new errors.PaidError({
384
+ statusCode: _response.error.statusCode,
385
+ body: _response.error.body,
386
+ rawResponse: _response.rawResponse,
387
+ });
388
+ }
389
+ }
390
+ switch (_response.error.reason) {
391
+ case "non-json":
392
+ throw new errors.PaidError({
393
+ statusCode: _response.error.statusCode,
394
+ body: _response.error.rawBody,
395
+ rawResponse: _response.rawResponse,
396
+ });
397
+ case "timeout":
398
+ throw new errors.PaidTimeoutError("Timeout exceeded when calling GET /credits/transactions/summary.");
399
+ case "unknown":
400
+ throw new errors.PaidError({
401
+ message: _response.error.errorMessage,
402
+ rawResponse: _response.rawResponse,
403
+ });
404
+ }
405
+ });
406
+ }
303
407
  /**
304
408
  * Update a credit currency description or set its active/archive status.
305
409
  *
@@ -0,0 +1,33 @@
1
+ import type * as Paid from "../../../../index.js";
2
+ /**
3
+ * @example
4
+ * {
5
+ * createdAtFrom: "createdAtFrom",
6
+ * groupBy: "eventName",
7
+ * interval: "day"
8
+ * }
9
+ */
10
+ export interface GetCreditTransactionSummaryRequest {
11
+ /** Filter by customer ID. */
12
+ customerId?: string;
13
+ /** Filter by customer external ID. */
14
+ externalCustomerId?: string;
15
+ /** Filter by credit currency ID. */
16
+ creditsCurrencyId?: string;
17
+ /** Filter by the stable machine-readable key of the credit currency. */
18
+ creditCurrencyKey?: string;
19
+ /** Ledger type to summarize. Each call summarizes exactly one type, so a spend chart never nets grants against spends. Defaults to `spend`. */
20
+ type?: Paid.GetCreditTransactionSummaryRequestType;
21
+ /** Filter by the order this transaction is linked to. */
22
+ orderId?: string;
23
+ /** Filter by the usage event that produced the transaction (exact match, untrimmed). Transactions with no event (grants, invoice-void clawbacks, manual adjustments) never match. */
24
+ eventName?: string;
25
+ /** Start of the window (inclusive). Required: the window may span at most 92 days. Accepts an ISO 8601 date or date-time. Date-only values (e.g. 2026-06-30) are treated as UTC; date-times without an explicit timezone offset are ambiguous, so include one (e.g. 2026-06-30T00:00:00-05:00) when precision matters. */
26
+ createdAtFrom: string;
27
+ /** End of the window (inclusive). Defaults to now. Accepts an ISO 8601 date or date-time. Date-only values (e.g. 2026-06-30) are treated as UTC; date-times without an explicit timezone offset are ambiguous, so include one (e.g. 2026-06-30T00:00:00-05:00) when precision matters. */
28
+ createdAtTo?: string;
29
+ /** Dimension to group buckets by. `eventName` groups signal-driven spends by the usage event that produced them; transactions without one (grants, invoice-void clawbacks, manual adjustments) share a bucket whose `groupKey` is null. */
30
+ groupBy: Paid.GetCreditTransactionSummaryRequestGroupBy;
31
+ /** Period bucket size. Buckets align to UTC calendar days, ISO weeks (Monday start), or calendar months; the first and last bucket's published bounds are clipped to the requested window. */
32
+ interval: Paid.GetCreditTransactionSummaryRequestInterval;
33
+ }
@@ -18,6 +18,8 @@ export interface ListCreditTransactionsRequest {
18
18
  type?: Paid.ListCreditTransactionsRequestType;
19
19
  /** Filter by the order this transaction is linked to. */
20
20
  orderId?: string;
21
+ /** Filter by the usage event that produced the transaction (exact match, untrimmed). Transactions with no event (grants, invoice-void clawbacks, manual adjustments) never match. */
22
+ eventName?: string;
21
23
  /** Only transactions recorded on or after this date. Accepts an ISO 8601 date or date-time. Date-only values (e.g. 2026-06-30) are treated as UTC; date-times without an explicit timezone offset are ambiguous, so include one (e.g. 2026-06-30T00:00:00-05:00) when precision matters. */
22
24
  createdAtFrom?: string;
23
25
  /** Only transactions recorded on or before this date. Accepts an ISO 8601 date or date-time. Date-only values (e.g. 2026-06-30) are treated as UTC; date-times without an explicit timezone offset are ambiguous, so include one (e.g. 2026-06-30T00:00:00-05:00) when precision matters. */
@@ -1,4 +1,5 @@
1
1
  export type { CreateCreditCurrencyRequest } from "./CreateCreditCurrencyRequest.js";
2
+ export type { GetCreditTransactionSummaryRequest } from "./GetCreditTransactionSummaryRequest.js";
2
3
  export type { ListCreditCurrenciesRequest } from "./ListCreditCurrenciesRequest.js";
3
4
  export type { ListCreditTransactionsRequest } from "./ListCreditTransactionsRequest.js";
4
5
  export type { UpdateCreditCurrencyRequest } from "./UpdateCreditCurrencyRequest.js";
@@ -0,0 +1,4 @@
1
+ export declare const GetCreditTransactionSummaryRequestGroupBy: {
2
+ readonly EventName: "eventName";
3
+ };
4
+ export type GetCreditTransactionSummaryRequestGroupBy = (typeof GetCreditTransactionSummaryRequestGroupBy)[keyof typeof GetCreditTransactionSummaryRequestGroupBy];
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.GetCreditTransactionSummaryRequestGroupBy = void 0;
5
+ exports.GetCreditTransactionSummaryRequestGroupBy = {
6
+ EventName: "eventName",
7
+ };
@@ -0,0 +1,6 @@
1
+ export declare const GetCreditTransactionSummaryRequestInterval: {
2
+ readonly Day: "day";
3
+ readonly Week: "week";
4
+ readonly Month: "month";
5
+ };
6
+ export type GetCreditTransactionSummaryRequestInterval = (typeof GetCreditTransactionSummaryRequestInterval)[keyof typeof GetCreditTransactionSummaryRequestInterval];
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.GetCreditTransactionSummaryRequestInterval = void 0;
5
+ exports.GetCreditTransactionSummaryRequestInterval = {
6
+ Day: "day",
7
+ Week: "week",
8
+ Month: "month",
9
+ };
@@ -0,0 +1,6 @@
1
+ export declare const GetCreditTransactionSummaryRequestType: {
2
+ readonly Grant: "grant";
3
+ readonly Spend: "spend";
4
+ readonly PendingGrant: "pendingGrant";
5
+ };
6
+ export type GetCreditTransactionSummaryRequestType = (typeof GetCreditTransactionSummaryRequestType)[keyof typeof GetCreditTransactionSummaryRequestType];
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.GetCreditTransactionSummaryRequestType = void 0;
5
+ exports.GetCreditTransactionSummaryRequestType = {
6
+ Grant: "grant",
7
+ Spend: "spend",
8
+ PendingGrant: "pendingGrant",
9
+ };
@@ -1,2 +1,5 @@
1
+ export * from "./GetCreditTransactionSummaryRequestGroupBy.js";
2
+ export * from "./GetCreditTransactionSummaryRequestInterval.js";
3
+ export * from "./GetCreditTransactionSummaryRequestType.js";
1
4
  export * from "./ListCreditCurrenciesRequestStatus.js";
2
5
  export * from "./ListCreditTransactionsRequestType.js";
@@ -14,5 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./GetCreditTransactionSummaryRequestGroupBy.js"), exports);
18
+ __exportStar(require("./GetCreditTransactionSummaryRequestInterval.js"), exports);
19
+ __exportStar(require("./GetCreditTransactionSummaryRequestType.js"), exports);
17
20
  __exportStar(require("./ListCreditCurrenciesRequestStatus.js"), exports);
18
21
  __exportStar(require("./ListCreditTransactionsRequestType.js"), exports);
@@ -94,7 +94,7 @@ export declare class CustomViewsExperimental {
94
94
  /**
95
95
  * ⚠️ **Experimental** — this endpoint may change or be removed without notice and is not subject to v2 backwards-compatibility guarantees. Do not build production-critical integrations against it yet.
96
96
  *
97
- * Returns the view's name, status, query ids, and the author render bundle for the owning organization (DRAFT or PUBLISHED). Used by the trusted preview/embed frame to render the sandbox; the per-customer data is fetched separately via /:displayId/data.
97
+ * Returns the view's name, status, query ids, and the author render bundle for the owning organization. Only PUBLISHED views are returned; a DRAFT returns 404 (use getCustomViewAuthoring to read a DRAFT). Used by the trusted preview/embed frame to render the sandbox; the per-customer data is fetched separately via /:displayId/data.
98
98
  *
99
99
  * @param {Paid.GetCustomViewRequest} request
100
100
  * @param {CustomViewsExperimental.RequestOptions} requestOptions - Request-specific configuration.
@@ -113,7 +113,7 @@ export declare class CustomViewsExperimental {
113
113
  /**
114
114
  * ⚠️ **Experimental** — this endpoint may change or be removed without notice and is not subject to v2 backwards-compatibility guarantees. Do not build production-critical integrations against it yet.
115
115
  *
116
- * Partially updates a view. Omitted fields are left unchanged. For REVISIONS, prefer the incremental fields — `bundleEdits` (exact search-and-replace on the stored render bundle) and `queryUpserts`/`queryRemovals` (per-query changes) — so you transmit only what changed instead of re-sending the whole payload. The full-replacement fields remain for rewrites: `renderBundle`, and `queries` (a FULL replacement of the query list — never drop queries the user didn't ask to remove). Replacement and incremental forms of the same aspect cannot be combined. The resulting SQL and bundle pass the same validation as createCustomView (SELECT-only, size cap, self-contained, paid:data listener). Works on DRAFT or PUBLISHED views — published embeds pick the change up on their next load.
116
+ * Partially updates a view. Omitted fields are left unchanged. For REVISIONS, prefer the incremental fields — `bundleEdits` (exact search-and-replace on the stored render bundle) and `queryUpserts`/`queryRemovals` (per-query changes) — so you transmit only what changed instead of re-sending the whole payload. The full-replacement fields remain for rewrites: `renderBundle`, and `queries` (a FULL replacement of the query list — never drop queries the user didn't ask to remove). Replacement and incremental forms of the same aspect cannot be combined. The resulting SQL and bundle pass the same validation as createCustomView (SELECT-only, size cap, self-contained, paid:data listener). Works on DRAFT or PUBLISHED views — published embeds pick the change up on their next load. If the queries or hierarchy setting change during validation, returns 409 CUSTOM_VIEW_UPDATE_CONFLICT; fetch the current authoring definition and reapply your changes before retrying.
117
117
  *
118
118
  * @param {Paid.UpdateCustomViewRequest} request
119
119
  * @param {CustomViewsExperimental.RequestOptions} requestOptions - Request-specific configuration.
@@ -121,6 +121,7 @@ export declare class CustomViewsExperimental {
121
121
  * @throws {@link Paid.BadRequestError}
122
122
  * @throws {@link Paid.ForbiddenError}
123
123
  * @throws {@link Paid.NotFoundError}
124
+ * @throws {@link Paid.ConflictError}
124
125
  * @throws {@link Paid.InternalServerError}
125
126
  *
126
127
  * @example
@@ -133,7 +134,28 @@ export declare class CustomViewsExperimental {
133
134
  /**
134
135
  * ⚠️ **Experimental** — this endpoint may change or be removed without notice and is not subject to v2 backwards-compatibility guarantees. Do not build production-critical integrations against it yet.
135
136
  *
136
- * Runs every stored query of the view on the read-only analytics database and returns the result sets keyed by query id. For a customer-scoped view (the default), the query is scoped to the caller's organization AND the given `customerId` (both enforced as ClickHouse row filters) — `customerId` is required. For an organization-scoped view, the data is org-wide (scoped only to the caller's organization) and `customerId` is ignored. The scope is enforced by the database — it cannot be widened by the stored SQL. If the view declares filters, pass per-request values as `filter_<name>` query parameters (e.g. `filter_region=eu`); undeclared names or disallowed values are rejected with 400. Filters narrow data within the scope — never widen it.
137
+ * Lists active customer units for a published customer-scoped view with hierarchyEnabled set to true. Hierarchy eligibility is independent of the requested page or usage; requires credit hierarchies to be enabled for the organization.
138
+ *
139
+ * @param {Paid.GetCustomViewCustomerUnitsRequest} request
140
+ * @param {CustomViewsExperimental.RequestOptions} requestOptions - Request-specific configuration.
141
+ *
142
+ * @throws {@link Paid.BadRequestError}
143
+ * @throws {@link Paid.ForbiddenError}
144
+ * @throws {@link Paid.NotFoundError}
145
+ * @throws {@link Paid.InternalServerError}
146
+ *
147
+ * @example
148
+ * await client.customViewsExperimental.getCustomViewCustomerUnits({
149
+ * displayId: "displayId",
150
+ * customerId: "cus_acme"
151
+ * })
152
+ */
153
+ getCustomViewCustomerUnits(request: Paid.GetCustomViewCustomerUnitsRequest, requestOptions?: CustomViewsExperimental.RequestOptions): core.HttpResponsePromise<Paid.ViewCustomerUnitsResponse>;
154
+ private __getCustomViewCustomerUnits;
155
+ /**
156
+ * ⚠️ **Experimental** — this endpoint may change or be removed without notice and is not subject to v2 backwards-compatibility guarantees. Do not build production-critical integrations against it yet.
157
+ *
158
+ * Runs every stored query of the view on the read-only analytics database and returns the result sets keyed by query id. For a customer-scoped view (the default), the query is scoped to the caller's organization AND the given `customerId` (both enforced as ClickHouse row filters) — `customerId` is required. For an organization-scoped view, the data is org-wide (scoped only to the caller's organization) and `customerId` is ignored. The scope is enforced by the database — it cannot be widened by the stored SQL. If the view declares filters, pass per-request values as `filter_<name>` query parameters (e.g. `filter_region=eu`); undeclared names or disallowed values are rejected with 400. Filters narrow data within the scope — never widen it. Only PUBLISHED views are served by default; a DRAFT returns 404. To check a saved DRAFT's real data before publishing, pass `includeDraft=true`. Embeds and share links never serve a DRAFT.
137
159
  *
138
160
  * @param {Paid.GetCustomViewDataRequest} request
139
161
  * @param {CustomViewsExperimental.RequestOptions} requestOptions - Request-specific configuration.
@@ -142,6 +164,7 @@ export declare class CustomViewsExperimental {
142
164
  * @throws {@link Paid.ForbiddenError}
143
165
  * @throws {@link Paid.NotFoundError}
144
166
  * @throws {@link Paid.RequestTimeoutError}
167
+ * @throws {@link Paid.ConflictError}
145
168
  * @throws {@link Paid.TooManyRequestsError}
146
169
  * @throws {@link Paid.InternalServerError}
147
170
  *
@@ -359,7 +359,7 @@ class CustomViewsExperimental {
359
359
  /**
360
360
  * ⚠️ **Experimental** — this endpoint may change or be removed without notice and is not subject to v2 backwards-compatibility guarantees. Do not build production-critical integrations against it yet.
361
361
  *
362
- * Returns the view's name, status, query ids, and the author render bundle for the owning organization (DRAFT or PUBLISHED). Used by the trusted preview/embed frame to render the sandbox; the per-customer data is fetched separately via /:displayId/data.
362
+ * Returns the view's name, status, query ids, and the author render bundle for the owning organization. Only PUBLISHED views are returned; a DRAFT returns 404 (use getCustomViewAuthoring to read a DRAFT). Used by the trusted preview/embed frame to render the sandbox; the per-customer data is fetched separately via /:displayId/data.
363
363
  *
364
364
  * @param {Paid.GetCustomViewRequest} request
365
365
  * @param {CustomViewsExperimental.RequestOptions} requestOptions - Request-specific configuration.
@@ -429,7 +429,7 @@ class CustomViewsExperimental {
429
429
  /**
430
430
  * ⚠️ **Experimental** — this endpoint may change or be removed without notice and is not subject to v2 backwards-compatibility guarantees. Do not build production-critical integrations against it yet.
431
431
  *
432
- * Partially updates a view. Omitted fields are left unchanged. For REVISIONS, prefer the incremental fields — `bundleEdits` (exact search-and-replace on the stored render bundle) and `queryUpserts`/`queryRemovals` (per-query changes) — so you transmit only what changed instead of re-sending the whole payload. The full-replacement fields remain for rewrites: `renderBundle`, and `queries` (a FULL replacement of the query list — never drop queries the user didn't ask to remove). Replacement and incremental forms of the same aspect cannot be combined. The resulting SQL and bundle pass the same validation as createCustomView (SELECT-only, size cap, self-contained, paid:data listener). Works on DRAFT or PUBLISHED views — published embeds pick the change up on their next load.
432
+ * Partially updates a view. Omitted fields are left unchanged. For REVISIONS, prefer the incremental fields — `bundleEdits` (exact search-and-replace on the stored render bundle) and `queryUpserts`/`queryRemovals` (per-query changes) — so you transmit only what changed instead of re-sending the whole payload. The full-replacement fields remain for rewrites: `renderBundle`, and `queries` (a FULL replacement of the query list — never drop queries the user didn't ask to remove). Replacement and incremental forms of the same aspect cannot be combined. The resulting SQL and bundle pass the same validation as createCustomView (SELECT-only, size cap, self-contained, paid:data listener). Works on DRAFT or PUBLISHED views — published embeds pick the change up on their next load. If the queries or hierarchy setting change during validation, returns 409 CUSTOM_VIEW_UPDATE_CONFLICT; fetch the current authoring definition and reapply your changes before retrying.
433
433
  *
434
434
  * @param {Paid.UpdateCustomViewRequest} request
435
435
  * @param {CustomViewsExperimental.RequestOptions} requestOptions - Request-specific configuration.
@@ -437,6 +437,7 @@ class CustomViewsExperimental {
437
437
  * @throws {@link Paid.BadRequestError}
438
438
  * @throws {@link Paid.ForbiddenError}
439
439
  * @throws {@link Paid.NotFoundError}
440
+ * @throws {@link Paid.ConflictError}
440
441
  * @throws {@link Paid.InternalServerError}
441
442
  *
442
443
  * @example
@@ -475,6 +476,8 @@ class CustomViewsExperimental {
475
476
  throw new Paid.ForbiddenError(_response.error.body, _response.rawResponse);
476
477
  case 404:
477
478
  throw new Paid.NotFoundError(_response.error.body, _response.rawResponse);
479
+ case 409:
480
+ throw new Paid.ConflictError(_response.error.body, _response.rawResponse);
478
481
  case 500:
479
482
  throw new Paid.InternalServerError(_response.error.body, _response.rawResponse);
480
483
  default:
@@ -505,7 +508,89 @@ class CustomViewsExperimental {
505
508
  /**
506
509
  * ⚠️ **Experimental** — this endpoint may change or be removed without notice and is not subject to v2 backwards-compatibility guarantees. Do not build production-critical integrations against it yet.
507
510
  *
508
- * Runs every stored query of the view on the read-only analytics database and returns the result sets keyed by query id. For a customer-scoped view (the default), the query is scoped to the caller's organization AND the given `customerId` (both enforced as ClickHouse row filters) — `customerId` is required. For an organization-scoped view, the data is org-wide (scoped only to the caller's organization) and `customerId` is ignored. The scope is enforced by the database — it cannot be widened by the stored SQL. If the view declares filters, pass per-request values as `filter_<name>` query parameters (e.g. `filter_region=eu`); undeclared names or disallowed values are rejected with 400. Filters narrow data within the scope — never widen it.
511
+ * Lists active customer units for a published customer-scoped view with hierarchyEnabled set to true. Hierarchy eligibility is independent of the requested page or usage; requires credit hierarchies to be enabled for the organization.
512
+ *
513
+ * @param {Paid.GetCustomViewCustomerUnitsRequest} request
514
+ * @param {CustomViewsExperimental.RequestOptions} requestOptions - Request-specific configuration.
515
+ *
516
+ * @throws {@link Paid.BadRequestError}
517
+ * @throws {@link Paid.ForbiddenError}
518
+ * @throws {@link Paid.NotFoundError}
519
+ * @throws {@link Paid.InternalServerError}
520
+ *
521
+ * @example
522
+ * await client.customViewsExperimental.getCustomViewCustomerUnits({
523
+ * displayId: "displayId",
524
+ * customerId: "cus_acme"
525
+ * })
526
+ */
527
+ getCustomViewCustomerUnits(request, requestOptions) {
528
+ return core.HttpResponsePromise.fromPromise(this.__getCustomViewCustomerUnits(request, requestOptions));
529
+ }
530
+ __getCustomViewCustomerUnits(request, requestOptions) {
531
+ return __awaiter(this, void 0, void 0, function* () {
532
+ var _a, _b, _c, _d, _e, _f, _g, _h;
533
+ const { displayId, limit, offset, customerId } = request;
534
+ const _queryParams = {};
535
+ if (limit != null) {
536
+ _queryParams.limit = limit.toString();
537
+ }
538
+ if (offset != null) {
539
+ _queryParams.offset = offset.toString();
540
+ }
541
+ _queryParams.customerId = customerId;
542
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
543
+ const _response = yield core.fetcher({
544
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PaidEnvironment.Default, `experimental/views/${core.url.encodePathParam(displayId)}/customer-units`),
545
+ method: "GET",
546
+ headers: _headers,
547
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
548
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
549
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
550
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
551
+ });
552
+ if (_response.ok) {
553
+ return { data: _response.body, rawResponse: _response.rawResponse };
554
+ }
555
+ if (_response.error.reason === "status-code") {
556
+ switch (_response.error.statusCode) {
557
+ case 400:
558
+ throw new Paid.BadRequestError(_response.error.body, _response.rawResponse);
559
+ case 403:
560
+ throw new Paid.ForbiddenError(_response.error.body, _response.rawResponse);
561
+ case 404:
562
+ throw new Paid.NotFoundError(_response.error.body, _response.rawResponse);
563
+ case 500:
564
+ throw new Paid.InternalServerError(_response.error.body, _response.rawResponse);
565
+ default:
566
+ throw new errors.PaidError({
567
+ statusCode: _response.error.statusCode,
568
+ body: _response.error.body,
569
+ rawResponse: _response.rawResponse,
570
+ });
571
+ }
572
+ }
573
+ switch (_response.error.reason) {
574
+ case "non-json":
575
+ throw new errors.PaidError({
576
+ statusCode: _response.error.statusCode,
577
+ body: _response.error.rawBody,
578
+ rawResponse: _response.rawResponse,
579
+ });
580
+ case "timeout":
581
+ throw new errors.PaidTimeoutError("Timeout exceeded when calling GET /experimental/views/{displayId}/customer-units.");
582
+ case "unknown":
583
+ throw new errors.PaidError({
584
+ message: _response.error.errorMessage,
585
+ rawResponse: _response.rawResponse,
586
+ });
587
+ }
588
+ });
589
+ }
590
+ /**
591
+ * ⚠️ **Experimental** — this endpoint may change or be removed without notice and is not subject to v2 backwards-compatibility guarantees. Do not build production-critical integrations against it yet.
592
+ *
593
+ * Runs every stored query of the view on the read-only analytics database and returns the result sets keyed by query id. For a customer-scoped view (the default), the query is scoped to the caller's organization AND the given `customerId` (both enforced as ClickHouse row filters) — `customerId` is required. For an organization-scoped view, the data is org-wide (scoped only to the caller's organization) and `customerId` is ignored. The scope is enforced by the database — it cannot be widened by the stored SQL. If the view declares filters, pass per-request values as `filter_<name>` query parameters (e.g. `filter_region=eu`); undeclared names or disallowed values are rejected with 400. Filters narrow data within the scope — never widen it. Only PUBLISHED views are served by default; a DRAFT returns 404. To check a saved DRAFT's real data before publishing, pass `includeDraft=true`. Embeds and share links never serve a DRAFT.
509
594
  *
510
595
  * @param {Paid.GetCustomViewDataRequest} request
511
596
  * @param {CustomViewsExperimental.RequestOptions} requestOptions - Request-specific configuration.
@@ -514,6 +599,7 @@ class CustomViewsExperimental {
514
599
  * @throws {@link Paid.ForbiddenError}
515
600
  * @throws {@link Paid.NotFoundError}
516
601
  * @throws {@link Paid.RequestTimeoutError}
602
+ * @throws {@link Paid.ConflictError}
517
603
  * @throws {@link Paid.TooManyRequestsError}
518
604
  * @throws {@link Paid.InternalServerError}
519
605
  *
@@ -528,7 +614,7 @@ class CustomViewsExperimental {
528
614
  __getCustomViewData(request, requestOptions) {
529
615
  return __awaiter(this, void 0, void 0, function* () {
530
616
  var _a, _b, _c, _d, _e, _f, _g, _h;
531
- const { displayId, customerId, periodKind, periodUnit, periodAmount, periodStart, periodEnd } = request;
617
+ const { displayId, customerId, periodKind, periodUnit, periodAmount, periodStart, periodEnd, includeDraft, unitMode, unitExternalId, } = request;
532
618
  const _queryParams = {};
533
619
  if (customerId != null) {
534
620
  _queryParams.customerId = customerId;
@@ -548,6 +634,15 @@ class CustomViewsExperimental {
548
634
  if (periodEnd != null) {
549
635
  _queryParams.periodEnd = periodEnd;
550
636
  }
637
+ if (includeDraft != null) {
638
+ _queryParams.includeDraft = includeDraft;
639
+ }
640
+ if (unitMode != null) {
641
+ _queryParams.unitMode = unitMode;
642
+ }
643
+ if (unitExternalId != null) {
644
+ _queryParams.unitExternalId = unitExternalId;
645
+ }
551
646
  const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
552
647
  const _response = yield core.fetcher({
553
648
  url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PaidEnvironment.Default, `experimental/views/${core.url.encodePathParam(displayId)}/data`),
@@ -571,6 +666,8 @@ class CustomViewsExperimental {
571
666
  throw new Paid.NotFoundError(_response.error.body, _response.rawResponse);
572
667
  case 408:
573
668
  throw new Paid.RequestTimeoutError(_response.error.body, _response.rawResponse);
669
+ case 409:
670
+ throw new Paid.ConflictError(_response.error.body, _response.rawResponse);
574
671
  case 429:
575
672
  throw new Paid.TooManyRequestsError(_response.error.body, _response.rawResponse);
576
673
  case 500:
@@ -11,6 +11,10 @@ import type * as Paid from "../../../../index.js";
11
11
  * }
12
12
  */
13
13
  export interface CreateCustomViewRequest {
14
+ /** Enable customer unit navigation for a customer-scoped view. Setting true requires customer hierarchies to be enabled for your organization, and every query must support unit selection. Existing views default to false. */
15
+ hierarchyEnabled?: boolean;
16
+ /** Send the customer's unit caps to the render bundle as `context.caps`. Needs `hierarchyEnabled` on a customer-scoped view. Turn it on only for views that draw cap usage: each load then reads cap usage from billing. Caps are spend policy, so an API key also needs `read:billing` to receive them in the data (they are left out otherwise) or to mint this view's embed token. Defaults to false. */
17
+ capsEnabled?: boolean;
14
18
  /** Human-readable view name (shown in preview + audit log). */
15
19
  name: string;
16
20
  /** Optional longer description of what the view shows. */
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * displayId: "displayId",
5
+ * customerId: "cus_acme"
6
+ * }
7
+ */
8
+ export interface GetCustomViewCustomerUnitsRequest {
9
+ displayId: string;
10
+ limit?: number;
11
+ offset?: number;
12
+ /** The customer's external ID, Paid customer ID, or internal ID. */
13
+ customerId: string;
14
+ }
@@ -19,4 +19,10 @@ export interface GetCustomViewDataRequest {
19
19
  periodStart?: string;
20
20
  /** absolute override only: inclusive end date (YYYY-MM-DD). */
21
21
  periodEnd?: string;
22
+ /** Pass 'true' to also serve a DRAFT view, so you can check its real data before publishing. Without it a DRAFT returns 404. End-customer embeds and share links never serve a DRAFT. */
23
+ includeDraft?: Paid.GetCustomViewDataRequestIncludeDraft;
24
+ /** Unit selection for this request. Omit both unit parameters for all customer activity. Shared links instead use their saved starting selection when omitted; pass all to reset a shared link. */
25
+ unitMode?: Paid.GetCustomViewDataRequestUnitMode;
26
+ /** The unit's external ID. Required with direct or subtree, and omitted with all. */
27
+ unitExternalId?: string;
22
28
  }
@@ -7,6 +7,10 @@ import type * as Paid from "../../../../index.js";
7
7
  */
8
8
  export interface UpdateCustomViewRequest {
9
9
  displayId: string;
10
+ /** Enable customer unit navigation for a customer-scoped view. Setting true requires customer hierarchies to be enabled for your organization, and every query must support unit selection. Existing views default to false. */
11
+ hierarchyEnabled?: boolean;
12
+ /** Send the customer's unit caps to the render bundle as `context.caps`. Needs `hierarchyEnabled` on a customer-scoped view. Turn it on only for views that draw cap usage: each load then reads cap usage from billing. Caps are spend policy, so an API key also needs `read:billing` to receive them in the data (they are left out otherwise) or to mint this view's embed token. Defaults to false. */
13
+ capsEnabled?: boolean;
10
14
  /** New human-readable view name. */
11
15
  name?: string;
12
16
  /** New description; pass null to clear it. */
@@ -1,4 +1,5 @@
1
1
  export type { CreateCustomViewRequest } from "./CreateCustomViewRequest.js";
2
+ export type { GetCustomViewCustomerUnitsRequest } from "./GetCustomViewCustomerUnitsRequest.js";
2
3
  export type { GetCustomViewDataRequest } from "./GetCustomViewDataRequest.js";
3
4
  export type { GetCustomViewEmbedTokenRequest } from "./GetCustomViewEmbedTokenRequest.js";
4
5
  export type { GetCustomViewRequest } from "./GetCustomViewRequest.js";
@@ -0,0 +1,5 @@
1
+ export declare const GetCustomViewDataRequestIncludeDraft: {
2
+ readonly True: "true";
3
+ readonly False: "false";
4
+ };
5
+ export type GetCustomViewDataRequestIncludeDraft = (typeof GetCustomViewDataRequestIncludeDraft)[keyof typeof GetCustomViewDataRequestIncludeDraft];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.GetCustomViewDataRequestIncludeDraft = void 0;
5
+ exports.GetCustomViewDataRequestIncludeDraft = {
6
+ True: "true",
7
+ False: "false",
8
+ };
@@ -0,0 +1,6 @@
1
+ export declare const GetCustomViewDataRequestUnitMode: {
2
+ readonly All: "all";
3
+ readonly Direct: "direct";
4
+ readonly Subtree: "subtree";
5
+ };
6
+ export type GetCustomViewDataRequestUnitMode = (typeof GetCustomViewDataRequestUnitMode)[keyof typeof GetCustomViewDataRequestUnitMode];
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.GetCustomViewDataRequestUnitMode = void 0;
5
+ exports.GetCustomViewDataRequestUnitMode = {
6
+ All: "all",
7
+ Direct: "direct",
8
+ Subtree: "subtree",
9
+ };
@@ -1,2 +1,4 @@
1
+ export * from "./GetCustomViewDataRequestIncludeDraft.js";
1
2
  export * from "./GetCustomViewDataRequestPeriodKind.js";
2
3
  export * from "./GetCustomViewDataRequestPeriodUnit.js";
4
+ export * from "./GetCustomViewDataRequestUnitMode.js";
@@ -14,5 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./GetCustomViewDataRequestIncludeDraft.js"), exports);
17
18
  __exportStar(require("./GetCustomViewDataRequestPeriodKind.js"), exports);
18
19
  __exportStar(require("./GetCustomViewDataRequestPeriodUnit.js"), exports);
20
+ __exportStar(require("./GetCustomViewDataRequestUnitMode.js"), exports);
@@ -11,7 +11,7 @@ export declare class CustomerPortals {
11
11
  protected readonly _options: CustomerPortals.Options;
12
12
  constructor(_options: CustomerPortals.Options);
13
13
  /**
14
- * Creates a portal session for the customer. Returns a short-lived URL to the customer portal.
14
+ * Deprecated — the customer portal is being retired, and this endpoint will be removed in a future release. It keeps working for existing integrations meanwhile: it creates a portal session for the customer and returns a short-lived URL to the customer portal. Contact Paid before building anything new on it.
15
15
  *
16
16
  * @param {Paid.CreateCustomerPortalRequest} request
17
17
  * @param {CustomerPortals.RequestOptions} requestOptions - Request-specific configuration.
@@ -54,7 +54,7 @@ class CustomerPortals {
54
54
  this._options = _options;
55
55
  }
56
56
  /**
57
- * Creates a portal session for the customer. Returns a short-lived URL to the customer portal.
57
+ * Deprecated — the customer portal is being retired, and this endpoint will be removed in a future release. It keeps working for existing integrations meanwhile: it creates a portal session for the customer and returns a short-lived URL to the customer portal. Contact Paid before building anything new on it.
58
58
  *
59
59
  * @param {Paid.CreateCustomerPortalRequest} request
60
60
  * @param {CustomerPortals.RequestOptions} requestOptions - Request-specific configuration.