@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.
Files changed (54) hide show
  1. package/dist/cjs/api-codecs.cjs +26 -650
  2. package/dist/cjs/api-codecs.d.cts +15 -233
  3. package/dist/cjs/index.cjs +29 -761
  4. package/dist/cjs/index.d.cts +4 -4
  5. package/dist/cjs/nsid.cjs +3 -10
  6. package/dist/cjs/nsid.d.cts +1 -9
  7. package/dist/cjs/types/api.cjs +11 -571
  8. package/dist/cjs/types/api.d.cts +13 -265
  9. package/dist/cjs/types/audio.cjs +26 -547
  10. package/dist/cjs/types/audio.d.cts +93 -52
  11. package/dist/cjs/types/records.cjs +3 -328
  12. package/dist/cjs/types/records.d.cts +7 -729
  13. package/dist/cjs/types/views.cjs +8 -649
  14. package/dist/cjs/types/views.d.cts +43 -9123
  15. package/dist/esm/api-codecs.d.ts +46 -264
  16. package/dist/esm/api-codecs.js +5 -5
  17. package/dist/esm/{chunk-ORMEWXMH.js → chunk-5JBD5THX.js} +1 -16
  18. package/dist/esm/{chunk-XDBKR6LW.js → chunk-6LROFBKK.js} +3 -10
  19. package/dist/esm/{chunk-F2CANZZ7.js → chunk-BNNLHRH7.js} +1 -1
  20. package/dist/esm/{chunk-BUNMR4ZO.js → chunk-F7IHVM34.js} +20 -3
  21. package/dist/esm/chunk-FDM5FDN4.js +46 -0
  22. package/dist/esm/chunk-IHIBHQBJ.js +78 -0
  23. package/dist/esm/chunk-R6SBR3IG.js +97 -0
  24. package/dist/esm/chunk-Y6HNNRVD.js +12 -0
  25. package/dist/esm/errors/index.js +1 -1
  26. package/dist/esm/index.d.ts +4 -4
  27. package/dist/esm/index.js +8 -8
  28. package/dist/esm/nsid.d.ts +1 -9
  29. package/dist/esm/nsid.js +2 -2
  30. package/dist/esm/observability/index.js +2 -2
  31. package/dist/esm/observability/report-error.js +2 -2
  32. package/dist/esm/types/api.d.ts +15 -267
  33. package/dist/esm/types/api.js +4 -5
  34. package/dist/esm/types/audio.d.ts +170 -129
  35. package/dist/esm/types/audio.js +4 -4
  36. package/dist/esm/types/blob.js +1 -1
  37. package/dist/esm/types/records.d.ts +10 -732
  38. package/dist/esm/types/records.js +2 -3
  39. package/dist/esm/types/views.d.ts +51 -9131
  40. package/dist/esm/types/views.js +3 -4
  41. package/dist/esm/utils/index.js +1 -1
  42. package/package.json +1 -1
  43. package/dist/cjs/types/channels.cjs +0 -170
  44. package/dist/cjs/types/channels.d.cts +0 -262
  45. package/dist/cjs/types/storage.cjs +0 -414
  46. package/dist/cjs/types/storage.d.cts +0 -197
  47. package/dist/esm/chunk-3WZJXJNU.js +0 -378
  48. package/dist/esm/chunk-7V44CPRR.js +0 -132
  49. package/dist/esm/chunk-EA4OONDV.js +0 -380
  50. package/dist/esm/chunk-TIZRJORN.js +0 -24
  51. package/dist/esm/types/channels.d.ts +0 -262
  52. package/dist/esm/types/channels.js +0 -162
  53. package/dist/esm/types/storage.d.ts +0 -197
  54. package/dist/esm/types/storage.js +0 -26
