@clocknext/sdk 0.20.0 → 0.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -2548,9 +2548,10 @@ type WebhookEventType = "wallet.balance.update" | "wallet.balance.drop";
2548
2548
  * Do not compare the two — the ledger API reports `SUBSCRIPTION`, `RENEWAL`,
2549
2549
  * `API`, … where the webhook says `TOPUP` or `ADJUSTMENT`.
2550
2550
  *
2551
- * `SETTLE` is part of the type but `wallet.balance.update` does not fire for it.
2551
+ * The ledger also has a `SETTLE` source (an invoice being paid off), but
2552
+ * `wallet.balance.update` is never sent for it, so it is not in this type.
2552
2553
  */
2553
- type WebhookWalletSource = "TOPUP" | "USAGE" | "SETTLE" | "ADJUSTMENT";
2554
+ type WebhookWalletSource = "TOPUP" | "USAGE" | "ADJUSTMENT";
2554
2555
  /** The customer a wallet event is about. */
2555
2556
  interface WebhookCustomer {
2556
2557
  id: string;
package/dist/index.d.ts CHANGED
@@ -2548,9 +2548,10 @@ type WebhookEventType = "wallet.balance.update" | "wallet.balance.drop";
2548
2548
  * Do not compare the two — the ledger API reports `SUBSCRIPTION`, `RENEWAL`,
2549
2549
  * `API`, … where the webhook says `TOPUP` or `ADJUSTMENT`.
2550
2550
  *
2551
- * `SETTLE` is part of the type but `wallet.balance.update` does not fire for it.
2551
+ * The ledger also has a `SETTLE` source (an invoice being paid off), but
2552
+ * `wallet.balance.update` is never sent for it, so it is not in this type.
2552
2553
  */
2553
- type WebhookWalletSource = "TOPUP" | "USAGE" | "SETTLE" | "ADJUSTMENT";
2554
+ type WebhookWalletSource = "TOPUP" | "USAGE" | "ADJUSTMENT";
2554
2555
  /** The customer a wallet event is about. */
2555
2556
  interface WebhookCustomer {
2556
2557
  id: string;
package/dist/index.js CHANGED
@@ -338,7 +338,7 @@ function sleep(ms) {
338
338
  }
339
339
 
340
340
  // src/http.ts
341
- var SDK_VERSION = "0.20.0" ;
341
+ var SDK_VERSION = "0.20.1" ;
342
342
  var Transport = class {
343
343
  constructor(cfg) {
344
344
  this.cfg = cfg;