@singi-labs/sifa-sdk 0.18.22 → 0.19.1

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 (51) hide show
  1. package/dist/badge/index.cjs.map +1 -1
  2. package/dist/badge/index.js.map +1 -1
  3. package/dist/{feed-BMm9Pkew.d.cts → follow-profile-D1l6pulB.d.cts} +1 -190
  4. package/dist/{feed-BMm9Pkew.d.ts → follow-profile-D1l6pulB.d.ts} +1 -190
  5. package/dist/index.cjs +15 -1
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.d.cts +4 -4
  8. package/dist/index.d.ts +4 -4
  9. package/dist/index.js +15 -1
  10. package/dist/index.js.map +1 -1
  11. package/dist/{network-map-Dupds9nG.d.cts → network-map-BjHSH04a.d.cts} +2 -2
  12. package/dist/{network-map-Cwef6yhK.d.ts → network-map-C8-QWKFg.d.ts} +2 -2
  13. package/dist/{org-DgC4pecF.d.cts → org-DWQqPz9B.d.cts} +199 -192
  14. package/dist/{org-DC_71Ojb.d.ts → org-DsqCQ1bV.d.ts} +199 -192
  15. package/dist/{org-settings-CZ_tmAYl.d.cts → org-settings-BndD0dMQ.d.cts} +19 -0
  16. package/dist/{org-settings-CZ_tmAYl.d.ts → org-settings-BndD0dMQ.d.ts} +19 -0
  17. package/dist/{profile-investment-Bvulg_jG.d.cts → profile-investment-DSTOEvG-.d.cts} +196 -1
  18. package/dist/{profile-investment-Bvulg_jG.d.ts → profile-investment-DSTOEvG-.d.ts} +196 -1
  19. package/dist/query/fetchers/index.cjs +9 -9
  20. package/dist/query/fetchers/index.cjs.map +1 -1
  21. package/dist/query/fetchers/index.d.cts +5 -5
  22. package/dist/query/fetchers/index.d.ts +5 -5
  23. package/dist/query/fetchers/index.js +9 -9
  24. package/dist/query/fetchers/index.js.map +1 -1
  25. package/dist/query/hooks/index.cjs +11 -17
  26. package/dist/query/hooks/index.cjs.map +1 -1
  27. package/dist/query/hooks/index.d.cts +5 -5
  28. package/dist/query/hooks/index.d.ts +5 -5
  29. package/dist/query/hooks/index.js +11 -17
  30. package/dist/query/hooks/index.js.map +1 -1
  31. package/dist/query/index.cjs +12 -18
  32. package/dist/query/index.cjs.map +1 -1
  33. package/dist/query/index.d.cts +7 -7
  34. package/dist/query/index.d.ts +7 -7
  35. package/dist/query/index.js +12 -18
  36. package/dist/query/index.js.map +1 -1
  37. package/dist/schemas/index.cjs +14 -0
  38. package/dist/schemas/index.cjs.map +1 -1
  39. package/dist/schemas/index.d.cts +2 -2
  40. package/dist/schemas/index.d.ts +2 -2
  41. package/dist/schemas/index.js +14 -0
  42. package/dist/schemas/index.js.map +1 -1
  43. package/dist/schemas/write/index.cjs +77 -9
  44. package/dist/schemas/write/index.cjs.map +1 -1
  45. package/dist/schemas/write/index.d.cts +7 -1
  46. package/dist/schemas/write/index.d.ts +7 -1
  47. package/dist/schemas/write/index.js +77 -9
  48. package/dist/schemas/write/index.js.map +1 -1
  49. package/dist/{use-org-notification-emails-ZmOjvMh0.d.cts → use-org-notification-emails-CjllYpUI.d.cts} +27 -41
  50. package/dist/{use-org-notification-emails-CHU0JhlL.d.ts → use-org-notification-emails-DqwmoDre.d.ts} +27 -41
  51. package/package.json +1 -1
@@ -237,193 +237,4 @@ type FeatureAllowlistEntry = z.infer<typeof FeatureAllowlistEntrySchema>;
237
237
  declare const FEATURE_FLAGS: readonly ["FEED_V5_ENABLED"];
238
238
  type FeatureFlag = (typeof FEATURE_FLAGS)[number];
239
239
 
