@vibes.diy/api-svc 2.5.15 → 2.5.16

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.
@@ -1877,8 +1877,7 @@ export declare const sharedHandlers: readonly [import("@adviser/cement").EventoH
1877
1877
  grant: string;
1878
1878
  expiresAt: string;
1879
1879
  uploadId: string;
1880
- } | import("@vibes.diy/api-types").VibesDiyError>];
1881
- export declare const appHandlers: readonly [import("@adviser/cement").EventoHandler<{
1880
+ } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
1882
1881
  type: "MessageEvent";
1883
1882
  event: {
1884
1883
  data?: unknown;
@@ -1904,21 +1903,26 @@ export declare const appHandlers: readonly [import("@adviser/cement").EventoHand
1904
1903
  error?: unknown;
1905
1904
  };
1906
1905
  }, import("@vibes.diy/api-types").MsgBase<{
1907
- type: "vibes.diy.req-put-doc";
1906
+ type: "vibes.diy.req-list-user-slug-bindings";
1908
1907
  auth: {
1909
1908
  type: "clerk" | "device-id" | "ucan";
1910
1909
  token: string;
1911
1910
  };
1912
- ownerHandle: string;
1913
- appSlug: string;
1914
- dbName: string;
1915
- doc: Record<string, unknown>;
1916
- docId?: string | undefined;
1917
1911
  }>, {
1918
- type: "vibes.diy.res-put-doc";
1919
- status: "ok";
1920
- id: string;
1921
- } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
1912
+ type: "vibes.diy.res-error";
1913
+ error: {
1914
+ message: string;
1915
+ code?: string | undefined;
1916
+ };
1917
+ } | {
1918
+ type: "vibes.diy.res-list-user-slug-bindings";
1919
+ items: {
1920
+ ownerHandle: string;
1921
+ tenant: string;
1922
+ created: string;
1923
+ appSlugCount: number;
1924
+ }[];
1925
+ }>, import("@adviser/cement").EventoHandler<{
1922
1926
  type: "MessageEvent";
1923
1927
  event: {
1924
1928
  data?: unknown;
@@ -1944,26 +1948,24 @@ export declare const appHandlers: readonly [import("@adviser/cement").EventoHand
1944
1948
  error?: unknown;
1945
1949
  };
1946
1950
  }, import("@vibes.diy/api-types").MsgBase<{
1947
- type: "vibes.diy.req-get-doc";
1948
- auth?: {
1951
+ type: "vibes.diy.req-create-user-slug-binding";
1952
+ auth: {
1949
1953
  type: "clerk" | "device-id" | "ucan";
1950
1954
  token: string;
1951
- } | undefined;
1952
- ownerHandle: string;
1953
- appSlug: string;
1954
- dbName: string;
1955
- docId: string;
1956
- adminMode?: boolean | undefined;
1955
+ };
1956
+ ownerHandle?: string | undefined;
1957
1957
  }>, {
1958
- type: "vibes.diy.res-get-doc";
1959
- status: "ok";
1960
- id: string;
1961
- doc: Record<string, unknown>;
1958
+ type: "vibes.diy.res-error";
1959
+ error: {
1960
+ message: string;
1961
+ code?: string | undefined;
1962
+ };
1962
1963
  } | {
1963
- type: "vibes.diy.res-get-doc";
1964
- status: "not-found";
1965
- id: string;
1966
- } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
1964
+ type: "vibes.diy.res-create-user-slug-binding";
1965
+ ownerHandle: string;
1966
+ tenant: string;
1967
+ created: string;
1968
+ }>, import("@adviser/cement").EventoHandler<{
1967
1969
  type: "MessageEvent";
1968
1970
  event: {
1969
1971
  data?: unknown;
@@ -1989,29 +1991,48 @@ export declare const appHandlers: readonly [import("@adviser/cement").EventoHand
1989
1991
  error?: unknown;
1990
1992
  };
1991
1993
  }, import("@vibes.diy/api-types").MsgBase<{
1992
- type: "vibes.diy.req-query-docs";
1993
- auth?: {
1994
+ type: "vibes.diy.req-delete-user-slug-binding";
1995
+ auth: {
1994
1996
  type: "clerk" | "device-id" | "ucan";
1995
1997
  token: string;
1996
- } | undefined;
1998
+ };
1997
1999
  ownerHandle: string;
1998
- appSlug: string;
1999
- dbName: string;
2000
- filter?: {
2001
- field: string;
2002
- key?: unknown;
2003
- keys?: unknown[] | undefined;
2004
- range?: [unknown, unknown] | undefined;
2005
- } | undefined;
2006
- adminMode?: boolean | undefined;
2007
2000
  }>, {
2008
- type: "vibes.diy.res-query-docs";
2009
- status: "ok";
2010
- docs: {
2011
- [x: string]: unknown;
2012
- _id: string;
2013
- }[];
2014
- } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2001
+ type: "vibes.diy.res-error";
2002
+ error: {
2003
+ message: string;
2004
+ code?: string | undefined;
2005
+ };
2006
+ } | {
2007
+ type: "vibes.diy.res-delete-user-slug-binding";
2008
+ ownerHandle: string;
2009
+ deleted: boolean;
2010
+ }>, import("@adviser/cement").EventoHandler<{
2011
+ type: "MessageEvent";
2012
+ event: {
2013
+ data?: unknown;
2014
+ origin?: string | null | undefined;
2015
+ lastEventId?: string | undefined;
2016
+ source?: unknown;
2017
+ ports?: unknown;
2018
+ };
2019
+ } | {
2020
+ type: "CloseEvent";
2021
+ event: {
2022
+ wasClean: boolean;
2023
+ code: number;
2024
+ reason: string;
2025
+ };
2026
+ } | {
2027
+ type: "ErrorEvent";
2028
+ event: {
2029
+ message?: string | undefined;
2030
+ filename?: string | undefined;
2031
+ lineno?: number | undefined;
2032
+ colno?: number | undefined;
2033
+ error?: unknown;
2034
+ };
2035
+ }, import("@vibes.diy/api-types").MsgBase<import("@fireproof/core-types-protocols-dashboard").ReqCertFromCsr>, import("@fireproof/core-types-protocols-dashboard").ResCertFromCsr | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2015
2036
  type: "MessageEvent";
2016
2037
  event: {
2017
2038
  data?: unknown;
@@ -2037,19 +2058,20 @@ export declare const appHandlers: readonly [import("@adviser/cement").EventoHand
2037
2058
  error?: unknown;
2038
2059
  };
2039
2060
  }, import("@vibes.diy/api-types").MsgBase<{
2040
- type: "vibes.diy.req-delete-doc";
2061
+ type: "vibes.diy.req-report-growth-memberships";
2041
2062
  auth: {
2042
2063
  type: "clerk" | "device-id" | "ucan";
2043
2064
  token: string;
2044
2065
  };
2045
- ownerHandle: string;
2046
- appSlug: string;
2047
- dbName: string;
2048
- docId: string;
2049
2066
  }>, {
2050
- type: "vibes.diy.res-delete-doc";
2051
- status: "ok";
2052
- id: string;
2067
+ type: "vibes.diy.res-report-growth-memberships";
2068
+ generatedAt: string;
2069
+ total: number;
2070
+ days: {
2071
+ day: string;
2072
+ memberships: number;
2073
+ newMembers: string[];
2074
+ }[];
2053
2075
  } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2054
2076
  type: "MessageEvent";
2055
2077
  event: {
@@ -2076,17 +2098,19 @@ export declare const appHandlers: readonly [import("@adviser/cement").EventoHand
2076
2098
  error?: unknown;
2077
2099
  };
2078
2100
  }, import("@vibes.diy/api-types").MsgBase<{
2079
- type: "vibes.diy.req-subscribe-docs";
2080
- auth?: {
2101
+ type: "vibes.diy.req-report-growth-vibes-with-data";
2102
+ auth: {
2081
2103
  type: "clerk" | "device-id" | "ucan";
2082
2104
  token: string;
2083
- } | undefined;
2084
- ownerHandle: string;
2085
- appSlug: string;
2086
- dbName: string;
2105
+ };
2087
2106
  }>, {
2088
- type: "vibes.diy.res-subscribe-docs";
2089
- status: "ok";
2107
+ type: "vibes.diy.res-report-growth-vibes-with-data";
2108
+ generatedAt: string;
2109
+ total: number;
2110
+ days: {
2111
+ day: string;
2112
+ vibes: number;
2113
+ }[];
2090
2114
  } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2091
2115
  type: "MessageEvent";
2092
2116
  event: {
@@ -2113,16 +2137,18 @@ export declare const appHandlers: readonly [import("@adviser/cement").EventoHand
2113
2137
  error?: unknown;
2114
2138
  };
2115
2139
  }, import("@vibes.diy/api-types").MsgBase<{
2116
- type: "vibes.diy.req-subscribe-viewer-grants";
2140
+ type: "vibes.diy.req-report-active-members";
2117
2141
  auth: {
2118
2142
  type: "clerk" | "device-id" | "ucan";
2119
2143
  token: string;
2120
2144
  };
2121
- ownerHandle: string;
2122
- appSlug: string;
2123
2145
  }>, {
2124
- type: "vibes.diy.res-subscribe-viewer-grants";
2125
- status: "ok";
2146
+ type: "vibes.diy.res-report-active-members";
2147
+ generatedAt: string;
2148
+ days: {
2149
+ day: string;
2150
+ count: number;
2151
+ }[];
2126
2152
  } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2127
