@ocxp/client 0.2.3 → 0.2.5

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,1008 @@ 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
+ * RepoDeleteResponse
2789
+ *
2790
+ * Response for DELETE /ocxp/repo/{id}.
2791
+ */
2792
+ type RepoDeleteResponse = {
2793
+ /**
2794
+ * Id
2795
+ *
2796
+ * Deleted repository UUID
2797
+ */
2798
+ id: string;
2799
+ /**
2800
+ * Repo Id
2801
+ *
2802
+ * Deleted repository identifier (owner/repo)
2803
+ */
2804
+ repo_id: string;
2805
+ /**
2806
+ * Deleted
2807
+ */
2808
+ deleted?: boolean;
2809
+ };
2810
+ /**
2811
+ * RepoDownloadResponse
2812
+ *
2813
+ * Response for POST /ocxp/repo/download.
2814
+ */
2815
+ type RepoDownloadResponse = {
2816
+ /**
2817
+ * Id
2818
+ *
2819
+ * Unique UUID for API operations (available when linked or complete)
2820
+ */
2821
+ id?: string | null;
2822
+ /**
2823
+ * Job Id
2824
+ */
2825
+ job_id: string;
2826
+ /**
2827
+ * Status
2828
+ *
2829
+ * started|linked|downloading|indexing|complete|failed
2830
+ */
2831
+ status: string;
2832
+ /**
2833
+ * Message
2834
+ */
2835
+ message?: string | null;
2836
+ /**
2837
+ * Deduplicated
2838
+ *
2839
+ * True if repo already exists and was linked instead of downloaded
2840
+ */
2841
+ deduplicated?: boolean;
2842
+ /**
2843
+ * S3 Path
2844
+ *
2845
+ * S3 storage path
2846
+ */
2847
+ s3_path?: string | null;
2848
+ /**
2849
+ * Detected Type
2850
+ *
2851
+ * Auto-detected repo content type (code, docs, or mixed)
2852
+ */
2853
+ detected_type?: string | null;
2854
+ /**
2855
+ * Detection Method
2856
+ *
2857
+ * How repo type was detected: path_heuristic (from folder name) or github_api (from language analysis)
2858
+ */
2859
+ detection_method?: string | null;
2860
+ };
2861
+ /**
2862
+ * RepoInfo
2863
+ *
2864
+ * Repository information.
2865
+ */
2866
+ type RepoInfo = {
2867
+ /**
2868
+ * Id
2869
+ *
2870
+ * Unique UUID for API operations
2871
+ */
2872
+ id: string;
2873
+ /**
2874
+ * Repo Id
2875
+ *
2876
+ * Repository identifier (owner/repo) for display
2877
+ */
2878
+ repo_id: string;
2879
+ /**
2880
+ * Name
2881
+ */
2882
+ name: string;
2883
+ /**
2884
+ * Url
2885
+ */
2886
+ url?: string | null;
2887
+ /**
2888
+ * Branch
2889
+ *
2890
+ * Git branch
2891
+ */
2892
+ branch?: string;
2893
+ /**
2894
+ * Path
2895
+ *
2896
+ * Subpath within repository (if partial download)
2897
+ */
2898
+ path?: string | null;
2899
+ /**
2900
+ * Visibility
2133
2901
  *
2134
2902
  * Repository visibility: public or private
2135
2903
  */
@@ -2516,6 +3284,10 @@ type WriteRequest = {
2516
3284
  * Manage Metadata
2517
3285
  */
2518
3286
  manage_metadata?: boolean;
3287
+ /**
3288
+ * Auto Index
3289
+ */
3290
+ auto_index?: boolean | null;
2519
3291
  /**
2520
3292
  * Project Id
2521
3293
  */
@@ -2545,10 +3317,18 @@ type BulkReadContentData = {
2545
3317
  url: '/ocxp/context/{content_type}/bulk/read';
2546
3318
  };
2547
3319
  type BulkReadContentErrors = {
3320
+ /**
3321
+ * Validation error
3322
+ */
3323
+ 400: unknown;
2548
3324
  /**
2549
3325
  * Validation Error
2550
3326
  */
2551
3327
  422: HttpValidationError;
3328
+ /**
3329
+ * Rate limit exceeded
3330
+ */
3331
+ 429: unknown;
2552
3332
  };
2553
3333
  type BulkReadContentResponses = {
2554
3334
  /**
@@ -2576,10 +3356,18 @@ type BulkWriteContentData = {
2576
3356
  url: '/ocxp/context/{content_type}/bulk/write';
2577
3357
  };
2578
3358
  type BulkWriteContentErrors = {
3359
+ /**
3360
+ * Validation error
3361
+ */
3362
+ 400: unknown;
2579
3363
  /**
2580
3364
  * Validation Error
2581
3365
  */
2582
3366
  422: HttpValidationError;
3367
+ /**
3368
+ * Rate limit exceeded
3369
+ */
3370
+ 429: unknown;
2583
3371
  };
2584
3372
  type BulkWriteContentResponses = {
2585
3373
  /**
@@ -2607,10 +3395,18 @@ type BulkDeleteContentData = {
2607
3395
  url: '/ocxp/context/{content_type}/bulk/delete';
2608
3396
  };
2609
3397
  type BulkDeleteContentErrors = {
3398
+ /**
3399
+ * Validation error
3400
+ */
3401
+ 400: unknown;
2610
3402
  /**
2611
3403
  * Validation Error
2612
3404
  */
2613
3405
  422: HttpValidationError;
3406
+ /**
3407
+ * Rate limit exceeded
3408
+ */
3409
+ 429: unknown;
2614
3410
  };
2615
3411
  type BulkDeleteContentResponses = {
2616
3412
  /**
@@ -2618,6 +3414,270 @@ type BulkDeleteContentResponses = {
2618
3414
  */
2619
3415
  200: BulkDeleteResponse;
2620
3416
  };
3417
+ type ListPrototypeChatsData = {
3418
+ body?: never;
3419
+ path?: never;
3420
+ query?: {
3421
+ /**
3422
+ * Provider
3423
+ */
3424
+ provider?: string;
3425
+ };
3426
+ url: '/ocxp/prototype/chat/list';
3427
+ };
3428
+ type ListPrototypeChatsErrors = {
3429
+ /**
3430
+ * Validation Error
3431
+ */
3432
+ 422: HttpValidationError;
3433
+ /**
3434
+ * Rate limit exceeded
3435
+ */
3436
+ 429: unknown;
3437
+ };
3438
+ type ListPrototypeChatsResponses = {
3439
+ /**
3440
+ * Successful Response
3441
+ */
3442
+ 200: PrototypeChatListResponse;
3443
+ };
3444
+ type PreviewPrototypeChatData = {
3445
+ body: PrototypeChatPreviewRequest;
3446
+ path?: never;
3447
+ query?: never;
3448
+ url: '/ocxp/prototype/chat/preview';
3449
+ };
3450
+ type PreviewPrototypeChatErrors = {
3451
+ /**
3452
+ * Validation error
3453
+ */
3454
+ 400: unknown;
3455
+ /**
3456
+ * Validation Error
3457
+ */
3458
+ 422: HttpValidationError;
3459
+ /**
3460
+ * Rate limit exceeded
3461
+ */
3462
+ 429: unknown;
3463
+ };
3464
+ type PreviewPrototypeChatResponses = {
3465
+ /**
3466
+ * Successful Response
3467
+ */
3468
+ 200: PrototypeChatPreviewResponse;
3469
+ };
3470
+ type LinkPrototypeChatData = {
3471
+ body: PrototypeChatLinkRequest;
3472
+ headers?: {
3473
+ /**
3474
+ * X-Workspace
3475
+ */
3476
+ 'X-Workspace'?: string;
3477
+ };
3478
+ path?: never;
3479
+ query?: never;
3480
+ url: '/ocxp/prototype/chat/link';
3481
+ };
3482
+ type LinkPrototypeChatErrors = {
3483
+ /**
3484
+ * Validation error
3485
+ */
3486
+ 400: unknown;
3487
+ /**
3488
+ * Validation Error
3489
+ */
3490
+ 422: HttpValidationError;
3491
+ /**
3492
+ * Rate limit exceeded
3493
+ */
3494
+ 429: unknown;
3495
+ };
3496
+ type LinkPrototypeChatResponses = {
3497
+ /**
3498
+ * Successful Response
3499
+ */
3500
+ 200: PrototypeChatLinkResponse;
3501
+ };
3502
+ type SyncPrototypeChatData = {
3503
+ body: PrototypeChatSyncRequest;
3504
+ headers?: {
3505
+ /**
3506
+ * X-Workspace
3507
+ */
3508
+ 'X-Workspace'?: string;
3509
+ };
3510
+ path?: never;
3511
+ query?: never;
3512
+ url: '/ocxp/prototype/chat/sync';
3513
+ };
3514
+ type SyncPrototypeChatErrors = {
3515
+ /**
3516
+ * Validation Error
3517
+ */
3518
+ 422: HttpValidationError;
3519
+ /**
3520
+ * Rate limit exceeded
3521
+ */
3522
+ 429: unknown;
3523
+ };
3524
+ type SyncPrototypeChatResponses = {
3525
+ /**
3526
+ * Successful Response
3527
+ */
3528
+ 200: PrototypeChatSyncResponse;
3529
+ };
3530
+ type GetStoredVersionsData = {
3531
+ body?: never;
3532
+ headers?: {
3533
+ /**
3534
+ * X-Workspace
3535
+ */
3536
+ 'X-Workspace'?: string;
3537
+ };
3538
+ path: {
3539
+ /**
3540
+ * Provider
3541
+ */
3542
+ provider: string;
3543
+ /**
3544
+ * Chat Id
3545
+ */
3546
+ chat_id: string;
3547
+ };
3548
+ query?: {
3549
+ /**
3550
+ * Include Details
3551
+ */
3552
+ include_details?: boolean;
3553
+ };
3554
+ url: '/ocxp/prototype/chat/{provider}/{chat_id}/stored-versions';
3555
+ };
3556
+ type GetStoredVersionsErrors = {
3557
+ /**
3558
+ * Validation Error
3559
+ */
3560
+ 422: HttpValidationError;
3561
+ /**
3562
+ * Rate limit exceeded
3563
+ */
3564
+ 429: unknown;
3565
+ };
3566
+ type GetStoredVersionsResponses = {
3567
+ /**
3568
+ * Successful Response
3569
+ */
3570
+ 200: PrototypeStoredVersionsResponse;
3571
+ };
3572
+ type GetPrototypeChatData = {
3573
+ body?: never;
3574
+ headers?: {
3575
+ /**
3576
+ * X-Workspace
3577
+ */
3578
+ 'X-Workspace'?: string;
3579
+ };
3580
+ path: {
3581
+ /**
3582
+ * Provider
3583
+ */
3584
+ provider: string;
3585
+ /**
3586
+ * Chat Id
3587
+ */
3588
+ chat_id: string;
3589
+ };
3590
+ query?: {
3591
+ /**
3592
+ * Project Id
3593
+ */
3594
+ project_id?: string | null;
3595
+ /**
3596
+ * Version Id
3597
+ */
3598
+ version_id?: string | null;
3599
+ };
3600
+ url: '/ocxp/prototype/chat/{provider}/{chat_id}';
3601
+ };
3602
+ type GetPrototypeChatErrors = {
3603
+ /**
3604
+ * Chat not found
3605
+ */
3606
+ 404: unknown;
3607
+ /**
3608
+ * Validation Error
3609
+ */
3610
+ 422: HttpValidationError;
3611
+ /**
3612
+ * Rate limit exceeded
3613
+ */
3614
+ 429: unknown;
3615
+ };
3616
+ type GetPrototypeChatResponses = {
3617
+ /**
3618
+ * Chat data returned
3619
+ */
3620
+ 200: PrototypeChatGetResponse;
3621
+ };
3622
+ type SyncPrototypeChatAsyncData = {
3623
+ body: PrototypeChatSyncAsyncRequest;
3624
+ headers?: {
3625
+ /**
3626
+ * X-Workspace
3627
+ */
3628
+ 'X-Workspace'?: string;
3629
+ };
3630
+ path?: never;
3631
+ query?: never;
3632
+ url: '/ocxp/prototype/chat/sync-async';
3633
+ };
3634
+ type SyncPrototypeChatAsyncErrors = {
3635
+ /**
3636
+ * Validation Error
3637
+ */
3638
+ 422: HttpValidationError;
3639
+ /**
3640
+ * Rate limit exceeded
3641
+ */
3642
+ 429: unknown;
3643
+ };
3644
+ type SyncPrototypeChatAsyncResponses = {
3645
+ /**
3646
+ * Successful Response
3647
+ */
3648
+ 202: PrototypeChatSyncAsyncResponse;
3649
+ };
3650
+ type GetSyncStatusData = {
3651
+ body?: never;
3652
+ path: {
3653
+ /**
3654
+ * Job Id
3655
+ */
3656
+ job_id: string;
3657
+ };
3658
+ query?: never;
3659
+ url: '/ocxp/prototype/chat/sync-status/{job_id}';
3660
+ };
3661
+ type GetSyncStatusErrors = {
3662
+ /**
3663
+ * Job not found
3664
+ */
3665
+ 404: unknown;
3666
+ /**
3667
+ * Validation Error
3668
+ */
3669
+ 422: HttpValidationError;
3670
+ /**
3671
+ * Rate limit exceeded
3672
+ */
3673
+ 429: unknown;
3674
+ };
3675
+ type GetSyncStatusResponses = {
3676
+ /**
3677
+ * Job status returned
3678
+ */
3679
+ 200: PrototypeSyncJobStatusResponse;
3680
+ };
2621
3681
  type ListSessionsData = {
2622
3682
  body?: never;
2623
3683
  headers?: {
@@ -2648,6 +3708,10 @@ type ListSessionsErrors = {
2648
3708
  * Validation Error
2649
3709
  */
2650
3710
  422: HttpValidationError;
3711
+ /**
3712
+ * Rate limit exceeded
3713
+ */
3714
+ 429: unknown;
2651
3715
  };
2652
3716
  type ListSessionsResponses = {
2653
3717
  /**
@@ -2688,6 +3752,10 @@ type GetSessionMessagesErrors = {
2688
3752
  * Validation Error
2689
3753
  */
2690
3754
  422: HttpValidationError;
3755
+ /**
3756
+ * Rate limit exceeded
3757
+ */
3758
+ 429: unknown;
2691
3759
  };
2692
3760
  type GetSessionMessagesResponses = {
2693
3761
  /**
@@ -2717,6 +3785,10 @@ type UpdateSessionMetadataErrors = {
2717
3785
  * Validation Error
2718
3786
  */
2719
3787
  422: HttpValidationError;
3788
+ /**
3789
+ * Rate limit exceeded
3790
+ */
3791
+ 429: unknown;
2720
3792
  };
2721
3793
  type UpdateSessionMetadataResponses = {
2722
3794
  /**
@@ -2750,6 +3822,10 @@ type ForkSessionErrors = {
2750
3822
  * Validation Error
2751
3823
  */
2752
3824
  422: HttpValidationError;
3825
+ /**
3826
+ * Rate limit exceeded
3827
+ */
3828
+ 429: unknown;
2753
3829
  };
2754
3830
  type ForkSessionResponses = {
2755
3831
  /**
@@ -2783,6 +3859,10 @@ type ArchiveSessionErrors = {
2783
3859
  * Validation Error
2784
3860
  */
2785
3861
  422: HttpValidationError;
3862
+ /**
3863
+ * Rate limit exceeded
3864
+ */
3865
+ 429: unknown;
2786
3866
  };
2787
3867
  type ArchiveSessionResponses = {
2788
3868
  /**
@@ -2826,6 +3906,10 @@ type ListProjectsErrors = {
2826
3906
  * Validation Error
2827
3907
  */
2828
3908
  422: HttpValidationError;
3909
+ /**
3910
+ * Rate limit exceeded
3911
+ */
3912
+ 429: unknown;
2829
3913
  };
2830
3914
  type ListProjectsResponses = {
2831
3915
  /**
@@ -2850,6 +3934,10 @@ type CreateProjectErrors = {
2850
3934
  * Validation Error
2851
3935
  */
2852
3936
  422: HttpValidationError;
3937
+ /**
3938
+ * Rate limit exceeded
3939
+ */
3940
+ 429: unknown;
2853
3941
  };
2854
3942
  type CreateProjectResponses = {
2855
3943
  /**
@@ -2885,6 +3973,10 @@ type DeleteProjectErrors = {
2885
3973
  * Validation Error
2886
3974
  */
2887
3975
  422: HttpValidationError;
3976
+ /**
3977
+ * Rate limit exceeded
3978
+ */
3979
+ 429: unknown;
2888
3980
  };
2889
3981
  type DeleteProjectResponses = {
2890
3982
  /**
@@ -2920,6 +4012,10 @@ type GetProjectErrors = {
2920
4012
  * Validation Error
2921
4013
  */
2922
4014
  422: HttpValidationError;
4015
+ /**
4016
+ * Rate limit exceeded
4017
+ */
4018
+ 429: unknown;
2923
4019
  };
2924
4020
  type GetProjectResponses = {
2925
4021
  /**
@@ -2955,6 +4051,10 @@ type UpdateProjectErrors = {
2955
4051
  * Validation Error
2956
4052
  */
2957
4053
  422: HttpValidationError;
4054
+ /**
4055
+ * Rate limit exceeded
4056
+ */
4057
+ 429: unknown;
2958
4058
  };
2959
4059
  type UpdateProjectResponses = {
2960
4060
  /**
@@ -2990,6 +4090,10 @@ type AddLinkedRepoErrors = {
2990
4090
  * Validation Error
2991
4091
  */
2992
4092
  422: HttpValidationError;
4093
+ /**
4094
+ * Rate limit exceeded
4095
+ */
4096
+ 429: unknown;
2993
4097
  };
2994
4098
  type AddLinkedRepoResponses = {
2995
4099
  /**
@@ -3029,6 +4133,10 @@ type RemoveLinkedRepoErrors = {
3029
4133
  * Validation Error
3030
4134
  */
3031
4135
  422: HttpValidationError;
4136
+ /**
4137
+ * Rate limit exceeded
4138
+ */
4139
+ 429: unknown;
3032
4140
  };
3033
4141
  type RemoveLinkedRepoResponses = {
3034
4142
  /**
@@ -3064,6 +4172,10 @@ type SetDefaultRepoErrors = {
3064
4172
  * Validation Error
3065
4173
  */
3066
4174
  422: HttpValidationError;
4175
+ /**
4176
+ * Rate limit exceeded
4177
+ */
4178
+ 429: unknown;
3067
4179
  };
3068
4180
  type SetDefaultRepoResponses = {
3069
4181
  /**
@@ -3099,6 +4211,10 @@ type GetContextReposErrors = {
3099
4211
  * Validation Error
3100
4212
  */
3101
4213
  422: HttpValidationError;
4214
+ /**
4215
+ * Rate limit exceeded
4216
+ */
4217
+ 429: unknown;
3102
4218
  };
3103
4219
  type GetContextReposResponses = {
3104
4220
  /**
@@ -3134,6 +4250,10 @@ type AddMissionErrors = {
3134
4250
  * Validation Error
3135
4251
  */
3136
4252
  422: HttpValidationError;
4253
+ /**
4254
+ * Rate limit exceeded
4255
+ */
4256
+ 429: unknown;
3137
4257
  };
3138
4258
  type AddMissionResponses = {
3139
4259
  /**
@@ -3173,6 +4293,10 @@ type RemoveMissionErrors = {
3173
4293
  * Validation Error
3174
4294
  */
3175
4295
  422: HttpValidationError;
4296
+ /**
4297
+ * Rate limit exceeded
4298
+ */
4299
+ 429: unknown;
3176
4300
  };
3177
4301
  type RemoveMissionResponses = {
3178
4302
  /**
@@ -3208,6 +4332,10 @@ type GetProjectDatabasesErrors = {
3208
4332
  * Validation Error
3209
4333
  */
3210
4334
  422: HttpValidationError;
4335
+ /**
4336
+ * Rate limit exceeded
4337
+ */
4338
+ 429: unknown;
3211
4339
  };
3212
4340
  type GetProjectDatabasesResponses = {
3213
4341
  /**
@@ -3243,6 +4371,10 @@ type AddDatabaseErrors = {
3243
4371
  * Validation Error
3244
4372
  */
3245
4373
  422: HttpValidationError;
4374
+ /**
4375
+ * Rate limit exceeded
4376
+ */
4377
+ 429: unknown;
3246
4378
  };
3247
4379
  type AddDatabaseResponses = {
3248
4380
  /**
@@ -3282,6 +4414,10 @@ type RemoveDatabaseErrors = {
3282
4414
  * Validation Error
3283
4415
  */
3284
4416
  422: HttpValidationError;
4417
+ /**
4418
+ * Rate limit exceeded
4419
+ */
4420
+ 429: unknown;
3285
4421
  };
3286
4422
  type RemoveDatabaseResponses = {
3287
4423
  /**
@@ -3317,6 +4453,10 @@ type SetDefaultDatabaseErrors = {
3317
4453
  * Validation Error
3318
4454
  */
3319
4455
  422: HttpValidationError;
4456
+ /**
4457
+ * Rate limit exceeded
4458
+ */
4459
+ 429: unknown;
3320
4460
  };
3321
4461
  type SetDefaultDatabaseResponses = {
3322
4462
  /**
@@ -3352,6 +4492,10 @@ type RegenerateMissionErrors = {
3352
4492
  * Validation Error
3353
4493
  */
3354
4494
  422: HttpValidationError;
4495
+ /**
4496
+ * Rate limit exceeded
4497
+ */
4498
+ 429: unknown;
3355
4499
  /**
3356
4500
  * Archive or regeneration failed
3357
4501
  */
@@ -3380,6 +4524,10 @@ type QueryKnowledgeBaseErrors = {
3380
4524
  * Validation Error
3381
4525
  */
3382
4526
  422: HttpValidationError;
4527
+ /**
4528
+ * Rate limit exceeded
4529
+ */
4530
+ 429: unknown;
3383
4531
  };
3384
4532
  type QueryKnowledgeBaseResponses = {
3385
4533
  /**
@@ -3403,7 +4551,11 @@ type RagKnowledgeBaseErrors = {
3403
4551
  /**
3404
4552
  * Validation Error
3405
4553
  */
3406
- 422: HttpValidationError;
4554
+ 422: HttpValidationError;
4555
+ /**
4556
+ * Rate limit exceeded
4557
+ */
4558
+ 429: unknown;
3407
4559
  };
3408
4560
  type RagKnowledgeBaseResponses = {
3409
4561
  /**
@@ -3471,6 +4623,10 @@ type ListMemosErrors = {
3471
4623
  * Validation Error
3472
4624
  */
3473
4625
  422: HttpValidationError;
4626
+ /**
4627
+ * Rate limit exceeded
4628
+ */
4629
+ 429: unknown;
3474
4630
  };
3475
4631
  type ListMemosResponses = {
3476
4632
  /**
@@ -3500,6 +4656,10 @@ type CreateMemoErrors = {
3500
4656
  * Validation Error
3501
4657
  */
3502
4658
  422: HttpValidationError;
4659
+ /**
4660
+ * Rate limit exceeded
4661
+ */
4662
+ 429: unknown;
3503
4663
  };
3504
4664
  type CreateMemoResponses = {
3505
4665
  /**
@@ -3536,6 +4696,10 @@ type DeleteMemoErrors = {
3536
4696
  * Validation Error
3537
4697
  */
3538
4698
  422: HttpValidationError;
4699
+ /**
4700
+ * Rate limit exceeded
4701
+ */
4702
+ 429: unknown;
3539
4703
  };
3540
4704
  type DeleteMemoResponses = {
3541
4705
  /**
@@ -3572,6 +4736,10 @@ type GetMemoErrors = {
3572
4736
  * Validation Error
3573
4737
  */
3574
4738
  422: HttpValidationError;
4739
+ /**
4740
+ * Rate limit exceeded
4741
+ */
4742
+ 429: unknown;
3575
4743
  };
3576
4744
  type GetMemoResponses = {
3577
4745
  /**
@@ -3610,6 +4778,10 @@ type GetMemoForSourceErrors = {
3610
4778
  * Validation Error
3611
4779
  */
3612
4780
  422: HttpValidationError;
4781
+ /**
4782
+ * Rate limit exceeded
4783
+ */
4784
+ 429: unknown;
3613
4785
  };
3614
4786
  type GetMemoForSourceResponses = {
3615
4787
  /**
@@ -3648,6 +4820,10 @@ type ResolveMemoErrors = {
3648
4820
  * Validation Error
3649
4821
  */
3650
4822
  422: HttpValidationError;
4823
+ /**
4824
+ * Rate limit exceeded
4825
+ */
4826
+ 429: unknown;
3651
4827
  };
3652
4828
  type ResolveMemoResponses = {
3653
4829
  /**
@@ -3683,6 +4859,10 @@ type AcknowledgeMemoErrors = {
3683
4859
  * Validation Error
3684
4860
  */
3685
4861
  422: HttpValidationError;
4862
+ /**
4863
+ * Rate limit exceeded
4864
+ */
4865
+ 429: unknown;
3686
4866
  };
3687
4867
  type AcknowledgeMemoResponses = {
3688
4868
  /**
@@ -3718,6 +4898,10 @@ type IgnoreMemoErrors = {
3718
4898
  * Validation Error
3719
4899
  */
3720
4900
  422: HttpValidationError;
4901
+ /**
4902
+ * Rate limit exceeded
4903
+ */
4904
+ 429: unknown;
3721
4905
  };
3722
4906
  type IgnoreMemoResponses = {
3723
4907
  /**
@@ -3746,6 +4930,10 @@ type DownloadRepositoryErrors = {
3746
4930
  * Validation Error
3747
4931
  */
3748
4932
  422: HttpValidationError;
4933
+ /**
4934
+ * Rate limit exceeded
4935
+ */
4936
+ 429: unknown;
3749
4937
  };
3750
4938
  type DownloadRepositoryResponses = {
3751
4939
  /**
@@ -3779,6 +4967,10 @@ type GetRepoDownloadStatusErrors = {
3779
4967
  * Validation Error
3780
4968
  */
3781
4969
  422: HttpValidationError;
4970
+ /**
4971
+ * Rate limit exceeded
4972
+ */
4973
+ 429: unknown;
3782
4974
  };
3783
4975
  type GetRepoDownloadStatusResponses = {
3784
4976
  /**
@@ -3803,6 +4995,10 @@ type ListDownloadedReposErrors = {
3803
4995
  * Validation Error
3804
4996
  */
3805
4997
  422: HttpValidationError;
4998
+ /**
4999
+ * Rate limit exceeded
5000
+ */
5001
+ 429: unknown;
3806
5002
  };
3807
5003
  type ListDownloadedReposResponses = {
3808
5004
  /**
@@ -3836,6 +5032,10 @@ type DeleteRepoErrors = {
3836
5032
  * Validation Error
3837
5033
  */
3838
5034
  422: HttpValidationError;
5035
+ /**
5036
+ * Rate limit exceeded
5037
+ */
5038
+ 429: unknown;
3839
5039
  };
3840
5040
  type DeleteRepoResponses = {
3841
5041
  /**
@@ -3856,10 +5056,18 @@ type GithubCheckAccessData = {
3856
5056
  url: '/ocxp/github/check-access';
3857
5057
  };
3858
5058
  type GithubCheckAccessErrors = {
5059
+ /**
5060
+ * Validation error
5061
+ */
5062
+ 400: unknown;
3859
5063
  /**
3860
5064
  * Validation Error
3861
5065
  */
3862
5066
  422: HttpValidationError;
5067
+ /**
5068
+ * Rate limit exceeded
5069
+ */
5070
+ 429: unknown;
3863
5071
  };
3864
5072
  type GithubCheckAccessResponses = {
3865
5073
  /**
@@ -3880,10 +5088,18 @@ type GithubListBranchesData = {
3880
5088
  url: '/ocxp/github/branches';
3881
5089
  };
3882
5090
  type GithubListBranchesErrors = {
5091
+ /**
5092
+ * Validation error
5093
+ */
5094
+ 400: unknown;
3883
5095
  /**
3884
5096
  * Validation Error
3885
5097
  */
3886
5098
  422: HttpValidationError;
5099
+ /**
5100
+ * Rate limit exceeded
5101
+ */
5102
+ 429: unknown;
3887
5103
  };
3888
5104
  type GithubListBranchesResponses = {
3889
5105
  /**
@@ -3904,10 +5120,18 @@ type GithubGetContentsData = {
3904
5120
  url: '/ocxp/github/contents';
3905
5121
  };
3906
5122
  type GithubGetContentsErrors = {
5123
+ /**
5124
+ * Validation error
5125
+ */
5126
+ 400: unknown;
3907
5127
  /**
3908
5128
  * Validation Error
3909
5129
  */
3910
5130
  422: HttpValidationError;
5131
+ /**
5132
+ * Rate limit exceeded
5133
+ */
5134
+ 429: unknown;
3911
5135
  };
3912
5136
  type GithubGetContentsResponses = {
3913
5137
  /**
@@ -3939,6 +5163,10 @@ type ListDatabasesErrors = {
3939
5163
  * Validation Error
3940
5164
  */
3941
5165
  422: HttpValidationError;
5166
+ /**
5167
+ * Rate limit exceeded
5168
+ */
5169
+ 429: unknown;
3942
5170
  };
3943
5171
  type ListDatabasesResponses = {
3944
5172
  /**
@@ -3963,6 +5191,10 @@ type CreateDatabaseErrors = {
3963
5191
  * Validation Error
3964
5192
  */
3965
5193
  422: HttpValidationError;
5194
+ /**
5195
+ * Rate limit exceeded
5196
+ */
5197
+ 429: unknown;
3966
5198
  };
3967
5199
  type CreateDatabaseResponses = {
3968
5200
  /**
@@ -3996,6 +5228,10 @@ type DeleteDatabaseErrors = {
3996
5228
  * Validation Error
3997
5229
  */
3998
5230
  422: HttpValidationError;
5231
+ /**
5232
+ * Rate limit exceeded
5233
+ */
5234
+ 429: unknown;
3999
5235
  };
4000
5236
  type DeleteDatabaseResponses = {
4001
5237
  /**
@@ -4029,6 +5265,10 @@ type GetDatabaseErrors = {
4029
5265
  * Validation Error
4030
5266
  */
4031
5267
  422: HttpValidationError;
5268
+ /**
5269
+ * Rate limit exceeded
5270
+ */
5271
+ 429: unknown;
4032
5272
  };
4033
5273
  type GetDatabaseResponses = {
4034
5274
  /**
@@ -4062,6 +5302,10 @@ type UpdateDatabaseErrors = {
4062
5302
  * Validation Error
4063
5303
  */
4064
5304
  422: HttpValidationError;
5305
+ /**
5306
+ * Rate limit exceeded
5307
+ */
5308
+ 429: unknown;
4065
5309
  };
4066
5310
  type UpdateDatabaseResponses = {
4067
5311
  /**
@@ -4095,6 +5339,10 @@ type TestDatabaseConnectionErrors = {
4095
5339
  * Validation Error
4096
5340
  */
4097
5341
  422: HttpValidationError;
5342
+ /**
5343
+ * Rate limit exceeded
5344
+ */
5345
+ 429: unknown;
4098
5346
  };
4099
5347
  type TestDatabaseConnectionResponses = {
4100
5348
  /**
@@ -4136,6 +5384,10 @@ type GetSchemaErrors = {
4136
5384
  * Validation Error
4137
5385
  */
4138
5386
  422: HttpValidationError;
5387
+ /**
5388
+ * Rate limit exceeded
5389
+ */
5390
+ 429: unknown;
4139
5391
  };
4140
5392
  type GetSchemaResponses = {
4141
5393
  /**
@@ -4186,6 +5438,10 @@ type GetSampleErrors = {
4186
5438
  * Validation Error
4187
5439
  */
4188
5440
  422: HttpValidationError;
5441
+ /**
5442
+ * Rate limit exceeded
5443
+ */
5444
+ 429: unknown;
4189
5445
  };
4190
5446
  type GetSampleResponses = {
4191
5447
  /**
@@ -4227,6 +5483,10 @@ type ListTablesErrors = {
4227
5483
  * Validation Error
4228
5484
  */
4229
5485
  422: HttpValidationError;
5486
+ /**
5487
+ * Rate limit exceeded
5488
+ */
5489
+ 429: unknown;
4230
5490
  };
4231
5491
  type ListTablesResponses = {
4232
5492
  /**
@@ -4251,6 +5511,10 @@ type ListContextDatabasesErrors = {
4251
5511
  * Validation Error
4252
5512
  */
4253
5513
  422: HttpValidationError;
5514
+ /**
5515
+ * Rate limit exceeded
5516
+ */
5517
+ 429: unknown;
4254
5518
  };
4255
5519
  type ListContextDatabasesResponses = {
4256
5520
  /**
@@ -4282,6 +5546,10 @@ type GetContentTypesErrors = {
4282
5546
  * Validation Error
4283
5547
  */
4284
5548
  422: HttpValidationError;
5549
+ /**
5550
+ * Rate limit exceeded
5551
+ */
5552
+ 429: unknown;
4285
5553
  };
4286
5554
  type GetContentTypesResponses = {
4287
5555
  /**
@@ -4323,13 +5591,17 @@ type ListContentData = {
4323
5591
  };
4324
5592
  type ListContentErrors = {
4325
5593
  /**
4326
- * Invalid content type
5594
+ * Validation error
4327
5595
  */
4328
5596
  400: unknown;
4329
5597
  /**
4330
5598
  * Validation Error
4331
5599
  */
4332
5600
  422: HttpValidationError;
5601
+ /**
5602
+ * Rate limit exceeded
5603
+ */
5604
+ 429: unknown;
4333
5605
  };
4334
5606
  type ListContentResponses = {
4335
5607
  /**
@@ -4365,6 +5637,10 @@ type QueryContentErrors = {
4365
5637
  * Validation Error
4366
5638
  */
4367
5639
  422: HttpValidationError;
5640
+ /**
5641
+ * Rate limit exceeded
5642
+ */
5643
+ 429: unknown;
4368
5644
  };
4369
5645
  type QueryContentResponses = {
4370
5646
  /**
@@ -4405,10 +5681,18 @@ type SearchContentData = {
4405
5681
  url: '/ocxp/context/{content_type}/search';
4406
5682
  };
4407
5683
  type SearchContentErrors = {
5684
+ /**
5685
+ * Validation error
5686
+ */
5687
+ 400: unknown;
4408
5688
  /**
4409
5689
  * Validation Error
4410
5690
  */
4411
5691
  422: HttpValidationError;
5692
+ /**
5693
+ * Rate limit exceeded
5694
+ */
5695
+ 429: unknown;
4412
5696
  };
4413
5697
  type SearchContentResponses = {
4414
5698
  /**
@@ -4455,10 +5739,18 @@ type GetContentTreeData = {
4455
5739
  url: '/ocxp/context/{content_type}/tree';
4456
5740
  };
4457
5741
  type GetContentTreeErrors = {
5742
+ /**
5743
+ * Validation error
5744
+ */
5745
+ 400: unknown;
4458
5746
  /**
4459
5747
  * Validation Error
4460
5748
  */
4461
5749
  422: HttpValidationError;
5750
+ /**
5751
+ * Rate limit exceeded
5752
+ */
5753
+ 429: unknown;
4462
5754
  };
4463
5755
  type GetContentTreeResponses = {
4464
5756
  /**
@@ -4493,10 +5785,18 @@ type GetContentStatsData = {
4493
5785
  url: '/ocxp/context/{content_type}/stats';
4494
5786
  };
4495
5787
  type GetContentStatsErrors = {
5788
+ /**
5789
+ * Validation error
5790
+ */
5791
+ 400: unknown;
4496
5792
  /**
4497
5793
  * Validation Error
4498
5794
  */
4499
5795
  422: HttpValidationError;
5796
+ /**
5797
+ * Rate limit exceeded
5798
+ */
5799
+ 429: unknown;
4500
5800
  };
4501
5801
  type GetContentStatsResponses = {
4502
5802
  /**
@@ -4543,12 +5843,18 @@ type DeleteContentData = {
4543
5843
  * Also delete .metadata.json sidecars
4544
5844
  */
4545
5845
  manage_metadata?: boolean;
5846
+ /**
5847
+ * Auto Index
5848
+ *
5849
+ * Auto-remove from KB (None = use content_type default)
5850
+ */
5851
+ auto_index?: boolean | null;
4546
5852
  };
4547
5853
  url: '/ocxp/context/{content_type}/{content_id}';
4548
5854
  };
4549
5855
  type DeleteContentErrors = {
4550
5856
  /**
4551
- * Recursive delete requires confirmation
5857
+ * Validation error
4552
5858
  */
4553
5859
  400: unknown;
4554
5860
  /**
@@ -4559,6 +5865,10 @@ type DeleteContentErrors = {
4559
5865
  * Validation Error
4560
5866
  */
4561
5867
  422: HttpValidationError;
5868
+ /**
5869
+ * Rate limit exceeded
5870
+ */
5871
+ 429: unknown;
4562
5872
  };
4563
5873
  type DeleteContentResponses = {
4564
5874
  /**
@@ -4597,6 +5907,10 @@ type ReadContentData = {
4597
5907
  url: '/ocxp/context/{content_type}/{content_id}';
4598
5908
  };
4599
5909
  type ReadContentErrors = {
5910
+ /**
5911
+ * Validation error
5912
+ */
5913
+ 400: unknown;
4600
5914
  /**
4601
5915
  * Content not found
4602
5916
  */
@@ -4605,6 +5919,10 @@ type ReadContentErrors = {
4605
5919
  * Validation Error
4606
5920
  */
4607
5921
  422: HttpValidationError;
5922
+ /**
5923
+ * Rate limit exceeded
5924
+ */
5925
+ 429: unknown;
4608
5926
  };
4609
5927
  type ReadContentResponses = {
4610
5928
  /**
@@ -4636,6 +5954,10 @@ type WriteContentData = {
4636
5954
  url: '/ocxp/context/{content_type}/{content_id}';
4637
5955
  };
4638
5956
  type WriteContentErrors = {
5957
+ /**
5958
+ * Validation error
5959
+ */
5960
+ 400: unknown;
4639
5961
  /**
4640
5962
  * Content already exists or ETag mismatch
4641
5963
  */
@@ -4644,6 +5966,10 @@ type WriteContentErrors = {
4644
5966
  * Validation Error
4645
5967
  */
4646
5968
  422: HttpValidationError;
5969
+ /**
5970
+ * Rate limit exceeded
5971
+ */
5972
+ 429: unknown;
4647
5973
  };
4648
5974
  type WriteContentResponses = {
4649
5975
  /**
@@ -4664,6 +5990,10 @@ type MoveContentData = {
4664
5990
  url: '/ocxp/context/move';
4665
5991
  };
4666
5992
  type MoveContentErrors = {
5993
+ /**
5994
+ * Validation error
5995
+ */
5996
+ 400: unknown;
4667
5997
  /**
4668
5998
  * Source not found
4669
5999
  */
@@ -4676,6 +6006,10 @@ type MoveContentErrors = {
4676
6006
  * Validation Error
4677
6007
  */
4678
6008
  422: HttpValidationError;
6009
+ /**
6010
+ * Rate limit exceeded
6011
+ */
6012
+ 429: unknown;
4679
6013
  };
4680
6014
  type MoveContentResponses = {
4681
6015
  /**
@@ -4700,6 +6034,10 @@ type LockContentErrors = {
4700
6034
  * Validation Error
4701
6035
  */
4702
6036
  422: HttpValidationError;
6037
+ /**
6038
+ * Rate limit exceeded
6039
+ */
6040
+ 429: unknown;
4703
6041
  };
4704
6042
  type LockContentResponses = {
4705
6043
  /**
@@ -4724,6 +6062,10 @@ type UnlockContentErrors = {
4724
6062
  * Validation Error
4725
6063
  */
4726
6064
  422: HttpValidationError;
6065
+ /**
6066
+ * Rate limit exceeded
6067
+ */
6068
+ 429: unknown;
4727
6069
  };
4728
6070
  type UnlockContentResponses = {
4729
6071
  /**
@@ -4748,6 +6090,10 @@ type ToolCreateMissionErrors = {
4748
6090
  * Validation Error
4749
6091
  */
4750
6092
  422: HttpValidationError;
6093
+ /**
6094
+ * Rate limit exceeded
6095
+ */
6096
+ 429: unknown;
4751
6097
  };
4752
6098
  type ToolCreateMissionResponses = {
4753
6099
  /**
@@ -4781,6 +6127,10 @@ type ToolUpdateMissionErrors = {
4781
6127
  * Validation Error
4782
6128
  */
4783
6129
  422: HttpValidationError;
6130
+ /**
6131
+ * Rate limit exceeded
6132
+ */
6133
+ 429: unknown;
4784
6134
  };
4785
6135
  type ToolUpdateMissionResponses = {
4786
6136
  /**
@@ -4814,6 +6164,10 @@ type GetMissionContextErrors = {
4814
6164
  * Validation Error
4815
6165
  */
4816
6166
  422: HttpValidationError;
6167
+ /**
6168
+ * Rate limit exceeded
6169
+ */
6170
+ 429: unknown;
4817
6171
  };
4818
6172
  type GetMissionContextResponses = {
4819
6173
  /**
@@ -4828,14 +6182,22 @@ type LoginForAccessTokenData = {
4828
6182
  url: '/auth/token';
4829
6183
  };
4830
6184
  type LoginForAccessTokenErrors = {
6185
+ /**
6186
+ * Invalid credentials or user not found
6187
+ */
6188
+ 401: unknown;
4831
6189
  /**
4832
6190
  * Validation Error
4833
6191
  */
4834
6192
  422: HttpValidationError;
6193
+ /**
6194
+ * Rate limit exceeded
6195
+ */
6196
+ 429: unknown;
4835
6197
  };
4836
6198
  type LoginForAccessTokenResponses = {
4837
6199
  /**
4838
- * Successful Response
6200
+ * Successfully authenticated
4839
6201
  */
4840
6202
  200: OAuth2TokenResponse;
4841
6203
  };
@@ -4846,14 +6208,22 @@ type LoginData = {
4846
6208
  url: '/auth/login';
4847
6209
  };
4848
6210
  type LoginErrors = {
6211
+ /**
6212
+ * Invalid credentials or user not found
6213
+ */
6214
+ 401: unknown;
4849
6215
  /**
4850
6216
  * Validation Error
4851
6217
  */
4852
6218
  422: HttpValidationError;
6219
+ /**
6220
+ * Rate limit exceeded
6221
+ */
6222
+ 429: unknown;
4853
6223
  };
4854
6224
  type LoginResponses = {
4855
6225
  /**
4856
- * Successful Response
6226
+ * Successfully authenticated
4857
6227
  */
4858
6228
  200: TokenResponse;
4859
6229
  };
@@ -4864,14 +6234,22 @@ type RefreshTokensData = {
4864
6234
  url: '/auth/refresh';
4865
6235
  };
4866
6236
  type RefreshTokensErrors = {
6237
+ /**
6238
+ * Invalid or expired refresh token
6239
+ */
6240
+ 401: unknown;
4867
6241
  /**
4868
6242
  * Validation Error
4869
6243
  */
4870
6244
  422: HttpValidationError;
6245
+ /**
6246
+ * Rate limit exceeded
6247
+ */
6248
+ 429: unknown;
4871
6249
  };
4872
6250
  type RefreshTokensResponses = {
4873
6251
  /**
4874
- * Successful Response
6252
+ * Tokens refreshed successfully
4875
6253
  */
4876
6254
  200: RefreshResponse;
4877
6255
  };
@@ -4893,6 +6271,12 @@ type GetCurrentUserData = {
4893
6271
  query?: never;
4894
6272
  url: '/auth/me';
4895
6273
  };
6274
+ type GetCurrentUserErrors = {
6275
+ /**
6276
+ * Rate limit exceeded
6277
+ */
6278
+ 429: unknown;
6279
+ };
4896
6280
  type GetCurrentUserResponses = {
4897
6281
  /**
4898
6282
  * Successful Response
@@ -4905,6 +6289,12 @@ type ListWorkspacesData = {
4905
6289
  query?: never;
4906
6290
  url: '/auth/workspaces';
4907
6291
  };
6292
+ type ListWorkspacesErrors = {
6293
+ /**
6294
+ * Rate limit exceeded
6295
+ */
6296
+ 429: unknown;
6297
+ };
4908
6298
  type ListWorkspacesResponses = {
4909
6299
  /**
4910
6300
  * Successful Response
@@ -4934,15 +6324,351 @@ declare const bulkReadContent: <ThrowOnError extends boolean = false>(options: O
4934
6324
  /**
4935
6325
  * Bulk Write Content
4936
6326
  *
4937
- * Bulk write content.
6327
+ * Bulk write content with metadata sidecar and KB auto-indexing support.
4938
6328
  */
4939
6329
  declare const bulkWriteContent: <ThrowOnError extends boolean = false>(options: Options<BulkWriteContentData, ThrowOnError>) => RequestResult<BulkWriteContentResponses, BulkWriteContentErrors, ThrowOnError, "fields">;
4940
6330
  /**
4941
6331
  * Bulk Delete Content
4942
6332
  *
4943
- * Bulk delete content using batch operations.
6333
+ * Bulk delete content with KB auto-removal support.
4944
6334
  */
4945
6335
  declare const bulkDeleteContent: <ThrowOnError extends boolean = false>(options: Options<BulkDeleteContentData, ThrowOnError>) => RequestResult<BulkDeleteContentResponses, BulkDeleteContentErrors, ThrowOnError, "fields">;
6336
+ /**
6337
+ * List Prototype Chats
6338
+ *
6339
+ * List all accessible prototype chats.
6340
+ *
6341
+ * Returns a list of chats that are accessible with the configured API key.
6342
+ * Use this to discover which chats can be linked to missions.
6343
+ *
6344
+ * **Query Parameters:**
6345
+ * - `provider`: Provider name (v0, lovable, bolt) - default: v0
6346
+ *
6347
+ * **Example Response:**
6348
+ * ```json
6349
+ * {
6350
+ * "provider": "v0",
6351
+ * "chats": [
6352
+ * {
6353
+ * "id": "qFPCm5zzimu",
6354
+ * "name": "Mission Dashboard",
6355
+ * "web_url": "https://v0.app/chat/qFPCm5zzimu",
6356
+ * "privacy": "team",
6357
+ * "latest_preview_url": "https://demo-xxx.vusercontent.net"
6358
+ * }
6359
+ * ],
6360
+ * "total": 5
6361
+ * }
6362
+ * ```
6363
+ */
6364
+ declare const listPrototypeChats: <ThrowOnError extends boolean = false>(options?: Options<ListPrototypeChatsData, ThrowOnError>) => RequestResult<ListPrototypeChatsResponses, ListPrototypeChatsErrors, ThrowOnError, "fields">;
6365
+ /**
6366
+ * Preview Prototype Chat
6367
+ *
6368
+ * Preview a prototype chat before linking.
6369
+ *
6370
+ * Fetches chat metadata and version list without storing anything.
6371
+ * Use this to show available versions in Obsidian UI before the user
6372
+ * selects which version to link to a mission.
6373
+ *
6374
+ * **Example Request:**
6375
+ * ```json
6376
+ * {
6377
+ * "provider": "v0",
6378
+ * "chat_url": "https://v0.dev/chat/abc123"
6379
+ * }
6380
+ * ```
6381
+ *
6382
+ * **Example Response:**
6383
+ * ```json
6384
+ * {
6385
+ * "provider": "v0",
6386
+ * "chat_id": "abc123",
6387
+ * "web_url": "https://v0.dev/chat/abc123",
6388
+ * "messages_count": 15,
6389
+ * "versions": [
6390
+ * {"id": "v1", "preview_url": "https://abc123.vercel.app", "files": ["page.tsx", "layout.tsx"]},
6391
+ * {"id": "v2", "preview_url": "https://abc123-v2.vercel.app", "files": ["page.tsx", "layout.tsx", "sidebar.tsx"]}
6392
+ * ],
6393
+ * "latest_preview_url": "https://abc123-v2.vercel.app",
6394
+ * "can_download_files": true
6395
+ * }
6396
+ * ```
6397
+ */
6398
+ declare const previewPrototypeChat: <ThrowOnError extends boolean = false>(options: Options<PreviewPrototypeChatData, ThrowOnError>) => RequestResult<PreviewPrototypeChatResponses, PreviewPrototypeChatErrors, ThrowOnError, "fields">;
6399
+ /**
6400
+ * Link Prototype Chat
6401
+ *
6402
+ * Link a prototype chat to a mission.
6403
+ *
6404
+ * Fetches the full conversation history and optionally downloads version files
6405
+ * from the prototype provider (v0, Lovable, Bolt). Stores everything in OCXP
6406
+ * and optionally screenshots the preview.
6407
+ *
6408
+ * **Workflow for Obsidian:**
6409
+ * 1. User enters chat URL in mission creation form
6410
+ * 2. Obsidian calls `/preview` to get available versions
6411
+ * 3. User selects a version
6412
+ * 4. Obsidian calls `/link` with version_id to download files
6413
+ *
6414
+ * **What gets stored:**
6415
+ * - `conversation.md` - Full chat history as searchable markdown (KB indexed)
6416
+ * - `metadata.json` - Structured metadata for programmatic access
6417
+ * - `versions/{version_id}*.tsx` - Actual code files from selected version
6418
+ * - `screenshots/preview.png` - Screenshot of the preview URL
6419
+ *
6420
+ * **Example Request:**
6421
+ * ```json
6422
+ * {
6423
+ * "provider": "v0",
6424
+ * "chat_url": "https://v0.dev/chat/abc123",
6425
+ * "version_id": "v2",
6426
+ * "mission_id": "mission-xyz",
6427
+ * "download_files": true,
6428
+ * "screenshot_preview": true
6429
+ * }
6430
+ * ```
6431
+ *
6432
+ * **Example Response:**
6433
+ * ```json
6434
+ * {
6435
+ * "provider": "v0",
6436
+ * "chat_id": "abc123",
6437
+ * "web_url": "https://v0.dev/chat/abc123",
6438
+ * "mission_id": "mission-xyz",
6439
+ * "messages_count": 15,
6440
+ * "versions_count": 2,
6441
+ * "latest_preview_url": "https://abc123-v2.vercel.app",
6442
+ * "screenshot_link": "ocxp://prod/visual/prototype-chats/mission-xyz/v0/abc123/screenshots/preview.png",
6443
+ * "content_links": [
6444
+ * "ocxp://prod/visual/prototype-chats/mission-xyz/v0/abc123/conversation.md",
6445
+ * "ocxp://prod/visual/prototype-chats/mission-xyz/v0/abc123/versions/v2/page.tsx"
6446
+ * ],
6447
+ * "indexed": true
6448
+ * }
6449
+ * ```
6450
+ */
6451
+ declare const linkPrototypeChat: <ThrowOnError extends boolean = false>(options: Options<LinkPrototypeChatData, ThrowOnError>) => RequestResult<LinkPrototypeChatResponses, LinkPrototypeChatErrors, ThrowOnError, "fields">;
6452
+ /**
6453
+ * Sync Prototype Chat
6454
+ *
6455
+ * Sync/refresh a linked prototype chat with latest changes.
6456
+ *
6457
+ * Re-fetches the conversation and version data from the provider
6458
+ * and updates the stored content in OCXP.
6459
+ *
6460
+ * **Example Request:**
6461
+ * ```json
6462
+ * {
6463
+ * "provider": "v0",
6464
+ * "chat_id": "abc123",
6465
+ * "mission_id": "mission-xyz"
6466
+ * }
6467
+ * ```
6468
+ */
6469
+ declare const syncPrototypeChat: <ThrowOnError extends boolean = false>(options: Options<SyncPrototypeChatData, ThrowOnError>) => RequestResult<SyncPrototypeChatResponses, SyncPrototypeChatErrors, ThrowOnError, "fields">;
6470
+ /**
6471
+ * Get Stored Versions
6472
+ *
6473
+ * Get stored version IDs from DynamoDB (fast, no S3/API calls).
6474
+ *
6475
+ * This is a lightweight endpoint optimized for sub-100ms response times.
6476
+ * Use this to quickly check which versions are already downloaded without
6477
+ * triggering a full sync operation.
6478
+ *
6479
+ * **Path Parameters:**
6480
+ * - `provider`: Provider name (v0, lovable, bolt)
6481
+ * - `chat_id`: Chat ID
6482
+ *
6483
+ * **Query Parameters:**
6484
+ * - `include_details`: If true, returns full version metadata (files, pages, screenshots)
6485
+ *
6486
+ * **Use Cases:**
6487
+ * - Determine "Download" vs "Reload" button state for each version
6488
+ * - Check if "Sync Latest" button should be disabled (latest already stored)
6489
+ * - Get full version details for Files/Pages tabs (when include_details=true)
6490
+ *
6491
+ * **Example Response (include_details=false):**
6492
+ * ```json
6493
+ * {
6494
+ * "provider": "v0",
6495
+ * "chat_id": "YivecgytPyg",
6496
+ * "stored_versions": ["aVVgJPrZiiE", "8xP0kUQqTxe", "cTeBCcjCGbM"],
6497
+ * "latest_version_id": "cTeBCcjCGbM",
6498
+ * "version_details": []
6499
+ * }
6500
+ * ```
6501
+ *
6502
+ * **Example Response (include_details=true):**
6503
+ * ```json
6504
+ * {
6505
+ * "provider": "v0",
6506
+ * "chat_id": "YivecgytPyg",
6507
+ * "stored_versions": ["aVVgJPrZiiE"],
6508
+ * "latest_version_id": "cTeBCcjCGbM",
6509
+ * "version_details": [
6510
+ * {
6511
+ * "id": "aVVgJPrZiiE",
6512
+ * "preview_url": "https://demo.vusercontent.net/...",
6513
+ * "screenshot_link": "ocxp://...",
6514
+ * "files": ["app/page.tsx", "app/layout.tsx"],
6515
+ * "pages": [{"route": "/", "file": "app/page.tsx", "screenshot_link": "ocxp://..."}],
6516
+ * "created_at": "2024-01-15T10:30:00Z",
6517
+ * "synced_at": "2024-01-15T10:35:00Z"
6518
+ * }
6519
+ * ]
6520
+ * }
6521
+ * ```
6522
+ */
6523
+ declare const getStoredVersions: <ThrowOnError extends boolean = false>(options: Options<GetStoredVersionsData, ThrowOnError>) => RequestResult<GetStoredVersionsResponses, GetStoredVersionsErrors, ThrowOnError, "fields">;
6524
+ /**
6525
+ * Get Prototype Chat
6526
+ *
6527
+ * Get stored prototype chat data from OCXP.
6528
+ *
6529
+ * Returns the stored conversation, versions, and file links for a
6530
+ * previously linked prototype chat.
6531
+ *
6532
+ * **Path Parameters:**
6533
+ * - `provider`: Provider name (v0, lovable, bolt)
6534
+ * - `chat_id`: Chat ID
6535
+ *
6536
+ * **Query Parameters:**
6537
+ * - `project_id`: Project ID (use "no-project" if chat has no project)
6538
+ * - `version_id`: Version ID to retrieve
6539
+ *
6540
+ * **Example Response:**
6541
+ * ```json
6542
+ * {
6543
+ * "provider": "v0",
6544
+ * "chat_id": "abc123",
6545
+ * "web_url": "https://v0.dev/chat/abc123",
6546
+ * "mission_id": "mission-xyz",
6547
+ * "messages": [...],
6548
+ * "versions": [...],
6549
+ * "conversation_link": "ocxp://prod/prototype/FQV1NSmpVqk/abc123/aVVgJPrZiiE/docs/conversation.md",
6550
+ * "file_links": [
6551
+ * "ocxp://prod/prototype/FQV1NSmpVqk/abc123/aVVgJPrZiiE/code/page.tsx"
6552
+ * ]
6553
+ * }
6554
+ * ```
6555
+ */
6556
+ declare const getPrototypeChat: <ThrowOnError extends boolean = false>(options: Options<GetPrototypeChatData, ThrowOnError>) => RequestResult<GetPrototypeChatResponses, GetPrototypeChatErrors, ThrowOnError, "fields">;
6557
+ /**
6558
+ * Sync Prototype Chat Async
6559
+ *
6560
+ * Start an async prototype chat sync job (202 Accepted).
6561
+ *
6562
+ * Creates a job and queues it for background processing. Returns immediately
6563
+ * with a job_id that can be used to poll for status or receive WebSocket updates.
6564
+ *
6565
+ * **Benefits:**
6566
+ * - Immediate response (no timeout on long syncs)
6567
+ * - Real-time progress updates via WebSocket
6568
+ * - Resumable on failure (job tracked in DynamoDB)
6569
+ * - Better suited for large chats with many files/screenshots
6570
+ *
6571
+ * **Frontend Integration:**
6572
+ *
6573
+ * Option 1: Polling
6574
+ * ```javascript
6575
+ * const { job_id } = await fetch('/ocxp/prototype/chat/sync-async', {
6576
+ * method: 'POST',
6577
+ * body: JSON.stringify({ chat_id: 'xxx', mission_id: 'yyy' })
6578
+ * }).then(r => r.json());
6579
+ *
6580
+ * // Poll every second
6581
+ * while (status !== 'complete' && status !== 'failed') {
6582
+ * await sleep(1000);
6583
+ * const job = await fetch(`/ocxp/prototype/chat/sync-status/${job_id}`).then(r => r.json());
6584
+ * updateProgressBar(job.progress);
6585
+ * }
6586
+ * ```
6587
+ *
6588
+ * Option 2: WebSocket
6589
+ * ```javascript
6590
+ * ws.onmessage = (msg) => {
6591
+ * if (msg.type === 'prototype_sync_progress') {
6592
+ * updateProgressBar(msg.progress, msg.current_step);
6593
+ * }
6594
+ * if (msg.type === 'prototype_sync_complete') {
6595
+ * handleComplete(msg.content_links);
6596
+ * }
6597
+ * };
6598
+ * ```
6599
+ *
6600
+ * **Example Request:**
6601
+ * ```json
6602
+ * {
6603
+ * "provider": "v0",
6604
+ * "chat_id": "YivecgytPyg",
6605
+ * "mission_id": "mission-xyz",
6606
+ * "download_files": true,
6607
+ * "download_screenshots": true
6608
+ * }
6609
+ * ```
6610
+ *
6611
+ * **Example Response (202 Accepted):**
6612
+ * ```json
6613
+ * {
6614
+ * "job_id": "job-a1b2c3d4e5f6",
6615
+ * "status": "queued",
6616
+ * "message": "Job queued for processing"
6617
+ * }
6618
+ * ```
6619
+ */
6620
+ declare const syncPrototypeChatAsync: <ThrowOnError extends boolean = false>(options: Options<SyncPrototypeChatAsyncData, ThrowOnError>) => RequestResult<SyncPrototypeChatAsyncResponses, SyncPrototypeChatAsyncErrors, ThrowOnError, "fields">;
6621
+ /**
6622
+ * Get Sync Status
6623
+ *
6624
+ * Get the current status of an async sync job.
6625
+ *
6626
+ * Use this endpoint to poll for progress updates on a sync job.
6627
+ * For real-time updates, prefer WebSocket subscription instead.
6628
+ *
6629
+ * **Path Parameters:**
6630
+ * - `job_id`: Job identifier from sync-async response
6631
+ *
6632
+ * **Example Response (in progress):**
6633
+ * ```json
6634
+ * {
6635
+ * "job_id": "job-a1b2c3d4e5f6",
6636
+ * "status": "downloading",
6637
+ * "progress": 35,
6638
+ * "current_step": "Downloading files for version 2/5...",
6639
+ * "files_processed": 12,
6640
+ * "files_total": 34,
6641
+ * "screenshots_processed": 1,
6642
+ * "screenshots_total": 5,
6643
+ * "content_links": [],
6644
+ * "error": null,
6645
+ * "created_at": "2024-01-15T10:30:00Z",
6646
+ * "updated_at": "2024-01-15T10:30:15Z"
6647
+ * }
6648
+ * ```
6649
+ *
6650
+ * **Example Response (complete):**
6651
+ * ```json
6652
+ * {
6653
+ * "job_id": "job-a1b2c3d4e5f6",
6654
+ * "status": "complete",
6655
+ * "progress": 100,
6656
+ * "current_step": "Complete",
6657
+ * "files_processed": 34,
6658
+ * "files_total": 34,
6659
+ * "screenshots_processed": 5,
6660
+ * "screenshots_total": 5,
6661
+ * "content_links": [
6662
+ * "ocxp://prod/prototype/FQV1NSmpVqk/chat123/v1/docs/conversation.md",
6663
+ * "ocxp://prod/prototype/FQV1NSmpVqk/chat123/v1/code/page.tsx"
6664
+ * ],
6665
+ * "error": null,
6666
+ * "created_at": "2024-01-15T10:30:00Z",
6667
+ * "updated_at": "2024-01-15T10:31:00Z"
6668
+ * }
6669
+ * ```
6670
+ */
6671
+ declare const getSyncStatus: <ThrowOnError extends boolean = false>(options: Options<GetSyncStatusData, ThrowOnError>) => RequestResult<GetSyncStatusResponses, GetSyncStatusErrors, ThrowOnError, "fields">;
4946
6672
  /**
4947
6673
  * List all sessions
4948
6674
  *
@@ -5371,7 +7097,10 @@ declare const refreshTokens: <ThrowOnError extends boolean = false>(options: Opt
5371
7097
  /**
5372
7098
  * Get Auth Config
5373
7099
  *
5374
- * Get Cognito configuration for frontend.
7100
+ * Get public configuration for clients.
7101
+ *
7102
+ * Returns the API endpoint, Brain ARN, WebSocket endpoint, and default workspace.
7103
+ * Used by Obsidian plugin and CLI to configure themselves.
5375
7104
  */
5376
7105
  declare const getAuthConfig: <ThrowOnError extends boolean = false>(options?: Options<GetAuthConfigData, ThrowOnError>) => RequestResult<GetAuthConfigResponses, unknown, ThrowOnError, "fields">;
5377
7106
  /**
@@ -5379,13 +7108,13 @@ declare const getAuthConfig: <ThrowOnError extends boolean = false>(options?: Op
5379
7108
  *
5380
7109
  * Get current authenticated user info.
5381
7110
  */
5382
- declare const getCurrentUser: <ThrowOnError extends boolean = false>(options?: Options<GetCurrentUserData, ThrowOnError>) => RequestResult<GetCurrentUserResponses, unknown, ThrowOnError, "fields">;
7111
+ declare const getCurrentUser: <ThrowOnError extends boolean = false>(options?: Options<GetCurrentUserData, ThrowOnError>) => RequestResult<GetCurrentUserResponses, GetCurrentUserErrors, ThrowOnError, "fields">;
5383
7112
  /**
5384
7113
  * List Workspaces
5385
7114
  *
5386
7115
  * List workspaces for authenticated user.
5387
7116
  */
5388
- declare const listWorkspaces: <ThrowOnError extends boolean = false>(options?: Options<ListWorkspacesData, ThrowOnError>) => RequestResult<ListWorkspacesResponses, unknown, ThrowOnError, "fields">;
7117
+ declare const listWorkspaces: <ThrowOnError extends boolean = false>(options?: Options<ListWorkspacesData, ThrowOnError>) => RequestResult<ListWorkspacesResponses, ListWorkspacesErrors, ThrowOnError, "fields">;
5389
7118
 
5390
7119
  interface ListEntry$1 {
5391
7120
  name: string;
@@ -5504,7 +7233,7 @@ declare class OCXPClient {
5504
7233
  error: undefined;
5505
7234
  } | {
5506
7235
  data: undefined;
5507
- error: HttpValidationError;
7236
+ error: unknown;
5508
7237
  }) & {
5509
7238
  request: Request;
5510
7239
  response: Response;
@@ -5522,7 +7251,7 @@ declare class OCXPClient {
5522
7251
  error: undefined;
5523
7252
  } | {
5524
7253
  data: undefined;
5525
- error: HttpValidationError;
7254
+ error: unknown;
5526
7255
  }) & {
5527
7256
  request: Request;
5528
7257
  response: Response;
@@ -5535,7 +7264,7 @@ declare class OCXPClient {
5535
7264
  error: undefined;
5536
7265
  } | {
5537
7266
  data: undefined;
5538
- error: HttpValidationError;
7267
+ error: unknown;
5539
7268
  }) & {
5540
7269
  request: Request;
5541
7270
  response: Response;
@@ -5551,7 +7280,7 @@ declare class OCXPClient {
5551
7280
  error: undefined;
5552
7281
  } | {
5553
7282
  data: undefined;
5554
- error: HttpValidationError;
7283
+ error: unknown;
5555
7284
  }) & {
5556
7285
  request: Request;
5557
7286
  response: Response;
@@ -5564,7 +7293,7 @@ declare class OCXPClient {
5564
7293
  error: undefined;
5565
7294
  } | {
5566
7295
  data: undefined;
5567
- error: HttpValidationError;
7296
+ error: unknown;
5568
7297
  }) & {
5569
7298
  request: Request;
5570
7299
  response: Response;
@@ -5668,7 +7397,7 @@ declare class OCXPClient {
5668
7397
  error: undefined;
5669
7398
  } | {
5670
7399
  data: undefined;
5671
- error: HttpValidationError;
7400
+ error: unknown;
5672
7401
  }) & {
5673
7402
  request: Request;
5674
7403
  response: Response;
@@ -5683,7 +7412,7 @@ declare class OCXPClient {
5683
7412
  error: undefined;
5684
7413
  } | {
5685
7414
  data: undefined;
5686
- error: HttpValidationError;
7415
+ error: unknown;
5687
7416
  }) & {
5688
7417
  request: Request;
5689
7418
  response: Response;
@@ -5720,7 +7449,7 @@ declare class OCXPClient {
5720
7449
  */
5721
7450
  downloadRepository(repoUrl: string, branch?: string, options?: {
5722
7451
  mode?: string;
5723
- repo_type?: 'code' | 'docs' | 'auto';
7452
+ repo_type?: 'code' | 'docs' | 'auto' | 'prototype';
5724
7453
  path?: string;
5725
7454
  }): Promise<RepoDownloadResponse>;
5726
7455
  /**
@@ -5846,6 +7575,58 @@ declare class OCXPClient {
5846
7575
  * Archive session
5847
7576
  */
5848
7577
  archiveSession(sessionId: string): Promise<void>;
7578
+ /**
7579
+ * List all accessible prototype chats from a provider
7580
+ * @param provider - Filter by provider (v0, lovable, bolt)
7581
+ */
7582
+ listPrototypeChats(provider?: 'v0' | 'lovable' | 'bolt'): Promise<PrototypeChatListResponse>;
7583
+ /**
7584
+ * Preview a prototype chat (fetch metadata without linking)
7585
+ * @param chatUrl - Chat URL to preview
7586
+ * @param provider - Prototype provider (optional, auto-detected from URL)
7587
+ */
7588
+ previewPrototypeChat(chatUrl: string, provider?: 'v0' | 'lovable' | 'bolt'): Promise<PrototypeChatPreviewResponse>;
7589
+ /**
7590
+ * Link a prototype chat to a mission
7591
+ * @param data - Link request data
7592
+ */
7593
+ linkPrototypeChat(data: PrototypeChatLinkRequest): Promise<PrototypeChatLinkResponse>;
7594
+ /**
7595
+ * Sync/refresh a linked prototype chat
7596
+ * @param data - Sync request data
7597
+ */
7598
+ syncPrototypeChat(data: PrototypeChatSyncRequest): Promise<PrototypeChatSyncResponse>;
7599
+ /**
7600
+ * Get stored prototype chat data
7601
+ * @param provider - Provider name (v0, lovable, bolt)
7602
+ * @param chatId - Chat ID
7603
+ * @param options - Optional query parameters
7604
+ */
7605
+ getPrototypeChat(provider: string, chatId: string, options?: {
7606
+ projectId?: string;
7607
+ versionId?: string;
7608
+ }): Promise<PrototypeChatGetResponse>;
7609
+ /**
7610
+ * Start async prototype chat sync job
7611
+ * @param data - Async sync request data
7612
+ */
7613
+ syncPrototypeChatAsync(data: PrototypeChatSyncAsyncRequest): Promise<PrototypeChatSyncAsyncResponse>;
7614
+ /**
7615
+ * Get sync job status
7616
+ * @param jobId - Job ID from async sync response
7617
+ */
7618
+ getPrototypeSyncStatus(jobId: string): Promise<PrototypeSyncJobStatusResponse>;
7619
+ /**
7620
+ * Get stored versions for a prototype chat (fast DynamoDB query)
7621
+ * Use this for UI button states instead of full sync
7622
+ * @param provider - Provider name (v0, lovable, bolt)
7623
+ * @param chatId - Chat ID
7624
+ * @param options - Optional settings
7625
+ * @param options.includeDetails - If true, returns full version metadata (files, pages, screenshots)
7626
+ */
7627
+ getStoredVersions(provider: string, chatId: string, options?: {
7628
+ includeDetails?: boolean;
7629
+ }): Promise<PrototypeStoredVersionsResponse>;
5849
7630
  /**
5850
7631
  * Get auth configuration (public endpoint)
5851
7632
  */
@@ -5899,6 +7680,7 @@ declare class OCXPClient {
5899
7680
  private _project?;
5900
7681
  private _session?;
5901
7682
  private _kb?;
7683
+ private _prototype?;
5902
7684
  /**
5903
7685
  * Mission namespace for convenient mission operations
5904
7686
  * @example ocxp.mission.list({ status: 'pending' })
@@ -5919,6 +7701,11 @@ declare class OCXPClient {
5919
7701
  * @example ocxp.kb.query('search term')
5920
7702
  */
5921
7703
  get kb(): KBNamespace;
7704
+ /**
7705
+ * Prototype namespace for convenient prototype chat operations
7706
+ * @example ocxp.prototype.list('v0')
7707
+ */
7708
+ get prototype(): PrototypeNamespace;
5922
7709
  }
5923
7710
  /**
5924
7711
  * Mission namespace for convenient mission operations
@@ -6141,6 +7928,60 @@ declare class KBNamespace {
6141
7928
  */
6142
7929
  rag(query: string, sessionId?: string): Promise<KbRagResponse>;
6143
7930
  }
7931
+ /**
7932
+ * Prototype namespace for convenient prototype chat operations
7933
+ */
7934
+ declare class PrototypeNamespace {
7935
+ private client;
7936
+ constructor(client: OCXPClient);
7937
+ /**
7938
+ * List all accessible prototype chats
7939
+ * @example ocxp.prototype.list('v0')
7940
+ */
7941
+ list(provider?: 'v0' | 'lovable' | 'bolt'): Promise<PrototypeChatListResponse>;
7942
+ /**
7943
+ * Preview a prototype chat (fetch metadata without linking)
7944
+ * @example ocxp.prototype.preview('https://v0.dev/chat/abc123')
7945
+ */
7946
+ preview(chatUrl: string, provider?: 'v0' | 'lovable' | 'bolt'): Promise<PrototypeChatPreviewResponse>;
7947
+ /**
7948
+ * Link a prototype chat to a mission
7949
+ * @example ocxp.prototype.link({ mission_id: 'xyz', chat_url: 'https://v0.dev/chat/abc123' })
7950
+ */
7951
+ link(data: PrototypeChatLinkRequest): Promise<PrototypeChatLinkResponse>;
7952
+ /**
7953
+ * Sync/refresh a linked prototype chat
7954
+ * @example ocxp.prototype.sync({ chat_id: 'abc123', mission_id: 'xyz' })
7955
+ */
7956
+ sync(data: PrototypeChatSyncRequest): Promise<PrototypeChatSyncResponse>;
7957
+ /**
7958
+ * Get stored prototype chat data
7959
+ * @example ocxp.prototype.get('v0', 'abc123')
7960
+ */
7961
+ get(provider: string, chatId: string, options?: {
7962
+ projectId?: string;
7963
+ versionId?: string;
7964
+ }): Promise<PrototypeChatGetResponse>;
7965
+ /**
7966
+ * Start async prototype chat sync job
7967
+ * @example ocxp.prototype.syncAsync({ chat_id: 'abc123', mission_id: 'xyz', download_files: true })
7968
+ */
7969
+ syncAsync(data: PrototypeChatSyncAsyncRequest): Promise<PrototypeChatSyncAsyncResponse>;
7970
+ /**
7971
+ * Get sync job status
7972
+ * @example ocxp.prototype.getSyncStatus('job-id')
7973
+ */
7974
+ getSyncStatus(jobId: string): Promise<PrototypeSyncJobStatusResponse>;
7975
+ /**
7976
+ * Get stored versions for a prototype chat (fast DynamoDB query)
7977
+ * Use this for UI button states instead of full sync
7978
+ * @param options.includeDetails - If true, returns full version metadata (files, pages, screenshots)
7979
+ * @example ocxp.prototype.getStoredVersions('v0', 'abc123', { includeDetails: true })
7980
+ */
7981
+ getStoredVersions(provider: string, chatId: string, options?: {
7982
+ includeDetails?: boolean;
7983
+ }): Promise<PrototypeStoredVersionsResponse>;
7984
+ }
6144
7985
  /**
6145
7986
  * Create a new OCXP client instance
6146
7987
  */
@@ -6469,7 +8310,7 @@ declare function createPathService(options: OCXPPathServiceOptions): OCXPPathSer
6469
8310
  * WebSocket service for OCXP real-time communication
6470
8311
  * Provides push notifications for job progress, sync events, etc.
6471
8312
  */
6472
- type WebSocketMessageType = 'job_progress' | 'repo_status' | 'notification' | 'sync_event';
8313
+ type WebSocketMessageType = 'job_progress' | 'repo_status' | 'notification' | 'sync_event' | 'prototype_sync_progress' | 'prototype_sync_complete';
6473
8314
  interface WebSocketMessage {
6474
8315
  type: WebSocketMessageType;
6475
8316
  [key: string]: unknown;
@@ -6507,6 +8348,23 @@ interface SyncEventMessage extends WebSocketMessage {
6507
8348
  path?: string;
6508
8349
  content_type?: string;
6509
8350
  }
8351
+ interface PrototypeSyncProgressMessage extends WebSocketMessage {
8352
+ type: 'prototype_sync_progress';
8353
+ job_id: string;
8354
+ status: 'queued' | 'fetching' | 'downloading' | 'screenshotting' | 'uploading';
8355
+ progress: number;
8356
+ current_step: string;
8357
+ files_processed: number;
8358
+ files_total: number;
8359
+ screenshots_processed: number;
8360
+ screenshots_total: number;
8361
+ }
8362
+ interface PrototypeSyncCompleteMessage extends WebSocketMessage {
8363
+ type: 'prototype_sync_complete';
8364
+ job_id: string;
8365
+ content_links: string[];
8366
+ stored_versions: string[];
8367
+ }
6510
8368
  interface WebSocketServiceOptions {
6511
8369
  /** WebSocket endpoint (wss://...) */
6512
8370
  endpoint: string;
@@ -6573,6 +8431,14 @@ declare class WebSocketService {
6573
8431
  * Subscribe to sync events
6574
8432
  */
6575
8433
  onSyncEvent(handler: WebSocketEventHandler<SyncEventMessage>): () => void;
8434
+ /**
8435
+ * Subscribe to prototype sync progress updates
8436
+ */
8437
+ onPrototypeSyncProgress(handler: WebSocketEventHandler<PrototypeSyncProgressMessage>): () => void;
8438
+ /**
8439
+ * Subscribe to prototype sync complete notifications
8440
+ */
8441
+ onPrototypeSyncComplete(handler: WebSocketEventHandler<PrototypeSyncCompleteMessage>): () => void;
6576
8442
  /**
6577
8443
  * Subscribe to connection state changes
6578
8444
  */
@@ -6585,6 +8451,10 @@ declare class WebSocketService {
6585
8451
  * Subscribe to repository updates
6586
8452
  */
6587
8453
  subscribeToRepo(repoId: string): void;
8454
+ /**
8455
+ * Subscribe to prototype sync job updates
8456
+ */
8457
+ subscribeToPrototypeSync(jobId: string): void;
6588
8458
  /**
6589
8459
  * Send message to server
6590
8460
  */
@@ -7930,8 +9800,8 @@ type ContextReposResponse = z.infer<typeof ContextReposResponseSchema>;
7930
9800
  declare const RepoStatusEnum: z.ZodEnum<{
7931
9801
  failed: "failed";
7932
9802
  queued: "queued";
7933
- processing: "processing";
7934
9803
  uploading: "uploading";
9804
+ processing: "processing";
7935
9805
  vectorizing: "vectorizing";
7936
9806
  complete: "complete";
7937
9807
  }>;
@@ -7970,8 +9840,8 @@ declare const RepoDownloadDataSchema: z.ZodObject<{
7970
9840
  status: z.ZodEnum<{
7971
9841
  failed: "failed";
7972
9842
  queued: "queued";
7973
- processing: "processing";
7974
9843
  uploading: "uploading";
9844
+ processing: "processing";
7975
9845
  vectorizing: "vectorizing";
7976
9846
  complete: "complete";
7977
9847
  }>;
@@ -7992,8 +9862,8 @@ declare const RepoDownloadResponseSchema: z.ZodObject<{
7992
9862
  status: z.ZodEnum<{
7993
9863
  failed: "failed";
7994
9864
  queued: "queued";
7995
- processing: "processing";
7996
9865
  uploading: "uploading";
9866
+ processing: "processing";
7997
9867
  vectorizing: "vectorizing";
7998
9868
  complete: "complete";
7999
9869
  }>;
@@ -8022,8 +9892,8 @@ declare const RepoStatusDataSchema: z.ZodObject<{
8022
9892
  status: z.ZodEnum<{
8023
9893
  failed: "failed";
8024
9894
  queued: "queued";
8025
- processing: "processing";
8026
9895
  uploading: "uploading";
9896
+ processing: "processing";
8027
9897
  vectorizing: "vectorizing";
8028
9898
  complete: "complete";
8029
9899
  }>;
@@ -8045,8 +9915,8 @@ declare const RepoStatusResponseSchema: z.ZodObject<{
8045
9915
  status: z.ZodEnum<{
8046
9916
  failed: "failed";
8047
9917
  queued: "queued";
8048
- processing: "processing";
8049
9918
  uploading: "uploading";
9919
+ processing: "processing";
8050
9920
  vectorizing: "vectorizing";
8051
9921
  complete: "complete";
8052
9922
  }>;
@@ -9330,4 +11200,4 @@ declare const GithubCommitsResponseSchema: z.ZodObject<{
9330
11200
  }, z.core.$strip>;
9331
11201
  type GithubCommitsResponse = z.infer<typeof GithubCommitsResponseSchema>;
9332
11202
 
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 };
11203
+ 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 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 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 SyncPrototypeChatAsyncData, type SyncPrototypeChatAsyncResponses, type SyncPrototypeChatData, type SyncPrototypeChatResponses, 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, 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, syncPrototypeChat, syncPrototypeChatAsync, testDatabaseConnection, toolCreateMission, toolUpdateMission, unlockContent, updateDatabase, updateProject, updateSessionMetadata, writeContent };