@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
@@ -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>;
@@ -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,23 +192,14 @@ 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;
@@ -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 };