@klappay/types 1.0.4 → 1.0.6

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/README.md CHANGED
@@ -1,16 +1,16 @@
1
- <img src="https://raw.githubusercontent.com/klappay/.github/refs/heads/main/profile/logo.png" alt="Klap" width="80" />
1
+ <img src="https://raw.githubusercontent.com/klappay/.github/refs/heads/main/profile/logo.png" alt="Klappay" width="80" />
2
2
 
3
3
  # @klappay/types
4
4
 
5
- TypeScript types and [Zod](https://zod.dev) schemas for the Klap Core
5
+ TypeScript types and [Zod](https://zod.dev) schemas for the Klappay Core
6
6
  API — the request/response contracts for creating charges, managing
7
7
  webhooks, and everything else the API exposes. Published separately from
8
8
  the API implementation itself (which is closed-source) so integrators get
9
- accurate, versioned types without needing access to Klap's own codebase.
9
+ accurate, versioned types without needing access to Klappay's own codebase.
10
10
 
11
- Klap is a non-custodial crypto payments API — a merchant creates a
12
- charge, Klap predicts a deterministic on-chain address for it, the payer
13
- sends funds directly to that address, and Klap detects and distributes the
11
+ Klappay is a non-custodial crypto payments API — a merchant creates a
12
+ charge, Klappay predicts a deterministic on-chain address for it, the payer
13
+ sends funds directly to that address, and Klappay detects and distributes the
14
14
  payment without ever holding the funds itself.
15
15
 
16
16
  ## Install
@@ -66,6 +66,7 @@ actually exported.
66
66
  | [Webhooks](https://api.klappay.com/types/webhooks) | Every `WebhookEventType`, categories, `Webhook`, `WebhookPayload`, `TypedWebhookPayload` |
67
67
  | [Sandbox](https://api.klappay.com/types/sandbox) | `SandboxTriggerInput`, `SandboxEventTriggerInput`, `TriggerableChargeEvent` |
68
68
  | [Distributions](https://api.klappay.com/types/distributions) | `PendingDistribution`, `PendingDistributionEvent` — the 0xSplits keeper feed |
69
+ | [Metrics query](https://api.klappay.com/types/metrics-query) | `MetricsQuerySchema`, `MetricsQueryResult` — the ad-hoc analytics query endpoint |
69
70
  | [Auth & accounts](https://api.klappay.com/types/auth-and-accounts) | Signup/login, email verification, password reset, `ApiKey`, `User`/`UserRole`, `Organization` |
70
71
  | [Tokens & networks](https://api.klappay.com/types/tokens-and-networks) | `Token`, `Network`, and every chain/token constant |
71
72
  | [Errors & health](https://api.klappay.com/types/errors-and-health) | `ErrorPayload` (every non-2xx response shape), `Health` |
@@ -103,7 +104,7 @@ app.post('/webhooks/klap', (req, res) => {
103
104
  ```
104
105
 
105
106
  Note: this package only validates the *shape* of a webhook payload — it
106
- does not verify the `X-Klap-Signature` HMAC header, which you must still
107
+ does not verify the `X-Klappay-Signature` HMAC header, which you must still
107
108
  check yourself against the signing secret returned when you created the
108
109
  webhook. Validating shape without verifying the signature means anyone
109
110
  who can reach your endpoint can send you a structurally-valid payload.
@@ -127,5 +128,5 @@ what changed release to release.
127
128
 
128
129
  MIT — see the
129
130
  [`LICENSE`](https://unpkg.com/@klappay/types/LICENSE) file included in
130
- this package. This applies to this package only; the Klap Core API
131
+ this package. This applies to this package only; the Klappay Core API
131
132
  implementation itself is closed-source.