@vibes.diy/api-types 14.3.325 → 14.3.327

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 (255) 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 +5 -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 +2 -0
  60. package/index.js +2 -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/mac-bridge-wire.d.ts +87 -0
  69. package/mac-bridge-wire.js +56 -0
  70. package/mail-image-token.js +0 -1
  71. package/manifest-item.js +0 -1
  72. package/members.js +0 -1
  73. package/memberships.js +0 -1
  74. package/meta-capi-core.d.ts +4 -0
  75. package/meta-capi-core.js +4 -1
  76. package/meta-click-id-msg.js +0 -1
  77. package/mint-fire.js +0 -1
  78. package/moderation.d.ts +81 -4
  79. package/moderation.js +48 -3
  80. package/nature-rewrite-suggestion.js +0 -1
  81. package/notifications-summary.js +0 -1
  82. package/notifications.js +0 -1
  83. package/notify-picture.d.ts +23 -0
  84. package/notify-picture.js +35 -0
  85. package/offered-options.js +0 -1
  86. package/package.json +5 -5
  87. package/parse-http-uri.js +0 -1
  88. package/phone-link-invite.js +0 -1
  89. package/phone-link.d.ts +24 -0
  90. package/phone-link.js +8 -1
  91. package/places.js +0 -1
  92. package/prefilled-prompts.js +0 -1
  93. package/promo-redeemed-msg.js +0 -1
  94. package/prompt.js +0 -1
  95. package/queue-schedule.js +0 -1
  96. package/redact-email-link.js +0 -1
  97. package/related-vibes.js +0 -1
  98. package/report.js +0 -1
  99. package/request-access.js +0 -1
  100. package/research.js +0 -1
  101. package/reskin-dose.js +0 -1
  102. package/retention-msg.js +0 -1
  103. package/retention-steps.js +0 -1
  104. package/screen-shotter.js +0 -1
  105. package/screenshot-capture-token.js +0 -1
  106. package/settings.js +0 -1
  107. package/shard-policy.d.ts +1 -0
  108. package/shard-policy.js +1 -1
  109. package/shard-policy.test-d.js +0 -1
  110. package/share-link-tag.js +0 -1
  111. package/share-open-token.js +0 -1
  112. package/shared-mint.js +0 -1
  113. package/signin-ticket.js +0 -1
  114. package/social-msg.js +0 -1
  115. package/style-cache-key.js +0 -1
  116. package/style.js +0 -1
  117. package/text-number.js +0 -1
  118. package/text-turn.d.ts +19 -0
  119. package/text-turn.js +6 -2
  120. package/tracking-params.js +0 -1
  121. package/turn-variant.js +0 -1
  122. package/type-is.js +0 -1
  123. package/types.js +0 -1
  124. package/version-ordinal.js +0 -1
  125. package/vibe-activity.js +0 -1
  126. package/vibe-card-events.js +0 -1
  127. package/vibe-file-lint.js +0 -1
  128. package/vibe-tools.js +0 -1
  129. package/vibes-diy-api.d.ts +2 -1
  130. package/vibes-diy-api.js +0 -1
  131. package/vibes-diy-serv-ctx.js +0 -1
  132. package/vibes-logo-paths.js +0 -1
  133. package/vibes-types.js +0 -1
  134. package/viewer-api-fetch.js +0 -1
  135. package/welcome-msg.js +0 -1
  136. package/ws-event-format.js +0 -1
  137. package/access-fn-limit-msg.js.map +0 -1
  138. package/access-function.js.map +0 -1
  139. package/access-summary.js.map +0 -1
  140. package/agent-chat.js.map +0 -1
  141. package/agent-connector-note.js.map +0 -1
  142. package/agent-discussion-entry.js.map +0 -1
  143. package/agent-evidence-line.js.map +0 -1
  144. package/agent-file-edit.js.map +0 -1
  145. package/agent-fold.js.map +0 -1
  146. package/agent-personalities.js.map +0 -1
  147. package/agent-picture.js.map +0 -1
  148. package/agent-reactions.js.map +0 -1
  149. package/agent-reply-fold.js.map +0 -1
  150. package/agent-tools.js.map +0 -1
  151. package/app-clip.js.map +0 -1
  152. package/app-documents.js.map +0 -1
  153. package/app-name.js.map +0 -1
  154. package/app.js.map +0 -1
  155. package/asset-extensions.js.map +0 -1
  156. package/asset-safety.js.map +0 -1
  157. package/asset.js.map +0 -1
  158. package/audience-arms-msg.js.map +0 -1
  159. package/auth.js.map +0 -1
  160. package/billing-msg.js.map +0 -1
  161. package/bridge-notes.js.map +0 -1
  162. package/build-ledger.js.map +0 -1
  163. package/cached-suggestion.js.map +0 -1
  164. package/capi-conversion-msg.js.map +0 -1
  165. package/capi-share-msg.js.map +0 -1
  166. package/cf-env.js.map +0 -1
  167. package/chat-chips.js.map +0 -1
  168. package/chat-history.js.map +0 -1
  169. package/chat-section-pack.js.map +0 -1
  170. package/chat.js.map +0 -1
  171. package/checkout-unfinished-msg.js.map +0 -1
  172. package/cli-cert-pickup.js.map +0 -1
  173. package/common.js.map +0 -1
  174. package/credits-copy.js.map +0 -1
  175. package/crm-fact-msg.js.map +0 -1
  176. package/db-acls.js.map +0 -1
  177. package/developer-grant.js.map +0 -1
  178. package/direct-channel.js.map +0 -1
  179. package/duration.js.map +0 -1
  180. package/email-unsubscribe.js.map +0 -1
  181. package/embed-param.js.map +0 -1
  182. package/geo.js.map +0 -1
  183. package/group-chat-settings.js.map +0 -1
  184. package/group-principal.js.map +0 -1
  185. package/guest-app-visitors.js.map +0 -1
  186. package/guest-principal.js.map +0 -1
  187. package/guided-remix.js.map +0 -1
  188. package/home-feed.js.map +0 -1
  189. package/iframe-src-params.js.map +0 -1
  190. package/index.js.map +0 -1
  191. package/internal-secret-purpose-key.js.map +0 -1
  192. package/invite-flow.js.map +0 -1
  193. package/invite-note.js.map +0 -1
  194. package/invite.js.map +0 -1
  195. package/lazy-type.js.map +0 -1
  196. package/log-policy.js.map +0 -1
  197. package/look-packages.js.map +0 -1
  198. package/mail-image-token.js.map +0 -1
  199. package/manifest-item.js.map +0 -1
  200. package/members.js.map +0 -1
  201. package/memberships.js.map +0 -1
  202. package/meta-capi-core.js.map +0 -1
  203. package/meta-click-id-msg.js.map +0 -1
  204. package/mint-fire.js.map +0 -1
  205. package/moderation.js.map +0 -1
  206. package/nature-rewrite-suggestion.js.map +0 -1
  207. package/notifications-summary.js.map +0 -1
  208. package/notifications.js.map +0 -1
  209. package/offered-options.js.map +0 -1
  210. package/parse-http-uri.js.map +0 -1
  211. package/phone-link-invite.js.map +0 -1
  212. package/phone-link.js.map +0 -1
  213. package/places.js.map +0 -1
  214. package/prefilled-prompts.js.map +0 -1
  215. package/promo-redeemed-msg.js.map +0 -1
  216. package/prompt.js.map +0 -1
  217. package/queue-schedule.js.map +0 -1
  218. package/redact-email-link.js.map +0 -1
  219. package/related-vibes.js.map +0 -1
  220. package/report.js.map +0 -1
  221. package/request-access.js.map +0 -1
  222. package/research.js.map +0 -1
  223. package/reskin-dose.js.map +0 -1
  224. package/retention-msg.js.map +0 -1
  225. package/retention-steps.js.map +0 -1
  226. package/screen-shotter.js.map +0 -1
  227. package/screenshot-capture-token.js.map +0 -1
  228. package/settings.js.map +0 -1
  229. package/shard-policy.js.map +0 -1
  230. package/shard-policy.test-d.js.map +0 -1
  231. package/share-link-tag.js.map +0 -1
  232. package/share-open-token.js.map +0 -1
  233. package/shared-mint.js.map +0 -1
  234. package/signin-ticket.js.map +0 -1
  235. package/social-msg.js.map +0 -1
  236. package/style-cache-key.js.map +0 -1
  237. package/style.js.map +0 -1
  238. package/text-number.js.map +0 -1
  239. package/text-turn.js.map +0 -1
  240. package/tracking-params.js.map +0 -1
  241. package/turn-variant.js.map +0 -1
  242. package/type-is.js.map +0 -1
  243. package/types.js.map +0 -1
  244. package/version-ordinal.js.map +0 -1
  245. package/vibe-activity.js.map +0 -1
  246. package/vibe-card-events.js.map +0 -1
  247. package/vibe-file-lint.js.map +0 -1
  248. package/vibe-tools.js.map +0 -1
  249. package/vibes-diy-api.js.map +0 -1
  250. package/vibes-diy-serv-ctx.js.map +0 -1
  251. package/vibes-logo-paths.js.map +0 -1
  252. package/vibes-types.js.map +0 -1
  253. package/viewer-api-fetch.js.map +0 -1
  254. package/welcome-msg.js.map +0 -1
  255. 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
