@vibes.diy/api-types 14.3.325 → 14.3.326

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 (251) hide show
  1. package/LICENSE.md +54 -201
  2. package/access-fn-limit-msg.js +0 -1
  3. package/access-function.js +0 -1
  4. package/access-summary.js +0 -1
  5. package/agent-chat.js +0 -1
  6. package/agent-connector-note.js +0 -1
  7. package/agent-discussion-entry.js +0 -1
  8. package/agent-evidence-line.js +0 -1
  9. package/agent-file-edit.js +0 -1
  10. package/agent-fold.js +0 -1
  11. package/agent-personalities.js +0 -1
  12. package/agent-picture.js +0 -1
  13. package/agent-reactions.js +0 -1
  14. package/agent-reply-fold.d.ts +2 -1
  15. package/agent-reply-fold.js +4 -2
  16. package/agent-tools.js +0 -1
  17. package/app-clip.js +0 -1
  18. package/app-documents.js +0 -1
  19. package/app-name.js +0 -1
  20. package/app.js +0 -1
  21. package/asset-extensions.js +0 -1
  22. package/asset-safety.js +0 -1
  23. package/asset.js +0 -1
  24. package/audience-arms-msg.js +0 -1
  25. package/auth.js +0 -1
  26. package/billing-msg.js +0 -1
  27. package/bridge-notes.js +0 -1
  28. package/build-ledger.js +0 -1
  29. package/cached-suggestion.js +0 -1
  30. package/capi-conversion-msg.js +0 -1
  31. package/capi-share-msg.js +0 -1
  32. package/cf-env.d.ts +1 -0
  33. package/cf-env.js +0 -1
  34. package/chat-chips.js +0 -1
  35. package/chat-history.js +0 -1
  36. package/chat-section-pack.js +0 -1
  37. package/chat.js +0 -1
  38. package/checkout-unfinished-msg.js +0 -1
  39. package/cli-cert-pickup.js +0 -1
  40. package/common.js +0 -1
  41. package/credits-copy.js +0 -1
  42. package/crm-fact-msg.js +0 -1
  43. package/db-acls.js +0 -1
  44. package/developer-grant.js +0 -1
  45. package/direct-channel.js +0 -1
  46. package/duration.js +0 -1
  47. package/email-unsubscribe.d.ts +1 -1
  48. package/email-unsubscribe.js +0 -1
  49. package/embed-param.js +0 -1
  50. package/geo.js +0 -1
  51. package/group-chat-settings.js +0 -1
  52. package/group-principal.d.ts +33 -0
  53. package/group-principal.js +33 -1
  54. package/guest-app-visitors.js +0 -1
  55. package/guest-principal.js +0 -1
  56. package/guided-remix.js +0 -1
  57. package/home-feed.js +0 -1
  58. package/iframe-src-params.js +0 -1
  59. package/index.d.ts +1 -0
  60. package/index.js +1 -1
  61. package/internal-secret-purpose-key.js +0 -1
  62. package/invite-flow.js +0 -1
  63. package/invite-note.js +0 -1
  64. package/invite.js +0 -1
  65. package/lazy-type.js +0 -1
  66. package/log-policy.js +0 -1
  67. package/look-packages.js +0 -1
  68. package/mail-image-token.js +0 -1
  69. package/manifest-item.js +0 -1
  70. package/members.js +0 -1
  71. package/memberships.js +0 -1
  72. package/meta-capi-core.d.ts +4 -0
  73. package/meta-capi-core.js +4 -1
  74. package/meta-click-id-msg.js +0 -1
  75. package/mint-fire.js +0 -1
  76. package/moderation.js +0 -1
  77. package/nature-rewrite-suggestion.js +0 -1
  78. package/notifications-summary.js +0 -1
  79. package/notifications.js +0 -1
  80. package/notify-picture.d.ts +23 -0
  81. package/notify-picture.js +35 -0
  82. package/offered-options.js +0 -1
  83. package/package.json +5 -5
  84. package/parse-http-uri.js +0 -1
  85. package/phone-link-invite.js +0 -1
  86. package/phone-link.d.ts +24 -0
  87. package/phone-link.js +8 -1
  88. package/places.js +0 -1
  89. package/prefilled-prompts.js +0 -1
  90. package/promo-redeemed-msg.js +0 -1
  91. package/prompt.js +0 -1
  92. package/queue-schedule.js +0 -1
  93. package/redact-email-link.js +0 -1
  94. package/related-vibes.js +0 -1
  95. package/report.js +0 -1
  96. package/request-access.js +0 -1
  97. package/research.js +0 -1
  98. package/reskin-dose.js +0 -1
  99. package/retention-msg.js +0 -1
  100. package/retention-steps.js +0 -1
  101. package/screen-shotter.js +0 -1
  102. package/screenshot-capture-token.js +0 -1
  103. package/settings.js +0 -1
  104. package/shard-policy.d.ts +1 -0
  105. package/shard-policy.js +1 -1
  106. package/shard-policy.test-d.js +0 -1
  107. package/share-link-tag.js +0 -1
  108. package/share-open-token.js +0 -1
  109. package/shared-mint.js +0 -1
  110. package/signin-ticket.js +0 -1
  111. package/social-msg.js +0 -1
  112. package/style-cache-key.js +0 -1
  113. package/style.js +0 -1
  114. package/text-number.js +0 -1
  115. package/text-turn.js +0 -1
  116. package/tracking-params.js +0 -1
  117. package/turn-variant.js +0 -1
  118. package/type-is.js +0 -1
  119. package/types.js +0 -1
  120. package/version-ordinal.js +0 -1
  121. package/vibe-activity.js +0 -1
  122. package/vibe-card-events.js +0 -1
  123. package/vibe-file-lint.js +0 -1
  124. package/vibe-tools.js +0 -1
  125. package/vibes-diy-api.d.ts +2 -1
  126. package/vibes-diy-api.js +0 -1
  127. package/vibes-diy-serv-ctx.js +0 -1
  128. package/vibes-logo-paths.js +0 -1
  129. package/vibes-types.js +0 -1
  130. package/viewer-api-fetch.js +0 -1
  131. package/welcome-msg.js +0 -1
  132. package/ws-event-format.js +0 -1
  133. package/access-fn-limit-msg.js.map +0 -1
  134. package/access-function.js.map +0 -1
  135. package/access-summary.js.map +0 -1
  136. package/agent-chat.js.map +0 -1
  137. package/agent-connector-note.js.map +0 -1
  138. package/agent-discussion-entry.js.map +0 -1
  139. package/agent-evidence-line.js.map +0 -1
  140. package/agent-file-edit.js.map +0 -1
  141. package/agent-fold.js.map +0 -1
  142. package/agent-personalities.js.map +0 -1
  143. package/agent-picture.js.map +0 -1
  144. package/agent-reactions.js.map +0 -1
  145. package/agent-reply-fold.js.map +0 -1
  146. package/agent-tools.js.map +0 -1
  147. package/app-clip.js.map +0 -1
  148. package/app-documents.js.map +0 -1
  149. package/app-name.js.map +0 -1
  150. package/app.js.map +0 -1
  151. package/asset-extensions.js.map +0 -1
  152. package/asset-safety.js.map +0 -1
  153. package/asset.js.map +0 -1
  154. package/audience-arms-msg.js.map +0 -1
  155. package/auth.js.map +0 -1
  156. package/billing-msg.js.map +0 -1
  157. package/bridge-notes.js.map +0 -1
  158. package/build-ledger.js.map +0 -1
  159. package/cached-suggestion.js.map +0 -1
  160. package/capi-conversion-msg.js.map +0 -1
  161. package/capi-share-msg.js.map +0 -1
  162. package/cf-env.js.map +0 -1
  163. package/chat-chips.js.map +0 -1
  164. package/chat-history.js.map +0 -1
  165. package/chat-section-pack.js.map +0 -1
  166. package/chat.js.map +0 -1
  167. package/checkout-unfinished-msg.js.map +0 -1
  168. package/cli-cert-pickup.js.map +0 -1
  169. package/common.js.map +0 -1
  170. package/credits-copy.js.map +0 -1
  171. package/crm-fact-msg.js.map +0 -1
  172. package/db-acls.js.map +0 -1
  173. package/developer-grant.js.map +0 -1
  174. package/direct-channel.js.map +0 -1
  175. package/duration.js.map +0 -1
  176. package/email-unsubscribe.js.map +0 -1
  177. package/embed-param.js.map +0 -1
  178. package/geo.js.map +0 -1
  179. package/group-chat-settings.js.map +0 -1
  180. package/group-principal.js.map +0 -1
  181. package/guest-app-visitors.js.map +0 -1
  182. package/guest-principal.js.map +0 -1
  183. package/guided-remix.js.map +0 -1
  184. package/home-feed.js.map +0 -1
  185. package/iframe-src-params.js.map +0 -1
  186. package/index.js.map +0 -1
  187. package/internal-secret-purpose-key.js.map +0 -1
  188. package/invite-flow.js.map +0 -1
  189. package/invite-note.js.map +0 -1
  190. package/invite.js.map +0 -1
  191. package/lazy-type.js.map +0 -1
  192. package/log-policy.js.map +0 -1
  193. package/look-packages.js.map +0 -1
  194. package/mail-image-token.js.map +0 -1
  195. package/manifest-item.js.map +0 -1
  196. package/members.js.map +0 -1
  197. package/memberships.js.map +0 -1
  198. package/meta-capi-core.js.map +0 -1
  199. package/meta-click-id-msg.js.map +0 -1
  200. package/mint-fire.js.map +0 -1
  201. package/moderation.js.map +0 -1
  202. package/nature-rewrite-suggestion.js.map +0 -1
  203. package/notifications-summary.js.map +0 -1
  204. package/notifications.js.map +0 -1
  205. package/offered-options.js.map +0 -1
  206. package/parse-http-uri.js.map +0 -1
  207. package/phone-link-invite.js.map +0 -1
  208. package/phone-link.js.map +0 -1
  209. package/places.js.map +0 -1
  210. package/prefilled-prompts.js.map +0 -1
  211. package/promo-redeemed-msg.js.map +0 -1
  212. package/prompt.js.map +0 -1
  213. package/queue-schedule.js.map +0 -1
  214. package/redact-email-link.js.map +0 -1
  215. package/related-vibes.js.map +0 -1
  216. package/report.js.map +0 -1
  217. package/request-access.js.map +0 -1
  218. package/research.js.map +0 -1
  219. package/reskin-dose.js.map +0 -1
  220. package/retention-msg.js.map +0 -1
  221. package/retention-steps.js.map +0 -1
  222. package/screen-shotter.js.map +0 -1
  223. package/screenshot-capture-token.js.map +0 -1
  224. package/settings.js.map +0 -1
  225. package/shard-policy.js.map +0 -1
  226. package/shard-policy.test-d.js.map +0 -1
  227. package/share-link-tag.js.map +0 -1
  228. package/share-open-token.js.map +0 -1
  229. package/shared-mint.js.map +0 -1
  230. package/signin-ticket.js.map +0 -1
  231. package/social-msg.js.map +0 -1
  232. package/style-cache-key.js.map +0 -1
  233. package/style.js.map +0 -1
  234. package/text-number.js.map +0 -1
  235. package/text-turn.js.map +0 -1
  236. package/tracking-params.js.map +0 -1
  237. package/turn-variant.js.map +0 -1
  238. package/type-is.js.map +0 -1
  239. package/types.js.map +0 -1
  240. package/version-ordinal.js.map +0 -1
  241. package/vibe-activity.js.map +0 -1
  242. package/vibe-card-events.js.map +0 -1
  243. package/vibe-file-lint.js.map +0 -1
  244. package/vibe-tools.js.map +0 -1
  245. package/vibes-diy-api.js.map +0 -1
  246. package/vibes-diy-serv-ctx.js.map +0 -1
  247. package/vibes-logo-paths.js.map +0 -1
  248. package/vibes-types.js.map +0 -1
  249. package/viewer-api-fetch.js.map +0 -1
  250. package/welcome-msg.js.map +0 -1
  251. package/ws-event-format.js.map +0 -1
