@ocxp/client 0.2.4 → 0.2.6

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.
package/dist/index.d.ts CHANGED
@@ -371,6 +371,8 @@ type AddRepoRequest = {
371
371
  };
372
372
  /**
373
373
  * AuthConfig
374
+ *
375
+ * Public auth configuration for clients.
374
376
  */
375
377
  type AuthConfig = {
376
378
  /**
@@ -378,13 +380,21 @@ type AuthConfig = {
378
380
  */
379
381
  region: string;
380
382
  /**
381
- * User Pool Id
383
+ * Apiendpoint
382
384
  */
383
- user_pool_id: string;
385
+ apiEndpoint: string;
384
386
  /**
385
- * Client Id
387
+ * Brainarn
388
+ */
389
+ brainArn: string;
390
+ /**
391
+ * Workspaceid
386
392
  */
387
- client_id: string;
393
+ workspaceId?: string;
394
+ /**
395
+ * Websocketendpoint
396
+ */
397
+ websocketEndpoint?: string;
388
398
  };
389
399
  /**
390
400
  * Body_loginForAccessToken
@@ -423,6 +433,14 @@ type BulkDeleteRequest = {
423
433
  * Ids
424
434
  */
425
435
  ids: Array<string>;
436
+ /**
437
+ * Manage Metadata
438
+ */
439
+ manage_metadata?: boolean;
440
+ /**
441
+ * Auto Index
442
+ */
443
+ auto_index?: boolean | null;
426
444
  };
427
445
  /**
428
446
  * BulkDeleteResponse
@@ -507,6 +525,22 @@ type BulkWriteRequest = {
507
525
  * Items
508
526
  */
509
527
  items: Array<BulkWriteItem>;
528
+ /**
529
+ * Manage Metadata
530
+ */
531
+ manage_metadata?: boolean;
532
+ /**
533
+ * Auto Index
534
+ */
535
+ auto_index?: boolean | null;
536
+ /**
537
+ * Project Id
538
+ */
539
+ project_id?: string | null;
540
+ /**
541
+ * Mission Id
542
+ */
543
+ mission_id?: string | null;
510
544
  };
511
545
  /**
512
546
  * BulkWriteResponse
@@ -1082,6 +1116,8 @@ type DownloadRequest = {
1082
1116
  type ForkRequest = {
1083
1117
  /**
1084
1118
  * Mission Id
1119
+ *
1120
+ * Mission ID to link forked session to
1085
1121
  */
1086
1122
  mission_id: string;
1087
1123
  /**
@@ -1328,10 +1364,14 @@ type LockRequest = {
1328
1364
  type LoginRequest = {
1329
1365
  /**
1330
1366
  * Username
1367
+ *
1368
+ * Cognito username
1331
1369
  */
1332
1370
  username: string;
1333
1371
  /**
1334
1372
  * Password
1373
+ *
1374
+ * User password
1335
1375
  */
1336
1376
  password: string;
1337
1377
  };
@@ -1856,280 +1896,1112 @@ type ProjectUpdate = {
1856
1896
  description?: string | null;
1857
1897
  };
1858
1898
  /**
1859
- * QueryFilter
1899
+ * PrototypeChatGetResponse
1900
+ *
1901
+ * Response from getting a stored prototype chat.
1860
1902
  */