@@ -14,12 +14,14 @@ export * from "./agent-chat.js";
14
14
  export * from "./agent-fold.js";
15
15
  export * from "./agent-reply-fold.js";
16
16
  export * from "./text-turn.js";
17
+ export * from "./mac-bridge-wire.js";
17
18
  export * from "./guest-principal.js";
18
19
  export * from "./chat-chips.js";
19
20
  export * from "./agent-tools.js";
20
21
  export * from "./agent-personalities.js";
21
22
  export * from "./agent-reactions.js";
22
23
  export * from "./agent-picture.js";
24
+ export * from "./notify-picture.js";
23
25
  export * from "./bridge-notes.js";
24
26
  export * from "./shared-mint.js";
25
27
  export * from "./mint-fire.js";
package/index.js CHANGED
@@ -13,12 +13,14 @@ export * from "./agent-chat.js";
13
13
  export * from "./agent-fold.js";
14
14
  export * from "./agent-reply-fold.js";
15
15
  export * from "./text-turn.js";
16
+ export * from "./mac-bridge-wire.js";
16
17
  export * from "./guest-principal.js";
17
18
  export * from "./chat-chips.js";
18
19
  export * from "./agent-tools.js";
19
20
  export * from "./agent-personalities.js";
20
21
  export * from "./agent-reactions.js";
