@vibes.diy/api-types 4.5.5 → 5.2.2

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/access-function.d.ts +4 -0
  2. package/app-documents.d.ts +7 -0
  3. package/app-documents.js +8 -0
  4. package/app-documents.js.map +1 -1
  5. package/app.d.ts +248 -194
  6. package/app.js +37 -0
  7. package/app.js.map +1 -1
  8. package/audience-arms-msg.d.ts +94 -0
  9. package/audience-arms-msg.js +90 -0
  10. package/audience-arms-msg.js.map +1 -0
  11. package/billing-msg.d.ts +78 -0
  12. package/billing-msg.js +67 -0
  13. package/billing-msg.js.map +1 -0
  14. package/cf-env.d.ts +4 -0
  15. package/db-acls.d.ts +0 -2
  16. package/db-acls.js +0 -2
  17. package/db-acls.js.map +1 -1
  18. package/developer-grant.d.ts +96 -0
  19. package/developer-grant.js +87 -0
  20. package/developer-grant.js.map +1 -0
  21. package/email-unsubscribe.d.ts +3 -0
  22. package/email-unsubscribe.js +33 -0
  23. package/email-unsubscribe.js.map +1 -0
  24. package/home-feed.d.ts +79 -0
  25. package/home-feed.js +52 -0
  26. package/home-feed.js.map +1 -0
  27. package/index.d.ts +7 -0
  28. package/index.js +7 -0
  29. package/index.js.map +1 -1
  30. package/invite.d.ts +54 -15
  31. package/invite.js +28 -1
  32. package/invite.js.map +1 -1
  33. package/notifications.d.ts +39 -2
  34. package/notifications.js +39 -2
  35. package/notifications.js.map +1 -1
  36. package/package.json +7 -6
  37. package/related-vibes.d.ts +72 -0
  38. package/related-vibes.js +53 -0
  39. package/related-vibes.js.map +1 -0
  40. package/settings.d.ts +173 -7
  41. package/settings.js +46 -1
  42. package/settings.js.map +1 -1
  43. package/shard-policy.d.ts +28 -0
  44. package/shard-policy.js +28 -0
  45. package/shard-policy.js.map +1 -1
  46. package/social-msg.d.ts +294 -0
  47. package/social-msg.js +249 -0
  48. package/social-msg.js.map +1 -0
  49. package/types.d.ts +6 -0
  50. package/types.js +3 -0
  51. package/types.js.map +1 -1
  52. package/vibes-diy-api.d.ts +35 -1
  53. package/vibes-diy-api.js.map +1 -1
  54. package/vibes-diy-serv-ctx.js.map +1 -1
@@ -1,17 +1,23 @@
1
1
  import { Result } from "@adviser/cement";
2
2
  import { VibesDiyError, ResError, VibeFile } from "./common.js";
3
- import { ReqEnsureAppSlug, ResEnsureAppSlug, ReqListUserSlugAppSlug, ResListUserSlugAppSlug, ReqListRecentVibes, ResListRecentVibes, ReqPinRecentVibe, ResPinRecentVibe, ReqSetUnpublish, ResSetUnpublish, ReqGetChatDetails, ResGetChatDetails, ReqGetAppByFsId, ResGetAppByFsId, ReqSetModeFs, ResSetModeFs, ReqForkApp, ResForkApp, ReqPublishApp, ResPublishApp, ReqListVersions, ResListVersions, ReqListHandleBindings, ResListHandleBindings, ReqCreateHandleBinding, ResCreateHandleBinding, ReqDeleteHandleBinding, ResDeleteHandleBinding, ReqGetApplicationChat, ResGetApplicationChat } from "./app.js";
3
+ import { ReqEnsureAppSlug, ResEnsureAppSlug, ReqListUserSlugAppSlug, ResListUserSlugAppSlug, ReqListRecentVibes, ResListRecentVibes, ReqPinRecentVibe, ResPinRecentVibe, ReqSetUnpublish, ResSetUnpublish, ReqGetChatDetails, ResGetChatDetails, ReqGetAppByFsId, ResGetAppByFsId, ReqSetModeFs, ResSetModeFs, ReqForkApp, ResForkApp, ReqPublishApp, ResPublishApp, ReqListVersions, ResListVersions, ReqListHandleBindings, ResListHandleBindings, ReqCreateHandleBinding, ResCreateHandleBinding, ReqDeleteHandleBinding, ResDeleteHandleBinding, ReqGetApplicationChat, ResGetApplicationChat, ReqListNotifications, ResListNotifications, ReqMarkNotificationsRead, ResMarkNotificationsRead } from "./app.js";
4
4
  import { ReqOpenChat, ResPromptChatSection, SectionEvent, ReqListModels, ResListModels, FSUpdate, SelectedSlotInput, ReqGetChatResponse, ResGetChatResponse, ReqGetVibeChips, ResGetVibeChips, ReqGetCachedSuggestion, ResGetCachedSuggestion, ReqSeedStarterChips, ResSeedStarterChips } from "./chat.js";
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, 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";
15
+ import { ReqBillingCheckout, ResBillingCheckout, ReqBillingConfig, ResBillingConfig, ReqBillingCustomer, ResBillingCustomer } from "./billing-msg.js";
12
16
  import { ReqVibeWhoAmI, ResVibeWhoAmI, ReqVibeAccessFnSource, ResVibeAccessFnSource, ReqVibeLookupHandles, ResVibeLookupHandles } from "@vibes.diy/vibe-types";
