@antiphony/shared 0.1.0 → 0.3.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/dist/cjs/api-codecs.cjs +26 -650
- package/dist/cjs/api-codecs.d.cts +15 -233
- package/dist/cjs/index.cjs +29 -761
- package/dist/cjs/index.d.cts +4 -4
- package/dist/cjs/nsid.cjs +3 -10
- package/dist/cjs/nsid.d.cts +1 -9
- package/dist/cjs/types/api.cjs +11 -571
- package/dist/cjs/types/api.d.cts +13 -265
- package/dist/cjs/types/audio.cjs +26 -547
- package/dist/cjs/types/audio.d.cts +93 -52
- package/dist/cjs/types/records.cjs +3 -328
- package/dist/cjs/types/records.d.cts +7 -729
- package/dist/cjs/types/views.cjs +8 -649
- package/dist/cjs/types/views.d.cts +43 -9123
- package/dist/esm/api-codecs.d.ts +46 -264
- package/dist/esm/api-codecs.js +5 -5
- package/dist/esm/{chunk-ORMEWXMH.js → chunk-5JBD5THX.js} +1 -16
- package/dist/esm/{chunk-XDBKR6LW.js → chunk-6LROFBKK.js} +3 -10
- package/dist/esm/{chunk-F2CANZZ7.js → chunk-BNNLHRH7.js} +1 -1
- package/dist/esm/{chunk-BUNMR4ZO.js → chunk-F7IHVM34.js} +20 -3
- package/dist/esm/chunk-FDM5FDN4.js +46 -0
- package/dist/esm/chunk-IHIBHQBJ.js +78 -0
- package/dist/esm/chunk-R6SBR3IG.js +97 -0
- package/dist/esm/chunk-Y6HNNRVD.js +12 -0
- package/dist/esm/errors/index.js +1 -1
- package/dist/esm/index.d.ts +4 -4
- package/dist/esm/index.js +8 -8
- package/dist/esm/nsid.d.ts +1 -9
- 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/api.d.ts +15 -267
- package/dist/esm/types/api.js +4 -5
- package/dist/esm/types/audio.d.ts +170 -129
- package/dist/esm/types/audio.js +4 -4
- package/dist/esm/types/blob.js +1 -1
- package/dist/esm/types/records.d.ts +10 -732
- package/dist/esm/types/records.js +2 -3
- package/dist/esm/types/views.d.ts +51 -9131
- package/dist/esm/types/views.js +3 -4
- package/dist/esm/utils/index.js +1 -1
- package/package.json +1 -1
- 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/esm/chunk-3WZJXJNU.js +0 -378
- 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/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/cjs/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
1
|
+
export { CreateAudioPostRequest, CreateAudioPostRequestSchema, UpdateProfileRequestSchema } from './api-codecs.cjs';
|
|
2
|
+
export { FirestoreTimestamp, FirestoreTimestampSchema, UserRecord, UserRecordSchema, httpsUrl } from './types/records.cjs';
|
|
3
|
+
export { ProfileView, ProfileViewAdmin, ProfileViewAdminSchema, ProfileViewBasic, ProfileViewBasicSchema, ProfileViewDetailed, ProfileViewDetailedSchema, ProfileViewSchema, ProfileViewSelf, ProfileViewSelfSchema, toProfileViewBasic } from './types/views.cjs';
|
|
4
4
|
export { ActorProfileRecord, ActorProfileRecordSchema, AudioEmbed, AudioEmbedSchema, AudioEmbedView, AudioEmbedViewSchema, AudioPostRecord, AudioPostRecordSchema, AudioPostView, AudioPostViewSchema, PostRecordPublic, PostRecordPublicSchema, ReplyRef, ReplyRefSchema, StrongRef, StrongRefSchema, TimedTranscript, TimedTranscriptSchema, TranscriptEnrichmentRecord, TranscriptEnrichmentRecordSchema, TranscriptSegment, TranscriptSegmentSchema, ViewerState, ViewerStateSchema } from './types/audio.cjs';
|
|
5
5
|
export { BlobRef, BlobRefSchema, resolveAudioUrl } from './types/blob.cjs';
|
|
6
|
-
export { ActorView, ActorViewSchema, PublicProfileDto, PublicProfileDtoSchema
|
|
6
|
+
export { ActorView, ActorViewSchema, PublicProfileDto, PublicProfileDtoSchema } from './types/api.cjs';
|
|
7
7
|
export { COLLECTIONS, EMBED_NSID, NSID, NsidValue, nsidForCollection } from './nsid.cjs';
|
|
8
8
|
export { ConflictError, ForbiddenError, NotFoundError, RateLimitError, ServiceError, UnauthorizedError, ValidationError } from './errors/index.cjs';
|
|
9
9
|
export { isFirestoreTimestamp } from './utils/index.cjs';
|
package/dist/cjs/nsid.cjs
CHANGED
|
@@ -2,12 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
// nsid.ts
|
|
4
4
|
var NSID = {
|
|
5
|
-
//
|
|
6
|
-
|
|
7
|
-
Reply: "com.voxpop.audio.reply",
|
|
8
|
-
Profile: "com.voxpop.actor.profile",
|
|
9
|
-
// Antiphony canonical record types (dev.antiphony.*). Added additively in
|
|
10
|
-
// Stream 1; see lexicons/dev/antiphony/ + packages/shared/types/audio.ts.
|
|
5
|
+
// Antiphony canonical record types (dev.antiphony.*).
|
|
6
|
+
// See lexicons/dev/antiphony/ + packages/shared/types/audio.ts.
|
|
11
7
|
AudioPost: "dev.antiphony.audio.post",
|
|
12
8
|
AudioTranscript: "dev.antiphony.audio.transcript",
|
|
13
9
|
ActorProfile: "dev.antiphony.actor.profile"
|
|
@@ -17,10 +13,7 @@ var EMBED_NSID = {
|
|
|
17
13
|
RecordWithAudio: "dev.antiphony.embed.recordWithAudio"
|
|
18
14
|
};
|
|
19
15
|
var COLLECTIONS = {
|
|
20
|
-
|
|
21
|
-
[NSID.Reply]: "replies",
|
|
22
|
-
[NSID.Profile]: "users",
|
|
23
|
-
// Antiphony: one post collection + the transcript enrichment namespace.
|
|
16
|
+
// One post collection + the transcript enrichment namespace + actors.
|
|
24
17
|
[NSID.AudioPost]: "posts",
|
|
25
18
|
[NSID.AudioTranscript]: "audio_transcripts",
|
|
26
19
|
[NSID.ActorProfile]: "users"
|
package/dist/cjs/nsid.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* AT Protocol Namespaced Identifiers (NSIDs) for
|
|
2
|
+
* AT Protocol Namespaced Identifiers (NSIDs) for Antiphony record types.
|
|
3
3
|
*
|
|
4
4
|
* NSIDs are the canonical way to identify record types in AT Protocol.
|
|
5
5
|
* This mapping connects AT Protocol NSIDs to Firestore collection names,
|
|
@@ -8,9 +8,6 @@
|
|
|
8
8
|
* @see https://atproto.com/specs/nsid
|
|
9
9
|
*/
|
|
10
10
|
declare const NSID: {
|
|
11
|
-
readonly Prompt: "com.voxpop.audio.prompt";
|
|
12
|
-
readonly Reply: "com.voxpop.audio.reply";
|
|
13
|
-
readonly Profile: "com.voxpop.actor.profile";
|
|
14
11
|
readonly AudioPost: "dev.antiphony.audio.post";
|
|
15
12
|
readonly AudioTranscript: "dev.antiphony.audio.transcript";
|
|
16
13
|
readonly ActorProfile: "dev.antiphony.actor.profile";
|
|
@@ -27,11 +24,6 @@ declare const EMBED_NSID: {
|
|
|
27
24
|
/**
|
|
28
25
|
* Maps AT Protocol record-type NSIDs to Firestore collection names.
|
|
29
26
|
* When migrating to a PDS, this mapping becomes the adapter layer.
|
|
30
|
-
*
|
|
31
|
-
* Note: `dev.antiphony.actor.profile` and the legacy `com.voxpop.actor.profile`
|
|
32
|
-
* both map to `users`. `nsidForCollection('users')` returns the legacy NSID
|
|
33
|
-
* (listed first) — preserving today's reverse-lookup behavior until Stream 4
|
|
34
|
-
* removes the legacy entry.
|
|
35
27
|
*/
|
|
36
28
|
declare const COLLECTIONS: Record<NsidValue, string>;
|
|
37
29
|
/**
|