1861
- type QueryFilter = {
1903
+ type PrototypeChatGetResponse = {
1862
1904
  /**
1863
- * Field
1864
- */
1865
- field: string;
1866
- /**
1867
- * Operator
1868
- */
1869
- operator?: string;
1870
- /**
1871
- * Value
1905
+ * Provider
1872
1906
  */
1873
- value: unknown;
1874
- };
1875
- /**
1876
- * QueryRequest
1877
- */
1878
- type QueryRequest = {
1907
+ provider: string;
1879
1908
  /**
1880
- * Filters
1909
+ * Chat Id
1881
1910
  */
1882
- filters?: Array<QueryFilter>;
1911
+ chat_id: string;
1883
1912
  /**
1884
- * Limit
1913
+ * Web Url
1885
1914
  */
1886
- limit?: number;
1887
- };
1888
- /**
1889
- * RAGRequest
1890
- */
1891
- type RagRequest = {
1915
+ web_url: string;
1892
1916
  /**
1893
- * Query
1917
+ * Mission Id
1894
1918
  */
1895
- query: string;
1919
+ mission_id: string;
1896
1920
  /**
1897
- * Content Type
1898
- *
1899
- * Knowledge base to query: 'code' for source files, 'docs' for documentation, 'all' for both
1921
+ * Messages
1900
1922
  */
1901
- content_type?: string;
1923
+ messages?: Array<PrototypeChatMessage>;
1902
1924
  /**
1903
- * Session Id
1904
- *
1905
- * Session ID for conversation
1925
+ * Versions
1906
1926
  */
1907
- session_id?: string | null;
1908
- };
1909
- /**
1910
- * RefreshRequest
1911
- *
1912
- * Token refresh request - accepts both camelCase and snake_case.
1913
- */
1914
- type RefreshRequest = {
1927
+ versions?: Array<PrototypeChatVersion>;
1915
1928
  /**
1916
- * Refreshtoken
1929
+ * Latest Preview Url
1917
1930
  */
1918
- refreshToken: string;
1919
- };
1920
- /**
1921
- * RefreshResponse
1922
- *
1923
- * Token refresh response with camelCase output (no new refresh_token).
1924
- */
1925
- type RefreshResponse = {
1931
+ latest_preview_url?: string | null;
1926
1932
  /**
1927
- * Accesstoken
1933
+ * Screenshot Link
1928
1934
  */
1929
- accessToken: string;
1935
+ screenshot_link?: string | null;
1930
1936
  /**
1931
- * Tokentype
1937
+ * Conversation Link
1932
1938
  */
1933
- tokenType?: string;
1939
+ conversation_link?: string | null;
1934
1940
  /**
1935
- * Expiresin
1941
+ * File Links
1936
1942
  */
1937
- expiresIn?: number;
1943
+ file_links?: Array<string>;
1938
1944
  /**
1939
- * Idtoken
1945
+ * Synced At
1940
1946
  */
1941
- idToken: string;
1947
+ synced_at?: string | null;
1942
1948
  };
1943
1949
  /**
1944
- * RegenerateMissionRequest
1950
+ * PrototypeChatLinkRequest
1945
1951
  *
1946
- * Request body for mission regeneration.
1952
+ * Request to link a prototype chat to a mission.
1947
1953
  */
1948
- type RegenerateMissionRequest = {
1954
+ type PrototypeChatLinkRequest = {
1949
1955
  /**
1950
- * Ticket Id
1956
+ * Provider
1951
1957
  *
1952
- * Updated ticket ID
1958
+ * Prototype provider
1953
1959
  */
1954
- ticket_id?: string | null;
1960
+ provider?: 'v0' | 'lovable' | 'bolt';
1955
1961
  /**
1956
- * Ticket Summary
1962
+ * Chat Id
1957
1963
  *
1958
- * Updated ticket summary
1964
+ * Chat ID from provider (extracted from URL if not provided)
1959
1965
  */
1960
- ticket_summary?: string | null;
1966
+ chat_id?: string | null;
1961
1967
  /**
1962
- * Ticket Description
1968
+ * Chat Url
1963
1969
  *
1964
- * Updated ticket description
1970
+ * Chat URL (alternative to chat_id)
1965
1971
  */
1966
- ticket_description?: string | null;
1972
+ chat_url?: string | null;
1973
+ /**
1974
+ * Version Id
1975
+ *
1976
+ * Specific version ID to download files from (default: latest)
1977
+ */
1978
+ version_id?: string | null;
1979
+ /**
1980
+ * Mission Id
1981
+ *
1982
+ * Mission to link this chat to
1983
+ */
1984
+ mission_id: string;
1967
1985
  /**
1968
1986
  * Project Id
1969
1987
  *
1970
- * Project ID to preserve/set
1988
+ * Optional project scope
1971
1989
  */
1972
1990
  project_id?: string | null;
1973
1991
  /**
1974
- * Archive Old Docs
1992
+ * Sync Versions
1975
1993
  *
1976
- * Archive old docs before regenerating
1994
+ * Also sync version information (metadata)
1977
1995
  */
1978
- archive_old_docs?: boolean;
1996
+ sync_versions?: boolean;
1979
1997
  /**
1980
- * Auto Increment Version
1998
+ * Download Files
1981
1999
  *
1982
- * Auto-increment archive version
2000
+ * Download version files to OCXP for use as context
1983
2001
  */
1984
- auto_increment_version?: boolean;
2002
+ download_files?: boolean;
2003
+ /**
2004
+ * Screenshot Preview
2005
+ *
2006
+ * Screenshot the latest preview URL
2007
+ */
2008
+ screenshot_preview?: boolean;
1985
2009
  };
1986
2010
  /**
1987
- * RegenerateMissionResponse
2011
+ * PrototypeChatLinkResponse
1988
2012
  *
1989
- * Response for mission regeneration.
2013
+ * Response from linking a prototype chat.
2014
+ *
2015
+ * Field naming aligned with v0's hierarchy: Project > Chat > Version
2016
+ * - chat_name: The chat's name from v0 (not title - v0 only has name)
2017
+ * - project_id: v0 project ID if chat belongs to a project
2018
+ * - project_name: v0 project name (fetched from projects API)
1990
2019
  */
1991
- type RegenerateMissionResponse = {
2020
+ type PrototypeChatLinkResponse = {
1992
2021
  /**
1993
- * Success
2022
+ * Provider
1994
2023
  */
1995
- success: boolean;
2024
+ provider: string;
1996
2025
  /**
1997
- * Job Id
2026
+ * Chat Id
1998
2027
  */
1999
- job_id?: string | null;
2028
+ chat_id: string;
2000
2029
  /**
2001
- * Archive Version
2030
+ * Chat Name
2002
2031
  */
2003
- archive_version: number;
2032
+ chat_name?: string | null;
2004
2033
  /**
2005
- * Status
2006
- *
2007
- * started|completed|failed
2034
+ * Project Id
2008
2035
  */
2009
- status: string;
2036
+ project_id?: string | null;
2010
2037
  /**
2011
- * Archived Files
2038
+ * Project Name
2012
2039
  */
2013
- archived_files?: Array<string>;
2040
+ project_name?: string | null;
2014
2041
  /**
2015
- * Error
2042
+ * Web Url
2016
2043
  */
2017
- error?: string | null;
2044
+ web_url: string;
2045
+ /**
2046
+ * Mission Id
2047
+ */
2048
+ mission_id: string;
2049
+ /**
2050
+ * Messages Count
2051
+ */
2052
+ messages_count: number;
2053
+ /**
2054
+ * Versions Count
2055
+ */
2056
+ versions_count: number;
2057
+ /**
2058
+ * Latest Preview Url
2059
+ */
2060
+ latest_preview_url?: string | null;
2061
+ /**
2062
+ * Screenshot Link
2063
+ */
2064
+ screenshot_link?: string | null;
2065
+ /**
2066
+ * Content Links
2067
+ */
2068
+ content_links?: Array<string>;
2069
+ /**
2070
+ * Indexed
2071
+ */
2072
+ indexed?: boolean;
2018
2073
  };
2019
2074
  /**
2020
- * RepoDeleteResponse
2075
+ * PrototypeChatListItem
2021
2076
  *
2022
- * Response for DELETE /ocxp/repo/{id}.
2077
+ * Individual chat in list response.
2078
+ *
2079
+ * Field naming aligned with v0's hierarchy: Project > Chat > Version
2080
+ * - chat_name: The chat's name from v0 (v0 only has 'name', not 'title')
2081
+ * - project_id: v0 project ID if chat belongs to a project
2082
+ * - project_name: v0 project name (joined from projects list)
2023
2083
  */
2024
- type RepoDeleteResponse = {
2084
+ type PrototypeChatListItem = {
2025
2085
  /**
2026
2086
  * Id
2027
- *
2028
- * Deleted repository UUID
2029
2087
  */
2030
2088
  id: string;
2031
2089
  /**
2032
- * Repo Id
2033
- *
2034
- * Deleted repository identifier (owner/repo)
2090
+ * Chat Name
2035
2091
  */
2036
- repo_id: string;
2092
+ chat_name: string;
2037
2093
  /**
2038
- * Deleted
2094
+ * Web Url
2039
2095
  */
2040
- deleted?: boolean;
2041
- };
2042
- /**
2043
- * RepoDownloadResponse
2044
- *
2045
- * Response for POST /ocxp/repo/download.
2046
- */
2047
- type RepoDownloadResponse = {
2096
+ web_url: string;
2048
2097
  /**
2049
- * Id
2050
- *
2051
- * Unique UUID for API operations (available when linked or complete)
2098
+ * Privacy
2052
2099
  */
2053
- id?: string | null;
2100
+ privacy?: string | null;
2054
2101
  /**
2055
- * Job Id
2102
+ * Created At
2056
2103
  */
2057
- job_id: string;
2104
+ created_at?: string | null;
2058
2105
  /**
2059
- * Status
2060
- *
2061
- * started|linked|downloading|indexing|complete|failed
2106
+ * Updated At
2062
2107
  */
2063
- status: string;
2108
+ updated_at?: string | null;
2064
2109
  /**
2065
- * Message
2110
+ * Latest Preview Url
2066
2111
  */
2067
- message?: string | null;
2112
+ latest_preview_url?: string | null;
2068
2113
  /**
2069
- * Deduplicated
2070
- *
2071
- * True if repo already exists and was linked instead of downloaded
2114
+ * Project Id
2072
2115
  */
2073
- deduplicated?: boolean;
2116
+ project_id?: string | null;
2074
2117
  /**
2075
- * S3 Path
2076
- *
2077
- * S3 storage path
2118
+ * Project Name
2078
2119
  */
2079
- s3_path?: string | null;
2120
+ project_name?: string | null;
2121
+ };
2122
+ /**
2123
+ * PrototypeChatListResponse
2124
+ *
2125
+ * Response from listing available chats.
2126
+ */
2127
+ type PrototypeChatListResponse = {
2080
2128
  /**
2081
- * Detected Type
2082
- *
2083
- * Auto-detected repo content type (code, docs, or mixed)
2129
+ * Provider
2084
2130
  */
2085
- detected_type?: string | null;
2131
+ provider: string;
2086
2132
  /**
2087
- * Detection Method
2088
- *
2089
- * How repo type was detected: path_heuristic (from folder name) or github_api (from language analysis)
2133
+ * Chats
2090
2134
  */
2091
- detection_method?: string | null;
2135
+ chats?: Array<PrototypeChatListItem>;
2136
+ /**
2137
+ * Total
2138
+ */
2139
+ total?: number;
2092
2140
  };
2093
2141
  /**
2094
- * RepoInfo
2142
+ * PrototypeChatMessage
2095
2143
  *
2096
- * Repository information.
2144
+ * Individual chat message from a prototype conversation.
2097
2145
  */
2098
- type RepoInfo = {
2146
+ type PrototypeChatMessage = {
2099
2147
  /**
2100
2148
  * Id
2101
- *
2102
- * Unique UUID for API operations
2103
2149
  */
2104
2150
  id: string;
2105
2151
  /**
2106
- * Repo Id
2107
- *
2108
- * Repository identifier (owner/repo) for display
2152
+ * Role
2109
2153
  */
2110
- repo_id: string;
2154
+ role: 'user' | 'assistant';
2111
2155
  /**
2112
- * Name
2156
+ * Content
2113
2157
  */
2114
- name: string;
2158
+ content: string;
2115
2159
  /**
2116
- * Url
2160
+ * Created At
2117
2161
  */
2118
- url?: string | null;
2162
+ created_at?: string | null;
2163
+ };
2164
+ /**
2165
+ * PrototypeChatPreviewRequest
2166
+ *
2167
+ * Request to preview a chat before linking (fetch metadata only).
2168
+ */
2169
+ type PrototypeChatPreviewRequest = {
2119
2170
  /**
2120
- * Branch
2121
- *
2122
- * Git branch
2171
+ * Provider
2123
2172
  */
2124
- branch?: string;
2173
+ provider?: 'v0' | 'lovable' | 'bolt';
2125
2174
  /**
2126
- * Path
2175
+ * Chat Url
2127
2176
  *
2128
- * Subpath within repository (if partial download)
2177
+ * Chat URL to preview
2129
2178
  */
2130
- path?: string | null;
2179
+ chat_url: string;
2180
+ };
2181
+ /**
2182
+ * PrototypeChatPreviewResponse
2183
+ *
2184
+ * Response from previewing a chat (no files stored yet).
2185
+ */
2186
+ type PrototypeChatPreviewResponse = {
2131
2187
  /**
2132
- * Visibility
2188
+ * Provider
2189
+ */
2190
+ provider: string;
2191
+ /**
2192
+ * Chat Id
2193
+ */
2194
+ chat_id: string;
2195
+ /**
2196
+ * Web Url
2197
+ */
2198
+ web_url: string;
2199
+ /**
2200
+ * Messages Count
2201
+ */
2202
+ messages_count: number;
2203
+ /**
2204
+ * Versions
2205
+ */
2206
+ versions?: Array<PrototypeChatVersion>;
2207
+ /**
2208
+ * Latest Preview Url
2209
+ */
2210
+ latest_preview_url?: string | null;
2211
+ /**
2212
+ * Can Download Files
2213
+ */
2214
+ can_download_files?: boolean;
2215
+ };
2216
+ /**
2217
+ * PrototypeChatSyncAsyncRequest
2218
+ *
2219
+ * Request to start an async prototype chat sync.
2220
+ */
2221
+ type PrototypeChatSyncAsyncRequest = {
2222
+ /**
2223
+ * Provider
2224
+ *
2225
+ * Prototype provider
2226
+ */
2227
+ provider?: 'v0' | 'lovable' | 'bolt';
2228
+ /**
2229
+ * Chat Id
2230
+ *
2231
+ * Chat ID to sync
2232
+ */
2233
+ chat_id: string;
2234
+ /**
2235
+ * Mission Id
2236
+ *
2237
+ * Mission context
2238
+ */
2239
+ mission_id: string;
2240
+ /**
2241
+ * Version Id
2242
+ *
2243
+ * Specific version ID to sync (default: sync all new versions)
2244
+ */
2245
+ version_id?: string | null;
2246
+ /**
2247
+ * Download Files
2248
+ *
2249
+ * Download version files to OCXP
2250
+ */
2251
+ download_files?: boolean;
2252
+ /**
2253
+ * Download Screenshots
2254
+ *
2255
+ * Download v0's built-in screenshot for each version
2256
+ */
2257
+ download_screenshots?: boolean;
2258
+ /**
2259
+ * Screenshot All Pages
2260
+ *
2261
+ * Capture screenshots of all detected pages/routes
2262
+ */
2263
+ screenshot_all_pages?: boolean;
2264
+ };
2265
+ /**
2266
+ * PrototypeChatSyncAsyncResponse
2267
+ *
2268
+ * Response from starting an async sync job.
2269
+ */
2270
+ type PrototypeChatSyncAsyncResponse = {
2271
+ /**
2272
+ * Job Id
2273
+ *
2274
+ * Job ID for tracking progress
2275
+ */
2276
+ job_id: string;
2277
+ /**
2278
+ * Status
2279
+ *
2280
+ * Initial job status
2281
+ */
2282
+ status?: string;
2283
+ /**
2284
+ * Message
2285
+ *
2286
+ * Human-readable status message
2287
+ */
2288
+ message?: string;
2289
+ };
2290
+ /**
2291
+ * PrototypeChatSyncRequest
2292
+ *
2293
+ * Request to sync/refresh a linked chat.
2294
+ *
2295
+ * Supports:
2296
+ * - Incremental sync: Only downloads new versions (skips already-stored ones)
2297
+ * - Specific version: Downloads a specific version by ID
2298
+ * - Metadata-only: Syncs messages/metadata without downloading files
2299
+ * - Screenshot all pages: Capture screenshots of all detected routes
2300
+ */
2301
+ type PrototypeChatSyncRequest = {
2302
+ /**
2303
+ * Provider
2304
+ */
2305
+ provider?: 'v0' | 'lovable' | 'bolt';
2306
+ /**
2307
+ * Chat Id
2308
+ *
2309
+ * Chat ID to sync
2310
+ */
2311
+ chat_id: string;
2312
+ /**
2313
+ * Mission Id
2314
+ *
2315
+ * Mission context (optional - can sync without mission)
2316
+ */
2317
+ mission_id?: string | null;
2318
+ /**
2319
+ * Version Id
2320
+ *
2321
+ * Specific version ID to sync files from (default: sync all new versions)
2322
+ */
2323
+ version_id?: string | null;
2324
+ /**
2325
+ * Download Files
2326
+ *
2327
+ * Download version files to OCXP (if False, only syncs messages/metadata)
2328
+ */
2329
+ download_files?: boolean;
2330
+ /**
2331
+ * Download Screenshots
2332
+ *
2333
+ * Download v0's built-in screenshot for each version
2334
+ */
2335
+ download_screenshots?: boolean;
2336
+ /**
2337
+ * Screenshot All Pages
2338
+ *
2339
+ * Capture screenshots of all detected pages/routes (not just root)
2340
+ */
2341
+ screenshot_all_pages?: boolean;
2342
+ };
2343
+ /**
2344
+ * PrototypeChatSyncResponse
2345
+ *
2346
+ * Response from syncing a prototype chat.
2347
+ *
2348
+ * Version tracking fields:
2349
+ * - newly_synced_versions: Versions downloaded during this sync operation
2350
+ * - stored_versions: All versions currently stored in S3
2351
+ * - latest_version_id: Latest version available from the provider
2352
+ * - versions: Full version details including pages and screenshots
2353
+ */
2354
+ type PrototypeChatSyncResponse = {
2355
+ /**
2356
+ * Provider
2357
+ */
2358
+ provider: string;
2359
+ /**
2360
+ * Chat Id
2361
+ */
2362
+ chat_id: string;
2363
+ /**
2364
+ * Synced
2365
+ */
2366
+ synced: boolean;
2367
+ /**
2368
+ * New Messages Count
2369
+ */
2370
+ new_messages_count?: number;
2371
+ /**
2372
+ * New Versions Count
2373
+ */
2374
+ new_versions_count?: number;
2375
+ /**
2376
+ * Content Links
2377
+ */
2378
+ content_links?: Array<string>;
2379
+ /**
2380
+ * Newly Synced Versions
2381
+ *
2382
+ * Version IDs downloaded during this sync
2383
+ */
2384
+ newly_synced_versions?: Array<string>;
2385
+ /**
2386
+ * Stored Versions
2387
+ *
2388
+ * All version IDs currently stored in S3
2389
+ */
2390
+ stored_versions?: Array<string>;
2391
+ /**
2392
+ * Latest Version Id
2393
+ *
2394
+ * Latest version ID available from the provider
2395
+ */
2396
+ latest_version_id?: string | null;
2397
+ /**
2398
+ * Versions
2399
+ *
2400
+ * Full version details including detected pages and screenshots
2401
+ */
2402
+ versions?: Array<PrototypeChatVersion>;
2403
+ };
2404
+ /**
2405
+ * PrototypeChatVersion
2406
+ *
2407
+ * Chat version/iteration with preview and files.
2408
+ */
2409
+ type PrototypeChatVersion = {
2410
+ /**
2411
+ * Id
2412
+ */
2413
+ id: string;
2414
+ /**
2415
+ * Preview Url
2416
+ */
2417
+ preview_url?: string | null;
2418
+ /**
2419
+ * Screenshot Url
2420
+ *
2421
+ * v0's built-in screenshot URL for this version
2422
+ */
2423
+ screenshot_url?: string | null;
2424
+ /**
2425
+ * Screenshot Link
2426
+ *
2427
+ * OCXP link to downloaded screenshot
2428
+ */
2429
+ screenshot_link?: string | null;
2430
+ /**
2431
+ * Files
2432
+ */
2433
+ files?: Array<string>;
2434
+ /**
2435
+ * Pages
2436
+ *
2437
+ * Detected pages/routes in this version
2438
+ */
2439
+ pages?: Array<PrototypePageInfo>;
2440
+ /**
2441
+ * Created At
2442
+ */
2443
+ created_at?: string | null;
2444
+ };
2445
+ /**
2446
+ * PrototypePageInfo
2447
+ *
2448
+ * Information about a detected page/route in the prototype.
2449
+ */
2450
+ type PrototypePageInfo = {
2451
+ /**
2452
+ * Route
2453
+ *
2454
+ * URL route path (e.g., '/', '/dashboard')
2455
+ */
2456
+ route: string;
2457
+ /**
2458
+ * File
2459
+ *
2460
+ * Source file path (e.g., 'app/page.tsx')
2461
+ */
2462
+ file: string;
2463
+ /**
2464
+ * Screenshot Link
2465
+ *
2466
+ * OCXP link to screenshot of this page
2467
+ */
2468
+ screenshot_link?: string | null;
2469
+ };
2470
+ /**
2471
+ * PrototypeStoredVersionsResponse
2472
+ *
2473
+ * Fast response for stored version state (DynamoDB query, no S3/API calls).
2474
+ *
2475
+ * Used by the frontend to quickly determine button states without
2476
+ * triggering a full sync operation that makes multiple S3 HEAD requests.
2477
+ *
2478
+ * When include_details=true is requested, also returns full version metadata
2479
+ * including files, pages, and screenshot links from DynamoDB.
2480
+ */
2481
+ type PrototypeStoredVersionsResponse = {
2482
+ /**
2483
+ * Provider
2484
+ *
2485
+ * Provider name (v0, lovable, bolt)
2486
+ */
2487
+ provider: string;
2488
+ /**
2489
+ * Chat Id
2490
+ *
2491
+ * Chat ID
2492
+ */
2493
+ chat_id: string;
2494
+ /**
2495
+ * Stored Versions
2496
+ *
2497
+ * Version IDs already downloaded to S3
2498
+ */
2499
+ stored_versions?: Array<string>;
2500
+ /**
2501
+ * Latest Version Id
2502
+ *
2503
+ * Latest version ID available from the provider (cached)
2504
+ */
2505
+ latest_version_id?: string | null;
2506
+ /**
2507
+ * Version Details
2508
+ *
2509
+ * Full version details when include_details=true (from DynamoDB)
2510
+ */
2511
+ version_details?: Array<PrototypeVersionDetail>;
2512
+ };
2513
+ /**
2514
+ * PrototypeSyncJobStatusResponse
2515
+ *
2516
+ * Response for job status polling endpoint.
2517
+ */
2518
+ type PrototypeSyncJobStatusResponse = {
2519
+ /**
2520
+ * Job Id
2521
+ */
2522
+ job_id: string;
2523
+ /**
2524
+ * Status
2525
+ */
2526
+ status: string;
2527
+ /**
2528
+ * Progress
2529
+ */
2530
+ progress: number;
2531
+ /**
2532
+ * Current Step
2533
+ */
2534
+ current_step: string;
2535
+ /**
2536
+ * Files Processed
2537
+ */
2538
+ files_processed: number;
2539
+ /**
2540
+ * Files Total
2541
+ */
2542
+ files_total: number;
2543
+ /**
2544
+ * Screenshots Processed
2545
+ */
2546
+ screenshots_processed: number;
2547
+ /**
2548
+ * Screenshots Total
2549
+ */
2550
+ screenshots_total: number;
2551
+ /**
2552
+ * Content Links
2553
+ */
2554
+ content_links?: Array<string>;
2555
+ /**
2556
+ * Error
2557
+ */
2558
+ error?: string | null;
2559
+ /**
2560
+ * Created At
2561
+ */
2562
+ created_at?: string | null;
2563
+ /**
2564
+ * Updated At
2565
+ */
2566
+ updated_at?: string | null;
2567
+ };
2568
+ /**
2569
+ * PrototypeVersionDetail
2570
+ *
2571
+ * Full version detail from DynamoDB storage.
2572
+ *
2573
+ * Contains all metadata for a stored version including files, pages,
2574
+ * and screenshot links. Used when include_details=true is requested.
2575
+ */
2576
+ type PrototypeVersionDetail = {
2577
+ /**
2578
+ * Id
2579
+ *
2580
+ * Version ID
2581
+ */
2582
+ id: string;
2583
+ /**
2584
+ * Preview Url
2585
+ *
2586
+ * Demo/preview URL for this version
2587
+ */
2588
+ preview_url?: string | null;
2589
+ /**
2590
+ * Screenshot Link
2591
+ *
2592
+ * OCXP link to root screenshot
2593
+ */
2594
+ screenshot_link?: string | null;
2595
+ /**
2596
+ * Files
2597
+ *
2598
+ * List of file paths in this version
2599
+ */
2600
+ files?: Array<string>;
2601
+ /**
2602
+ * Pages
2603
+ *
2604
+ * Detected pages/routes with their screenshot links
2605
+ */
2606
+ pages?: Array<PrototypePageInfo>;
2607
+ /**
2608
+ * Created At
2609
+ *
2610
+ * Version creation timestamp
2611
+ */
2612
+ created_at?: string | null;
2613
+ /**
2614
+ * Synced At
2615
+ *
2616
+ * When this version was synced to OCXP
2617
+ */
2618
+ synced_at?: string | null;
2619
+ /**
2620
+ * S3 Base Path
2621
+ *
2622
+ * Base path for tree queries: {project_id}/{chat_id}
2623
+ */
2624
+ s3_base_path?: string | null;
2625
+ };
2626
+ /**
2627
+ * QueryFilter
2628
+ */
2629
+ type QueryFilter = {
2630
+ /**
2631
+ * Field
2632
+ */
2633
+ field: string;
2634
+ /**
2635
+ * Operator
2636
+ */
2637
+ operator?: string;
2638
+ /**
2639
+ * Value
2640
+ */
2641
+ value: unknown;
2642
+ };
2643
+ /**
2644
+ * QueryRequest
2645
+ */
2646
+ type QueryRequest = {
2647
+ /**
2648
+ * Filters
2649
+ */
2650
+ filters?: Array<QueryFilter>;
2651
+ /**
2652
+ * Limit
2653
+ */
2654
+ limit?: number;
2655
+ };
2656
+ /**
2657
+ * RAGRequest
2658
+ */
2659
+ type RagRequest = {
2660
+ /**
2661
+ * Query
2662
+ */
2663
+ query: string;
2664
+ /**
2665
+ * Content Type
2666
+ *
2667
+ * Knowledge base to query: 'code' for source files, 'docs' for documentation, 'all' for both
2668
+ */
2669
+ content_type?: string;
2670
+ /**
2671
+ * Session Id
2672
+ *
2673
+ * Session ID for conversation
2674
+ */
2675
+ session_id?: string | null;
2676
+ };
2677
+ /**
2678
+ * RefreshRequest
2679
+ *
2680
+ * Token refresh request - accepts both camelCase and snake_case.
2681
+ */
2682
+ type RefreshRequest = {
2683
+ /**
2684
+ * Refreshtoken
2685
+ */
2686
+ refreshToken: string;
2687
+ };
2688
+ /**
2689
+ * RefreshResponse
2690
+ *
2691
+ * Token refresh response with camelCase output (no new refresh_token).
2692
+ */
2693
+ type RefreshResponse = {
2694
+ /**
2695
+ * Accesstoken
2696
+ */
2697
+ accessToken: string;
2698
+ /**
2699
+ * Tokentype
2700
+ */
2701
+ tokenType?: string;
2702
+ /**
2703
+ * Expiresin
2704
+ */
2705
+ expiresIn?: number;
2706
+ /**
2707
+ * Idtoken
2708
+ */
2709
+ idToken: string;
2710
+ };
2711
+ /**
2712
+ * RegenerateMissionRequest
2713
+ *
2714
+ * Request body for mission regeneration.
2715
+ */
2716
+ type RegenerateMissionRequest = {
2717
+ /**
2718
+ * Ticket Id
2719
+ *
2720
+ * Updated ticket ID
2721
+ */
2722
+ ticket_id?: string | null;
2723
+ /**
2724
+ * Ticket Summary
2725
+ *
2726
+ * Updated ticket summary
2727
+ */
2728
+ ticket_summary?: string | null;
2729
+ /**
2730
+ * Ticket Description
2731
+ *
2732
+ * Updated ticket description
2733
+ */
2734
+ ticket_description?: string | null;
2735
+ /**
2736
+ * Project Id
2737
+ *
2738
+ * Project ID to preserve/set
2739
+ */
2740
+ project_id?: string | null;
2741
+ /**
2742
+ * Archive Old Docs
2743
+ *
2744
+ * Archive old docs before regenerating
2745
+ */
2746
+ archive_old_docs?: boolean;
2747
+ /**
2748
+ * Auto Increment Version
2749
+ *
2750
+ * Auto-increment archive version
2751
+ */
2752
+ auto_increment_version?: boolean;
2753
+ };
2754
+ /**
2755
+ * RegenerateMissionResponse
2756
+ *
2757
+ * Response for mission regeneration.
2758
+ */
2759
+ type RegenerateMissionResponse = {
2760
+ /**
2761
+ * Success
2762
+ */
2763
+ success: boolean;
2764
+ /**
2765
+ * Job Id
2766
+ */
2767
+ job_id?: string | null;
2768
+ /**
2769
+ * Archive Version
2770
+ */
2771
+ archive_version: number;
2772
+ /**
2773
+ * Status
2774
+ *
2775
+ * started|completed|failed
2776
+ */
2777
+ status: string;
2778
+ /**
2779
+ * Archived Files
2780
+ */
2781
+ archived_files?: Array<string>;
2782
+ /**
2783
+ * Error
2784
+ */
2785
+ error?: string | null;
2786
+ };
2787
+ /**
2788
+ * RepoCommitInfo
2789
+ *
2790
+ * Commit information from GitHub.
2791
+ */
2792
+ type RepoCommitInfo = {
2793
+ /**
2794
+ * Sha
2795
+ *
2796
+ * Short commit SHA (7 chars)
2797
+ */
2798
+ sha: string;
2799
+ /**
2800
+ * Full Sha
2801
+ *
2802
+ * Full commit SHA
2803
+ */
2804
+ full_sha: string;
2805
+ /**
2806
+ * Message
2807
+ *
2808
+ * Commit message (first line)
2809
+ */
2810
+ message: string;
2811
+ /**
2812
+ * Date
2813
+ *
2814
+ * Commit date ISO timestamp
2815
+ */
2816
+ date?: string | null;
2817
+ /**
2818
+ * Author
2819
+ *
2820
+ * Commit author name
2821
+ */
2822
+ author?: string;
2823
+ };
2824
+ /**
2825
+ * RepoCommitStatusResponse
2826
+ *
2827
+ * Response for GET /ocxp/repo/{id}/commits.
2828
+ */
2829
+ type RepoCommitStatusResponse = {
2830
+ /**
2831
+ * Repo Id
2832
+ *
2833
+ * Repository identifier
2834
+ */
2835
+ repo_id: string;
2836
+ /**
2837
+ * Branch
2838
+ *
2839
+ * Branch name
2840
+ */
2841
+ branch: string;
2842
+ /**
2843
+ * Indexed Commit
2844
+ *
2845
+ * Currently indexed commit SHA
2846
+ */
2847
+ indexed_commit?: string | null;
2848
+ /**
2849
+ * Latest Commit
2850
+ *
2851
+ * Latest commit SHA on GitHub
2852
+ */
2853
+ latest_commit?: string | null;
2854
+ /**
2855
+ * Latest Commit Date
2856
+ *
2857
+ * Latest commit date
2858
+ */
2859
+ latest_commit_date?: string | null;
2860
+ /**
2861
+ * Latest Commit Message
2862
+ *
2863
+ * Latest commit message
2864
+ */
2865
+ latest_commit_message?: string | null;
2866
+ /**
2867
+ * Commits Behind
2868
+ *
2869
+ * Number of commits behind (-1 = many)
2870
+ */
2871
+ commits_behind?: number;
2872
+ /**
2873
+ * Is Up To Date
2874
+ *
2875
+ * Whether repo is up to date
2876
+ */
2877
+ is_up_to_date?: boolean;
2878
+ /**
2879
+ * Missing Commits
2880
+ *
2881
+ * List of missing commits
2882
+ */
2883
+ missing_commits?: Array<RepoCommitInfo>;
2884
+ /**
2885
+ * Error
2886
+ *
2887
+ * Error message if lookup failed
2888
+ */
2889
+ error?: string | null;
2890
+ };
2891
+ /**
2892
+ * RepoDeleteResponse
2893
+ *
2894
+ * Response for DELETE /ocxp/repo/{id}.
2895
+ */
2896
+ type RepoDeleteResponse = {
2897
+ /**
2898
+ * Id
2899
+ *
2900
+ * Deleted repository UUID
2901
+ */
2902
+ id: string;
2903
+ /**
2904
+ * Repo Id
2905
+ *
2906
+ * Deleted repository identifier (owner/repo)
2907
+ */
2908
+ repo_id: string;
2909
+ /**
2910
+ * Deleted
2911
+ */
2912
+ deleted?: boolean;
2913
+ };
2914
+ /**
2915
+ * RepoDownloadResponse
2916
+ *
2917
+ * Response for POST /ocxp/repo/download.
2918
+ */
2919
+ type RepoDownloadResponse = {
2920
+ /**
2921
+ * Id
2922
+ *
2923
+ * Unique UUID for API operations (available when linked or complete)
2924
+ */
2925
+ id?: string | null;
2926
+ /**
2927
+ * Job Id
2928
+ */
2929
+ job_id: string;
2930
+ /**
2931
+ * Status
2932
+ *
2933
+ * started|linked|downloading|indexing|complete|failed
2934
+ */
2935
+ status: string;
2936
+ /**
2937
+ * Message
2938
+ */
2939
+ message?: string | null;
2940
+ /**
2941
+ * Deduplicated
2942
+ *
2943
+ * True if repo already exists and was linked instead of downloaded
2944
+ */
2945
+ deduplicated?: boolean;
2946
+ /**
2947
+ * S3 Path
2948
+ *
2949
+ * S3 storage path
2950
+ */
2951
+ s3_path?: string | null;
2952
+ /**
2953
+ * Detected Type
2954
+ *
2955
+ * Auto-detected repo content type (code, docs, or mixed)
2956
+ */
2957
+ detected_type?: string | null;
2958
+ /**
2959
+ * Detection Method
2960
+ *
2961
+ * How repo type was detected: path_heuristic (from folder name) or github_api (from language analysis)
2962
+ */
2963
+ detection_method?: string | null;
2964
+ };
2965
+ /**
2966
+ * RepoInfo
2967
+ *
2968
+ * Repository information.
2969
+ */
2970
+ type RepoInfo = {
2971
+ /**
2972
+ * Id
2973
+ *
2974
+ * Unique UUID for API operations
2975
+ */
2976
+ id: string;
2977
+ /**
2978
+ * Repo Id
2979
+ *
2980
+ * Repository identifier (owner/repo) for display
2981
+ */
2982
+ repo_id: string;
2983
+ /**
2984
+ * Name
2985
+ */
2986
+ name: string;
2987
+ /**
2988
+ * Url
2989
+ */
2990
+ url?: string | null;
2991
+ /**
2992
+ * Branch
2993
+ *
2994
+ * Git branch
2995
+ */
2996
+ branch?: string;
2997
+ /**
2998
+ * Path
2999
+ *
3000
+ * Subpath within repository (if partial download)
3001
+ */
3002
+ path?: string | null;
3003
+ /**
3004
+ * Visibility
2133
3005
  *
2134
3006
  * Repository visibility: public or private
2135
3007
  */
@@ -2219,6 +3091,86 @@ type RepoStatusResponse = {
2219
3091
  */
2220
3092
  total_files?: number | null;
2221
3093
  };
3094
+ /**
3095
+ * RepoSyncAllResponse
3096
+ *
3097
+ * Response for POST /ocxp/repo/sync-all.
3098
+ */
3099
+ type RepoSyncAllResponse = {
3100
+ /**
3101
+ * Total Repos
3102
+ *
3103
+ * Total repositories checked
3104
+ */
3105
+ total_repos: number;
3106
+ /**
3107
+ * Synced
3108
+ *
3109
+ * Repositories that were synced
3110
+ */
3111
+ synced?: number;
3112
+ /**
3113
+ * Up To Date
3114
+ *
3115
+ * Repositories already up to date
3116
+ */
3117
+ up_to_date?: number;
3118
+ /**
3119
+ * Failed
3120
+ *
3121
+ * Repositories that failed to sync
3122
+ */
3123
+ failed?: number;
3124
+ /**
3125
+ * Jobs
3126
+ *
3127
+ * Job IDs for synced repos
3128
+ */
3129
+ jobs?: Array<string>;
3130
+ };
3131
+ /**
3132
+ * RepoSyncResponse
3133
+ *
3134
+ * Response for POST /ocxp/repo/{id}/sync.
3135
+ */
3136
+ type RepoSyncResponse = {
3137
+ /**
3138
+ * Job Id
3139
+ *
3140
+ * Job ID for status tracking (empty if up_to_date)
3141
+ */
3142
+ job_id?: string;
3143
+ /**
3144
+ * Status
3145
+ *
3146
+ * Sync status
3147
+ */
3148
+ status: string;
3149
+ /**
3150
+ * Message
3151
+ *
3152
+ * Human-readable status message
3153
+ */
3154
+ message: string;
3155
+ /**
3156
+ * Previous Commit
3157
+ *
3158
+ * Previous commit SHA (7 chars)
3159
+ */
3160
+ previous_commit?: string | null;
3161
+ /**
3162
+ * Current Commit
3163
+ *
3164
+ * Current/latest commit SHA (7 chars)
3165
+ */
3166
+ current_commit?: string | null;
3167
+ /**
3168
+ * Changes Detected
3169
+ *
3170
+ * Whether changes were detected
3171
+ */
3172
+ changes_detected?: boolean;
3173
+ };
2222
3174
  /**
2223
3175
  * SecurityFinding
2224
3176
  *
@@ -2403,6 +3355,17 @@ type SetDefaultRepoRequest = {
2403
3355
  * Type of entity the memo is associated with.
2404
3356
  */
2405
3357
  type SourceType = 'repo' | 'project' | 'mission' | 'doc';
3358
+ /**
3359
+ * SyncRequest
3360
+ *
3361
+ * Request body for sync operations.
3362
+ */
3363
+ type SyncRequest = {
3364
+ /**
3365
+ * Force
3366
+ */
3367
+ force?: boolean;
3368
+ };
2406
3369
  /**
2407
3370
  * TokenResponse
2408
3371
  *
@@ -2511,22 +3474,256 @@ type WriteRequest = {
2511
3474
  /**
2512
3475
  * Ifnotexists
2513
3476
  */
2514
- ifNotExists?: boolean;
3477
+ ifNotExists?: boolean;
3478
+ /**
3479
+ * Manage Metadata
3480
+ */
3481
+ manage_metadata?: boolean;
3482
+ /**
3483
+ * Auto Index
3484
+ */
3485
+ auto_index?: boolean | null;
3486
+ /**
3487
+ * Project Id
3488
+ */
3489
+ project_id?: string | null;
3490
+ /**
3491
+ * Mission Id
3492
+ */
3493
+ mission_id?: string | null;
3494
+ };
3495
+ type BulkReadContentData = {
3496
+ body: BulkReadRequest;
3497
+ headers?: {
3498
+ /**
3499
+ * X-Workspace
3500
+ */
3501
+ 'X-Workspace'?: string;
3502
+ };
3503
+ path: {
3504
+ /**
3505
+ * Content Type
3506
+ *
3507
+ * Content type (mission, project, context, code, etc.)
3508
+ */
3509
+ content_type: string;
3510
+ };
3511
+ query?: never;
3512
+ url: '/ocxp/context/{content_type}/bulk/read';
3513
+ };
3514
+ type BulkReadContentErrors = {
3515
+ /**
3516
+ * Validation error
3517
+ */
3518
+ 400: unknown;
3519
+ /**
3520
+ * Validation Error
3521
+ */
3522
+ 422: HttpValidationError;
3523
+ /**
3524
+ * Rate limit exceeded
3525
+ */
3526
+ 429: unknown;
3527
+ };
3528
+ type BulkReadContentResponses = {
3529
+ /**
3530
+ * Successful Response
3531
+ */
3532
+ 200: BulkReadResponse;
3533
+ };
3534
+ type BulkWriteContentData = {
3535
+ body: BulkWriteRequest;
3536
+ headers?: {
3537
+ /**
3538
+ * X-Workspace
3539
+ */
3540
+ 'X-Workspace'?: string;
3541
+ };
3542
+ path: {
3543
+ /**
3544
+ * Content Type
3545
+ *
3546
+ * Content type (mission, project, context, code, etc.)
3547
+ */
3548
+ content_type: string;
3549
+ };
3550
+ query?: never;
3551
+ url: '/ocxp/context/{content_type}/bulk/write';
3552
+ };
3553
+ type BulkWriteContentErrors = {
3554
+ /**
3555
+ * Validation error
3556
+ */
3557
+ 400: unknown;
3558
+ /**
3559
+ * Validation Error
3560
+ */
3561
+ 422: HttpValidationError;
3562
+ /**
3563
+ * Rate limit exceeded
3564
+ */
3565
+ 429: unknown;
3566
+ };
3567
+ type BulkWriteContentResponses = {
3568
+ /**
3569
+ * Successful Response
3570
+ */
3571
+ 200: BulkWriteResponse;
3572
+ };
3573
+ type BulkDeleteContentData = {
3574
+ body: BulkDeleteRequest;
3575
+ headers?: {
3576
+ /**
3577
+ * X-Workspace
3578
+ */
3579
+ 'X-Workspace'?: string;
3580
+ };
3581
+ path: {
3582
+ /**
3583
+ * Content Type
3584
+ *
3585
+ * Content type (mission, project, context, code, etc.)
3586
+ */
3587
+ content_type: string;
3588
+ };
3589
+ query?: never;
3590
+ url: '/ocxp/context/{content_type}/bulk/delete';
3591
+ };
3592
+ type BulkDeleteContentErrors = {
3593
+ /**
3594
+ * Validation error
3595
+ */
3596
+ 400: unknown;
3597
+ /**
3598
+ * Validation Error
3599
+ */
3600
+ 422: HttpValidationError;
3601
+ /**
3602
+ * Rate limit exceeded
3603
+ */
3604
+ 429: unknown;
3605
+ };
3606
+ type BulkDeleteContentResponses = {
3607
+ /**
3608
+ * Successful Response
3609
+ */
3610
+ 200: BulkDeleteResponse;
3611
+ };
3612
+ type ListPrototypeChatsData = {
3613
+ body?: never;
3614
+ path?: never;
3615
+ query?: {
3616
+ /**
3617
+ * Provider
3618
+ */
3619
+ provider?: string;
3620
+ };
3621
+ url: '/ocxp/prototype/chat/list';
3622
+ };
3623
+ type ListPrototypeChatsErrors = {
3624
+ /**
3625
+ * Validation Error
3626
+ */
3627
+ 422: HttpValidationError;
3628
+ /**
3629
+ * Rate limit exceeded
3630
+ */
3631
+ 429: unknown;
3632
+ };
3633
+ type ListPrototypeChatsResponses = {
3634
+ /**
3635
+ * Successful Response
3636
+ */
3637
+ 200: PrototypeChatListResponse;
3638
+ };
3639
+ type PreviewPrototypeChatData = {
3640
+ body: PrototypeChatPreviewRequest;
3641
+ path?: never;
3642
+ query?: never;
3643
+ url: '/ocxp/prototype/chat/preview';
3644
+ };
3645
+ type PreviewPrototypeChatErrors = {
3646
+ /**
3647
+ * Validation error
3648
+ */
3649
+ 400: unknown;
3650
+ /**
3651
+ * Validation Error
3652
+ */
3653
+ 422: HttpValidationError;
3654
+ /**
3655
+ * Rate limit exceeded
3656
+ */
3657
+ 429: unknown;
3658
+ };
3659
+ type PreviewPrototypeChatResponses = {
3660
+ /**
3661
+ * Successful Response
3662
+ */
3663
+ 200: PrototypeChatPreviewResponse;
3664
+ };
3665
+ type LinkPrototypeChatData = {
3666
+ body: PrototypeChatLinkRequest;
3667
+ headers?: {
3668
+ /**
3669
+ * X-Workspace
3670
+ */
3671
+ 'X-Workspace'?: string;
3672
+ };
3673
+ path?: never;
3674
+ query?: never;
3675
+ url: '/ocxp/prototype/chat/link';
3676
+ };
3677
+ type LinkPrototypeChatErrors = {
3678
+ /**
3679
+ * Validation error
3680
+ */
3681
+ 400: unknown;
3682
+ /**
3683
+ * Validation Error
3684
+ */
3685
+ 422: HttpValidationError;
3686
+ /**
3687
+ * Rate limit exceeded
3688
+ */
3689
+ 429: unknown;
3690
+ };
3691
+ type LinkPrototypeChatResponses = {
3692
+ /**
3693
+ * Successful Response
3694
+ */
3695
+ 200: PrototypeChatLinkResponse;
3696
+ };
3697
+ type SyncPrototypeChatData = {
3698
+ body: PrototypeChatSyncRequest;
3699
+ headers?: {
3700
+ /**
3701
+ * X-Workspace
3702
+ */
3703
+ 'X-Workspace'?: string;
3704
+ };
3705
+ path?: never;
3706
+ query?: never;
3707
+ url: '/ocxp/prototype/chat/sync';
3708
+ };
3709
+ type SyncPrototypeChatErrors = {
2515
3710
  /**
2516
- * Manage Metadata
3711
+ * Validation Error
2517
3712
  */
2518
- manage_metadata?: boolean;
3713
+ 422: HttpValidationError;
2519
3714
  /**
2520
- * Project Id
3715
+ * Rate limit exceeded
2521
3716
  */
2522
- project_id?: string | null;
3717
+ 429: unknown;
3718
+ };
3719
+ type SyncPrototypeChatResponses = {
2523
3720
  /**
2524
- * Mission Id
3721
+ * Successful Response
2525
3722
  */
2526
- mission_id?: string | null;
3723
+ 200: PrototypeChatSyncResponse;
2527
3724
  };
2528
- type BulkReadContentData = {
2529
- body: BulkReadRequest;
3725
+ type GetStoredVersionsData = {
3726
+ body?: never;
2530
3727
  headers?: {
2531
3728
  /**
2532
3729
  * X-Workspace
@@ -2535,29 +3732,40 @@ type BulkReadContentData = {
2535
3732
  };
2536
3733
  path: {
2537
3734
  /**
2538
- * Content Type
2539
- *
2540
- * Content type (mission, project, context, code, etc.)
3735
+ * Provider
2541
3736
  */
2542
- content_type: string;
3737
+ provider: string;
3738
+ /**
3739
+ * Chat Id
3740
+ */
3741
+ chat_id: string;
2543
3742
  };
2544
- query?: never;
2545
- url: '/ocxp/context/{content_type}/bulk/read';
3743
+ query?: {
3744
+ /**
3745
+ * Include Details
3746
+ */
3747
+ include_details?: boolean;
3748
+ };
3749
+ url: '/ocxp/prototype/chat/{provider}/{chat_id}/stored-versions';
2546
3750
  };
2547
- type BulkReadContentErrors = {
3751
+ type GetStoredVersionsErrors = {
2548
3752
  /**
2549
3753
  * Validation Error
2550
3754
  */
2551
3755
  422: HttpValidationError;
3756
+ /**
3757
+ * Rate limit exceeded
3758
+ */
3759
+ 429: unknown;
2552
3760
  };
2553
- type BulkReadContentResponses = {
3761
+ type GetStoredVersionsResponses = {
2554
3762
  /**
2555
3763
  * Successful Response
2556
3764
  */
2557
- 200: BulkReadResponse;
3765
+ 200: PrototypeStoredVersionsResponse;
2558
3766
  };
2559
- type BulkWriteContentData = {
2560
- body: BulkWriteRequest;
3767
+ type GetPrototypeChatData = {
3768
+ body?: never;
2561
3769
  headers?: {
2562
3770
  /**
2563
3771
  * X-Workspace
@@ -2566,57 +3774,104 @@ type BulkWriteContentData = {
2566
3774
  };
2567
3775
  path: {
2568
3776
  /**
2569
- * Content Type
2570
- *
2571
- * Content type (mission, project, context, code, etc.)
3777
+ * Provider
2572
3778
  */
2573
- content_type: string;
3779
+ provider: string;
3780
+ /**
3781
+ * Chat Id
3782
+ */
3783
+ chat_id: string;
2574
3784
  };
2575
- query?: never;
2576
- url: '/ocxp/context/{content_type}/bulk/write';
3785
+ query?: {
3786
+ /**
3787
+ * Project Id
3788
+ */
3789
+ project_id?: string | null;
3790
+ /**
3791
+ * Version Id
3792
+ */
3793
+ version_id?: string | null;
3794
+ };
3795
+ url: '/ocxp/prototype/chat/{provider}/{chat_id}';
2577
3796
  };
2578
- type BulkWriteContentErrors = {
3797
+ type GetPrototypeChatErrors = {
3798
+ /**
3799
+ * Chat not found
3800
+ */
3801
+ 404: unknown;
2579
3802
  /**
2580
3803
  * Validation Error
2581
3804
  */
2582
3805
  422: HttpValidationError;
3806
+ /**
3807
+ * Rate limit exceeded
3808
+ */
3809
+ 429: unknown;
2583
3810
  };
2584
- type BulkWriteContentResponses = {
3811
+ type GetPrototypeChatResponses = {
2585
3812
  /**
2586
- * Successful Response
3813
+ * Chat data returned
2587
3814
  */
2588
- 200: BulkWriteResponse;
3815
+ 200: PrototypeChatGetResponse;
2589
3816
  };
2590
- type BulkDeleteContentData = {
2591
- body: BulkDeleteRequest;
3817
+ type SyncPrototypeChatAsyncData = {
3818
+ body: PrototypeChatSyncAsyncRequest;
2592
3819
  headers?: {
2593
3820
  /**
2594
3821
  * X-Workspace
2595
3822
  */
2596
3823
  'X-Workspace'?: string;
2597
3824
  };
3825
+ path?: never;
3826
+ query?: never;
3827
+ url: '/ocxp/prototype/chat/sync-async';
3828
+ };
3829
+ type SyncPrototypeChatAsyncErrors = {
3830
+ /**
3831
+ * Validation Error
3832
+ */
3833
+ 422: HttpValidationError;
3834
+ /**
3835
+ * Rate limit exceeded
3836
+ */
3837
+ 429: unknown;
3838
+ };
3839
+ type SyncPrototypeChatAsyncResponses = {
3840
+ /**
3841
+ * Successful Response
3842
+ */
3843
+ 202: PrototypeChatSyncAsyncResponse;
3844
+ };
3845
+ type GetSyncStatusData = {
3846
+ body?: never;
2598
3847
  path: {
2599
3848
  /**
2600
- * Content Type
2601
- *
2602
- * Content type (mission, project, context, code, etc.)
3849
+ * Job Id
2603
3850
  */
2604
- content_type: string;
3851
+ job_id: string;
2605
3852
  };
2606
3853
  query?: never;
2607
- url: '/ocxp/context/{content_type}/bulk/delete';
3854
+ url: '/ocxp/prototype/chat/sync-status/{job_id}';
2608
3855
  };
2609
- type BulkDeleteContentErrors = {
3856
+ type GetSyncStatusErrors = {
3857
+ /**
3858
+ * Job not found
3859
+ */
3860
+ 404: unknown;
2610
3861
  /**
2611
3862
  * Validation Error
2612
3863
  */
2613
3864
  422: HttpValidationError;
3865
+ /**
3866
+ * Rate limit exceeded
3867
+ */
3868
+ 429: unknown;
2614
3869
  };
2615
- type BulkDeleteContentResponses = {
3870
+ type GetSyncStatusResponses = {
2616
3871
  /**
2617
- * Successful Response
3872
+ * Job status returned
2618
3873
  */
2619
- 200: BulkDeleteResponse;
3874
+ 200: PrototypeSyncJobStatusResponse;
2620
3875
  };
2621
3876
  type ListSessionsData = {
2622
3877
  body?: never;
@@ -2648,6 +3903,10 @@ type ListSessionsErrors = {
2648
3903
  * Validation Error
2649
3904
  */
2650
3905
  422: HttpValidationError;
3906
+ /**
3907
+ * Rate limit exceeded
3908
+ */
3909
+ 429: unknown;
2651
3910
  };
2652
3911
  type ListSessionsResponses = {
2653
3912
  /**
@@ -2688,6 +3947,10 @@ type GetSessionMessagesErrors = {
2688
3947
  * Validation Error
2689
3948
  */
2690
3949
  422: HttpValidationError;
3950
+ /**
3951
+ * Rate limit exceeded
3952
+ */
3953
+ 429: unknown;
2691
3954
  };
2692
3955
  type GetSessionMessagesResponses = {
2693
3956
  /**
@@ -2717,6 +3980,10 @@ type UpdateSessionMetadataErrors = {
2717
3980
  * Validation Error
2718
3981
  */
2719
3982
  422: HttpValidationError;
3983
+ /**
3984
+ * Rate limit exceeded
3985
+ */
3986
+ 429: unknown;
2720
3987
  };
2721
3988
  type UpdateSessionMetadataResponses = {
2722
3989
  /**
@@ -2750,6 +4017,10 @@ type ForkSessionErrors = {
2750
4017
  * Validation Error
2751
4018
  */
2752
4019
  422: HttpValidationError;
4020
+ /**
4021
+ * Rate limit exceeded
4022
+ */
4023
+ 429: unknown;
2753
4024
  };
2754
4025
  type ForkSessionResponses = {
2755
4026
  /**
@@ -2783,6 +4054,10 @@ type ArchiveSessionErrors = {
2783
4054
  * Validation Error
2784
4055
  */
2785
4056
  422: HttpValidationError;
4057
+ /**
4058
+ * Rate limit exceeded
4059
+ */
4060
+ 429: unknown;
2786
4061
  };
2787
4062
  type ArchiveSessionResponses = {
2788
4063
  /**
@@ -2826,6 +4101,10 @@ type ListProjectsErrors = {
2826
4101
  * Validation Error
2827
4102
  */
2828
4103
  422: HttpValidationError;
4104
+ /**
4105
+ * Rate limit exceeded
4106
+ */
4107
+ 429: unknown;
2829
4108
  };
2830
4109
  type ListProjectsResponses = {
2831
4110
  /**
@@ -2850,6 +4129,10 @@ type CreateProjectErrors = {
2850
4129
  * Validation Error
2851
4130
  */
2852
4131
  422: HttpValidationError;
4132
+ /**
4133
+ * Rate limit exceeded
4134
+ */
4135
+ 429: unknown;
2853
4136
  };
2854
4137
  type CreateProjectResponses = {
2855
4138
  /**
@@ -2885,6 +4168,10 @@ type DeleteProjectErrors = {
2885
4168
  * Validation Error
2886
4169
  */
2887
4170
  422: HttpValidationError;
4171
+ /**
4172
+ * Rate limit exceeded
4173
+ */
4174
+ 429: unknown;
2888
4175
  };
2889
4176
  type DeleteProjectResponses = {
2890
4177
  /**
@@ -2920,6 +4207,10 @@ type GetProjectErrors = {
2920
4207
  * Validation Error
2921
4208
  */
2922
4209
  422: HttpValidationError;
4210
+ /**
4211
+ * Rate limit exceeded
4212
+ */
4213
+ 429: unknown;
2923
4214
  };
2924
4215
  type GetProjectResponses = {
2925
4216
  /**
@@ -2955,6 +4246,10 @@ type UpdateProjectErrors = {
2955
4246
  * Validation Error
2956
4247
  */
2957
4248
  422: HttpValidationError;
4249
+ /**
4250
+ * Rate limit exceeded
4251
+ */
4252
+ 429: unknown;
2958
4253
  };
2959
4254
  type UpdateProjectResponses = {
2960
4255
  /**
@@ -2990,6 +4285,10 @@ type AddLinkedRepoErrors = {
2990
4285
  * Validation Error
2991
4286
  */
2992
4287
  422: HttpValidationError;
4288
+ /**
4289
+ * Rate limit exceeded
4290
+ */
4291
+ 429: unknown;
2993
4292
  };
2994
4293
  type AddLinkedRepoResponses = {
2995
4294
  /**
@@ -3029,6 +4328,10 @@ type RemoveLinkedRepoErrors = {
3029
4328
  * Validation Error
3030
4329
  */
3031
4330
  422: HttpValidationError;
4331
+ /**
4332
+ * Rate limit exceeded
4333
+ */
4334
+ 429: unknown;
3032
4335
  };
3033
4336
  type RemoveLinkedRepoResponses = {
3034
4337
  /**
@@ -3064,6 +4367,10 @@ type SetDefaultRepoErrors = {
3064
4367
  * Validation Error
3065
4368
  */
3066
4369
  422: HttpValidationError;
4370
+ /**
4371
+ * Rate limit exceeded
4372
+ */
4373
+ 429: unknown;
3067
4374
  };
3068
4375
  type SetDefaultRepoResponses = {
3069
4376
  /**
@@ -3099,6 +4406,10 @@ type GetContextReposErrors = {
3099
4406
  * Validation Error
3100
4407
  */
3101
4408
  422: HttpValidationError;
4409
+ /**
4410
+ * Rate limit exceeded
4411
+ */
4412
+ 429: unknown;
3102
4413
  };
3103
4414
  type GetContextReposResponses = {
3104
4415
  /**
@@ -3134,6 +4445,10 @@ type AddMissionErrors = {
3134
4445
  * Validation Error
3135
4446
  */
3136
4447
  422: HttpValidationError;
4448
+ /**
4449
+ * Rate limit exceeded
4450
+ */
4451
+ 429: unknown;
3137
4452
  };
3138
4453
  type AddMissionResponses = {
3139
4454
  /**
@@ -3173,6 +4488,10 @@ type RemoveMissionErrors = {
3173
4488
  * Validation Error
3174
4489
  */
3175
4490
  422: HttpValidationError;
4491
+ /**
4492
+ * Rate limit exceeded
4493
+ */
4494
+ 429: unknown;
3176
4495
  };
3177
4496
  type RemoveMissionResponses = {
3178
4497
  /**
@@ -3208,6 +4527,10 @@ type GetProjectDatabasesErrors = {
3208
4527
  * Validation Error
3209
4528
  */
3210
4529
  422: HttpValidationError;
4530
+ /**
4531
+ * Rate limit exceeded
4532
+ */
4533
+ 429: unknown;
3211
4534
  };
3212
4535
  type GetProjectDatabasesResponses = {
3213
4536
  /**
@@ -3243,6 +4566,10 @@ type AddDatabaseErrors = {
3243
4566
  * Validation Error
3244
4567
  */
3245
4568
  422: HttpValidationError;
4569
+ /**
4570
+ * Rate limit exceeded
4571
+ */
4572
+ 429: unknown;
3246
4573
  };
3247
4574
  type AddDatabaseResponses = {
3248
4575
  /**
@@ -3282,6 +4609,10 @@ type RemoveDatabaseErrors = {
3282
4609
  * Validation Error
3283
4610
  */
3284
4611
  422: HttpValidationError;
4612
+ /**
4613
+ * Rate limit exceeded
4614
+ */
4615
+ 429: unknown;
3285
4616
  };
3286
4617
  type RemoveDatabaseResponses = {
3287
4618
  /**
@@ -3317,6 +4648,10 @@ type SetDefaultDatabaseErrors = {
3317
4648
  * Validation Error
3318
4649
  */
3319
4650
  422: HttpValidationError;
4651
+ /**
4652
+ * Rate limit exceeded
4653
+ */
4654
+ 429: unknown;
3320
4655
  };
3321
4656
  type SetDefaultDatabaseResponses = {
3322
4657
  /**
@@ -3352,6 +4687,10 @@ type RegenerateMissionErrors = {
3352
4687
  * Validation Error
3353
4688
  */
3354
4689
  422: HttpValidationError;
4690
+ /**
4691
+ * Rate limit exceeded
4692
+ */
4693
+ 429: unknown;
3355
4694
  /**
3356
4695
  * Archive or regeneration failed
3357
4696
  */
@@ -3380,6 +4719,10 @@ type QueryKnowledgeBaseErrors = {
3380
4719
  * Validation Error
3381
4720
  */
3382
4721
  422: HttpValidationError;
4722
+ /**
4723
+ * Rate limit exceeded
4724
+ */
4725
+ 429: unknown;
3383
4726
  };
3384
4727
  type QueryKnowledgeBaseResponses = {
3385
4728
  /**
@@ -3404,6 +4747,10 @@ type RagKnowledgeBaseErrors = {
3404
4747
  * Validation Error
3405
4748
  */
3406
4749
  422: HttpValidationError;
4750
+ /**
4751
+ * Rate limit exceeded
4752
+ */
4753
+ 429: unknown;
3407
4754
  };
3408
4755
  type RagKnowledgeBaseResponses = {
3409
4756
  /**
@@ -3471,6 +4818,10 @@ type ListMemosErrors = {
3471
4818
  * Validation Error
3472
4819
  */
3473
4820
  422: HttpValidationError;
4821
+ /**
4822
+ * Rate limit exceeded
4823
+ */
4824
+ 429: unknown;
3474
4825
  };
3475
4826
  type ListMemosResponses = {
3476
4827
  /**
@@ -3500,6 +4851,10 @@ type CreateMemoErrors = {
3500
4851
  * Validation Error
3501
4852
  */
3502
4853
  422: HttpValidationError;
4854
+ /**
4855
+ * Rate limit exceeded
4856
+ */
4857
+ 429: unknown;
3503
4858
  };
3504
4859
  type CreateMemoResponses = {
3505
4860
  /**
@@ -3536,6 +4891,10 @@ type DeleteMemoErrors = {
3536
4891
  * Validation Error
3537
4892
  */
3538
4893
  422: HttpValidationError;
4894
+ /**
4895
+ * Rate limit exceeded
4896
+ */
4897
+ 429: unknown;
3539
4898
  };
3540
4899
  type DeleteMemoResponses = {
3541
4900
  /**
@@ -3572,6 +4931,10 @@ type GetMemoErrors = {
3572
4931
  * Validation Error
3573
4932
  */
3574
4933
  422: HttpValidationError;
4934
+ /**
4935
+ * Rate limit exceeded
4936
+ */
4937
+ 429: unknown;
3575
4938
  };
3576
4939
  type GetMemoResponses = {
3577
4940
  /**
@@ -3610,6 +4973,10 @@ type GetMemoForSourceErrors = {
3610
4973
  * Validation Error
3611
4974
  */
3612
4975
  422: HttpValidationError;
4976
+ /**
4977
+ * Rate limit exceeded
4978
+ */
4979
+ 429: unknown;
3613
4980
  };
3614
4981
  type GetMemoForSourceResponses = {
3615
4982
  /**
@@ -3648,6 +5015,10 @@ type ResolveMemoErrors = {
3648
5015
  * Validation Error
3649
5016
  */
3650
5017
  422: HttpValidationError;
5018
+ /**
5019
+ * Rate limit exceeded
5020
+ */
5021
+ 429: unknown;
3651
5022
  };
3652
5023
  type ResolveMemoResponses = {
3653
5024
  /**
@@ -3683,6 +5054,10 @@ type AcknowledgeMemoErrors = {
3683
5054
  * Validation Error
3684
5055
  */
3685
5056
  422: HttpValidationError;
5057
+ /**
5058
+ * Rate limit exceeded
5059
+ */
5060
+ 429: unknown;
3686
5061
  };
3687
5062
  type AcknowledgeMemoResponses = {
3688
5063
  /**
@@ -3718,6 +5093,10 @@ type IgnoreMemoErrors = {
3718
5093
  * Validation Error
3719
5094
  */
3720
5095
  422: HttpValidationError;
5096
+ /**
5097
+ * Rate limit exceeded
5098
+ */
5099
+ 429: unknown;
3721
5100
  };
3722
5101
  type IgnoreMemoResponses = {
3723
5102
  /**
@@ -3746,6 +5125,10 @@ type DownloadRepositoryErrors = {
3746
5125
  * Validation Error
3747
5126
  */
3748
5127
  422: HttpValidationError;
5128
+ /**
5129
+ * Rate limit exceeded
5130
+ */
5131
+ 429: unknown;
3749
5132
  };
3750
5133
  type DownloadRepositoryResponses = {
3751
5134
  /**
@@ -3779,6 +5162,10 @@ type GetRepoDownloadStatusErrors = {
3779
5162
  * Validation Error
3780
5163
  */
3781
5164
  422: HttpValidationError;
5165
+ /**
5166
+ * Rate limit exceeded
5167
+ */
5168
+ 429: unknown;
3782
5169
  };
3783
5170
  type GetRepoDownloadStatusResponses = {
3784
5171
  /**
@@ -3803,6 +5190,10 @@ type ListDownloadedReposErrors = {
3803
5190
  * Validation Error
3804
5191
  */
3805
5192
  422: HttpValidationError;
5193
+ /**
5194
+ * Rate limit exceeded
5195
+ */
5196
+ 429: unknown;
3806
5197
  };
3807
5198
  type ListDownloadedReposResponses = {
3808
5199
  /**
@@ -3810,8 +5201,110 @@ type ListDownloadedReposResponses = {
3810
5201
  */
3811
5202
  200: RepoListResponse;
3812
5203
  };
3813
- type DeleteRepoData = {
3814
- body?: never;
5204
+ type DeleteRepoData = {
5205
+ body?: never;
5206
+ headers?: {
5207
+ /**
5208
+ * X-Workspace
5209
+ */
5210
+ 'X-Workspace'?: string;
5211
+ };
5212
+ path: {
5213
+ /**
5214
+ * Repo Id
5215
+ */
5216
+ repo_id: string;
5217
+ };
5218
+ query?: never;
5219
+ url: '/ocxp/repo/{repo_id}';
5220
+ };
5221
+ type DeleteRepoErrors = {
5222
+ /**
5223
+ * Repository not found
5224
+ */
5225
+ 404: unknown;
5226
+ /**
5227
+ * Validation Error
5228
+ */
5229
+ 422: HttpValidationError;
5230
+ /**
5231
+ * Rate limit exceeded
5232
+ */
5233
+ 429: unknown;
5234
+ };
5235
+ type DeleteRepoResponses = {
5236
+ /**
5237
+ * Repository deleted successfully
5238
+ */
5239
+ 200: RepoDeleteResponse;
5240
+ };
5241
+ type SyncAllReposData = {
5242
+ body?: SyncRequest;
5243
+ headers?: {
5244
+ /**
5245
+ * X-Workspace
5246
+ */
5247
+ 'X-Workspace'?: string;
5248
+ };
5249
+ path?: never;
5250
+ query?: never;
5251
+ url: '/ocxp/repo/sync-all';
5252
+ };
5253
+ type SyncAllReposErrors = {
5254
+ /**
5255
+ * Validation Error
5256
+ */
5257
+ 422: HttpValidationError;
5258
+ /**
5259
+ * Rate limit exceeded
5260
+ */
5261
+ 429: unknown;
5262
+ };
5263
+ type SyncAllReposResponses = {
5264
+ /**
5265
+ * Sync jobs started
5266
+ */
5267
+ 202: RepoSyncAllResponse;
5268
+ };
5269
+ type GetRepoCommitsData = {
5270
+ body?: never;
5271
+ headers?: {
5272
+ /**
5273
+ * X-Workspace
5274
+ */
5275
+ 'X-Workspace'?: string;
5276
+ };
5277
+ path: {
5278
+ /**
5279
+ * Repo Id
5280
+ */
5281
+ repo_id: string;
5282
+ };
5283
+ query?: never;
5284
+ url: '/ocxp/repo/{repo_id}/commits';
5285
+ };
5286
+ type GetRepoCommitsErrors = {
5287
+ /**
5288
+ * Repository not found
5289
+ */
5290
+ 404: unknown;
5291
+ /**
5292
+ * Validation Error
5293
+ */
5294
+ 422: HttpValidationError;
5295
+ /**
5296
+ * Rate limit exceeded
5297
+ */
5298
+ 429: unknown;
5299
+ };
5300
+ type GetRepoCommitsResponses = {
5301
+ /**
5302
+ * Commit status returned
5303
+ */
5304
+ 200: RepoCommitStatusResponse;
5305
+ };
5306
+ type SyncRepoData = {
5307
+ body?: SyncRequest;
3815
5308
  headers?: {
3816
5309
  /**
3817
5310
  * X-Workspace
@@ -3825,9 +5318,9 @@ type DeleteRepoData = {
3825
5318
  repo_id: string;
3826
5319
  };
3827
5320
  query?: never;
3828
- url: '/ocxp/repo/{repo_id}';
5321
+ url: '/ocxp/repo/{repo_id}/sync';
3829
5322
  };
3830
- type DeleteRepoErrors = {
5323
+ type SyncRepoErrors = {
3831
5324
  /**
3832
5325
  * Repository not found
3833
5326
  */
@@ -3836,12 +5329,16 @@ type DeleteRepoErrors = {
3836
5329
  * Validation Error
3837
5330
  */
3838
5331
  422: HttpValidationError;
5332
+ /**
5333
+ * Rate limit exceeded
5334
+ */
5335
+ 429: unknown;
3839
5336
  };
3840
- type DeleteRepoResponses = {
5337
+ type SyncRepoResponses = {
3841
5338
  /**
3842
- * Repository deleted successfully
5339
+ * Sync job started or already up to date
3843
5340
  */
3844
- 200: RepoDeleteResponse;
5341
+ 202: RepoSyncResponse;
3845
5342
  };
3846
5343
  type GithubCheckAccessData = {
3847
5344
  body: CheckAccessRequest;
@@ -3856,10 +5353,18 @@ type GithubCheckAccessData = {
3856
5353
  url: '/ocxp/github/check-access';
3857
5354
  };
3858
5355
  type GithubCheckAccessErrors = {
5356
+ /**
5357
+ * Validation error
5358
+ */
5359
+ 400: unknown;
3859
5360
  /**
3860
5361
  * Validation Error
3861
5362
  */
3862
5363
  422: HttpValidationError;
5364
+ /**
5365
+ * Rate limit exceeded
5366
+ */
5367
+ 429: unknown;
3863
5368
  };
3864
5369
  type GithubCheckAccessResponses = {
3865
5370
  /**
@@ -3880,10 +5385,18 @@ type GithubListBranchesData = {
3880
5385
  url: '/ocxp/github/branches';
3881
5386
  };
3882
5387
  type GithubListBranchesErrors = {
5388
+ /**
5389
+ * Validation error
5390
+ */
5391
+ 400: unknown;
3883
5392
  /**
3884
5393
  * Validation Error
3885
5394
  */
3886
5395
  422: HttpValidationError;
5396
+ /**
5397
+ * Rate limit exceeded
5398
+ */
5399
+ 429: unknown;
3887
5400
  };
3888
5401
  type GithubListBranchesResponses = {
3889
5402
  /**
@@ -3904,10 +5417,18 @@ type GithubGetContentsData = {
3904
5417
  url: '/ocxp/github/contents';
3905
5418
  };
3906
5419
  type GithubGetContentsErrors = {
5420
+ /**
5421
+ * Validation error
5422
+ */
5423
+ 400: unknown;
3907
5424
  /**
3908
5425
  * Validation Error
3909
5426
  */
3910
5427
  422: HttpValidationError;
5428
+ /**
5429
+ * Rate limit exceeded
5430
+ */
5431
+ 429: unknown;
3911
5432
  };
3912
5433
  type GithubGetContentsResponses = {
3913
5434
  /**
@@ -3939,6 +5460,10 @@ type ListDatabasesErrors = {
3939
5460
  * Validation Error
3940
5461
  */
3941
5462
  422: HttpValidationError;
5463
+ /**
5464
+ * Rate limit exceeded
5465
+ */
5466
+ 429: unknown;
3942
5467
  };
3943
5468
  type ListDatabasesResponses = {
3944
5469
  /**
@@ -3963,6 +5488,10 @@ type CreateDatabaseErrors = {
3963
5488
  * Validation Error
3964
5489
  */
3965
5490
  422: HttpValidationError;
5491
+ /**
5492
+ * Rate limit exceeded
5493
+ */
5494
+ 429: unknown;
3966
5495
  };
3967
5496
  type CreateDatabaseResponses = {
3968
5497
  /**
@@ -3996,6 +5525,10 @@ type DeleteDatabaseErrors = {
3996
5525
  * Validation Error
3997
5526
  */
3998
5527
  422: HttpValidationError;
5528
+ /**
5529
+ * Rate limit exceeded
5530
+ */
5531
+ 429: unknown;
3999
5532
  };
4000
5533
  type DeleteDatabaseResponses = {
4001
5534
  /**
@@ -4029,6 +5562,10 @@ type GetDatabaseErrors = {
4029
5562
  * Validation Error
4030
5563
  */
4031
5564
  422: HttpValidationError;
5565
+ /**
5566
+ * Rate limit exceeded
5567
+ */
5568
+ 429: unknown;
4032
5569
  };
4033
5570
  type GetDatabaseResponses = {
4034
5571
  /**
@@ -4062,6 +5599,10 @@ type UpdateDatabaseErrors = {
4062
5599
  * Validation Error
4063
5600
  */
4064
5601
  422: HttpValidationError;
5602
+ /**
5603
+ * Rate limit exceeded
5604
+ */
5605
+ 429: unknown;
4065
5606
  };
4066
5607
  type UpdateDatabaseResponses = {
4067
5608
  /**
@@ -4095,6 +5636,10 @@ type TestDatabaseConnectionErrors = {
4095
5636
  * Validation Error
4096
5637
  */
4097
5638
  422: HttpValidationError;
5639
+ /**
5640
+ * Rate limit exceeded
5641
+ */
5642
+ 429: unknown;
4098
5643
  };
4099
5644
  type TestDatabaseConnectionResponses = {
4100
5645
  /**
@@ -4136,6 +5681,10 @@ type GetSchemaErrors = {
4136
5681
  * Validation Error
4137
5682
  */
4138
5683
  422: HttpValidationError;
5684
+ /**
5685
+ * Rate limit exceeded
5686
+ */
5687
+ 429: unknown;
4139
5688
  };
4140
5689
  type GetSchemaResponses = {
4141
5690
  /**
@@ -4186,6 +5735,10 @@ type GetSampleErrors = {
4186
5735
  * Validation Error
4187
5736
  */
4188
5737
  422: HttpValidationError;
5738
+ /**
5739
+ * Rate limit exceeded
5740
+ */
5741
+ 429: unknown;
4189
5742
  };
4190
5743
  type GetSampleResponses = {
4191
5744
  /**
@@ -4227,6 +5780,10 @@ type ListTablesErrors = {
4227
5780
  * Validation Error
4228
5781
  */
4229
5782
  422: HttpValidationError;
5783
+ /**
5784
+ * Rate limit exceeded
5785
+ */
5786
+ 429: unknown;
4230
5787
  };
4231
5788
  type ListTablesResponses = {
4232
5789
  /**
@@ -4251,6 +5808,10 @@ type ListContextDatabasesErrors = {
4251
5808
  * Validation Error
4252
5809
  */
4253
5810
  422: HttpValidationError;
5811
+ /**
5812
+ * Rate limit exceeded
5813
+ */
5814
+ 429: unknown;
4254
5815
  };
4255
5816
  type ListContextDatabasesResponses = {
4256
5817
  /**
@@ -4282,6 +5843,10 @@ type GetContentTypesErrors = {
4282
5843
  * Validation Error
4283
5844
  */
4284
5845
  422: HttpValidationError;
5846
+ /**
5847
+ * Rate limit exceeded
5848
+ */
5849
+ 429: unknown;
4285
5850
  };
4286
5851
  type GetContentTypesResponses = {
4287
5852
  /**
@@ -4323,13 +5888,17 @@ type ListContentData = {
4323
5888
  };
4324
5889
  type ListContentErrors = {
4325
5890
  /**
4326
- * Invalid content type
5891
+ * Validation error
4327
5892
  */
4328
5893
  400: unknown;
4329
5894
  /**
4330
5895
  * Validation Error
4331
5896
  */
4332
5897
  422: HttpValidationError;
5898
+ /**
5899
+ * Rate limit exceeded
5900
+ */
5901
+ 429: unknown;
4333
5902
  };
4334
5903
  type ListContentResponses = {
4335
5904
  /**
@@ -4365,6 +5934,10 @@ type QueryContentErrors = {
4365
5934
  * Validation Error
4366
5935
  */
4367
5936
  422: HttpValidationError;
5937
+ /**
5938
+ * Rate limit exceeded
5939
+ */
5940
+ 429: unknown;
4368
5941
  };
4369
5942
  type QueryContentResponses = {
4370
5943
  /**
@@ -4405,10 +5978,18 @@ type SearchContentData = {
4405
5978
  url: '/ocxp/context/{content_type}/search';
4406
5979
  };
4407
5980
  type SearchContentErrors = {
5981
+ /**
5982
+ * Validation error
5983
+ */
5984
+ 400: unknown;
4408
5985
  /**
4409
5986
  * Validation Error
4410
5987
  */
4411
5988
  422: HttpValidationError;
5989
+ /**
5990
+ * Rate limit exceeded
5991
+ */
5992
+ 429: unknown;
4412
5993
  };
4413
5994
  type SearchContentResponses = {
4414
5995
  /**
@@ -4455,10 +6036,18 @@ type GetContentTreeData = {
4455
6036
  url: '/ocxp/context/{content_type}/tree';
4456
6037
  };
4457
6038
  type GetContentTreeErrors = {
6039
+ /**
6040
+ * Validation error
6041
+ */
6042
+ 400: unknown;
4458
6043
  /**
4459
6044
  * Validation Error
4460
6045
  */
4461
6046
  422: HttpValidationError;
6047
+ /**
6048
+ * Rate limit exceeded
6049
+ */
6050
+ 429: unknown;
4462
6051
  };
4463
6052
  type GetContentTreeResponses = {
4464
6053
  /**
@@ -4493,10 +6082,18 @@ type GetContentStatsData = {
4493
6082
  url: '/ocxp/context/{content_type}/stats';
4494
6083
  };
4495
6084
  type GetContentStatsErrors = {
6085
+ /**
6086
+ * Validation error
6087
+ */
6088
+ 400: unknown;
4496
6089
  /**
4497
6090
  * Validation Error
4498
6091
  */
4499
6092
  422: HttpValidationError;
6093
+ /**
6094
+ * Rate limit exceeded
6095
+ */
6096
+ 429: unknown;
4500
6097
  };
4501
6098
  type GetContentStatsResponses = {
4502
6099
  /**
@@ -4543,12 +6140,18 @@ type DeleteContentData = {
4543
6140
  * Also delete .metadata.json sidecars
4544
6141
  */
4545
6142
  manage_metadata?: boolean;
6143
+ /**
6144
+ * Auto Index
6145
+ *
6146
+ * Auto-remove from KB (None = use content_type default)
6147
+ */
6148
+ auto_index?: boolean | null;
4546
6149
  };
4547
6150
  url: '/ocxp/context/{content_type}/{content_id}';
4548
6151
  };
4549
6152
  type DeleteContentErrors = {
4550
6153
  /**
4551
- * Recursive delete requires confirmation
6154
+ * Validation error
4552
6155
  */
4553
6156
  400: unknown;
4554
6157
  /**
@@ -4559,6 +6162,10 @@ type DeleteContentErrors = {
4559
6162
  * Validation Error
4560
6163
  */
4561
6164
  422: HttpValidationError;
6165
+ /**
6166
+ * Rate limit exceeded
6167
+ */
6168
+ 429: unknown;
4562
6169
  };
4563
6170
  type DeleteContentResponses = {
4564
6171
  /**
@@ -4597,6 +6204,10 @@ type ReadContentData = {
4597
6204
  url: '/ocxp/context/{content_type}/{content_id}';
4598
6205
  };
4599
6206
  type ReadContentErrors = {
6207
+ /**
6208
+ * Validation error
6209
+ */
6210
+ 400: unknown;
4600
6211
  /**
4601
6212
  * Content not found
4602
6213
  */
@@ -4605,6 +6216,10 @@ type ReadContentErrors = {
4605
6216
  * Validation Error
4606
6217
  */
4607
6218
  422: HttpValidationError;
6219
+ /**
6220
+ * Rate limit exceeded
6221
+ */
6222
+ 429: unknown;
4608
6223
  };
4609
6224
  type ReadContentResponses = {
4610
6225
  /**
@@ -4636,6 +6251,10 @@ type WriteContentData = {
4636
6251
  url: '/ocxp/context/{content_type}/{content_id}';
4637
6252
  };
4638
6253
  type WriteContentErrors = {
6254
+ /**
6255
+ * Validation error
6256
+ */
6257
+ 400: unknown;
4639
6258
  /**
4640
6259
  * Content already exists or ETag mismatch
4641
6260
  */
@@ -4644,6 +6263,10 @@ type WriteContentErrors = {
4644
6263
  * Validation Error
4645
6264
  */
4646
6265
  422: HttpValidationError;
6266
+ /**
6267
+ * Rate limit exceeded
6268
+ */
6269
+ 429: unknown;
4647
6270
  };
4648
6271
  type WriteContentResponses = {
4649
6272
  /**
@@ -4664,6 +6287,10 @@ type MoveContentData = {
4664
6287
  url: '/ocxp/context/move';
4665
6288
  };
4666
6289
  type MoveContentErrors = {
6290
+ /**
6291
+ * Validation error
6292
+ */
6293
+ 400: unknown;
4667
6294
  /**
4668
6295
  * Source not found
4669
6296
  */
@@ -4676,6 +6303,10 @@ type MoveContentErrors = {
4676
6303
  * Validation Error
4677
6304
  */
4678
6305
  422: HttpValidationError;
6306
+ /**
6307
+ * Rate limit exceeded
6308
+ */
6309
+ 429: unknown;
4679
6310
  };
4680
6311
  type MoveContentResponses = {
4681
6312
  /**
@@ -4700,6 +6331,10 @@ type LockContentErrors = {
4700
6331
  * Validation Error
4701
6332
  */
4702
6333
  422: HttpValidationError;
6334
+ /**
6335
+ * Rate limit exceeded
6336
+ */
6337
+ 429: unknown;
4703
6338
  };
4704
6339
  type LockContentResponses = {
4705
6340
  /**
@@ -4724,6 +6359,10 @@ type UnlockContentErrors = {
4724
6359
  * Validation Error
4725
6360
  */
4726
6361
  422: HttpValidationError;
6362
+ /**
6363
+ * Rate limit exceeded
6364
+ */
6365
+ 429: unknown;
4727
6366
  };
4728
6367
  type UnlockContentResponses = {
4729
6368
  /**
@@ -4748,6 +6387,10 @@ type ToolCreateMissionErrors = {
4748
6387
  * Validation Error
4749
6388
  */
4750
6389
  422: HttpValidationError;
6390
+ /**
6391
+ * Rate limit exceeded
6392
+ */
6393
+ 429: unknown;
4751
6394
  };
4752
6395
  type ToolCreateMissionResponses = {
4753
6396
  /**
@@ -4781,6 +6424,10 @@ type ToolUpdateMissionErrors = {
4781
6424
  * Validation Error
4782
6425
  */
4783
6426
  422: HttpValidationError;
6427
+ /**
6428
+ * Rate limit exceeded
6429
+ */
6430
+ 429: unknown;
4784
6431
  };
4785
6432
  type ToolUpdateMissionResponses = {
4786
6433
  /**
@@ -4814,6 +6461,10 @@ type GetMissionContextErrors = {
4814
6461
  * Validation Error
4815
6462
  */
4816
6463
  422: HttpValidationError;
6464
+ /**
6465
+ * Rate limit exceeded
6466
+ */
6467
+ 429: unknown;
4817
6468
  };
4818
6469
  type GetMissionContextResponses = {
4819
6470
  /**
@@ -4828,14 +6479,22 @@ type LoginForAccessTokenData = {
4828
6479
  url: '/auth/token';
4829
6480
  };
4830
6481
  type LoginForAccessTokenErrors = {
6482
+ /**
6483
+ * Invalid credentials or user not found
6484
+ */
6485
+ 401: unknown;
4831
6486
  /**
4832
6487
  * Validation Error
4833
6488
  */
4834
6489
  422: HttpValidationError;
6490
+ /**
6491
+ * Rate limit exceeded
6492
+ */
6493
+ 429: unknown;
4835
6494
  };
4836
6495
  type LoginForAccessTokenResponses = {
4837
6496
  /**
4838
- * Successful Response
6497
+ * Successfully authenticated
4839
6498
  */
4840
6499
  200: OAuth2TokenResponse;
4841
6500
  };
@@ -4846,14 +6505,22 @@ type LoginData = {
4846
6505
  url: '/auth/login';
4847
6506
  };
4848
6507
  type LoginErrors = {
6508
+ /**
6509
+ * Invalid credentials or user not found
6510
+ */
6511
+ 401: unknown;
4849
6512
  /**
4850
6513
  * Validation Error
4851
6514
  */
4852
6515
  422: HttpValidationError;
6516
+ /**
6517
+ * Rate limit exceeded
6518
+ */
6519
+ 429: unknown;
4853
6520
  };
4854
6521
  type LoginResponses = {
4855
6522
  /**
4856
- * Successful Response
6523
+ * Successfully authenticated
4857
6524
  */
4858
6525
  200: TokenResponse;
4859
6526
  };
@@ -4864,14 +6531,22 @@ type RefreshTokensData = {
4864
6531
  url: '/auth/refresh';
4865
6532
  };
4866
6533
  type RefreshTokensErrors = {
6534
+ /**
6535
+ * Invalid or expired refresh token
6536
+ */
6537
+ 401: unknown;
4867
6538
  /**
4868
6539
  * Validation Error
4869
6540
  */
4870
6541
  422: HttpValidationError;
6542
+ /**
6543
+ * Rate limit exceeded
6544
+ */
6545
+ 429: unknown;
4871
6546
  };
4872
6547
  type RefreshTokensResponses = {
4873
6548
  /**
4874
- * Successful Response
6549
+ * Tokens refreshed successfully
4875
6550
  */
4876
6551
  200: RefreshResponse;
4877
6552
  };
@@ -4893,6 +6568,12 @@ type GetCurrentUserData = {
4893
6568
  query?: never;
4894
6569
  url: '/auth/me';
4895
6570
  };
6571
+ type GetCurrentUserErrors = {
6572
+ /**
6573
+ * Rate limit exceeded
6574
+ */
6575
+ 429: unknown;
6576
+ };
4896
6577
  type GetCurrentUserResponses = {
4897
6578
  /**
4898
6579
  * Successful Response
@@ -4905,6 +6586,12 @@ type ListWorkspacesData = {
4905
6586
  query?: never;
4906
6587
  url: '/auth/workspaces';
4907
6588
  };
6589
+ type ListWorkspacesErrors = {
6590
+ /**
6591
+ * Rate limit exceeded
6592
+ */
6593
+ 429: unknown;
6594
+ };
4908
6595
  type ListWorkspacesResponses = {
4909
6596
  /**
4910
6597
  * Successful Response
@@ -4934,15 +6621,351 @@ declare const bulkReadContent: <ThrowOnError extends boolean = false>(options: O
4934
6621
  /**
4935
6622
  * Bulk Write Content
4936
6623
  *
4937
- * Bulk write content.
6624
+ * Bulk write content with metadata sidecar and KB auto-indexing support.
4938
6625
  */
4939
6626
  declare const bulkWriteContent: <ThrowOnError extends boolean = false>(options: Options<BulkWriteContentData, ThrowOnError>) => RequestResult<BulkWriteContentResponses, BulkWriteContentErrors, ThrowOnError, "fields">;
4940
6627
  /**
4941
6628
  * Bulk Delete Content
4942
6629
  *
4943
- * Bulk delete content using batch operations.
6630
+ * Bulk delete content with KB auto-removal support.
4944
6631
  */
4945
6632
  declare const bulkDeleteContent: <ThrowOnError extends boolean = false>(options: Options<BulkDeleteContentData, ThrowOnError>) => RequestResult<BulkDeleteContentResponses, BulkDeleteContentErrors, ThrowOnError, "fields">;
6633
+ /**
6634
+ * List Prototype Chats
6635
+ *
6636
+ * List all accessible prototype chats.
6637
+ *
6638
+ * Returns a list of chats that are accessible with the configured API key.
6639
+ * Use this to discover which chats can be linked to missions.
6640
+ *
6641
+ * **Query Parameters:**
6642
+ * - `provider`: Provider name (v0, lovable, bolt) - default: v0
6643
+ *
6644
+ * **Example Response:**
6645
+ * ```json
6646
+ * {
6647
+ * "provider": "v0",
6648
+ * "chats": [
6649
+ * {
6650
+ * "id": "qFPCm5zzimu",
6651
+ * "name": "Mission Dashboard",
6652
+ * "web_url": "https://v0.app/chat/qFPCm5zzimu",
6653
+ * "privacy": "team",
6654
+ * "latest_preview_url": "https://demo-xxx.vusercontent.net"
6655
+ * }
6656
+ * ],
6657
+ * "total": 5
6658
+ * }
6659
+ * ```
6660
+ */
6661
+ declare const listPrototypeChats: <ThrowOnError extends boolean = false>(options?: Options<ListPrototypeChatsData, ThrowOnError>) => RequestResult<ListPrototypeChatsResponses, ListPrototypeChatsErrors, ThrowOnError, "fields">;
6662
+ /**
6663
+ * Preview Prototype Chat
6664
+ *
6665
+ * Preview a prototype chat before linking.
6666
+ *
6667
+ * Fetches chat metadata and version list without storing anything.
6668
+ * Use this to show available versions in Obsidian UI before the user
6669
+ * selects which version to link to a mission.
6670
+ *
6671
+ * **Example Request:**
6672
+ * ```json
6673
+ * {
6674
+ * "provider": "v0",
6675
+ * "chat_url": "https://v0.dev/chat/abc123"
6676
+ * }
6677
+ * ```
6678
+ *
6679
+ * **Example Response:**
6680
+ * ```json
6681
+ * {
6682
+ * "provider": "v0",
6683
+ * "chat_id": "abc123",
6684
+ * "web_url": "https://v0.dev/chat/abc123",
6685
+ * "messages_count": 15,
6686
+ * "versions": [
6687
+ * {"id": "v1", "preview_url": "https://abc123.vercel.app", "files": ["page.tsx", "layout.tsx"]},
6688
+ * {"id": "v2", "preview_url": "https://abc123-v2.vercel.app", "files": ["page.tsx", "layout.tsx", "sidebar.tsx"]}
6689
+ * ],
6690
+ * "latest_preview_url": "https://abc123-v2.vercel.app",
6691
+ * "can_download_files": true
6692
+ * }
6693
+ * ```
6694
+ */
6695
+ declare const previewPrototypeChat: <ThrowOnError extends boolean = false>(options: Options<PreviewPrototypeChatData, ThrowOnError>) => RequestResult<PreviewPrototypeChatResponses, PreviewPrototypeChatErrors, ThrowOnError, "fields">;
6696
+ /**
6697
+ * Link Prototype Chat
6698
+ *
6699
+ * Link a prototype chat to a mission.
6700
+ *
6701
+ * Fetches the full conversation history and optionally downloads version files
6702
+ * from the prototype provider (v0, Lovable, Bolt). Stores everything in OCXP
6703
+ * and optionally screenshots the preview.
6704
+ *
6705
+ * **Workflow for Obsidian:**
6706
+ * 1. User enters chat URL in mission creation form
6707
+ * 2. Obsidian calls `/preview` to get available versions
6708
+ * 3. User selects a version
6709
+ * 4. Obsidian calls `/link` with version_id to download files
6710
+ *
6711
+ * **What gets stored:**
6712
+ * - `conversation.md` - Full chat history as searchable markdown (KB indexed)
6713
+ * - `metadata.json` - Structured metadata for programmatic access
6714
+ * - `versions/{version_id}*.tsx` - Actual code files from selected version
6715
+ * - `screenshots/preview.png` - Screenshot of the preview URL
6716
+ *
6717
+ * **Example Request:**
6718
+ * ```json
6719
+ * {
6720
+ * "provider": "v0",
6721
+ * "chat_url": "https://v0.dev/chat/abc123",
6722
+ * "version_id": "v2",
6723
+ * "mission_id": "mission-xyz",
6724
+ * "download_files": true,
6725
+ * "screenshot_preview": true
6726
+ * }
6727
+ * ```
6728
+ *
6729
+ * **Example Response:**
6730
+ * ```json
6731
+ * {
6732
+ * "provider": "v0",
6733
+ * "chat_id": "abc123",
6734
+ * "web_url": "https://v0.dev/chat/abc123",
6735
+ * "mission_id": "mission-xyz",
6736
+ * "messages_count": 15,
6737
+ * "versions_count": 2,
6738
+ * "latest_preview_url": "https://abc123-v2.vercel.app",
6739
+ * "screenshot_link": "ocxp://prod/visual/prototype-chats/mission-xyz/v0/abc123/screenshots/preview.png",
6740
+ * "content_links": [
6741
+ * "ocxp://prod/visual/prototype-chats/mission-xyz/v0/abc123/conversation.md",
6742
+ * "ocxp://prod/visual/prototype-chats/mission-xyz/v0/abc123/versions/v2/page.tsx"
6743
+ * ],
6744
+ * "indexed": true
6745
+ * }
6746
+ * ```
6747
+ */
6748
+ declare const linkPrototypeChat: <ThrowOnError extends boolean = false>(options: Options<LinkPrototypeChatData, ThrowOnError>) => RequestResult<LinkPrototypeChatResponses, LinkPrototypeChatErrors, ThrowOnError, "fields">;
6749
+ /**
6750
+ * Sync Prototype Chat
6751
+ *
6752
+ * Sync/refresh a linked prototype chat with latest changes.
6753
+ *
6754
+ * Re-fetches the conversation and version data from the provider
6755
+ * and updates the stored content in OCXP.
6756
+ *
6757
+ * **Example Request:**
6758
+ * ```json
6759
+ * {
6760
+ * "provider": "v0",
6761
+ * "chat_id": "abc123",
6762
+ * "mission_id": "mission-xyz"
6763
+ * }
6764
+ * ```
6765
+ */
6766
+ declare const syncPrototypeChat: <ThrowOnError extends boolean = false>(options: Options<SyncPrototypeChatData, ThrowOnError>) => RequestResult<SyncPrototypeChatResponses, SyncPrototypeChatErrors, ThrowOnError, "fields">;
6767
+ /**
6768
+ * Get Stored Versions
6769
+ *
6770
+ * Get stored version IDs from DynamoDB (fast, no S3/API calls).
6771
+ *
6772
+ * This is a lightweight endpoint optimized for sub-100ms response times.
6773
+ * Use this to quickly check which versions are already downloaded without
6774
+ * triggering a full sync operation.
6775
+ *
6776
+ * **Path Parameters:**
6777
+ * - `provider`: Provider name (v0, lovable, bolt)
6778
+ * - `chat_id`: Chat ID
6779
+ *
6780
+ * **Query Parameters:**
6781
+ * - `include_details`: If true, returns full version metadata (files, pages, screenshots)
6782
+ *
6783
+ * **Use Cases:**
6784
+ * - Determine "Download" vs "Reload" button state for each version
6785
+ * - Check if "Sync Latest" button should be disabled (latest already stored)
6786
+ * - Get full version details for Files/Pages tabs (when include_details=true)
6787
+ *
6788
+ * **Example Response (include_details=false):**
6789
+ * ```json
6790
+ * {
6791
+ * "provider": "v0",
6792
+ * "chat_id": "YivecgytPyg",
6793
+ * "stored_versions": ["aVVgJPrZiiE", "8xP0kUQqTxe", "cTeBCcjCGbM"],
6794
+ * "latest_version_id": "cTeBCcjCGbM",
6795
+ * "version_details": []
6796
+ * }
6797
+ * ```
6798
+ *
6799
+ * **Example Response (include_details=true):**
6800
+ * ```json
6801
+ * {
6802
+ * "provider": "v0",
6803
+ * "chat_id": "YivecgytPyg",
6804
+ * "stored_versions": ["aVVgJPrZiiE"],
6805
+ * "latest_version_id": "cTeBCcjCGbM",
6806
+ * "version_details": [
6807
+ * {
6808
+ * "id": "aVVgJPrZiiE",
6809
+ * "preview_url": "https://demo.vusercontent.net/...",
6810
+ * "screenshot_link": "ocxp://...",
6811
+ * "files": ["app/page.tsx", "app/layout.tsx"],
6812
+ * "pages": [{"route": "/", "file": "app/page.tsx", "screenshot_link": "ocxp://..."}],
6813
+ * "created_at": "2024-01-15T10:30:00Z",
6814
+ * "synced_at": "2024-01-15T10:35:00Z"
6815
+ * }
6816
+ * ]
6817
+ * }
6818
+ * ```
6819
+ */
6820
+ declare const getStoredVersions: <ThrowOnError extends boolean = false>(options: Options<GetStoredVersionsData, ThrowOnError>) => RequestResult<GetStoredVersionsResponses, GetStoredVersionsErrors, ThrowOnError, "fields">;
6821
+ /**
6822
+ * Get Prototype Chat
6823
+ *
6824
+ * Get stored prototype chat data from OCXP.
6825
+ *
6826
+ * Returns the stored conversation, versions, and file links for a
6827
+ * previously linked prototype chat.
6828
+ *
6829
+ * **Path Parameters:**
6830
+ * - `provider`: Provider name (v0, lovable, bolt)
6831
+ * - `chat_id`: Chat ID
6832
+ *
6833
+ * **Query Parameters:**
6834
+ * - `project_id`: Project ID (use "no-project" if chat has no project)
6835
+ * - `version_id`: Version ID to retrieve
6836
+ *
6837
+ * **Example Response:**
6838
+ * ```json
6839
+ * {
6840
+ * "provider": "v0",
6841
+ * "chat_id": "abc123",
6842
+ * "web_url": "https://v0.dev/chat/abc123",
6843
+ * "mission_id": "mission-xyz",
6844
+ * "messages": [...],
6845
+ * "versions": [...],
6846
+ * "conversation_link": "ocxp://prod/prototype/FQV1NSmpVqk/abc123/aVVgJPrZiiE/docs/conversation.md",
6847
+ * "file_links": [
6848
+ * "ocxp://prod/prototype/FQV1NSmpVqk/abc123/aVVgJPrZiiE/code/page.tsx"
6849
+ * ]
6850
+ * }
6851
+ * ```
6852
+ */
6853
+ declare const getPrototypeChat: <ThrowOnError extends boolean = false>(options: Options<GetPrototypeChatData, ThrowOnError>) => RequestResult<GetPrototypeChatResponses, GetPrototypeChatErrors, ThrowOnError, "fields">;
6854
+ /**
6855
+ * Sync Prototype Chat Async
6856
+ *
6857
+ * Start an async prototype chat sync job (202 Accepted).
6858
+ *
6859
+ * Creates a job and queues it for background processing. Returns immediately
6860
+ * with a job_id that can be used to poll for status or receive WebSocket updates.
6861
+ *
6862
+ * **Benefits:**
6863
+ * - Immediate response (no timeout on long syncs)
6864
+ * - Real-time progress updates via WebSocket
6865
+ * - Resumable on failure (job tracked in DynamoDB)
6866
+ * - Better suited for large chats with many files/screenshots
6867
+ *
6868
+ * **Frontend Integration:**
6869
+ *
6870
+ * Option 1: Polling
6871
+ * ```javascript
6872
+ * const { job_id } = await fetch('/ocxp/prototype/chat/sync-async', {
6873
+ * method: 'POST',
6874
+ * body: JSON.stringify({ chat_id: 'xxx', mission_id: 'yyy' })
6875
+ * }).then(r => r.json());
6876
+ *
6877
+ * // Poll every second
6878
+ * while (status !== 'complete' && status !== 'failed') {
6879
+ * await sleep(1000);
6880
+ * const job = await fetch(`/ocxp/prototype/chat/sync-status/${job_id}`).then(r => r.json());
6881
+ * updateProgressBar(job.progress);
6882
+ * }
6883
+ * ```
6884
+ *
6885
+ * Option 2: WebSocket
6886
+ * ```javascript
6887
+ * ws.onmessage = (msg) => {
6888
+ * if (msg.type === 'prototype_sync_progress') {
6889
+ * updateProgressBar(msg.progress, msg.current_step);
6890
+ * }
6891
+ * if (msg.type === 'prototype_sync_complete') {
6892
+ * handleComplete(msg.content_links);
6893
+ * }
6894
+ * };
6895
+ * ```
6896
+ *
6897
+ * **Example Request:**
6898
+ * ```json
6899
+ * {
6900
+ * "provider": "v0",
6901
+ * "chat_id": "YivecgytPyg",
6902
+ * "mission_id": "mission-xyz",
6903
+ * "download_files": true,
6904
+ * "download_screenshots": true
6905
+ * }
6906
+ * ```
6907
+ *
6908
+ * **Example Response (202 Accepted):**
6909
+ * ```json
6910
+ * {
6911
+ * "job_id": "job-a1b2c3d4e5f6",
6912
+ * "status": "queued",
6913
+ * "message": "Job queued for processing"
6914
+ * }
6915
+ * ```
6916
+ */
6917
+ declare const syncPrototypeChatAsync: <ThrowOnError extends boolean = false>(options: Options<SyncPrototypeChatAsyncData, ThrowOnError>) => RequestResult<SyncPrototypeChatAsyncResponses, SyncPrototypeChatAsyncErrors, ThrowOnError, "fields">;
6918
+ /**
6919
+ * Get Sync Status
6920
+ *
6921
+ * Get the current status of an async sync job.
6922
+ *
6923
+ * Use this endpoint to poll for progress updates on a sync job.
6924
+ * For real-time updates, prefer WebSocket subscription instead.
6925
+ *
6926
+ * **Path Parameters:**
6927
+ * - `job_id`: Job identifier from sync-async response
6928
+ *
6929
+ * **Example Response (in progress):**
6930
+ * ```json
6931
+ * {
6932
+ * "job_id": "job-a1b2c3d4e5f6",
6933
+ * "status": "downloading",
6934
+ * "progress": 35,
6935
+ * "current_step": "Downloading files for version 2/5...",
6936
+ * "files_processed": 12,
6937
+ * "files_total": 34,
6938
+ * "screenshots_processed": 1,
6939
+ * "screenshots_total": 5,
6940
+ * "content_links": [],
6941
+ * "error": null,
6942
+ * "created_at": "2024-01-15T10:30:00Z",
6943
+ * "updated_at": "2024-01-15T10:30:15Z"
6944
+ * }
6945
+ * ```
6946
+ *
6947
+ * **Example Response (complete):**
6948
+ * ```json
6949
+ * {
6950
+ * "job_id": "job-a1b2c3d4e5f6",
6951
+ * "status": "complete",
6952
+ * "progress": 100,
6953
+ * "current_step": "Complete",
6954
+ * "files_processed": 34,
6955
+ * "files_total": 34,
6956
+ * "screenshots_processed": 5,
6957
+ * "screenshots_total": 5,
6958
+ * "content_links": [
6959
+ * "ocxp://prod/prototype/FQV1NSmpVqk/chat123/v1/docs/conversation.md",
6960
+ * "ocxp://prod/prototype/FQV1NSmpVqk/chat123/v1/code/page.tsx"
6961
+ * ],
6962
+ * "error": null,
6963
+ * "created_at": "2024-01-15T10:30:00Z",
6964
+ * "updated_at": "2024-01-15T10:31:00Z"
6965
+ * }
6966
+ * ```
6967
+ */
6968
+ declare const getSyncStatus: <ThrowOnError extends boolean = false>(options: Options<GetSyncStatusData, ThrowOnError>) => RequestResult<GetSyncStatusResponses, GetSyncStatusErrors, ThrowOnError, "fields">;
4946
6969
  /**
4947
6970
  * List all sessions
4948
6971
  *
@@ -5165,6 +7188,24 @@ declare const listDownloadedRepos: <ThrowOnError extends boolean = false>(option
5165
7188
  * Permanently deletes a downloaded repository. Uses repo_id (owner/repo format).
5166
7189
  */
5167
7190
  declare const deleteRepo: <ThrowOnError extends boolean = false>(options: Options<DeleteRepoData, ThrowOnError>) => RequestResult<DeleteRepoResponses, DeleteRepoErrors, ThrowOnError, "fields">;
7191
+ /**
7192
+ * Sync all repositories
7193
+ *
7194
+ * Checks all repositories for changes and triggers re-download for those with new commits. Use force=true to re-sync all regardless of changes.
7195
+ */
7196
+ declare const syncAllRepos: <ThrowOnError extends boolean = false>(options?: Options<SyncAllReposData, ThrowOnError>) => RequestResult<SyncAllReposResponses, SyncAllReposErrors, ThrowOnError, "fields">;
7197
+ /**
7198
+ * Get repository commit status
7199
+ *
7200
+ * Returns commit information comparing indexed version with latest GitHub commits. Shows how many commits behind and lists missing commits.
7201
+ */
7202
+ declare const getRepoCommits: <ThrowOnError extends boolean = false>(options: Options<GetRepoCommitsData, ThrowOnError>) => RequestResult<GetRepoCommitsResponses, GetRepoCommitsErrors, ThrowOnError, "fields">;
7203
+ /**
7204
+ * Sync repository
7205
+ *
7206
+ * Checks repository for changes and triggers re-download if new commits are found. Use force=true to re-sync regardless of changes.
7207
+ */
7208
+ declare const syncRepo: <ThrowOnError extends boolean = false>(options: Options<SyncRepoData, ThrowOnError>) => RequestResult<SyncRepoResponses, SyncRepoErrors, ThrowOnError, "fields">;
5168
7209
  /**
5169
7210
  * Github Check Access
5170
7211
  *
@@ -5371,7 +7412,10 @@ declare const refreshTokens: <ThrowOnError extends boolean = false>(options: Opt
5371
7412
  /**
5372
7413
  * Get Auth Config
5373
7414
  *
5374
- * Get Cognito configuration for frontend.
7415
+ * Get public configuration for clients.
7416
+ *
7417
+ * Returns the API endpoint, Brain ARN, WebSocket endpoint, and default workspace.
7418
+ * Used by Obsidian plugin and CLI to configure themselves.
5375
7419
  */
5376
7420
  declare const getAuthConfig: <ThrowOnError extends boolean = false>(options?: Options<GetAuthConfigData, ThrowOnError>) => RequestResult<GetAuthConfigResponses, unknown, ThrowOnError, "fields">;
5377
7421
  /**
@@ -5379,13 +7423,13 @@ declare const getAuthConfig: <ThrowOnError extends boolean = false>(options?: Op
5379
7423
  *
5380
7424
  * Get current authenticated user info.
5381
7425
  */
5382
- declare const getCurrentUser: <ThrowOnError extends boolean = false>(options?: Options<GetCurrentUserData, ThrowOnError>) => RequestResult<GetCurrentUserResponses, unknown, ThrowOnError, "fields">;
7426
+ declare const getCurrentUser: <ThrowOnError extends boolean = false>(options?: Options<GetCurrentUserData, ThrowOnError>) => RequestResult<GetCurrentUserResponses, GetCurrentUserErrors, ThrowOnError, "fields">;
5383
7427
  /**
5384
7428
  * List Workspaces
5385
7429
  *
5386
7430
  * List workspaces for authenticated user.
5387
7431
  */
5388
- declare const listWorkspaces: <ThrowOnError extends boolean = false>(options?: Options<ListWorkspacesData, ThrowOnError>) => RequestResult<ListWorkspacesResponses, unknown, ThrowOnError, "fields">;
7432
+ declare const listWorkspaces: <ThrowOnError extends boolean = false>(options?: Options<ListWorkspacesData, ThrowOnError>) => RequestResult<ListWorkspacesResponses, ListWorkspacesErrors, ThrowOnError, "fields">;
5389
7433
 
5390
7434
  interface ListEntry$1 {
5391
7435
  name: string;
@@ -5415,6 +7459,7 @@ interface DeleteResult {
5415
7459
  deleted: boolean;
5416
7460
  path: string;
5417
7461
  }
7462
+
5418
7463
  interface ContentTypesResult {
5419
7464
  types: Array<{
5420
7465
  name: string;
@@ -5504,7 +7549,7 @@ declare class OCXPClient {
5504
7549
  error: undefined;
5505
7550
  } | {
5506
7551
  data: undefined;
5507
- error: HttpValidationError;
7552
+ error: unknown;
5508
7553
  }) & {
5509
7554
  request: Request;
5510
7555
  response: Response;
@@ -5522,7 +7567,7 @@ declare class OCXPClient {
5522
7567
  error: undefined;
5523
7568
  } | {
5524
7569
  data: undefined;
5525
- error: HttpValidationError;
7570
+ error: unknown;
5526
7571
  }) & {
5527
7572
  request: Request;
5528
7573
  response: Response;
@@ -5535,7 +7580,7 @@ declare class OCXPClient {
5535
7580
  error: undefined;
5536
7581
  } | {
5537
7582
  data: undefined;
5538
- error: HttpValidationError;
7583
+ error: unknown;
5539
7584
  }) & {
5540
7585
  request: Request;
5541
7586
  response: Response;
@@ -5551,7 +7596,7 @@ declare class OCXPClient {
5551
7596
  error: undefined;
5552
7597
  } | {
5553
7598
  data: undefined;
5554
- error: HttpValidationError;
7599
+ error: unknown;
5555
7600
  }) & {
5556
7601
  request: Request;
5557
7602
  response: Response;
@@ -5564,7 +7609,7 @@ declare class OCXPClient {
5564
7609
  error: undefined;
5565
7610
  } | {
5566
7611
  data: undefined;
5567
- error: HttpValidationError;
7612
+ error: unknown;
5568
7613
  }) & {
5569
7614
  request: Request;
5570
7615
  response: Response;
@@ -5668,7 +7713,7 @@ declare class OCXPClient {
5668
7713
  error: undefined;
5669
7714
  } | {
5670
7715
  data: undefined;
5671
- error: HttpValidationError;
7716
+ error: unknown;
5672
7717
  }) & {
5673
7718
  request: Request;
5674
7719
  response: Response;
@@ -5683,7 +7728,7 @@ declare class OCXPClient {
5683
7728
  error: undefined;
5684
7729
  } | {
5685
7730
  data: undefined;
5686
- error: HttpValidationError;
7731
+ error: unknown;
5687
7732
  }) & {
5688
7733
  request: Request;
5689
7734
  response: Response;
@@ -5735,6 +7780,23 @@ declare class OCXPClient {
5735
7780
  * Delete a downloaded repository by its UUID
5736
7781
  */
5737
7782
  deleteRepo(repoId: string): Promise<RepoDeleteResponse>;
7783
+ /**
7784
+ * Sync a repository with its remote GitHub branch
7785
+ * @param repoId - Repository ID (owner/repo format)
7786
+ * @param force - Force sync even if no changes detected
7787
+ */
7788
+ syncRepo(repoId: string, force?: boolean): Promise<RepoSyncResponse>;
7789
+ /**
7790
+ * Sync all repositories with their remote GitHub branches
7791
+ * @param force - Force sync all repos even if no changes
7792
+ */
7793
+ syncAllRepos(force?: boolean): Promise<RepoSyncAllResponse>;
7794
+ /**
7795
+ * Get commit status for a repository
7796
+ * Shows how many commits behind and lists missing commits
7797
+ * @param repoId - Repository ID (owner/repo format)
7798
+ */
7799
+ getRepoCommitStatus(repoId: string): Promise<RepoCommitStatusResponse>;
5738
7800
  /**
5739
7801
  * List all database configurations in workspace
5740
7802
  */
@@ -5846,6 +7908,58 @@ declare class OCXPClient {
5846
7908
  * Archive session
5847
7909
  */
5848
7910
  archiveSession(sessionId: string): Promise<void>;
7911
+ /**
7912
+ * List all accessible prototype chats from a provider
7913
+ * @param provider - Filter by provider (v0, lovable, bolt)
7914
+ */
7915
+ listPrototypeChats(provider?: 'v0' | 'lovable' | 'bolt'): Promise<PrototypeChatListResponse>;
7916
+ /**
7917
+ * Preview a prototype chat (fetch metadata without linking)
7918
+ * @param chatUrl - Chat URL to preview
7919
+ * @param provider - Prototype provider (optional, auto-detected from URL)
7920
+ */
7921
+ previewPrototypeChat(chatUrl: string, provider?: 'v0' | 'lovable' | 'bolt'): Promise<PrototypeChatPreviewResponse>;
7922
+ /**
7923
+ * Link a prototype chat to a mission
7924
+ * @param data - Link request data
7925
+ */
7926
+ linkPrototypeChat(data: PrototypeChatLinkRequest): Promise<PrototypeChatLinkResponse>;
7927
+ /**
7928
+ * Sync/refresh a linked prototype chat
7929
+ * @param data - Sync request data
7930
+ */
7931
+ syncPrototypeChat(data: PrototypeChatSyncRequest): Promise<PrototypeChatSyncResponse>;
7932
+ /**
7933
+ * Get stored prototype chat data
7934
+ * @param provider - Provider name (v0, lovable, bolt)
7935
+ * @param chatId - Chat ID
7936
+ * @param options - Optional query parameters
7937
+ */
7938
+ getPrototypeChat(provider: string, chatId: string, options?: {
7939
+ projectId?: string;
7940
+ versionId?: string;
7941
+ }): Promise<PrototypeChatGetResponse>;
7942
+ /**
7943
+ * Start async prototype chat sync job
7944
+ * @param data - Async sync request data
7945
+ */
7946
+ syncPrototypeChatAsync(data: PrototypeChatSyncAsyncRequest): Promise<PrototypeChatSyncAsyncResponse>;
7947
+ /**
7948
+ * Get sync job status
7949
+ * @param jobId - Job ID from async sync response
7950
+ */
7951
+ getPrototypeSyncStatus(jobId: string): Promise<PrototypeSyncJobStatusResponse>;
7952
+ /**
7953
+ * Get stored versions for a prototype chat (fast DynamoDB query)
7954
+ * Use this for UI button states instead of full sync
7955
+ * @param provider - Provider name (v0, lovable, bolt)
7956
+ * @param chatId - Chat ID
7957
+ * @param options - Optional settings
7958
+ * @param options.includeDetails - If true, returns full version metadata (files, pages, screenshots)
7959
+ */
7960
+ getStoredVersions(provider: string, chatId: string, options?: {
7961
+ includeDetails?: boolean;
7962
+ }): Promise<PrototypeStoredVersionsResponse>;
5849
7963
  /**
5850
7964
  * Get auth configuration (public endpoint)
5851
7965
  */
@@ -5899,6 +8013,7 @@ declare class OCXPClient {
5899
8013
  private _project?;
5900
8014
  private _session?;
5901
8015
  private _kb?;
8016
+ private _prototype?;
5902
8017
  /**
5903
8018
  * Mission namespace for convenient mission operations
5904
8019
  * @example ocxp.mission.list({ status: 'pending' })
@@ -5919,6 +8034,11 @@ declare class OCXPClient {
5919
8034
  * @example ocxp.kb.query('search term')
5920
8035
  */
5921
8036
  get kb(): KBNamespace;
8037
+ /**
8038
+ * Prototype namespace for convenient prototype chat operations
8039
+ * @example ocxp.prototype.list('v0')
8040
+ */
8041
+ get prototype(): PrototypeNamespace;
5922
8042
  }
5923
8043
  /**
5924
8044
  * Mission namespace for convenient mission operations
@@ -6141,6 +8261,60 @@ declare class KBNamespace {
6141
8261
  */
6142
8262
  rag(query: string, sessionId?: string): Promise<KbRagResponse>;
6143
8263
  }
8264
+ /**
8265
+ * Prototype namespace for convenient prototype chat operations
8266
+ */
8267
+ declare class PrototypeNamespace {
8268
+ private client;
8269
+ constructor(client: OCXPClient);
8270
+ /**
8271
+ * List all accessible prototype chats
8272
+ * @example ocxp.prototype.list('v0')
8273
+ */
8274
+ list(provider?: 'v0' | 'lovable' | 'bolt'): Promise<PrototypeChatListResponse>;
8275
+ /**
8276
+ * Preview a prototype chat (fetch metadata without linking)
8277
+ * @example ocxp.prototype.preview('https://v0.dev/chat/abc123')
8278
+ */
8279
+ preview(chatUrl: string, provider?: 'v0' | 'lovable' | 'bolt'): Promise<PrototypeChatPreviewResponse>;
8280
+ /**
8281
+ * Link a prototype chat to a mission
8282
+ * @example ocxp.prototype.link({ mission_id: 'xyz', chat_url: 'https://v0.dev/chat/abc123' })
8283
+ */
8284
+ link(data: PrototypeChatLinkRequest): Promise<PrototypeChatLinkResponse>;
8285
+ /**
8286
+ * Sync/refresh a linked prototype chat
8287
+ * @example ocxp.prototype.sync({ chat_id: 'abc123', mission_id: 'xyz' })
8288
+ */
8289
+ sync(data: PrototypeChatSyncRequest): Promise<PrototypeChatSyncResponse>;
8290
+ /**
8291
+ * Get stored prototype chat data
8292
+ * @example ocxp.prototype.get('v0', 'abc123')
8293
+ */
8294
+ get(provider: string, chatId: string, options?: {
8295
+ projectId?: string;
8296
+ versionId?: string;
8297
+ }): Promise<PrototypeChatGetResponse>;
8298
+ /**
8299
+ * Start async prototype chat sync job
8300
+ * @example ocxp.prototype.syncAsync({ chat_id: 'abc123', mission_id: 'xyz', download_files: true })
8301
+ */
8302
+ syncAsync(data: PrototypeChatSyncAsyncRequest): Promise<PrototypeChatSyncAsyncResponse>;
8303
+ /**
8304
+ * Get sync job status
8305
+ * @example ocxp.prototype.getSyncStatus('job-id')
8306
+ */
8307
+ getSyncStatus(jobId: string): Promise<PrototypeSyncJobStatusResponse>;
8308
+ /**
8309
+ * Get stored versions for a prototype chat (fast DynamoDB query)
8310
+ * Use this for UI button states instead of full sync
8311
+ * @param options.includeDetails - If true, returns full version metadata (files, pages, screenshots)
8312
+ * @example ocxp.prototype.getStoredVersions('v0', 'abc123', { includeDetails: true })
8313
+ */
8314
+ getStoredVersions(provider: string, chatId: string, options?: {
8315
+ includeDetails?: boolean;
8316
+ }): Promise<PrototypeStoredVersionsResponse>;
8317
+ }
6144
8318
  /**
6145
8319
  * Create a new OCXP client instance
6146
8320
  */
@@ -6469,7 +8643,7 @@ declare function createPathService(options: OCXPPathServiceOptions): OCXPPathSer
6469
8643
  * WebSocket service for OCXP real-time communication
6470
8644
  * Provides push notifications for job progress, sync events, etc.
6471
8645
  */
6472
- type WebSocketMessageType = 'job_progress' | 'repo_status' | 'notification' | 'sync_event';
8646
+ type WebSocketMessageType = 'job_progress' | 'repo_status' | 'notification' | 'sync_event' | 'prototype_sync_progress' | 'prototype_sync_complete';
6473
8647
  interface WebSocketMessage {
6474
8648
  type: WebSocketMessageType;
6475
8649
  [key: string]: unknown;
@@ -6507,6 +8681,23 @@ interface SyncEventMessage extends WebSocketMessage {
6507
8681
  path?: string;
6508
8682
  content_type?: string;
6509
8683
  }
8684
+ interface PrototypeSyncProgressMessage extends WebSocketMessage {
8685
+ type: 'prototype_sync_progress';
8686
+ job_id: string;
8687
+ status: 'queued' | 'fetching' | 'downloading' | 'screenshotting' | 'uploading';
8688
+ progress: number;
8689
+ current_step: string;
8690
+ files_processed: number;
8691
+ files_total: number;
8692
+ screenshots_processed: number;
8693
+ screenshots_total: number;
8694
+ }
8695
+ interface PrototypeSyncCompleteMessage extends WebSocketMessage {
8696
+ type: 'prototype_sync_complete';
8697
+ job_id: string;
8698
+ content_links: string[];
8699
+ stored_versions: string[];
8700
+ }
6510
8701
  interface WebSocketServiceOptions {
6511
8702
  /** WebSocket endpoint (wss://...) */
6512
8703
  endpoint: string;
@@ -6573,6 +8764,14 @@ declare class WebSocketService {
6573
8764
  * Subscribe to sync events
6574
8765
  */
6575
8766
  onSyncEvent(handler: WebSocketEventHandler<SyncEventMessage>): () => void;
8767
+ /**
8768
+ * Subscribe to prototype sync progress updates
8769
+ */
8770
+ onPrototypeSyncProgress(handler: WebSocketEventHandler<PrototypeSyncProgressMessage>): () => void;
8771
+ /**
8772
+ * Subscribe to prototype sync complete notifications
8773
+ */
8774
+ onPrototypeSyncComplete(handler: WebSocketEventHandler<PrototypeSyncCompleteMessage>): () => void;
6576
8775
  /**
6577
8776
  * Subscribe to connection state changes
6578
8777
  */
@@ -6585,6 +8784,10 @@ declare class WebSocketService {
6585
8784
  * Subscribe to repository updates
6586
8785
  */
6587
8786
  subscribeToRepo(repoId: string): void;
8787
+ /**
8788
+ * Subscribe to prototype sync job updates
8789
+ */
8790
+ subscribeToPrototypeSync(jobId: string): void;
6588
8791
  /**
6589
8792
  * Send message to server
6590
8793
  */
@@ -7930,8 +10133,8 @@ type ContextReposResponse = z.infer<typeof ContextReposResponseSchema>;
7930
10133
  declare const RepoStatusEnum: z.ZodEnum<{
7931
10134
  failed: "failed";
7932
10135
  queued: "queued";
7933
- processing: "processing";
7934
10136
  uploading: "uploading";
10137
+ processing: "processing";
7935
10138
  vectorizing: "vectorizing";
7936
10139
  complete: "complete";
7937
10140
  }>;
@@ -7970,8 +10173,8 @@ declare const RepoDownloadDataSchema: z.ZodObject<{
7970
10173
  status: z.ZodEnum<{
7971
10174
  failed: "failed";
7972
10175
  queued: "queued";
7973
- processing: "processing";
7974
10176
  uploading: "uploading";
10177
+ processing: "processing";
7975
10178
  vectorizing: "vectorizing";
7976
10179
  complete: "complete";
7977
10180
  }>;
@@ -7992,8 +10195,8 @@ declare const RepoDownloadResponseSchema: z.ZodObject<{
7992
10195
  status: z.ZodEnum<{
7993
10196
  failed: "failed";
7994
10197
  queued: "queued";
7995
- processing: "processing";
7996
10198
  uploading: "uploading";
10199
+ processing: "processing";
7997
10200
  vectorizing: "vectorizing";
7998
10201
  complete: "complete";
7999
10202
  }>;
@@ -8022,8 +10225,8 @@ declare const RepoStatusDataSchema: z.ZodObject<{
8022
10225
  status: z.ZodEnum<{
8023
10226
  failed: "failed";
8024
10227
  queued: "queued";
8025
- processing: "processing";
8026
10228
  uploading: "uploading";
10229
+ processing: "processing";
8027
10230
  vectorizing: "vectorizing";
8028
10231
  complete: "complete";
8029
10232
  }>;
@@ -8045,8 +10248,8 @@ declare const RepoStatusResponseSchema: z.ZodObject<{
8045
10248
  status: z.ZodEnum<{
8046
10249
  failed: "failed";
8047
10250
  queued: "queued";
8048
- processing: "processing";
8049
10251
  uploading: "uploading";
10252
+ processing: "processing";
8050
10253
  vectorizing: "vectorizing";
8051
10254
  complete: "complete";
8052
10255
  }>;
@@ -9330,4 +11533,4 @@ declare const GithubCommitsResponseSchema: z.ZodObject<{
9330
11533
  }, z.core.$strip>;
9331
11534
  type GithubCommitsResponse = z.infer<typeof GithubCommitsResponseSchema>;
9332
11535
 
9333
- export { type AcknowledgeMemoData, type AcknowledgeMemoResponses, type AddDatabaseData, type AddDatabaseResponses, type AddLinkedRepoData, type AddLinkedRepoResponses, type AddMissionData, type AddMissionRequest, type AddMissionResponses, type AddProjectRepoData, AddProjectRepoDataSchema, type AddProjectRepoResponse, AddProjectRepoResponseSchema, type AddRepoRequest, type ArchiveSessionData, type ArchiveSessionResponses, type AuthConfig, type AuthTokenData, AuthTokenDataSchema, type AuthTokenResponse, AuthTokenResponseSchema, type AuthUserInfo, type AuthUserInfoResponse, AuthUserInfoResponseSchema, AuthUserInfoSchema, type AuthValidateData, AuthValidateDataSchema, type AuthValidateResponse, AuthValidateResponseSchema, type BulkDeleteContentData, type BulkDeleteContentResponses, type BulkDeleteRequest, type BulkReadContentData, type BulkReadContentResponses, type BulkReadRequest, type BulkWriteContentData, type BulkWriteContentResponses, type BulkWriteRequest, type CheckAccessRequest, type Client, type ClientOptions, type Config, type ConnectionState, type ContentType, type ContentTypeInfo, ContentTypeInfoSchema, ContentTypeSchema, type ContentTypeValue, type ContentTypesData, ContentTypesDataSchema, type ContentTypesResponse, ContentTypesResponseSchema, type ContentTypesResult, type ContextReposData, ContextReposDataSchema, type ContextReposResponse, ContextReposResponseSchema, type CreateDatabaseData, type CreateDatabaseResponses, type CreateMemoData, type CreateMemoRequest, type CreateMemoResponse, type CreateMemoResponses, type CreateProjectData, CreateProjectDataSchema, type CreateProjectResponse, CreateProjectResponseSchema, type CreateProjectResponses, type CreateSessionData, CreateSessionDataSchema, type CreateSessionResponse, CreateSessionResponseSchema, type DatabaseConfigResponse, type DatabaseCreate, type DatabaseListResponse, type DatabaseSampleResponse, type DatabaseSchemaResponse, type DatabaseUpdate, type DeleteContentData, type DeleteContentResponses, type DeleteData, DeleteDataSchema, type DeleteDatabaseData, type DeleteDatabaseResponses, type DeleteMemoData, type DeleteMemoResponse, type DeleteMemoResponses, type DeleteProjectData, DeleteProjectDataSchema, type DeleteProjectResponse, DeleteProjectResponseSchema, type DeleteProjectResponses, type DeleteRepoData, type DeleteRepoResponses, type DeleteResponse, DeleteResponseSchema, type DeleteResult, type DiscoveryData, DiscoveryDataSchema, type DiscoveryEndpoint, DiscoveryEndpointSchema, type DiscoveryResponse, DiscoveryResponseSchema, type DownloadRepositoryData, type DownloadRepositoryResponses, type DownloadRequest, type ErrorResponse, ErrorResponseSchema, type ForkRequest, type ForkSessionData, ForkSessionDataSchema, type ForkSessionResponse, ForkSessionResponseSchema, type ForkSessionResponses, type GetAuthConfigData, type GetAuthConfigResponses, type GetContentStatsData, type GetContentStatsResponses, type GetContentTreeData, type GetContentTreeResponses, type GetContentTypesData, type GetContentTypesResponses, type GetContentsRequest, type GetContextReposData, type GetContextReposResponses, type GetCurrentUserData, type GetCurrentUserResponses, type GetDatabaseData, type GetDatabaseResponses, type GetMemoData, type GetMemoForSourceData, type GetMemoForSourceResponse, type GetMemoForSourceResponses, type GetMemoResponse, type GetMemoResponses, type GetMissionContextData, type GetMissionContextResponses, type GetProjectData, GetProjectDataSchema, type GetProjectDatabasesData, type GetProjectDatabasesResponses, type GetProjectResponse, GetProjectResponseSchema, type GetProjectResponses, type GetRepoDownloadStatusData, type GetRepoDownloadStatusResponses, type GetSampleData, type GetSampleResponses, type GetSchemaData, type GetSchemaResponses, type GetSessionMessagesData, GetSessionMessagesDataSchema, type GetSessionMessagesResponse, GetSessionMessagesResponseSchema, type GetSessionMessagesResponses, type GithubBranchInfo, GithubBranchInfoSchema, type GithubBranchesData, GithubBranchesDataSchema, type GithubBranchesResponse, GithubBranchesResponseSchema, type GithubCheckAccessData, type GithubCheckAccessResponses, type GithubCommitInfo, GithubCommitInfoSchema, type GithubCommitsData, GithubCommitsDataSchema, type GithubCommitsResponse, GithubCommitsResponseSchema, type GithubDirectoryData, GithubDirectoryDataSchema, type GithubDirectoryResponse, GithubDirectoryResponseSchema, type GithubFileData, GithubFileDataSchema, type GithubFileInfo, GithubFileInfoSchema, type GithubFileResponse, GithubFileResponseSchema, type GithubGetContentsData, type GithubGetContentsResponses, type GithubListBranchesData, type GithubListBranchesResponses, type GithubRepoData, GithubRepoDataSchema, type GithubRepoInfo, GithubRepoInfoSchema, type GithubRepoResponse, GithubRepoResponseSchema, type IgnoreMemoData, type IgnoreMemoResponses, type IngestionJob, type IngestionJobResponse, IngestionJobResponseSchema, IngestionJobSchema, type JobProgressMessage, type KBDocument, KBDocumentSchema, type KBIngestData, KBIngestDataSchema, type KBIngestResponse, KBIngestResponseSchema, type KBListData, KBListDataSchema, type KBListResponse, KBListResponseSchema, KBNamespace, type KbQueryRequest, type LinkedRepoResponse, type ListBranchesRequest, type ListContentData, type ListContentResponses, type ListData, ListDataSchema, type ListDatabasesData, type ListDatabasesResponses, type ListDownloadedReposData, type ListDownloadedReposResponses, type ListEntry, ListEntrySchema, type ListMemosData, type ListMemosResponse, type ListMemosResponses, type ListProjectsData, ListProjectsDataSchema, type ListProjectsResponse, ListProjectsResponseSchema, type ListProjectsResponses, type ListResponse, ListResponseSchema, type ListResult, type ListSessionsData, ListSessionsDataSchema, type ListSessionsResponse, ListSessionsResponseSchema, type ListSessionsResponses, type ListTablesData, type ListTablesResponses, type ListWorkspacesData, type ListWorkspacesResponses, type LockContentData, type LockContentResponses, type LoginData, type LoginForAccessTokenData, type LoginForAccessTokenResponses, type LoginRequest, type LoginResponses, type Memo, type MemoActionResponse, type MemoCategory, type MemoSeverity, type MemoStatus, type MessageResponse, type Meta, MetaSchema, type MissionCreateRequest, MissionNamespace, type MoveContentData, type MoveContentResponses, type MoveRequest, type NotificationMessage, OCXPAuthError, OCXPClient, type OCXPClientOptions, OCXPConflictError, OCXPError, OCXPErrorCode, OCXPNetworkError, OCXPNotFoundError, OCXPPathService, type OCXPPathServiceOptions, OCXPRateLimitError, type OCXPResponse, OCXPResponseSchema, OCXPTimeoutError, OCXPValidationError, type Options, type Pagination, PaginationSchema, type ParsedPath, type PathEntry, type PathFileInfo, type PathListResult, type PathMoveResult, type PathReadResult, type PathWriteOptions, type PathWriteResult, type PresignedUrlData, PresignedUrlDataSchema, type PresignedUrlResponse, PresignedUrlResponseSchema, type Project, type ProjectCreate, type ProjectListResponse, type ProjectMission, ProjectMissionSchema, ProjectNamespace, type ProjectRepo, ProjectRepoSchema, type ProjectResponse, ProjectSchema, type ProjectUpdate, type QueryContentData, type QueryContentResponses, type QueryData, QueryDataSchema, type QueryFilter, QueryFilterSchema, type QueryKnowledgeBaseData, type QueryKnowledgeBaseResponses, type QueryResponse, QueryResponseSchema, type RagKnowledgeBaseData, type RagKnowledgeBaseResponses, type ReadContentData, type ReadContentResponses, type ReadData, ReadDataSchema, type ReadResponse, ReadResponseSchema, type ReadResult, type RefreshRequest, type RefreshResponse, type RefreshTokensData, type RefreshTokensResponses, type RegenerateMissionData, type RegenerateMissionRequest, type RegenerateMissionResponse, type RegenerateMissionResponses, type RemoveDatabaseData, type RemoveDatabaseResponses, type RemoveLinkedRepoData, type RemoveLinkedRepoResponses, type RemoveMissionData, type RemoveMissionResponses, type RepoDeleteData, RepoDeleteDataSchema, type RepoDeleteResponse, RepoDeleteResponseSchema, type RepoDownloadData, RepoDownloadDataSchema, type RepoDownloadRequest, RepoDownloadRequestSchema, type RepoDownloadResponse, RepoDownloadResponseSchema, type RepoExistsData, RepoExistsDataSchema, type RepoExistsResponse, RepoExistsResponseSchema, type RepoInfo, type RepoListData, RepoListDataSchema, type RepoListItem, RepoListItemSchema, type RepoListResponse, RepoListResponseSchema, type RepoStatus, type RepoStatusData, RepoStatusDataSchema, RepoStatusEnum, type RepoStatusMessage, type RepoStatusResponse, RepoStatusResponseSchema, type ResolveMemoData, type ResolveMemoResponses, type SearchContentData, type SearchContentResponses, type SearchData, SearchDataSchema, type SearchResponse, SearchResponseSchema, type SearchResultItem, SearchResultItemSchema, type Session, type SessionForkResponse, type SessionListResponse, type SessionMessage, SessionMessageSchema, type SessionMessagesResponse, type SessionMetadataUpdate, SessionNamespace, type SessionResponse, SessionSchema, type SetDefaultDatabaseData, type SetDefaultDatabaseResponses, type SetDefaultRepoData, type SetDefaultRepoRequest, type SetDefaultRepoResponses, type SourceType, type StatsData, StatsDataSchema, type StatsResponse, StatsResponseSchema, type SyncEventMessage, type TestDatabaseConnectionData, type TestDatabaseConnectionResponses, type TokenProvider, type TokenResponse, type ToolCreateMissionData, type ToolCreateMissionResponses, type ToolUpdateMissionData, type ToolUpdateMissionResponses, type TreeData, TreeDataSchema, type TreeNode, TreeNodeSchema, type TreeResponse, TreeResponseSchema, type UnlockContentData, type UnlockContentResponses, type UpdateDatabaseData, type UpdateDatabaseResponses, type UpdateProjectData, UpdateProjectDataSchema, type UpdateProjectResponse, UpdateProjectResponseSchema, type UpdateProjectResponses, type UpdateSessionMetadataData, UpdateSessionMetadataDataSchema, type UpdateSessionMetadataResponse, UpdateSessionMetadataResponseSchema, type UpdateSessionMetadataResponses, type UserResponse, VALID_CONTENT_TYPES, type VectorSearchData, VectorSearchDataSchema, type VectorSearchResponse, VectorSearchResponseSchema, type WSBaseMessage, WSBaseMessageSchema, type WSChatMessage, WSChatMessageSchema, type WSChatResponse, WSChatResponseSchema, type WSConnected, WSConnectedSchema, type WSErrorMessage, WSErrorMessageSchema, type WSMessage, WSMessageSchema, type WSMessageType, WSMessageTypeSchema, type WSParseResult, type WSPingPong, WSPingPongSchema, type WSStatus, WSStatusSchema, type WSStreamChunk, WSStreamChunkSchema, type WSStreamEnd, WSStreamEndSchema, type WSStreamStart, WSStreamStartSchema, type WebSocketEventHandler, type WebSocketMessage, type WebSocketMessageType, WebSocketService, type WebSocketServiceOptions, type WorkspacesResponse, type WriteContentData, type WriteContentResponses, type WriteData, WriteDataSchema, type WriteRequest, type WriteResponse, WriteResponseSchema, type WriteResult, acknowledgeMemo, addDatabase, addLinkedRepo, addMission, archiveSession, buildPath, bulkDeleteContent, bulkReadContent, bulkWriteContent, createClient, createConfig, createDatabase, createMemo, createOCXPClient, createPathService, createProject, createResponseSchema, createWebSocketService, deleteContent, deleteDatabase, deleteMemo, deleteProject, deleteRepo, downloadRepository, forkSession, getAuthConfig, getCanonicalType, getContentStats, getContentTree, getContentTypes, getContextRepos, getCurrentUser, getDatabase, getMemo, getMemoForSource, getMissionContext, getProject, getProjectDatabases, getRepoDownloadStatus, getSample, getSchema, getSessionMessages, githubCheckAccess, githubGetContents, githubListBranches, ignoreMemo, isOCXPAuthError, isOCXPConflictError, isOCXPError, isOCXPNetworkError, isOCXPNotFoundError, isOCXPRateLimitError, isOCXPTimeoutError, isOCXPValidationError, isValidContentType, listContent, listContextDatabases, listDatabases, listDownloadedRepos, listMemos, listProjects, listSessions, listTables, listWorkspaces, lockContent, login, loginForAccessToken, mapHttpError, moveContent, normalizePath, parsePath, parseWSMessage, queryContent, queryKnowledgeBase, ragKnowledgeBase, readContent, refreshTokens, regenerateMission, removeDatabase, removeLinkedRepo, removeMission, resolveMemo, safeParseWSMessage, searchContent, setDefaultDatabase, setDefaultRepo, testDatabaseConnection, toolCreateMission, toolUpdateMission, unlockContent, updateDatabase, updateProject, updateSessionMetadata, writeContent };
11536
+ export { type AcknowledgeMemoData, type AcknowledgeMemoResponses, type AddDatabaseData, type AddDatabaseResponses, type AddLinkedRepoData, type AddLinkedRepoResponses, type AddMissionData, type AddMissionRequest, type AddMissionResponses, type AddProjectRepoData, AddProjectRepoDataSchema, type AddProjectRepoResponse, AddProjectRepoResponseSchema, type AddRepoRequest, type ArchiveSessionData, type ArchiveSessionResponses, type AuthConfig, type AuthTokenData, AuthTokenDataSchema, type AuthTokenResponse, AuthTokenResponseSchema, type AuthUserInfo, type AuthUserInfoResponse, AuthUserInfoResponseSchema, AuthUserInfoSchema, type AuthValidateData, AuthValidateDataSchema, type AuthValidateResponse, AuthValidateResponseSchema, type BulkDeleteContentData, type BulkDeleteContentResponses, type BulkDeleteRequest, type BulkReadContentData, type BulkReadContentResponses, type BulkReadRequest, type BulkWriteContentData, type BulkWriteContentResponses, type BulkWriteRequest, type CheckAccessRequest, type Client, type ClientOptions, type Config, type ConnectionState, type ContentType, type ContentTypeInfo, ContentTypeInfoSchema, ContentTypeSchema, type ContentTypeValue, type ContentTypesData, ContentTypesDataSchema, type ContentTypesResponse, ContentTypesResponseSchema, type ContentTypesResult, type ContextReposData, ContextReposDataSchema, type ContextReposResponse, ContextReposResponseSchema, type CreateDatabaseData, type CreateDatabaseResponses, type CreateMemoData, type CreateMemoRequest, type CreateMemoResponse, type CreateMemoResponses, type CreateProjectData, CreateProjectDataSchema, type CreateProjectResponse, CreateProjectResponseSchema, type CreateProjectResponses, type CreateSessionData, CreateSessionDataSchema, type CreateSessionResponse, CreateSessionResponseSchema, type DatabaseConfigResponse, type DatabaseCreate, type DatabaseListResponse, type DatabaseSampleResponse, type DatabaseSchemaResponse, type DatabaseUpdate, type DeleteContentData, type DeleteContentResponses, type DeleteData, DeleteDataSchema, type DeleteDatabaseData, type DeleteDatabaseResponses, type DeleteMemoData, type DeleteMemoResponse, type DeleteMemoResponses, type DeleteProjectData, DeleteProjectDataSchema, type DeleteProjectResponse, DeleteProjectResponseSchema, type DeleteProjectResponses, type DeleteRepoData, type DeleteRepoResponses, type DeleteResponse, DeleteResponseSchema, type DeleteResult, type DiscoveryData, DiscoveryDataSchema, type DiscoveryEndpoint, DiscoveryEndpointSchema, type DiscoveryResponse, DiscoveryResponseSchema, type DownloadRepositoryData, type DownloadRepositoryResponses, type DownloadRequest, type ErrorResponse, ErrorResponseSchema, type ForkRequest, type ForkSessionData, ForkSessionDataSchema, type ForkSessionResponse, ForkSessionResponseSchema, type ForkSessionResponses, type GetAuthConfigData, type GetAuthConfigResponses, type GetContentStatsData, type GetContentStatsResponses, type GetContentTreeData, type GetContentTreeResponses, type GetContentTypesData, type GetContentTypesResponses, type GetContentsRequest, type GetContextReposData, type GetContextReposResponses, type GetCurrentUserData, type GetCurrentUserResponses, type GetDatabaseData, type GetDatabaseResponses, type GetMemoData, type GetMemoForSourceData, type GetMemoForSourceResponse, type GetMemoForSourceResponses, type GetMemoResponse, type GetMemoResponses, type GetMissionContextData, type GetMissionContextResponses, type GetProjectData, GetProjectDataSchema, type GetProjectDatabasesData, type GetProjectDatabasesResponses, type GetProjectResponse, GetProjectResponseSchema, type GetProjectResponses, type GetPrototypeChatData, type GetPrototypeChatResponses, type GetRepoCommitsData, type GetRepoCommitsResponses, type GetRepoDownloadStatusData, type GetRepoDownloadStatusResponses, type GetSampleData, type GetSampleResponses, type GetSchemaData, type GetSchemaResponses, type GetSessionMessagesData, GetSessionMessagesDataSchema, type GetSessionMessagesResponse, GetSessionMessagesResponseSchema, type GetSessionMessagesResponses, type GetStoredVersionsData, type GetStoredVersionsResponses, type GetSyncStatusData, type GetSyncStatusResponses, type GithubBranchInfo, GithubBranchInfoSchema, type GithubBranchesData, GithubBranchesDataSchema, type GithubBranchesResponse, GithubBranchesResponseSchema, type GithubCheckAccessData, type GithubCheckAccessResponses, type GithubCommitInfo, GithubCommitInfoSchema, type GithubCommitsData, GithubCommitsDataSchema, type GithubCommitsResponse, GithubCommitsResponseSchema, type GithubDirectoryData, GithubDirectoryDataSchema, type GithubDirectoryResponse, GithubDirectoryResponseSchema, type GithubFileData, GithubFileDataSchema, type GithubFileInfo, GithubFileInfoSchema, type GithubFileResponse, GithubFileResponseSchema, type GithubGetContentsData, type GithubGetContentsResponses, type GithubListBranchesData, type GithubListBranchesResponses, type GithubRepoData, GithubRepoDataSchema, type GithubRepoInfo, GithubRepoInfoSchema, type GithubRepoResponse, GithubRepoResponseSchema, type IgnoreMemoData, type IgnoreMemoResponses, type IngestionJob, type IngestionJobResponse, IngestionJobResponseSchema, IngestionJobSchema, type JobProgressMessage, type KBDocument, KBDocumentSchema, type KBIngestData, KBIngestDataSchema, type KBIngestResponse, KBIngestResponseSchema, type KBListData, KBListDataSchema, type KBListResponse, KBListResponseSchema, KBNamespace, type KbQueryRequest, type LinkPrototypeChatData, type LinkPrototypeChatResponses, type LinkedRepoResponse, type ListBranchesRequest, type ListContentData, type ListContentResponses, type ListData, ListDataSchema, type ListDatabasesData, type ListDatabasesResponses, type ListDownloadedReposData, type ListDownloadedReposResponses, type ListEntry, ListEntrySchema, type ListMemosData, type ListMemosResponse, type ListMemosResponses, type ListProjectsData, ListProjectsDataSchema, type ListProjectsResponse, ListProjectsResponseSchema, type ListProjectsResponses, type ListPrototypeChatsData, type ListPrototypeChatsResponses, type ListResponse, ListResponseSchema, type ListResult, type ListSessionsData, ListSessionsDataSchema, type ListSessionsResponse, ListSessionsResponseSchema, type ListSessionsResponses, type ListTablesData, type ListTablesResponses, type ListWorkspacesData, type ListWorkspacesResponses, type LockContentData, type LockContentResponses, type LoginData, type LoginForAccessTokenData, type LoginForAccessTokenResponses, type LoginRequest, type LoginResponses, type Memo, type MemoActionResponse, type MemoCategory, type MemoSeverity, type MemoStatus, type MessageResponse, type Meta, MetaSchema, type MissionCreateRequest, MissionNamespace, type MoveContentData, type MoveContentResponses, type MoveRequest, type NotificationMessage, OCXPAuthError, OCXPClient, type OCXPClientOptions, OCXPConflictError, OCXPError, OCXPErrorCode, OCXPNetworkError, OCXPNotFoundError, OCXPPathService, type OCXPPathServiceOptions, OCXPRateLimitError, type OCXPResponse, OCXPResponseSchema, OCXPTimeoutError, OCXPValidationError, type Options, type Pagination, PaginationSchema, type ParsedPath, type PathEntry, type PathFileInfo, type PathListResult, type PathMoveResult, type PathReadResult, type PathWriteOptions, type PathWriteResult, type PresignedUrlData, PresignedUrlDataSchema, type PresignedUrlResponse, PresignedUrlResponseSchema, type PreviewPrototypeChatData, type PreviewPrototypeChatResponses, type Project, type ProjectCreate, type ProjectListResponse, type ProjectMission, ProjectMissionSchema, ProjectNamespace, type ProjectRepo, ProjectRepoSchema, type ProjectResponse, ProjectSchema, type ProjectUpdate, type PrototypeChatGetResponse, type PrototypeChatLinkRequest, type PrototypeChatLinkResponse, type PrototypeChatListItem, type PrototypeChatListResponse, type PrototypeChatMessage, type PrototypeChatPreviewRequest, type PrototypeChatPreviewResponse, type PrototypeChatSyncAsyncRequest, type PrototypeChatSyncAsyncResponse, type PrototypeChatSyncRequest, type PrototypeChatSyncResponse, type PrototypeChatVersion, PrototypeNamespace, type PrototypePageInfo, type PrototypeStoredVersionsResponse, type PrototypeSyncCompleteMessage, type PrototypeSyncJobStatusResponse, type PrototypeSyncProgressMessage, type QueryContentData, type QueryContentResponses, type QueryData, QueryDataSchema, type QueryFilter, QueryFilterSchema, type QueryKnowledgeBaseData, type QueryKnowledgeBaseResponses, type QueryResponse, QueryResponseSchema, type RagKnowledgeBaseData, type RagKnowledgeBaseResponses, type ReadContentData, type ReadContentResponses, type ReadData, ReadDataSchema, type ReadResponse, ReadResponseSchema, type ReadResult, type RefreshRequest, type RefreshResponse, type RefreshTokensData, type RefreshTokensResponses, type RegenerateMissionData, type RegenerateMissionRequest, type RegenerateMissionResponse, type RegenerateMissionResponses, type RemoveDatabaseData, type RemoveDatabaseResponses, type RemoveLinkedRepoData, type RemoveLinkedRepoResponses, type RemoveMissionData, type RemoveMissionResponses, type RepoCommitInfo, type RepoCommitStatusResponse, type RepoDeleteData, RepoDeleteDataSchema, type RepoDeleteResponse, RepoDeleteResponseSchema, type RepoDownloadData, RepoDownloadDataSchema, type RepoDownloadRequest, RepoDownloadRequestSchema, type RepoDownloadResponse, RepoDownloadResponseSchema, type RepoExistsData, RepoExistsDataSchema, type RepoExistsResponse, RepoExistsResponseSchema, type RepoInfo, type RepoListData, RepoListDataSchema, type RepoListItem, RepoListItemSchema, type RepoListResponse, RepoListResponseSchema, type RepoStatus, type RepoStatusData, RepoStatusDataSchema, RepoStatusEnum, type RepoStatusMessage, type RepoStatusResponse, RepoStatusResponseSchema, type RepoSyncAllResponse, type RepoSyncResponse, type ResolveMemoData, type ResolveMemoResponses, type SearchContentData, type SearchContentResponses, type SearchData, SearchDataSchema, type SearchResponse, SearchResponseSchema, type SearchResultItem, SearchResultItemSchema, type Session, type SessionForkResponse, type SessionListResponse, type SessionMessage, SessionMessageSchema, type SessionMessagesResponse, type SessionMetadataUpdate, SessionNamespace, type SessionResponse, SessionSchema, type SetDefaultDatabaseData, type SetDefaultDatabaseResponses, type SetDefaultRepoData, type SetDefaultRepoRequest, type SetDefaultRepoResponses, type SourceType, type StatsData, StatsDataSchema, type StatsResponse, StatsResponseSchema, type SyncAllReposData, type SyncAllReposResponses, type SyncEventMessage, type SyncPrototypeChatAsyncData, type SyncPrototypeChatAsyncResponses, type SyncPrototypeChatData, type SyncPrototypeChatResponses, type SyncRepoData, type SyncRepoResponses, type TestDatabaseConnectionData, type TestDatabaseConnectionResponses, type TokenProvider, type TokenResponse, type ToolCreateMissionData, type ToolCreateMissionResponses, type ToolUpdateMissionData, type ToolUpdateMissionResponses, type TreeData, TreeDataSchema, type TreeNode, TreeNodeSchema, type TreeResponse, TreeResponseSchema, type UnlockContentData, type UnlockContentResponses, type UpdateDatabaseData, type UpdateDatabaseResponses, type UpdateProjectData, UpdateProjectDataSchema, type UpdateProjectResponse, UpdateProjectResponseSchema, type UpdateProjectResponses, type UpdateSessionMetadataData, UpdateSessionMetadataDataSchema, type UpdateSessionMetadataResponse, UpdateSessionMetadataResponseSchema, type UpdateSessionMetadataResponses, type UserResponse, VALID_CONTENT_TYPES, type VectorSearchData, VectorSearchDataSchema, type VectorSearchResponse, VectorSearchResponseSchema, type WSBaseMessage, WSBaseMessageSchema, type WSChatMessage, WSChatMessageSchema, type WSChatResponse, WSChatResponseSchema, type WSConnected, WSConnectedSchema, type WSErrorMessage, WSErrorMessageSchema, type WSMessage, WSMessageSchema, type WSMessageType, WSMessageTypeSchema, type WSParseResult, type WSPingPong, WSPingPongSchema, type WSStatus, WSStatusSchema, type WSStreamChunk, WSStreamChunkSchema, type WSStreamEnd, WSStreamEndSchema, type WSStreamStart, WSStreamStartSchema, type WebSocketEventHandler, type WebSocketMessage, type WebSocketMessageType, WebSocketService, type WebSocketServiceOptions, type WorkspacesResponse, type WriteContentData, type WriteContentResponses, type WriteData, WriteDataSchema, type WriteRequest, type WriteResponse, WriteResponseSchema, type WriteResult, acknowledgeMemo, addDatabase, addLinkedRepo, addMission, archiveSession, buildPath, bulkDeleteContent, bulkReadContent, bulkWriteContent, createClient, createConfig, createDatabase, createMemo, createOCXPClient, createPathService, createProject, createResponseSchema, createWebSocketService, deleteContent, deleteDatabase, deleteMemo, deleteProject, deleteRepo, downloadRepository, forkSession, getAuthConfig, getCanonicalType, getContentStats, getContentTree, getContentTypes, getContextRepos, getCurrentUser, getDatabase, getMemo, getMemoForSource, getMissionContext, getProject, getProjectDatabases, getPrototypeChat, getRepoCommits, getRepoDownloadStatus, getSample, getSchema, getSessionMessages, getStoredVersions, getSyncStatus, githubCheckAccess, githubGetContents, githubListBranches, ignoreMemo, isOCXPAuthError, isOCXPConflictError, isOCXPError, isOCXPNetworkError, isOCXPNotFoundError, isOCXPRateLimitError, isOCXPTimeoutError, isOCXPValidationError, isValidContentType, linkPrototypeChat, listContent, listContextDatabases, listDatabases, listDownloadedRepos, listMemos, listProjects, listPrototypeChats, listSessions, listTables, listWorkspaces, lockContent, login, loginForAccessToken, mapHttpError, moveContent, normalizePath, parsePath, parseWSMessage, previewPrototypeChat, queryContent, queryKnowledgeBase, ragKnowledgeBase, readContent, refreshTokens, regenerateMission, removeDatabase, removeLinkedRepo, removeMission, resolveMemo, safeParseWSMessage, searchContent, setDefaultDatabase, setDefaultRepo, syncAllRepos, syncPrototypeChat, syncPrototypeChatAsync, syncRepo, testDatabaseConnection, toolCreateMission, toolUpdateMission, unlockContent, updateDatabase, updateProject, updateSessionMetadata, writeContent };