2153
  type: "MessageEvent";
2128
2154
  event: {
@@ -2149,17 +2175,19 @@ export declare const appHandlers: readonly [import("@adviser/cement").EventoHand
2149
2175
  error?: unknown;
2150
2176
  };
2151
2177
  }, import("@vibes.diy/api-types").MsgBase<{
2152
- type: "vibes.diy.req-list-db-names";
2178
+ type: "vibes.diy.req-report-top-vibes-by-members";
2153
2179
  auth: {
2154
2180
  type: "clerk" | "device-id" | "ucan";
2155
2181
  token: string;
2156
2182
  };
2157
- ownerHandle: string;
2158
- appSlug: string;
2159
2183
  }>, {
2160
- type: "vibes.diy.res-list-db-names";
2161
- status: "ok";
2162
- dbNames: string[];
2184
+ type: "vibes.diy.res-report-top-vibes-by-members";
2185
+ generatedAt: string;
2186
+ rows: {
2187
+ ownerHandle: string;
2188
+ appSlug: string;
2189
+ memberCount: number;
2190
+ }[];
2163
2191
  } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2164
2192
  type: "MessageEvent";
2165
2193
  event: {
@@ -2186,18 +2214,26 @@ export declare const appHandlers: readonly [import("@adviser/cement").EventoHand
2186
2214
  error?: unknown;
2187
2215
  };
2188
2216
  }, import("@vibes.diy/api-types").MsgBase<{
2189
- type: "vibes.diy.req-mark-dm-read";
2217
+ type: "vibes.diy.req-report-attribution-referrers";
2190
2218
  auth: {
2191
2219
  type: "clerk" | "device-id" | "ucan";
2192
2220
  token: string;
2193
2221
  };
2194
- channelUserSlug: string;
2195
- lastSeenSeq: number;
2222
+ reqPath?: string | undefined;
2196
2223
  }>, {
2197
- type: "vibes.diy.res-mark-dm-read";
2198
- status: "ok";
2199
- } | import("@vibes.diy/api-types").VibesDiyError>];
2200
- export declare const chatHandlers: readonly [import("@adviser/cement").EventoHandler<{
2224
+ type: "vibes.diy.res-report-attribution-referrers";
2225
+ generatedAt: string;
2226
+ rows: {
2227
+ refHost: string;
2228
+ refPath: string;
2229
+ reqPath: string;
2230
+ total: number;
2231
+ }[];
2232
+ legacyVibeRows: {
2233
+ reqPath: string;
2234
+ total: number;
2235
+ }[];
2236
+ } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2201
2237
  type: "MessageEvent";
2202
2238
  event: {
2203
2239
  data?: unknown;
@@ -2223,249 +2259,60 @@ export declare const chatHandlers: readonly [import("@adviser/cement").EventoHan
2223
2259
  error?: unknown;
2224
2260
  };
2225
2261
  }, import("@vibes.diy/api-types").MsgBase<{
2226
- appSlug: string;
2227
- ownerHandle: string;
2228
- type: "vibes.diy.req-ensure-app-slug";
2229
- auth: {
2230
- type: "clerk" | "device-id" | "ucan";
2231
- token: string;
2232
- };
2233
- mode: "dev" | "production";
2234
- env?: Record<string, string> | undefined;
2235
- fileSystem: ({
2236
- filename: string;
2237
- entryPoint?: boolean | undefined;
2238
- mimetype?: string | undefined;
2239
- type: "code-block";
2240
- lang: string;
2241
- content: string;
2242
- } | {
2243
- filename: string;
2244
- entryPoint?: boolean | undefined;
2245
- mimetype?: string | undefined;
2246
- type: "code-ref";
2247
- refId: string;
2248
- } | {
2249
- filename: string;
2250
- entryPoint?: boolean | undefined;
2251
- mimetype?: string | undefined;
2252
- type: "str-asset-block";
2253
- content: string;
2254
- } | {
2255
- filename: string;
2256
- entryPoint?: boolean | undefined;
2257
- mimetype?: string | undefined;
2258
- type: "str-asset-ref";
2259
- refId: string;
2260
- } | {
2261
- filename: string;
2262
- entryPoint?: boolean | undefined;
2263
- mimetype?: string | undefined;
2264
- type: "uint8-asset-block";
2265
- content: Uint8Array<ArrayBuffer>;
2266
- } | {
2267
- filename: string;
2268
- entryPoint?: boolean | undefined;
2269
- mimetype?: string | undefined;
2270
- type: "uint8-asset-ref";
2271
- refId: string;
2272
- })[];
2273
- } | {
2274
- appSlug?: string | undefined;
2275
- ownerHandle: string;
2276
- type: "vibes.diy.req-ensure-app-slug";
2262
+ type: "vibes.diy.req-report-campaign-health";
2277
2263
  auth: {
2278
2264
  type: "clerk" | "device-id" | "ucan";
2279
2265
  token: string;
2280
2266
  };
2281
- mode: "dev" | "production";
2282
- env?: Record<string, string> | undefined;
2283
- fileSystem: ({
2284
- filename: string;
2285
- entryPoint?: boolean | undefined;
2286
- mimetype?: string | undefined;
2287
- type: "code-block";
2288
- lang: string;
2289
- content: string;
2290
- } | {
2291
- filename: string;
2292
- entryPoint?: boolean | undefined;
2293
- mimetype?: string | undefined;
2294
- type: "code-ref";
2295
- refId: string;
2296
- } | {
2297
- filename: string;
2298
- entryPoint?: boolean | undefined;
2299
- mimetype?: string | undefined;
2300
- type: "str-asset-block";
2301
- content: string;
2302
- } | {
2303
- filename: string;
2304
- entryPoint?: boolean | undefined;
2305
- mimetype?: string | undefined;
2306
- type: "str-asset-ref";
2307
- refId: string;
2308
- } | {
2309
- filename: string;
2310
- entryPoint?: boolean | undefined;
2311
- mimetype?: string | undefined;
2312
- type: "uint8-asset-block";
2313
- content: Uint8Array<ArrayBuffer>;
2314
- } | {
2315
- filename: string;
2316
- entryPoint?: boolean | undefined;
2317
- mimetype?: string | undefined;
2318
- type: "uint8-asset-ref";
2319
- refId: string;
2320
- })[];
2321
- } | {
2322
- appSlug: string;
2323
- ownerHandle?: string | undefined;
2324
- type: "vibes.diy.req-ensure-app-slug";
2325
- auth: {
2326
- type: "clerk" | "device-id" | "ucan";
2327
- token: string;
2328
- };
2329
- mode: "dev" | "production";
2330
- env?: Record<string, string> | undefined;
2331
- fileSystem: ({
2332
- filename: string;
2333
- entryPoint?: boolean | undefined;
2334
- mimetype?: string | undefined;
2335
- type: "code-block";
2336
- lang: string;
2337
- content: string;
2338
- } | {
2339
- filename: string;
2340
- entryPoint?: boolean | undefined;
2341
- mimetype?: string | undefined;
2342
- type: "code-ref";
2343
- refId: string;
2344
- } | {
2345
- filename: string;
2346
- entryPoint?: boolean | undefined;
2347
- mimetype?: string | undefined;
2348
- type: "str-asset-block";
2349
- content: string;
2350
- } | {
2351
- filename: string;
2352
- entryPoint?: boolean | undefined;
2353
- mimetype?: string | undefined;
2354
- type: "str-asset-ref";
2355
- refId: string;
2356
- } | {
2357
- filename: string;
2358
- entryPoint?: boolean | undefined;
2359
- mimetype?: string | undefined;
2360
- type: "uint8-asset-block";
2361
- content: Uint8Array<ArrayBuffer>;
2362
- } | {
2363
- filename: string;
2364
- entryPoint?: boolean | undefined;
2365
- mimetype?: string | undefined;
2366
- type: "uint8-asset-ref";
2367
- refId: string;
2368
- })[];
2369
- } | {
2370
- appSlug?: string | undefined;
2371
- ownerHandle?: string | undefined;
2372
- type: "vibes.diy.req-ensure-app-slug";
2373
- auth: {
2374
- type: "clerk" | "device-id" | "ucan";
2375
- token: string;
2376
- };
2377
- mode: "dev" | "production";
2378
- env?: Record<string, string> | undefined;
2379
- fileSystem: ({
2380
- filename: string;
2381
- entryPoint?: boolean | undefined;
2382
- mimetype?: string | undefined;
2383
- type: "code-block";
2384
- lang: string;
2385
- content: string;
2386
- } | {
2387
- filename: string;
2388
- entryPoint?: boolean | undefined;
2389
- mimetype?: string | undefined;
2390
- type: "code-ref";
2391
- refId: string;
2392
- } | {
2393
- filename: string;
2394
- entryPoint?: boolean | undefined;
2395
- mimetype?: string | undefined;
2396
- type: "str-asset-block";
2397
- content: string;
2398
- } | {
2399
- filename: string;
2400
- entryPoint?: boolean | undefined;
2401
- mimetype?: string | undefined;
2402
- type: "str-asset-ref";
2403
- refId: string;
2404
- } | {
2405
- filename: string;
2406
- entryPoint?: boolean | undefined;
2407
- mimetype?: string | undefined;
2408
- type: "uint8-asset-block";
2409
- content: Uint8Array<ArrayBuffer>;
2410
- } | {
2411
- filename: string;
2412
- entryPoint?: boolean | undefined;
2413
- mimetype?: string | undefined;
2414
- type: "uint8-asset-ref";
2415
- refId: string;
2416
- })[];
2267
+ days?: string | undefined;
2268
+ since?: string | undefined;
2417
2269
  }>, {
2418
- appSlug: string;
2419
- ownerHandle: string;
2420
- mode: "dev" | "production";
2421
- fsId: string;
2422
- type: "vibes.diy.res-ensure-app-slug";
2423
- env: Record<string, string>;
2424
- fileSystem: {
2425
- fileName: string;
2426
- mimeType: string;
2427
- assetId: string;
2428
- assetURI: string;
2429
- transform?: {
2430
- type: "jsx-to-js";
2431
- transformedAssetId: string;
2432
- } | {
2433
- type: "imports";
2434
- importMapAssetId: string;
2435
- } | {
2436
- type: "import-map";
2437
- fromAssetIds: string[];
2438
- } | {
2439
- type: "transformed";
2440
- action: "jsx-to-js";
2441
- transformedAssetId: string;
2442
- } | undefined;
2443
- entryPoint?: boolean | undefined;
2444
- size: number;
2270
+ type: "vibes.diy.res-report-campaign-health";
2271
+ generatedAt: string;
2272
+ dateLabel: string;
2273
+ ranked: {
2274
+ campaign_name: string;
2275
+ campaign_id: string;
2276
+ impressions: string;
2277
+ clicks: string;
2278
+ spend: string;
2279
+ ctr?: string | undefined;
2280
+ cpc?: string | undefined;
2281
+ reach?: string | undefined;
2282
+ actions?: {
2283
+ action_type: string;
2284
+ value: string;
2285
+ }[] | undefined;
2286
+ date_start?: string | undefined;
2287
+ date_stop?: string | undefined;
2288
+ ctaClicks?: number | undefined;
2289
+ ctaClicksIsShared?: boolean | undefined;
2290
+ directApp?: boolean | undefined;
2291
+ costPerCtaClick?: number | undefined;
2292
+ landingPath?: string | undefined;
2293
+ effective_status?: string | undefined;
2445
2294
  }[];
2446
- } | {
2447
- type: "vibes.diy.res-error";
2448
- error: {
2449
- message: string;
2450
- code: "require-login";
2451
- };
2452
- } | {
2453
- type: "vibes.diy.res-error";
2454
- error: {
2455
- message: string;
2456
- code: "user-slug-invalid";
2457
- };
2458
- } | {
2459
- type: "vibes.diy.res-error";
2460
- error: {
2461
- message: string;
2462
- code: "app-slug-invalid";
2463
- };
2464
- } | {
2465
- type: "vibes.diy.res-error";
2466
- error: {
2467
- message: string;
2468
- code: "max-app-slugs-reached";
2295
+ anomalies: {
2296
+ duplicateNames: string[];
2297
+ budgetOutliers: {
2298
+ name: string;
2299
+ spend: string;
2300
+ medianSpend: string;
2301
+ }[];
2302
+ zeroSpend: string[];
2303
+ lowLpvRatio: {
2304
+ name: string;
2305
+ clicks: number;
2306
+ lpvs: number;
2307
+ ratio: number;
2308
+ }[];
2309
+ pixel: {
2310
+ lastFired?: string | undefined;
2311
+ counts?: {
2312
+ [x: string]: number;
2313
+ } | undefined;
2314
+ error?: string | undefined;
2315
+ } | null;
2469
2316
  };
2470
2317
  } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2471
2318
  type: "MessageEvent";
@@ -2493,24 +2340,25 @@ export declare const chatHandlers: readonly [import("@adviser/cement").EventoHan
2493
2340
  error?: unknown;
2494
2341
  };
2495
2342
  }, import("@vibes.diy/api-types").MsgBase<{
2496
- type: "vibes.diy.req-open-chat";
2343
+ type: "vibes.diy.req-report-campaign-ad-previews";
2497
2344
  auth: {
2498
2345
  type: "clerk" | "device-id" | "ucan";
2499
2346
  token: string;
2500
2347
  };
2501
- appSlug?: string | undefined;
2502
- ownerHandle?: string | undefined;
2503
- chatId?: string | undefined;
2504
- prompt?: string | undefined;
2505
- dryRun?: boolean | undefined;
2506
- mode: "app" | "chat" | "fs-set" | "fs-update" | "img";
2348
+ campaign_id: string;
2349
+ format?: string | undefined;
2507
2350
  }>, {
2508
- type: "vibes.diy.res-open-chat";
2509
- appSlug: string;
2510
- ownerHandle: string;
2511
- chatId: string;
2512
- mode: "app" | "chat" | "fs-set" | "fs-update" | "img";
2513
- } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2351
+ type: "vibes.diy.res-report-campaign-ad-previews";
2352
+ campaign_id: string;
2353
+ ads: {
2354
+ id: string;
2355
+ name: string;
2356
+ effective_status: string;
2357
+ previewSrc?: string | undefined;
2358
+ error?: string | undefined;
2359
+ }[];
2360
+ } | import("@vibes.diy/api-types").VibesDiyError>];
2361
+ export declare const appHandlers: readonly [import("@adviser/cement").EventoHandler<{
2514
2362
  type: "MessageEvent";
2515
2363
  event: {
2516
2364
  data?: unknown;
@@ -2536,268 +2384,114 @@ export declare const chatHandlers: readonly [import("@adviser/cement").EventoHan
2536
2384
  error?: unknown;
2537
2385
  };
2538
2386
  }, import("@vibes.diy/api-types").MsgBase<{
2539
- type: "vibes.diy.req-prompt-chat-section";
2540
- mode: "chat";
2387
+ type: "vibes.diy.req-put-doc";
2541
2388
  auth: {
2542
2389
  type: "clerk" | "device-id" | "ucan";
2543
2390
  token: string;
2544
2391
  };
2545
- chatId: string;
2546
- outerTid: string;
2547
- prompt: {
2548
- model?: string | undefined;
2549
- messages: {
2550
- role: "assistant" | "system" | "user";
2551
- content: ({
2552
- type: "text";
2553
- text: string;
2554
- } | {
2555
- type: "image_url";
2556
- image_url: {
2557
- url: string;
2558
- };
2559
- })[];
2560
- }[];
2561
- stream?: boolean | undefined;
2562
- temperature?: number | undefined;
2563
- max_tokens?: number | undefined;
2564
- top_p?: number | undefined;
2565
- logprobs?: boolean | undefined;
2566
- top_logsprobs?: number | undefined;
2567
- frequency_penalty?: number | undefined;
2568
- presence_penalty?: number | undefined;
2569
- stop?: string | string[] | undefined;
2570
- verbosity?: "high" | "low" | "max" | "medium" | undefined;
2571
- modalities?: string[] | undefined;
2392
+ ownerHandle: string;
2393
+ appSlug: string;
2394
+ dbName: string;
2395
+ doc: Record<string, unknown>;
2396
+ docId?: string | undefined;
2397
+ }>, {
2398
+ type: "vibes.diy.res-put-doc";
2399
+ status: "ok";
2400
+ id: string;
2401
+ } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2402
+ type: "MessageEvent";
2403
+ event: {
2404
+ data?: unknown;
2405
+ origin?: string | null | undefined;
2406
+ lastEventId?: string | undefined;
2407
+ source?: unknown;
2408
+ ports?: unknown;
2572
2409
  };
2573
- dryRun?: boolean | undefined;
2574
- dryRunPreAllocate?: boolean | undefined;
2575
- ownerHandle?: string | undefined;
2576
- appSlug?: string | undefined;
2577
- selected?: {
2578
- kind: "version";
2579
- fsId: string;
2580
- } | {
2581
- kind: "draft";
2582
- files: ({
2583
- filename: string;
2584
- entryPoint?: boolean | undefined;
2585
- mimetype?: string | undefined;
2586
- type: "code-block";
2587
- lang: string;
2588
- content: string;
2589
- } | {
2590
- filename: string;
2591
- entryPoint?: boolean | undefined;
2592
- mimetype?: string | undefined;
2593
- type: "code-ref";
2594
- refId: string;
2595
- } | {
2596
- filename: string;
2597
- entryPoint?: boolean | undefined;
2598
- mimetype?: string | undefined;
2599
- type: "str-asset-block";
2600
- content: string;
2601
- } | {
2602
- filename: string;
2603
- entryPoint?: boolean | undefined;
2604
- mimetype?: string | undefined;
2605
- type: "str-asset-ref";
2606
- refId: string;
2607
- } | {
2608
- filename: string;
2609
- entryPoint?: boolean | undefined;
2610
- mimetype?: string | undefined;
2611
- type: "uint8-asset-block";
2612
- content: Uint8Array<ArrayBuffer>;
2613
- } | {
2614
- filename: string;
2615
- entryPoint?: boolean | undefined;
2616
- mimetype?: string | undefined;
2617
- type: "uint8-asset-ref";
2618
- refId: string;
2619
- })[];
2620
- } | undefined;
2621
- slots?: {
2622
- original?: "off" | "on" | undefined;
2623
- selected?: "off" | "on" | undefined;
2624
- last_edit?: "off" | "on" | undefined;
2625
- previous?: "off" | "on" | undefined;
2626
- compaction?: "off" | "on" | undefined;
2627
- } | undefined;
2628
- focusPath?: string | undefined;
2629
2410
  } | {
2630
- type: "vibes.diy.req-prompt-chat-section";
2631
- mode: "app";
2632
- auth: {
2633
- type: "clerk" | "device-id" | "ucan";
2634
- token: string;
2635
- };
2636
- chatId: string;
2637
- outerTid: string;
2638
- prompt: {
2639
- model?: string | undefined;
2640
- messages: {
2641
- role: "assistant" | "system" | "user";
2642
- content: ({
2643
- type: "text";
2644
- text: string;
2645
- } | {
2646
- type: "image_url";
2647
- image_url: {
2648
- url: string;
2649
- };
2650
- })[];
2651
- }[];
2652
- stream?: boolean | undefined;
2653
- temperature?: number | undefined;
2654
- max_tokens?: number | undefined;
2655
- top_p?: number | undefined;
2656
- logprobs?: boolean | undefined;
2657
- top_logsprobs?: number | undefined;
2658
- frequency_penalty?: number | undefined;
2659
- presence_penalty?: number | undefined;
2660
- stop?: string | string[] | undefined;
2661
- verbosity?: "high" | "low" | "max" | "medium" | undefined;
2662
- modalities?: string[] | undefined;
2411
+ type: "CloseEvent";
2412
+ event: {
2413
+ wasClean: boolean;
2414
+ code: number;
2415
+ reason: string;
2663
2416
  };
2664
2417
  } | {
2665
- type: "vibes.diy.req-prompt-chat-section";
2666
- mode: "img";
2667
- auth: {
2668
- type: "clerk" | "device-id" | "ucan";
2669
- token: string;
2670
- };
2671
- chatId: string;
2672
- outerTid: string;
2673
- prompt: {
2674
- model?: string | undefined;
2675
- messages: {
2676
- role: "assistant" | "system" | "user";
2677
- content: ({
2678
- type: "text";
2679
- text: string;
2680
- } | {
2681
- type: "image_url";
2682
- image_url: {
2683
- url: string;
2684
- };
2685
- })[];
2686
- }[];
2687
- stream?: boolean | undefined;
2688
- temperature?: number | undefined;
2689
- max_tokens?: number | undefined;
2690
- top_p?: number | undefined;
2691
- logprobs?: boolean | undefined;
2692
- top_logsprobs?: number | undefined;
2693
- frequency_penalty?: number | undefined;
2694
- presence_penalty?: number | undefined;
2695
- stop?: string | string[] | undefined;
2696
- verbosity?: "high" | "low" | "max" | "medium" | undefined;
2697
- modalities?: string[] | undefined;
2418
+ type: "ErrorEvent";
2419
+ event: {
2420
+ message?: string | undefined;
2421
+ filename?: string | undefined;
2422
+ lineno?: number | undefined;
2423
+ colno?: number | undefined;
2424
+ error?: unknown;
2698
2425
  };
2699
- inputImageBase64?: string | undefined;
2700
- } | {
2701
- type: "vibes.diy.req-prompt-chat-section";
2702
- mode: "fs-update";
2703
- auth: {
2426
+ }, import("@vibes.diy/api-types").MsgBase<{
2427
+ type: "vibes.diy.req-get-doc";
2428
+ auth?: {
2704
2429
  type: "clerk" | "device-id" | "ucan";
2705
2430
  token: string;
2431
+ } | undefined;
2432
+ ownerHandle: string;
2433
+ appSlug: string;
2434
+ dbName: string;
2435
+ docId: string;
2436
+ adminMode?: boolean | undefined;
2437
+ }>, {
2438
+ type: "vibes.diy.res-get-doc";
2439
+ status: "ok";
2440
+ id: string;
2441
+ doc: Record<string, unknown>;
2442
+ } | {
2443
+ type: "vibes.diy.res-get-doc";
2444
+ status: "not-found";
2445
+ id: string;
2446
+ } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2447
+ type: "MessageEvent";
2448
+ event: {
2449
+ data?: unknown;
2450
+ origin?: string | null | undefined;
2451
+ lastEventId?: string | undefined;
2452
+ source?: unknown;
2453
+ ports?: unknown;
2706
2454
  };
2707
- chatId: string;
2708
- outerTid: string;
2709
- refFsId?: string | undefined;
2710
- fsUpdate: {
2711
- update: ({
2712
- filename: string;
2713
- entryPoint?: boolean | undefined;
2714
- mimetype?: string | undefined;
2715
- type: "code-block";
2716
- lang: string;
2717
- content: string;
2718
- } | {
2719
- filename: string;
2720
- entryPoint?: boolean | undefined;
2721
- mimetype?: string | undefined;
2722
- type: "code-ref";
2723
- refId: string;
2724
- } | {
2725
- filename: string;
2726
- entryPoint?: boolean | undefined;
2727
- mimetype?: string | undefined;
2728
- type: "str-asset-block";
2729
- content: string;
2730
- } | {
2731
- filename: string;
2732
- entryPoint?: boolean | undefined;
2733
- mimetype?: string | undefined;
2734
- type: "str-asset-ref";
2735
- refId: string;
2736
- } | {
2737
- filename: string;
2738
- entryPoint?: boolean | undefined;
2739
- mimetype?: string | undefined;
2740
- type: "uint8-asset-block";
2741
- content: Uint8Array<ArrayBuffer>;
2742
- } | {
2743
- filename: string;
2744
- entryPoint?: boolean | undefined;
2745
- mimetype?: string | undefined;
2746
- type: "uint8-asset-ref";
2747
- refId: string;
2748
- })[];
2749
- remove: {
2750
- filename: string;
2751
- }[];
2455
+ } | {
2456
+ type: "CloseEvent";
2457
+ event: {
2458
+ wasClean: boolean;
2459
+ code: number;
2460
+ reason: string;
2752
2461
  };
2753
2462
  } | {
2754
- type: "vibes.diy.req-prompt-chat-section";
2755
- mode: "fs-set";
2756
- auth: {
2463
+ type: "ErrorEvent";
2464
+ event: {
2465
+ message?: string | undefined;
2466
+ filename?: string | undefined;
2467
+ lineno?: number | undefined;
2468
+ colno?: number | undefined;
2469
+ error?: unknown;
2470
+ };
2471
+ }, import("@vibes.diy/api-types").MsgBase<{
2472
+ type: "vibes.diy.req-query-docs";
2473
+ auth?: {
2757
2474
  type: "clerk" | "device-id" | "ucan";
2758
2475
  token: string;
2759
- };
2760
- chatId: string;
2761
- outerTid: string;
2762
- fsSet: ({
2763
- filename: string;
2764
- entryPoint?: boolean | undefined;
2765
- mimetype?: string | undefined;
2766
- type: "code-block";
2767
- lang: string;
2768
- content: string;
2769
- } | {
2770
- filename: string;
2771
- entryPoint?: boolean | undefined;
2772
- mimetype?: string | undefined;
2773
- type: "code-ref";
2774
- refId: string;
2775
- } | {
2776
- filename: string;
2777
- entryPoint?: boolean | undefined;
2778
- mimetype?: string | undefined;
2779
- type: "str-asset-block";
2780
- content: string;
2781
- } | {
2782
- filename: string;
2783
- entryPoint?: boolean | undefined;
2784
- mimetype?: string | undefined;
2785
- type: "str-asset-ref";
2786
- refId: string;
2787
- } | {
2788
- filename: string;
2789
- entryPoint?: boolean | undefined;
2790
- mimetype?: string | undefined;
2791
- type: "uint8-asset-block";
2792
- content: Uint8Array<ArrayBuffer>;
2793
- } | {
2794
- filename: string;
2795
- entryPoint?: boolean | undefined;
2796
- mimetype?: string | undefined;
2797
- type: "uint8-asset-ref";
2798
- refId: string;
2799
- })[];
2800
- }>, import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2476
+ } | undefined;
2477
+ ownerHandle: string;
2478
+ appSlug: string;
2479
+ dbName: string;
2480
+ filter?: {
2481
+ field: string;
2482
+ key?: unknown;
2483
+ keys?: unknown[] | undefined;
2484
+ range?: [unknown, unknown] | undefined;
2485
+ } | undefined;
2486
+ adminMode?: boolean | undefined;
2487
+ }>, {
2488
+ type: "vibes.diy.res-query-docs";
2489
+ status: "ok";
2490
+ docs: {
2491
+ [x: string]: unknown;
2492
+ _id: string;
2493
+ }[];
2494
+ } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2801
2495
  type: "MessageEvent";
2802
2496
  event: {
2803
2497
  data?: unknown;
@@ -2823,24 +2517,19 @@ export declare const chatHandlers: readonly [import("@adviser/cement").EventoHan
2823
2517
  error?: unknown;
2824
2518
  };
2825
2519
  }, import("@vibes.diy/api-types").MsgBase<{
2826
- type: "vibes.diy.req-get-chat-details";
2520
+ type: "vibes.diy.req-delete-doc";
2827
2521
  auth: {
2828
2522
  type: "clerk" | "device-id" | "ucan";
2829
2523
  token: string;
2830
2524
  };
2831
2525
  ownerHandle: string;
2832
2526
  appSlug: string;
2833
- chatId?: string | undefined;
2527
+ dbName: string;
2528
+ docId: string;
2834
2529
  }>, {
2835
- type: "vibes.diy.res-get-chat-details";
2836
- chatId?: string | undefined;
2837
- ownerHandle: string;
2838
- appSlug: string;
2839
- prompts: {
2840
- prompt: string;
2841
- fsId: string;
2842
- created: string;
2843
- }[];
2530
+ type: "vibes.diy.res-delete-doc";
2531
+ status: "ok";
2532
+ id: string;
2844
2533
  } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2845
2534
  type: "MessageEvent";
2846
2535
  event: {
@@ -2867,24 +2556,17 @@ export declare const chatHandlers: readonly [import("@adviser/cement").EventoHan
2867
2556
  error?: unknown;
2868
2557
  };
2869
2558
  }, import("@vibes.diy/api-types").MsgBase<{
2870
- type: "vibes.diy.req-list-application-chats";
2871
- auth: {
2559
+ type: "vibes.diy.req-subscribe-docs";
2560
+ auth?: {
2872
2561
  type: "clerk" | "device-id" | "ucan";
2873
2562
  token: string;
2874
- };
2875
- appSlug?: string | undefined;
2876
- ownerHandle?: string | undefined;
2877
- limit?: number | undefined;
2878
- cursor?: string | undefined;
2563
+ } | undefined;
2564
+ ownerHandle: string;
2565
+ appSlug: string;
2566
+ dbName: string;
2879
2567
  }>, {
2880
- type: "vibes.diy.res-list-application-chats";
2881
- items: {
2882
- chatId: string;
2883
- appSlug: string;
2884
- ownerHandle: string;
2885
- created: string;
2886
- }[];
2887
- nextCursor?: string | undefined;
2568
+ type: "vibes.diy.res-subscribe-docs";
2569
+ status: "ok";
2888
2570
  } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2889
2571
  type: "MessageEvent";
2890
2572
  event: {
@@ -2911,23 +2593,16 @@ export declare const chatHandlers: readonly [import("@adviser/cement").EventoHan
2911
2593
  error?: unknown;
2912
2594
  };
2913
2595
  }, import("@vibes.diy/api-types").MsgBase<{
2914
- type: "vibes.diy.req-fork-app";
2596
+ type: "vibes.diy.req-subscribe-viewer-grants";
2915
2597
  auth: {
2916
2598
  type: "clerk" | "device-id" | "ucan";
2917
2599
  token: string;
2918
2600
  };
2919
- srcUserSlug: string;
2920
- srcAppSlug: string;
2921
- srcFsId?: string | undefined;
2922
- skipChat?: boolean | undefined;
2923
- }>, {
2924
- type: "vibes.diy.res-fork-app";
2925
2601
  ownerHandle: string;
2926
2602
  appSlug: string;
2927
- chatId: string;
2928
- srcFsId: string;
2929
- srcUserSlug: string;
2930
- srcAppSlug: string;
2603
+ }>, {
2604
+ type: "vibes.diy.res-subscribe-viewer-grants";
2605
+ status: "ok";
2931
2606
  } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2932
2607
  type: "MessageEvent";
2933
2608
  event: {
@@ -2954,21 +2629,17 @@ export declare const chatHandlers: readonly [import("@adviser/cement").EventoHan
2954
2629
  error?: unknown;
2955
2630
  };
2956
2631
  }, import("@vibes.diy/api-types").MsgBase<{
2957
- type: "vibes.diy.req-set-mode-fs";
2632
+ type: "vibes.diy.req-list-db-names";
2958
2633
  auth: {
2959
2634
  type: "clerk" | "device-id" | "ucan";
2960
2635
  token: string;
2961
- };
2962
- fsId: string;
2963
- appSlug: string;
2964
- ownerHandle: string;
2965
- mode: "dev" | "production";
2966
- }>, {
2967
- type: "vibes.diy.res-set-mode-fs";
2968
- fsId: string;
2969
- appSlug: string;
2636
+ };
2970
2637
  ownerHandle: string;
2971
- mode: "dev" | "production";
2638
+ appSlug: string;
2639
+ }>, {
2640
+ type: "vibes.diy.res-list-db-names";
2641
+ status: "ok";
2642
+ dbNames: string[];
2972
2643
  } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2973
2644
  type: "MessageEvent";
2974
2645
  event: {
@@ -2994,7 +2665,19 @@ export declare const chatHandlers: readonly [import("@adviser/cement").EventoHan
2994
2665
  colno?: number | undefined;
2995
2666
  error?: unknown;
2996
2667
  };
2997
- }, import("@vibes.diy/api-types").MsgBase<import("@fireproof/core-types-protocols-dashboard").ReqCertFromCsr>, import("@fireproof/core-types-protocols-dashboard").ResCertFromCsr | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2668
+ }, import("@vibes.diy/api-types").MsgBase<{
2669
+ type: "vibes.diy.req-mark-dm-read";
2670
+ auth: {
2671
+ type: "clerk" | "device-id" | "ucan";
2672
+ token: string;
2673
+ };
2674
+ channelUserSlug: string;
2675
+ lastSeenSeq: number;
2676
+ }>, {
2677
+ type: "vibes.diy.res-mark-dm-read";
2678
+ status: "ok";
2679
+ } | import("@vibes.diy/api-types").VibesDiyError>];
2680
+ export declare const chatHandlers: readonly [import("@adviser/cement").EventoHandler<{
2998
2681
  type: "MessageEvent";
2999
2682
  event: {
3000
2683
  data?: unknown;
@@ -3020,26 +2703,251 @@ export declare const chatHandlers: readonly [import("@adviser/cement").EventoHan
3020
2703
  error?: unknown;
3021
2704
  };
3022
2705
  }, import("@vibes.diy/api-types").MsgBase<{
3023
- type: "vibes.diy.req-list-user-slug-bindings";
2706
+ appSlug: string;
2707
+ ownerHandle: string;
2708
+ type: "vibes.diy.req-ensure-app-slug";
2709
+ auth: {
2710
+ type: "clerk" | "device-id" | "ucan";
2711
+ token: string;
2712
+ };
2713
+ mode: "dev" | "production";
2714
+ env?: Record<string, string> | undefined;
2715
+ fileSystem: ({
2716
+ filename: string;
2717
+ entryPoint?: boolean | undefined;
2718
+ mimetype?: string | undefined;
2719
+ type: "code-block";
2720
+ lang: string;
2721
+ content: string;
2722
+ } | {
2723
+ filename: string;
2724
+ entryPoint?: boolean | undefined;
2725
+ mimetype?: string | undefined;
2726
+ type: "code-ref";
2727
+ refId: string;
2728
+ } | {
2729
+ filename: string;
2730
+ entryPoint?: boolean | undefined;
2731
+ mimetype?: string | undefined;
2732
+ type: "str-asset-block";
2733
+ content: string;
2734
+ } | {
2735
+ filename: string;
2736
+ entryPoint?: boolean | undefined;
2737
+ mimetype?: string | undefined;
2738
+ type: "str-asset-ref";
2739
+ refId: string;
2740
+ } | {
2741
+ filename: string;
2742
+ entryPoint?: boolean | undefined;
2743
+ mimetype?: string | undefined;
2744
+ type: "uint8-asset-block";
2745
+ content: Uint8Array<ArrayBuffer>;
2746
+ } | {
2747
+ filename: string;
2748
+ entryPoint?: boolean | undefined;
2749
+ mimetype?: string | undefined;
2750
+ type: "uint8-asset-ref";
2751
+ refId: string;
2752
+ })[];
2753
+ } | {
2754
+ appSlug?: string | undefined;
2755
+ ownerHandle: string;
2756
+ type: "vibes.diy.req-ensure-app-slug";
2757
+ auth: {
2758
+ type: "clerk" | "device-id" | "ucan";
2759
+ token: string;
2760
+ };
2761
+ mode: "dev" | "production";
2762
+ env?: Record<string, string> | undefined;
2763
+ fileSystem: ({
2764
+ filename: string;
2765
+ entryPoint?: boolean | undefined;
2766
+ mimetype?: string | undefined;
2767
+ type: "code-block";
2768
+ lang: string;
2769
+ content: string;
2770
+ } | {
2771
+ filename: string;
2772
+ entryPoint?: boolean | undefined;
2773
+ mimetype?: string | undefined;
2774
+ type: "code-ref";
2775
+ refId: string;
2776
+ } | {
2777
+ filename: string;
2778
+ entryPoint?: boolean | undefined;
2779
+ mimetype?: string | undefined;
2780
+ type: "str-asset-block";
2781
+ content: string;
2782
+ } | {
2783
+ filename: string;
2784
+ entryPoint?: boolean | undefined;
2785
+ mimetype?: string | undefined;
2786
+ type: "str-asset-ref";
2787
+ refId: string;
2788
+ } | {
2789
+ filename: string;
2790
+ entryPoint?: boolean | undefined;
2791
+ mimetype?: string | undefined;
2792
+ type: "uint8-asset-block";
2793
+ content: Uint8Array<ArrayBuffer>;
2794
+ } | {
2795
+ filename: string;
2796
+ entryPoint?: boolean | undefined;
2797
+ mimetype?: string | undefined;
2798
+ type: "uint8-asset-ref";
2799
+ refId: string;
2800
+ })[];
2801
+ } | {
2802
+ appSlug: string;
2803
+ ownerHandle?: string | undefined;
2804
+ type: "vibes.diy.req-ensure-app-slug";
2805
+ auth: {
2806
+ type: "clerk" | "device-id" | "ucan";
2807
+ token: string;
2808
+ };
2809
+ mode: "dev" | "production";
2810
+ env?: Record<string, string> | undefined;
2811
+ fileSystem: ({
2812
+ filename: string;
2813
+ entryPoint?: boolean | undefined;
2814
+ mimetype?: string | undefined;
2815
+ type: "code-block";
2816
+ lang: string;
2817
+ content: string;
2818
+ } | {
2819
+ filename: string;
2820
+ entryPoint?: boolean | undefined;
2821
+ mimetype?: string | undefined;
2822
+ type: "code-ref";
2823
+ refId: string;
2824
+ } | {
2825
+ filename: string;
2826
+ entryPoint?: boolean | undefined;
2827
+ mimetype?: string | undefined;
2828
+ type: "str-asset-block";
2829
+ content: string;
2830
+ } | {
2831
+ filename: string;
2832
+ entryPoint?: boolean | undefined;
2833
+ mimetype?: string | undefined;
2834
+ type: "str-asset-ref";
2835
+ refId: string;
2836
+ } | {
2837
+ filename: string;
2838
+ entryPoint?: boolean | undefined;
2839
+ mimetype?: string | undefined;
2840
+ type: "uint8-asset-block";
2841
+ content: Uint8Array<ArrayBuffer>;
2842
+ } | {
2843
+ filename: string;
2844
+ entryPoint?: boolean | undefined;
2845
+ mimetype?: string | undefined;
2846
+ type: "uint8-asset-ref";
2847
+ refId: string;
2848
+ })[];
2849
+ } | {
2850
+ appSlug?: string | undefined;
2851
+ ownerHandle?: string | undefined;
2852
+ type: "vibes.diy.req-ensure-app-slug";
3024
2853
  auth: {
3025
2854
  type: "clerk" | "device-id" | "ucan";
3026
2855
  token: string;
3027
2856
  };
3028
- }>, {
2857
+ mode: "dev" | "production";
2858
+ env?: Record<string, string> | undefined;
2859
+ fileSystem: ({
2860
+ filename: string;
2861
+ entryPoint?: boolean | undefined;
2862
+ mimetype?: string | undefined;
2863
+ type: "code-block";
2864
+ lang: string;
2865
+ content: string;
2866
+ } | {
2867
+ filename: string;
2868
+ entryPoint?: boolean | undefined;
2869
+ mimetype?: string | undefined;
2870
+ type: "code-ref";
2871
+ refId: string;
2872
+ } | {
2873
+ filename: string;
2874
+ entryPoint?: boolean | undefined;
2875
+ mimetype?: string | undefined;
2876
+ type: "str-asset-block";
2877
+ content: string;
2878
+ } | {
2879
+ filename: string;
2880
+ entryPoint?: boolean | undefined;
2881
+ mimetype?: string | undefined;
2882
+ type: "str-asset-ref";
2883
+ refId: string;
2884
+ } | {
2885
+ filename: string;
2886
+ entryPoint?: boolean | undefined;
2887
+ mimetype?: string | undefined;
2888
+ type: "uint8-asset-block";
2889
+ content: Uint8Array<ArrayBuffer>;
2890
+ } | {
2891
+ filename: string;
2892
+ entryPoint?: boolean | undefined;
2893
+ mimetype?: string | undefined;
2894
+ type: "uint8-asset-ref";
2895
+ refId: string;
2896
+ })[];
2897
+ }>, {
2898
+ appSlug: string;
2899
+ ownerHandle: string;
2900
+ mode: "dev" | "production";
2901
+ fsId: string;
2902
+ type: "vibes.diy.res-ensure-app-slug";
2903
+ env: Record<string, string>;
2904
+ fileSystem: {
2905
+ fileName: string;
2906
+ mimeType: string;
2907
+ assetId: string;
2908
+ assetURI: string;
2909
+ transform?: {
2910
+ type: "jsx-to-js";
2911
+ transformedAssetId: string;
2912
+ } | {
2913
+ type: "imports";
2914
+ importMapAssetId: string;
2915
+ } | {
2916
+ type: "import-map";
2917
+ fromAssetIds: string[];
2918
+ } | {
2919
+ type: "transformed";
2920
+ action: "jsx-to-js";
2921
+ transformedAssetId: string;
2922
+ } | undefined;
2923
+ entryPoint?: boolean | undefined;
2924
+ size: number;
2925
+ }[];
2926
+ } | {
2927
+ type: "vibes.diy.res-error";
2928
+ error: {
2929
+ message: string;
2930
+ code: "require-login";
2931
+ };
2932
+ } | {
2933
+ type: "vibes.diy.res-error";
2934
+ error: {
2935
+ message: string;
2936
+ code: "user-slug-invalid";
2937
+ };
2938
+ } | {
2939
+ type: "vibes.diy.res-error";
2940
+ error: {
2941
+ message: string;
2942
+ code: "app-slug-invalid";
2943
+ };
2944
+ } | {
3029
2945
  type: "vibes.diy.res-error";
3030
2946
  error: {
3031
2947
  message: string;
3032
- code?: string | undefined;
2948
+ code: "max-app-slugs-reached";
3033
2949
  };
3034
- } | {
3035
- type: "vibes.diy.res-list-user-slug-bindings";
3036
- items: {
3037
- ownerHandle: string;
3038
- tenant: string;
3039
- created: string;
3040
- appSlugCount: number;
3041
- }[];
3042
- }>, import("@adviser/cement").EventoHandler<{
2950
+ } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
3043
2951
  type: "MessageEvent";
3044
2952
  event: {
3045
2953
  data?: unknown;
@@ -3065,24 +2973,24 @@ export declare const chatHandlers: readonly [import("@adviser/cement").EventoHan
3065
2973
  error?: unknown;
3066
2974
  };
3067
2975
  }, import("@vibes.diy/api-types").MsgBase<{
3068
- type: "vibes.diy.req-create-user-slug-binding";
2976
+ type: "vibes.diy.req-open-chat";
3069
2977
  auth: {
3070
2978
  type: "clerk" | "device-id" | "ucan";
3071
2979
  token: string;
3072
2980
  };
2981
+ appSlug?: string | undefined;
3073
2982
  ownerHandle?: string | undefined;
2983
+ chatId?: string | undefined;
2984
+ prompt?: string | undefined;
2985
+ dryRun?: boolean | undefined;
2986
+ mode: "app" | "chat" | "fs-set" | "fs-update" | "img";
3074
2987
  }>, {
3075
- type: "vibes.diy.res-error";
3076
- error: {
3077
- message: string;
3078
- code?: string | undefined;
3079
- };
3080
- } | {
3081
- type: "vibes.diy.res-create-user-slug-binding";
2988
+ type: "vibes.diy.res-open-chat";
2989
+ appSlug: string;
3082
2990
  ownerHandle: string;
3083
- tenant: string;
3084
- created: string;
3085
- }>, import("@adviser/cement").EventoHandler<{
2991
+ chatId: string;
2992
+ mode: "app" | "chat" | "fs-set" | "fs-update" | "img";
2993
+ } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
3086
2994
  type: "MessageEvent";
3087
2995
  event: {
3088
2996
  data?: unknown;
@@ -3108,140 +3016,268 @@ export declare const chatHandlers: readonly [import("@adviser/cement").EventoHan
3108
3016
  error?: unknown;
3109
3017
  };
3110
3018
  }, import("@vibes.diy/api-types").MsgBase<{
3111
- type: "vibes.diy.req-delete-user-slug-binding";
3019
+ type: "vibes.diy.req-prompt-chat-section";
3020
+ mode: "chat";
3112
3021
  auth: {
3113
3022
  type: "clerk" | "device-id" | "ucan";
3114
3023
  token: string;
3115
3024
  };
3116
- ownerHandle: string;
3117
- }>, {
3118
- type: "vibes.diy.res-error";
3119
- error: {
3120
- message: string;
3121
- code?: string | undefined;
3122
- };
3123
- } | {
3124
- type: "vibes.diy.res-delete-user-slug-binding";
3125
- ownerHandle: string;
3126
- deleted: boolean;
3127
- }>, import("@adviser/cement").EventoHandler<{
3128
- type: "MessageEvent";
3129
- event: {
3130
- data?: unknown;
3131
- origin?: string | null | undefined;
3132
- lastEventId?: string | undefined;
3133
- source?: unknown;
3134
- ports?: unknown;
3135
- };
3136
- } | {
3137
- type: "CloseEvent";
3138
- event: {
3139
- wasClean: boolean;
3140
- code: number;
3141
- reason: string;
3025
+ chatId: string;
3026
+ outerTid: string;
3027
+ prompt: {
3028
+ model?: string | undefined;
3029
+ messages: {
3030
+ role: "assistant" | "system" | "user";
3031
+ content: ({
3032
+ type: "text";
3033
+ text: string;
3034
+ } | {
3035
+ type: "image_url";
3036
+ image_url: {
3037
+ url: string;
3038
+ };
3039
+ })[];
3040
+ }[];
3041
+ stream?: boolean | undefined;
3042
+ temperature?: number | undefined;
3043
+ max_tokens?: number | undefined;
3044
+ top_p?: number | undefined;
3045
+ logprobs?: boolean | undefined;
3046
+ top_logsprobs?: number | undefined;
3047
+ frequency_penalty?: number | undefined;
3048
+ presence_penalty?: number | undefined;
3049
+ stop?: string | string[] | undefined;
3050
+ verbosity?: "high" | "low" | "max" | "medium" | undefined;
3051
+ modalities?: string[] | undefined;
3142
3052
  };
3053
+ dryRun?: boolean | undefined;
3054
+ dryRunPreAllocate?: boolean | undefined;
3055
+ ownerHandle?: string | undefined;
3056
+ appSlug?: string | undefined;
3057
+ selected?: {
3058
+ kind: "version";
3059
+ fsId: string;
3060
+ } | {
3061
+ kind: "draft";
3062
+ files: ({
3063
+ filename: string;
3064
+ entryPoint?: boolean | undefined;
3065
+ mimetype?: string | undefined;
3066
+ type: "code-block";
3067
+ lang: string;
3068
+ content: string;
3069
+ } | {
3070
+ filename: string;
3071
+ entryPoint?: boolean | undefined;
3072
+ mimetype?: string | undefined;
3073
+ type: "code-ref";
3074
+ refId: string;
3075
+ } | {
3076
+ filename: string;
3077
+ entryPoint?: boolean | undefined;
3078
+ mimetype?: string | undefined;
3079
+ type: "str-asset-block";
3080
+ content: string;
3081
+ } | {
3082
+ filename: string;
3083
+ entryPoint?: boolean | undefined;
3084
+ mimetype?: string | undefined;
3085
+ type: "str-asset-ref";
3086
+ refId: string;
3087
+ } | {
3088
+ filename: string;
3089
+ entryPoint?: boolean | undefined;
3090
+ mimetype?: string | undefined;
3091
+ type: "uint8-asset-block";
3092
+ content: Uint8Array<ArrayBuffer>;
3093
+ } | {
3094
+ filename: string;
3095
+ entryPoint?: boolean | undefined;
3096
+ mimetype?: string | undefined;
3097
+ type: "uint8-asset-ref";
3098
+ refId: string;
3099
+ })[];
3100
+ } | undefined;
3101
+ slots?: {
3102
+ original?: "off" | "on" | undefined;
3103
+ selected?: "off" | "on" | undefined;
3104
+ last_edit?: "off" | "on" | undefined;
3105
+ previous?: "off" | "on" | undefined;
3106
+ compaction?: "off" | "on" | undefined;
3107
+ } | undefined;
3108
+ focusPath?: string | undefined;
3143
3109
  } | {
3144
- type: "ErrorEvent";
3145
- event: {
3146
- message?: string | undefined;
3147
- filename?: string | undefined;
3148
- lineno?: number | undefined;
3149
- colno?: number | undefined;
3150
- error?: unknown;
3151
- };
3152
- }, import("@vibes.diy/api-types").MsgBase<{
3153
- type: "vibes.diy.req-report-growth-memberships";
3110
+ type: "vibes.diy.req-prompt-chat-section";
3111
+ mode: "app";
3154
3112
  auth: {
3155
3113
  type: "clerk" | "device-id" | "ucan";
3156
3114
  token: string;
3157
3115
  };
3158
- }>, {
3159
- type: "vibes.diy.res-report-growth-memberships";
3160
- generatedAt: string;
3161
- total: number;
3162
- days: {
3163
- day: string;
3164
- memberships: number;
3165
- newMembers: string[];
3166
- }[];
3167
- } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
3168
- type: "MessageEvent";
3169
- event: {
3170
- data?: unknown;
3171
- origin?: string | null | undefined;
3172
- lastEventId?: string | undefined;
3173
- source?: unknown;
3174
- ports?: unknown;
3175
- };
3176
- } | {
3177
- type: "CloseEvent";
3178
- event: {
3179
- wasClean: boolean;
3180
- code: number;
3181
- reason: string;
3116
+ chatId: string;
3117
+ outerTid: string;
3118
+ prompt: {
3119
+ model?: string | undefined;
3120
+ messages: {
3121
+ role: "assistant" | "system" | "user";
3122
+ content: ({
3123
+ type: "text";
3124
+ text: string;
3125
+ } | {
3126
+ type: "image_url";
3127
+ image_url: {
3128
+ url: string;
3129
+ };
3130
+ })[];
3131
+ }[];
3132
+ stream?: boolean | undefined;
3133
+ temperature?: number | undefined;
3134
+ max_tokens?: number | undefined;
3135
+ top_p?: number | undefined;
3136
+ logprobs?: boolean | undefined;
3137
+ top_logsprobs?: number | undefined;
3138
+ frequency_penalty?: number | undefined;
3139
+ presence_penalty?: number | undefined;
3140
+ stop?: string | string[] | undefined;
3141
+ verbosity?: "high" | "low" | "max" | "medium" | undefined;
3142
+ modalities?: string[] | undefined;
3182
3143
  };
3183
3144
  } | {
3184
- type: "ErrorEvent";
3185
- event: {
3186
- message?: string | undefined;
3187
- filename?: string | undefined;
3188
- lineno?: number | undefined;
3189
- colno?: number | undefined;
3190
- error?: unknown;
3191
- };
3192
- }, import("@vibes.diy/api-types").MsgBase<{
3193
- type: "vibes.diy.req-report-growth-vibes-with-data";
3145
+ type: "vibes.diy.req-prompt-chat-section";
3146
+ mode: "img";
3194
3147
  auth: {
3195
3148
  type: "clerk" | "device-id" | "ucan";
3196
3149
  token: string;
3197
3150
  };
3198
- }>, {
3199
- type: "vibes.diy.res-report-growth-vibes-with-data";
3200
- generatedAt: string;
3201
- total: number;
3202
- days: {
3203
- day: string;
3204
- vibes: number;
3205
- }[];
3206
- } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
3207
- type: "MessageEvent";
3208
- event: {
3209
- data?: unknown;
3210
- origin?: string | null | undefined;
3211
- lastEventId?: string | undefined;
3212
- source?: unknown;
3213
- ports?: unknown;
3151
+ chatId: string;
3152
+ outerTid: string;
3153
+ prompt: {
3154
+ model?: string | undefined;
3155
+ messages: {
3156
+ role: "assistant" | "system" | "user";
3157
+ content: ({
3158
+ type: "text";
3159
+ text: string;
3160
+ } | {
3161
+ type: "image_url";
3162
+ image_url: {
3163
+ url: string;
3164
+ };
3165
+ })[];
3166
+ }[];
3167
+ stream?: boolean | undefined;
3168
+ temperature?: number | undefined;
3169
+ max_tokens?: number | undefined;
3170
+ top_p?: number | undefined;
3171
+ logprobs?: boolean | undefined;
3172
+ top_logsprobs?: number | undefined;
3173
+ frequency_penalty?: number | undefined;
3174
+ presence_penalty?: number | undefined;
3175
+ stop?: string | string[] | undefined;
3176
+ verbosity?: "high" | "low" | "max" | "medium" | undefined;
3177
+ modalities?: string[] | undefined;
3214
3178
  };
3179
+ inputImageBase64?: string | undefined;
3215
3180
  } | {
3216
- type: "CloseEvent";
3217
- event: {
3218
- wasClean: boolean;
3219
- code: number;
3220
- reason: string;
3181
+ type: "vibes.diy.req-prompt-chat-section";
3182
+ mode: "fs-update";
3183
+ auth: {
3184
+ type: "clerk" | "device-id" | "ucan";
3185
+ token: string;
3221
3186
  };
3222
- } | {
3223
- type: "ErrorEvent";
3224
- event: {
3225
- message?: string | undefined;
3226
- filename?: string | undefined;
3227
- lineno?: number | undefined;
3228
- colno?: number | undefined;
3229
- error?: unknown;
3187
+ chatId: string;
3188
+ outerTid: string;
3189
+ refFsId?: string | undefined;
3190
+ fsUpdate: {
3191
+ update: ({
3192
+ filename: string;
3193
+ entryPoint?: boolean | undefined;
3194
+ mimetype?: string | undefined;
3195
+ type: "code-block";
3196
+ lang: string;
3197
+ content: string;
3198
+ } | {
3199
+ filename: string;
3200
+ entryPoint?: boolean | undefined;
3201
+ mimetype?: string | undefined;
3202
+ type: "code-ref";
3203
+ refId: string;
3204
+ } | {
3205
+ filename: string;
3206
+ entryPoint?: boolean | undefined;
3207
+ mimetype?: string | undefined;
3208
+ type: "str-asset-block";
3209
+ content: string;
3210
+ } | {
3211
+ filename: string;
3212
+ entryPoint?: boolean | undefined;
3213
+ mimetype?: string | undefined;
3214
+ type: "str-asset-ref";
3215
+ refId: string;
3216
+ } | {
3217
+ filename: string;
3218
+ entryPoint?: boolean | undefined;
3219
+ mimetype?: string | undefined;
3220
+ type: "uint8-asset-block";
3221
+ content: Uint8Array<ArrayBuffer>;
3222
+ } | {
3223
+ filename: string;
3224
+ entryPoint?: boolean | undefined;
3225
+ mimetype?: string | undefined;
3226
+ type: "uint8-asset-ref";
3227
+ refId: string;
3228
+ })[];
3229
+ remove: {
3230
+ filename: string;
3231
+ }[];
3230
3232
  };
3231
- }, import("@vibes.diy/api-types").MsgBase<{
3232
- type: "vibes.diy.req-report-active-members";
3233
+ } | {
3234
+ type: "vibes.diy.req-prompt-chat-section";
3235
+ mode: "fs-set";
3233
3236
  auth: {
3234
3237
  type: "clerk" | "device-id" | "ucan";
3235
3238
  token: string;
3236
3239
  };
3237
- }>, {
3238
- type: "vibes.diy.res-report-active-members";
3239
- generatedAt: string;
3240
- days: {
3241
- day: string;
3242
- count: number;
3243
- }[];
3244
- } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
3240
+ chatId: string;
3241
+ outerTid: string;
3242
+ fsSet: ({
3243
+ filename: string;
3244
+ entryPoint?: boolean | undefined;
3245
+ mimetype?: string | undefined;
3246
+ type: "code-block";
3247
+ lang: string;
3248
+ content: string;
3249
+ } | {
3250
+ filename: string;
3251
+ entryPoint?: boolean | undefined;
3252
+ mimetype?: string | undefined;
3253
+ type: "code-ref";
3254
+ refId: string;
3255
+ } | {
3256
+ filename: string;
3257
+ entryPoint?: boolean | undefined;
3258
+ mimetype?: string | undefined;
3259
+ type: "str-asset-block";
3260
+ content: string;
3261
+ } | {
3262
+ filename: string;
3263
+ entryPoint?: boolean | undefined;
3264
+ mimetype?: string | undefined;
3265
+ type: "str-asset-ref";
3266
+ refId: string;
3267
+ } | {
3268
+ filename: string;
3269
+ entryPoint?: boolean | undefined;
3270
+ mimetype?: string | undefined;
3271
+ type: "uint8-asset-block";
3272
+ content: Uint8Array<ArrayBuffer>;
3273
+ } | {
3274
+ filename: string;
3275
+ entryPoint?: boolean | undefined;
3276
+ mimetype?: string | undefined;
3277
+ type: "uint8-asset-ref";
3278
+ refId: string;
3279
+ })[];
3280
+ }>, import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
3245
3281
  type: "MessageEvent";
3246
3282
  event: {
3247
3283
  data?: unknown;
@@ -3267,18 +3303,23 @@ export declare const chatHandlers: readonly [import("@adviser/cement").EventoHan
3267
3303
  error?: unknown;
3268
3304
  };
3269
3305
  }, import("@vibes.diy/api-types").MsgBase<{
3270
- type: "vibes.diy.req-report-top-vibes-by-members";
3306
+ type: "vibes.diy.req-get-chat-details";
3271
3307
  auth: {
3272
3308
  type: "clerk" | "device-id" | "ucan";
3273
3309
  token: string;
3274
3310
  };
3311
+ ownerHandle: string;
3312
+ appSlug: string;
3313
+ chatId?: string | undefined;
3275
3314
  }>, {
3276
- type: "vibes.diy.res-report-top-vibes-by-members";
3277
- generatedAt: string;
3278
- rows: {
3279
- ownerHandle: string;
3280
- appSlug: string;
3281
- memberCount: number;
3315
+ type: "vibes.diy.res-get-chat-details";
3316
+ chatId?: string | undefined;
3317
+ ownerHandle: string;
3318
+ appSlug: string;
3319
+ prompts: {
3320
+ prompt: string;
3321
+ fsId: string;
3322
+ created: string;
3282
3323
  }[];
3283
3324
  } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
3284
3325
  type: "MessageEvent";
@@ -3306,25 +3347,24 @@ export declare const chatHandlers: readonly [import("@adviser/cement").EventoHan
3306
3347
  error?: unknown;
3307
3348
  };
3308
3349
  }, import("@vibes.diy/api-types").MsgBase<{
3309
- type: "vibes.diy.req-report-attribution-referrers";
3350
+ type: "vibes.diy.req-list-application-chats";
3310
3351
  auth: {
3311
3352
  type: "clerk" | "device-id" | "ucan";
3312
3353
  token: string;
3313
3354
  };
3314
- reqPath?: string | undefined;
3355
+ appSlug?: string | undefined;
3356
+ ownerHandle?: string | undefined;
3357
+ limit?: number | undefined;
3358
+ cursor?: string | undefined;
3315
3359
  }>, {
3316
- type: "vibes.diy.res-report-attribution-referrers";
3317
- generatedAt: string;
3318
- rows: {
3319
- refHost: string;
3320
- refPath: string;
3321
- reqPath: string;
3322
- total: number;
3323
- }[];
3324
- legacyVibeRows: {
3325
- reqPath: string;
3326
- total: number;
3360
+ type: "vibes.diy.res-list-application-chats";
3361
+ items: {
3362
+ chatId: string;
3363
+ appSlug: string;
3364
+ ownerHandle: string;
3365
+ created: string;
3327
3366
  }[];
3367
+ nextCursor?: string | undefined;
3328
3368
  } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
3329
3369
  type: "MessageEvent";
3330
3370
  event: {
@@ -3351,61 +3391,23 @@ export declare const chatHandlers: readonly [import("@adviser/cement").EventoHan
3351
3391
  error?: unknown;
3352
3392
  };
3353
3393
  }, import("@vibes.diy/api-types").MsgBase<{
3354
- type: "vibes.diy.req-report-campaign-health";
3394
+ type: "vibes.diy.req-fork-app";
3355
3395
  auth: {
3356
3396
  type: "clerk" | "device-id" | "ucan";
3357
3397
  token: string;
3358
3398
  };
3359
- days?: string | undefined;
3360
- since?: string | undefined;
3399
+ srcUserSlug: string;
3400
+ srcAppSlug: string;
3401
+ srcFsId?: string | undefined;
3402
+ skipChat?: boolean | undefined;
3361
3403
  }>, {
3362
- type: "vibes.diy.res-report-campaign-health";
3363
- generatedAt: string;
3364
- dateLabel: string;
3365
- ranked: {
3366
- campaign_name: string;
3367
- campaign_id: string;
3368
- impressions: string;
3369
- clicks: string;
3370
- spend: string;
3371
- ctr?: string | undefined;
3372
- cpc?: string | undefined;
3373
- reach?: string | undefined;
3374
- actions?: {
3375
- action_type: string;
3376
- value: string;
3377
- }[] | undefined;
3378
- date_start?: string | undefined;
3379
- date_stop?: string | undefined;
3380
- ctaClicks?: number | undefined;
3381
- ctaClicksIsShared?: boolean | undefined;
3382
- directApp?: boolean | undefined;
3383
- costPerCtaClick?: number | undefined;
3384
- landingPath?: string | undefined;
3385
- effective_status?: string | undefined;
3386
- }[];
3387
- anomalies: {
3388
- duplicateNames: string[];
3389
- budgetOutliers: {
3390
- name: string;
3391
- spend: string;
3392
- medianSpend: string;
3393
- }[];
3394
- zeroSpend: string[];
3395
- lowLpvRatio: {
3396
- name: string;
3397
- clicks: number;
3398
- lpvs: number;
3399
- ratio: number;
3400
- }[];
3401
- pixel: {
3402
- lastFired?: string | undefined;
3403
- counts?: {
3404
- [x: string]: number;
3405
- } | undefined;
3406
- error?: string | undefined;
3407
- } | null;
3408
- };
3404
+ type: "vibes.diy.res-fork-app";
3405
+ ownerHandle: string;
3406
+ appSlug: string;
3407
+ chatId: string;
3408
+ srcFsId: string;
3409
+ srcUserSlug: string;
3410
+ srcAppSlug: string;
3409
3411
  } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
3410
3412
  type: "MessageEvent";
3411
3413
  event: {
@@ -3432,23 +3434,21 @@ export declare const chatHandlers: readonly [import("@adviser/cement").EventoHan
3432
3434
  error?: unknown;
3433
3435
  };
3434
3436
  }, import("@vibes.diy/api-types").MsgBase<{
3435
- type: "vibes.diy.req-report-campaign-ad-previews";
3437
+ type: "vibes.diy.req-set-mode-fs";
3436
3438
  auth: {
3437
3439
  type: "clerk" | "device-id" | "ucan";
3438
3440
  token: string;
3439
3441
  };
3440
- campaign_id: string;
3441
- format?: string | undefined;
3442
+ fsId: string;
3443
+ appSlug: string;
3444
+ ownerHandle: string;
3445
+ mode: "dev" | "production";
3442
3446
  }>, {
3443
- type: "vibes.diy.res-report-campaign-ad-previews";
3444
- campaign_id: string;
3445
- ads: {
3446
- id: string;
3447
- name: string;
3448
- effective_status: string;
3449
- previewSrc?: string | undefined;
3450
- error?: string | undefined;
3451
- }[];
3447
+ type: "vibes.diy.res-set-mode-fs";
3448
+ fsId: string;
3449
+ appSlug: string;
3450
+ ownerHandle: string;
3451
+ mode: "dev" | "production";
3452
3452
  } | import("@vibes.diy/api-types").VibesDiyError>];
3453
3453
  export declare const imgGenAppSessionStopgapHandlers: readonly [import("@adviser/cement").EventoHandler<{
3454
3454
  type: "MessageEvent";