@@ -0,0 +1,97 @@
1
+ import { FirestoreTimestampSchema } from './chunk-IHIBHQBJ.js';
2
+ import { z } from 'zod';
3
+
4
+ var ProfileViewBasicSchema = z.object({
5
+ id: z.string(),
6
+ handle: z.string().nullable().optional(),
7
+ // `displayName` and `bio` are `.nullable()` — Firestore stores `null` for
8
+ // empty values on these fields (see users-dependencies.ts), and Zod's
9
+ // `.optional()` alone rejects `null`. Consumers already use truthy
10
+ // checks / `??` / `||`, so widening the type to include `null` is safe.
11
+ displayName: z.string().nullable().optional(),
12
+ avatarUrl: z.string().nullable().optional(),
13
+ bio: z.string().nullable().optional(),
14
+ /** Personal website link surfaced on the public profile. */
15
+ website: z.string().nullable().optional(),
16
+ /** Public links (label + URL) shown under the bio. */
17
+ links: z.array(z.object({
18
+ label: z.string(),
19
+ url: z.string()
20
+ })).optional(),
21
+ /**
22
+ * AT Protocol identity, surfaced on the public profile only when the user
23
+ * opts in (`UserRecord.showBlueskyPublicly === true`). Projection happens
24
+ * in the user dependency layer; this schema simply allows the field.
25
+ */
26
+ bluesky: z.object({
27
+ handle: z.string(),
28
+ did: z.string()
29
+ }).optional(),
30
+ stats: z.object({
31
+ followers: z.number().default(0),
32
+ following: z.number().default(0),
33
+ prompts: z.number().default(0)
34
+ }).optional(),
35
+ badges: z.array(z.string()).optional(),
36
+ isVerified: z.boolean().optional(),
37
+ createdAt: FirestoreTimestampSchema.optional()
38
+ });
39
+ function toProfileViewBasic(profile) {
40
+ const { id, handle, displayName, avatarUrl, bio, website, links, bluesky, showBlueskyPublicly, stats, badges, isVerified, createdAt } = profile;
41
+ return {
42
+ id,
43
+ handle,
44
+ displayName,
45
+ avatarUrl,
46
+ bio,
47
+ website,
48
+ links,
49
+ bluesky: showBlueskyPublicly ? bluesky : void 0,
50
+ stats,
51
+ badges,
52
+ isVerified,
53
+ createdAt
54
+ };
55
+ }
56
+ var ProfileViewDetailedSchema = ProfileViewBasicSchema.extend({
57
+ /** AT Protocol Identity link */
58
+ bluesky: z.object({
59
+ handle: z.string(),
60
+ did: z.string()
61
+ }).optional(),
62
+ usageIntent: z.string().nullable().optional()
63
+ });
64
+ var ProfileViewSelfSchema = ProfileViewDetailedSchema.extend({
65
+ phoneNumber: z.string().nullable().optional(),
66
+ email: z.string().optional(),
67
+ lastSeenAt: FirestoreTimestampSchema.optional(),
68
+ lastActiveAt: FirestoreTimestampSchema.optional(),
69
+ unreadReplyCount: z.number().default(0),
70
+ newReplierCount: z.number().default(0),
71
+ /**
72
+ * Account tier from UserRecord — surfaced on the self profile so the
73
+ * client can gate paid features. Optional for legacy docs without the
74
+ * field; consumers should treat missing as `'free'`.
75
+ */
76
+ tier: z.enum(["free", "creator_pro"]).optional(),
77
+ /**
78
+ * Surfaces the linked Bluesky identity (handle + DID) on the public profile
79
+ * when true. Persisted on UserRecord; exposed in self/detailed views so the
80
+ * settings form can render the toggle's current state.
81
+ */
82
+ showBlueskyPublicly: z.boolean().optional(),
83
+ settings: z.object({
84
+ notifications: z.boolean().optional(),
85
+ theme: z.string().optional()
86
+ }).optional()
87
+ });
88
+ var ProfileViewAdminSchema = ProfileViewSelfSchema.extend({
89
+ blockedUsers: z.array(z.string()).optional(),
90
+ followers: z.array(z.string()).optional(),
91
+ following: z.array(z.string()).optional(),
92
+ reportCount: z.number().optional(),
93
+ isBanned: z.boolean().optional()
94
+ });
95
+ var ProfileViewSchema = ProfileViewAdminSchema;
96
+
97
+ export { ProfileViewAdminSchema, ProfileViewBasicSchema, ProfileViewDetailedSchema, ProfileViewSchema, ProfileViewSelfSchema, toProfileViewBasic };
@@ -0,0 +1,12 @@
1
+ import { ProfileViewBasicSchema, ProfileViewSelfSchema } from './chunk-R6SBR3IG.js';
2
+ import { z } from 'zod';
3
+
4
+ var PublicProfileDtoSchema = ProfileViewBasicSchema.extend({
5
+ bluesky: z.object({
6
+ handle: z.string(),
7
+ did: z.string()
8
+ }).optional()
9
+ });
10
+ var ActorViewSchema = ProfileViewSelfSchema;
11
+
12
+ export { ActorViewSchema, PublicProfileDtoSchema };
@@ -1,2 +1,2 @@
1
1
  export { ConflictError, ForbiddenError, NotFoundError, RateLimitError, ServiceError, UnauthorizedError, ValidationError } from '../chunk-7LW2FHLD.js';