13
17
  import { ReqAssetUploadGrant, ResAssetUploadGrant } from "./asset.js";
14
18
  import { ReqReportGrowthMemberships, ResReportGrowthMemberships, ReqReportGrowthVibesWithData, ResReportGrowthVibesWithData, ReqReportActiveMembers, ResReportActiveMembers, ReqReportTopVibesByMembers, ResReportTopVibesByMembers, ReqReportAttributionReferrers, ResReportAttributionReferrers, ReqReportCampaignHealth, ResReportCampaignHealth } from "./report.js";
19
+ import { ReqHomeLeaderboard, ResHomeLeaderboard, ReqCuratedNewVibes, ResCuratedNewVibes } from "./home-feed.js";
20
+ import { ReqRelatedVibes, ResRelatedVibes } from "./related-vibes.js";
15
21
  import { LLMRequest } from "@vibes.diy/call-ai-v2";
16
22
  import { DashAuthType, ReqCertFromCsr, ResCertFromCsr, VerifiedClaimsResult, ClerkClaim } from "@vibes.diy/identity";
17
23
  import type { ShardKind, ReqType, SHARD_POLICY } from "./shard-policy.js";
@@ -91,9 +97,14 @@ export interface VibesDiyApiIface<_T = unknown> {
91
97
  listRequestGrants(req: Req<ReqListRequestGrants>): Promise<Result<ResListRequestGrants, VibesDiyError>>;
92
98
  subscribeRequestGrants(req: Req<ReqSubscribeRequestGrants>): Promise<Result<ResSubscribeRequestGrants, VibesDiyError>>;
93
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>>;
94
103
  listHandleBindings(req: Req<ReqListHandleBindings>): Promise<Result<ResListHandleBindings, VibesDiyError>>;
95
104
  createHandleBinding(req: Req<ReqCreateHandleBinding>): Promise<Result<ResCreateHandleBinding, VibesDiyError>>;
96
105
  deleteHandleBinding(req: Req<ReqDeleteHandleBinding>): Promise<Result<ResDeleteHandleBinding, VibesDiyError>>;
106
+ listNotifications(req: Req<ReqListNotifications>): Promise<Result<ResListNotifications, VibesDiyError>>;
107
+ markNotificationsRead(req: Req<ReqMarkNotificationsRead>): Promise<Result<ResMarkNotificationsRead, VibesDiyError>>;
97
108
  listModels(req: Req<ReqListModels>): Promise<Result<ResListModels, VibesDiyError>>;
98
109
  putDoc(req: Req<ReqPutDoc>): Promise<Result<ResPutDoc, VibesDiyError>>;
99
110
  getDoc(req: Req<ReqGetDoc>): Promise<Result<ResGetDoc | ResGetDocNotFound, VibesDiyError>>;
@@ -106,7 +117,26 @@ export interface VibesDiyApiIface<_T = unknown> {
106
117
  listDmThreads(req: Req<ReqListDmThreads>): Promise<Result<ResListDmThreads, VibesDiyError>>;
107
118
  markDmRead(req: Req<ReqMarkDmRead>): Promise<Result<ResMarkDmRead, VibesDiyError>>;
108
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
+ socialSetPrivacy(req: Req<ReqSocialSetPrivacy>): Promise<Result<ResSocialSetPrivacy, VibesDiyError>>;
130
+ socialImportFriendEdges(req: Req<ReqSocialImportFriendEdges>): Promise<Result<ResSocialImportFriendEdges, VibesDiyError>>;
131
+ audienceArmState(req: Req<ReqAudienceArmState>): Promise<Result<ResAudienceArmState, VibesDiyError>>;
132
+ setAudienceArm(req: Req<ReqSetAudienceArm>): Promise<Result<ResSetAudienceArm, VibesDiyError>>;
133
+ setAudiencePolicy(req: Req<ReqSetAudiencePolicy>): Promise<Result<ResSetAudiencePolicy, VibesDiyError>>;
134
+ listAudienceArms(req: Req<ReqListAudienceArms>): Promise<Result<ResListAudienceArms, VibesDiyError>>;
135
+ subscribeSocial(req: Req<ReqSubscribeSocial>): Promise<Result<ResSubscribeSocial, VibesDiyError>>;
109
136
  listMemberships(req: Req<ReqListMemberships>): Promise<Result<ResListMemberships, VibesDiyError>>;
137
+ billingCustomer(req: Req<ReqBillingCustomer>): Promise<Result<ResBillingCustomer, VibesDiyError>>;
138
+ billingCheckout(req: Req<ReqBillingCheckout>): Promise<Result<ResBillingCheckout, VibesDiyError>>;
139
+ billingConfig(req: Req<ReqBillingConfig>): Promise<Result<ResBillingConfig, VibesDiyError>>;
110
140
  whoAmI(req: Req<ReqVibeWhoAmI>): Promise<Result<ResVibeWhoAmI, VibesDiyError>>;
111
141
  accessFnSource(req: Req<ReqVibeAccessFnSource>): Promise<Result<ResVibeAccessFnSource, VibesDiyError>>;
112
142
  lookupHandles(req: Req<ReqVibeLookupHandles>): Promise<Result<ResVibeLookupHandles, VibesDiyError>>;
@@ -117,11 +147,15 @@ export interface VibesDiyApiIface<_T = unknown> {
117
147
  reportTopVibesByMembers(req: Req<ReqReportTopVibesByMembers>): Promise<Result<ResReportTopVibesByMembers, VibesDiyError>>;
118
148
  reportAttributionReferrers(req: Req<ReqReportAttributionReferrers>): Promise<Result<ResReportAttributionReferrers, VibesDiyError>>;
119
149
  reportCampaignHealth(req: Req<ReqReportCampaignHealth>): Promise<Result<ResReportCampaignHealth, VibesDiyError>>;
150
+ homeLeaderboard(req: Req<ReqHomeLeaderboard>): Promise<Result<ResHomeLeaderboard, VibesDiyError>>;
151
+ curatedNewVibes(req: Req<ReqCuratedNewVibes>): Promise<Result<ResCuratedNewVibes, VibesDiyError>>;
152
+ relatedVibes(req: Req<ReqRelatedVibes>): Promise<Result<ResRelatedVibes, VibesDiyError>>;
120
153
  onDocChanged(fn: (ownerHandle: string, appSlug: string, dbName: string, docId: string) => void): () => void;
121
154
  onDocEphemeral(fn: (evt: EvtDocEphemeral) => void): () => void;
122
155
  onDocEphemeralDrop(fn: (originPeer: string) => void): () => void;
123
156
  onRequestGrant(fn: (evt: EvtRequestGrant) => void): () => void;
124
157
  onViewerGrantsChanged(fn: (evt: EvtViewerGrantsChanged) => void): () => void;
158
+ onSocialEdge(fn: (evt: EvtSocialEdge) => void): () => void;
125
159
  subscribeUserNotifications(req: Req<ReqSubscribeUserNotificationsRaw>): Promise<Result<ResSubscribeUserNotifications, VibesDiyError>>;
126
160
  onUserNotification(fn: (evt: EvtUserNotification) => void): () => void;
127
161
  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":"AAwJA,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":"AAmNA,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 +1 @@
1
- {"version":3,"file":"vibes-diy-serv-ctx.js","sourceRoot":"","sources":["../jsr/vibes-diy-serv-ctx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC;IAC9B,qBAAqB,EAAE,QAAQ;IAC/B,iBAAiB,EAAE,QAAQ;IAE3B,mBAAmB,EAAE,QAAQ;IAC7B,cAAc,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