@vibes.diy/api-svc 2.5.14 → 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.
@@ -1904,251 +1904,26 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
1904
1904
  error?: unknown;
1905
1905
  };
1906
1906
  }, import("@vibes.diy/api-types").MsgBase<{
1907
- appSlug?: string | undefined;
1908
- ownerHandle?: string | undefined;
1909
- type: "vibes.diy.req-ensure-app-slug";
1910
- auth: {
1911
- type: "clerk" | "device-id" | "ucan";
1912
- token: string;
1913
- };
1914
- mode: "dev" | "production";
1915
- env?: Record<string, string> | undefined;
1916
- fileSystem: ({
1917
- filename: string;
1918
- entryPoint?: boolean | undefined;
1919
- mimetype?: string | undefined;
1920
- type: "code-block";
1921
- lang: string;
1922
- content: string;
1923
- } | {
1924
- filename: string;
1925
- entryPoint?: boolean | undefined;
1926
- mimetype?: string | undefined;
1927
- type: "code-ref";
1928
- refId: string;
1929
- } | {
1930
- filename: string;
1931
- entryPoint?: boolean | undefined;
1932
- mimetype?: string | undefined;
1933
- type: "str-asset-block";
1934
- content: string;
1935
- } | {
1936
- filename: string;
1937
- entryPoint?: boolean | undefined;
1938
- mimetype?: string | undefined;
1939
- type: "str-asset-ref";
1940
- refId: string;
1941
- } | {
1942
- filename: string;
1943
- entryPoint?: boolean | undefined;
1944
- mimetype?: string | undefined;
1945
- type: "uint8-asset-block";
1946
- content: Uint8Array<ArrayBuffer>;
1947
- } | {
1948
- filename: string;
1949
- entryPoint?: boolean | undefined;
1950
- mimetype?: string | undefined;
1951
- type: "uint8-asset-ref";
1952
- refId: string;
1953
- })[];
1954
- } | {
1955
- appSlug?: string | undefined;
1956
- ownerHandle: string;
1957
- type: "vibes.diy.req-ensure-app-slug";
1958
- auth: {
1959
- type: "clerk" | "device-id" | "ucan";
1960
- token: string;
1961
- };
1962
- mode: "dev" | "production";
1963
- env?: Record<string, string> | undefined;
1964
- fileSystem: ({
1965
- filename: string;
1966
- entryPoint?: boolean | undefined;
1967
- mimetype?: string | undefined;
1968
- type: "code-block";
1969
- lang: string;
1970
- content: string;
1971
- } | {
1972
- filename: string;
1973
- entryPoint?: boolean | undefined;
1974
- mimetype?: string | undefined;
1975
- type: "code-ref";
1976
- refId: string;
1977
- } | {
1978
- filename: string;
1979
- entryPoint?: boolean | undefined;
1980
- mimetype?: string | undefined;
1981
- type: "str-asset-block";
1982
- content: string;
1983
- } | {
1984
- filename: string;
1985
- entryPoint?: boolean | undefined;
1986
- mimetype?: string | undefined;
1987
- type: "str-asset-ref";
1988
- refId: string;
1989
- } | {
1990
- filename: string;
1991
- entryPoint?: boolean | undefined;
1992
- mimetype?: string | undefined;
1993
- type: "uint8-asset-block";
1994
- content: Uint8Array<ArrayBuffer>;
1995
- } | {
1996
- filename: string;
1997
- entryPoint?: boolean | undefined;
1998
- mimetype?: string | undefined;
1999
- type: "uint8-asset-ref";
2000
- refId: string;
2001
- })[];
2002
- } | {
2003
- appSlug: string;
2004
- ownerHandle?: string | undefined;
2005
- type: "vibes.diy.req-ensure-app-slug";
2006
- auth: {
2007
- type: "clerk" | "device-id" | "ucan";
2008
- token: string;
2009
- };
2010
- mode: "dev" | "production";
2011
- env?: Record<string, string> | undefined;
2012
- fileSystem: ({
2013
- filename: string;
2014
- entryPoint?: boolean | undefined;
2015
- mimetype?: string | undefined;
2016
- type: "code-block";
2017
- lang: string;
2018
- content: string;
2019
- } | {
2020
- filename: string;
2021
- entryPoint?: boolean | undefined;
2022
- mimetype?: string | undefined;
2023
- type: "code-ref";
2024
- refId: string;
2025
- } | {
2026
- filename: string;
2027
- entryPoint?: boolean | undefined;
2028
- mimetype?: string | undefined;
2029
- type: "str-asset-block";
2030
- content: string;
2031
- } | {
2032
- filename: string;
2033
- entryPoint?: boolean | undefined;
2034
- mimetype?: string | undefined;
2035
- type: "str-asset-ref";
2036
- refId: string;
2037
- } | {
2038
- filename: string;
2039
- entryPoint?: boolean | undefined;
2040
- mimetype?: string | undefined;
2041
- type: "uint8-asset-block";
2042
- content: Uint8Array<ArrayBuffer>;
2043
- } | {
2044
- filename: string;
2045
- entryPoint?: boolean | undefined;
2046
- mimetype?: string | undefined;
2047
- type: "uint8-asset-ref";
2048
- refId: string;
2049
- })[];
2050
- } | {
2051
- appSlug: string;
2052
- ownerHandle: string;
2053
- type: "vibes.diy.req-ensure-app-slug";
1907
+ type: "vibes.diy.req-list-user-slug-bindings";
2054
1908
  auth: {
2055
1909
  type: "clerk" | "device-id" | "ucan";
2056
1910
  token: string;
2057
1911
  };
2058
- mode: "dev" | "production";
2059
- env?: Record<string, string> | undefined;
2060
- fileSystem: ({
2061
- filename: string;
2062
- entryPoint?: boolean | undefined;
2063
- mimetype?: string | undefined;
2064
- type: "code-block";
2065
- lang: string;
2066
- content: string;
2067
- } | {
2068
- filename: string;
2069
- entryPoint?: boolean | undefined;
2070
- mimetype?: string | undefined;
2071
- type: "code-ref";
2072
- refId: string;
2073
- } | {
2074
- filename: string;
2075
- entryPoint?: boolean | undefined;
2076
- mimetype?: string | undefined;
2077
- type: "str-asset-block";
2078
- content: string;
2079
- } | {
2080
- filename: string;
2081
- entryPoint?: boolean | undefined;
2082
- mimetype?: string | undefined;
2083
- type: "str-asset-ref";
2084
- refId: string;
2085
- } | {
2086
- filename: string;
2087
- entryPoint?: boolean | undefined;
2088
- mimetype?: string | undefined;
2089
- type: "uint8-asset-block";
2090
- content: Uint8Array<ArrayBuffer>;
2091
- } | {
2092
- filename: string;
2093
- entryPoint?: boolean | undefined;
2094
- mimetype?: string | undefined;
2095
- type: "uint8-asset-ref";
2096
- refId: string;
2097
- })[];
2098
1912
  }>, {
2099
- appSlug: string;
2100
- ownerHandle: string;
2101
- mode: "dev" | "production";
2102
- fsId: string;
2103
- type: "vibes.diy.res-ensure-app-slug";
2104
- env: Record<string, string>;
2105
- fileSystem: {
2106
- fileName: string;
2107
- mimeType: string;
2108
- assetId: string;
2109
- assetURI: string;
2110
- transform?: {
2111
- type: "jsx-to-js";
2112
- transformedAssetId: string;
2113
- } | {
2114
- type: "imports";
2115
- importMapAssetId: string;
2116
- } | {
2117
- type: "import-map";
2118
- fromAssetIds: string[];
2119
- } | {
2120
- type: "transformed";
2121
- action: "jsx-to-js";
2122
- transformedAssetId: string;
2123
- } | undefined;
2124
- entryPoint?: boolean | undefined;
2125
- size: number;
2126
- }[];
2127
- } | {
2128
1913
  type: "vibes.diy.res-error";
2129
1914
  error: {
2130
1915
  message: string;
2131
- code: "require-login";
2132
- };
2133
- } | {
2134
- type: "vibes.diy.res-error";
2135
- error: {
2136
- message: string;
2137
- code: "user-slug-invalid";
2138
- };
2139
- } | {
2140
- type: "vibes.diy.res-error";
2141
- error: {
2142
- message: string;
2143
- code: "app-slug-invalid";
1916
+ code?: string | undefined;
2144
1917
  };
2145
1918
  } | {
2146
- type: "vibes.diy.res-error";
2147
- error: {
2148
- message: string;
2149
- code: "max-app-slugs-reached";
2150
- };
2151
- } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
1919
+ type: "vibes.diy.res-list-user-slug-bindings";
1920
+ items: {
1921
+ ownerHandle: string;
1922
+ tenant: string;
1923
+ created: string;
1924
+ appSlugCount: number;
1925
+ }[];
1926
+ }>, import("@adviser/cement").EventoHandler<{
2152
1927
  type: "MessageEvent";
2153
1928
  event: {
2154
1929
  data?: unknown;
@@ -2174,24 +1949,24 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
2174
1949
  error?: unknown;
2175
1950
  };
2176
1951
  }, import("@vibes.diy/api-types").MsgBase<{
2177
- type: "vibes.diy.req-open-chat";
1952
+ type: "vibes.diy.req-create-user-slug-binding";
2178
1953
  auth: {
2179
1954
  type: "clerk" | "device-id" | "ucan";
2180
1955
  token: string;
2181
1956
  };
2182
- appSlug?: string | undefined;
2183
1957
  ownerHandle?: string | undefined;
2184
- chatId?: string | undefined;
2185
- prompt?: string | undefined;
2186
- dryRun?: boolean | undefined;
2187
- mode: "app" | "chat" | "fs-set" | "fs-update" | "img";
2188
1958
  }>, {
2189
- type: "vibes.diy.res-open-chat";
2190
- appSlug: string;
1959
+ type: "vibes.diy.res-error";
1960
+ error: {
1961
+ message: string;
1962
+ code?: string | undefined;
1963
+ };
1964
+ } | {
1965
+ type: "vibes.diy.res-create-user-slug-binding";
2191
1966
  ownerHandle: string;
2192
- chatId: string;
2193
- mode: "app" | "chat" | "fs-set" | "fs-update" | "img";
2194
- } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
1967
+ tenant: string;
1968
+ created: string;
1969
+ }>, import("@adviser/cement").EventoHandler<{
2195
1970
  type: "MessageEvent";
2196
1971
  event: {
2197
1972
  data?: unknown;
@@ -2217,268 +1992,127 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
2217
1992
  error?: unknown;
2218
1993
  };
2219
1994
  }, import("@vibes.diy/api-types").MsgBase<{
2220
- type: "vibes.diy.req-prompt-chat-section";
2221
- mode: "chat";
1995
+ type: "vibes.diy.req-delete-user-slug-binding";
2222
1996
  auth: {
2223
1997
  type: "clerk" | "device-id" | "ucan";
2224
1998
  token: string;
2225
1999
  };
2226
- chatId: string;
2227
- outerTid: string;
2228
- prompt: {
2229
- model?: string | undefined;
2230
- messages: {
2231
- role: "assistant" | "system" | "user";
2232
- content: ({
2233
- type: "text";
2234
- text: string;
2235
- } | {
2236
- type: "image_url";
2237
- image_url: {
2238
- url: string;
2239
- };
2240
- })[];
2241
- }[];
2242
- stream?: boolean | undefined;
2243
- temperature?: number | undefined;
2244
- max_tokens?: number | undefined;
2245
- top_p?: number | undefined;
2246
- logprobs?: boolean | undefined;
2247
- top_logsprobs?: number | undefined;
2248
- frequency_penalty?: number | undefined;
2249
- presence_penalty?: number | undefined;
2250
- stop?: string | string[] | undefined;
2251
- verbosity?: "high" | "low" | "max" | "medium" | undefined;
2252
- modalities?: string[] | undefined;
2000
+ ownerHandle: string;
2001
+ }>, {
2002
+ type: "vibes.diy.res-error";
2003
+ error: {
2004
+ message: string;
2005
+ code?: string | undefined;
2253
2006
  };
2254
- dryRun?: boolean | undefined;
2255
- dryRunPreAllocate?: boolean | undefined;
2256
- ownerHandle?: string | undefined;
2257
- appSlug?: string | undefined;
2258
- selected?: {
2259
- kind: "version";
2260
- fsId: string;
2261
- } | {
2262
- kind: "draft";
2263
- files: ({
2264
- filename: string;
2265
- entryPoint?: boolean | undefined;
2266
- mimetype?: string | undefined;
2267
- type: "code-block";
2268
- lang: string;
2269
- content: string;
2270
- } | {
2271
- filename: string;
2272
- entryPoint?: boolean | undefined;
2273
- mimetype?: string | undefined;
2274
- type: "code-ref";
2275
- refId: string;
2276
- } | {
2277
- filename: string;
2278
- entryPoint?: boolean | undefined;
2279
- mimetype?: string | undefined;
2280
- type: "str-asset-block";
2281
- content: string;
2282
- } | {
2283
- filename: string;
2284
- entryPoint?: boolean | undefined;
2285
- mimetype?: string | undefined;
2286
- type: "str-asset-ref";
2287
- refId: string;
2288
- } | {
2289
- filename: string;
2290
- entryPoint?: boolean | undefined;
2291
- mimetype?: string | undefined;
2292
- type: "uint8-asset-block";
2293
- content: Uint8Array<ArrayBuffer>;
2294
- } | {
2295
- filename: string;
2296
- entryPoint?: boolean | undefined;
2297
- mimetype?: string | undefined;
2298
- type: "uint8-asset-ref";
2299
- refId: string;
2300
- })[];
2301
- } | undefined;
2302
- slots?: {
2303
- original?: "off" | "on" | undefined;
2304
- selected?: "off" | "on" | undefined;
2305
- last_edit?: "off" | "on" | undefined;
2306
- previous?: "off" | "on" | undefined;
2307
- compaction?: "off" | "on" | undefined;
2308
- } | undefined;
2309
- focusPath?: string | undefined;
2310
2007
  } | {
2311
- type: "vibes.diy.req-prompt-chat-section";
2312
- mode: "app";
2313
- auth: {
2314
- type: "clerk" | "device-id" | "ucan";
2315
- token: string;
2008
+ type: "vibes.diy.res-delete-user-slug-binding";
2009
+ ownerHandle: string;
2010
+ deleted: boolean;
2011
+ }>, import("@adviser/cement").EventoHandler<{
2012
+ type: "MessageEvent";
2013
+ event: {
2014
+ data?: unknown;
2015
+ origin?: string | null | undefined;
2016
+ lastEventId?: string | undefined;
2017
+ source?: unknown;
2018
+ ports?: unknown;
2316
2019
  };
2317
- chatId: string;
2318
- outerTid: string;
2319
- prompt: {
2320
- model?: string | undefined;
2321
- messages: {
2322
- role: "assistant" | "system" | "user";
2323
- content: ({
2324
- type: "text";
2325
- text: string;
2326
- } | {
2327
- type: "image_url";
2328
- image_url: {
2329
- url: string;
2330
- };
2331
- })[];
2332
- }[];
2333
- stream?: boolean | undefined;
2334
- temperature?: number | undefined;
2335
- max_tokens?: number | undefined;
2336
- top_p?: number | undefined;
2337
- logprobs?: boolean | undefined;
2338
- top_logsprobs?: number | undefined;
2339
- frequency_penalty?: number | undefined;
2340
- presence_penalty?: number | undefined;
2341
- stop?: string | string[] | undefined;
2342
- verbosity?: "high" | "low" | "max" | "medium" | undefined;
2343
- modalities?: string[] | undefined;
2020
+ } | {
2021
+ type: "CloseEvent";
2022
+ event: {
2023
+ wasClean: boolean;
2024
+ code: number;
2025
+ reason: string;
2344
2026
  };
2345
2027
  } | {
2346
- type: "vibes.diy.req-prompt-chat-section";
2347
- mode: "img";
2348
- auth: {
2349
- type: "clerk" | "device-id" | "ucan";
2350
- token: string;
2028
+ type: "ErrorEvent";
2029
+ event: {
2030
+ message?: string | undefined;
2031
+ filename?: string | undefined;
2032
+ lineno?: number | undefined;
2033
+ colno?: number | undefined;
2034
+ error?: unknown;
2351
2035
  };
2352
- chatId: string;
2353
- outerTid: string;
2354
- prompt: {
2355
- model?: string | undefined;
2356
- messages: {
2357
- role: "assistant" | "system" | "user";
2358
- content: ({
2359
- type: "text";
2360
- text: string;
2361
- } | {
2362
- type: "image_url";
2363
- image_url: {
2364
- url: string;
2365
- };
2366
- })[];
2367
- }[];
2368
- stream?: boolean | undefined;
2369
- temperature?: number | undefined;
2370
- max_tokens?: number | undefined;
2371
- top_p?: number | undefined;
2372
- logprobs?: boolean | undefined;
2373
- top_logsprobs?: number | undefined;
2374
- frequency_penalty?: number | undefined;
2375
- presence_penalty?: number | undefined;
2376
- stop?: string | string[] | undefined;
2377
- verbosity?: "high" | "low" | "max" | "medium" | undefined;
2378
- modalities?: string[] | undefined;
2036
+ }, 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<{
2037
+ type: "MessageEvent";
2038
+ event: {
2039
+ data?: unknown;
2040
+ origin?: string | null | undefined;
2041
+ lastEventId?: string | undefined;
2042
+ source?: unknown;
2043
+ ports?: unknown;
2379
2044
  };
2380
- inputImageBase64?: string | undefined;
2381
2045
  } | {
2382
- type: "vibes.diy.req-prompt-chat-section";
2383
- mode: "fs-update";
2046
+ type: "CloseEvent";
2047
+ event: {
2048
+ wasClean: boolean;
2049
+ code: number;
2050
+ reason: string;
2051
+ };
2052
+ } | {
2053
+ type: "ErrorEvent";
2054
+ event: {
2055
+ message?: string | undefined;
2056
+ filename?: string | undefined;
2057
+ lineno?: number | undefined;
2058
+ colno?: number | undefined;
2059
+ error?: unknown;
2060
+ };
2061
+ }, import("@vibes.diy/api-types").MsgBase<{
2062
+ type: "vibes.diy.req-report-growth-memberships";
2384
2063
  auth: {
2385
2064
  type: "clerk" | "device-id" | "ucan";
2386
2065
  token: string;
2387
2066
  };
2388
- chatId: string;
2389
- outerTid: string;
2390
- refFsId?: string | undefined;
2391
- fsUpdate: {
2392
- update: ({
2393
- filename: string;
2394
- entryPoint?: boolean | undefined;
2395
- mimetype?: string | undefined;
2396
- type: "code-block";
2397
- lang: string;
2398
- content: string;
2399
- } | {
2400
- filename: string;
2401
- entryPoint?: boolean | undefined;
2402
- mimetype?: string | undefined;
2403
- type: "code-ref";
2404
- refId: string;
2405
- } | {
2406
- filename: string;
2407
- entryPoint?: boolean | undefined;
2408
- mimetype?: string | undefined;
2409
- type: "str-asset-block";
2410
- content: string;
2411
- } | {
2412
- filename: string;
2413
- entryPoint?: boolean | undefined;
2414
- mimetype?: string | undefined;
2415
- type: "str-asset-ref";
2416
- refId: string;
2417
- } | {
2418
- filename: string;
2419
- entryPoint?: boolean | undefined;
2420
- mimetype?: string | undefined;
2421
- type: "uint8-asset-block";
2422
- content: Uint8Array<ArrayBuffer>;
2423
- } | {
2424
- filename: string;
2425
- entryPoint?: boolean | undefined;
2426
- mimetype?: string | undefined;
2427
- type: "uint8-asset-ref";
2428
- refId: string;
2429
- })[];
2430
- remove: {
2431
- filename: string;
2432
- }[];
2067
+ }>, {
2068
+ type: "vibes.diy.res-report-growth-memberships";
2069
+ generatedAt: string;
2070
+ total: number;
2071
+ days: {
2072
+ day: string;
2073
+ memberships: number;
2074
+ newMembers: string[];
2075
+ }[];
2076
+ } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2077
+ type: "MessageEvent";
2078
+ event: {
2079
+ data?: unknown;
2080
+ origin?: string | null | undefined;
2081
+ lastEventId?: string | undefined;
2082
+ source?: unknown;
2083
+ ports?: unknown;
2433
2084
  };
2434
2085
  } | {
2435
- type: "vibes.diy.req-prompt-chat-section";
2436
- mode: "fs-set";
2086
+ type: "CloseEvent";
2087
+ event: {
2088
+ wasClean: boolean;
2089
+ code: number;
2090
+ reason: string;
2091
+ };
2092
+ } | {
2093
+ type: "ErrorEvent";
2094
+ event: {
2095
+ message?: string | undefined;
2096
+ filename?: string | undefined;
2097
+ lineno?: number | undefined;
2098
+ colno?: number | undefined;
2099
+ error?: unknown;
2100
+ };
2101
+ }, import("@vibes.diy/api-types").MsgBase<{
2102
+ type: "vibes.diy.req-report-growth-vibes-with-data";
2437
2103
  auth: {
2438
2104
  type: "clerk" | "device-id" | "ucan";
2439
2105
  token: string;
2440
2106
  };
2441
- chatId: string;
2442
- outerTid: string;
2443
- fsSet: ({
2444
- filename: string;
2445
- entryPoint?: boolean | undefined;
2446
- mimetype?: string | undefined;
2447
- type: "code-block";
2448
- lang: string;
2449
- content: string;
2450
- } | {
2451
- filename: string;
2452
- entryPoint?: boolean | undefined;
2453
- mimetype?: string | undefined;
2454
- type: "code-ref";
2455
- refId: string;
2456
- } | {
2457
- filename: string;
2458
- entryPoint?: boolean | undefined;
2459
- mimetype?: string | undefined;
2460
- type: "str-asset-block";
2461
- content: string;
2462
- } | {
2463
- filename: string;
2464
- entryPoint?: boolean | undefined;
2465
- mimetype?: string | undefined;
2466
- type: "str-asset-ref";
2467
- refId: string;
2468
- } | {
2469
- filename: string;
2470
- entryPoint?: boolean | undefined;
2471
- mimetype?: string | undefined;
2472
- type: "uint8-asset-block";
2473
- content: Uint8Array<ArrayBuffer>;
2474
- } | {
2475
- filename: string;
2476
- entryPoint?: boolean | undefined;
2477
- mimetype?: string | undefined;
2478
- type: "uint8-asset-ref";
2479
- refId: string;
2480
- })[];
2481
- }>, import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2107
+ }>, {
2108
+ type: "vibes.diy.res-report-growth-vibes-with-data";
2109
+ generatedAt: string;
2110
+ total: number;
2111
+ days: {
2112
+ day: string;
2113
+ vibes: number;
2114
+ }[];
2115
+ } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2482
2116
  type: "MessageEvent";
2483
2117
  event: {
2484
2118
  data?: unknown;
@@ -2504,23 +2138,17 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
2504
2138
  error?: unknown;
2505
2139
  };
2506
2140
  }, import("@vibes.diy/api-types").MsgBase<{
2507
- type: "vibes.diy.req-get-chat-details";
2141
+ type: "vibes.diy.req-report-active-members";
2508
2142
  auth: {
2509
2143
  type: "clerk" | "device-id" | "ucan";
2510
2144
  token: string;
2511
2145
  };
2512
- ownerHandle: string;
2513
- appSlug: string;
2514
- chatId?: string | undefined;
2515
2146
  }>, {
2516
- type: "vibes.diy.res-get-chat-details";
2517
- chatId?: string | undefined;
2518
- ownerHandle: string;
2519
- appSlug: string;
2520
- prompts: {
2521
- prompt: string;
2522
- fsId: string;
2523
- created: string;
2147
+ type: "vibes.diy.res-report-active-members";
2148
+ generatedAt: string;
2149
+ days: {
2150
+ day: string;
2151
+ count: number;
2524
2152
  }[];
2525
2153
  } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2526
2154
  type: "MessageEvent";
@@ -2548,24 +2176,19 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
2548
2176
  error?: unknown;
2549
2177
  };
2550
2178
  }, import("@vibes.diy/api-types").MsgBase<{
2551
- type: "vibes.diy.req-list-application-chats";
2179
+ type: "vibes.diy.req-report-top-vibes-by-members";
2552
2180
  auth: {
2553
2181
  type: "clerk" | "device-id" | "ucan";
2554
2182
  token: string;
2555
2183
  };
2556
- appSlug?: string | undefined;
2557
- ownerHandle?: string | undefined;
2558
- limit?: number | undefined;
2559
- cursor?: string | undefined;
2560
2184
  }>, {
2561
- type: "vibes.diy.res-list-application-chats";
2562
- items: {
2563
- chatId: string;
2564
- appSlug: string;
2185
+ type: "vibes.diy.res-report-top-vibes-by-members";
2186
+ generatedAt: string;
2187
+ rows: {
2565
2188
  ownerHandle: string;
2566
- created: string;
2189
+ appSlug: string;
2190
+ memberCount: number;
2567
2191
  }[];
2568
- nextCursor?: string | undefined;
2569
2192
  } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2570
2193
  type: "MessageEvent";
2571
2194
  event: {
@@ -2592,23 +2215,25 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
2592
2215
  error?: unknown;
2593
2216
  };
2594
2217
  }, import("@vibes.diy/api-types").MsgBase<{
2595
- type: "vibes.diy.req-fork-app";
2218
+ type: "vibes.diy.req-report-attribution-referrers";
2596
2219
  auth: {
2597
2220
  type: "clerk" | "device-id" | "ucan";
2598
2221
  token: string;
2599
2222
  };
2600
- srcUserSlug: string;
2601
- srcAppSlug: string;
2602
- srcFsId?: string | undefined;
2603
- skipChat?: boolean | undefined;
2223
+ reqPath?: string | undefined;
2604
2224
  }>, {
2605
- type: "vibes.diy.res-fork-app";
2606
- ownerHandle: string;
2607
- appSlug: string;
2608
- chatId: string;
2609
- srcFsId: string;
2610
- srcUserSlug: string;
2611
- srcAppSlug: string;
2225
+ type: "vibes.diy.res-report-attribution-referrers";
2226
+ generatedAt: string;
2227
+ rows: {
2228
+ refHost: string;
2229
+ refPath: string;
2230
+ reqPath: string;
2231
+ total: number;
2232
+ }[];
2233
+ legacyVibeRows: {
2234
+ reqPath: string;
2235
+ total: number;
2236
+ }[];
2612
2237
  } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2613
2238
  type: "MessageEvent";
2614
2239
  event: {
@@ -2635,21 +2260,61 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
2635
2260
  error?: unknown;
2636
2261
  };
2637
2262
  }, import("@vibes.diy/api-types").MsgBase<{
2638
- type: "vibes.diy.req-set-mode-fs";
2263
+ type: "vibes.diy.req-report-campaign-health";
2639
2264
  auth: {
2640
2265
  type: "clerk" | "device-id" | "ucan";
2641
2266
  token: string;
2642
2267
  };
2643
- fsId: string;
2644
- appSlug: string;
2645
- ownerHandle: string;
2646
- mode: "dev" | "production";
2268
+ days?: string | undefined;
2269
+ since?: string | undefined;
2647
2270
  }>, {
2648
- type: "vibes.diy.res-set-mode-fs";
2649
- fsId: string;
2650
- appSlug: string;
2651
- ownerHandle: string;
2652
- mode: "dev" | "production";
2271
+ type: "vibes.diy.res-report-campaign-health";
2272
+ generatedAt: string;
2273
+ dateLabel: string;
2274
+ ranked: {
2275
+ campaign_name: string;
2276
+ campaign_id: string;
2277
+ impressions: string;
2278
+ clicks: string;
2279
+ spend: string;
2280
+ ctr?: string | undefined;
2281
+ cpc?: string | undefined;
2282
+ reach?: string | undefined;
2283
+ actions?: {
2284
+ action_type: string;
2285
+ value: string;
2286
+ }[] | undefined;
2287
+ date_start?: string | undefined;
2288
+ date_stop?: string | undefined;
2289
+ ctaClicks?: number | undefined;
2290
+ ctaClicksIsShared?: boolean | undefined;
2291
+ directApp?: boolean | undefined;
2292
+ costPerCtaClick?: number | undefined;
2293
+ landingPath?: string | undefined;
2294
+ effective_status?: string | undefined;
2295
+ }[];
2296
+ anomalies: {
2297
+ duplicateNames: string[];
2298
+ budgetOutliers: {
2299
+ name: string;
2300
+ spend: string;
2301
+ medianSpend: string;
2302
+ }[];
2303
+ zeroSpend: string[];
2304
+ lowLpvRatio: {
2305
+ name: string;
2306
+ clicks: number;
2307
+ lpvs: number;
2308
+ ratio: number;
2309
+ }[];
2310
+ pixel: {
2311
+ lastFired?: string | undefined;
2312
+ counts?: {
2313
+ [x: string]: number;
2314
+ } | undefined;
2315
+ error?: string | undefined;
2316
+ } | null;
2317
+ };
2653
2318
  } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2654
2319
  type: "MessageEvent";
2655
2320
  event: {
@@ -2675,7 +2340,25 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
2675
2340
  colno?: number | undefined;
2676
2341
  error?: unknown;
2677
2342
  };
2678
- }, 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<{
2343
+ }, import("@vibes.diy/api-types").MsgBase<{
2344
+ type: "vibes.diy.req-report-campaign-ad-previews";
2345
+ auth: {
2346
+ type: "clerk" | "device-id" | "ucan";
2347
+ token: string;
2348
+ };
2349
+ campaign_id: string;
2350
+ format?: string | undefined;
2351
+ }>, {
2352
+ type: "vibes.diy.res-report-campaign-ad-previews";
2353
+ campaign_id: string;
2354
+ ads: {
2355
+ id: string;
2356
+ name: string;
2357
+ effective_status: string;
2358
+ previewSrc?: string | undefined;
2359
+ error?: string | undefined;
2360
+ }[];
2361
+ } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2679
2362
  type: "MessageEvent";