2
- import '../chunk-ORMEWXMH.js';
2
+ import '../chunk-5JBD5THX.js';
@@ -1,9 +1,9 @@
1
- export { BadgeResetRequestSchema, BulkReplyActionRequestSchema, ConnectorConfigInputSchema, ConnectorConfigUpdateSchema, CreateAudioPostRequest, CreateAudioPostRequestSchema, CreateOrgInviteRequestSchema, CreateOrgRequestSchema, CreatePromptRequestSchema, FcmTokenRequestSchema, PersonMergeRequestSchema, PersonNotesUpdateSchema, ScreeningRuleInputSchema, ScreeningRuleUpdateSchema, SwitchOrgRequestSchema, UpdateMemberRoleRequestSchema, UpdateOrgRequestSchema, UpdateProfileRequestSchema, UpdateReplyStatusRequestSchema } from './api-codecs.js';
2
- export { CallForwardingConfig, CallForwardingConfigSchema, ConnectorConfigRecord, ConnectorConfigRecordSchema, ConnectorStatus, ConnectorStatusSchema, ConnectorType, ConnectorTypeSchema, FirestoreTimestamp, FirestoreTimestampSchema, OrgInviteRecord, OrgInviteRecordSchema, OrganizationMemberRecord, OrganizationMemberRecordSchema, OrganizationRecord, OrganizationRecordSchema, PersonEnrichmentRecord, PersonEnrichmentRecordSchema, PromptRecord, PromptRecordSchema, ReplyEnrichmentRecord, ReplyEnrichmentRecordSchema, ReplyRecord, ReplyRecordSchema, ScreeningRuleRecord, ScreeningRuleRecordSchema, SipEnrichment, SipEnrichmentSchema, UserRecord, UserRecordSchema, httpsUrl } from './types/records.js';
3
- export { ContactCrmData, EnrichedReplier, EnrichedReplierSchema, HandleResolution, HandleResolutionSchema, OrgInviteView, OrgInviteViewSchema, OrgProfileData, OrgProfileDataSchema, OrganizationMemberView, OrganizationMemberViewSchema, OrganizationView, OrganizationViewSchema, ProfileView, ProfileViewAdmin, ProfileViewAdminSchema, ProfileViewBasic, ProfileViewBasicSchema, ProfileViewDetailed, ProfileViewDetailedSchema, ProfileViewSchema, ProfileViewSelf, ProfileViewSelfSchema, PromptRepliers, PromptRepliersSchema, PromptView, PromptViewPublic, PromptViewPublicSchema, PromptViewSchema, PromptWithReplies, PromptWithRepliesSchema, Replier, ReplierSchema, ReplyView, ReplyViewPublic, ReplyViewPublicSchema, ReplyViewSchema, RssSummary, RssSummarySchema, UserProfileData, UserProfileDataSchema, VoxPopEmbedWidgetProps, toProfileViewBasic, toPromptViewPublic, toReplyViewPublic } from './types/views.js';
1
+ export { CreateAudioPostRequest, CreateAudioPostRequestSchema, UpdateProfileRequestSchema } from './api-codecs.js';
2
+ export { FirestoreTimestamp, FirestoreTimestampSchema, UserRecord, UserRecordSchema, httpsUrl } from './types/records.js';
3
+ export { ProfileView, ProfileViewAdmin, ProfileViewAdminSchema, ProfileViewBasic, ProfileViewBasicSchema, ProfileViewDetailed, ProfileViewDetailedSchema, ProfileViewSchema, ProfileViewSelf, ProfileViewSelfSchema, toProfileViewBasic } from './types/views.js';
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.js';
5
5
  export { BlobRef, BlobRefSchema, resolveAudioUrl } from './types/blob.js';
6
- export { ActorView, ActorViewSchema, PublicProfileDto, PublicProfileDtoSchema, PublicReplyDto, PublicReplyDtoSchema } from './types/api.js';
6
+ export { ActorView, ActorViewSchema, PublicProfileDto, PublicProfileDtoSchema } from './types/api.js';
7
7
  export { COLLECTIONS, EMBED_NSID, NSID, NsidValue, nsidForCollection } from './nsid.js';