240
- /**
241
- * Feed item from `GET /api/following/feed`. Discriminated on `source`:
242
- *
243
- * - `sifa`: a Sifa-native event (e.g. profile update, endorsement).
244
- * - `atmosphere`: a curated creation event from another ATproto app
245
- * (Barazo post, etc.). Payload is the hydrated `app.bsky.embed.*#view`
246
- * shape, NOT the raw record (per memory `sifa-hydrated-view-embed-types`).
247
- *
248
- * Both variants share `actor`, `indexedAt`, and `id` (the materialized
249
- * `feed_events.id` row identifier, used in the cursor).
250
- */
251
- declare const FeedActorSchema: z.ZodObject<{
252
- did: z.ZodString;
253
- handle: z.ZodString;
254
- displayName: z.ZodOptional<z.ZodString>;
255
- avatarUrl: z.ZodOptional<z.ZodString>;
256
- }, z.core.$strip>;
257
- type FeedActor = z.infer<typeof FeedActorSchema>;
258
- /**
259
- * @deprecated The `/api/following/feed` surface was reverted (sifa-api#674).
260
- * Per `decisions/activity-data-strategy.md` the Sifa Timeline + ATmosphere
261
- * Stream are two distinct surfaces with different data paths (Barazo API
262
- * for Timeline, live PDS reads + Valkey for Stream). These collapsed feed
263
- * types are no longer consumed. Scheduled for removal in next major bump.
264
- */
265
- declare const SifaFeedItemSchema: z.ZodObject<{
266
- id: z.ZodString;
267
- actor: z.ZodObject<{
268
- did: z.ZodString;
269
- handle: z.ZodString;
270
- displayName: z.ZodOptional<z.ZodString>;
271
- avatarUrl: z.ZodOptional<z.ZodString>;
272
- }, z.core.$strip>;
273
- indexedAt: z.ZodString;
274
- eventType: z.ZodString;
275
- source: z.ZodLiteral<"sifa">;
276
- appId: z.ZodOptional<z.ZodLiteral<"sifa">>;
277
- payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
278
- }, z.core.$strip>;
279
- /**
280
- * @deprecated The `/api/following/feed` surface was reverted (sifa-api#674).
281
- * Per `decisions/activity-data-strategy.md` the Sifa Timeline + ATmosphere
282
- * Stream are two distinct surfaces with different data paths (Barazo API
283
- * for Timeline, live PDS reads + Valkey for Stream). These collapsed feed
284
- * types are no longer consumed. Scheduled for removal in next major bump.
285
- */
286
- type SifaFeedItem = z.infer<typeof SifaFeedItemSchema>;
287
- /**
288
- * ATmosphere feed item. `payload` is intentionally permissive: it carries
289
- * a hydrated `app.bsky.embed.*#view` shape that varies by source app. The
290
- * AppView resolves the hydration; clients render via the existing
291
- * embed-view union (mirrors `sifa-web/src/components/stream/`).
292
- *
293
- * @deprecated The `/api/following/feed` surface was reverted (sifa-api#674).
294
- * Per `decisions/activity-data-strategy.md` the Sifa Timeline + ATmosphere
295
- * Stream are two distinct surfaces with different data paths (Barazo API
296
- * for Timeline, live PDS reads + Valkey for Stream). These collapsed feed
297
- * types are no longer consumed. Scheduled for removal in next major bump.
298
- */
299
- declare const AtmosphereFeedItemSchema: z.ZodObject<{
300
- id: z.ZodString;
301
- actor: z.ZodObject<{
302
- did: z.ZodString;
303
- handle: z.ZodString;
304
- displayName: z.ZodOptional<z.ZodString>;
305
- avatarUrl: z.ZodOptional<z.ZodString>;
306
- }, z.core.$strip>;
307
- indexedAt: z.ZodString;
308
- eventType: z.ZodString;
309
- source: z.ZodLiteral<"atmosphere">;
310
- appId: z.ZodString;
311
- uri: z.ZodOptional<z.ZodString>;
312
- cid: z.ZodOptional<z.ZodString>;
313
- payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
314
- }, z.core.$strip>;
315
- /**
316
- * @deprecated The `/api/following/feed` surface was reverted (sifa-api#674).
317
- * Per `decisions/activity-data-strategy.md` the Sifa Timeline + ATmosphere
318
- * Stream are two distinct surfaces with different data paths (Barazo API
319
- * for Timeline, live PDS reads + Valkey for Stream). These collapsed feed
320
- * types are no longer consumed. Scheduled for removal in next major bump.
321
- */
322
- type AtmosphereFeedItem = z.infer<typeof AtmosphereFeedItemSchema>;
323
- /**
324
- * @deprecated The `/api/following/feed` surface was reverted (sifa-api#674).
325
- * Per `decisions/activity-data-strategy.md` the Sifa Timeline + ATmosphere
326
- * Stream are two distinct surfaces with different data paths (Barazo API
327
- * for Timeline, live PDS reads + Valkey for Stream). These collapsed feed
328
- * types are no longer consumed. Scheduled for removal in next major bump.
329
- */
330
- declare const FollowFeedItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
331
- id: z.ZodString;
332
- actor: z.ZodObject<{
333
- did: z.ZodString;
334
- handle: z.ZodString;
335
- displayName: z.ZodOptional<z.ZodString>;
336
- avatarUrl: z.ZodOptional<z.ZodString>;
337
- }, z.core.$strip>;
338
- indexedAt: z.ZodString;
339
- eventType: z.ZodString;
340
- source: z.ZodLiteral<"sifa">;
341
- appId: z.ZodOptional<z.ZodLiteral<"sifa">>;
342
- payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
343
- }, z.core.$strip>, z.ZodObject<{
344
- id: z.ZodString;
345
- actor: z.ZodObject<{
346
- did: z.ZodString;
347
- handle: z.ZodString;
348
- displayName: z.ZodOptional<z.ZodString>;
349
- avatarUrl: z.ZodOptional<z.ZodString>;
350
- }, z.core.$strip>;
351
- indexedAt: z.ZodString;
352
- eventType: z.ZodString;
353
- source: z.ZodLiteral<"atmosphere">;
354
- appId: z.ZodString;
355
- uri: z.ZodOptional<z.ZodString>;
356
- cid: z.ZodOptional<z.ZodString>;
357
- payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
358
- }, z.core.$strip>], "source">;
359
- /**
360
- * @deprecated The `/api/following/feed` surface was reverted (sifa-api#674).
361
- * Per `decisions/activity-data-strategy.md` the Sifa Timeline + ATmosphere
362
- * Stream are two distinct surfaces with different data paths (Barazo API
363
- * for Timeline, live PDS reads + Valkey for Stream). These collapsed feed
364
- * types are no longer consumed. Scheduled for removal in next major bump.
365
- */
366
- type FollowFeedItem = z.infer<typeof FollowFeedItemSchema>;
367
- /**
368
- * @deprecated The `/api/following/feed` surface was reverted (sifa-api#674).
369
- * Per `decisions/activity-data-strategy.md` the Sifa Timeline + ATmosphere
370
- * Stream are two distinct surfaces with different data paths (Barazo API
371
- * for Timeline, live PDS reads + Valkey for Stream). These collapsed feed
372
- * types are no longer consumed. Scheduled for removal in next major bump.
373
- */
374
- declare const FollowFeedPageSchema: z.ZodObject<{
375
- items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
376
- id: z.ZodString;
377
- actor: z.ZodObject<{
378
- did: z.ZodString;
379
- handle: z.ZodString;
380
- displayName: z.ZodOptional<z.ZodString>;
381
- avatarUrl: z.ZodOptional<z.ZodString>;
382
- }, z.core.$strip>;
383
- indexedAt: z.ZodString;
384
- eventType: z.ZodString;
385
- source: z.ZodLiteral<"sifa">;
386
- appId: z.ZodOptional<z.ZodLiteral<"sifa">>;
387
- payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
388
- }, z.core.$strip>, z.ZodObject<{
389
- id: z.ZodString;
390
- actor: z.ZodObject<{
391
- did: z.ZodString;
392
- handle: z.ZodString;
393
- displayName: z.ZodOptional<z.ZodString>;
394
- avatarUrl: z.ZodOptional<z.ZodString>;
395
- }, z.core.$strip>;
396
- indexedAt: z.ZodString;
397
- eventType: z.ZodString;
398
- source: z.ZodLiteral<"atmosphere">;
399
- appId: z.ZodString;
400
- uri: z.ZodOptional<z.ZodString>;
401
- cid: z.ZodOptional<z.ZodString>;
402
- payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
403
- }, z.core.$strip>], "source">>;
404
- cursor: z.ZodNullable<z.ZodString>;
405
- }, z.core.$strip>;
406
- /**
407
- * @deprecated The `/api/following/feed` surface was reverted (sifa-api#674).
408
- * Per `decisions/activity-data-strategy.md` the Sifa Timeline + ATmosphere
409
- * Stream are two distinct surfaces with different data paths (Barazo API
410
- * for Timeline, live PDS reads + Valkey for Stream). These collapsed feed
411
- * types are no longer consumed. Scheduled for removal in next major bump.
412
- */
413
- type FollowFeedPage = z.infer<typeof FollowFeedPageSchema>;
414
- /**
415
- * Composite feed cursor `(indexedAt DESC, source, id)`. Encoded as a
416
- * URL-safe base64 string so it survives `URLSearchParams` round-trips
417
- * without further encoding. Decoupling encode/decode from the API call
418
- * lets consumers persist cursors (e.g. for "jump-back-here" UX) and
419
- * lets us unit-test the format.
420
- */
421
- interface FeedCursor {
422
- indexedAt: string;
423
- source: 'sifa' | 'atmosphere';
424
- id: string;
425
- }
426
- declare function encodeFeedCursor(cursor: FeedCursor): string;
427
- declare function decodeFeedCursor(encoded: string): FeedCursor;
428
-
429
- export { type AtmosphereFeedItem as A, type FollowProfileItem as B, type FollowProfilePage as C, FollowProfilePageSchema as D, type EntitySearchResult as E, FEATURE_FLAGS as F, FollowProfileSchema as G, SifaFeedItemSchema as H, decodeFeedCursor as I, encodeFeedCursor as J, type SifaFeedItem as S, AtmosphereFeedItemSchema as a, type EntityImportSearchResponse as b, EntityImportSearchResponseSchema as c, type EntityMintDomainResponse as d, EntityMintDomainResponseSchema as e, type EntityResolveDomainRequest as f, EntityResolveDomainRequestSchema as g, type EntityResolveDomainResponse as h, EntityResolveDomainResponseSchema as i, type EntitySearchResponse as j, EntitySearchResponseSchema as k, EntitySearchResultSchema as l, type EntitySelectRequest as m, EntitySelectRequestSchema as n, type EntitySelectResponse as o, EntitySelectResponseSchema as p, type FeatureAllowlistEntry as q, FeatureAllowlistEntrySchema as r, type FeatureFlag as s, type FeedActor as t, FeedActorSchema as u, type FeedCursor as v, type FollowFeedItem as w, FollowFeedItemSchema as x, type FollowFeedPage as y, FollowFeedPageSchema as z };
240
+ export { type EntitySearchResult as E, FEATURE_FLAGS as F, type EntityImportSearchResponse as a, EntityImportSearchResponseSchema as b, type EntityMintDomainResponse as c, EntityMintDomainResponseSchema as d, type EntityResolveDomainRequest as e, EntityResolveDomainRequestSchema as f, type EntityResolveDomainResponse as g, EntityResolveDomainResponseSchema as h, type EntitySearchResponse as i, EntitySearchResponseSchema as j, EntitySearchResultSchema as k, type EntitySelectRequest as l, EntitySelectRequestSchema as m, type EntitySelectResponse as n, EntitySelectResponseSchema as o, type FeatureAllowlistEntry as p, FeatureAllowlistEntrySchema as q, type FeatureFlag as r, type FollowProfileItem as s, type FollowProfilePage as t, FollowProfilePageSchema as u, FollowProfileSchema as v };
package/dist/index.cjs CHANGED
@@ -5713,6 +5713,20 @@ var OrgProfileRecordSchema = zod.z.object({
5713
5713
  companySize: zod.z.string().optional(),
5714
5714
  /** Featured links or content surfaced on the org profile. */
5715
5715
  links: zod.z.array(orgLinkSchema).max(10).optional(),
5716
+ /**
5717
+ * Self-declared industry/domain pairs (same shape as the person profile's
5718
+ * `industries`). Registry-sourced classifications are layered separately.
5719
+ */
5720
+ industries: zod.z.array(
5721
+ zod.z.object({
5722
+ industry: zod.z.string().max(100),
5723
+ domain: zod.z.string().max(100).optional()
5724
+ })
5725
+ ).max(10).optional(),
5726
+ /** Self-declared founding date: a year (YYYY), month (YYYY-MM), or full date (YYYY-MM-DD). */
5727
+ founded: zod.z.string().max(10).optional(),
5728
+ /** Self-declared alternative names / acronyms ("also known as"). */
5729
+ aliases: zod.z.array(zod.z.string().refine(maxGraphemes(200)).max(2e3)).max(20).optional(),
5716
5730
  /**
5717
5731
  * Whether the account holder's personal profile stays visible alongside this
5718
5732
  * org profile. For sole traders whose personal domain is also their trade
@@ -6417,7 +6431,7 @@ function describeSifaRecord(collection, value) {
6417
6431
  }
6418
6432
 
6419
6433
  // src/index.ts
6420
- var SIFA_SDK_VERSION = "0.18.22";
6434
+ var SIFA_SDK_VERSION = "0.19.1";
6421
6435
 
6422
6436
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
6423
6437
  exports.ACTIVITY_VERBS = ACTIVITY_VERBS;