21
22
  export * from "./agent-picture.js";
23
+ export * from "./notify-picture.js";
22
24
  export * from "./bridge-notes.js";
23
25
  export * from "./shared-mint.js";
24
26
  export * from "./mint-fire.js";
@@ -117,4 +119,3 @@ export * from "./reskin-dose.js";
117
119
  export * from "./vibe-card-events.js";
118
120
  export * from "./access-summary.js";
119
121
  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
@@ -0,0 +1,87 @@
1
+ export declare const MAC_BRIDGE_VERBS: readonly ["sendText", "sendDirect", "sendAttachment", "fetchPhoto", "discardPhoto", "participants", "messagesSince", "react", "markRead", "contactsEnsure", "metric"];
2
+ export type MacBridgeVerb = (typeof MAC_BRIDGE_VERBS)[number];
3
+ export declare const MAC_BRIDGE_ONE_WAY: ReadonlySet<MacBridgeVerb>;
4
+ export declare const MAC_BRIDGE_WIRE_VERSION = 1;
5
+ export declare const macBridgeHello: import("arktype/internal/variants/object.ts").ObjectType<{
6
+ t: "hello";
7
+ version: number;
8
+ caps: string[];
9
+ lastSeenAt: number;
10
+ }, {}>;
11
+ export type MacBridgeHello = typeof macBridgeHello.infer;
12
+ export declare const macBridgeEvent: import("arktype/internal/variants/object.ts").ObjectType<{
13
+ t: "event";
14
+ id: string;
15
+ event: {
16
+ [x: string]: unknown;
17
+ kind: string;
18
+ };
19
+ arrivedAt: number;
20
+ }, {}>;
21
+ export type MacBridgeEvent = typeof macBridgeEvent.infer;
22
+ export declare const macBridgeResult: import("arktype/internal/variants/object.ts").ObjectType<{
23
+ t: "result";
24
+ id: string;
25
+ ok: true;
26
+ value?: unknown;
27
+ } | {
28
+ t: "result";
29
+ id: string;
30
+ ok: false;
31
+ error: string;
32
+ }, {}>;
33
+ export type MacBridgeResult = typeof macBridgeResult.infer;
34
+ export declare const macBridgeUp: import("arktype/internal/variants/object.ts").ObjectType<{
35
+ t: "hello";
36
+ version: number;
37
+ caps: string[];
38
+ lastSeenAt: number;
39
+ } | {
40
+ t: "event";
41
+ id: string;
42
+ event: {
43
+ [x: string]: unknown;
44
+ kind: string;
45
+ };
46
+ arrivedAt: number;
47
+ } | {
48
+ t: "result";
49
+ id: string;
50
+ ok: true;
51
+ value?: unknown;
52
+ } | {
53
+ t: "result";
54
+ id: string;
55
+ ok: false;
56
+ error: string;
57
+ }, {}>;
58
+ export type MacBridgeUp = typeof macBridgeUp.infer;
59
+ export declare function parseMacBridgeUp(obj: unknown): MacBridgeUp | undefined;
60
+ export declare const macBridgeCall: import("arktype/internal/variants/object.ts").ObjectType<{
61
+ t: "call";
62
+ id: string;
63
+ key: string;
64
+ verb: "contactsEnsure" | "discardPhoto" | "fetchPhoto" | "markRead" | "messagesSince" | "metric" | "participants" | "react" | "sendAttachment" | "sendDirect" | "sendText";
65
+ args: unknown;
66
+ }, {}>;
67
+ export type MacBridgeCall = typeof macBridgeCall.infer;
68
+ export declare const macBridgeAck: import("arktype/internal/variants/object.ts").ObjectType<{
69
+ t: "ack";
70
+ id: string;
71
+ }, {}>;
72
+ export type MacBridgeAck = typeof macBridgeAck.infer;
73
+ export declare const macBridgeDown: import("arktype/internal/variants/object.ts").ObjectType<{
74
+ t: "call";
75
+ id: string;
76
+ key: string;
77
+ verb: "contactsEnsure" | "discardPhoto" | "fetchPhoto" | "markRead" | "messagesSince" | "metric" | "participants" | "react" | "sendAttachment" | "sendDirect" | "sendText";
78
+ args: unknown;
79
+ } | {
80
+ t: "ack";
81
+ id: string;
82
+ }, {}>;
83
+ export type MacBridgeDown = typeof macBridgeDown.infer;
84
+ export declare function parseMacBridgeDown(obj: unknown): MacBridgeDown | undefined;
85
+ export declare const MAC_BRIDGE_BLOB_PATH = "/text-lane/mac/blob/";
86
+ export declare const MAC_BRIDGE_STATE_PATH = "/text-lane/mac/state";
87
+ export declare const MAC_BRIDGE_SOCKET_PATH = "/text-lane/mac";
@@ -0,0 +1,56 @@
1
+ import { type } from "arktype";
2
+ import { lazyType } from "./lazy-type.js";
3
+ export const MAC_BRIDGE_VERBS = [
4
+ "sendText",
5
+ "sendDirect",
6
+ "sendAttachment",
7
+ "fetchPhoto",
8
+ "discardPhoto",
9
+ "participants",
10
+ "messagesSince",
11
+ "react",
12
+ "markRead",
13
+ "contactsEnsure",
14
+ "metric",
15
+ ];
16
+ export const MAC_BRIDGE_ONE_WAY = new Set(["metric", "discardPhoto"]);
17
+ export const MAC_BRIDGE_WIRE_VERSION = 1;
18
+ export const macBridgeHello = lazyType(() => type({
19
+ t: "'hello'",
20
+ version: "number",
21
+ caps: "string[]",
22
+ lastSeenAt: "number",
23
+ }));
24
+ export const macBridgeEvent = lazyType(() => type({
25
+ t: "'event'",
26
+ id: "string > 0",
27
+ event: { kind: "string", "[string]": "unknown" },
28
+ arrivedAt: "number",
29
+ }));
30
+ export const macBridgeResult = lazyType(() => type({ t: "'result'", id: "string > 0", ok: "true", "value?": "unknown" }).or({
31
+ t: "'result'",
32
+ id: "string > 0",
33
+ ok: "false",
34
+ error: "string",
35
+ }));
36
+ export const macBridgeUp = lazyType(() => macBridgeHello.or(macBridgeEvent).or(macBridgeResult));
37
+ export function parseMacBridgeUp(obj) {
38
+ const r = macBridgeUp(obj);
39
+ return r instanceof type.errors ? undefined : r;
40
+ }
41
+ export const macBridgeCall = lazyType(() => type({
42
+ t: "'call'",
43
+ id: "string > 0",
44
+ key: "string > 0",
45
+ verb: type.enumerated(...MAC_BRIDGE_VERBS),
46
+ args: "unknown",
47
+ }));
48
+ export const macBridgeAck = lazyType(() => type({ t: "'ack'", id: "string > 0" }));
49
+ export const macBridgeDown = lazyType(() => macBridgeCall.or(macBridgeAck));
50
+ export function parseMacBridgeDown(obj) {
51
+ const r = macBridgeDown(obj);
52
+ return r instanceof type.errors ? undefined : r;
53
+ }
54
+ export const MAC_BRIDGE_BLOB_PATH = "/text-lane/mac/blob/";
55
+ export const MAC_BRIDGE_STATE_PATH = "/text-lane/mac/state";
56
+ export const MAC_BRIDGE_SOCKET_PATH = "/text-lane/mac";
@@ -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.d.ts CHANGED
@@ -56,22 +56,58 @@ export type EvtVibeReported = typeof evtVibeReported.infer;
56
56
  export declare function isEvtVibeReported(obj: unknown): obj is EvtVibeReported;