8
8
  export { ConflictError, ForbiddenError, NotFoundError, RateLimitError, ServiceError, UnauthorizedError, ValidationError } from './errors/index.js';
9
9
  export { isFirestoreTimestamp } from './utils/index.js';
package/dist/esm/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  export { isFirestoreTimestamp } from './chunk-24KIXQZK.js';
2
- export { BadgeResetRequestSchema, BulkReplyActionRequestSchema, ConnectorConfigInputSchema, ConnectorConfigUpdateSchema, CreateAudioPostRequestSchema, CreateOrgInviteRequestSchema, CreateOrgRequestSchema, CreatePromptRequestSchema, FcmTokenRequestSchema, PersonMergeRequestSchema, PersonNotesUpdateSchema, ScreeningRuleInputSchema, ScreeningRuleUpdateSchema, SwitchOrgRequestSchema, UpdateMemberRoleRequestSchema, UpdateOrgRequestSchema, UpdateProfileRequestSchema, UpdateReplyStatusRequestSchema } from './chunk-7V44CPRR.js';
3
- export { COLLECTIONS, EMBED_NSID, NSID, nsidForCollection } from './chunk-XDBKR6LW.js';
2
+ export { CreateAudioPostRequestSchema, UpdateProfileRequestSchema } from './chunk-FDM5FDN4.js';
3
+ export { COLLECTIONS, EMBED_NSID, NSID, nsidForCollection } from './chunk-6LROFBKK.js';
4
4
  export { ConflictError, ForbiddenError, NotFoundError, RateLimitError, ServiceError, UnauthorizedError, ValidationError } from './chunk-7LW2FHLD.js';
5
5
  import './chunk-72G3LBUQ.js';
6
- export { buildReportedErrorEvent, reportError } from './chunk-F2CANZZ7.js';
7
- export { ActorViewSchema, PublicProfileDtoSchema, PublicReplyDtoSchema } from './chunk-TIZRJORN.js';
8
- export { ActorProfileRecordSchema, AudioEmbedSchema, AudioEmbedViewSchema, AudioPostRecordSchema, AudioPostViewSchema, PostRecordPublicSchema, ReplyRefSchema, StrongRefSchema, TimedTranscriptSchema, TranscriptEnrichmentRecordSchema, TranscriptSegmentSchema, ViewerStateSchema } from './chunk-BUNMR4ZO.js';
9
- export { EnrichedReplierSchema, HandleResolutionSchema, OrgInviteViewSchema, OrgProfileDataSchema, OrganizationMemberViewSchema, OrganizationViewSchema, ProfileViewAdminSchema, ProfileViewBasicSchema, ProfileViewDetailedSchema, ProfileViewSchema, ProfileViewSelfSchema, PromptRepliersSchema, PromptViewPublicSchema, PromptViewSchema, PromptWithRepliesSchema, ReplierSchema, ReplyViewPublicSchema, ReplyViewSchema, RssSummarySchema, UserProfileDataSchema, toProfileViewBasic, toPromptViewPublic, toReplyViewPublic } from './chunk-EA4OONDV.js';
10
- export { CallForwardingConfigSchema, ConnectorConfigRecordSchema, ConnectorStatusSchema, ConnectorTypeSchema, FirestoreTimestampSchema, OrgInviteRecordSchema, OrganizationMemberRecordSchema, OrganizationRecordSchema, PersonEnrichmentRecordSchema, PromptRecordSchema, ReplyEnrichmentRecordSchema, ReplyRecordSchema, ScreeningRuleRecordSchema, SipEnrichmentSchema, UserRecordSchema, httpsUrl } from './chunk-3WZJXJNU.js';
6
+ export { buildReportedErrorEvent, reportError } from './chunk-BNNLHRH7.js';
7
+ export { ActorViewSchema, PublicProfileDtoSchema } from './chunk-Y6HNNRVD.js';
8
+ export { ActorProfileRecordSchema, AudioEmbedSchema, AudioEmbedViewSchema, AudioPostRecordSchema, AudioPostViewSchema, PostRecordPublicSchema, ReplyRefSchema, StrongRefSchema, TimedTranscriptSchema, TranscriptEnrichmentRecordSchema, TranscriptSegmentSchema, ViewerStateSchema } from './chunk-F7IHVM34.js';
11
9
  export { BlobRefSchema, resolveAudioUrl } from './chunk-5EHV73BA.js';