2680
2363
  event: {
2681
2364
  data?: unknown;
@@ -2701,26 +2384,251 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
2701
2384
  error?: unknown;
2702
2385
  };
2703
2386
  }, import("@vibes.diy/api-types").MsgBase<{
2704
- type: "vibes.diy.req-list-user-slug-bindings";
2387
+ appSlug?: string | undefined;
2388
+ ownerHandle?: string | undefined;
2389
+ type: "vibes.diy.req-ensure-app-slug";
2390
+ auth: {
2391
+ type: "clerk" | "device-id" | "ucan";
2392
+ token: string;
2393
+ };
2394
+ mode: "dev" | "production";
2395
+ env?: Record<string, string> | undefined;
2396
+ fileSystem: ({
2397
+ filename: string;
2398
+ entryPoint?: boolean | undefined;
2399
+ mimetype?: string | undefined;
2400
+ type: "code-block";
2401
+ lang: string;
2402
+ content: string;
2403
+ } | {
2404
+ filename: string;
2405
+ entryPoint?: boolean | undefined;
2406
+ mimetype?: string | undefined;
2407
+ type: "code-ref";
2408
+ refId: string;
2409
+ } | {
2410
+ filename: string;
2411
+ entryPoint?: boolean | undefined;
2412
+ mimetype?: string | undefined;
2413
+ type: "str-asset-block";
2414
+ content: string;
2415
+ } | {
2416
+ filename: string;
2417
+ entryPoint?: boolean | undefined;
2418
+ mimetype?: string | undefined;
2419
+ type: "str-asset-ref";
2420
+ refId: string;
2421
+ } | {
2422
+ filename: string;
2423
+ entryPoint?: boolean | undefined;
2424
+ mimetype?: string | undefined;
2425
+ type: "uint8-asset-block";
2426
+ content: Uint8Array<ArrayBuffer>;
2427
+ } | {
2428
+ filename: string;
2429
+ entryPoint?: boolean | undefined;
2430
+ mimetype?: string | undefined;
2431
+ type: "uint8-asset-ref";
2432
+ refId: string;
2433
+ })[];
2434
+ } | {
2435
+ appSlug?: string | undefined;
2436
+ ownerHandle: string;
2437
+ type: "vibes.diy.req-ensure-app-slug";
2438
+ auth: {
2439
+ type: "clerk" | "device-id" | "ucan";
2440
+ token: string;
2441
+ };
2442
+ mode: "dev" | "production";
2443
+ env?: Record<string, string> | undefined;
2444
+ fileSystem: ({
2445
+ filename: string;
2446
+ entryPoint?: boolean | undefined;
2447
+ mimetype?: string | undefined;
2448
+ type: "code-block";
2449
+ lang: string;
2450
+ content: string;
2451
+ } | {
2452
+ filename: string;
2453
+ entryPoint?: boolean | undefined;
2454
+ mimetype?: string | undefined;
2455
+ type: "code-ref";
2456
+ refId: string;
2457
+ } | {
2458
+ filename: string;
2459
+ entryPoint?: boolean | undefined;
2460
+ mimetype?: string | undefined;
2461
+ type: "str-asset-block";
2462
+ content: string;
2463
+ } | {
2464
+ filename: string;
2465
+ entryPoint?: boolean | undefined;
2466
+ mimetype?: string | undefined;
2467
+ type: "str-asset-ref";
2468
+ refId: string;
2469
+ } | {
2470
+ filename: string;
2471
+ entryPoint?: boolean | undefined;
2472
+ mimetype?: string | undefined;
2473
+ type: "uint8-asset-block";
2474
+ content: Uint8Array<ArrayBuffer>;
2475
+ } | {
2476
+ filename: string;
2477
+ entryPoint?: boolean | undefined;
2478
+ mimetype?: string | undefined;
2479
+ type: "uint8-asset-ref";
2480
+ refId: string;
2481
+ })[];
2482
+ } | {
2483
+ appSlug: string;
2484
+ ownerHandle?: string | undefined;
2485
+ type: "vibes.diy.req-ensure-app-slug";
2486
+ auth: {
2487
+ type: "clerk" | "device-id" | "ucan";
2488
+ token: string;
2489
+ };
2490
+ mode: "dev" | "production";
2491
+ env?: Record<string, string> | undefined;
2492
+ fileSystem: ({
2493
+ filename: string;
2494
+ entryPoint?: boolean | undefined;
2495
+ mimetype?: string | undefined;
2496
+ type: "code-block";
2497
+ lang: string;
2498
+ content: string;
2499
+ } | {
2500
+ filename: string;
2501
+ entryPoint?: boolean | undefined;
2502
+ mimetype?: string | undefined;
2503
+ type: "code-ref";
2504
+ refId: string;
2505
+ } | {
2506
+ filename: string;
2507
+ entryPoint?: boolean | undefined;
2508
+ mimetype?: string | undefined;
2509
+ type: "str-asset-block";
2510
+ content: string;
2511
+ } | {
2512
+ filename: string;
2513
+ entryPoint?: boolean | undefined;
2514
+ mimetype?: string | undefined;
2515
+ type: "str-asset-ref";
2516
+ refId: string;
2517
+ } | {
2518
+ filename: string;
2519
+ entryPoint?: boolean | undefined;
2520
+ mimetype?: string | undefined;
2521
+ type: "uint8-asset-block";
2522
+ content: Uint8Array<ArrayBuffer>;
2523
+ } | {
2524
+ filename: string;
2525
+ entryPoint?: boolean | undefined;
2526
+ mimetype?: string | undefined;
2527
+ type: "uint8-asset-ref";
2528
+ refId: string;
2529
+ })[];
2530
+ } | {
2531
+ appSlug: string;
2532
+ ownerHandle: string;
2533
+ type: "vibes.diy.req-ensure-app-slug";
2705
2534
  auth: {
2706
2535
  type: "clerk" | "device-id" | "ucan";
2707
2536
  token: string;
2708
2537
  };
2709
- }>, {
2538
+ mode: "dev" | "production";
2539
+ env?: Record<string, string> | undefined;
2540
+ fileSystem: ({
2541
+ filename: string;
2542
+ entryPoint?: boolean | undefined;
2543
+ mimetype?: string | undefined;
2544
+ type: "code-block";
2545
+ lang: string;
2546
+ content: string;
2547
+ } | {
2548
+ filename: string;
2549
+ entryPoint?: boolean | undefined;
2550
+ mimetype?: string | undefined;
2551
+ type: "code-ref";
2552
+ refId: string;
2553
+ } | {
2554
+ filename: string;
2555
+ entryPoint?: boolean | undefined;
2556
+ mimetype?: string | undefined;
2557
+ type: "str-asset-block";
2558
+ content: string;
2559
+ } | {
2560
+ filename: string;
2561
+ entryPoint?: boolean | undefined;
2562
+ mimetype?: string | undefined;
2563
+ type: "str-asset-ref";
2564
+ refId: string;
2565
+ } | {
2566
+ filename: string;
2567
+ entryPoint?: boolean | undefined;
2568
+ mimetype?: string | undefined;
2569
+ type: "uint8-asset-block";
2570
+ content: Uint8Array<ArrayBuffer>;
2571
+ } | {
2572
+ filename: string;
2573
+ entryPoint?: boolean | undefined;
2574
+ mimetype?: string | undefined;
2575
+ type: "uint8-asset-ref";
2576
+ refId: string;
2577
+ })[];
2578
+ }>, {
2579
+ appSlug: string;
2580
+ ownerHandle: string;
2581
+ mode: "dev" | "production";
2582
+ fsId: string;
2583
+ type: "vibes.diy.res-ensure-app-slug";
2584
+ env: Record<string, string>;
2585
+ fileSystem: {
2586
+ fileName: string;
2587
+ mimeType: string;
2588
+ assetId: string;
2589
+ assetURI: string;
2590
+ transform?: {
2591
+ type: "jsx-to-js";
2592
+ transformedAssetId: string;
2593
+ } | {
2594
+ type: "imports";
2595
+ importMapAssetId: string;
2596
+ } | {
2597
+ type: "import-map";
2598
+ fromAssetIds: string[];
2599
+ } | {
2600
+ type: "transformed";
2601
+ action: "jsx-to-js";
2602
+ transformedAssetId: string;
2603
+ } | undefined;
2604
+ entryPoint?: boolean | undefined;
2605
+ size: number;
2606
+ }[];
2607
+ } | {
2608
+ type: "vibes.diy.res-error";
2609
+ error: {
2610
+ message: string;
2611
+ code: "require-login";
2612
+ };
2613
+ } | {
2614
+ type: "vibes.diy.res-error";
2615
+ error: {
2616
+ message: string;
2617
+ code: "user-slug-invalid";
2618
+ };
2619
+ } | {
2620
+ type: "vibes.diy.res-error";
2621
+ error: {
2622
+ message: string;
2623
+ code: "app-slug-invalid";
2624
+ };
2625
+ } | {
2710
2626
  type: "vibes.diy.res-error";
2711
2627
  error: {
2712
2628
  message: string;
2713
- code?: string | undefined;
2629
+ code: "max-app-slugs-reached";
2714
2630
  };
2715
- } | {
2716
- type: "vibes.diy.res-list-user-slug-bindings";
2717
- items: {
2718
- ownerHandle: string;
2719
- tenant: string;
2720
- created: string;
2721
- appSlugCount: number;
2722
- }[];
2723
- }>, import("@adviser/cement").EventoHandler<{
2631
+ } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2724
2632
  type: "MessageEvent";
