@antiphony/shared 0.1.0 → 0.4.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/README.md +4 -4
- package/dist/cjs/api-codecs.cjs +90 -787
- package/dist/cjs/api-codecs.d.cts +117 -290
- package/dist/cjs/index.cjs +102 -947
- package/dist/cjs/index.d.cts +89 -7
- package/dist/cjs/nsid.cjs +8 -18
- package/dist/cjs/nsid.d.cts +8 -17
- package/dist/cjs/types/audio.cjs +77 -662
- package/dist/cjs/types/audio.d.cts +285 -203
- package/dist/cjs/types/blob.cjs +5 -9
- package/dist/cjs/types/blob.d.cts +21 -21
- package/dist/cjs/types/records.cjs +0 -370
- package/dist/cjs/types/records.d.cts +1 -825
- package/dist/esm/api-codecs.d.ts +117 -290
- package/dist/esm/api-codecs.js +5 -6
- package/dist/esm/{chunk-ORMEWXMH.js → chunk-5JBD5THX.js} +1 -16
- package/dist/esm/{chunk-F2CANZZ7.js → chunk-BNNLHRH7.js} +1 -1
- package/dist/esm/chunk-D655OH2I.js +35 -0
- package/dist/esm/chunk-RUUHUNZ6.js +37 -0
- package/dist/esm/chunk-SBYNIQRZ.js +23 -0
- package/dist/esm/chunk-SMK4OZNU.js +17 -0
- package/dist/esm/{chunk-BUNMR4ZO.js → chunk-WL2GSPGC.js} +81 -12
- package/dist/esm/errors/index.js +1 -1
- package/dist/esm/index.d.ts +89 -7
- package/dist/esm/index.js +7 -9
- package/dist/esm/nsid.d.ts +8 -17
- package/dist/esm/nsid.js +2 -2
- package/dist/esm/observability/index.js +2 -2
- package/dist/esm/observability/report-error.js +2 -2
- package/dist/esm/types/audio.d.ts +285 -203
- package/dist/esm/types/audio.js +4 -5
- package/dist/esm/types/blob.d.ts +21 -21
- package/dist/esm/types/blob.js +2 -2
- package/dist/esm/types/records.d.ts +1 -825
- package/dist/esm/types/records.js +2 -3
- package/dist/esm/utils/index.js +1 -1
- package/package.json +90 -26
- package/dist/cjs/types/api.cjs +0 -726
- package/dist/cjs/types/api.d.cts +0 -494
- package/dist/cjs/types/channels.cjs +0 -170
- package/dist/cjs/types/channels.d.cts +0 -262
- package/dist/cjs/types/storage.cjs +0 -414
- package/dist/cjs/types/storage.d.cts +0 -197
- package/dist/cjs/types/views.cjs +0 -820
- package/dist/cjs/types/views.d.cts +0 -9806
- package/dist/esm/chunk-3WZJXJNU.js +0 -378
- package/dist/esm/chunk-5EHV73BA.js +0 -20
- package/dist/esm/chunk-7V44CPRR.js +0 -132
- package/dist/esm/chunk-EA4OONDV.js +0 -380
- package/dist/esm/chunk-TIZRJORN.js +0 -24
- package/dist/esm/chunk-XDBKR6LW.js +0 -32
- package/dist/esm/types/api.d.ts +0 -494
- package/dist/esm/types/api.js +0 -5
- package/dist/esm/types/channels.d.ts +0 -262
- package/dist/esm/types/channels.js +0 -162
- package/dist/esm/types/storage.d.ts +0 -197
- package/dist/esm/types/storage.js +0 -26
- package/dist/esm/types/views.d.ts +0 -9806
- package/dist/esm/types/views.js +0 -4
package/README.md
CHANGED
|
@@ -24,24 +24,24 @@ Ships both ESM and CommonJS builds with correct type resolution under `node16`/`
|
|
|
24
24
|
import { AudioPostRecordSchema, AudioPostViewSchema } from '@antiphony/shared';
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
The root re-exports the most-used pieces (
|
|
27
|
+
The root re-exports the most-used pieces (audio records + views, codecs, NSIDs, errors, utils, observability). Granular subpaths are available too:
|
|
28
28
|
|
|
29
29
|
| Subpath | What's in it |
|
|
30
30
|
| :--- | :--- |
|
|
31
|
-
| `@antiphony/shared` | The common surface: records
|
|
31
|
+
| `@antiphony/shared` | The common surface: audio records + views, `api-codecs`, `nsid`, `errors`, `utils`, `observability`. |
|
|
32
32
|
| `@antiphony/shared/api-codecs` | Request/response Zod codecs for the REST surface. |
|
|
33
33
|
| `@antiphony/shared/nsid` | The `dev.antiphony.*` NSID constants. |
|
|
34
34
|
| `@antiphony/shared/errors` | Shared error types and helpers. |
|
|
35
35
|
| `@antiphony/shared/utils` | Pure shared utilities (projection/date/sanitization helpers). |
|
|
36
36
|
| `@antiphony/shared/observability` | Logging/error-reporting helpers (`./observability/report-error` for just the reporter). |
|
|
37
|
-
| `@antiphony/shared/types/*` | Individual type modules: `
|
|
37
|
+
| `@antiphony/shared/types/*` | Individual type modules: `audio`, `blob`, `processing`, `records`. |
|
|
38
38
|
|
|
39
39
|
## The records this models
|
|
40
40
|
|
|
41
41
|
- **`dev.antiphony.audio.post`** — the single canonical content record. A post without a `reply` is a prompt; with a `reply` it's a reply.
|
|
42
42
|
- **`dev.antiphony.embed.audio`** — the audio attachment (stored record + hydrated view with a signed playback URL).
|
|
43
43
|
- **`dev.antiphony.audio.transcript`** — platform-enrichment transcript, lifted into the embed view at read time.
|
|
44
|
-
- **`dev.antiphony.actor.profile`** — the actor profile.
|
|
44
|
+
- **`dev.antiphony.actor.profile`** — the portable actor-profile shape. Lexicon-only: the core never stores it; the calling app owns profile data.
|
|
45
45
|
|
|
46
46
|
See the [lexicon reference](https://docs.antiphony.dev/lexicons/overview/) for the full contract.
|
|
47
47
|
|