@splitin/verification-cli 0.1.0-beta.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 SplitInTech
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/NOTICE ADDED
@@ -0,0 +1,32 @@
1
+ Verification Adapter SDK
2
+ Copyright (c) 2026 SplitInTech
3
+
4
+ This product is licensed under the MIT License. See LICENSE.
5
+
6
+ Third-party notices
7
+ ===================
8
+
9
+ This project redistributes no vendor identity SDKs in its core or server
10
+ packages. Optional peer dependencies used by browser plugins:
11
+
12
+ - `@stripe/stripe-js` — Stripe, Inc. (MIT). Used only by the Stripe Identity
13
+ browser plugin via dynamic import. Stripe is a trademark of Stripe, Inc.
14
+ - `persona` — Persona Identities, Inc. Used only by the Persona browser plugin
15
+ via dynamic import.
16
+ - `react-plaid-link` — Plaid Inc. (MIT). Used only by the Plaid Identity
17
+ Verification browser plugin via dynamic import. Plaid is a trademark of
18
+ Plaid Inc.
19
+
20
+ Server adapters speak HTTPS to provider APIs with an injected Fetch
21
+ implementation. They do not bundle Stripe, Persona, or Plaid Node SDKs.
22
+
23
+ Runtime and tooling (declared in package.json; not vendored):
24
+
25
+ - `ajv` — MIT
26
+ - `jose` — MIT (Plaid webhook JWT verification)
27
+ - `pg` — MIT (optional PostgreSQL executor)
28
+ - TypeScript, tsup, vitest, Changesets — Apache-2.0 / MIT as published by
29
+ their authors
30
+
31
+ This project provides engineering primitives. It is not a legal, KYC, KYB, or
32
+ regulatory compliance certification.
package/README.md ADDED
@@ -0,0 +1,38 @@
1
+ # @splitin/verification-cli
2
+
3
+ `splitin-verification` initializes, validates, and diagnoses a self-hosted
4
+ verification adapter workspace. Every generated configuration is
5
+ **disabled-by-default development**. Production routes stay off until sandbox
6
+ certification.
7
+
8
+ ```bash
9
+ npx splitin-verification init
10
+ npx splitin-verification config validate
11
+ npx splitin-verification doctor
12
+ ```
13
+
14
+ The CLI never prints values matching `sk_`, `rk_`, `whsec_`, or tokens.
15
+
16
+ ## Commands
17
+
18
+ | Command | What it does |
19
+ | --- | --- |
20
+ | `init` | Write `verification.config.json` and `.env.example` with empty placeholders |
21
+ | `config validate` | Check contract/API version compatibility and credential *shape* without creating billable production attempts |
22
+ | `doctor` | Diagnose database, webhook, provider, browser-key, and routing readiness |
23
+ | `db migrate` / `db rollback` | Write SQL migrations for the `verification` schema. Does not apply them to production |
24
+ | `provider scaffold` | Write a fourth-party adapter stub for `com.example.employee_check` |
25
+ | `provider conformance` | Run `@splitin/verification-adapter-sdk` `runAdapterConformance` against the sandbox fake |
26
+ | `registry generate` | Write a typed provider/package registry (`productionRoutesEnabled = false`) |
27
+ | `dev` | Bind a loopback sandbox listener. `/v1/*` and `/production/*` return 403 |
28
+ | `release verify` | Check versions and npm trusted-publishing policy (OIDC, no embedded npm token) |
29
+
30
+ ## Credential checks
31
+
32
+ `config validate` and `doctor` inspect prefixes (`sk_test_` vs `sk_live_`) and
33
+ pinned API versions. They do **not** create Stripe Identity sessions, Persona
34
+ inquiries, or Plaid Identity Verification attempts.
35
+
36
+ ## License
37
+
38
+ MIT. See [LICENSE](LICENSE).