2725
2633
  event: {
2726
2634
  data?: unknown;
@@ -2746,24 +2654,24 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
2746
2654
  error?: unknown;
2747
2655
  };
2748
2656
  }, import("@vibes.diy/api-types").MsgBase<{
2749
- type: "vibes.diy.req-create-user-slug-binding";
2657
+ type: "vibes.diy.req-open-chat";
2750
2658
  auth: {
2751
2659
  type: "clerk" | "device-id" | "ucan";
2752
2660
  token: string;
2753
2661
  };
2662
+ appSlug?: string | undefined;
2754
2663
  ownerHandle?: string | undefined;
2664
+ chatId?: string | undefined;
2665
+ prompt?: string | undefined;
2666
+ dryRun?: boolean | undefined;
2667
+ mode: "app" | "chat" | "fs-set" | "fs-update" | "img";
2755
2668
  }>, {
2756
- type: "vibes.diy.res-error";
2757
- error: {
2758
- message: string;
2759
- code?: string | undefined;
2760
- };
2761
- } | {
2762
- type: "vibes.diy.res-create-user-slug-binding";
2669
+ type: "vibes.diy.res-open-chat";
2670
+ appSlug: string;
2763
2671
  ownerHandle: string;
2764
- tenant: string;
2765
- created: string;
2766
- }>, import("@adviser/cement").EventoHandler<{
2672
+ chatId: string;
2673
+ mode: "app" | "chat" | "fs-set" | "fs-update" | "img";
2674
+ } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2767
2675
  type: "MessageEvent";