12
- import './chunk-ORMEWXMH.js';
10
+ export { ProfileViewAdminSchema, ProfileViewBasicSchema, ProfileViewDetailedSchema, ProfileViewSchema, ProfileViewSelfSchema, toProfileViewBasic } from './chunk-R6SBR3IG.js';
11
+ export { FirestoreTimestampSchema, UserRecordSchema, httpsUrl } from './chunk-IHIBHQBJ.js';
12
+ import './chunk-5JBD5THX.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * AT Protocol Namespaced Identifiers (NSIDs) for Vox Pop record types.
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
  /**
package/dist/esm/nsid.js CHANGED
@@ -1,2 +1,2 @@
1
- export { COLLECTIONS, EMBED_NSID, NSID, nsidForCollection } from './chunk-XDBKR6LW.js';
2
- import './chunk-ORMEWXMH.js';
1
+ export { COLLECTIONS, EMBED_NSID, NSID, nsidForCollection } from './chunk-6LROFBKK.js';
2
+ import './chunk-5JBD5THX.js';
@@ -1,3 +1,3 @@
1
1
  import '../chunk-72G3LBUQ.js';
2
- export { buildReportedErrorEvent, reportError } from '../chunk-F2CANZZ7.js';
3
- import '../chunk-ORMEWXMH.js';
2
+ export { buildReportedErrorEvent, reportError } from '../chunk-BNNLHRH7.js';
3
+ import '../chunk-5JBD5THX.js';
@@ -1,2 +1,2 @@
1
- export { buildReportedErrorEvent, reportError } from '../chunk-F2CANZZ7.js';
2
- import '../chunk-ORMEWXMH.js';
1
+ export { buildReportedErrorEvent, reportError } from '../chunk-BNNLHRH7.js';
2
+ import '../chunk-5JBD5THX.js';
@@ -48,7 +48,6 @@ declare const PublicProfileDtoSchema: z.ZodObject<{
48
48
  handle: string;
49
49
  did: string;
50
50
  }>>;
51
- rssFeedUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
51
  }, "strip", z.ZodTypeAny, {
53
52
  id: string;
54
53
  handle?: string | null | undefined;
@@ -61,7 +60,6 @@ declare const PublicProfileDtoSchema: z.ZodObject<{
61
60
  url: string;
62
61
  }[] | undefined;
63
62
  createdAt?: Date | undefined;
64
- rssFeedUrl?: string | null | undefined;
65
63
  bluesky?: {
66
64
  handle: string;
67
65
  did: string;
@@ -85,7 +83,6 @@ declare const PublicProfileDtoSchema: z.ZodObject<{
85
83
  url: string;
86
84
  }[] | undefined;
87
85
  createdAt?: unknown;
88
- rssFeedUrl?: string | null | undefined;
89
86
  bluesky?: {
90
87
  handle: string;
91
88
  did: string;
@@ -99,180 +96,6 @@ declare const PublicProfileDtoSchema: z.ZodObject<{
99
96
  isVerified?: boolean | undefined;
100
97
  }>;
101
98
  type PublicProfileDto = z.infer<typeof PublicProfileDtoSchema>;
102
- /**
103
- * Public Reply DTO
104
- * Excludes internal fields or sensitive metadata if any.
105
- */
106
- declare const PublicReplyDtoSchema: z.ZodObject<{
107
- id: z.ZodString;
108
- audioUrl: z.ZodString;
109
- duration: z.ZodOptional<z.ZodNumber>;
110
- createdAt: z.ZodEffects<z.ZodUnion<[z.ZodType<unknown, z.ZodTypeDef, unknown>, z.ZodString, z.ZodNumber, z.ZodDate]>, Date, unknown>;
111
- transcription: z.ZodOptional<z.ZodString>;
112
- sentiment: z.ZodOptional<z.ZodEnum<["Positive", "Negative", "Neutral"]>>;
113
- aiSummary: z.ZodOptional<z.ZodString>;
114
- author: z.ZodObject<{
115
- id: z.ZodString;
116
- handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
117
- displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
118
- avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
119
- bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
120
- website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
121
- links: z.ZodOptional<z.ZodArray<z.ZodObject<{
122
- label: z.ZodString;
123
- url: z.ZodString;
124
- }, "strip", z.ZodTypeAny, {
125
- label: string;
126
- url: string;
127
- }, {
128
- label: string;
129
- url: string;
130
- }>, "many">>;
131
- stats: z.ZodOptional<z.ZodObject<{
132
- followers: z.ZodDefault<z.ZodNumber>;
133
- following: z.ZodDefault<z.ZodNumber>;
134
- prompts: z.ZodDefault<z.ZodNumber>;
135
- }, "strip", z.ZodTypeAny, {
136
- followers: number;
137
- following: number;
138
- prompts: number;
139
- }, {
140
- followers?: number | undefined;
141
- following?: number | undefined;
142
- prompts?: number | undefined;
143
- }>>;
144
- badges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
145
- isVerified: z.ZodOptional<z.ZodBoolean>;
146
- createdAt: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodType<unknown, z.ZodTypeDef, unknown>, z.ZodString, z.ZodNumber, z.ZodDate]>, Date, unknown>>;
147
- } & {
148
- bluesky: z.ZodOptional<z.ZodObject<{
149
- handle: z.ZodString;
150
- did: z.ZodString;
151
- }, "strip", z.ZodTypeAny, {
152
- handle: string;
153
- did: string;
154
- }, {
155
- handle: string;
156
- did: string;
157
- }>>;
158
- rssFeedUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
159
- }, "strip", z.ZodTypeAny, {
160
- id: string;
161
- handle?: string | null | undefined;
162
- displayName?: string | null | undefined;
163
- bio?: string | null | undefined;
164
- avatarUrl?: string | null | undefined;
165
- website?: string | null | undefined;
166
- links?: {
167
- label: string;
168
- url: string;
169
- }[] | undefined;
170
- createdAt?: Date | undefined;
171
- rssFeedUrl?: string | null | undefined;
172
- bluesky?: {
173
- handle: string;
174
- did: string;
175
- } | undefined;
176
- stats?: {
177
- followers: number;
178
- following: number;
179
- prompts: number;
180
- } | undefined;
181
- badges?: string[] | undefined;
182
- isVerified?: boolean | undefined;
183
- }, {
184
- id: string;
185
- handle?: string | null | undefined;
186
- displayName?: string | null | undefined;
187
- bio?: string | null | undefined;
188
- avatarUrl?: string | null | undefined;
189
- website?: string | null | undefined;
190
- links?: {
191
- label: string;
192
- url: string;
193
- }[] | undefined;
194
- createdAt?: unknown;
195
- rssFeedUrl?: string | null | undefined;
196
- bluesky?: {
197
- handle: string;
198
- did: string;
199
- } | undefined;
200
- stats?: {
201
- followers?: number | undefined;
202
- following?: number | undefined;
203
- prompts?: number | undefined;
204
- } | undefined;
205
- badges?: string[] | undefined;
206
- isVerified?: boolean | undefined;
207
- }>;
208
- }, "strip", z.ZodTypeAny, {
209
- id: string;
210
- createdAt: Date;
211
- audioUrl: string;
212
- author: {
213
- id: string;
214
- handle?: string | null | undefined;
215
- displayName?: string | null | undefined;
216
- bio?: string | null | undefined;
217
- avatarUrl?: string | null | undefined;
218
- website?: string | null | undefined;
219
- links?: {
220
- label: string;
221
- url: string;
222
- }[] | undefined;
223
- createdAt?: Date | undefined;
224
- rssFeedUrl?: string | null | undefined;
225
- bluesky?: {
226
- handle: string;
227
- did: string;
228
- } | undefined;
229
- stats?: {
230
- followers: number;
231
- following: number;
232
- prompts: number;
233
- } | undefined;
234
- badges?: string[] | undefined;
235
- isVerified?: boolean | undefined;
236
- };
237
- aiSummary?: string | undefined;
238
- transcription?: string | undefined;
239
- sentiment?: "Positive" | "Negative" | "Neutral" | undefined;
240
- duration?: number | undefined;
241
- }, {
242
- id: string;
243
- audioUrl: string;
244
- author: {
245
- id: string;
246
- handle?: string | null | undefined;
247
- displayName?: string | null | undefined;
248
- bio?: string | null | undefined;
249
- avatarUrl?: string | null | undefined;
250
- website?: string | null | undefined;
251
- links?: {
252
- label: string;
253
- url: string;
254
- }[] | undefined;
255
- createdAt?: unknown;
256
- rssFeedUrl?: string | null | undefined;
257
- bluesky?: {
258
- handle: string;
259
- did: string;
260
- } | undefined;
261
- stats?: {
262
- followers?: number | undefined;
263
- following?: number | undefined;
264
- prompts?: number | undefined;
265
- } | undefined;
266
- badges?: string[] | undefined;
267
- isVerified?: boolean | undefined;
268
- };
269
- createdAt?: unknown;
270
- aiSummary?: string | undefined;
271
- transcription?: string | undefined;
272
- sentiment?: "Positive" | "Negative" | "Neutral" | undefined;
273
- duration?: number | undefined;
274
- }>;
275
- type PublicReplyDto = z.infer<typeof PublicReplyDtoSchema>;
276
99
  /**
277
100
  * Actor View — the full view returned to the authenticated user about themselves.
278
101
  * Uses ProfileViewSelfSchema which includes private settings but not admin fields.
@@ -322,51 +145,6 @@ declare const ActorViewSchema: z.ZodObject<{
322
145
  did: string;
323
146
  }>>;
324
147
  usageIntent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
325
- rssSummary: z.ZodOptional<z.ZodObject<{
326
- title: z.ZodOptional<z.ZodString>;
327
- description: z.ZodOptional<z.ZodString>;
328
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
329
- title: z.ZodOptional<z.ZodString>;
330
- link: z.ZodOptional<z.ZodString>;
331
- content: z.ZodOptional<z.ZodString>;
332
- pubDate: z.ZodOptional<z.ZodString>;
333
- }, "strip", z.ZodTypeAny, {
334
- title?: string | undefined;
335
- link?: string | undefined;
336
- content?: string | undefined;
337
- pubDate?: string | undefined;
338
- }, {
339
- title?: string | undefined;
340
- link?: string | undefined;
341
- content?: string | undefined;
342
- pubDate?: string | undefined;
343
- }>, "many">>;
344
- lastFetchedAt: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodType<unknown, z.ZodTypeDef, unknown>, z.ZodString, z.ZodNumber, z.ZodDate]>, Date, unknown>>;
345
- }, "strip", z.ZodTypeAny, {
346
- title?: string | undefined;
347
- description?: string | undefined;
348
- items?: {
349
- title?: string | undefined;
350
- link?: string | undefined;
351
- content?: string | undefined;
352
- pubDate?: string | undefined;
353
- }[] | undefined;
354
- lastFetchedAt?: Date | undefined;
355
- }, {
356
- title?: string | undefined;
357
- description?: string | undefined;
358
- items?: {
359
- title?: string | undefined;
360
- link?: string | undefined;
361
- content?: string | undefined;
362
- pubDate?: string | undefined;
363
- }[] | undefined;
364
- lastFetchedAt?: unknown;
365
- }>>;
366
- promptAudioUrl: z.ZodOptional<z.ZodString>;
367
- totalPrompts: z.ZodOptional<z.ZodNumber>;
368
- totalReplies: z.ZodOptional<z.ZodNumber>;
369
- favoritePromptId: z.ZodOptional<z.ZodString>;
370
148
  } & {
371
149
  phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
372
150
  email: z.ZodOptional<z.ZodString>;
@@ -391,10 +169,10 @@ declare const ActorViewSchema: z.ZodObject<{
391
169
  unreadReplyCount: number;
392
170
  newReplierCount: number;
393
171
  handle?: string | null | undefined;
394
- usageIntent?: string | null | undefined;
395
172
  displayName?: string | null | undefined;
396
173
  bio?: string | null | undefined;
397
174
  avatarUrl?: string | null | undefined;
175
+ usageIntent?: string | null | undefined;
398
176
  website?: string | null | undefined;
399
177
  links?: {
400
178
  label: string;
@@ -403,12 +181,6 @@ declare const ActorViewSchema: z.ZodObject<{
403
181
  showBlueskyPublicly?: boolean | undefined;
404
182
  createdAt?: Date | undefined;
405
183
  tier?: "free" | "creator_pro" | undefined;
406
- phoneNumber?: string | null | undefined;
407
- settings?: {
408
- notifications?: boolean | undefined;
409
- theme?: string | undefined;
410
- } | undefined;
411
- email?: string | undefined;
412
184
  bluesky?: {
413
185
  handle: string;
414
186
  did: string;
@@ -420,30 +192,21 @@ declare const ActorViewSchema: z.ZodObject<{
420
192
  } | undefined;
421
193
  badges?: string[] | undefined;
422
194
  isVerified?: boolean | undefined;
423
- rssSummary?: {
424
- title?: string | undefined;
425
- description?: string | undefined;
426
- items?: {
427
- title?: string | undefined;
428
- link?: string | undefined;
429
- content?: string | undefined;
430
- pubDate?: string | undefined;
431
- }[] | undefined;
432
- lastFetchedAt?: Date | undefined;
433
- } | undefined;
434
- promptAudioUrl?: string | undefined;
435
- totalPrompts?: number | undefined;
436
- totalReplies?: number | undefined;
437
- favoritePromptId?: string | undefined;
195
+ phoneNumber?: string | null | undefined;
196
+ email?: string | undefined;
438
197
  lastSeenAt?: Date | undefined;
439
198
  lastActiveAt?: Date | undefined;
199
+ settings?: {
200
+ notifications?: boolean | undefined;
201
+ theme?: string | undefined;
202
+ } | undefined;
440
203
  }, {
441
204
  id: string;
442
205
  handle?: string | null | undefined;
443
- usageIntent?: string | null | undefined;
444
206
  displayName?: string | null | undefined;
445
207
  bio?: string | null | undefined;
446
208
  avatarUrl?: string | null | undefined;
209
+ usageIntent?: string | null | undefined;
447
210
  website?: string | null | undefined;
448
211
  links?: {
449
212
  label: string;
@@ -452,12 +215,6 @@ declare const ActorViewSchema: z.ZodObject<{
452
215
  showBlueskyPublicly?: boolean | undefined;
453
216
  createdAt?: unknown;
454
217
  tier?: "free" | "creator_pro" | undefined;
455
- phoneNumber?: string | null | undefined;
456
- settings?: {
457
- notifications?: boolean | undefined;
458
- theme?: string | undefined;
459
- } | undefined;
460
- email?: string | undefined;
461
218
  bluesky?: {
462
219
  handle: string;
463
220
  did: string;
@@ -469,26 +226,17 @@ declare const ActorViewSchema: z.ZodObject<{
469
226
  } | undefined;
470
227
  badges?: string[] | undefined;
471
228
  isVerified?: boolean | undefined;
472
- rssSummary?: {
473
- title?: string | undefined;
474
- description?: string | undefined;
475
- items?: {
476
- title?: string | undefined;
477
- link?: string | undefined;
478
- content?: string | undefined;
479
- pubDate?: string | undefined;
480
- }[] | undefined;
481
- lastFetchedAt?: unknown;
482
- } | undefined;
483
- promptAudioUrl?: string | undefined;
484
- totalPrompts?: number | undefined;
485
- totalReplies?: number | undefined;
486
- favoritePromptId?: string | undefined;
229
+ phoneNumber?: string | null | undefined;
230
+ email?: string | undefined;
487
231
  lastSeenAt?: unknown;
488
232
  lastActiveAt?: unknown;
489
233
  unreadReplyCount?: number | undefined;
490
234
  newReplierCount?: number | undefined;
235
+ settings?: {
236
+ notifications?: boolean | undefined;
237
+ theme?: string | undefined;
238
+ } | undefined;
491
239
  }>;
492
240
  type ActorView = z.infer<typeof ActorViewSchema>;
493
241
 
494
- export { type ActorView, ActorViewSchema, type PublicProfileDto, PublicProfileDtoSchema, type PublicReplyDto, PublicReplyDtoSchema };
242
+ export { type ActorView, ActorViewSchema, type PublicProfileDto, PublicProfileDtoSchema };
@@ -1,5 +1,4 @@
1
- export { ActorViewSchema, PublicProfileDtoSchema, PublicReplyDtoSchema } from '../chunk-TIZRJORN.js';
2
- import '../chunk-EA4OONDV.js';
3
- import '../chunk-3WZJXJNU.js';
4
- import '../chunk-5EHV73BA.js';
5
- import '../chunk-ORMEWXMH.js';
1
+ export { ActorViewSchema, PublicProfileDtoSchema } from '../chunk-Y6HNNRVD.js';
2
+ import '../chunk-R6SBR3IG.js';
3
+ import '../chunk-IHIBHQBJ.js';
4
+ import '../chunk-5JBD5THX.js';