@vibes.diy/api-types 14.3.344 → 14.3.345

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.
@@ -20,6 +20,7 @@ export type MakePictureAnswer = {
20
20
  readonly ok: false;
21
21
  readonly reason: string;
22
22
  readonly message: string;
23
+ readonly cause?: string;
23
24
  } | {
24
25
  readonly ok: true;
25
26
  readonly picture: AgentPicture;
@@ -393,6 +393,7 @@ export declare const resSyncPush: import("arktype/internal/variants/object.ts").
393
393
  docId: string;
394
394
  seq: number;
395
395
  syncSeq: number;
396
+ unchanged?: true | undefined;
396
397
  }[];
397
398
  rejected?: {
398
399
  docId: string;
package/app-documents.js CHANGED
@@ -365,6 +365,7 @@ export const resSyncPush = lazyType(() => type({
365
365
  docId: "string",
366
366
  seq: "number",
367
367
  syncSeq: "number",
368
+ "unchanged?": "true",
368
369
  }).array(),
369
370
  "rejected?": type({
370
371
  docId: "string",
package/app.d.ts CHANGED
@@ -1632,6 +1632,8 @@ export declare const resAppTickStatus: import("arktype/internal/variants/object.
1632
1632
  healed: boolean;
1633
1633
  releaseIntervalMs?: number | undefined;
1634
1634
  pausedIntervalMs?: number | undefined;
1635
+ stoppedIntervalMs?: number | undefined;
1636
+ stoppedAt?: string | undefined;
1635
1637
  }, {}>;
1636
1638
  export type ResAppTickStatus = typeof resAppTickStatus.infer;
1637
1639
  export declare function isResAppTickStatus(obj: unknown): obj is ResAppTickStatus;
package/app.js CHANGED
@@ -385,6 +385,8 @@ export const resAppTickStatus = lazyType(() => type({
385
385
  healed: "boolean",
386
386
  "releaseIntervalMs?": "number",
387
387
  "pausedIntervalMs?": "number",
388
+ "stoppedIntervalMs?": "number",
389
+ "stoppedAt?": "string",
388
390
  }));
389
391
  export function isResAppTickStatus(obj) {
390
392
  return resAppTickStatus.allows(obj);
package/bridge-notes.js CHANGED
@@ -8,6 +8,10 @@ const BRIDGE_NOTE_OPENERS = [
8
8
  /^\[This one is said to you: /,
9
9
  /^\[After your last reply, this chat also got this text from Vibes, /,
10
10
  /^\[When you joined, you offered to turn a group photo /,
11
+ /^\[You are Vibes, texting one to one with one person over iMessage/,
12
+ /^\[If this turn texts them a link to an app you made, it is their first/,
13
+ /^\[You asked them for a selfie of just them to paint as a superhero/,
14
+ /^\[You offered to make them a superhero from a selfie/,
11
15
  ];
12
16
  export function isBridgeNoteLine(line) {
13
17
  const l = line.trim();
@@ -31,6 +31,16 @@ export declare const macBridgeResult: import("arktype/internal/variants/object.t
31
31
  error: string;
32
32
  }, {}>;
33
33
  export type MacBridgeResult = typeof macBridgeResult.infer;
34
+ export declare const MAC_BRIDGE_CAP_PING = "ping";
35
+ export declare const MAC_BRIDGE_CAP_PONG = "pong";
36
+ export declare const MAC_BRIDGE_PING_MS = 20000;
37
+ export declare const MAC_BRIDGE_PONG_WAIT_MS = 10000;
38
+ export declare const MAC_BRIDGE_SUPERSEDED_CODE = 1000;
39
+ export declare const MAC_BRIDGE_SUPERSEDED_REASON = "a newer socket attached";
40
+ export declare const macBridgePing: import("arktype/internal/variants/object.ts").ObjectType<{
41
+ t: "ping";
42
+ }, {}>;
43
+ export type MacBridgePing = typeof macBridgePing.infer;
34
44
  export declare const macBridgeUp: import("arktype/internal/variants/object.ts").ObjectType<{
35
45
  t: "hello";
36
46
  version: number;
@@ -54,6 +64,8 @@ export declare const macBridgeUp: import("arktype/internal/variants/object.ts").
54
64
  id: string;
55
65
  ok: false;
56
66
  error: string;
67
+ } | {
68
+ t: "ping";
57
69
  }, {}>;
58
70
  export type MacBridgeUp = typeof macBridgeUp.infer;
59
71
  export declare function parseMacBridgeUp(obj: unknown): MacBridgeUp | undefined;
@@ -70,6 +82,15 @@ export declare const macBridgeAck: import("arktype/internal/variants/object.ts")
70
82
  id: string;
71
83
  }, {}>;
72
84
  export type MacBridgeAck = typeof macBridgeAck.infer;
85
+ export declare const macBridgeWelcome: import("arktype/internal/variants/object.ts").ObjectType<{
86
+ t: "welcome";
87
+ caps: string[];
88
+ }, {}>;
89
+ export type MacBridgeWelcome = typeof macBridgeWelcome.infer;
90
+ export declare const macBridgePong: import("arktype/internal/variants/object.ts").ObjectType<{
91
+ t: "pong";
92
+ }, {}>;
93
+ export type MacBridgePong = typeof macBridgePong.infer;
73
94
  export declare const macBridgeDown: import("arktype/internal/variants/object.ts").ObjectType<{
74
95
  t: "call";
75
96
  id: string;
@@ -79,6 +100,11 @@ export declare const macBridgeDown: import("arktype/internal/variants/object.ts"
79
100
  } | {
80
101
  t: "ack";
81
102
  id: string;
103
+ } | {
104
+ t: "welcome";
105
+ caps: string[];
106
+ } | {
107
+ t: "pong";
82
108
  }, {}>;
83
109
  export type MacBridgeDown = typeof macBridgeDown.infer;
84
110
  export declare function parseMacBridgeDown(obj: unknown): MacBridgeDown | undefined;
@@ -33,7 +33,14 @@ export const macBridgeResult = lazyType(() => type({ t: "'result'", id: "string
33
33
  ok: "false",
34
34
  error: "string",
35
35
  }));
36
- export const macBridgeUp = lazyType(() => macBridgeHello.or(macBridgeEvent).or(macBridgeResult));
36
+ export const MAC_BRIDGE_CAP_PING = "ping";
37
+ export const MAC_BRIDGE_CAP_PONG = "pong";
38
+ export const MAC_BRIDGE_PING_MS = 20_000;
39
+ export const MAC_BRIDGE_PONG_WAIT_MS = 10_000;
40
+ export const MAC_BRIDGE_SUPERSEDED_CODE = 1000;
41
+ export const MAC_BRIDGE_SUPERSEDED_REASON = "a newer socket attached";
42
+ export const macBridgePing = lazyType(() => type({ t: "'ping'" }));
43
+ export const macBridgeUp = lazyType(() => macBridgeHello.or(macBridgeEvent).or(macBridgeResult).or(macBridgePing));
37
44
  export function parseMacBridgeUp(obj) {
38
45
  const r = macBridgeUp(obj);
39
46
  return r instanceof type.errors ? undefined : r;
@@ -46,7 +53,9 @@ export const macBridgeCall = lazyType(() => type({
46
53
  args: "unknown",
47
54
  }));
48
55
  export const macBridgeAck = lazyType(() => type({ t: "'ack'", id: "string > 0" }));
49
- export const macBridgeDown = lazyType(() => macBridgeCall.or(macBridgeAck));
56
+ export const macBridgeWelcome = lazyType(() => type({ t: "'welcome'", caps: "string[]" }));
57
+ export const macBridgePong = lazyType(() => type({ t: "'pong'" }));
58
+ export const macBridgeDown = lazyType(() => macBridgeCall.or(macBridgeAck).or(macBridgeWelcome).or(macBridgePong));
50
59
  export function parseMacBridgeDown(obj) {
51
60
  const r = macBridgeDown(obj);
52
61
  return r instanceof type.errors ? undefined : r;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibes.diy/api-types",
3
- "version": "14.3.344",
3
+ "version": "14.3.345",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -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.344",
29
- "@vibes.diy/identity": "14.3.344",
30
- "@vibes.diy/vibe-types": "14.3.344",
28
+ "@vibes.diy/call-ai-v2": "14.3.345",
29
+ "@vibes.diy/identity": "14.3.345",
30
+ "@vibes.diy/vibe-types": "14.3.345",
31
31
  "arktype": "~2.2.9"
32
32
  },
33
33
  "repository": {
@@ -22,3 +22,5 @@ vibe.openChat({ mode: "img" });
22
22
  vibe.openChat({ mode: "codegen" });
23
23
  codegen.openChat({ mode: "codegen" });
24
24
  codegen.openChat({ mode: "img" });
25
+ expectTypeOf().toEqualTypeOf();
26
+ expectTypeOf().toEqualTypeOf();
@@ -38,7 +38,7 @@ import { ReqBillingCheckout, ResBillingCheckout, ReqBillingPortal, ResBillingPor
38
38
  import { ReqVibeWhoAmI, ResVibeWhoAmI, ReqVibeAccessFnSource, ResVibeAccessFnSource, ReqVibeLookupHandles, ResVibeLookupHandles, ReqVibeProfileInfo, ResVibeProfileInfo } from "@vibes.diy/vibe-types";
39
39
  import { ReqAssetUploadGrant, ResAssetUploadGrant } from "./asset.js";
40
40
  import { ReqAssetSafetyStatus, ResAssetSafetyStatus } from "./asset-safety.js";
41
- import { ReqReportGrowthMemberships, ResReportGrowthMemberships, ReqReportGrowthVibesWithData, ResReportGrowthVibesWithData, ReqReportActiveMembers, ResReportActiveMembers, ReqReportTopVibesByMembers, ResReportTopVibesByMembers, ReqReportTopVibesByTraffic, ResReportTopVibesByTraffic, ReqReportAttributionReferrers, ResReportAttributionReferrers, ReqReportApiTraffic, ResReportApiTraffic, ReqReportEgress, ResReportEgress, ReqReportPromptCache, ResReportPromptCache, ReqReportCampaignHealth, ResReportCampaignHealth, ReqReportActivity, ResReportActivity } from "./report.js";
41
+ import { ReqReportGrowthMemberships, ResReportGrowthMemberships, ReqReportGrowthVibesWithData, ResReportGrowthVibesWithData, ReqReportActiveMembers, ResReportActiveMembers, ReqReportTopVibesByMembers, ResReportTopVibesByMembers, ReqReportTopVibesByTraffic, ResReportTopVibesByTraffic, ReqReportAttributionReferrers, ResReportAttributionReferrers, ReqReportApiTraffic, ResReportApiTraffic, ReqReportEgress, ResReportEgress, ReqReportPromptCache, ResReportPromptCache, ReqReportCampaignHealth, ResReportCampaignHealth, ReqReportCampaignAdPreviews, ResReportCampaignAdPreviews, ReqReportActivity, ResReportActivity } from "./report.js";
42
42
  import { ReqHomeLeaderboard, ResHomeLeaderboard, ReqCuratedNewVibes, ResCuratedNewVibes, ReqHandleProfileVibes, ResHandleProfileVibes, ReqCurateApprove, ResCurateApprove } from "./home-feed.js";
43
43
  import { ReqRelatedVibes, ResRelatedVibes } from "./related-vibes.js";
44
44
  import { ReqSharedMint, ResSharedMint } from "./shared-mint.js";
@@ -285,6 +285,7 @@ export interface VibesDiyApiIface<_T = unknown> {
285
285
  reportEgress(req: Req<ReqReportEgress>): Promise<Result<ResReportEgress, VibesDiyError>>;
286
286
  reportPromptCache(req: Req<ReqReportPromptCache>): Promise<Result<ResReportPromptCache, VibesDiyError>>;
287
287
  reportCampaignHealth(req: Req<ReqReportCampaignHealth>): Promise<Result<ResReportCampaignHealth, VibesDiyError>>;
288
+ reportCampaignAdPreviews(req: Req<ReqReportCampaignAdPreviews>): Promise<Result<ResReportCampaignAdPreviews, VibesDiyError>>;
288
289
  reportActivity(req: Req<ReqReportActivity>): Promise<Result<ResReportActivity, VibesDiyError>>;
289
290
  homeLeaderboard(req: Req<ReqHomeLeaderboard>): Promise<Result<ResHomeLeaderboard, VibesDiyError>>;
290
291
  curatedNewVibes(req: Req<ReqCuratedNewVibes>): Promise<Result<ResCuratedNewVibes, VibesDiyError>>;