@@ -70,6 +70,33 @@ export declare const resSetGroupRoster: import("arktype/internal/variants/object
70
70
  }, {}>;
71
71
  export type ResSetGroupRoster = typeof resSetGroupRoster.infer;
72
72
  export declare function isResSetGroupRoster(value: unknown): value is ResSetGroupRoster;
73
+ export declare const reqStopGroupSponsor: import("arktype/internal/variants/object.ts").ObjectType<{
74
+ type: "vibes.diy.req-stop-group-sponsor";
75
+ auth: {
76
+ type: "clerk" | "device-id" | "guest" | "ucan";
77
+ token: string;
78
+ };
79
+ with?: string | undefined;
80
+ }, {}>;
81
+ export type ReqStopGroupSponsor = typeof reqStopGroupSponsor.infer;
82
+ export declare const stoppedGroupChat: import("arktype/internal/variants/object.ts").ObjectType<{
83
+ group?: string | undefined;
84
+ members: string[];
85
+ }, {}>;
86
+ export type StoppedGroupChat = typeof stoppedGroupChat.infer;
87
+ export declare const resStopGroupSponsor: import("arktype/internal/variants/object.ts").ObjectType<{
88
+ type: "vibes.diy.res-stop-group-sponsor";
89
+ stopped: {
90
+ group?: string | undefined;
91
+ members: string[];
92
+ }[];
93
+ stillSponsoring: {
94
+ group?: string | undefined;
95
+ members: string[];
96
+ }[];
97
+ }, {}>;
98
+ export type ResStopGroupSponsor = typeof resStopGroupSponsor.infer;
99
+ export declare function isResStopGroupSponsor(value: unknown): value is ResStopGroupSponsor;
73
100
  export declare const GROUP_CONFIRM_REASON = "needs-second-member";