57
57
  export declare const evtChildSafetySignal: import("arktype/internal/variants/object.ts").ObjectType<{
58
58
  type: "vibes.diy.evt-child-safety-signal";
59
- source: "image-check";
59
+ source: "code-check" | "image-check" | "prompt-check";
60
60
  ownerHandle: string;
61
61
  appSlug: string;
62
62
  refId: string;
63
63
  }, {}>;
64
64
  export type EvtChildSafetySignal = typeof evtChildSafetySignal.infer;
65
65
  export declare function isEvtChildSafetySignal(obj: unknown): obj is EvtChildSafetySignal;
66
- export declare const moderationAdminOp: import("arktype/internal/variants/string.ts").StringType<"list-reports" | "resolve-report" | "set-publishing-paused" | "status" | "suspend" | "unsuspend", {}>;
66
+ export declare const moderationAdminOp: import("arktype/internal/variants/string.ts").StringType<"list-flags" | "list-reports" | "resolve-report" | "set-publishing-paused" | "status" | "suspend" | "triage-flag" | "unsuspend", {}>;
67
67
  export type ModerationAdminOp = typeof moderationAdminOp.infer;
68
+ export declare const AUTO_FLAG_CATEGORIES: readonly ["minors_sexual", "named_person", "self_harm", "credential_capture", "harassment_doxxing", "refused"];
69
+ export type AutoFlagCategory = (typeof AUTO_FLAG_CATEGORIES)[number];
70
+ export declare const autoFlagTriage: import("arktype/internal/variants/string.ts").StringType<"escalated" | "false_alarm" | "resolved", {}>;
71
+ export type AutoFlagTriage = typeof autoFlagTriage.infer;
72
+ export declare const autoFlagRow: import("arktype/internal/variants/object.ts").ObjectType<{
73
+ flagId: string;
74
+ ownerHandle: string;
75
+ appSlug: string;
76
+ actorUserId: string;
77
+ inputKind: "code" | "prompt";
78
+ category: string;
79
+ reason: string;
80
+ model: string;
81
+ status: string;
82
+ created: string;
83
+ chatId?: string | undefined;
84
+ promptId?: string | undefined;
85
+ fsId?: string | undefined;
86
+ promptText?: string | undefined;
87
+ triagedAt?: string | undefined;
88
+ triagedBy?: string | undefined;
89
+ triageNote?: string | undefined;
90
+ }, {}>;
91
+ export type AutoFlagRow = typeof autoFlagRow.infer;
92
+ export declare const evtAutoFlagWaiting: import("arktype/internal/variants/object.ts").ObjectType<{
93
+ type: "vibes.diy.evt-auto-flag-waiting";
94
+ stage: "first-responder" | "widen";
95
+ flagId: string;
96
+ ownerHandle: string;
97
+ appSlug: string;
98
+ category: string;
99
+ inputKind: "code" | "prompt";
100
+ at: string;
101
+ }, {}>;
102
+ export type EvtAutoFlagWaiting = typeof evtAutoFlagWaiting.infer;
103
+ export declare function isEvtAutoFlagWaiting(obj: unknown): obj is EvtAutoFlagWaiting;
68
104
  export declare const reqModerationAdmin: import("arktype/internal/variants/object.ts").ObjectType<{
69
105
  type: "vibes.diy.req-moderation-admin";
70
106
  auth: {
71
107
  type: "clerk" | "device-id" | "guest" | "ucan";
72
108
  token: string;
73
109
  };
74
- op: "list-reports" | "resolve-report" | "set-publishing-paused" | "status" | "suspend" | "unsuspend";
110
+ op: "list-flags" | "list-reports" | "resolve-report" | "set-publishing-paused" | "status" | "suspend" | "triage-flag" | "unsuspend";
75
111
  reason?: string | undefined;
76
112
  reportId?: string | undefined;
77
113
  userId?: string | undefined;
@@ -79,6 +115,9 @@ export declare const reqModerationAdmin: import("arktype/internal/variants/objec
79
115
  paused?: boolean | undefined;
80
116
  status?: "all" | "open" | "resolved" | undefined;
81
117
  limit?: number | undefined;
118
+ flagId?: string | undefined;
119
+ triage?: "escalated" | "false_alarm" | "resolved" | undefined;
120
+ flagStatus?: "all" | "escalated" | "false_alarm" | "open" | "resolved" | undefined;
82
121
  }, {}>;
83
122
  export type ReqModerationAdmin = typeof reqModerationAdmin.infer;
84
123
  export declare const vibeReportRow: import("arktype/internal/variants/object.ts").ObjectType<{
@@ -113,7 +152,7 @@ export declare const publishingSwitchState: import("arktype/internal/variants/ob
113
152
  export type PublishingSwitchState = typeof publishingSwitchState.infer;
114
153
  export declare const resModerationAdmin: import("arktype/internal/variants/object.ts").ObjectType<{
115
154
  type: "vibes.diy.res-moderation-admin";
116
- op: "list-reports" | "resolve-report" | "set-publishing-paused" | "status" | "suspend" | "unsuspend";
155
+ op: "list-flags" | "list-reports" | "resolve-report" | "set-publishing-paused" | "status" | "suspend" | "triage-flag" | "unsuspend";
117
156
  reports?: {
118
157
  reportId: string;
119
158
  ownerHandle: string;
@@ -163,6 +202,44 @@ export declare const resModerationAdmin: import("arktype/internal/variants/objec
163
202
  updated?: string | undefined;
164
203
  } | undefined;
165
204
  openReports?: number | undefined;
205
+ flags?: {
206
+ flagId: string;
207
+ ownerHandle: string;
208
+ appSlug: string;
209
+ actorUserId: string;
210
+ inputKind: "code" | "prompt";
211
+ category: string;
212
+ reason: string;
213
+ model: string;
214
+ status: string;
215
+ created: string;
216
+ chatId?: string | undefined;
217
+ promptId?: string | undefined;
218
+ fsId?: string | undefined;
219
+ promptText?: string | undefined;
220
+ triagedAt?: string | undefined;
221
+ triagedBy?: string | undefined;
222
+ triageNote?: string | undefined;
223
+ }[] | undefined;
224
+ flag?: {
225
+ flagId: string;
226
+ ownerHandle: string;
227
+ appSlug: string;
228
+ actorUserId: string;
229
+ inputKind: "code" | "prompt";
230
+ category: string;
231
+ reason: string;
232
+ model: string;
233
+ status: string;
234
+ created: string;
235
+ chatId?: string | undefined;
236
+ promptId?: string | undefined;
237
+ fsId?: string | undefined;
238
+ promptText?: string | undefined;
239
+ triagedAt?: string | undefined;
240
+ triagedBy?: string | undefined;
241
+ triageNote?: string | undefined;
242
+ } | undefined;
166
243
  }, {}>;
167
244
  export type ResModerationAdmin = typeof resModerationAdmin.infer;
168
245
  export declare function isResModerationAdmin(obj: unknown): obj is ResModerationAdmin;
package/moderation.js CHANGED
@@ -48,7 +48,7 @@ export function isEvtVibeReported(obj) {
48
48
  }
49
49
  export const evtChildSafetySignal = lazyType(() => type({
50
50
  type: "'vibes.diy.evt-child-safety-signal'",
51
- source: "'image-check'",
51
+ source: "'image-check' | 'prompt-check' | 'code-check'",
52
52
  ownerHandle: "string",
53
53
  appSlug: "string",
54
54
  refId: "string",
@@ -56,7 +56,48 @@ export const evtChildSafetySignal = lazyType(() => type({
56
56
  export function isEvtChildSafetySignal(obj) {
57
57
  return evtChildSafetySignal.allows(obj);
58
58
  }
59
- export const moderationAdminOp = lazyType(() => type("'list-reports' | 'resolve-report' | 'suspend' | 'unsuspend' | 'set-publishing-paused' | 'status'"));
59
+ export const moderationAdminOp = lazyType(() => type("'list-reports' | 'resolve-report' | 'suspend' | 'unsuspend' | 'set-publishing-paused' | 'status' | 'list-flags' | 'triage-flag'"));
60
+ export const AUTO_FLAG_CATEGORIES = [
61
+ "minors_sexual",
62
+ "named_person",
63
+ "self_harm",
64
+ "credential_capture",
65
+ "harassment_doxxing",
66
+ "refused",
67
+ ];
68
+ export const autoFlagTriage = lazyType(() => type("'false_alarm' | 'escalated' | 'resolved'"));
69
+ export const autoFlagRow = lazyType(() => type({
70
+ flagId: "string",
71
+ ownerHandle: "string",
72
+ appSlug: "string",
73
+ actorUserId: "string",
74
+ inputKind: "'prompt' | 'code'",
75
+ category: "string",
76
+ reason: "string",
77
+ model: "string",
78
+ status: "string",
79
+ created: "string",
80
+ "chatId?": "string",
81
+ "promptId?": "string",
82
+ "fsId?": "string",
83
+ "promptText?": "string",
84
+ "triagedAt?": "string",
85
+ "triagedBy?": "string",
86
+ "triageNote?": "string",
87
+ }));
88
+ export const evtAutoFlagWaiting = lazyType(() => type({
89
+ type: "'vibes.diy.evt-auto-flag-waiting'",
90
+ stage: "'first-responder' | 'widen'",
91
+ flagId: "string",
92
+ ownerHandle: "string",
93
+ appSlug: "string",
94
+ category: "string",
95
+ inputKind: "'prompt' | 'code'",
96
+ at: "string",
97
+ }));
98
+ export function isEvtAutoFlagWaiting(obj) {
99
+ return evtAutoFlagWaiting.allows(obj);
100
+ }
60
101
  export const reqModerationAdmin = lazyType(() => type({
61
102
  type: "'vibes.diy.req-moderation-admin'",
62
103
  auth: dashAuthType,
@@ -68,6 +109,9 @@ export const reqModerationAdmin = lazyType(() => type({
68
109
  "paused?": "boolean",
69
110
  "status?": "'open' | 'resolved' | 'all'",
70
111
  "limit?": "number",
112
+ "flagId?": "string",
113
+ "triage?": autoFlagTriage,
114
+ "flagStatus?": "'open' | 'false_alarm' | 'escalated' | 'resolved' | 'all'",
71
115
  }));
72
116
  export const vibeReportRow = lazyType(() => type({
73
117
  reportId: "string",
@@ -105,6 +149,8 @@ export const resModerationAdmin = lazyType(() => type({
105
149
  "suspensions?": accountSuspensionRow.array(),
106
150
  "publishing?": publishingSwitchState,
107
151
  "openReports?": "number",
152
+ "flags?": autoFlagRow.array(),
153
+ "flag?": autoFlagRow,
108
154
  }));
109
155
  export function isResModerationAdmin(obj) {
110
156
  return resModerationAdmin.allows(obj);
@@ -124,4 +170,3 @@ export function moderationRefusalText(err) {
124
170
  }
125
171
  return undefined;
126
172
  }
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