@vibes.diy/api-types 5.0.1 → 5.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/social-msg.js ADDED
@@ -0,0 +1,249 @@
1
+ import { type } from "arktype";
2
+ import { dashAuthType } from "./common.js";
3
+ export const SocialEdgeState = type("'active' | 'requested'");
4
+ export const SocialEdge = type({
5
+ followerHandle: "string",
6
+ followeeHandle: "string",
7
+ state: SocialEdgeState,
8
+ created: "string",
9
+ updated: "string",
10
+ });
11
+ export function isSocialEdge(obj) {
12
+ return !(SocialEdge(obj) instanceof type.errors);
13
+ }
14
+ export const ReqSocialFollow = type({
15
+ type: "'vibes.diy.req-social-follow'",
16
+ auth: dashAuthType,
17
+ targetHandle: "string",
18
+ });
19
+ export function isReqSocialFollow(obj) {
20
+ return !(ReqSocialFollow(obj) instanceof type.errors);
21
+ }
22
+ export const ResSocialFollow = type({
23
+ type: "'vibes.diy.res-social-follow'",
24
+ targetHandle: "string",
25
+ state: SocialEdgeState,
26
+ });
27
+ export function isResSocialFollow(obj) {
28
+ return !(ResSocialFollow(obj) instanceof type.errors);
29
+ }
30
+ export const ReqSocialUnfollow = type({
31
+ type: "'vibes.diy.req-social-unfollow'",
32
+ auth: dashAuthType,
33
+ targetHandle: "string",
34
+ });
35
+ export function isReqSocialUnfollow(obj) {
36
+ return !(ReqSocialUnfollow(obj) instanceof type.errors);
37
+ }
38
+ export const ResSocialUnfollow = type({
39
+ type: "'vibes.diy.res-social-unfollow'",
40
+ targetHandle: "string",
41
+ });
42
+ export function isResSocialUnfollow(obj) {
43
+ return !(ResSocialUnfollow(obj) instanceof type.errors);
44
+ }
45
+ export const ReqSocialApprove = type({
46
+ type: "'vibes.diy.req-social-approve'",
47
+ auth: dashAuthType,
48
+ followerHandle: "string",
49
+ });
50
+ export function isReqSocialApprove(obj) {
51
+ return !(ReqSocialApprove(obj) instanceof type.errors);
52
+ }
53
+ export const ResSocialApprove = type({
54
+ type: "'vibes.diy.res-social-approve'",
55
+ followerHandle: "string",
56
+ });
57
+ export function isResSocialApprove(obj) {
58
+ return !(ResSocialApprove(obj) instanceof type.errors);
59
+ }
60
+ export const ReqSocialRemoveFollower = type({
61
+ type: "'vibes.diy.req-social-remove-follower'",
62
+ auth: dashAuthType,
63
+ followerHandle: "string",
64
+ });
65
+ export function isReqSocialRemoveFollower(obj) {
66
+ return !(ReqSocialRemoveFollower(obj) instanceof type.errors);
67
+ }
68
+ export const ResSocialRemoveFollower = type({
69
+ type: "'vibes.diy.res-social-remove-follower'",
70
+ followerHandle: "string",
71
+ });
72
+ export function isResSocialRemoveFollower(obj) {
73
+ return !(ResSocialRemoveFollower(obj) instanceof type.errors);
74
+ }
75
+ export const ReqSocialBlock = type({
76
+ type: "'vibes.diy.req-social-block'",
77
+ auth: dashAuthType,
78
+ targetHandle: "string",
79
+ });
80
+ export function isReqSocialBlock(obj) {
81
+ return !(ReqSocialBlock(obj) instanceof type.errors);
82
+ }
83
+ export const ResSocialBlock = type({
84
+ type: "'vibes.diy.res-social-block'",
85
+ targetHandle: "string",
86
+ });
87
+ export function isResSocialBlock(obj) {
88
+ return !(ResSocialBlock(obj) instanceof type.errors);
89
+ }
90
+ export const ReqSocialUnblock = type({
91
+ type: "'vibes.diy.req-social-unblock'",
92
+ auth: dashAuthType,
93
+ targetHandle: "string",
94
+ });
95
+ export function isReqSocialUnblock(obj) {
96
+ return !(ReqSocialUnblock(obj) instanceof type.errors);
97
+ }
98
+ export const ResSocialUnblock = type({
99
+ type: "'vibes.diy.res-social-unblock'",
100
+ targetHandle: "string",
101
+ });
102
+ export function isResSocialUnblock(obj) {
103
+ return !(ResSocialUnblock(obj) instanceof type.errors);
104
+ }
105
+ export const ReqSocialList = type({
106
+ type: "'vibes.diy.req-social-list'",
107
+ auth: dashAuthType,
108
+ });
109
+ export function isReqSocialList(obj) {
110
+ return !(ReqSocialList(obj) instanceof type.errors);
111
+ }
112
+ export const ResSocialList = type({
113
+ type: "'vibes.diy.res-social-list'",
114
+ handle: "string",
115
+ private: "boolean",
116
+ following: SocialEdge.array(),
117
+ followers: SocialEdge.array(),
118
+ requests: SocialEdge.array(),
119
+ blocked: type({ handle: "string", created: "string" }).array(),
120
+ });
121
+ export function isResSocialList(obj) {
122
+ return !(ResSocialList(obj) instanceof type.errors);
123
+ }
124
+ export const ReqSocialRelationship = type({
125
+ type: "'vibes.diy.req-social-relationship'",
126
+ auth: dashAuthType,
127
+ targetHandle: "string",
128
+ });
129
+ export function isReqSocialRelationship(obj) {
130
+ return !(ReqSocialRelationship(obj) instanceof type.errors);
131
+ }
132
+ export const ResSocialRelationship = type({
133
+ type: "'vibes.diy.res-social-relationship'",
134
+ targetHandle: "string",
135
+ following: SocialEdgeState.or("null"),
136
+ followedBy: SocialEdgeState.or("null"),
137
+ blocked: "boolean",
138
+ });
139
+ export function isResSocialRelationship(obj) {
140
+ return !(ResSocialRelationship(obj) instanceof type.errors);
141
+ }
142
+ export const ReqSocialSetPrivacy = type({
143
+ type: "'vibes.diy.req-social-set-privacy'",
144
+ auth: dashAuthType,
145
+ private: "boolean",
146
+ });
147
+ export function isReqSocialSetPrivacy(obj) {
148
+ return !(ReqSocialSetPrivacy(obj) instanceof type.errors);
149
+ }
150
+ export const ResSocialSetPrivacy = type({
151
+ type: "'vibes.diy.res-social-set-privacy'",
152
+ private: "boolean",
153
+ });
154
+ export function isResSocialSetPrivacy(obj) {
155
+ return !(ResSocialSetPrivacy(obj) instanceof type.errors);
156
+ }
157
+ export const ReqSocialImportFriendEdges = type({
158
+ type: "'vibes.diy.req-social-import-friend-edges'",
159
+ auth: dashAuthType,
160
+ ownerHandle: "string",
161
+ appSlug: "string",
162
+ dbName: "string",
163
+ "dryRun?": "boolean",
164
+ });
165
+ export function isReqSocialImportFriendEdges(obj) {
166
+ return !(ReqSocialImportFriendEdges(obj) instanceof type.errors);
167
+ }
168
+ export const ImportFriendEdgesCounts = type({
169
+ docsScanned: "number",
170
+ friendDocs: "number",
171
+ malformedDocs: "number",
172
+ pairs: "number",
173
+ edgesCreated: "number",
174
+ skippedExisting: "number",
175
+ skippedBlocked: "number",
176
+ skippedUnknownHandle: "number",
177
+ });
178
+ export const ResSocialImportFriendEdges = type({
179
+ type: "'vibes.diy.res-social-import-friend-edges'",
180
+ dryRun: "boolean",
181
+ counts: ImportFriendEdgesCounts,
182
+ });
183
+ export function isResSocialImportFriendEdges(obj) {
184
+ return !(ResSocialImportFriendEdges(obj) instanceof type.errors);
185
+ }
186
+ export const ReqSubscribeSocial = type({
187
+ type: "'vibes.diy.req-subscribe-social'",
188
+ auth: dashAuthType,
189
+ });
190
+ export function isReqSubscribeSocial(obj) {
191
+ return !(ReqSubscribeSocial(obj) instanceof type.errors);
192
+ }
193
+ export const ResSubscribeSocial = type({
194
+ type: "'vibes.diy.res-subscribe-social'",
195
+ status: "'ok'",
196
+ });
197
+ export function isResSubscribeSocial(obj) {
198
+ return !(ResSubscribeSocial(obj) instanceof type.errors);
199
+ }
200
+ export const EvtSocialEdge = type({
201
+ type: "'vibes.diy.evt-social-edge'",
202
+ op: "'upsert' | 'delete'",
203
+ edge: SocialEdge,
204
+ });
205
+ export function isEvtSocialEdge(obj) {
206
+ return !(EvtSocialEdge(obj) instanceof type.errors);
207
+ }
208
+ export const ReqSocialInvite = type({
209
+ type: "'vibes.diy.req-social-invite'",
210
+ auth: dashAuthType,
211
+ contact: "string",
212
+ });
213
+ export function isReqSocialInvite(obj) {
214
+ return !(ReqSocialInvite(obj) instanceof type.errors);
215
+ }
216
+ export const ResSocialInvite = type({
217
+ type: "'vibes.diy.res-social-invite'",
218
+ status: "'ok' | 'rate-limited'",
219
+ });
220
+ export function isResSocialInvite(obj) {
221
+ return !(ResSocialInvite(obj) instanceof type.errors);
222
+ }
223
+ export const ReqSocialRedeem = type({
224
+ type: "'vibes.diy.req-social-redeem'",
225
+ auth: dashAuthType,
226
+ token: "string",
227
+ });
228
+ export function isReqSocialRedeem(obj) {
229
+ return !(ReqSocialRedeem(obj) instanceof type.errors);
230
+ }
231
+ export const ResSocialRedeem = type({
232
+ type: "'vibes.diy.res-social-redeem'",
233
+ status: "'redeemed' | 'already-redeemed' | 'expired' | 'invalid'",
234
+ "inviterHandle?": "string",
235
+ });
236
+ export function isResSocialRedeem(obj) {
237
+ return !(ResSocialRedeem(obj) instanceof type.errors);
238
+ }
239
+ export const evtSocialInvite = type({
240
+ type: "'vibes.diy.evt-social-invite'",
241
+ inviterHandle: "string",
242
+ contactType: "'email'",
243
+ contactKey: "string",
244
+ token: "string",
245
+ });
246
+ export function isEvtSocialInvite(obj) {
247
+ return !(evtSocialInvite(obj) instanceof type.errors);
248
+ }
249
+ //# sourceMappingURL=social-msg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"social-msg.js","sourceRoot":"","sources":["../jsr/social-msg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC,wBAAwB,CAAC,CAAC;AAG9D,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,CAAC;IAC7B,cAAc,EAAE,QAAQ;IACxB,cAAc,EAAE,QAAQ;IACxB,KAAK,EAAE,eAAe;IACtB,OAAO,EAAE,QAAQ;IACjB,OAAO,EAAE,QAAQ;CAClB,CAAC,CAAC;AAEH,MAAM,UAAU,YAAY,CAAC,GAAY;IACvC,OAAO,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AACnD,CAAC;AAED,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC;IAClC,IAAI,EAAE,+BAA+B;IACrC,IAAI,EAAE,YAAY;IAClB,YAAY,EAAE,QAAQ;CACvB,CAAC,CAAC;AAEH,MAAM,UAAU,iBAAiB,CAAC,GAAY;IAC5C,OAAO,CAAC,CAAC,eAAe,CAAC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MAAM,UAAU,iBAAiB,CAAC,GAAY;IAC5C,OAAO,CAAC,CAAC,eAAe,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AACxD,CAAC;AAID,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC;IAClC,IAAI,EAAE,+BAA+B;IACrC,MAAM,EAAE,yDAAyD;IACjE,gBAAgB,EAAE,QAAQ;CAC3B,CAAC,CAAC;AAEH,MAAM,UAAU,iBAAiB,CAAC,GAAY;IAC5C,OAAO,CAAC,CAAC,eAAe,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AACxD,CAAC;AAQD,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC;IAClC,IAAI,EAAE,+BAA+B;IACrC,aAAa,EAAE,QAAQ;IACvB,WAAW,EAAE,SAAS;IACtB,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAE,QAAQ;CAChB,CAAC,CAAC;AAEH,MAAM,UAAU,iBAAiB,CAAC,GAAY;IAC5C,OAAO,CAAC,CAAC,eAAe,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AACxD,CAAC"}
@@ -5,15 +5,19 @@ import { ReqOpenChat, ResPromptChatSection, SectionEvent, ReqListModels, ResList
5
5
  import { ReqEnsureUserSettings, ResEnsureUserSettings, ReqEnsureHandleAvatar, ResEnsureHandleAvatar, ReqListApplicationChats, ResListApplicationChats, ReqListCodegenChats, ResListCodegenChats, ReqEnsureAppSettings, ResEnsureAppSettings } from "./settings.js";
6
6
  import { ReqCreateInvite, ResCreateInvite, ReqRevokeInvite, ResRevokeInvite, ReqRedeemInvite, ResRedeemInviteOK, ReqHasAccessInvite, ResHasAccessInvite, ReqInviteSetRole, ResInviteSetRole, ReqListInviteGrants, ResListInviteGrants } from "./invite-flow.js";
7
7
  import { ReqListRequestGrants, ResListRequestGrants, ReqSubscribeRequestGrants, ResSubscribeRequestGrants, ReqRequestAccess, ResRequestAccess, ReqApproveRequest, ResApproveRequest, ReqRequestSetRole, ResRequestSetRole, ReqRevokeRequest, ResRevokeRequest, ReqHasAccessRequest, ResHasAccessRequest, EvtRequestGrant } from "./request-access.js";
8
+ import { ReqEnsureDeveloperGrant, ResEnsureDeveloperGrant, ReqRevokeDeveloperGrant, ResRevokeDeveloperGrant, ReqListDeveloperGrants, ResListDeveloperGrants } from "./developer-grant.js";
8
9
  import { ResSubscribeUserNotifications, EvtUserNotification, ReqSubscribeUserNotificationsRaw, ReqRegisterPushTokenRaw, ReqDeregisterPushTokenRaw, ResDeregisterPushToken, ResRegisterPushToken } from "./notifications.js";
9
10
  import { ReqPutDoc, ResPutDoc, ReqGetDoc, ResGetDoc, ResGetDocNotFound, ReqQueryDocs, ResQueryDocs, ReqDeleteDoc, ResDeleteDoc, ReqSubscribeDocs, ResSubscribeDocs, ReqBroadcastEphemeral, EvtDocEphemeral, ReqSubscribeViewerGrants, ResSubscribeViewerGrants, EvtViewerGrantsChanged, ReqListDbNames, ResListDbNames, ReqListDmThreads, ResListDmThreads, ReqMarkDmRead, ResMarkDmRead } from "./app-documents.js";
10
11
  import { ReqListMembers, ResListMembers } from "./members.js";
12
+ import { ReqSocialFollow, ResSocialFollow, ReqSocialUnfollow, ResSocialUnfollow, ReqSocialApprove, ResSocialApprove, ReqSocialRemoveFollower, ResSocialRemoveFollower, ReqSocialBlock, ResSocialBlock, ReqSocialUnblock, ResSocialUnblock, ReqSocialList, ResSocialList, ReqSocialRelationship, ResSocialRelationship, ReqSocialRedeem, ResSocialRedeem, ReqSocialInvite, ResSocialInvite, ReqSocialSetPrivacy, ReqSocialImportFriendEdges, ResSocialImportFriendEdges, ResSocialSetPrivacy, ReqSubscribeSocial, ResSubscribeSocial, EvtSocialEdge } from "./social-msg.js";
13
+ import { ReqAudienceArmState, ResAudienceArmState, ReqSetAudienceArm, ResSetAudienceArm, ReqSetAudiencePolicy, ResSetAudiencePolicy, ReqListAudienceArms, ResListAudienceArms } from "./audience-arms-msg.js";
11
14
  import { ReqListMemberships, ResListMemberships } from "./memberships.js";
12
15
  import { ReqBillingCheckout, ResBillingCheckout, ReqBillingConfig, ResBillingConfig, ReqBillingCustomer, ResBillingCustomer } from "./billing-msg.js";
13
16
  import { ReqVibeWhoAmI, ResVibeWhoAmI, ReqVibeAccessFnSource, ResVibeAccessFnSource, ReqVibeLookupHandles, ResVibeLookupHandles } from "@vibes.diy/vibe-types";
14
17
  import { ReqAssetUploadGrant, ResAssetUploadGrant } from "./asset.js";
15
18
  import { ReqReportGrowthMemberships, ResReportGrowthMemberships, ReqReportGrowthVibesWithData, ResReportGrowthVibesWithData, ReqReportActiveMembers, ResReportActiveMembers, ReqReportTopVibesByMembers, ResReportTopVibesByMembers, ReqReportAttributionReferrers, ResReportAttributionReferrers, ReqReportCampaignHealth, ResReportCampaignHealth } from "./report.js";
16
19
  import { ReqHomeLeaderboard, ResHomeLeaderboard, ReqCuratedNewVibes, ResCuratedNewVibes } from "./home-feed.js";
20
+ import { ReqRelatedVibes, ResRelatedVibes } from "./related-vibes.js";
17
21
  import { LLMRequest } from "@vibes.diy/call-ai-v2";
18
22
  import { DashAuthType, ReqCertFromCsr, ResCertFromCsr, VerifiedClaimsResult, ClerkClaim } from "@vibes.diy/identity";
19
23
  import type { ShardKind, ReqType, SHARD_POLICY } from "./shard-policy.js";
@@ -93,6 +97,9 @@ export interface VibesDiyApiIface<_T = unknown> {
93
97
  listRequestGrants(req: Req<ReqListRequestGrants>): Promise<Result<ResListRequestGrants, VibesDiyError>>;
94
98
  subscribeRequestGrants(req: Req<ReqSubscribeRequestGrants>): Promise<Result<ResSubscribeRequestGrants, VibesDiyError>>;
95
99
  hasAccessRequest(req: Req<ReqHasAccessRequest>): Promise<Result<ResHasAccessRequest, VibesDiyError>>;
100
+ ensureDeveloperGrant(req: Req<ReqEnsureDeveloperGrant>): Promise<Result<ResEnsureDeveloperGrant, VibesDiyError>>;
101
+ revokeDeveloperGrant(req: Req<ReqRevokeDeveloperGrant>): Promise<Result<ResRevokeDeveloperGrant, VibesDiyError>>;
102
+ listDeveloperGrants(req: Req<ReqListDeveloperGrants>): Promise<Result<ResListDeveloperGrants, VibesDiyError>>;
96
103
  listHandleBindings(req: Req<ReqListHandleBindings>): Promise<Result<ResListHandleBindings, VibesDiyError>>;
97
104
  createHandleBinding(req: Req<ReqCreateHandleBinding>): Promise<Result<ResCreateHandleBinding, VibesDiyError>>;
98
105
  deleteHandleBinding(req: Req<ReqDeleteHandleBinding>): Promise<Result<ResDeleteHandleBinding, VibesDiyError>>;
@@ -110,6 +117,23 @@ export interface VibesDiyApiIface<_T = unknown> {
110
117
  listDmThreads(req: Req<ReqListDmThreads>): Promise<Result<ResListDmThreads, VibesDiyError>>;
111
118
  markDmRead(req: Req<ReqMarkDmRead>): Promise<Result<ResMarkDmRead, VibesDiyError>>;
112
119
  listMembers(req: Req<ReqListMembers>): Promise<Result<ResListMembers, VibesDiyError>>;
120
+ socialFollow(req: Req<ReqSocialFollow>): Promise<Result<ResSocialFollow, VibesDiyError>>;
121
+ socialUnfollow(req: Req<ReqSocialUnfollow>): Promise<Result<ResSocialUnfollow, VibesDiyError>>;
122
+ socialApprove(req: Req<ReqSocialApprove>): Promise<Result<ResSocialApprove, VibesDiyError>>;
123
+ socialRemoveFollower(req: Req<ReqSocialRemoveFollower>): Promise<Result<ResSocialRemoveFollower, VibesDiyError>>;
124
+ socialBlock(req: Req<ReqSocialBlock>): Promise<Result<ResSocialBlock, VibesDiyError>>;
125
+ socialUnblock(req: Req<ReqSocialUnblock>): Promise<Result<ResSocialUnblock, VibesDiyError>>;
126
+ socialList(req: Req<ReqSocialList>): Promise<Result<ResSocialList, VibesDiyError>>;
127
+ socialRelationship(req: Req<ReqSocialRelationship>): Promise<Result<ResSocialRelationship, VibesDiyError>>;
128
+ socialRedeem(req: Req<ReqSocialRedeem>): Promise<Result<ResSocialRedeem, VibesDiyError>>;
129
+ socialInvite(req: Req<ReqSocialInvite>): Promise<Result<ResSocialInvite, VibesDiyError>>;
130
+ socialSetPrivacy(req: Req<ReqSocialSetPrivacy>): Promise<Result<ResSocialSetPrivacy, VibesDiyError>>;
131
+ socialImportFriendEdges(req: Req<ReqSocialImportFriendEdges>): Promise<Result<ResSocialImportFriendEdges, VibesDiyError>>;
132
+ audienceArmState(req: Req<ReqAudienceArmState>): Promise<Result<ResAudienceArmState, VibesDiyError>>;
133
+ setAudienceArm(req: Req<ReqSetAudienceArm>): Promise<Result<ResSetAudienceArm, VibesDiyError>>;
134
+ setAudiencePolicy(req: Req<ReqSetAudiencePolicy>): Promise<Result<ResSetAudiencePolicy, VibesDiyError>>;
135
+ listAudienceArms(req: Req<ReqListAudienceArms>): Promise<Result<ResListAudienceArms, VibesDiyError>>;
136
+ subscribeSocial(req: Req<ReqSubscribeSocial>): Promise<Result<ResSubscribeSocial, VibesDiyError>>;
113
137
  listMemberships(req: Req<ReqListMemberships>): Promise<Result<ResListMemberships, VibesDiyError>>;
114
138
  billingCustomer(req: Req<ReqBillingCustomer>): Promise<Result<ResBillingCustomer, VibesDiyError>>;
115
139
  billingCheckout(req: Req<ReqBillingCheckout>): Promise<Result<ResBillingCheckout, VibesDiyError>>;
@@ -126,11 +150,13 @@ export interface VibesDiyApiIface<_T = unknown> {
126
150
  reportCampaignHealth(req: Req<ReqReportCampaignHealth>): Promise<Result<ResReportCampaignHealth, VibesDiyError>>;
127
151
  homeLeaderboard(req: Req<ReqHomeLeaderboard>): Promise<Result<ResHomeLeaderboard, VibesDiyError>>;
128
152
  curatedNewVibes(req: Req<ReqCuratedNewVibes>): Promise<Result<ResCuratedNewVibes, VibesDiyError>>;
153
+ relatedVibes(req: Req<ReqRelatedVibes>): Promise<Result<ResRelatedVibes, VibesDiyError>>;
129
154
  onDocChanged(fn: (ownerHandle: string, appSlug: string, dbName: string, docId: string) => void): () => void;
130
155
  onDocEphemeral(fn: (evt: EvtDocEphemeral) => void): () => void;
131
156
  onDocEphemeralDrop(fn: (originPeer: string) => void): () => void;
132
157
  onRequestGrant(fn: (evt: EvtRequestGrant) => void): () => void;
133
158
  onViewerGrantsChanged(fn: (evt: EvtViewerGrantsChanged) => void): () => void;
159
+ onSocialEdge(fn: (evt: EvtSocialEdge) => void): () => void;
134
160
  subscribeUserNotifications(req: Req<ReqSubscribeUserNotificationsRaw>): Promise<Result<ResSubscribeUserNotifications, VibesDiyError>>;
135
161
  onUserNotification(fn: (evt: EvtUserNotification) => void): () => void;
136
162
  registerPushToken(req: Req<ReqRegisterPushTokenRaw>): Promise<Result<ResRegisterPushToken, VibesDiyError>>;
@@ -1 +1 @@
1
- {"version":3,"file":"vibes-diy-api.js","sourceRoot":"","sources":["../jsr/vibes-diy-api.ts"],"names":[],"mappings":"AAqKA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAK/B,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC;IAC/B,GAAG,EAAE,QAAQ;IACb,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,QAAQ;IACrB,OAAO,EAAE,QAAQ;CAClB,CAAC,CAAC"}
1
+ {"version":3,"file":"vibes-diy-api.js","sourceRoot":"","sources":["../jsr/vibes-diy-api.ts"],"names":[],"mappings":"AAqNA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAK/B,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC;IAC/B,GAAG,EAAE,QAAQ;IACb,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,QAAQ;IACrB,OAAO,EAAE,QAAQ;CAClB,CAAC,CAAC"}