@klappay/types 1.0.2 → 1.0.3
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/CHANGELOG.md +22 -2
- package/README.md +18 -15
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @klappay/types
|
|
2
2
|
|
|
3
|
+
## 1.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1d3e9b1: No code changes — updates package metadata and README.md so npm shows
|
|
8
|
+
everything correctly:
|
|
9
|
+
|
|
10
|
+
- Adds `keywords` for npm search discoverability.
|
|
11
|
+
- `README.md`'s documentation table, `CHANGELOG.md` link, and `LICENSE`
|
|
12
|
+
link all now point at real, working URLs — a public docs site at
|
|
13
|
+
[api.klappay.com/types](https://api.klappay.com/types) (including a
|
|
14
|
+
changelog page) for the first, `unpkg.com` for the second — instead
|
|
15
|
+
of relative paths, which never rendered as navigable links on
|
|
16
|
+
npmjs.com.
|
|
17
|
+
- `docs/` is no longer bundled in the published tarball — the public
|
|
18
|
+
docs site above is now the canonical place to read it.
|
|
19
|
+
- `docs/*.md` had five stray references to this repo's own internal
|
|
20
|
+
(private, unpublished) documentation by bare path — removed, since an
|
|
21
|
+
external reader could never reach them.
|
|
22
|
+
|
|
3
23
|
## 1.0.2
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -35,6 +55,6 @@ TypeScript types and Zod schemas for the Klap Core API's full request/response s
|
|
|
35
55
|
- **Sandbox** — simulate charge and account events with `test` API keys, no real transactions.
|
|
36
56
|
- **Verify** — public, unauthenticated proof-of-payment lookup.
|
|
37
57
|
- **Distributions** — discover settlement payouts claimable within their grace period.
|
|
38
|
-
- **Auth & accounts**, **tokens & networks**, **errors & health** — see
|
|
58
|
+
- **Auth & accounts**, **tokens & networks**, **errors & health** — see `packages/types/docs` (published at [api.klappay.com/types](https://api.klappay.com/types)) for the full topic-split reference.
|
|
39
59
|
|
|
40
|
-
See
|
|
60
|
+
See `packages/types/README.md` for usage.
|
package/README.md
CHANGED
|
@@ -55,20 +55,21 @@ API itself (open the API's base URL in a browser once you have access).
|
|
|
55
55
|
## Documentation
|
|
56
56
|
|
|
57
57
|
Full docs (with search and navigation) are published at
|
|
58
|
-
[api.klappay.com/
|
|
58
|
+
[api.klappay.com/types](https://api.klappay.com/types) — generated from
|
|
59
59
|
this same package's `docs/` source, so they never drift from what's
|
|
60
60
|
actually exported.
|
|
61
61
|
|
|
62
62
|
| Doc | Covers |
|
|
63
63
|
|---|---|
|
|
64
|
-
| [Getting started](https://api.klappay.com/
|
|
65
|
-
| [Charges](https://api.klappay.com/
|
|
66
|
-
| [Webhooks](https://api.klappay.com/
|
|
67
|
-
| [Sandbox](https://api.klappay.com/
|
|
68
|
-
| [Distributions](https://api.klappay.com/
|
|
69
|
-
| [Auth & accounts](https://api.klappay.com/
|
|
70
|
-
| [Tokens & networks](https://api.klappay.com/
|
|
71
|
-
| [Errors & health](https://api.klappay.com/
|
|
64
|
+
| [Getting started](https://api.klappay.com/types/getting-started) | Install, what's in this package, typing vs. runtime validation |
|
|
65
|
+
| [Charges](https://api.klappay.com/types/charges) | `Charge`, `CreateChargeInput`, `AcceptedPayment`, `Capabilities` (`GET /v1/networks`), listing/pagination, `VerifyCharge`, `TimelineEvent` |
|
|
66
|
+
| [Webhooks](https://api.klappay.com/types/webhooks) | Every `WebhookEventType`, categories, `Webhook`, `WebhookPayload`, `TypedWebhookPayload` |
|
|
67
|
+
| [Sandbox](https://api.klappay.com/types/sandbox) | `SandboxTriggerInput`, `SandboxEventTriggerInput`, `TriggerableChargeEvent` |
|
|
68
|
+
| [Distributions](https://api.klappay.com/types/distributions) | `PendingDistribution`, `PendingDistributionEvent` — the 0xSplits keeper feed |
|
|
69
|
+
| [Auth & accounts](https://api.klappay.com/types/auth-and-accounts) | Signup/login, email verification, password reset, `ApiKey`, `User`/`UserRole`, `Organization` |
|
|
70
|
+
| [Tokens & networks](https://api.klappay.com/types/tokens-and-networks) | `Token`, `Network`, and every chain/token constant |
|
|
71
|
+
| [Errors & health](https://api.klappay.com/types/errors-and-health) | `ErrorPayload` (every non-2xx response shape), `Health` |
|
|
72
|
+
| [Changelog](https://api.klappay.com/types/changelog) | Every published version of this package |
|
|
72
73
|
|
|
73
74
|
## Usage
|
|
74
75
|
|
|
@@ -117,12 +118,14 @@ needed. See the live API reference for details.
|
|
|
117
118
|
|
|
118
119
|
This package follows the API's own versioning. A breaking change to a
|
|
119
120
|
schema here means a breaking change to the corresponding API contract —
|
|
120
|
-
check [
|
|
121
|
-
version. The API implementation itself is
|
|
122
|
-
package's changelog is the only public record of
|
|
123
|
-
to release.
|
|
121
|
+
check the [changelog](https://api.klappay.com/types/changelog) before
|
|
122
|
+
upgrading across a major version. The API implementation itself is
|
|
123
|
+
closed-source, so this package's changelog is the only public record of
|
|
124
|
+
what changed release to release.
|
|
124
125
|
|
|
125
126
|
## License
|
|
126
127
|
|
|
127
|
-
MIT — see
|
|
128
|
-
|
|
128
|
+
MIT — see the
|
|
129
|
+
[`LICENSE`](https://unpkg.com/@klappay/types/LICENSE) file included in
|
|
130
|
+
this package. This applies to this package only; the Klap Core API
|
|
131
|
+
implementation itself is closed-source.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@klappay/types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "TypeScript types and Zod schemas for the Klap Core API — the request/response contracts, published separately so integrators get them without needing access to the (closed-source) API implementation.",
|
|
6
6
|
"keywords": [
|