@vibes.diy/api-types 14.3.337 → 14.3.338

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.
@@ -16,10 +16,19 @@ const TOOL_LINES = {
16
16
  edit_file: { base: "Editing the code…" },
17
17
  set_app_style: { base: "Restyling the app…" },
18
18
  commit_version: { base: "Saving…" },
19
+ restore_version: { base: "Bringing back that version…" },
19
20
  create_vibe: { base: "Building…", buildProgress: true },
20
21
  edit_vibe: { base: "Building…", buildProgress: true },
21
22
  };
22
- const MUTATING = new Set(["edit_vibe", "create_vibe", "commit_version", "write_file", "edit_file", "set_app_style"]);
23
+ const MUTATING = new Set([
24
+ "edit_vibe",
25
+ "create_vibe",
26
+ "commit_version",
27
+ "restore_version",
28
+ "write_file",
29
+ "edit_file",
30
+ "set_app_style",
31
+ ]);
23
32
  function line(text, opts) {
24
33
  return {
25
34
  text,
package/app.d.ts CHANGED
@@ -2093,7 +2093,7 @@ export declare const reqListNotifications: import("arktype/internal/variants/obj
2093
2093
  id?: string | undefined;
2094
2094
  appSlug?: string | undefined;
2095
2095
  ownerHandle?: string | undefined;
2096
- notificationType?: "access-requested" | "app-message" | "asset-blocked" | "asset-check-failed" | "build-complete" | "build-failed" | "checkout-unfinished" | "comment-posted" | "connection-expiring" | "dm-received" | "follow-approved" | "follow-request" | "follower-added" | "member-joined" | "request-approved" | "request-revoked" | "safety-alert" | "vibe-published" | "vibe-remixed" | undefined;
2096
+ notificationType?: "access-requested" | "app-message" | "asset-blocked" | "asset-check-failed" | "build-complete" | "build-failed" | "checkout-unfinished" | "comment-posted" | "connection-expiring" | "dm-received" | "follow-approved" | "follow-request" | "follower-added" | "member-joined" | "reminder" | "request-approved" | "request-revoked" | "safety-alert" | "vibe-published" | "vibe-remixed" | undefined;
2097
2097
  includeMuted?: boolean | undefined;
2098
2098
  cursor?: string | undefined;
2099
2099
  limit?: number | undefined;
@@ -2105,7 +2105,7 @@ export declare const resListNotifications: import("arktype/internal/variants/obj
2105
2105
  items: {
2106
2106
  id: string;
2107
2107
  userId: string;
2108
- notificationType: "access-requested" | "app-message" | "asset-blocked" | "asset-check-failed" | "build-complete" | "build-failed" | "checkout-unfinished" | "comment-posted" | "connection-expiring" | "dm-received" | "follow-approved" | "follow-request" | "follower-added" | "member-joined" | "request-approved" | "request-revoked" | "safety-alert" | "vibe-published" | "vibe-remixed";
2108
+ notificationType: "access-requested" | "app-message" | "asset-blocked" | "asset-check-failed" | "build-complete" | "build-failed" | "checkout-unfinished" | "comment-posted" | "connection-expiring" | "dm-received" | "follow-approved" | "follow-request" | "follower-added" | "member-joined" | "reminder" | "request-approved" | "request-revoked" | "safety-alert" | "vibe-published" | "vibe-remixed";
2109
2109
  ownerHandle: string;
2110
2110
  appSlug: string | null;
2111
2111
  body: string;
package/cf-env.d.ts CHANGED
@@ -81,6 +81,7 @@ export interface CFEnv {
81
81
  FIRST_LOOK_ROTATE?: string;
82
82
  BACKEND_INTERNAL_SECRET?: string;
83
83
  EMAIL_UNSUBSCRIBE_SECRET?: string;
84
+ CLOUD_SESSION_TOKEN_SECRET?: string;
84
85
  VIBES_ROOT_SWR?: string;
85
86
  VIBES_SERVICE: Queue;
86
87
  BROWSER: Fetcher;
package/chat.d.ts CHANGED
@@ -361,6 +361,7 @@ export declare const reqCreationPromptChatSection: import("arktype/internal/vari
361
361
  agentWakeNote?: string | undefined;
362
362
  nonInteractive?: boolean | undefined;
363
363
  byText?: boolean | undefined;
364
+ textLane?: "linq" | "mac" | undefined;
364
365
  agentSkills?: string[] | undefined;
365
366
  focusPath?: string | undefined;
366
367
  apiKey?: string | undefined;
@@ -546,6 +547,7 @@ export declare const reqCreationPromptChatSection: import("arktype/internal/vari
546
547
  agentWakeNote?: string | undefined;
547
548
  nonInteractive?: boolean | undefined;
548
549
  byText?: boolean | undefined;
550
+ textLane?: "linq" | "mac" | undefined;
549
551
  agentSkills?: string[] | undefined;
550
552
  focusPath?: string | undefined;
551
553
  apiKey?: string | undefined;
@@ -1314,6 +1316,7 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
1314
1316
  agentWakeNote?: string | undefined;
1315
1317
  nonInteractive?: boolean | undefined;
1316
1318
  byText?: boolean | undefined;
1319
+ textLane?: "linq" | "mac" | undefined;
1317
1320
  agentSkills?: string[] | undefined;
1318
1321
  focusPath?: string | undefined;
1319
1322
  apiKey?: string | undefined;
@@ -1499,6 +1502,7 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
1499
1502
  agentWakeNote?: string | undefined;
1500
1503
  nonInteractive?: boolean | undefined;
1501
1504
  byText?: boolean | undefined;
1505
+ textLane?: "linq" | "mac" | undefined;
1502
1506
  agentSkills?: string[] | undefined;
1503
1507
  focusPath?: string | undefined;
1504
1508
  apiKey?: string | undefined;
@@ -2141,6 +2145,7 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
2141
2145
  agentWakeNote?: string | undefined;
2142
2146
  nonInteractive?: boolean | undefined;
2143
2147
  byText?: boolean | undefined;
2148
+ textLane?: "linq" | "mac" | undefined;
2144
2149
  agentSkills?: string[] | undefined;
2145
2150
  focusPath?: string | undefined;
2146
2151
  apiKey?: string | undefined;
@@ -2326,6 +2331,7 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
2326
2331
  agentWakeNote?: string | undefined;
2327
2332
  nonInteractive?: boolean | undefined;
2328
2333
  byText?: boolean | undefined;
2334
+ textLane?: "linq" | "mac" | undefined;
2329
2335
  agentSkills?: string[] | undefined;
2330
2336
  focusPath?: string | undefined;
2331
2337
  apiKey?: string | undefined;
package/chat.js CHANGED
@@ -147,6 +147,7 @@ export const reqCreationPromptChatSection = lazyType(() => type({
147
147
  "agentWakeNote?": "string",
148
148
  "nonInteractive?": "boolean",
149
149
  "byText?": "boolean",
150
+ "textLane?": "'mac' | 'linq'",
150
151
  "agentSkills?": "string[]",
151
152
  "focusPath?": "string",
152
153
  "apiKey?": "string",
@@ -7,7 +7,7 @@ export declare const reqNotificationsSummary: import("arktype/internal/variants/
7
7
  sinceHours?: number | undefined;
8
8
  ownerHandle?: string | undefined;
9
9
  appSlug?: string | undefined;
10
- kind?: "access-requested" | "app-message" | "asset-blocked" | "asset-check-failed" | "build-complete" | "build-failed" | "checkout-unfinished" | "comment-posted" | "connection-expiring" | "dm-received" | "follow-approved" | "follow-request" | "follower-added" | "member-joined" | "request-approved" | "request-revoked" | "safety-alert" | "vibe-published" | "vibe-remixed" | undefined;
10
+ kind?: "access-requested" | "app-message" | "asset-blocked" | "asset-check-failed" | "build-complete" | "build-failed" | "checkout-unfinished" | "comment-posted" | "connection-expiring" | "dm-received" | "follow-approved" | "follow-request" | "follower-added" | "member-joined" | "reminder" | "request-approved" | "request-revoked" | "safety-alert" | "vibe-published" | "vibe-remixed" | undefined;
11
11
  }, {}>;
12
12
  export type ReqNotificationsSummary = typeof reqNotificationsSummary.infer;
13
13
  export declare function isReqNotificationsSummary(obj: unknown): obj is ReqNotificationsSummary;
@@ -1,9 +1,9 @@
1
1
  import type { UserSettingNotifications } from "./settings.js";
2
- export declare const notificationTypeEnum: import("arktype/internal/variants/string.ts").StringType<"access-requested" | "app-message" | "asset-blocked" | "asset-check-failed" | "build-complete" | "build-failed" | "checkout-unfinished" | "comment-posted" | "connection-expiring" | "dm-received" | "follow-approved" | "follow-request" | "follower-added" | "member-joined" | "request-approved" | "request-revoked" | "safety-alert" | "vibe-published" | "vibe-remixed", {}>;
2
+ export declare const notificationTypeEnum: import("arktype/internal/variants/string.ts").StringType<"access-requested" | "app-message" | "asset-blocked" | "asset-check-failed" | "build-complete" | "build-failed" | "checkout-unfinished" | "comment-posted" | "connection-expiring" | "dm-received" | "follow-approved" | "follow-request" | "follower-added" | "member-joined" | "reminder" | "request-approved" | "request-revoked" | "safety-alert" | "vibe-published" | "vibe-remixed", {}>;
3
3
  export type NotificationType = typeof notificationTypeEnum.infer;
4
4
  export declare const EvtUserNotification: import("arktype/internal/variants/object.ts").ObjectType<{
5
5
  type: "vibes.diy.evt-user-notification";
6
- notificationType: "access-requested" | "app-message" | "asset-blocked" | "asset-check-failed" | "build-complete" | "build-failed" | "checkout-unfinished" | "comment-posted" | "connection-expiring" | "dm-received" | "follow-approved" | "follow-request" | "follower-added" | "member-joined" | "request-approved" | "request-revoked" | "safety-alert" | "vibe-published" | "vibe-remixed";
6
+ notificationType: "access-requested" | "app-message" | "asset-blocked" | "asset-check-failed" | "build-complete" | "build-failed" | "checkout-unfinished" | "comment-posted" | "connection-expiring" | "dm-received" | "follow-approved" | "follow-request" | "follower-added" | "member-joined" | "reminder" | "request-approved" | "request-revoked" | "safety-alert" | "vibe-published" | "vibe-remixed";
7
7
  ownerHandle: string;
8
8
  appSlug: string | null;
9
9
  counterpartHandle?: string | undefined;
@@ -79,7 +79,7 @@ export declare function isResDeregisterPushToken(obj: unknown): obj is ResDeregi
79
79
  export declare const notificationRow: import("arktype/internal/variants/object.ts").ObjectType<{
80
80
  id: string;
81
81
  userId: string;
82
- notificationType: "access-requested" | "app-message" | "asset-blocked" | "asset-check-failed" | "build-complete" | "build-failed" | "checkout-unfinished" | "comment-posted" | "connection-expiring" | "dm-received" | "follow-approved" | "follow-request" | "follower-added" | "member-joined" | "request-approved" | "request-revoked" | "safety-alert" | "vibe-published" | "vibe-remixed";
82
+ notificationType: "access-requested" | "app-message" | "asset-blocked" | "asset-check-failed" | "build-complete" | "build-failed" | "checkout-unfinished" | "comment-posted" | "connection-expiring" | "dm-received" | "follow-approved" | "follow-request" | "follower-added" | "member-joined" | "reminder" | "request-approved" | "request-revoked" | "safety-alert" | "vibe-published" | "vibe-remixed";
83
83
  ownerHandle: string;
84
84
  appSlug: string | null;
85
85
  body: string;
@@ -240,6 +240,13 @@ export declare const NOTIFICATION_KINDS: {
240
240
  readonly oval: "red";
241
241
  readonly vibeScoped: false;
242
242
  };
243
+ readonly reminder: {
244
+ readonly instantEmail: false;
245
+ readonly digest: false;
246
+ readonly push: false;
247
+ readonly oval: "neutral";
248
+ readonly vibeScoped: false;
249
+ };
243
250
  };
244
251
  type NotificationKinds = typeof NOTIFICATION_KINDS;
245
252
  type KindsWhere<C extends keyof NotificationKindChannels, V> = {
@@ -276,6 +283,7 @@ export declare const NOTIFICATION_TYPE_PREF_KEY: {
276
283
  readonly "asset-check-failed": "assetCheckFailed";
277
284
  readonly "checkout-unfinished": "checkoutUnfinished";
278
285
  readonly "safety-alert": "safetyAlert";
286
+ readonly reminder: "reminder";
279
287
  };
280
288
  export declare const evtNotificationEmail: import("arktype/internal/variants/object.ts").ObjectType<{
281
289
  type: "vibes.diy.evt-notification-email";
@@ -286,7 +294,7 @@ export type EvtNotificationEmail = typeof evtNotificationEmail.infer;
286
294
  export declare function isEvtNotificationEmail(obj: unknown): obj is EvtNotificationEmail;
287
295
  export declare const emitNotificationInput: import("arktype/internal/variants/object.ts").ObjectType<{
288
296
  userId: string;
289
- notificationType: "access-requested" | "app-message" | "asset-blocked" | "asset-check-failed" | "build-complete" | "build-failed" | "checkout-unfinished" | "comment-posted" | "connection-expiring" | "dm-received" | "follow-approved" | "follow-request" | "follower-added" | "member-joined" | "request-approved" | "request-revoked" | "safety-alert" | "vibe-published" | "vibe-remixed";
297
+ notificationType: "access-requested" | "app-message" | "asset-blocked" | "asset-check-failed" | "build-complete" | "build-failed" | "checkout-unfinished" | "comment-posted" | "connection-expiring" | "dm-received" | "follow-approved" | "follow-request" | "follower-added" | "member-joined" | "reminder" | "request-approved" | "request-revoked" | "safety-alert" | "vibe-published" | "vibe-remixed";
290
298
  ownerHandle: string;
291
299
  appSlug: string | null;
292
300
  body: string;
package/notifications.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { type } from "arktype";
2
2
  import { exception2Result } from "@adviser/cement";
3
3
  import { lazyType } from "./lazy-type.js";
4
- export const notificationTypeEnum = lazyType(() => type("'build-complete' | 'build-failed' | 'vibe-published' | 'comment-posted' | 'request-approved' | 'request-revoked' | 'vibe-remixed' | 'dm-received' | 'member-joined' | 'access-requested' | 'follow-request' | 'follower-added' | 'follow-approved' | 'app-message' | 'connection-expiring' | 'asset-blocked' | 'asset-check-failed' | 'checkout-unfinished' | 'safety-alert'"));
4
+ export const notificationTypeEnum = lazyType(() => type("'build-complete' | 'build-failed' | 'vibe-published' | 'comment-posted' | 'request-approved' | 'request-revoked' | 'vibe-remixed' | 'dm-received' | 'member-joined' | 'access-requested' | 'follow-request' | 'follower-added' | 'follow-approved' | 'app-message' | 'connection-expiring' | 'asset-blocked' | 'asset-check-failed' | 'checkout-unfinished' | 'safety-alert' | 'reminder'"));
5
5
  export const EvtUserNotification = lazyType(() => type({
6
6
  type: "'vibes.diy.evt-user-notification'",
7
7
  notificationType: notificationTypeEnum,
@@ -158,6 +158,7 @@ export const NOTIFICATION_KINDS = {
158
158
  "asset-check-failed": { instantEmail: false, digest: false, push: false, oval: "red", vibeScoped: true },
159
159
  "checkout-unfinished": { instantEmail: false, digest: false, push: false, oval: "yellow", vibeScoped: false },
160
160
  "safety-alert": { instantEmail: false, digest: false, push: false, oval: "red", vibeScoped: false },
161
+ reminder: { instantEmail: false, digest: false, push: false, oval: "neutral", vibeScoped: false },
161
162
  };
162
163
  export const NOTIFICATION_TYPES = Object.keys(NOTIFICATION_KINDS);
163
164
  function kindsWhere(pick) {
@@ -199,6 +200,7 @@ export const NOTIFICATION_TYPE_PREF_KEY = {
199
200
  "asset-check-failed": "assetCheckFailed",
200
201
  "checkout-unfinished": "checkoutUnfinished",
201
202
  "safety-alert": "safetyAlert",
203
+ reminder: "reminder",
202
204
  };
203
205
  export const evtNotificationEmail = lazyType(() => type({
204
206
  type: "'vibes.diy.evt-notification-email'",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibes.diy/api-types",
3
- "version": "14.3.337",
3
+ "version": "14.3.338",
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.337",
29
- "@vibes.diy/identity": "14.3.337",
30
- "@vibes.diy/vibe-types": "14.3.337",
28
+ "@vibes.diy/call-ai-v2": "14.3.338",
29
+ "@vibes.diy/identity": "14.3.338",
30
+ "@vibes.diy/vibe-types": "14.3.338",
31
31
  "arktype": "~2.2.9"
32
32
  },
33
33
  "repository": {
package/phone-link.d.ts CHANGED
@@ -107,6 +107,7 @@ export declare const phoneAlert: import("arktype/internal/variants/object.ts").O
107
107
  name: string;
108
108
  size: number;
109
109
  } | undefined;
110
+ expiresAt?: string | undefined;
110
111
  follow?: {
111
112
  ownerHandle: string;
112
113
  appSlug: string;
@@ -127,6 +128,7 @@ export declare const resReadPhoneAlerts: import("arktype/internal/variants/objec
127
128
  name: string;
128
129
  size: number;
129
130
  } | undefined;
131
+ expiresAt?: string | undefined;
130
132
  follow?: {
131
133
  ownerHandle: string;
132
134
  appSlug: string;
package/phone-link.js CHANGED
@@ -97,6 +97,7 @@ export const phoneAlert = lazyType(() => type({
97
97
  id: "string > 0",
98
98
  text: "string > 0",
99
99
  "picture?": phoneAlertPicture,
100
+ "expiresAt?": "string",
100
101
  "follow?": type({
101
102
  ownerHandle: "string > 0",
102
103
  appSlug: "string > 0",
package/settings.d.ts CHANGED
@@ -182,6 +182,7 @@ export declare const userSettingNotifications: import("arktype/internal/variants
182
182
  assetCheckFailed?: boolean | undefined;
183
183
  checkoutUnfinished?: boolean | undefined;
184
184
  safetyAlert?: boolean | undefined;
185
+ reminder?: boolean | undefined;
185
186
  emailInstant?: boolean | undefined;
186
187
  mutes?: {
187
188
  vibes?: string[] | undefined;
@@ -505,6 +506,7 @@ export declare const userSettingItem: import("arktype/internal/variants/object.t
505
506
  assetCheckFailed?: boolean | undefined;
506
507
  checkoutUnfinished?: boolean | undefined;
507
508
  safetyAlert?: boolean | undefined;
509
+ reminder?: boolean | undefined;
508
510
  emailInstant?: boolean | undefined;
509
511
  mutes?: {
510
512
  vibes?: string[] | undefined;
@@ -785,6 +787,7 @@ export declare const reqEnsureUserSettings: import("arktype/internal/variants/ob
785
787
  assetCheckFailed?: boolean | undefined;
786
788
  checkoutUnfinished?: boolean | undefined;
787
789
  safetyAlert?: boolean | undefined;
790
+ reminder?: boolean | undefined;
788
791
  emailInstant?: boolean | undefined;
789
792
  mutes?: {
790
793
  vibes?: string[] | undefined;
@@ -1063,6 +1066,7 @@ export declare const resEnsureUserSettings: import("arktype/internal/variants/ob
1063
1066
  assetCheckFailed?: boolean | undefined;
1064
1067
  checkoutUnfinished?: boolean | undefined;
1065
1068
  safetyAlert?: boolean | undefined;
1069
+ reminder?: boolean | undefined;
1066
1070
  emailInstant?: boolean | undefined;
1067
1071
  mutes?: {
1068
1072
  vibes?: string[] | undefined;
package/settings.js CHANGED
@@ -108,6 +108,7 @@ export const userSettingNotifications = lazyType(() => type({
108
108
  "assetCheckFailed?": "boolean",
109
109
  "checkoutUnfinished?": "boolean",
110
110
  "safetyAlert?": "boolean",
111
+ "reminder?": "boolean",
111
112
  "emailInstant?": "boolean",
112
113
  "mutes?": {
113
114
  "vibes?": "string[]",
package/text-turn.d.ts CHANGED
@@ -14,6 +14,7 @@ export declare const reqTextTurn: import("arktype/internal/variants/object.ts").
14
14
  size?: number | undefined;
15
15
  }[];
16
16
  events?: true | undefined;
17
+ lane?: "linq" | "mac" | undefined;
17
18
  }, {}>;
18
19
  export type ReqTextTurn = typeof reqTextTurn.infer;
19
20
  export declare function isReqTextTurn(obj: unknown): obj is ReqTextTurn;
package/text-turn.js CHANGED
@@ -10,6 +10,7 @@ export const reqTextTurn = lazyType(() => type({
10
10
  text: "string",
11
11
  fileBlocks: VibesFileContent.array(),
12
12
  "events?": "true",
13
+ "lane?": "'mac' | 'linq'",
13
14
  }));
14
15
  export function isReqTextTurn(obj) {
15
16
  return !(reqTextTurn(obj) instanceof type.errors);