74
101
  export interface GroupConfirm {
75
102
  readonly action: "unpublish";
@@ -77,3 +104,9 @@ export interface GroupConfirm {
77
104
  readonly appSlug: string;
78
105
  }
79
106
  export declare function groupConfirmFromReceipt(text: string | undefined): GroupConfirm | undefined;
107
+ export interface GroupCopyToAsker {
108
+ readonly ownerHandle: string;
109
+ readonly appSlug: string;
110
+ readonly remixOf: string;
111
+ }
112
+ export declare function groupCopyFromReceipt(text: string | undefined): GroupCopyToAsker | undefined;
@@ -1,3 +1,4 @@
1
+ import { exception2Result } from "@adviser/cement";
1
2
  import { type } from "arktype";
2
3
  import { dashAuthType } from "./common.js";
3
4
  import { lazyType } from "./lazy-type.js";
@@ -66,6 +67,23 @@ export const resSetGroupRoster = lazyType(() => type({
66
67
  export function isResSetGroupRoster(value) {
67
68
  return resSetGroupRoster.allows(value);
68
69
  }
70
+ export const reqStopGroupSponsor = lazyType(() => type({
71
+ type: "'vibes.diy.req-stop-group-sponsor'",
72
+ auth: dashAuthType,
73
+ "with?": "string",
74
+ }));
75
+ export const stoppedGroupChat = lazyType(() => type({
76
+ "group?": "string",
77
+ members: "string[]",
78
+ }));
79
+ export const resStopGroupSponsor = lazyType(() => type({
80
+ type: "'vibes.diy.res-stop-group-sponsor'",
81
+ stopped: stoppedGroupChat.array(),
82
+ stillSponsoring: stoppedGroupChat.array(),
83
+ }));
84
+ export function isResStopGroupSponsor(value) {
85
+ return resStopGroupSponsor.allows(value);
86
+ }
69
87
  export const GROUP_CONFIRM_REASON = "needs-second-member";
70
88
  const groupConfirmReceipt = lazyType(() => type({
71
89
  reason: `'${GROUP_CONFIRM_REASON}'`,
@@ -86,4 +104,18 @@ export function groupConfirmFromReceipt(text) {
86
104
  return undefined;
87
105
  return { action: r.confirm.action, ownerHandle: r.confirm.ownerHandle, appSlug: r.confirm.appSlug };
88
106
  }
89
- //# sourceMappingURL=group-principal.js.map
107
+ const groupCopyReceipt = lazyType(() => type({
108
+ copiedToAsker: { ownerHandle: "string > 0", appSlug: "string > 0", remixOf: "string > 0" },
109
+ }));
110
+ export function groupCopyFromReceipt(text) {
111
+ if (text === undefined)
112
+ return undefined;
113
+ const rParsed = exception2Result(() => JSON.parse(text));
114
+ if (rParsed.isErr())
115
+ return undefined;
116
+ const r = groupCopyReceipt(rParsed.Ok());
117
+ if (r instanceof type.errors)
118
+ return undefined;
119
+ const c = r.copiedToAsker;
120
+ return { ownerHandle: c.ownerHandle, appSlug: c.appSlug, remixOf: c.remixOf };
121
+ }
@@ -20,4 +20,3 @@ export const ResGuestAppVisitors = lazyType(() => type({
20
20
  export function isResGuestAppVisitors(obj) {
21
21
  return ResGuestAppVisitors.allows(obj);
22
22
  }
23
- //# sourceMappingURL=guest-app-visitors.js.map
@@ -99,4 +99,3 @@ export function readGuestPrincipalToken(token) {
99
99
  const parsed = guestPrincipalClaims(json.Ok());
100
100
  return parsed instanceof type.errors ? undefined : parsed;
101
101
  }
102
- //# sourceMappingURL=guest-principal.js.map
package/guided-remix.js CHANGED
@@ -370,4 +370,3 @@ export function readGuideAnswer(path, status, body) {
370
370
  const waiting = parsed.waiting?.trim().slice(0, GUIDE_ANSWER_CHARS);
371
371
  return Result.Ok({ done: parsed.done, vars, ...(waiting === undefined || waiting === "" ? {} : { waiting }) });
372
372
  }
373
- //# sourceMappingURL=guided-remix.js.map
package/home-feed.js CHANGED
@@ -126,4 +126,3 @@ export const resHandleProfileVibes = lazyType(() => type({
126
126
  export function isResHandleProfileVibes(obj) {
127
127
  return resHandleProfileVibes.allows(obj);
128
128
  }
129
- //# sourceMappingURL=home-feed.js.map
@@ -1,2 +1 @@
1
1
  export const VIBE_PROTOCOL_PARAM = "vibesProto";
2
- //# sourceMappingURL=iframe-src-params.js.map
package/index.d.ts CHANGED
@@ -20,6 +20,7 @@ export * from "./agent-tools.js";
20
20
  export * from "./agent-personalities.js";
21
21
  export * from "./agent-reactions.js";
22
22
  export * from "./agent-picture.js";
23
+ export * from "./notify-picture.js";
23
24
  export * from "./bridge-notes.js";
24
25
  export * from "./shared-mint.js";
25
26
  export * from "./mint-fire.js";
package/index.js CHANGED
@@ -19,6 +19,7 @@ export * from "./agent-tools.js";
19
19
  export * from "./agent-personalities.js";
20
20
  export * from "./agent-reactions.js";
21
21
  export * from "./agent-picture.js";
22
+ export * from "./notify-picture.js";
22
23
  export * from "./bridge-notes.js";
23
24
  export * from "./shared-mint.js";
24
25
  export * from "./mint-fire.js";
@@ -117,4 +118,3 @@ export * from "./reskin-dose.js";
117
118
  export * from "./vibe-card-events.js";
118
119
  export * from "./access-summary.js";
119
120
  export * from "./ws-event-format.js";
120
- //# sourceMappingURL=index.js.map
@@ -37,4 +37,3 @@ export async function verifyInternalSecretMac({ secret, purpose, message, sig })
37
37
  const okLegacy = constantTimeEqual(legacy, sig);
38
38
  return okDerived || okLegacy;
39
39
  }
40
- //# sourceMappingURL=internal-secret-purpose-key.js.map
package/invite-flow.js CHANGED
@@ -235,4 +235,3 @@ export function isEvtInviteGrant(obj) {
235
235
  return evtInviteGrant.allows(obj);
236
236
  }
237
237
  export { ForeignInfo, ClerkClaim };
238
- //# sourceMappingURL=invite-flow.js.map
package/invite-note.js CHANGED
@@ -32,4 +32,3 @@ export function inviteNoteLengthBucket(length) {
32
32
  return "41-100";
33
33
  return "101-140";
34
34
  }
35
- //# sourceMappingURL=invite-note.js.map
package/invite.js CHANGED
@@ -648,4 +648,3 @@ export function isActiveInviteEditor(obj) {
648
648
  export function isActiveInviteViewer(obj) {
649
649
  return ActiveInviteViewer.allows(obj);
650
650
  }
651
- //# sourceMappingURL=invite.js.map
package/lazy-type.js CHANGED
@@ -36,4 +36,3 @@ export function isLazyType(value) {
36
36
  export function resolveLazyType(value) {
37
37
  return isLazyType(value) ? value[RESOLVE]() : value;
38
38
  }
39
- //# sourceMappingURL=lazy-type.js.map
package/log-policy.js CHANGED
@@ -51,4 +51,3 @@ export function logEventIdFloor(epochMs) {
51
51
  export function logRetentionIdFloor(nowMs) {
52
52
  return logEventIdFloor(nowMs - LOG_RETENTION_MS);
53
53
  }
54
- //# sourceMappingURL=log-policy.js.map
package/look-packages.js CHANGED
@@ -152,4 +152,3 @@ export function sourceLookPackage(sources) {
152
152
  }
153
153
  return undefined;
154
154
  }
155
- //# sourceMappingURL=look-packages.js.map
@@ -35,4 +35,3 @@ export async function verifyMailImageToken(token, binding, secret, nowMs) {
35
35
  sig,
36
36
  });
37
37
  }
38
- //# sourceMappingURL=mail-image-token.js.map
package/manifest-item.js CHANGED
@@ -6,4 +6,3 @@ export function isAssetManifestItem(item, isLegacyAsset) {
6
6
  return true;
7
7
  return isLegacyAsset(item.fileName);
8
8
  }
9
- //# sourceMappingURL=manifest-item.js.map
package/members.js CHANGED
@@ -23,4 +23,3 @@ export const resListMembers = lazyType(() => type({
23
23
  export function isResListMembers(obj) {
24
24
  return resListMembers.allows(obj);
25
25
  }
26
- //# sourceMappingURL=members.js.map
package/memberships.js CHANGED
@@ -39,4 +39,3 @@ export function isResHideAppHistory(obj) {
39
39
  export function isResListMemberships(obj) {
40
40
  return resListMemberships.allows(obj);
41
41
  }
42
- //# sourceMappingURL=memberships.js.map
@@ -11,6 +11,10 @@ export declare const LEAD_POINTS: {
11
11
  readonly return: 125;
12
12
  readonly share: 125;
13
13
  readonly shareOpened: 125;
14
+ readonly textTap: 25;
15
+ readonly groupStart: 125;
16
+ readonly groupActive: 250;
17
+ readonly groupAgain: 125;
14
18
  };
15
19
  export declare const SHARE_OPENED_CAP = 10;
16
20
  export declare function promptLeadPoints(index: number): number | undefined;
package/meta-capi-core.js CHANGED
@@ -11,6 +11,10 @@ export const LEAD_POINTS = {
11
11
  return: 125,
12
12
  share: 125,
13
13
  shareOpened: 125,
14
+ textTap: 25,
15
+ groupStart: 125,
16
+ groupActive: 250,
17
+ groupAgain: 125,
14
18
  };
15
19
  export const SHARE_OPENED_CAP = 10;
16
20
  export function promptLeadPoints(index) {
@@ -87,4 +91,3 @@ export async function postCapiEvent(pixelId, payload, eventLabel) {
87
91
  export function capiFbc(fbclid, clickTimeMs) {
88
92
  return `fb.1.${clickTimeMs}.${fbclid}`;
89
93
  }
90
- //# sourceMappingURL=meta-capi-core.js.map
@@ -11,4 +11,3 @@ export const evtMetaClickId = lazyType(() => type({
11
11
  export function isEvtMetaClickId(obj) {
12
12
  return evtMetaClickId.allows(obj);
13
13
  }
14
- //# sourceMappingURL=meta-click-id-msg.js.map
package/mint-fire.js CHANGED
@@ -49,4 +49,3 @@ export const evtFireBuild = lazyType(() => type({
49
49
  export function isEvtFireBuild(obj) {
50
50
  return evtFireBuild.allows(obj);
51
51
  }
52
- //# sourceMappingURL=mint-fire.js.map
package/moderation.js CHANGED
@@ -124,4 +124,3 @@ export function moderationRefusalText(err) {
124
124
  }
125
125
  return undefined;
126
126
  }
127
- //# sourceMappingURL=moderation.js.map
@@ -19,4 +19,3 @@ export const resNatureRewriteSuggestion = lazyType(() => type({
19
19
  export function isResNatureRewriteSuggestion(obj) {
20
20
  return resNatureRewriteSuggestion.allows(obj);
21
21
  }
22
- //# sourceMappingURL=nature-rewrite-suggestion.js.map
@@ -22,4 +22,3 @@ export const resNotificationsSummary = lazyType(() => type({
22
22
  export function isResNotificationsSummary(obj) {
23
23
  return resNotificationsSummary.allows(obj);
24
24
  }
25
- //# sourceMappingURL=notifications-summary.js.map
package/notifications.js CHANGED
@@ -296,4 +296,3 @@ export function buildNotificationCopy(input) {
296
296
  }
297
297
  return { title: app, body: `Build ${input.version} ${verb}.` };
298
298
  }
299
- //# sourceMappingURL=notifications.js.map
@@ -0,0 +1,23 @@
1
+ export declare const NOTIFY_PICTURE_MAX_BYTES: number;
2
+ export declare const NOTIFY_PICTURE_TYPES: readonly string[];
3
+ export declare const notifyPicture: import("arktype/internal/variants/object.ts").ObjectType<{
4
+ url: string;
5
+ mimeType: string;
6
+ name: string;
7
+ size: number;
8
+ ownerHandle: string;
9
+ appSlug: string;
10
+ dbName: string;
11
+ docId: string;
12
+ fileKey: string;
13
+ uploadId: string;
14
+ }, {}>;
15
+ export type NotifyPicture = typeof notifyPicture.infer;
16
+ export declare function notifyPictureOf(targetRef: unknown): NotifyPicture | undefined;
17
+ export declare const phoneAlertPicture: import("arktype/internal/variants/object.ts").ObjectType<{
18
+ url: string;
19
+ mimeType: string;
20
+ name: string;
21
+ size: number;
22
+ }, {}>;
23
+ export type PhoneAlertPicture = typeof phoneAlertPicture.infer;
@@ -0,0 +1,35 @@
1
+ import { type } from "arktype";
2
+ import { lazyType } from "./lazy-type.js";
3
+ export const NOTIFY_PICTURE_MAX_BYTES = 5 * 1024 * 1024;
4
+ export const NOTIFY_PICTURE_TYPES = ["image/png", "image/jpeg", "image/gif", "image/webp"];
5
+ export const notifyPicture = lazyType(() => type({
6
+ url: /^https?:\/\//,
7
+ mimeType: "string > 0",
8
+ name: "string > 0",
9
+ size: "number >= 0",
10
+ ownerHandle: "string > 0",
11
+ appSlug: "string > 0",
12
+ dbName: "string > 0",
13
+ docId: "string > 0",
14
+ fileKey: "string > 0",
15
+ uploadId: "string > 0",
16
+ }));
17
+ export function notifyPictureOf(targetRef) {
18
+ if (targetRef === null || typeof targetRef !== "object")
19
+ return undefined;
20
+ const picture = targetRef.picture;
21
+ if (picture === undefined)
22
+ return undefined;
23
+ const parsed = notifyPicture(picture);
24
+ if (parsed instanceof type.errors)
25
+ return undefined;
26
+ if (!NOTIFY_PICTURE_TYPES.includes(parsed.mimeType) || parsed.size > NOTIFY_PICTURE_MAX_BYTES)
27
+ return undefined;
28
+ return parsed;
29
+ }
30
+ export const phoneAlertPicture = lazyType(() => type({
31
+ url: /^https?:\/\//,
32
+ mimeType: "string > 0",
33
+ name: "string > 0",
34
+ size: "number >= 0",
35
+ }));
@@ -110,4 +110,3 @@ export function markGoldOptionLines(text, options) {
110
110
  export function isChipSource(source) {
111
111
  return source === "suggestion" || source === "gold";
112
112
  }
113
- //# sourceMappingURL=offered-options.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vibes.diy/api-types",
3
- "version": "14.3.325",
4
- "license": "Apache-2.0",
3
+ "version": "14.3.326",
4
+ "license": "SEE LICENSE IN LICENSE.md",
5
5
  "type": "module",
6
6
  "main": "./index.js",
7
7
  "exports": {
@@ -25,9 +25,9 @@
25
25
  "dependencies": {
26
26
  "@adviser/cement": "~0.5.37",
27
27
  "@cloudflare/workers-types": "~5.20261101.1",
28
- "@vibes.diy/call-ai-v2": "14.3.325",
29
- "@vibes.diy/identity": "14.3.325",
30
- "@vibes.diy/vibe-types": "14.3.325",
28
+ "@vibes.diy/call-ai-v2": "14.3.326",
29
+ "@vibes.diy/identity": "14.3.326",
30
+ "@vibes.diy/vibe-types": "14.3.326",
31
31
  "arktype": "~2.2.9"
32
32
  },
33
33
  "repository": {
package/parse-http-uri.js CHANGED
@@ -23,4 +23,3 @@ function trimC0AndSpace(raw) {
23
23
  export function uriSearchParam(uri, key) {
24
24
  return uri.hasParam(key) ? (uri.getParam(key) ?? "") : null;
25
25
  }
26
- //# sourceMappingURL=parse-http-uri.js.map
@@ -91,4 +91,3 @@ export const resGetPhoneLinkInvite = lazyType(() => type({
91
91
  export function isResGetPhoneLinkInvite(value) {
92
92
  return resGetPhoneLinkInvite.allows(value);
93
93
  }
94
- //# sourceMappingURL=phone-link-invite.js.map
package/phone-link.d.ts CHANGED
@@ -101,6 +101,18 @@ export type ReqReadPhoneAlerts = typeof reqReadPhoneAlerts.infer;
101
101
  export declare const phoneAlert: import("arktype/internal/variants/object.ts").ObjectType<{
102
102
  id: string;
103
103
  text: string;
104
+ picture?: {
105
+ url: string;
106
+ mimeType: string;
107
+ name: string;
108
+ size: number;
109
+ } | undefined;
110
+ follow?: {
111
+ ownerHandle: string;
112
+ appSlug: string;
113
+ replies?: true | undefined;
114
+ claim?: string | undefined;
115
+ } | undefined;
104
116
  }, {}>;
105
117
  export type PhoneAlert = typeof phoneAlert.infer;
106
118
  export declare const resReadPhoneAlerts: import("arktype/internal/variants/object.ts").ObjectType<{
@@ -109,6 +121,18 @@ export declare const resReadPhoneAlerts: import("arktype/internal/variants/objec
109
121
  alerts: {
110
122
  id: string;
111
123
  text: string;
124
+ picture?: {
125
+ url: string;
126
+ mimeType: string;
127
+ name: string;
128
+ size: number;
129
+ } | undefined;
130
+ follow?: {
131
+ ownerHandle: string;
132
+ appSlug: string;
133
+ replies?: true | undefined;
134
+ claim?: string | undefined;
135
+ } | undefined;
112
136
  }[];
113
137
  more: boolean;
114
138
  }, {}>;
package/phone-link.js CHANGED
@@ -2,6 +2,7 @@ import { type } from "arktype";
2
2
  import { dashAuthType } from "./common.js";
3
3
  import { lazyType } from "./lazy-type.js";
4
4
  import { phoneGuestClaimed } from "./phone-link-invite.js";
5
+ import { phoneAlertPicture } from "./notify-picture.js";
5
6
  import { isPhoneNumberAddress, textSmsHref } from "./text-number.js";
6
7
  export const PHONE_LINK_CODE_ALPHABET = "ABCDEFGHJKMNPQRSTUVWXYZ23456789";
7
8
  export const PHONE_LINK_CODE_LENGTH = 6;
@@ -95,6 +96,13 @@ export const reqReadPhoneAlerts = lazyType(() => type({
95
96
  export const phoneAlert = lazyType(() => type({
96
97
  id: "string > 0",
97
98
  text: "string > 0",
99
+ "picture?": phoneAlertPicture,
100
+ "follow?": type({
101
+ ownerHandle: "string > 0",
102
+ appSlug: "string > 0",
103
+ "replies?": "true",
104
+ "claim?": "string > 0",
105
+ }),
98
106
  }));
99
107
  export const resReadPhoneAlerts = lazyType(() => type({
100
108
  type: "'vibes.diy.res-read-phone-alerts'",
@@ -183,4 +191,3 @@ export const resSetVibeLinkPause = lazyType(() => type({
183
191
  export function isResSetVibeLinkPause(value) {
184
192
  return resSetVibeLinkPause.allows(value);
185
193
  }
186
- //# sourceMappingURL=phone-link.js.map
package/places.js CHANGED
@@ -87,4 +87,3 @@ export const resPlacesMapMode = lazyType(() => type({
87
87
  export function isResPlacesMapMode(obj) {
88
88
  return resPlacesMapMode.allows(obj);
89
89
  }
90
- //# sourceMappingURL=places.js.map
@@ -797,4 +797,3 @@ export const COMPOSER_PLACEHOLDERS = {
797
797
  "Build an app from the attached file.",
798
798
  "Build an app from the attached files.",
799
799
  ].forEach(prefilled);
800
- //# sourceMappingURL=prefilled-prompts.js.map
@@ -17,4 +17,3 @@ export function maskPromoRewardId(rewardId) {
17
17
  return `…(${rewardId.length})`;
18
18
  return `${rewardId.slice(0, 2)}…(${rewardId.length})`;
19
19
  }
20
- //# sourceMappingURL=promo-redeemed-msg.js.map
package/prompt.js CHANGED
@@ -324,4 +324,3 @@ export function isPromptBlockEnd(msg, streamId) {
324
324
  return false;
325
325
  return !streamId || msg.streamId === streamId;
326
326
  }
327
- //# sourceMappingURL=prompt.js.map
package/queue-schedule.js CHANGED
@@ -10,4 +10,3 @@ export function queueRetryHorizonMs() {
10
10
  }
11
11
  return seconds * 1000;
12
12
  }
13
- //# sourceMappingURL=queue-schedule.js.map
@@ -24,4 +24,3 @@ export function redactEmailLink(raw) {
24
24
  export function redactLinksInText(text) {
25
25
  return text.replace(/https?:\/\/[^\s<>"')\]]+/g, (m) => redactEmailLink(m) ?? "[link]");
26
26
  }
27
- //# sourceMappingURL=redact-email-link.js.map
package/related-vibes.js CHANGED
@@ -51,4 +51,3 @@ export const resRelatedVibes = lazyType(() => type({
51
51
  export function isResRelatedVibes(obj) {
52
52
  return resRelatedVibes.allows(obj);
53
53
  }
54
- //# sourceMappingURL=related-vibes.js.map
package/report.js CHANGED
@@ -523,4 +523,3 @@ export const resReportActivity = lazyType(() => type({
523
523
  export function isResReportActivity(obj) {
524
524
  return resReportActivity.allows(obj);
525
525
  }
526
- //# sourceMappingURL=report.js.map
package/request-access.js CHANGED
@@ -264,4 +264,3 @@ export const ResInviteHandleError = lazyType(() => type({
264
264
  export function isResInviteHandleError(obj) {
265
265
  return ResInviteHandleError.allows(obj);
266
266
  }
267
- //# sourceMappingURL=request-access.js.map
package/research.js CHANGED
@@ -275,4 +275,3 @@ export function buildUrlResearchJob(input) {
275
275
  model: input.model,
276
276
  };
277
277
  }
278
- //# sourceMappingURL=research.js.map
package/reskin-dose.js CHANGED
@@ -26,4 +26,3 @@ export function pickReskinDose(rnd, asked, picked) {
26
26
  return { dose: picked, asked: false, from: "shell" };
27
27
  return { ...drawReskinDose(rnd, false), from: "draw" };
28
28
  }
29
- //# sourceMappingURL=reskin-dose.js.map
package/retention-msg.js CHANGED
@@ -15,4 +15,3 @@ export const RETENTION_PREVIEW_DOMAIN = "@vibes.diy";
15
15
  export function isRetentionPreviewRecipientAllowed(arg) {
16
16
  return arg.email.trim().toLowerCase().endsWith(RETENTION_PREVIEW_DOMAIN) || arg.targetUserId === arg.requestedBy;
17
17
  }
18
- //# sourceMappingURL=retention-msg.js.map
@@ -41,4 +41,3 @@ export const RETENTION_DRIP_STEPS = [
41
41
  export function findRetentionStep(id) {
42
42
  return RETENTION_DRIP_STEPS.find((s) => s.id === id);
43
43
  }
44
- //# sourceMappingURL=retention-steps.js.map
package/screen-shotter.js CHANGED
@@ -26,4 +26,3 @@ export function isScreenshotModeSearch(search) {
26
26
  }
27
27
  export const SCREENSHOT_CAPTURE_PARAM = "sc";
28
28
  export const CAPTURE_DIAG_GLOBAL_KEY = "__vibesCaptureDiag";
29
- //# sourceMappingURL=screen-shotter.js.map
@@ -33,4 +33,3 @@ export async function verifyScreenshotCaptureToken(token, binding, secret, nowMs
33
33
  sig,
34
34
  });
35
35
  }
36
- //# sourceMappingURL=screenshot-capture-token.js.map
package/settings.js CHANGED
@@ -828,4 +828,3 @@ export const resTermsAck = lazyType(() => type({
828
828
  export function isResTermsAck(obj) {
829
829
  return resTermsAck.allows(obj);
830
830
  }
831
- //# sourceMappingURL=settings.js.map
package/shard-policy.d.ts CHANGED
@@ -36,6 +36,7 @@ export declare const SHARD_POLICY: {
36
36
  readonly "vibes.diy.req-mint-group-principal": readonly ["codegen", "vibe", "shared"];
37
37
  readonly "vibes.diy.req-set-group-payer": readonly ["codegen", "vibe", "shared"];
38
38
  readonly "vibes.diy.req-set-group-roster": readonly ["codegen", "vibe", "shared"];
39
+ readonly "vibes.diy.req-stop-group-sponsor": readonly ["codegen", "vibe", "shared"];
39
40
  readonly "vibes.diy.req-get-phone-link-status": readonly ["codegen", "vibe", "shared"];
40
41
  readonly "vibes.diy.req-get-text-onboarding": readonly ["codegen", "vibe", "shared"];
41
42
  readonly "vibes.diy.req-get-text-number": readonly ["codegen", "vibe", "shared"];
package/shard-policy.js CHANGED
@@ -34,6 +34,7 @@ export const SHARD_POLICY = {
34
34
  "vibes.diy.req-mint-group-principal": ALL_SHARDS,
35
35
  "vibes.diy.req-set-group-payer": ALL_SHARDS,
36
36
  "vibes.diy.req-set-group-roster": ALL_SHARDS,
37
+ "vibes.diy.req-stop-group-sponsor": ALL_SHARDS,
37
38
  "vibes.diy.req-get-phone-link-status": ALL_SHARDS,
38
39
  "vibes.diy.req-get-text-onboarding": ALL_SHARDS,
39
40
  "vibes.diy.req-get-text-number": ALL_SHARDS,
@@ -207,4 +208,3 @@ export function shardsForReq(reqType, req) {
207
208
  return [];
208
209
  return typeof entry === "function" ? entry(req) : entry;
209
210
  }
210
- //# sourceMappingURL=shard-policy.js.map
@@ -22,4 +22,3 @@ vibe.openChat({ mode: "img" });
22
22
  vibe.openChat({ mode: "codegen" });
23
23
  codegen.openChat({ mode: "codegen" });
24
24
  codegen.openChat({ mode: "img" });
25
- //# sourceMappingURL=shard-policy.test-d.js.map
package/share-link-tag.js CHANGED
@@ -3,4 +3,3 @@ export const SHARE_UTM_SOURCE = "share";
3
3
  export function shareTaggedUrl(url, medium) {
4
4
  return BuildURI.from(url).setParam("utm_source", SHARE_UTM_SOURCE).setParam("utm_medium", medium).toString();
5
5
  }
6
- //# sourceMappingURL=share-link-tag.js.map
@@ -37,4 +37,3 @@ export async function verifyShareOpenToken(token, binding, secret, nowMs) {
37
37
  sig: token.slice(dot + 1),
38
38
  });
39
39
  }
40
- //# sourceMappingURL=share-open-token.js.map
package/shared-mint.js CHANGED
@@ -34,4 +34,3 @@ export function isResSharedMint(obj) {
34
34
  return resSharedMint.allows(obj);
35
35
  }
36
36
  export const SHARED_MINT_OVERLOADED_CODE = "shared-mint-overloaded";
37
- //# sourceMappingURL=shared-mint.js.map
package/signin-ticket.js CHANGED
@@ -13,4 +13,3 @@ export const ResMintSigninTicket = lazyType(() => type({
13
13
  export function isResMintSigninTicket(obj) {
14
14
  return ResMintSigninTicket.allows(obj);
15
15
  }
16
- //# sourceMappingURL=signin-ticket.js.map
package/social-msg.js CHANGED
@@ -323,4 +323,3 @@ export const evtSocialInvite = lazyType(() => type({
323
323
  export function isEvtSocialInvite(obj) {
324
324
  return evtSocialInvite.allows(obj);
325
325
  }
326
- //# sourceMappingURL=social-msg.js.map
@@ -29,4 +29,3 @@ export function isStyleDraftPending(draft, published) {
29
29
  const seed = (s) => ({ palette: s.palette, font: s.font, ornament: s.ornament });
30
30
  return canonicalJson(seed(draft)) !== canonicalJson(published === undefined ? null : seed(published));
31
31
  }
32
- //# sourceMappingURL=style-cache-key.js.map
package/style.js CHANGED
@@ -69,4 +69,3 @@ export const DraftStyle = lazyType(() => type({
69
69
  export function isDraftStyle(obj) {
70
70
  return DraftStyle.allows(obj);
71
71
  }
72
- //# sourceMappingURL=style.js.map
package/text-number.js CHANGED
@@ -40,4 +40,3 @@ export const resGetTextNumber = lazyType(() => type({
40
40
  export function isResGetTextNumber(value) {
41
41
  return !(resGetTextNumber(value) instanceof type.errors);
42
42
  }
43
- //# sourceMappingURL=text-number.js.map
package/text-turn.js CHANGED
@@ -23,4 +23,3 @@ export function isTextTurnLine(obj) {
23
23
  return !(textTurnLine(obj) instanceof type.errors);
24
24
  }
25
25
  export const TEXT_TURN_DENIED_STATUS = 503;
26
- //# sourceMappingURL=text-turn.js.map