@vettly/supabase 0.1.4 → 0.1.5

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.
Files changed (2) hide show
  1. package/README.md +11 -11
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,17 +1,17 @@
1
1
  # @vettly/supabase
2
2
 
3
- Supabase Edge Functions for App Store Guideline 1.2 compliance. Deno-compatible client with fetch-based transport for serverless environments.
3
+ Supabase Edge Functions for UGC moderation. Deno-compatible client with fetch-based transport for serverless environments.
4
4
 
5
- ## App Store Guideline 1.2
5
+ ## UGC Moderation Essentials
6
6
 
7
- Apple requires every iOS app with user-generated content to implement four things. This package handles all four in Supabase Edge Functions:
7
+ Apps with user-generated content need four things to stay compliant and keep users safe. This package handles all four in Supabase Edge Functions:
8
8
 
9
- | Requirement | Guideline | Supabase Integration |
10
- |-------------|-----------|----------------------|
11
- | **Content filtering** | 1.2.1 | `createModerationHandler()`, `client.check()` |
12
- | **User reporting** | 1.2.2 | Fetch to REST API (`POST /v1/reports`) |
13
- | **User blocking** | 1.2.3 | Fetch to REST API (`POST /v1/blocks`) |
14
- | **Audit trail** | — | `result.decisionId` on every decision |
9
+ | Requirement | Supabase Integration |
10
+ |-------------|----------------------|
11
+ | **Content filtering** | `createModerationHandler()`, `client.check()` |
12
+ | **User reporting** | Fetch to REST API (`POST /v1/reports`) |
13
+ | **User blocking** | Fetch to REST API (`POST /v1/blocks`) |
14
+ | **Audit trail** | `result.decisionId` on every decision |
15
15
 
16
16
  ```typescript
17
17
  // supabase/functions/comments/index.ts
@@ -286,13 +286,13 @@ interface ModerationResult {
286
286
  Create `.env.local` in your Supabase project:
287
287
 
288
288
  ```bash
289
- VETTLY_API_KEY=sk_live_...
289
+ VETTLY_API_KEY=vettly_live_...
290
290
  ```
291
291
 
292
292
  Or set in `supabase/functions/.env`:
293
293
 
294
294
  ```bash
295
- VETTLY_API_KEY=sk_live_...
295
+ VETTLY_API_KEY=vettly_live_...
296
296
  ```
297
297
 
298
298
  ---
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vettly/supabase",
3
- "version": "0.1.4",
4
- "description": "Supabase Edge Functions client for content moderation. App Store compliance at the edge.",
3
+ "version": "0.1.5",
4
+ "description": "Supabase Edge Functions client for content moderation. Content moderation at the edge.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",