@vettly/shared 0.1.13 → 0.1.15
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 +22 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
# @vettly/shared
|
|
2
2
|
|
|
3
|
-
Type-safe contracts for
|
|
3
|
+
Type-safe contracts for App Store Guideline 1.2 compliance. Runtime-validated schemas that ensure consistency across all Vettly packages.
|
|
4
|
+
|
|
5
|
+
## App Store Guideline 1.2
|
|
6
|
+
|
|
7
|
+
Apple requires every iOS app with user-generated content to implement four things. This package provides the canonical types and schemas that enforce each requirement across all Vettly packages:
|
|
8
|
+
|
|
9
|
+
| Requirement | Guideline | Shared Types |
|
|
10
|
+
|-------------|-----------|--------------|
|
|
11
|
+
| **Content filtering** | 1.2.1 | `CheckRequest`, `CheckResponse`, `Action` |
|
|
12
|
+
| **User reporting** | 1.2.2 | `WebhookEventType`, `Decision` |
|
|
13
|
+
| **User blocking** | 1.2.3 | `ModerationContext`, `Action` |
|
|
14
|
+
| **Audit trail** | — | `Decision`, `ContentType`, `Policy` |
|
|
15
|
+
|
|
16
|
+
All packages (`@vettly/sdk`, `@vettly/react`, `@vettly/express`, `@vettly/nextjs`) depend on these shared contracts. See [@vettly/sdk](https://www.npmjs.com/package/@vettly/sdk) for the full integration picture.
|
|
4
17
|
|
|
5
18
|
## Why Type-Safe Contracts Matter
|
|
6
19
|
|
|
@@ -485,6 +498,14 @@ const context: ModerationContext = {
|
|
|
485
498
|
|
|
486
499
|
---
|
|
487
500
|
|
|
501
|
+
## Get Your API Key
|
|
502
|
+
|
|
503
|
+
1. Sign up at [vettly.dev](https://vettly.dev)
|
|
504
|
+
2. Go to Dashboard > API Keys
|
|
505
|
+
3. Create and copy your key
|
|
506
|
+
|
|
507
|
+
---
|
|
508
|
+
|
|
488
509
|
## Links
|
|
489
510
|
|
|
490
511
|
- [vettly.dev](https://vettly.dev) - Sign up
|