2768
2676
  event: {
2769
2677
  data?: unknown;
@@ -2789,140 +2697,268 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
2789
2697
  error?: unknown;
2790
2698
  };
2791
2699
  }, import("@vibes.diy/api-types").MsgBase<{
2792
- type: "vibes.diy.req-delete-user-slug-binding";
2700
+ type: "vibes.diy.req-prompt-chat-section";
2701
+ mode: "chat";
2793
2702
  auth: {
2794
2703
  type: "clerk" | "device-id" | "ucan";
2795
2704
  token: string;
2796
2705
  };
2797
- ownerHandle: string;
2798
- }>, {
2799
- type: "vibes.diy.res-error";
2800
- error: {
2801
- message: string;
2802
- code?: string | undefined;
2803
- };
2804
- } | {
2805
- type: "vibes.diy.res-delete-user-slug-binding";
2806
- ownerHandle: string;
2807
- deleted: boolean;
2808
- }>, import("@adviser/cement").EventoHandler<{
2809
- type: "MessageEvent";
2810
- event: {
2811
- data?: unknown;
2812
- origin?: string | null | undefined;
2813
- lastEventId?: string | undefined;
2814
- source?: unknown;
2815
- ports?: unknown;
2816
- };
2817
- } | {
2818
- type: "CloseEvent";
2819
- event: {
2820
- wasClean: boolean;
2821
- code: number;
2822
- reason: string;
2706
+ chatId: string;
2707
+ outerTid: string;
2708
+ prompt: {
2709
+ model?: string | undefined;
2710
+ messages: {
2711
+ role: "assistant" | "system" | "user";
2712
+ content: ({
2713
+ type: "text";
2714
+ text: string;
2715
+ } | {
2716
+ type: "image_url";
2717
+ image_url: {
2718
+ url: string;
2719
+ };
2720
+ })[];
2721
+ }[];
2722
+ stream?: boolean | undefined;
2723
+ temperature?: number | undefined;
2724
+ max_tokens?: number | undefined;
2725
+ top_p?: number | undefined;
2726
+ logprobs?: boolean | undefined;
2727
+ top_logsprobs?: number | undefined;
2728
+ frequency_penalty?: number | undefined;
2729
+ presence_penalty?: number | undefined;
2730
+ stop?: string | string[] | undefined;
2731
+ verbosity?: "high" | "low" | "max" | "medium" | undefined;
2732
+ modalities?: string[] | undefined;
2823
2733
  };
2734
+ dryRun?: boolean | undefined;
2735
+ dryRunPreAllocate?: boolean | undefined;
2736
+ ownerHandle?: string | undefined;
2737
+ appSlug?: string | undefined;
2738
+ selected?: {
2739
+ kind: "version";
2740
+ fsId: string;
2741
+ } | {
2742
+ kind: "draft";
2743
+ files: ({
2744
+ filename: string;
2745
+ entryPoint?: boolean | undefined;
2746
+ mimetype?: string | undefined;
2747
+ type: "code-block";
2748
+ lang: string;
2749
+ content: string;
2750
+ } | {
2751
+ filename: string;
2752
+ entryPoint?: boolean | undefined;
2753
+ mimetype?: string | undefined;
2754
+ type: "code-ref";
2755
+ refId: string;
2756
+ } | {
2757
+ filename: string;
2758
+ entryPoint?: boolean | undefined;
2759
+ mimetype?: string | undefined;
2760
+ type: "str-asset-block";
2761
+ content: string;
2762
+ } | {
2763
+ filename: string;
2764
+ entryPoint?: boolean | undefined;
2765
+ mimetype?: string | undefined;
2766
+ type: "str-asset-ref";
2767
+ refId: string;
2768
+ } | {
2769
+ filename: string;
2770
+ entryPoint?: boolean | undefined;
2771
+ mimetype?: string | undefined;
2772
+ type: "uint8-asset-block";
2773
+ content: Uint8Array<ArrayBuffer>;
2774
+ } | {
2775
+ filename: string;
2776
+ entryPoint?: boolean | undefined;
2777
+ mimetype?: string | undefined;
2778
+ type: "uint8-asset-ref";
2779
+ refId: string;
2780
+ })[];
2781
+ } | undefined;
2782
+ slots?: {
2783
+ original?: "off" | "on" | undefined;
2784
+ selected?: "off" | "on" | undefined;
2785
+ last_edit?: "off" | "on" | undefined;
2786
+ previous?: "off" | "on" | undefined;
2787
+ compaction?: "off" | "on" | undefined;
2788
+ } | undefined;
2789
+ focusPath?: string | undefined;
2824
2790
  } | {
2825
- type: "ErrorEvent";
2826
- event: {
2827
- message?: string | undefined;
2828
- filename?: string | undefined;
2829
- lineno?: number | undefined;
2830
- colno?: number | undefined;
2831
- error?: unknown;
2832
- };
2833
- }, import("@vibes.diy/api-types").MsgBase<{
2834
- type: "vibes.diy.req-report-growth-memberships";
2791
+ type: "vibes.diy.req-prompt-chat-section";
2792
+ mode: "app";
2835
2793
  auth: {
2836
2794
  type: "clerk" | "device-id" | "ucan";
2837
2795
  token: string;
2838
2796
  };
2839
- }>, {
2840
- type: "vibes.diy.res-report-growth-memberships";
2841
- generatedAt: string;
2842
- total: number;
2843
- days: {
2844
- day: string;
2845
- memberships: number;
2846
- newMembers: string[];
2847
- }[];
2848
- } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2849
- type: "MessageEvent";
2850
- event: {
2851
- data?: unknown;
2852
- origin?: string | null | undefined;
2853
- lastEventId?: string | undefined;
2854
- source?: unknown;
2855
- ports?: unknown;
2856
- };
2857
- } | {
2858
- type: "CloseEvent";
2859
- event: {
2860
- wasClean: boolean;
2861
- code: number;
2862
- reason: string;
2797
+ chatId: string;
2798
+ outerTid: string;
2799
+ prompt: {
2800
+ model?: string | undefined;
2801
+ messages: {
2802
+ role: "assistant" | "system" | "user";
2803
+ content: ({
2804
+ type: "text";
2805
+ text: string;
2806
+ } | {
2807
+ type: "image_url";
2808
+ image_url: {
2809
+ url: string;
2810
+ };
2811
+ })[];
2812
+ }[];
2813
+ stream?: boolean | undefined;
2814
+ temperature?: number | undefined;
2815
+ max_tokens?: number | undefined;
2816
+ top_p?: number | undefined;
2817
+ logprobs?: boolean | undefined;
2818
+ top_logsprobs?: number | undefined;
2819
+ frequency_penalty?: number | undefined;
2820
+ presence_penalty?: number | undefined;
2821
+ stop?: string | string[] | undefined;
2822
+ verbosity?: "high" | "low" | "max" | "medium" | undefined;
2823
+ modalities?: string[] | undefined;
2863
2824
  };
2864
2825
  } | {
2865
- type: "ErrorEvent";
2866
- event: {
2867
- message?: string | undefined;
2868
- filename?: string | undefined;
2869
- lineno?: number | undefined;
2870
- colno?: number | undefined;
2871
- error?: unknown;
2872
- };
2873
- }, import("@vibes.diy/api-types").MsgBase<{
2874
- type: "vibes.diy.req-report-growth-vibes-with-data";
2826
+ type: "vibes.diy.req-prompt-chat-section";
2827
+ mode: "img";
2875
2828
  auth: {
2876
2829
  type: "clerk" | "device-id" | "ucan";
2877
2830
  token: string;
2878
2831
  };
2879
- }>, {
2880
- type: "vibes.diy.res-report-growth-vibes-with-data";
2881
- generatedAt: string;
2882
- total: number;
2883
- days: {
2884
- day: string;
2885
- vibes: number;
2886
- }[];
2887
- } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2888
- type: "MessageEvent";
2889
- event: {
2890
- data?: unknown;
2891
- origin?: string | null | undefined;
2892
- lastEventId?: string | undefined;
2893
- source?: unknown;
2894
- ports?: unknown;
2832
+ chatId: string;
2833
+ outerTid: string;
2834
+ prompt: {
2835
+ model?: string | undefined;
2836
+ messages: {
2837
+ role: "assistant" | "system" | "user";
2838
+ content: ({
2839
+ type: "text";
2840
+ text: string;
2841
+ } | {
2842
+ type: "image_url";
2843
+ image_url: {
2844
+ url: string;
2845
+ };
2846
+ })[];
2847
+ }[];
2848
+ stream?: boolean | undefined;
2849
+ temperature?: number | undefined;
2850
+ max_tokens?: number | undefined;
2851
+ top_p?: number | undefined;
2852
+ logprobs?: boolean | undefined;
2853
+ top_logsprobs?: number | undefined;
2854
+ frequency_penalty?: number | undefined;
2855
+ presence_penalty?: number | undefined;
2856
+ stop?: string | string[] | undefined;
2857
+ verbosity?: "high" | "low" | "max" | "medium" | undefined;
2858
+ modalities?: string[] | undefined;
2895
2859
  };
2860
+ inputImageBase64?: string | undefined;
2896
2861
  } | {
2897
- type: "CloseEvent";
2898
- event: {
2899
- wasClean: boolean;
2900
- code: number;
2901
- reason: string;
2862
+ type: "vibes.diy.req-prompt-chat-section";
2863
+ mode: "fs-update";
2864
+ auth: {
2865
+ type: "clerk" | "device-id" | "ucan";
2866
+ token: string;
2902
2867
  };
2903
- } | {
2904
- type: "ErrorEvent";
2905
- event: {
2906
- message?: string | undefined;
2907
- filename?: string | undefined;
2908
- lineno?: number | undefined;
2909
- colno?: number | undefined;
2910
- error?: unknown;
2868
+ chatId: string;
2869
+ outerTid: string;
2870
+ refFsId?: string | undefined;
2871
+ fsUpdate: {
2872
+ update: ({
2873
+ filename: string;
2874
+ entryPoint?: boolean | undefined;
2875
+ mimetype?: string | undefined;
2876
+ type: "code-block";
2877
+ lang: string;
2878
+ content: string;
2879
+ } | {
2880
+ filename: string;
2881
+ entryPoint?: boolean | undefined;
2882
+ mimetype?: string | undefined;
2883
+ type: "code-ref";
2884
+ refId: string;
2885
+ } | {
2886
+ filename: string;
2887
+ entryPoint?: boolean | undefined;
2888
+ mimetype?: string | undefined;
2889
+ type: "str-asset-block";
2890
+ content: string;
2891
+ } | {
2892
+ filename: string;
2893
+ entryPoint?: boolean | undefined;
2894
+ mimetype?: string | undefined;
2895
+ type: "str-asset-ref";
2896
+ refId: string;
2897
+ } | {
2898
+ filename: string;
2899
+ entryPoint?: boolean | undefined;
2900
+ mimetype?: string | undefined;
2901
+ type: "uint8-asset-block";
2902
+ content: Uint8Array<ArrayBuffer>;
2903
+ } | {
2904
+ filename: string;
2905
+ entryPoint?: boolean | undefined;
2906
+ mimetype?: string | undefined;
2907
+ type: "uint8-asset-ref";
2908
+ refId: string;
2909
+ })[];
2910
+ remove: {
2911
+ filename: string;
2912
+ }[];
2911
2913
  };
2912
- }, import("@vibes.diy/api-types").MsgBase<{
2913
- type: "vibes.diy.req-report-active-members";
2914
+ } | {
2915
+ type: "vibes.diy.req-prompt-chat-section";
2916
+ mode: "fs-set";
2914
2917
  auth: {
2915
2918
  type: "clerk" | "device-id" | "ucan";
2916
2919
  token: string;
2917
2920
  };
2918
- }>, {
2919
- type: "vibes.diy.res-report-active-members";
2920
- generatedAt: string;
2921
- days: {
2922
- day: string;
2923
- count: number;
2924
- }[];
2925
- } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2921
+ chatId: string;
2922
+ outerTid: string;
2923
+ fsSet: ({
2924
+ filename: string;
2925
+ entryPoint?: boolean | undefined;
2926
+ mimetype?: string | undefined;
2927
+ type: "code-block";
2928
+ lang: string;
2929
+ content: string;
2930
+ } | {
2931
+ filename: string;
2932
+ entryPoint?: boolean | undefined;
2933
+ mimetype?: string | undefined;
2934
+ type: "code-ref";
2935
+ refId: string;
2936
+ } | {
2937
+ filename: string;
2938
+ entryPoint?: boolean | undefined;
2939
+ mimetype?: string | undefined;
2940
+ type: "str-asset-block";
2941
+ content: string;
2942
+ } | {
2943
+ filename: string;
2944
+ entryPoint?: boolean | undefined;
2945
+ mimetype?: string | undefined;
2946
+ type: "str-asset-ref";
2947
+ refId: string;
2948
+ } | {
2949
+ filename: string;
2950
+ entryPoint?: boolean | undefined;
2951
+ mimetype?: string | undefined;
2952
+ type: "uint8-asset-block";
2953
+ content: Uint8Array<ArrayBuffer>;
2954
+ } | {
2955
+ filename: string;
2956
+ entryPoint?: boolean | undefined;
2957
+ mimetype?: string | undefined;
2958
+ type: "uint8-asset-ref";
2959
+ refId: string;
2960
+ })[];
2961
+ }>, import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2926
2962
  type: "MessageEvent";
2927
2963
  event: {
2928
2964
  data?: unknown;
@@ -2948,18 +2984,23 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
2948
2984
  error?: unknown;
2949
2985
  };
2950
2986
  }, import("@vibes.diy/api-types").MsgBase<{
2951
- type: "vibes.diy.req-report-top-vibes-by-members";
2987
+ type: "vibes.diy.req-get-chat-details";
2952
2988
  auth: {
2953
2989
  type: "clerk" | "device-id" | "ucan";
2954
2990
  token: string;
2955
2991
  };
2992
+ ownerHandle: string;
2993
+ appSlug: string;
2994
+ chatId?: string | undefined;
2956
2995
  }>, {
2957
- type: "vibes.diy.res-report-top-vibes-by-members";
2958
- generatedAt: string;
2959
- rows: {
2960
- ownerHandle: string;
2961
- appSlug: string;
2962
- memberCount: number;
2996
+ type: "vibes.diy.res-get-chat-details";
2997
+ chatId?: string | undefined;
2998
+ ownerHandle: string;
2999
+ appSlug: string;
3000
+ prompts: {
3001
+ prompt: string;
3002
+ fsId: string;
3003
+ created: string;
2963
3004
  }[];
2964
3005
  } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
2965
3006
  type: "MessageEvent";
@@ -2987,25 +3028,24 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
2987
3028
  error?: unknown;
2988
3029
  };
2989
3030
  }, import("@vibes.diy/api-types").MsgBase<{
2990
- type: "vibes.diy.req-report-attribution-referrers";
3031
+ type: "vibes.diy.req-list-application-chats";
2991
3032
  auth: {
2992
3033
  type: "clerk" | "device-id" | "ucan";
2993
3034
  token: string;
2994
3035
  };
2995
- reqPath?: string | undefined;
3036
+ appSlug?: string | undefined;
3037
+ ownerHandle?: string | undefined;
3038
+ limit?: number | undefined;
3039
+ cursor?: string | undefined;
2996
3040
  }>, {
2997
- type: "vibes.diy.res-report-attribution-referrers";
2998
- generatedAt: string;
2999
- rows: {
3000
- refHost: string;
3001
- refPath: string;
3002
- reqPath: string;
3003
- total: number;
3004
- }[];
3005
- legacyVibeRows: {
3006
- reqPath: string;
3007
- total: number;
3041
+ type: "vibes.diy.res-list-application-chats";
3042
+ items: {
3043
+ chatId: string;
3044
+ appSlug: string;
3045
+ ownerHandle: string;
3046
+ created: string;
3008
3047
  }[];
3048
+ nextCursor?: string | undefined;
3009
3049
  } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
3010
3050
  type: "MessageEvent";
3011
3051
  event: {
@@ -3032,61 +3072,23 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
3032
3072
  error?: unknown;
3033
3073
  };
3034
3074
  }, import("@vibes.diy/api-types").MsgBase<{
3035
- type: "vibes.diy.req-report-campaign-health";
3075
+ type: "vibes.diy.req-fork-app";
3036
3076
  auth: {
3037
3077
  type: "clerk" | "device-id" | "ucan";
3038
3078
  token: string;
3039
3079
  };
3040
- days?: string | undefined;
3041
- since?: string | undefined;
3080
+ srcUserSlug: string;
3081
+ srcAppSlug: string;
3082
+ srcFsId?: string | undefined;
3083
+ skipChat?: boolean | undefined;
3042
3084
  }>, {
3043
- type: "vibes.diy.res-report-campaign-health";
3044
- generatedAt: string;
3045
- dateLabel: string;
3046
- ranked: {
3047
- campaign_name: string;
3048
- campaign_id: string;
3049
- impressions: string;
3050
- clicks: string;
3051
- spend: string;
3052
- ctr?: string | undefined;
3053
- cpc?: string | undefined;
3054
- reach?: string | undefined;
3055
- actions?: {
3056
- action_type: string;
3057
- value: string;
3058
- }[] | undefined;
3059
- date_start?: string | undefined;
3060
- date_stop?: string | undefined;
3061
- ctaClicks?: number | undefined;
3062
- ctaClicksIsShared?: boolean | undefined;
3063
- directApp?: boolean | undefined;
3064
- costPerCtaClick?: number | undefined;
3065
- landingPath?: string | undefined;
3066
- effective_status?: string | undefined;
3067
- }[];
3068
- anomalies: {
3069
- duplicateNames: string[];
3070
- budgetOutliers: {
3071
- name: string;
3072
- spend: string;
3073
- medianSpend: string;
3074
- }[];
3075
- zeroSpend: string[];
3076
- lowLpvRatio: {
3077
- name: string;
3078
- clicks: number;
3079
- lpvs: number;
3080
- ratio: number;
3081
- }[];
3082
- pixel: {
3083
- lastFired?: string | undefined;
3084
- counts?: {
3085
- [x: string]: number;
3086
- } | undefined;
3087
- error?: string | undefined;
3088
- } | null;
3089
- };
3085
+ type: "vibes.diy.res-fork-app";
3086
+ ownerHandle: string;
3087
+ appSlug: string;
3088
+ chatId: string;
3089
+ srcFsId: string;
3090
+ srcUserSlug: string;
3091
+ srcAppSlug: string;
3090
3092
  } | import("@vibes.diy/api-types").VibesDiyError>, import("@adviser/cement").EventoHandler<{
3091
3093
  type: "MessageEvent";
3092
3094
  event: {
@@ -3113,22 +3115,20 @@ export declare const chatPlaneHandlers: readonly [import("@adviser/cement").Even
3113
3115
  error?: unknown;
3114
3116
  };
3115
3117
  }, import("@vibes.diy/api-types").MsgBase<{
3116
- type: "vibes.diy.req-report-campaign-ad-previews";
3118
+ type: "vibes.diy.req-set-mode-fs";
3117
3119
  auth: {
3118
3120
  type: "clerk" | "device-id" | "ucan";
3119
3121
  token: string;
3120
3122
  };
3121
- campaign_id: string;
3122
- format?: string | undefined;
3123
+ fsId: string;
3124
+ appSlug: string;
3125
+ ownerHandle: string;
3126
+ mode: "dev" | "production";
3123
3127
  }>, {
3124
- type: "vibes.diy.res-report-campaign-ad-previews";
3125
- campaign_id: string;
3126
- ads: {
3127
- id: string;
3128
- name: string;
3129
- effective_status: string;
3130
- previewSrc?: string | undefined;
3131
- error?: string | undefined;
3132
- }[];
3128
+ type: "vibes.diy.res-set-mode-fs";
3129
+ fsId: string;
3130
+ appSlug: string;
3131
+ ownerHandle: string;
3132
+ mode: "dev" | "production";
3133
3133
  } | import("@vibes.diy/api-types").VibesDiyError>];
3134
3134
  export declare const chatMsgEvento: () => Evento;