@ocxp/client 0.2.6 → 0.2.8
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.cjs +397 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2436 -874
- package/dist/index.d.ts +2436 -874
- package/dist/index.js +383 -21
- package/dist/index.js.map +1 -1
- package/package.json +1 -7
package/dist/index.d.ts
CHANGED
|
@@ -425,23 +425,6 @@ type BodyLoginForAccessToken = {
|
|
|
425
425
|
*/
|
|
426
426
|
client_secret?: string | null;
|
|
427
427
|
};
|
|
428
|
-
/**
|
|
429
|
-
* BulkDeleteRequest
|
|
430
|
-
*/
|
|
431
|
-
type BulkDeleteRequest = {
|
|
432
|
-
/**
|
|
433
|
-
* Ids
|
|
434
|
-
*/
|
|
435
|
-
ids: Array<string>;
|
|
436
|
-
/**
|
|
437
|
-
* Manage Metadata
|
|
438
|
-
*/
|
|
439
|
-
manage_metadata?: boolean;
|
|
440
|
-
/**
|
|
441
|
-
* Auto Index
|
|
442
|
-
*/
|
|
443
|
-
auto_index?: boolean | null;
|
|
444
|
-
};
|
|
445
428
|
/**
|
|
446
429
|
* BulkDeleteResponse
|
|
447
430
|
*
|
|
@@ -504,6 +487,57 @@ type BulkReadResponse = {
|
|
|
504
487
|
*/
|
|
505
488
|
count: number;
|
|
506
489
|
};
|
|
490
|
+
/**
|
|
491
|
+
* BulkTaskUpdateRequest
|
|
492
|
+
*
|
|
493
|
+
* Request to bulk update multiple tasks.
|
|
494
|
+
*/
|
|
495
|
+
type BulkTaskUpdateRequest = {
|
|
496
|
+
/**
|
|
497
|
+
* Updates
|
|
498
|
+
*
|
|
499
|
+
* List of task updates
|
|
500
|
+
*/
|
|
501
|
+
updates: Array<TaskUpdate>;
|
|
502
|
+
};
|
|
503
|
+
/**
|
|
504
|
+
* BulkTaskUpdateResponse
|
|
505
|
+
*
|
|
506
|
+
* Response from bulk task update.
|
|
507
|
+
*/
|
|
508
|
+
type BulkTaskUpdateResponse = {
|
|
509
|
+
/**
|
|
510
|
+
* Results
|
|
511
|
+
*/
|
|
512
|
+
results: Array<BulkTaskUpdateResult>;
|
|
513
|
+
/**
|
|
514
|
+
* Updated Count
|
|
515
|
+
*/
|
|
516
|
+
updated_count: number;
|
|
517
|
+
/**
|
|
518
|
+
* Failed Count
|
|
519
|
+
*/
|
|
520
|
+
failed_count: number;
|
|
521
|
+
};
|
|
522
|
+
/**
|
|
523
|
+
* BulkTaskUpdateResult
|
|
524
|
+
*
|
|
525
|
+
* Result for a single task in bulk update.
|
|
526
|
+
*/
|
|
527
|
+
type BulkTaskUpdateResult = {
|
|
528
|
+
/**
|
|
529
|
+
* Task Id
|
|
530
|
+
*/
|
|
531
|
+
task_id: string;
|
|
532
|
+
/**
|
|
533
|
+
* Success
|
|
534
|
+
*/
|
|
535
|
+
success: boolean;
|
|
536
|
+
/**
|
|
537
|
+
* Error
|
|
538
|
+
*/
|
|
539
|
+
error?: string | null;
|
|
540
|
+
};
|
|
507
541
|
/**
|
|
508
542
|
* BulkWriteItem
|
|
509
543
|
*/
|
|
@@ -806,6 +840,54 @@ type ContentWriteResponse = {
|
|
|
806
840
|
* S3 version ID of the written object
|
|
807
841
|
*/
|
|
808
842
|
version_id?: string | null;
|
|
843
|
+
/**
|
|
844
|
+
* Indexed
|
|
845
|
+
*
|
|
846
|
+
* KB indexing status: True=indexed, False=failed, None=skipped
|
|
847
|
+
*/
|
|
848
|
+
indexed?: boolean | null;
|
|
849
|
+
/**
|
|
850
|
+
* Verified
|
|
851
|
+
*
|
|
852
|
+
* Full verification status: True=S3+KB verified, False=failed, None=skipped
|
|
853
|
+
*/
|
|
854
|
+
verified?: boolean | null;
|
|
855
|
+
/**
|
|
856
|
+
* S3 Verified
|
|
857
|
+
*
|
|
858
|
+
* S3 read verification
|
|
859
|
+
*/
|
|
860
|
+
s3_verified?: boolean | null;
|
|
861
|
+
/**
|
|
862
|
+
* Kb Verified
|
|
863
|
+
*
|
|
864
|
+
* KB discover verification
|
|
865
|
+
*/
|
|
866
|
+
kb_verified?: boolean | null;
|
|
867
|
+
/**
|
|
868
|
+
* Index Time Ms
|
|
869
|
+
*
|
|
870
|
+
* Time spent on KB indexing in milliseconds
|
|
871
|
+
*/
|
|
872
|
+
index_time_ms?: number | null;
|
|
873
|
+
/**
|
|
874
|
+
* Verify Time Ms
|
|
875
|
+
*
|
|
876
|
+
* Time spent on verification in milliseconds
|
|
877
|
+
*/
|
|
878
|
+
verify_time_ms?: number | null;
|
|
879
|
+
/**
|
|
880
|
+
* Retries
|
|
881
|
+
*
|
|
882
|
+
* Number of retry attempts (0 = first attempt succeeded)
|
|
883
|
+
*/
|
|
884
|
+
retries?: number | null;
|
|
885
|
+
/**
|
|
886
|
+
* Verification Error
|
|
887
|
+
*
|
|
888
|
+
* Error details if verification failed
|
|
889
|
+
*/
|
|
890
|
+
verification_error?: string | null;
|
|
809
891
|
};
|
|
810
892
|
/**
|
|
811
893
|
* CreateMemoRequest
|
|
@@ -841,6 +923,21 @@ type CreateMemoRequest = {
|
|
|
841
923
|
findings?: Array<SecurityFinding> | null;
|
|
842
924
|
severity?: MemoSeverity;
|
|
843
925
|
};
|
|
926
|
+
/**
|
|
927
|
+
* CredentialActionResponse
|
|
928
|
+
*
|
|
929
|
+
* Response for credential actions (save/update/delete/test).
|
|
930
|
+
*/
|
|
931
|
+
type CredentialActionResponse = {
|
|
932
|
+
/**
|
|
933
|
+
* Success
|
|
934
|
+
*/
|
|
935
|
+
success: boolean;
|
|
936
|
+
/**
|
|
937
|
+
* Message
|
|
938
|
+
*/
|
|
939
|
+
message?: string | null;
|
|
940
|
+
};
|
|
844
941
|
/**
|
|
845
942
|
* DatabaseConfigResponse
|
|
846
943
|
*
|
|
@@ -976,7 +1073,7 @@ type DatabaseCreate = {
|
|
|
976
1073
|
/**
|
|
977
1074
|
* DatabaseListResponse
|
|
978
1075
|
*
|
|
979
|
-
* Response for GET /ocxp/database.
|
|
1076
|
+
* Response for GET /ocxp/database with offset-based pagination.
|
|
980
1077
|
*/
|
|
981
1078
|
type DatabaseListResponse = {
|
|
982
1079
|
/**
|
|
@@ -985,8 +1082,34 @@ type DatabaseListResponse = {
|
|
|
985
1082
|
databases: Array<DatabaseConfigResponse>;
|
|
986
1083
|
/**
|
|
987
1084
|
* Count
|
|
1085
|
+
*
|
|
1086
|
+
* Number of items in this response
|
|
988
1087
|
*/
|
|
989
1088
|
count: number;
|
|
1089
|
+
/**
|
|
1090
|
+
* Total
|
|
1091
|
+
*
|
|
1092
|
+
* Total number of items matching query (across all pages)
|
|
1093
|
+
*/
|
|
1094
|
+
total?: number | null;
|
|
1095
|
+
/**
|
|
1096
|
+
* Offset
|
|
1097
|
+
*
|
|
1098
|
+
* Offset used for this query
|
|
1099
|
+
*/
|
|
1100
|
+
offset?: number | null;
|
|
1101
|
+
/**
|
|
1102
|
+
* Limit
|
|
1103
|
+
*
|
|
1104
|
+
* Limit used for this query
|
|
1105
|
+
*/
|
|
1106
|
+
limit?: number | null;
|
|
1107
|
+
/**
|
|
1108
|
+
* Has More
|
|
1109
|
+
*
|
|
1110
|
+
* Whether there are more items after this page
|
|
1111
|
+
*/
|
|
1112
|
+
has_more?: boolean;
|
|
990
1113
|
};
|
|
991
1114
|
/**
|
|
992
1115
|
* DatabaseSampleResponse
|
|
@@ -1498,11 +1621,11 @@ type MemoActionResponse = {
|
|
|
1498
1621
|
*
|
|
1499
1622
|
* Category of memo feedback.
|
|
1500
1623
|
*/
|
|
1501
|
-
type MemoCategory = 'agent_error' | 'agent_warning' | 'agent_hitl' | 'user_comment' | 'user_edit' | 'user_delete' | 'security_finding';
|
|
1624
|
+
type MemoCategory = 'agent_error' | 'agent_warning' | 'agent_hitl' | 'agent_comment' | 'agent_edit' | 'agent_delete' | 'user_comment' | 'user_edit' | 'user_delete' | 'security_finding' | 'workflow_task';
|
|
1502
1625
|
/**
|
|
1503
1626
|
* MemoListResponse
|
|
1504
1627
|
*
|
|
1505
|
-
* Response for
|
|
1628
|
+
* Response for GET /ocxp/memos with offset-based pagination.
|
|
1506
1629
|
*/
|
|
1507
1630
|
type MemoListResponse = {
|
|
1508
1631
|
/**
|
|
@@ -1511,8 +1634,34 @@ type MemoListResponse = {
|
|
|
1511
1634
|
memos: Array<Memo>;
|
|
1512
1635
|
/**
|
|
1513
1636
|
* Count
|
|
1637
|
+
*
|
|
1638
|
+
* Number of items in this response
|
|
1514
1639
|
*/
|
|
1515
1640
|
count: number;
|
|
1641
|
+
/**
|
|
1642
|
+
* Total
|
|
1643
|
+
*
|
|
1644
|
+
* Total number of items matching query (across all pages)
|
|
1645
|
+
*/
|
|
1646
|
+
total?: number | null;
|
|
1647
|
+
/**
|
|
1648
|
+
* Offset
|
|
1649
|
+
*
|
|
1650
|
+
* Offset used for this query
|
|
1651
|
+
*/
|
|
1652
|
+
offset?: number | null;
|
|
1653
|
+
/**
|
|
1654
|
+
* Limit
|
|
1655
|
+
*
|
|
1656
|
+
* Limit used for this query
|
|
1657
|
+
*/
|
|
1658
|
+
limit?: number | null;
|
|
1659
|
+
/**
|
|
1660
|
+
* Has More
|
|
1661
|
+
*
|
|
1662
|
+
* Whether there are more items after this page
|
|
1663
|
+
*/
|
|
1664
|
+
has_more?: boolean;
|
|
1516
1665
|
};
|
|
1517
1666
|
/**
|
|
1518
1667
|
* MemoResolveRequest
|
|
@@ -1624,7 +1773,7 @@ type MissionCreateResponse = {
|
|
|
1624
1773
|
/**
|
|
1625
1774
|
* MissionListResponse
|
|
1626
1775
|
*
|
|
1627
|
-
* Response for GET /ocxp/mission.
|
|
1776
|
+
* Response for GET /ocxp/mission with offset-based pagination.
|
|
1628
1777
|
*/
|
|
1629
1778
|
type MissionListResponse = {
|
|
1630
1779
|
/**
|
|
@@ -1633,8 +1782,34 @@ type MissionListResponse = {
|
|
|
1633
1782
|
missions: Array<MissionResponse>;
|
|
1634
1783
|
/**
|
|
1635
1784
|
* Count
|
|
1785
|
+
*
|
|
1786
|
+
* Number of items in this response
|
|
1636
1787
|
*/
|
|
1637
1788
|
count: number;
|
|
1789
|
+
/**
|
|
1790
|
+
* Total
|
|
1791
|
+
*
|
|
1792
|
+
* Total number of items matching query (across all pages)
|
|
1793
|
+
*/
|
|
1794
|
+
total?: number | null;
|
|
1795
|
+
/**
|
|
1796
|
+
* Offset
|
|
1797
|
+
*
|
|
1798
|
+
* Offset used for this query
|
|
1799
|
+
*/
|
|
1800
|
+
offset?: number | null;
|
|
1801
|
+
/**
|
|
1802
|
+
* Limit
|
|
1803
|
+
*
|
|
1804
|
+
* Limit used for this query
|
|
1805
|
+
*/
|
|
1806
|
+
limit?: number | null;
|
|
1807
|
+
/**
|
|
1808
|
+
* Has More
|
|
1809
|
+
*
|
|
1810
|
+
* Whether there are more items after this page
|
|
1811
|
+
*/
|
|
1812
|
+
has_more?: boolean;
|
|
1638
1813
|
};
|
|
1639
1814
|
/**
|
|
1640
1815
|
* MissionResponse
|
|
@@ -1674,6 +1849,12 @@ type MissionResponse = {
|
|
|
1674
1849
|
* Project UUID this mission belongs to
|
|
1675
1850
|
*/
|
|
1676
1851
|
project_id?: string | null;
|
|
1852
|
+
/**
|
|
1853
|
+
* Priority
|
|
1854
|
+
*
|
|
1855
|
+
* Priority: P0, P1, P2, P3, High, Medium, Low
|
|
1856
|
+
*/
|
|
1857
|
+
priority?: string | null;
|
|
1677
1858
|
/**
|
|
1678
1859
|
* Status
|
|
1679
1860
|
*
|
|
@@ -1817,7 +1998,7 @@ type ProjectCreate = {
|
|
|
1817
1998
|
/**
|
|
1818
1999
|
* ProjectListResponse
|
|
1819
2000
|
*
|
|
1820
|
-
* Response for GET /ocxp/project.
|
|
2001
|
+
* Response for GET /ocxp/project with offset-based pagination.
|
|
1821
2002
|
*/
|
|
1822
2003
|
type ProjectListResponse = {
|
|
1823
2004
|
/**
|
|
@@ -1826,8 +2007,34 @@ type ProjectListResponse = {
|
|
|
1826
2007
|
projects: Array<ProjectResponse>;
|
|
1827
2008
|
/**
|
|
1828
2009
|
* Count
|
|
2010
|
+
*
|
|
2011
|
+
* Number of items in this response
|
|
1829
2012
|
*/
|
|
1830
2013
|
count: number;
|
|
2014
|
+
/**
|
|
2015
|
+
* Total
|
|
2016
|
+
*
|
|
2017
|
+
* Total number of items matching query (across all pages)
|
|
2018
|
+
*/
|
|
2019
|
+
total?: number | null;
|
|
2020
|
+
/**
|
|
2021
|
+
* Offset
|
|
2022
|
+
*
|
|
2023
|
+
* Offset used for this query
|
|
2024
|
+
*/
|
|
2025
|
+
offset?: number | null;
|
|
2026
|
+
/**
|
|
2027
|
+
* Limit
|
|
2028
|
+
*
|
|
2029
|
+
* Limit used for this query
|
|
2030
|
+
*/
|
|
2031
|
+
limit?: number | null;
|
|
2032
|
+
/**
|
|
2033
|
+
* Has More
|
|
2034
|
+
*
|
|
2035
|
+
* Whether there are more items after this page
|
|
2036
|
+
*/
|
|
2037
|
+
has_more?: boolean;
|
|
1831
2038
|
};
|
|
1832
2039
|
/**
|
|
1833
2040
|
* ProjectResponse
|
|
@@ -1881,6 +2088,56 @@ type ProjectResponse = {
|
|
|
1881
2088
|
* Created By
|
|
1882
2089
|
*/
|
|
1883
2090
|
created_by?: string | null;
|
|
2091
|
+
/**
|
|
2092
|
+
* Pre-computed counts for project overview
|
|
2093
|
+
*/
|
|
2094
|
+
stats?: ProjectStats | null;
|
|
2095
|
+
};
|
|
2096
|
+
/**
|
|
2097
|
+
* ProjectStats
|
|
2098
|
+
*
|
|
2099
|
+
* Pre-computed counts for project overview.
|
|
2100
|
+
*
|
|
2101
|
+
* Provides immediate access to counts without extra API calls.
|
|
2102
|
+
* Computed server-side when project is fetched.
|
|
2103
|
+
*/
|
|
2104
|
+
type ProjectStats = {
|
|
2105
|
+
/**
|
|
2106
|
+
* Mission Count
|
|
2107
|
+
*
|
|
2108
|
+
* Total missions linked to project
|
|
2109
|
+
*/
|
|
2110
|
+
mission_count?: number;
|
|
2111
|
+
/**
|
|
2112
|
+
* Active Mission Count
|
|
2113
|
+
*
|
|
2114
|
+
* Non-archived missions
|
|
2115
|
+
*/
|
|
2116
|
+
active_mission_count?: number;
|
|
2117
|
+
/**
|
|
2118
|
+
* Archived Mission Count
|
|
2119
|
+
*
|
|
2120
|
+
* Archived missions
|
|
2121
|
+
*/
|
|
2122
|
+
archived_mission_count?: number;
|
|
2123
|
+
/**
|
|
2124
|
+
* Repo Count
|
|
2125
|
+
*
|
|
2126
|
+
* Linked repositories
|
|
2127
|
+
*/
|
|
2128
|
+
repo_count?: number;
|
|
2129
|
+
/**
|
|
2130
|
+
* Memo Count
|
|
2131
|
+
*
|
|
2132
|
+
* Project memos (open status)
|
|
2133
|
+
*/
|
|
2134
|
+
memo_count?: number;
|
|
2135
|
+
/**
|
|
2136
|
+
* Sop Count
|
|
2137
|
+
*
|
|
2138
|
+
* SOPs in project context
|
|
2139
|
+
*/
|
|
2140
|
+
sop_count?: number;
|
|
1884
2141
|
};
|
|
1885
2142
|
/**
|
|
1886
2143
|
* ProjectUpdate
|
|
@@ -2899,7 +3156,7 @@ type RepoDeleteResponse = {
|
|
|
2899
3156
|
*
|
|
2900
3157
|
* Deleted repository UUID
|
|
2901
3158
|
*/
|
|
2902
|
-
id
|
|
3159
|
+
id?: string | null;
|
|
2903
3160
|
/**
|
|
2904
3161
|
* Repo Id
|
|
2905
3162
|
*
|
|
@@ -3044,7 +3301,7 @@ type RepoInfo = {
|
|
|
3044
3301
|
/**
|
|
3045
3302
|
* RepoListResponse
|
|
3046
3303
|
*
|
|
3047
|
-
* Response for GET /ocxp/repo/list.
|
|
3304
|
+
* Response for GET /ocxp/repo/list with offset-based pagination.
|
|
3048
3305
|
*/
|
|
3049
3306
|
type RepoListResponse = {
|
|
3050
3307
|
/**
|
|
@@ -3053,8 +3310,34 @@ type RepoListResponse = {
|
|
|
3053
3310
|
repos: Array<RepoInfo>;
|
|
3054
3311
|
/**
|
|
3055
3312
|
* Count
|
|
3313
|
+
*
|
|
3314
|
+
* Number of items in this response
|
|
3056
3315
|
*/
|
|
3057
3316
|
count: number;
|
|
3317
|
+
/**
|
|
3318
|
+
* Total
|
|
3319
|
+
*
|
|
3320
|
+
* Total number of items matching query (across all pages)
|
|
3321
|
+
*/
|
|
3322
|
+
total?: number | null;
|
|
3323
|
+
/**
|
|
3324
|
+
* Offset
|
|
3325
|
+
*
|
|
3326
|
+
* Offset used for this query
|
|
3327
|
+
*/
|
|
3328
|
+
offset?: number | null;
|
|
3329
|
+
/**
|
|
3330
|
+
* Limit
|
|
3331
|
+
*
|
|
3332
|
+
* Limit used for this query
|
|
3333
|
+
*/
|
|
3334
|
+
limit?: number | null;
|
|
3335
|
+
/**
|
|
3336
|
+
* Has More
|
|
3337
|
+
*
|
|
3338
|
+
* Whether there are more items after this page
|
|
3339
|
+
*/
|
|
3340
|
+
has_more?: boolean;
|
|
3058
3341
|
};
|
|
3059
3342
|
/**
|
|
3060
3343
|
* RepoStatusResponse
|
|
@@ -3171,6 +3454,12 @@ type RepoSyncResponse = {
|
|
|
3171
3454
|
*/
|
|
3172
3455
|
changes_detected?: boolean;
|
|
3173
3456
|
};
|
|
3457
|
+
/**
|
|
3458
|
+
* SMEType
|
|
3459
|
+
*
|
|
3460
|
+
* Subject Matter Expert types for task routing.
|
|
3461
|
+
*/
|
|
3462
|
+
type SmeType = 'CODEBASE' | 'CONTEXT' | 'DATABASE' | 'VISUAL';
|
|
3174
3463
|
/**
|
|
3175
3464
|
* SecurityFinding
|
|
3176
3465
|
*
|
|
@@ -3232,7 +3521,7 @@ type SessionForkResponse = {
|
|
|
3232
3521
|
/**
|
|
3233
3522
|
* SessionListResponse
|
|
3234
3523
|
*
|
|
3235
|
-
* Response for GET /ocxp/session.
|
|
3524
|
+
* Response for GET /ocxp/session with offset-based pagination.
|
|
3236
3525
|
*/
|
|
3237
3526
|
type SessionListResponse = {
|
|
3238
3527
|
/**
|
|
@@ -3241,8 +3530,34 @@ type SessionListResponse = {
|
|
|
3241
3530
|
sessions: Array<SessionResponse>;
|
|
3242
3531
|
/**
|
|
3243
3532
|
* Count
|
|
3533
|
+
*
|
|
3534
|
+
* Number of items in this response
|
|
3244
3535
|
*/
|
|
3245
3536
|
count: number;
|
|
3537
|
+
/**
|
|
3538
|
+
* Total
|
|
3539
|
+
*
|
|
3540
|
+
* Total number of items matching query (across all pages)
|
|
3541
|
+
*/
|
|
3542
|
+
total?: number | null;
|
|
3543
|
+
/**
|
|
3544
|
+
* Offset
|
|
3545
|
+
*
|
|
3546
|
+
* Offset used for this query
|
|
3547
|
+
*/
|
|
3548
|
+
offset?: number | null;
|
|
3549
|
+
/**
|
|
3550
|
+
* Limit
|
|
3551
|
+
*
|
|
3552
|
+
* Limit used for this query
|
|
3553
|
+
*/
|
|
3554
|
+
limit?: number | null;
|
|
3555
|
+
/**
|
|
3556
|
+
* Has More
|
|
3557
|
+
*
|
|
3558
|
+
* Whether there are more items after this page
|
|
3559
|
+
*/
|
|
3560
|
+
has_more?: boolean;
|
|
3246
3561
|
};
|
|
3247
3562
|
/**
|
|
3248
3563
|
* SessionMessagesResponse
|
|
@@ -3354,7 +3669,7 @@ type SetDefaultRepoRequest = {
|
|
|
3354
3669
|
*
|
|
3355
3670
|
* Type of entity the memo is associated with.
|
|
3356
3671
|
*/
|
|
3357
|
-
type SourceType = 'repo' | 'project' | 'mission' | 'doc';
|
|
3672
|
+
type SourceType = 'repo' | 'project' | 'mission' | 'doc' | 'workflow';
|
|
3358
3673
|
/**
|
|
3359
3674
|
* SyncRequest
|
|
3360
3675
|
*
|
|
@@ -3367,133 +3682,987 @@ type SyncRequest = {
|
|
|
3367
3682
|
force?: boolean;
|
|
3368
3683
|
};
|
|
3369
3684
|
/**
|
|
3370
|
-
*
|
|
3685
|
+
* TaskListResponse
|
|
3371
3686
|
*
|
|
3372
|
-
*
|
|
3687
|
+
* Response for task list.
|
|
3373
3688
|
*/
|
|
3374
|
-
type
|
|
3689
|
+
type TaskListResponse = {
|
|
3375
3690
|
/**
|
|
3376
|
-
*
|
|
3691
|
+
* Tasks
|
|
3377
3692
|
*/
|
|
3378
|
-
|
|
3693
|
+
tasks: Array<TaskResponse>;
|
|
3379
3694
|
/**
|
|
3380
|
-
*
|
|
3695
|
+
* Count
|
|
3381
3696
|
*/
|
|
3382
|
-
|
|
3697
|
+
count: number;
|
|
3698
|
+
};
|
|
3699
|
+
/**
|
|
3700
|
+
* TaskResponse
|
|
3701
|
+
*
|
|
3702
|
+
* Task data in workflow response (strands-compatible format).
|
|
3703
|
+
*/
|
|
3704
|
+
type TaskResponse = {
|
|
3383
3705
|
/**
|
|
3384
|
-
*
|
|
3706
|
+
* Task Id
|
|
3385
3707
|
*/
|
|
3386
|
-
|
|
3708
|
+
task_id: string;
|
|
3387
3709
|
/**
|
|
3388
|
-
*
|
|
3710
|
+
* Description
|
|
3389
3711
|
*/
|
|
3390
|
-
|
|
3712
|
+
description: string;
|
|
3713
|
+
status: TaskStatus;
|
|
3391
3714
|
/**
|
|
3392
|
-
*
|
|
3715
|
+
* Priority
|
|
3393
3716
|
*/
|
|
3394
|
-
|
|
3395
|
-
};
|
|
3396
|
-
/**
|
|
3397
|
-
* UserResponse
|
|
3398
|
-
*
|
|
3399
|
-
* User info response.
|
|
3400
|
-
*/
|
|
3401
|
-
type UserResponse = {
|
|
3717
|
+
priority: number;
|
|
3402
3718
|
/**
|
|
3403
|
-
*
|
|
3719
|
+
* Timeout
|
|
3404
3720
|
*/
|
|
3405
|
-
|
|
3721
|
+
timeout: number;
|
|
3406
3722
|
/**
|
|
3407
|
-
*
|
|
3723
|
+
* Dependencies
|
|
3408
3724
|
*/
|
|
3409
|
-
|
|
3725
|
+
dependencies: Array<string>;
|
|
3726
|
+
sme_type?: SmeType | null;
|
|
3410
3727
|
/**
|
|
3411
|
-
*
|
|
3728
|
+
* Skill Path
|
|
3729
|
+
*/
|
|
3730
|
+
skill_path?: string | null;
|
|
3731
|
+
/**
|
|
3732
|
+
* Result
|
|
3733
|
+
*/
|
|
3734
|
+
result?: string | null;
|
|
3735
|
+
/**
|
|
3736
|
+
* Error
|
|
3737
|
+
*/
|
|
3738
|
+
error?: string | null;
|
|
3739
|
+
/**
|
|
3740
|
+
* Retry Count
|
|
3741
|
+
*/
|
|
3742
|
+
retry_count?: number;
|
|
3743
|
+
/**
|
|
3744
|
+
* Memo Id
|
|
3745
|
+
*/
|
|
3746
|
+
memo_id?: string | null;
|
|
3747
|
+
};
|
|
3748
|
+
/**
|
|
3749
|
+
* TaskStatus
|
|
3750
|
+
*
|
|
3751
|
+
* Status of a workflow task.
|
|
3752
|
+
*/
|
|
3753
|
+
type TaskStatus = 'pending' | 'in_progress' | 'completed' | 'failed' | 'skipped';
|
|
3754
|
+
/**
|
|
3755
|
+
* TaskUpdate
|
|
3756
|
+
*
|
|
3757
|
+
* Request to update a task.
|
|
3758
|
+
*/
|
|
3759
|
+
type TaskUpdate = {
|
|
3760
|
+
/**
|
|
3761
|
+
* Task Id
|
|
3762
|
+
*
|
|
3763
|
+
* Task ID (required for bulk updates)
|
|
3764
|
+
*/
|
|
3765
|
+
task_id?: string | null;
|
|
3766
|
+
/**
|
|
3767
|
+
* New task status
|
|
3768
|
+
*/
|
|
3769
|
+
task_status?: TaskStatus | null;
|
|
3770
|
+
/**
|
|
3771
|
+
* Result
|
|
3772
|
+
*
|
|
3773
|
+
* Task result output
|
|
3774
|
+
*/
|
|
3775
|
+
result?: string | null;
|
|
3776
|
+
/**
|
|
3777
|
+
* Error
|
|
3778
|
+
*
|
|
3779
|
+
* Error message if failed
|
|
3780
|
+
*/
|
|
3781
|
+
error?: string | null;
|
|
3782
|
+
/**
|
|
3783
|
+
* Retry Count
|
|
3784
|
+
*
|
|
3785
|
+
* Update retry count
|
|
3786
|
+
*/
|
|
3787
|
+
retry_count?: number | null;
|
|
3788
|
+
};
|
|
3789
|
+
/**
|
|
3790
|
+
* TokenResponse
|
|
3791
|
+
*
|
|
3792
|
+
* Token response with camelCase output for plugin compatibility.
|
|
3793
|
+
*/
|
|
3794
|
+
type TokenResponse = {
|
|
3795
|
+
/**
|
|
3796
|
+
* Accesstoken
|
|
3797
|
+
*/
|
|
3798
|
+
accessToken: string;
|
|
3799
|
+
/**
|
|
3800
|
+
* Tokentype
|
|
3801
|
+
*/
|
|
3802
|
+
tokenType?: string;
|
|
3803
|
+
/**
|
|
3804
|
+
* Expiresin
|
|
3805
|
+
*/
|
|
3806
|
+
expiresIn?: number;
|
|
3807
|
+
/**
|
|
3808
|
+
* Idtoken
|
|
3809
|
+
*/
|
|
3810
|
+
idToken: string;
|
|
3811
|
+
/**
|
|
3812
|
+
* Refreshtoken
|
|
3813
|
+
*/
|
|
3814
|
+
refreshToken: string;
|
|
3815
|
+
};
|
|
3816
|
+
/**
|
|
3817
|
+
* UserResponse
|
|
3818
|
+
*
|
|
3819
|
+
* User info response.
|
|
3820
|
+
*/
|
|
3821
|
+
type UserResponse = {
|
|
3822
|
+
/**
|
|
3823
|
+
* Id
|
|
3824
|
+
*/
|
|
3825
|
+
id: string;
|
|
3826
|
+
/**
|
|
3827
|
+
* Email
|
|
3828
|
+
*/
|
|
3829
|
+
email: string;
|
|
3830
|
+
/**
|
|
3831
|
+
* Username
|
|
3412
3832
|
*/
|
|
3413
3833
|
username: string;
|
|
3414
3834
|
};
|
|
3415
|
-
/**
|
|
3416
|
-
* ValidationError
|
|
3417
|
-
*/
|
|
3418
|
-
type ValidationError = {
|
|
3835
|
+
/**
|
|
3836
|
+
* ValidationError
|
|
3837
|
+
*/
|
|
3838
|
+
type ValidationError = {
|
|
3839
|
+
/**
|
|
3840
|
+
* Location
|
|
3841
|
+
*/
|
|
3842
|
+
loc: Array<string | number>;
|
|
3843
|
+
/**
|
|
3844
|
+
* Message
|
|
3845
|
+
*/
|
|
3846
|
+
msg: string;
|
|
3847
|
+
/**
|
|
3848
|
+
* Error Type
|
|
3849
|
+
*/
|
|
3850
|
+
type: string;
|
|
3851
|
+
};
|
|
3852
|
+
/**
|
|
3853
|
+
* Workflow
|
|
3854
|
+
*
|
|
3855
|
+
* Workflow container - groups task memos for a mission.
|
|
3856
|
+
*
|
|
3857
|
+
* A mission can have multiple workflows (e.g., research workflow,
|
|
3858
|
+
* documentation workflow). Each workflow manages its own set of tasks
|
|
3859
|
+
* while sharing the mission's context and session data.
|
|
3860
|
+
*/
|
|
3861
|
+
type Workflow = {
|
|
3862
|
+
/**
|
|
3863
|
+
* Workflow Id
|
|
3864
|
+
*
|
|
3865
|
+
* Unique workflow identifier (UUID)
|
|
3866
|
+
*/
|
|
3867
|
+
workflow_id?: string;
|
|
3868
|
+
/**
|
|
3869
|
+
* Mission Id
|
|
3870
|
+
*
|
|
3871
|
+
* Parent mission ID this workflow belongs to
|
|
3872
|
+
*/
|
|
3873
|
+
mission_id: string;
|
|
3874
|
+
/**
|
|
3875
|
+
* Workspace
|
|
3876
|
+
*
|
|
3877
|
+
* Workspace this workflow belongs to
|
|
3878
|
+
*/
|
|
3879
|
+
workspace: string;
|
|
3880
|
+
/**
|
|
3881
|
+
* Name
|
|
3882
|
+
*
|
|
3883
|
+
* Optional workflow name (e.g., 'Research Phase', 'Documentation')
|
|
3884
|
+
*/
|
|
3885
|
+
name?: string | null;
|
|
3886
|
+
/**
|
|
3887
|
+
* Current workflow status
|
|
3888
|
+
*/
|
|
3889
|
+
status?: WorkflowStatus;
|
|
3890
|
+
/**
|
|
3891
|
+
* Created At
|
|
3892
|
+
*
|
|
3893
|
+
* When the workflow was created
|
|
3894
|
+
*/
|
|
3895
|
+
created_at?: string;
|
|
3896
|
+
/**
|
|
3897
|
+
* Updated At
|
|
3898
|
+
*
|
|
3899
|
+
* When the workflow was last updated
|
|
3900
|
+
*/
|
|
3901
|
+
updated_at?: string;
|
|
3902
|
+
/**
|
|
3903
|
+
* Started At
|
|
3904
|
+
*
|
|
3905
|
+
* When the workflow started running
|
|
3906
|
+
*/
|
|
3907
|
+
started_at?: string | null;
|
|
3908
|
+
/**
|
|
3909
|
+
* Completed At
|
|
3910
|
+
*
|
|
3911
|
+
* When the workflow completed
|
|
3912
|
+
*/
|
|
3913
|
+
completed_at?: string | null;
|
|
3914
|
+
/**
|
|
3915
|
+
* Total Tasks
|
|
3916
|
+
*
|
|
3917
|
+
* Total number of tasks in workflow
|
|
3918
|
+
*/
|
|
3919
|
+
total_tasks?: number;
|
|
3920
|
+
/**
|
|
3921
|
+
* Completed Tasks
|
|
3922
|
+
*
|
|
3923
|
+
* Number of completed tasks
|
|
3924
|
+
*/
|
|
3925
|
+
completed_tasks?: number;
|
|
3926
|
+
/**
|
|
3927
|
+
* Failed Tasks
|
|
3928
|
+
*
|
|
3929
|
+
* Number of failed tasks
|
|
3930
|
+
*/
|
|
3931
|
+
failed_tasks?: number;
|
|
3932
|
+
};
|
|
3933
|
+
/**
|
|
3934
|
+
* WorkflowActionResponse
|
|
3935
|
+
*
|
|
3936
|
+
* Response from workflow action endpoints.
|
|
3937
|
+
*/
|
|
3938
|
+
type WorkflowActionResponse = {
|
|
3939
|
+
/**
|
|
3940
|
+
* Success
|
|
3941
|
+
*/
|
|
3942
|
+
success: boolean;
|
|
3943
|
+
/**
|
|
3944
|
+
* Message
|
|
3945
|
+
*/
|
|
3946
|
+
message: string;
|
|
3947
|
+
workflow?: WorkflowResponse | null;
|
|
3948
|
+
};
|
|
3949
|
+
/**
|
|
3950
|
+
* WorkflowCreate
|
|
3951
|
+
*
|
|
3952
|
+
* Request to create a workflow with tasks.
|
|
3953
|
+
*/
|
|
3954
|
+
type WorkflowCreate = {
|
|
3955
|
+
/**
|
|
3956
|
+
* Mission Id
|
|
3957
|
+
*
|
|
3958
|
+
* Parent mission ID
|
|
3959
|
+
*/
|
|
3960
|
+
mission_id: string;
|
|
3961
|
+
/**
|
|
3962
|
+
* Workflow Id
|
|
3963
|
+
*
|
|
3964
|
+
* Optional workflow ID (auto-generated if not provided)
|
|
3965
|
+
*/
|
|
3966
|
+
workflow_id?: string | null;
|
|
3967
|
+
/**
|
|
3968
|
+
* Name
|
|
3969
|
+
*
|
|
3970
|
+
* Optional workflow name
|
|
3971
|
+
*/
|
|
3972
|
+
name?: string | null;
|
|
3973
|
+
/**
|
|
3974
|
+
* Tasks
|
|
3975
|
+
*
|
|
3976
|
+
* Initial tasks to create
|
|
3977
|
+
*/
|
|
3978
|
+
tasks?: Array<WorkflowTaskCreate>;
|
|
3979
|
+
};
|
|
3980
|
+
/**
|
|
3981
|
+
* WorkflowListResponse
|
|
3982
|
+
*
|
|
3983
|
+
* Response for GET /ocxp/workflow with offset-based pagination.
|
|
3984
|
+
*/
|
|
3985
|
+
type WorkflowListResponse = {
|
|
3986
|
+
/**
|
|
3987
|
+
* Workflows
|
|
3988
|
+
*/
|
|
3989
|
+
workflows: Array<Workflow>;
|
|
3990
|
+
/**
|
|
3991
|
+
* Count
|
|
3992
|
+
*
|
|
3993
|
+
* Number of items in this response
|
|
3994
|
+
*/
|
|
3995
|
+
count: number;
|
|
3996
|
+
/**
|
|
3997
|
+
* Total
|
|
3998
|
+
*
|
|
3999
|
+
* Total number of items matching query (across all pages)
|
|
4000
|
+
*/
|
|
4001
|
+
total?: number | null;
|
|
4002
|
+
/**
|
|
4003
|
+
* Offset
|
|
4004
|
+
*
|
|
4005
|
+
* Offset used for this query
|
|
4006
|
+
*/
|
|
4007
|
+
offset?: number | null;
|
|
4008
|
+
/**
|
|
4009
|
+
* Limit
|
|
4010
|
+
*
|
|
4011
|
+
* Limit used for this query
|
|
4012
|
+
*/
|
|
4013
|
+
limit?: number | null;
|
|
4014
|
+
/**
|
|
4015
|
+
* Has More
|
|
4016
|
+
*
|
|
4017
|
+
* Whether there are more items after this page
|
|
4018
|
+
*/
|
|
4019
|
+
has_more?: boolean;
|
|
4020
|
+
};
|
|
4021
|
+
/**
|
|
4022
|
+
* WorkflowResponse
|
|
4023
|
+
*
|
|
4024
|
+
* Workflow with all tasks (strands-compatible format).
|
|
4025
|
+
*/
|
|
4026
|
+
type WorkflowResponse = {
|
|
4027
|
+
/**
|
|
4028
|
+
* Workflow Id
|
|
4029
|
+
*/
|
|
4030
|
+
workflow_id: string;
|
|
4031
|
+
/**
|
|
4032
|
+
* Mission Id
|
|
4033
|
+
*/
|
|
4034
|
+
mission_id: string;
|
|
4035
|
+
/**
|
|
4036
|
+
* Name
|
|
4037
|
+
*/
|
|
4038
|
+
name?: string | null;
|
|
4039
|
+
status: WorkflowStatus;
|
|
4040
|
+
/**
|
|
4041
|
+
* Created At
|
|
4042
|
+
*/
|
|
4043
|
+
created_at: string;
|
|
4044
|
+
/**
|
|
4045
|
+
* Updated At
|
|
4046
|
+
*/
|
|
4047
|
+
updated_at: string;
|
|
4048
|
+
/**
|
|
4049
|
+
* Started At
|
|
4050
|
+
*/
|
|
4051
|
+
started_at?: string | null;
|
|
4052
|
+
/**
|
|
4053
|
+
* Completed At
|
|
4054
|
+
*/
|
|
4055
|
+
completed_at?: string | null;
|
|
4056
|
+
/**
|
|
4057
|
+
* Total Tasks
|
|
4058
|
+
*/
|
|
4059
|
+
total_tasks: number;
|
|
4060
|
+
/**
|
|
4061
|
+
* Completed Tasks
|
|
4062
|
+
*/
|
|
4063
|
+
completed_tasks: number;
|
|
4064
|
+
/**
|
|
4065
|
+
* Failed Tasks
|
|
4066
|
+
*/
|
|
4067
|
+
failed_tasks: number;
|
|
4068
|
+
/**
|
|
4069
|
+
* Progress
|
|
4070
|
+
*/
|
|
4071
|
+
progress: number;
|
|
4072
|
+
/**
|
|
4073
|
+
* Tasks
|
|
4074
|
+
*/
|
|
4075
|
+
tasks: {
|
|
4076
|
+
[key: string]: TaskResponse;
|
|
4077
|
+
};
|
|
4078
|
+
};
|
|
4079
|
+
/**
|
|
4080
|
+
* WorkflowStatus
|
|
4081
|
+
*
|
|
4082
|
+
* Status of a workflow.
|
|
4083
|
+
*/
|
|
4084
|
+
type WorkflowStatus = 'pending' | 'running' | 'paused' | 'completed' | 'failed' | 'archived';
|
|
4085
|
+
/**
|
|
4086
|
+
* WorkflowTaskCreate
|
|
4087
|
+
*
|
|
4088
|
+
* Task definition for workflow creation.
|
|
4089
|
+
*/
|
|
4090
|
+
type WorkflowTaskCreate = {
|
|
4091
|
+
/**
|
|
4092
|
+
* Task Id
|
|
4093
|
+
*
|
|
4094
|
+
* Task identifier (e.g., 'gap_1_research')
|
|
4095
|
+
*/
|
|
4096
|
+
task_id: string;
|
|
4097
|
+
/**
|
|
4098
|
+
* Description
|
|
4099
|
+
*
|
|
4100
|
+
* Task description/content
|
|
4101
|
+
*/
|
|
4102
|
+
description: string;
|
|
4103
|
+
/**
|
|
4104
|
+
* Priority
|
|
4105
|
+
*
|
|
4106
|
+
* Task priority (1=lowest, 5=highest)
|
|
4107
|
+
*/
|
|
4108
|
+
priority?: number;
|
|
4109
|
+
/**
|
|
4110
|
+
* Timeout
|
|
4111
|
+
*
|
|
4112
|
+
* Task timeout in seconds
|
|
4113
|
+
*/
|
|
4114
|
+
timeout?: number;
|
|
4115
|
+
/**
|
|
4116
|
+
* Dependencies
|
|
4117
|
+
*
|
|
4118
|
+
* List of task_ids this task depends on
|
|
4119
|
+
*/
|
|
4120
|
+
dependencies?: Array<string>;
|
|
4121
|
+
/**
|
|
4122
|
+
* Subject matter expert type
|
|
4123
|
+
*/
|
|
4124
|
+
sme_type?: SmeType | null;
|
|
4125
|
+
/**
|
|
4126
|
+
* Skill Path
|
|
4127
|
+
*
|
|
4128
|
+
* Skill path for task execution
|
|
4129
|
+
*/
|
|
4130
|
+
skill_path?: string | null;
|
|
4131
|
+
};
|
|
4132
|
+
/**
|
|
4133
|
+
* WorkspaceItem
|
|
4134
|
+
*
|
|
4135
|
+
* Workspace item.
|
|
4136
|
+
*/
|
|
4137
|
+
type WorkspaceItem = {
|
|
4138
|
+
/**
|
|
4139
|
+
* Id
|
|
4140
|
+
*/
|
|
4141
|
+
id: string;
|
|
4142
|
+
/**
|
|
4143
|
+
* Name
|
|
4144
|
+
*/
|
|
4145
|
+
name: string;
|
|
4146
|
+
};
|
|
4147
|
+
/**
|
|
4148
|
+
* WorkspacesResponse
|
|
4149
|
+
*
|
|
4150
|
+
* Workspaces list response.
|
|
4151
|
+
*/
|
|
4152
|
+
type WorkspacesResponse = {
|
|
4153
|
+
/**
|
|
4154
|
+
* Workspaces
|
|
4155
|
+
*/
|
|
4156
|
+
workspaces: Array<WorkspaceItem>;
|
|
4157
|
+
};
|
|
4158
|
+
/**
|
|
4159
|
+
* WriteRequest
|
|
4160
|
+
*/
|
|
4161
|
+
type WriteRequest = {
|
|
4162
|
+
/**
|
|
4163
|
+
* Content
|
|
4164
|
+
*/
|
|
4165
|
+
content: string;
|
|
4166
|
+
/**
|
|
4167
|
+
* Encoding
|
|
4168
|
+
*/
|
|
4169
|
+
encoding?: string;
|
|
4170
|
+
/**
|
|
4171
|
+
* Etag
|
|
4172
|
+
*/
|
|
4173
|
+
etag?: string | null;
|
|
4174
|
+
/**
|
|
4175
|
+
* Ifnotexists
|
|
4176
|
+
*/
|
|
4177
|
+
ifNotExists?: boolean;
|
|
4178
|
+
/**
|
|
4179
|
+
* Manage Metadata
|
|
4180
|
+
*/
|
|
4181
|
+
manage_metadata?: boolean;
|
|
4182
|
+
/**
|
|
4183
|
+
* Auto Index
|
|
4184
|
+
*/
|
|
4185
|
+
auto_index?: boolean | null;
|
|
4186
|
+
/**
|
|
4187
|
+
* Project Id
|
|
4188
|
+
*/
|
|
4189
|
+
project_id?: string | null;
|
|
4190
|
+
/**
|
|
4191
|
+
* Mission Id
|
|
4192
|
+
*/
|
|
4193
|
+
mission_id?: string | null;
|
|
4194
|
+
/**
|
|
4195
|
+
* Wait For Index
|
|
4196
|
+
*/
|
|
4197
|
+
wait_for_index?: boolean;
|
|
4198
|
+
/**
|
|
4199
|
+
* Verify Access
|
|
4200
|
+
*/
|
|
4201
|
+
verify_access?: boolean;
|
|
4202
|
+
/**
|
|
4203
|
+
* Max Retries
|
|
4204
|
+
*/
|
|
4205
|
+
max_retries?: number;
|
|
4206
|
+
};
|
|
4207
|
+
/**
|
|
4208
|
+
* BulkDeleteRequest
|
|
4209
|
+
*/
|
|
4210
|
+
type AppRoutersBulkBulkDeleteRequest = {
|
|
4211
|
+
/**
|
|
4212
|
+
* Ids
|
|
4213
|
+
*/
|
|
4214
|
+
ids: Array<string>;
|
|
4215
|
+
/**
|
|
4216
|
+
* Manage Metadata
|
|
4217
|
+
*/
|
|
4218
|
+
manage_metadata?: boolean;
|
|
4219
|
+
/**
|
|
4220
|
+
* Auto Index
|
|
4221
|
+
*/
|
|
4222
|
+
auto_index?: boolean | null;
|
|
4223
|
+
};
|
|
4224
|
+
type BulkReadContentData = {
|
|
4225
|
+
body: BulkReadRequest;
|
|
4226
|
+
headers?: {
|
|
4227
|
+
/**
|
|
4228
|
+
* X-Workspace
|
|
4229
|
+
*/
|
|
4230
|
+
'X-Workspace'?: string;
|
|
4231
|
+
};
|
|
4232
|
+
path: {
|
|
4233
|
+
/**
|
|
4234
|
+
* Content Type
|
|
4235
|
+
*
|
|
4236
|
+
* Content type (mission, project, context, code, etc.)
|
|
4237
|
+
*/
|
|
4238
|
+
content_type: string;
|
|
4239
|
+
};
|
|
4240
|
+
query?: never;
|
|
4241
|
+
url: '/ocxp/context/{content_type}/bulk/read';
|
|
4242
|
+
};
|
|
4243
|
+
type BulkReadContentErrors = {
|
|
4244
|
+
/**
|
|
4245
|
+
* Validation error
|
|
4246
|
+
*/
|
|
4247
|
+
400: unknown;
|
|
4248
|
+
/**
|
|
4249
|
+
* Validation Error
|
|
4250
|
+
*/
|
|
4251
|
+
422: HttpValidationError;
|
|
4252
|
+
/**
|
|
4253
|
+
* Rate limit exceeded
|
|
4254
|
+
*/
|
|
4255
|
+
429: unknown;
|
|
4256
|
+
};
|
|
4257
|
+
type BulkReadContentResponses = {
|
|
4258
|
+
/**
|
|
4259
|
+
* Successful Response
|
|
4260
|
+
*/
|
|
4261
|
+
200: BulkReadResponse;
|
|
4262
|
+
};
|
|
4263
|
+
type BulkWriteContentData = {
|
|
4264
|
+
body: BulkWriteRequest;
|
|
4265
|
+
headers?: {
|
|
4266
|
+
/**
|
|
4267
|
+
* X-Workspace
|
|
4268
|
+
*/
|
|
4269
|
+
'X-Workspace'?: string;
|
|
4270
|
+
};
|
|
4271
|
+
path: {
|
|
4272
|
+
/**
|
|
4273
|
+
* Content Type
|
|
4274
|
+
*
|
|
4275
|
+
* Content type (mission, project, context, code, etc.)
|
|
4276
|
+
*/
|
|
4277
|
+
content_type: string;
|
|
4278
|
+
};
|
|
4279
|
+
query?: never;
|
|
4280
|
+
url: '/ocxp/context/{content_type}/bulk/write';
|
|
4281
|
+
};
|
|
4282
|
+
type BulkWriteContentErrors = {
|
|
4283
|
+
/**
|
|
4284
|
+
* Validation error
|
|
4285
|
+
*/
|
|
4286
|
+
400: unknown;
|
|
4287
|
+
/**
|
|
4288
|
+
* Validation Error
|
|
4289
|
+
*/
|
|
4290
|
+
422: HttpValidationError;
|
|
4291
|
+
/**
|
|
4292
|
+
* Rate limit exceeded
|
|
4293
|
+
*/
|
|
4294
|
+
429: unknown;
|
|
4295
|
+
};
|
|
4296
|
+
type BulkWriteContentResponses = {
|
|
4297
|
+
/**
|
|
4298
|
+
* Successful Response
|
|
4299
|
+
*/
|
|
4300
|
+
200: BulkWriteResponse;
|
|
4301
|
+
};
|
|
4302
|
+
type BulkDeleteContentData = {
|
|
4303
|
+
body: AppRoutersBulkBulkDeleteRequest;
|
|
4304
|
+
headers?: {
|
|
4305
|
+
/**
|
|
4306
|
+
* X-Workspace
|
|
4307
|
+
*/
|
|
4308
|
+
'X-Workspace'?: string;
|
|
4309
|
+
};
|
|
4310
|
+
path: {
|
|
4311
|
+
/**
|
|
4312
|
+
* Content Type
|
|
4313
|
+
*
|
|
4314
|
+
* Content type (mission, project, context, code, etc.)
|
|
4315
|
+
*/
|
|
4316
|
+
content_type: string;
|
|
4317
|
+
};
|
|
4318
|
+
query?: never;
|
|
4319
|
+
url: '/ocxp/context/{content_type}/bulk/delete';
|
|
4320
|
+
};
|
|
4321
|
+
type BulkDeleteContentErrors = {
|
|
4322
|
+
/**
|
|
4323
|
+
* Validation error
|
|
4324
|
+
*/
|
|
4325
|
+
400: unknown;
|
|
4326
|
+
/**
|
|
4327
|
+
* Validation Error
|
|
4328
|
+
*/
|
|
4329
|
+
422: HttpValidationError;
|
|
4330
|
+
/**
|
|
4331
|
+
* Rate limit exceeded
|
|
4332
|
+
*/
|
|
4333
|
+
429: unknown;
|
|
4334
|
+
};
|
|
4335
|
+
type BulkDeleteContentResponses = {
|
|
4336
|
+
/**
|
|
4337
|
+
* Successful Response
|
|
4338
|
+
*/
|
|
4339
|
+
200: BulkDeleteResponse;
|
|
4340
|
+
};
|
|
4341
|
+
type ListPrototypeChatsData = {
|
|
4342
|
+
body?: never;
|
|
4343
|
+
path?: never;
|
|
4344
|
+
query?: {
|
|
4345
|
+
/**
|
|
4346
|
+
* Provider
|
|
4347
|
+
*/
|
|
4348
|
+
provider?: string;
|
|
4349
|
+
};
|
|
4350
|
+
url: '/ocxp/prototype/chat/list';
|
|
4351
|
+
};
|
|
4352
|
+
type ListPrototypeChatsErrors = {
|
|
4353
|
+
/**
|
|
4354
|
+
* Validation Error
|
|
4355
|
+
*/
|
|
4356
|
+
422: HttpValidationError;
|
|
4357
|
+
/**
|
|
4358
|
+
* Rate limit exceeded
|
|
4359
|
+
*/
|
|
4360
|
+
429: unknown;
|
|
4361
|
+
};
|
|
4362
|
+
type ListPrototypeChatsResponses = {
|
|
4363
|
+
/**
|
|
4364
|
+
* Successful Response
|
|
4365
|
+
*/
|
|
4366
|
+
200: PrototypeChatListResponse;
|
|
4367
|
+
};
|
|
4368
|
+
type PreviewPrototypeChatData = {
|
|
4369
|
+
body: PrototypeChatPreviewRequest;
|
|
4370
|
+
path?: never;
|
|
4371
|
+
query?: never;
|
|
4372
|
+
url: '/ocxp/prototype/chat/preview';
|
|
4373
|
+
};
|
|
4374
|
+
type PreviewPrototypeChatErrors = {
|
|
4375
|
+
/**
|
|
4376
|
+
* Validation error
|
|
4377
|
+
*/
|
|
4378
|
+
400: unknown;
|
|
4379
|
+
/**
|
|
4380
|
+
* Validation Error
|
|
4381
|
+
*/
|
|
4382
|
+
422: HttpValidationError;
|
|
4383
|
+
/**
|
|
4384
|
+
* Rate limit exceeded
|
|
4385
|
+
*/
|
|
4386
|
+
429: unknown;
|
|
4387
|
+
};
|
|
4388
|
+
type PreviewPrototypeChatResponses = {
|
|
4389
|
+
/**
|
|
4390
|
+
* Successful Response
|
|
4391
|
+
*/
|
|
4392
|
+
200: PrototypeChatPreviewResponse;
|
|
4393
|
+
};
|
|
4394
|
+
type LinkPrototypeChatData = {
|
|
4395
|
+
body: PrototypeChatLinkRequest;
|
|
4396
|
+
headers?: {
|
|
4397
|
+
/**
|
|
4398
|
+
* X-Workspace
|
|
4399
|
+
*/
|
|
4400
|
+
'X-Workspace'?: string;
|
|
4401
|
+
};
|
|
4402
|
+
path?: never;
|
|
4403
|
+
query?: never;
|
|
4404
|
+
url: '/ocxp/prototype/chat/link';
|
|
4405
|
+
};
|
|
4406
|
+
type LinkPrototypeChatErrors = {
|
|
4407
|
+
/**
|
|
4408
|
+
* Validation error
|
|
4409
|
+
*/
|
|
4410
|
+
400: unknown;
|
|
4411
|
+
/**
|
|
4412
|
+
* Validation Error
|
|
4413
|
+
*/
|
|
4414
|
+
422: HttpValidationError;
|
|
4415
|
+
/**
|
|
4416
|
+
* Rate limit exceeded
|
|
4417
|
+
*/
|
|
4418
|
+
429: unknown;
|
|
4419
|
+
};
|
|
4420
|
+
type LinkPrototypeChatResponses = {
|
|
4421
|
+
/**
|
|
4422
|
+
* Successful Response
|
|
4423
|
+
*/
|
|
4424
|
+
200: PrototypeChatLinkResponse;
|
|
4425
|
+
};
|
|
4426
|
+
type SyncPrototypeChatData = {
|
|
4427
|
+
body: PrototypeChatSyncRequest;
|
|
4428
|
+
headers?: {
|
|
4429
|
+
/**
|
|
4430
|
+
* X-Workspace
|
|
4431
|
+
*/
|
|
4432
|
+
'X-Workspace'?: string;
|
|
4433
|
+
};
|
|
4434
|
+
path?: never;
|
|
4435
|
+
query?: never;
|
|
4436
|
+
url: '/ocxp/prototype/chat/sync';
|
|
4437
|
+
};
|
|
4438
|
+
type SyncPrototypeChatErrors = {
|
|
4439
|
+
/**
|
|
4440
|
+
* Validation Error
|
|
4441
|
+
*/
|
|
4442
|
+
422: HttpValidationError;
|
|
4443
|
+
/**
|
|
4444
|
+
* Rate limit exceeded
|
|
4445
|
+
*/
|
|
4446
|
+
429: unknown;
|
|
4447
|
+
};
|
|
4448
|
+
type SyncPrototypeChatResponses = {
|
|
4449
|
+
/**
|
|
4450
|
+
* Successful Response
|
|
4451
|
+
*/
|
|
4452
|
+
200: PrototypeChatSyncResponse;
|
|
4453
|
+
};
|
|
4454
|
+
type GetStoredVersionsData = {
|
|
4455
|
+
body?: never;
|
|
4456
|
+
headers?: {
|
|
4457
|
+
/**
|
|
4458
|
+
* X-Workspace
|
|
4459
|
+
*/
|
|
4460
|
+
'X-Workspace'?: string;
|
|
4461
|
+
};
|
|
4462
|
+
path: {
|
|
4463
|
+
/**
|
|
4464
|
+
* Provider
|
|
4465
|
+
*/
|
|
4466
|
+
provider: string;
|
|
4467
|
+
/**
|
|
4468
|
+
* Chat Id
|
|
4469
|
+
*/
|
|
4470
|
+
chat_id: string;
|
|
4471
|
+
};
|
|
4472
|
+
query?: {
|
|
4473
|
+
/**
|
|
4474
|
+
* Include Details
|
|
4475
|
+
*/
|
|
4476
|
+
include_details?: boolean;
|
|
4477
|
+
};
|
|
4478
|
+
url: '/ocxp/prototype/chat/{provider}/{chat_id}/stored-versions';
|
|
4479
|
+
};
|
|
4480
|
+
type GetStoredVersionsErrors = {
|
|
3419
4481
|
/**
|
|
3420
|
-
*
|
|
4482
|
+
* Validation Error
|
|
3421
4483
|
*/
|
|
3422
|
-
|
|
4484
|
+
422: HttpValidationError;
|
|
3423
4485
|
/**
|
|
3424
|
-
*
|
|
4486
|
+
* Rate limit exceeded
|
|
3425
4487
|
*/
|
|
3426
|
-
|
|
4488
|
+
429: unknown;
|
|
4489
|
+
};
|
|
4490
|
+
type GetStoredVersionsResponses = {
|
|
3427
4491
|
/**
|
|
3428
|
-
*
|
|
4492
|
+
* Successful Response
|
|
3429
4493
|
*/
|
|
3430
|
-
|
|
4494
|
+
200: PrototypeStoredVersionsResponse;
|
|
3431
4495
|
};
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
4496
|
+
type GetPrototypeChatData = {
|
|
4497
|
+
body?: never;
|
|
4498
|
+
headers?: {
|
|
4499
|
+
/**
|
|
4500
|
+
* X-Workspace
|
|
4501
|
+
*/
|
|
4502
|
+
'X-Workspace'?: string;
|
|
4503
|
+
};
|
|
4504
|
+
path: {
|
|
4505
|
+
/**
|
|
4506
|
+
* Provider
|
|
4507
|
+
*/
|
|
4508
|
+
provider: string;
|
|
4509
|
+
/**
|
|
4510
|
+
* Chat Id
|
|
4511
|
+
*/
|
|
4512
|
+
chat_id: string;
|
|
4513
|
+
};
|
|
4514
|
+
query?: {
|
|
4515
|
+
/**
|
|
4516
|
+
* Project Id
|
|
4517
|
+
*/
|
|
4518
|
+
project_id?: string | null;
|
|
4519
|
+
/**
|
|
4520
|
+
* Version Id
|
|
4521
|
+
*/
|
|
4522
|
+
version_id?: string | null;
|
|
4523
|
+
};
|
|
4524
|
+
url: '/ocxp/prototype/chat/{provider}/{chat_id}';
|
|
4525
|
+
};
|
|
4526
|
+
type GetPrototypeChatErrors = {
|
|
3438
4527
|
/**
|
|
3439
|
-
*
|
|
4528
|
+
* Chat not found
|
|
3440
4529
|
*/
|
|
3441
|
-
|
|
4530
|
+
404: unknown;
|
|
3442
4531
|
/**
|
|
3443
|
-
*
|
|
4532
|
+
* Validation Error
|
|
3444
4533
|
*/
|
|
3445
|
-
|
|
4534
|
+
422: HttpValidationError;
|
|
4535
|
+
/**
|
|
4536
|
+
* Rate limit exceeded
|
|
4537
|
+
*/
|
|
4538
|
+
429: unknown;
|
|
3446
4539
|
};
|
|
3447
|
-
|
|
3448
|
-
* WorkspacesResponse
|
|
3449
|
-
*
|
|
3450
|
-
* Workspaces list response.
|
|
3451
|
-
*/
|
|
3452
|
-
type WorkspacesResponse = {
|
|
4540
|
+
type GetPrototypeChatResponses = {
|
|
3453
4541
|
/**
|
|
3454
|
-
*
|
|
4542
|
+
* Chat data returned
|
|
3455
4543
|
*/
|
|
3456
|
-
|
|
4544
|
+
200: PrototypeChatGetResponse;
|
|
3457
4545
|
};
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
4546
|
+
type SyncPrototypeChatAsyncData = {
|
|
4547
|
+
body: PrototypeChatSyncAsyncRequest;
|
|
4548
|
+
headers?: {
|
|
4549
|
+
/**
|
|
4550
|
+
* X-Workspace
|
|
4551
|
+
*/
|
|
4552
|
+
'X-Workspace'?: string;
|
|
4553
|
+
};
|
|
4554
|
+
path?: never;
|
|
4555
|
+
query?: never;
|
|
4556
|
+
url: '/ocxp/prototype/chat/sync-async';
|
|
4557
|
+
};
|
|
4558
|
+
type SyncPrototypeChatAsyncErrors = {
|
|
3462
4559
|
/**
|
|
3463
|
-
*
|
|
4560
|
+
* Validation Error
|
|
3464
4561
|
*/
|
|
3465
|
-
|
|
4562
|
+
422: HttpValidationError;
|
|
3466
4563
|
/**
|
|
3467
|
-
*
|
|
4564
|
+
* Rate limit exceeded
|
|
3468
4565
|
*/
|
|
3469
|
-
|
|
4566
|
+
429: unknown;
|
|
4567
|
+
};
|
|
4568
|
+
type SyncPrototypeChatAsyncResponses = {
|
|
3470
4569
|
/**
|
|
3471
|
-
*
|
|
4570
|
+
* Successful Response
|
|
3472
4571
|
*/
|
|
3473
|
-
|
|
4572
|
+
202: PrototypeChatSyncAsyncResponse;
|
|
4573
|
+
};
|
|
4574
|
+
type GetSyncStatusData = {
|
|
4575
|
+
body?: never;
|
|
4576
|
+
path: {
|
|
4577
|
+
/**
|
|
4578
|
+
* Job Id
|
|
4579
|
+
*/
|
|
4580
|
+
job_id: string;
|
|
4581
|
+
};
|
|
4582
|
+
query?: never;
|
|
4583
|
+
url: '/ocxp/prototype/chat/sync-status/{job_id}';
|
|
4584
|
+
};
|
|
4585
|
+
type GetSyncStatusErrors = {
|
|
3474
4586
|
/**
|
|
3475
|
-
*
|
|
4587
|
+
* Job not found
|
|
3476
4588
|
*/
|
|
3477
|
-
|
|
4589
|
+
404: unknown;
|
|
3478
4590
|
/**
|
|
3479
|
-
*
|
|
4591
|
+
* Validation Error
|
|
3480
4592
|
*/
|
|
3481
|
-
|
|
4593
|
+
422: HttpValidationError;
|
|
3482
4594
|
/**
|
|
3483
|
-
*
|
|
4595
|
+
* Rate limit exceeded
|
|
3484
4596
|
*/
|
|
3485
|
-
|
|
4597
|
+
429: unknown;
|
|
4598
|
+
};
|
|
4599
|
+
type GetSyncStatusResponses = {
|
|
3486
4600
|
/**
|
|
3487
|
-
*
|
|
4601
|
+
* Job status returned
|
|
3488
4602
|
*/
|
|
3489
|
-
|
|
4603
|
+
200: PrototypeSyncJobStatusResponse;
|
|
4604
|
+
};
|
|
4605
|
+
type ListSessionsData = {
|
|
4606
|
+
body?: never;
|
|
4607
|
+
headers?: {
|
|
4608
|
+
/**
|
|
4609
|
+
* X-Workspace
|
|
4610
|
+
*/
|
|
4611
|
+
'X-Workspace'?: string;
|
|
4612
|
+
};
|
|
4613
|
+
path?: never;
|
|
4614
|
+
query?: {
|
|
4615
|
+
/**
|
|
4616
|
+
* Limit
|
|
4617
|
+
*
|
|
4618
|
+
* Maximum number of sessions to return
|
|
4619
|
+
*/
|
|
4620
|
+
limit?: number;
|
|
4621
|
+
/**
|
|
4622
|
+
* Offset
|
|
4623
|
+
*
|
|
4624
|
+
* Number of sessions to skip (for pagination)
|
|
4625
|
+
*/
|
|
4626
|
+
offset?: number;
|
|
4627
|
+
/**
|
|
4628
|
+
* Status
|
|
4629
|
+
*
|
|
4630
|
+
* Filter by status: active, archived
|
|
4631
|
+
*/
|
|
4632
|
+
status?: string;
|
|
4633
|
+
/**
|
|
4634
|
+
* Order By
|
|
4635
|
+
*
|
|
4636
|
+
* Field to order by (created_at, updated_at)
|
|
4637
|
+
*/
|
|
4638
|
+
order_by?: string | null;
|
|
4639
|
+
/**
|
|
4640
|
+
* Order Dir
|
|
4641
|
+
*
|
|
4642
|
+
* Sort direction (asc, desc)
|
|
4643
|
+
*/
|
|
4644
|
+
order_dir?: string;
|
|
4645
|
+
};
|
|
4646
|
+
url: '/ocxp/session';
|
|
4647
|
+
};
|
|
4648
|
+
type ListSessionsErrors = {
|
|
3490
4649
|
/**
|
|
3491
|
-
*
|
|
4650
|
+
* Validation Error
|
|
3492
4651
|
*/
|
|
3493
|
-
|
|
4652
|
+
422: HttpValidationError;
|
|
4653
|
+
/**
|
|
4654
|
+
* Rate limit exceeded
|
|
4655
|
+
*/
|
|
4656
|
+
429: unknown;
|
|
3494
4657
|
};
|
|
3495
|
-
type
|
|
3496
|
-
|
|
4658
|
+
type ListSessionsResponses = {
|
|
4659
|
+
/**
|
|
4660
|
+
* List of sessions returned successfully
|
|
4661
|
+
*/
|
|
4662
|
+
200: SessionListResponse;
|
|
4663
|
+
};
|
|
4664
|
+
type GetSessionMessagesData = {
|
|
4665
|
+
body?: never;
|
|
3497
4666
|
headers?: {
|
|
3498
4667
|
/**
|
|
3499
4668
|
* X-Workspace
|
|
@@ -3502,20 +4671,25 @@ type BulkReadContentData = {
|
|
|
3502
4671
|
};
|
|
3503
4672
|
path: {
|
|
3504
4673
|
/**
|
|
3505
|
-
*
|
|
4674
|
+
* Session Id
|
|
4675
|
+
*/
|
|
4676
|
+
session_id: string;
|
|
4677
|
+
};
|
|
4678
|
+
query?: {
|
|
4679
|
+
/**
|
|
4680
|
+
* Limit
|
|
3506
4681
|
*
|
|
3507
|
-
*
|
|
4682
|
+
* Maximum number of messages to return
|
|
3508
4683
|
*/
|
|
3509
|
-
|
|
4684
|
+
limit?: number;
|
|
3510
4685
|
};
|
|
3511
|
-
|
|
3512
|
-
url: '/ocxp/context/{content_type}/bulk/read';
|
|
4686
|
+
url: '/ocxp/session/{session_id}/messages';
|
|
3513
4687
|
};
|
|
3514
|
-
type
|
|
4688
|
+
type GetSessionMessagesErrors = {
|
|
3515
4689
|
/**
|
|
3516
|
-
*
|
|
4690
|
+
* Session not found
|
|
3517
4691
|
*/
|
|
3518
|
-
|
|
4692
|
+
404: unknown;
|
|
3519
4693
|
/**
|
|
3520
4694
|
* Validation Error
|
|
3521
4695
|
*/
|
|
@@ -3525,14 +4699,14 @@ type BulkReadContentErrors = {
|
|
|
3525
4699
|
*/
|
|
3526
4700
|
429: unknown;
|
|
3527
4701
|
};
|
|
3528
|
-
type
|
|
4702
|
+
type GetSessionMessagesResponses = {
|
|
3529
4703
|
/**
|
|
3530
|
-
*
|
|
4704
|
+
* Messages returned successfully
|
|
3531
4705
|
*/
|
|
3532
|
-
200:
|
|
4706
|
+
200: SessionMessagesResponse;
|
|
3533
4707
|
};
|
|
3534
|
-
type
|
|
3535
|
-
body:
|
|
4708
|
+
type UpdateSessionMetadataData = {
|
|
4709
|
+
body: SessionMetadataUpdate;
|
|
3536
4710
|
headers?: {
|
|
3537
4711
|
/**
|
|
3538
4712
|
* X-Workspace
|
|
@@ -3541,20 +4715,14 @@ type BulkWriteContentData = {
|
|
|
3541
4715
|
};
|
|
3542
4716
|
path: {
|
|
3543
4717
|
/**
|
|
3544
|
-
*
|
|
3545
|
-
*
|
|
3546
|
-
* Content type (mission, project, context, code, etc.)
|
|
4718
|
+
* Session Id
|
|
3547
4719
|
*/
|
|
3548
|
-
|
|
4720
|
+
session_id: string;
|
|
3549
4721
|
};
|
|
3550
4722
|
query?: never;
|
|
3551
|
-
url: '/ocxp/
|
|
4723
|
+
url: '/ocxp/session/{session_id}/metadata';
|
|
3552
4724
|
};
|
|
3553
|
-
type
|
|
3554
|
-
/**
|
|
3555
|
-
* Validation error
|
|
3556
|
-
*/
|
|
3557
|
-
400: unknown;
|
|
4725
|
+
type UpdateSessionMetadataErrors = {
|
|
3558
4726
|
/**
|
|
3559
4727
|
* Validation Error
|
|
3560
4728
|
*/
|
|
@@ -3564,14 +4732,14 @@ type BulkWriteContentErrors = {
|
|
|
3564
4732
|
*/
|
|
3565
4733
|
429: unknown;
|
|
3566
4734
|
};
|
|
3567
|
-
type
|
|
4735
|
+
type UpdateSessionMetadataResponses = {
|
|
3568
4736
|
/**
|
|
3569
|
-
*
|
|
4737
|
+
* Session metadata updated successfully
|
|
3570
4738
|
*/
|
|
3571
|
-
200:
|
|
4739
|
+
200: SessionResponse;
|
|
3572
4740
|
};
|
|
3573
|
-
type
|
|
3574
|
-
body:
|
|
4741
|
+
type ForkSessionData = {
|
|
4742
|
+
body: ForkRequest;
|
|
3575
4743
|
headers?: {
|
|
3576
4744
|
/**
|
|
3577
4745
|
* X-Workspace
|
|
@@ -3580,20 +4748,18 @@ type BulkDeleteContentData = {
|
|
|
3580
4748
|
};
|
|
3581
4749
|
path: {
|
|
3582
4750
|
/**
|
|
3583
|
-
*
|
|
3584
|
-
*
|
|
3585
|
-
* Content type (mission, project, context, code, etc.)
|
|
4751
|
+
* Session Id
|
|
3586
4752
|
*/
|
|
3587
|
-
|
|
4753
|
+
session_id: string;
|
|
3588
4754
|
};
|
|
3589
4755
|
query?: never;
|
|
3590
|
-
url: '/ocxp/
|
|
4756
|
+
url: '/ocxp/session/{session_id}/fork';
|
|
3591
4757
|
};
|
|
3592
|
-
type
|
|
4758
|
+
type ForkSessionErrors = {
|
|
3593
4759
|
/**
|
|
3594
|
-
*
|
|
4760
|
+
* Parent session not found
|
|
3595
4761
|
*/
|
|
3596
|
-
|
|
4762
|
+
404: unknown;
|
|
3597
4763
|
/**
|
|
3598
4764
|
* Validation Error
|
|
3599
4765
|
*/
|
|
@@ -3603,50 +4769,34 @@ type BulkDeleteContentErrors = {
|
|
|
3603
4769
|
*/
|
|
3604
4770
|
429: unknown;
|
|
3605
4771
|
};
|
|
3606
|
-
type
|
|
4772
|
+
type ForkSessionResponses = {
|
|
3607
4773
|
/**
|
|
3608
|
-
*
|
|
4774
|
+
* Session forked successfully
|
|
3609
4775
|
*/
|
|
3610
|
-
|
|
4776
|
+
201: SessionForkResponse;
|
|
3611
4777
|
};
|
|
3612
|
-
type
|
|
4778
|
+
type ArchiveSessionData = {
|
|
3613
4779
|
body?: never;
|
|
3614
|
-
|
|
3615
|
-
query?: {
|
|
4780
|
+
headers?: {
|
|
3616
4781
|
/**
|
|
3617
|
-
*
|
|
4782
|
+
* X-Workspace
|
|
3618
4783
|
*/
|
|
3619
|
-
|
|
4784
|
+
'X-Workspace'?: string;
|
|
4785
|
+
};
|
|
4786
|
+
path: {
|
|
4787
|
+
/**
|
|
4788
|
+
* Session Id
|
|
4789
|
+
*/
|
|
4790
|
+
session_id: string;
|
|
3620
4791
|
};
|
|
3621
|
-
url: '/ocxp/prototype/chat/list';
|
|
3622
|
-
};
|
|
3623
|
-
type ListPrototypeChatsErrors = {
|
|
3624
|
-
/**
|
|
3625
|
-
* Validation Error
|
|
3626
|
-
*/
|
|
3627
|
-
422: HttpValidationError;
|
|
3628
|
-
/**
|
|
3629
|
-
* Rate limit exceeded
|
|
3630
|
-
*/
|
|
3631
|
-
429: unknown;
|
|
3632
|
-
};
|
|
3633
|
-
type ListPrototypeChatsResponses = {
|
|
3634
|
-
/**
|
|
3635
|
-
* Successful Response
|
|
3636
|
-
*/
|
|
3637
|
-
200: PrototypeChatListResponse;
|
|
3638
|
-
};
|
|
3639
|
-
type PreviewPrototypeChatData = {
|
|
3640
|
-
body: PrototypeChatPreviewRequest;
|
|
3641
|
-
path?: never;
|
|
3642
4792
|
query?: never;
|
|
3643
|
-
url: '/ocxp/
|
|
4793
|
+
url: '/ocxp/session/{session_id}/archive';
|
|
3644
4794
|
};
|
|
3645
|
-
type
|
|
4795
|
+
type ArchiveSessionErrors = {
|
|
3646
4796
|
/**
|
|
3647
|
-
*
|
|
4797
|
+
* Session not found
|
|
3648
4798
|
*/
|
|
3649
|
-
|
|
4799
|
+
404: unknown;
|
|
3650
4800
|
/**
|
|
3651
4801
|
* Validation Error
|
|
3652
4802
|
*/
|
|
@@ -3656,14 +4806,14 @@ type PreviewPrototypeChatErrors = {
|
|
|
3656
4806
|
*/
|
|
3657
4807
|
429: unknown;
|
|
3658
4808
|
};
|
|
3659
|
-
type
|
|
4809
|
+
type ArchiveSessionResponses = {
|
|
3660
4810
|
/**
|
|
3661
|
-
*
|
|
4811
|
+
* Session archived successfully
|
|
3662
4812
|
*/
|
|
3663
|
-
200:
|
|
4813
|
+
200: unknown;
|
|
3664
4814
|
};
|
|
3665
|
-
type
|
|
3666
|
-
body
|
|
4815
|
+
type ListProjectsData = {
|
|
4816
|
+
body?: never;
|
|
3667
4817
|
headers?: {
|
|
3668
4818
|
/**
|
|
3669
4819
|
* X-Workspace
|
|
@@ -3671,14 +4821,47 @@ type LinkPrototypeChatData = {
|
|
|
3671
4821
|
'X-Workspace'?: string;
|
|
3672
4822
|
};
|
|
3673
4823
|
path?: never;
|
|
3674
|
-
query?:
|
|
3675
|
-
|
|
4824
|
+
query?: {
|
|
4825
|
+
/**
|
|
4826
|
+
* Project Ids
|
|
4827
|
+
*
|
|
4828
|
+
* Filter by specific project IDs
|
|
4829
|
+
*/
|
|
4830
|
+
project_ids?: Array<string> | null;
|
|
4831
|
+
/**
|
|
4832
|
+
* Include Metadata
|
|
4833
|
+
*
|
|
4834
|
+
* Include full metadata (description, repos, databases)
|
|
4835
|
+
*/
|
|
4836
|
+
include_metadata?: boolean;
|
|
4837
|
+
/**
|
|
4838
|
+
* Limit
|
|
4839
|
+
*
|
|
4840
|
+
* Maximum number of projects to return
|
|
4841
|
+
*/
|
|
4842
|
+
limit?: number;
|
|
4843
|
+
/**
|
|
4844
|
+
* Offset
|
|
4845
|
+
*
|
|
4846
|
+
* Number of projects to skip (for pagination)
|
|
4847
|
+
*/
|
|
4848
|
+
offset?: number;
|
|
4849
|
+
/**
|
|
4850
|
+
* Order By
|
|
4851
|
+
*
|
|
4852
|
+
* Field to order by (created_at, updated_at)
|
|
4853
|
+
*/
|
|
4854
|
+
order_by?: string | null;
|
|
4855
|
+
/**
|
|
4856
|
+
* Order Dir
|
|
4857
|
+
*
|
|
4858
|
+
* Sort direction (asc, desc)
|
|
4859
|
+
*/
|
|
4860
|
+
order_dir?: string;
|
|
4861
|
+
};
|
|
4862
|
+
url: '/ocxp/project';
|
|
3676
4863
|
};
|
|
3677
|
-
type
|
|
3678
|
-
/**
|
|
3679
|
-
* Validation error
|
|
3680
|
-
*/
|
|
3681
|
-
400: unknown;
|
|
4864
|
+
type ListProjectsErrors = {
|
|
3682
4865
|
/**
|
|
3683
4866
|
* Validation Error
|
|
3684
4867
|
*/
|
|
@@ -3688,14 +4871,14 @@ type LinkPrototypeChatErrors = {
|
|
|
3688
4871
|
*/
|
|
3689
4872
|
429: unknown;
|
|
3690
4873
|
};
|
|
3691
|
-
type
|
|
4874
|
+
type ListProjectsResponses = {
|
|
3692
4875
|
/**
|
|
3693
|
-
*
|
|
4876
|
+
* List of projects returned successfully
|
|
3694
4877
|
*/
|
|
3695
|
-
200:
|
|
4878
|
+
200: ProjectListResponse;
|
|
3696
4879
|
};
|
|
3697
|
-
type
|
|
3698
|
-
body:
|
|
4880
|
+
type CreateProjectData = {
|
|
4881
|
+
body: ProjectCreate;
|
|
3699
4882
|
headers?: {
|
|
3700
4883
|
/**
|
|
3701
4884
|
* X-Workspace
|
|
@@ -3704,9 +4887,9 @@ type SyncPrototypeChatData = {
|
|
|
3704
4887
|
};
|
|
3705
4888
|
path?: never;
|
|
3706
4889
|
query?: never;
|
|
3707
|
-
url: '/ocxp/
|
|
4890
|
+
url: '/ocxp/project';
|
|
3708
4891
|
};
|
|
3709
|
-
type
|
|
4892
|
+
type CreateProjectErrors = {
|
|
3710
4893
|
/**
|
|
3711
4894
|
* Validation Error
|
|
3712
4895
|
*/
|
|
@@ -3716,13 +4899,13 @@ type SyncPrototypeChatErrors = {
|
|
|
3716
4899
|
*/
|
|
3717
4900
|
429: unknown;
|
|
3718
4901
|
};
|
|
3719
|
-
type
|
|
4902
|
+
type CreateProjectResponses = {
|
|
3720
4903
|
/**
|
|
3721
|
-
*
|
|
4904
|
+
* Project created successfully
|
|
3722
4905
|
*/
|
|
3723
|
-
|
|
4906
|
+
201: ProjectResponse;
|
|
3724
4907
|
};
|
|
3725
|
-
type
|
|
4908
|
+
type DeleteProjectData = {
|
|
3726
4909
|
body?: never;
|
|
3727
4910
|
headers?: {
|
|
3728
4911
|
/**
|
|
@@ -3732,23 +4915,20 @@ type GetStoredVersionsData = {
|
|
|
3732
4915
|
};
|
|
3733
4916
|
path: {
|
|
3734
4917
|
/**
|
|
3735
|
-
*
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
/**
|
|
3739
|
-
* Chat Id
|
|
3740
|
-
*/
|
|
3741
|
-
chat_id: string;
|
|
3742
|
-
};
|
|
3743
|
-
query?: {
|
|
3744
|
-
/**
|
|
3745
|
-
* Include Details
|
|
4918
|
+
* Project Id
|
|
4919
|
+
*
|
|
4920
|
+
* Project ID
|
|
3746
4921
|
*/
|
|
3747
|
-
|
|
4922
|
+
project_id: string;
|
|
3748
4923
|
};
|
|
3749
|
-
|
|
4924
|
+
query?: never;
|
|
4925
|
+
url: '/ocxp/project/{project_id}';
|
|
3750
4926
|
};
|
|
3751
|
-
type
|
|
4927
|
+
type DeleteProjectErrors = {
|
|
4928
|
+
/**
|
|
4929
|
+
* Project not found
|
|
4930
|
+
*/
|
|
4931
|
+
404: unknown;
|
|
3752
4932
|
/**
|
|
3753
4933
|
* Validation Error
|
|
3754
4934
|
*/
|
|
@@ -3758,13 +4938,13 @@ type GetStoredVersionsErrors = {
|
|
|
3758
4938
|
*/
|
|
3759
4939
|
429: unknown;
|
|
3760
4940
|
};
|
|
3761
|
-
type
|
|
4941
|
+
type DeleteProjectResponses = {
|
|
3762
4942
|
/**
|
|
3763
|
-
*
|
|
4943
|
+
* Project deleted successfully
|
|
3764
4944
|
*/
|
|
3765
|
-
200:
|
|
4945
|
+
200: unknown;
|
|
3766
4946
|
};
|
|
3767
|
-
type
|
|
4947
|
+
type GetProjectData = {
|
|
3768
4948
|
body?: never;
|
|
3769
4949
|
headers?: {
|
|
3770
4950
|
/**
|
|
@@ -3773,30 +4953,19 @@ type GetPrototypeChatData = {
|
|
|
3773
4953
|
'X-Workspace'?: string;
|
|
3774
4954
|
};
|
|
3775
4955
|
path: {
|
|
3776
|
-
/**
|
|
3777
|
-
* Provider
|
|
3778
|
-
*/
|
|
3779
|
-
provider: string;
|
|
3780
|
-
/**
|
|
3781
|
-
* Chat Id
|
|
3782
|
-
*/
|
|
3783
|
-
chat_id: string;
|
|
3784
|
-
};
|
|
3785
|
-
query?: {
|
|
3786
4956
|
/**
|
|
3787
4957
|
* Project Id
|
|
4958
|
+
*
|
|
4959
|
+
* Project ID
|
|
3788
4960
|
*/
|
|
3789
|
-
project_id
|
|
3790
|
-
/**
|
|
3791
|
-
* Version Id
|
|
3792
|
-
*/
|
|
3793
|
-
version_id?: string | null;
|
|
4961
|
+
project_id: string;
|
|
3794
4962
|
};
|
|
3795
|
-
|
|
4963
|
+
query?: never;
|
|
4964
|
+
url: '/ocxp/project/{project_id}';
|
|
3796
4965
|
};
|
|
3797
|
-
type
|
|
4966
|
+
type GetProjectErrors = {
|
|
3798
4967
|
/**
|
|
3799
|
-
*
|
|
4968
|
+
* Project not found
|
|
3800
4969
|
*/
|
|
3801
4970
|
404: unknown;
|
|
3802
4971
|
/**
|
|
@@ -3808,25 +4977,36 @@ type GetPrototypeChatErrors = {
|
|
|
3808
4977
|
*/
|
|
3809
4978
|
429: unknown;
|
|
3810
4979
|
};
|
|
3811
|
-
type
|
|
4980
|
+
type GetProjectResponses = {
|
|
3812
4981
|
/**
|
|
3813
|
-
*
|
|
4982
|
+
* Project found and returned
|
|
3814
4983
|
*/
|
|
3815
|
-
200:
|
|
4984
|
+
200: ProjectResponse;
|
|
3816
4985
|
};
|
|
3817
|
-
type
|
|
3818
|
-
body:
|
|
4986
|
+
type UpdateProjectData = {
|
|
4987
|
+
body: ProjectUpdate;
|
|
3819
4988
|
headers?: {
|
|
3820
4989
|
/**
|
|
3821
4990
|
* X-Workspace
|
|
3822
4991
|
*/
|
|
3823
4992
|
'X-Workspace'?: string;
|
|
3824
4993
|
};
|
|
3825
|
-
path
|
|
4994
|
+
path: {
|
|
4995
|
+
/**
|
|
4996
|
+
* Project Id
|
|
4997
|
+
*
|
|
4998
|
+
* Project ID
|
|
4999
|
+
*/
|
|
5000
|
+
project_id: string;
|
|
5001
|
+
};
|
|
3826
5002
|
query?: never;
|
|
3827
|
-
url: '/ocxp/
|
|
5003
|
+
url: '/ocxp/project/{project_id}';
|
|
3828
5004
|
};
|
|
3829
|
-
type
|
|
5005
|
+
type UpdateProjectErrors = {
|
|
5006
|
+
/**
|
|
5007
|
+
* Project not found
|
|
5008
|
+
*/
|
|
5009
|
+
404: unknown;
|
|
3830
5010
|
/**
|
|
3831
5011
|
* Validation Error
|
|
3832
5012
|
*/
|
|
@@ -3836,26 +5016,34 @@ type SyncPrototypeChatAsyncErrors = {
|
|
|
3836
5016
|
*/
|
|
3837
5017
|
429: unknown;
|
|
3838
5018
|
};
|
|
3839
|
-
type
|
|
5019
|
+
type UpdateProjectResponses = {
|
|
3840
5020
|
/**
|
|
3841
|
-
*
|
|
5021
|
+
* Project updated successfully
|
|
3842
5022
|
*/
|
|
3843
|
-
|
|
5023
|
+
200: ProjectResponse;
|
|
3844
5024
|
};
|
|
3845
|
-
type
|
|
3846
|
-
body
|
|
5025
|
+
type AddLinkedRepoData = {
|
|
5026
|
+
body: AddRepoRequest;
|
|
5027
|
+
headers?: {
|
|
5028
|
+
/**
|
|
5029
|
+
* X-Workspace
|
|
5030
|
+
*/
|
|
5031
|
+
'X-Workspace'?: string;
|
|
5032
|
+
};
|
|
3847
5033
|
path: {
|
|
3848
5034
|
/**
|
|
3849
|
-
*
|
|
5035
|
+
* Project Id
|
|
5036
|
+
*
|
|
5037
|
+
* Project ID
|
|
3850
5038
|
*/
|
|
3851
|
-
|
|
5039
|
+
project_id: string;
|
|
3852
5040
|
};
|
|
3853
5041
|
query?: never;
|
|
3854
|
-
url: '/ocxp/
|
|
5042
|
+
url: '/ocxp/project/{project_id}/repos';
|
|
3855
5043
|
};
|
|
3856
|
-
type
|
|
5044
|
+
type AddLinkedRepoErrors = {
|
|
3857
5045
|
/**
|
|
3858
|
-
*
|
|
5046
|
+
* Project not found
|
|
3859
5047
|
*/
|
|
3860
5048
|
404: unknown;
|
|
3861
5049
|
/**
|
|
@@ -3867,13 +5055,13 @@ type GetSyncStatusErrors = {
|
|
|
3867
5055
|
*/
|
|
3868
5056
|
429: unknown;
|
|
3869
5057
|
};
|
|
3870
|
-
type
|
|
5058
|
+
type AddLinkedRepoResponses = {
|
|
3871
5059
|
/**
|
|
3872
|
-
*
|
|
5060
|
+
* Repository linked successfully
|
|
3873
5061
|
*/
|
|
3874
|
-
200:
|
|
5062
|
+
200: ProjectResponse;
|
|
3875
5063
|
};
|
|
3876
|
-
type
|
|
5064
|
+
type RemoveLinkedRepoData = {
|
|
3877
5065
|
body?: never;
|
|
3878
5066
|
headers?: {
|
|
3879
5067
|
/**
|
|
@@ -3881,24 +5069,26 @@ type ListSessionsData = {
|
|
|
3881
5069
|
*/
|
|
3882
5070
|
'X-Workspace'?: string;
|
|
3883
5071
|
};
|
|
3884
|
-
path
|
|
3885
|
-
query?: {
|
|
5072
|
+
path: {
|
|
3886
5073
|
/**
|
|
3887
|
-
*
|
|
3888
|
-
*
|
|
3889
|
-
* Maximum number of sessions to return
|
|
5074
|
+
* Repo Id
|
|
3890
5075
|
*/
|
|
3891
|
-
|
|
5076
|
+
repo_id: string;
|
|
3892
5077
|
/**
|
|
3893
|
-
*
|
|
5078
|
+
* Project Id
|
|
3894
5079
|
*
|
|
3895
|
-
*
|
|
5080
|
+
* Project ID
|
|
3896
5081
|
*/
|
|
3897
|
-
|
|
5082
|
+
project_id: string;
|
|
3898
5083
|
};
|
|
3899
|
-
|
|
5084
|
+
query?: never;
|
|
5085
|
+
url: '/ocxp/project/{project_id}/repos/{repo_id}';
|
|
3900
5086
|
};
|
|
3901
|
-
type
|
|
5087
|
+
type RemoveLinkedRepoErrors = {
|
|
5088
|
+
/**
|
|
5089
|
+
* Project not found
|
|
5090
|
+
*/
|
|
5091
|
+
404: unknown;
|
|
3902
5092
|
/**
|
|
3903
5093
|
* Validation Error
|
|
3904
5094
|
*/
|
|
@@ -3908,14 +5098,14 @@ type ListSessionsErrors = {
|
|
|
3908
5098
|
*/
|
|
3909
5099
|
429: unknown;
|
|
3910
5100
|
};
|
|
3911
|
-
type
|
|
5101
|
+
type RemoveLinkedRepoResponses = {
|
|
3912
5102
|
/**
|
|
3913
|
-
*
|
|
5103
|
+
* Repository unlinked successfully
|
|
3914
5104
|
*/
|
|
3915
|
-
200:
|
|
5105
|
+
200: ProjectResponse;
|
|
3916
5106
|
};
|
|
3917
|
-
type
|
|
3918
|
-
body
|
|
5107
|
+
type SetDefaultRepoData = {
|
|
5108
|
+
body: SetDefaultRepoRequest;
|
|
3919
5109
|
headers?: {
|
|
3920
5110
|
/**
|
|
3921
5111
|
* X-Workspace
|
|
@@ -3924,23 +5114,18 @@ type GetSessionMessagesData = {
|
|
|
3924
5114
|
};
|
|
3925
5115
|
path: {
|
|
3926
5116
|
/**
|
|
3927
|
-
*
|
|
3928
|
-
*/
|
|
3929
|
-
session_id: string;
|
|
3930
|
-
};
|
|
3931
|
-
query?: {
|
|
3932
|
-
/**
|
|
3933
|
-
* Limit
|
|
5117
|
+
* Project Id
|
|
3934
5118
|
*
|
|
3935
|
-
*
|
|
5119
|
+
* Project ID
|
|
3936
5120
|
*/
|
|
3937
|
-
|
|
5121
|
+
project_id: string;
|
|
3938
5122
|
};
|
|
3939
|
-
|
|
5123
|
+
query?: never;
|
|
5124
|
+
url: '/ocxp/project/{project_id}/default-repo';
|
|
3940
5125
|
};
|
|
3941
|
-
type
|
|
5126
|
+
type SetDefaultRepoErrors = {
|
|
3942
5127
|
/**
|
|
3943
|
-
*
|
|
5128
|
+
* Project not found
|
|
3944
5129
|
*/
|
|
3945
5130
|
404: unknown;
|
|
3946
5131
|
/**
|
|
@@ -3952,14 +5137,14 @@ type GetSessionMessagesErrors = {
|
|
|
3952
5137
|
*/
|
|
3953
5138
|
429: unknown;
|
|
3954
5139
|
};
|
|
3955
|
-
type
|
|
5140
|
+
type SetDefaultRepoResponses = {
|
|
3956
5141
|
/**
|
|
3957
|
-
*
|
|
5142
|
+
* Default repository set successfully
|
|
3958
5143
|
*/
|
|
3959
|
-
200:
|
|
5144
|
+
200: ProjectResponse;
|
|
3960
5145
|
};
|
|
3961
|
-
type
|
|
3962
|
-
body
|
|
5146
|
+
type GetContextReposData = {
|
|
5147
|
+
body?: never;
|
|
3963
5148
|
headers?: {
|
|
3964
5149
|
/**
|
|
3965
5150
|
* X-Workspace
|
|
@@ -3968,14 +5153,20 @@ type UpdateSessionMetadataData = {
|
|
|
3968
5153
|
};
|
|
3969
5154
|
path: {
|
|
3970
5155
|
/**
|
|
3971
|
-
*
|
|
5156
|
+
* Project Id
|
|
5157
|
+
*
|
|
5158
|
+
* Project ID
|
|
3972
5159
|
*/
|
|
3973
|
-
|
|
5160
|
+
project_id: string;
|
|
3974
5161
|
};
|
|
3975
5162
|
query?: never;
|
|
3976
|
-
url: '/ocxp/
|
|
5163
|
+
url: '/ocxp/project/{project_id}/context-repos';
|
|
3977
5164
|
};
|
|
3978
|
-
type
|
|
5165
|
+
type GetContextReposErrors = {
|
|
5166
|
+
/**
|
|
5167
|
+
* Project not found
|
|
5168
|
+
*/
|
|
5169
|
+
404: unknown;
|
|
3979
5170
|
/**
|
|
3980
5171
|
* Validation Error
|
|
3981
5172
|
*/
|
|
@@ -3985,14 +5176,14 @@ type UpdateSessionMetadataErrors = {
|
|
|
3985
5176
|
*/
|
|
3986
5177
|
429: unknown;
|
|
3987
5178
|
};
|
|
3988
|
-
type
|
|
5179
|
+
type GetContextReposResponses = {
|
|
3989
5180
|
/**
|
|
3990
|
-
*
|
|
5181
|
+
* Context repositories returned
|
|
3991
5182
|
*/
|
|
3992
|
-
200:
|
|
5183
|
+
200: unknown;
|
|
3993
5184
|
};
|
|
3994
|
-
type
|
|
3995
|
-
body:
|
|
5185
|
+
type AddMissionData = {
|
|
5186
|
+
body: AddMissionRequest;
|
|
3996
5187
|
headers?: {
|
|
3997
5188
|
/**
|
|
3998
5189
|
* X-Workspace
|
|
@@ -4001,16 +5192,18 @@ type ForkSessionData = {
|
|
|
4001
5192
|
};
|
|
4002
5193
|
path: {
|
|
4003
5194
|
/**
|
|
4004
|
-
*
|
|
5195
|
+
* Project Id
|
|
5196
|
+
*
|
|
5197
|
+
* Project ID
|
|
4005
5198
|
*/
|
|
4006
|
-
|
|
5199
|
+
project_id: string;
|
|
4007
5200
|
};
|
|
4008
5201
|
query?: never;
|
|
4009
|
-
url: '/ocxp/
|
|
5202
|
+
url: '/ocxp/project/{project_id}/missions';
|
|
4010
5203
|
};
|
|
4011
|
-
type
|
|
5204
|
+
type AddMissionErrors = {
|
|
4012
5205
|
/**
|
|
4013
|
-
*
|
|
5206
|
+
* Project not found
|
|
4014
5207
|
*/
|
|
4015
5208
|
404: unknown;
|
|
4016
5209
|
/**
|
|
@@ -4022,13 +5215,13 @@ type ForkSessionErrors = {
|
|
|
4022
5215
|
*/
|
|
4023
5216
|
429: unknown;
|
|
4024
5217
|
};
|
|
4025
|
-
type
|
|
5218
|
+
type AddMissionResponses = {
|
|
4026
5219
|
/**
|
|
4027
|
-
*
|
|
5220
|
+
* Mission added successfully
|
|
4028
5221
|
*/
|
|
4029
|
-
|
|
5222
|
+
200: ProjectResponse;
|
|
4030
5223
|
};
|
|
4031
|
-
type
|
|
5224
|
+
type RemoveMissionData = {
|
|
4032
5225
|
body?: never;
|
|
4033
5226
|
headers?: {
|
|
4034
5227
|
/**
|
|
@@ -4038,16 +5231,22 @@ type ArchiveSessionData = {
|
|
|
4038
5231
|
};
|
|
4039
5232
|
path: {
|
|
4040
5233
|
/**
|
|
4041
|
-
*
|
|
5234
|
+
* Mission Id
|
|
4042
5235
|
*/
|
|
4043
|
-
|
|
5236
|
+
mission_id: string;
|
|
5237
|
+
/**
|
|
5238
|
+
* Project Id
|
|
5239
|
+
*
|
|
5240
|
+
* Project ID
|
|
5241
|
+
*/
|
|
5242
|
+
project_id: string;
|
|
4044
5243
|
};
|
|
4045
5244
|
query?: never;
|
|
4046
|
-
url: '/ocxp/
|
|
5245
|
+
url: '/ocxp/project/{project_id}/missions/{mission_id}';
|
|
4047
5246
|
};
|
|
4048
|
-
type
|
|
5247
|
+
type RemoveMissionErrors = {
|
|
4049
5248
|
/**
|
|
4050
|
-
*
|
|
5249
|
+
* Project not found
|
|
4051
5250
|
*/
|
|
4052
5251
|
404: unknown;
|
|
4053
5252
|
/**
|
|
@@ -4059,13 +5258,13 @@ type ArchiveSessionErrors = {
|
|
|
4059
5258
|
*/
|
|
4060
5259
|
429: unknown;
|
|
4061
5260
|
};
|
|
4062
|
-
type
|
|
5261
|
+
type RemoveMissionResponses = {
|
|
4063
5262
|
/**
|
|
4064
|
-
*
|
|
5263
|
+
* Mission removed successfully
|
|
4065
5264
|
*/
|
|
4066
|
-
200:
|
|
5265
|
+
200: ProjectResponse;
|
|
4067
5266
|
};
|
|
4068
|
-
type
|
|
5267
|
+
type GetProjectDatabasesData = {
|
|
4069
5268
|
body?: never;
|
|
4070
5269
|
headers?: {
|
|
4071
5270
|
/**
|
|
@@ -4073,30 +5272,22 @@ type ListProjectsData = {
|
|
|
4073
5272
|
*/
|
|
4074
5273
|
'X-Workspace'?: string;
|
|
4075
5274
|
};
|
|
4076
|
-
path
|
|
4077
|
-
query?: {
|
|
4078
|
-
/**
|
|
4079
|
-
* Project Ids
|
|
4080
|
-
*
|
|
4081
|
-
* Filter by specific project IDs
|
|
4082
|
-
*/
|
|
4083
|
-
project_ids?: Array<string> | null;
|
|
4084
|
-
/**
|
|
4085
|
-
* Include Metadata
|
|
4086
|
-
*
|
|
4087
|
-
* Include full metadata (description, repos, databases)
|
|
4088
|
-
*/
|
|
4089
|
-
include_metadata?: boolean;
|
|
5275
|
+
path: {
|
|
4090
5276
|
/**
|
|
4091
|
-
*
|
|
5277
|
+
* Project Id
|
|
4092
5278
|
*
|
|
4093
|
-
*
|
|
5279
|
+
* Project ID
|
|
4094
5280
|
*/
|
|
4095
|
-
|
|
5281
|
+
project_id: string;
|
|
4096
5282
|
};
|
|
4097
|
-
|
|
5283
|
+
query?: never;
|
|
5284
|
+
url: '/ocxp/project/{project_id}/databases';
|
|
4098
5285
|
};
|
|
4099
|
-
type
|
|
5286
|
+
type GetProjectDatabasesErrors = {
|
|
5287
|
+
/**
|
|
5288
|
+
* Project not found
|
|
5289
|
+
*/
|
|
5290
|
+
404: unknown;
|
|
4100
5291
|
/**
|
|
4101
5292
|
* Validation Error
|
|
4102
5293
|
*/
|
|
@@ -4106,25 +5297,36 @@ type ListProjectsErrors = {
|
|
|
4106
5297
|
*/
|
|
4107
5298
|
429: unknown;
|
|
4108
5299
|
};
|
|
4109
|
-
type
|
|
5300
|
+
type GetProjectDatabasesResponses = {
|
|
4110
5301
|
/**
|
|
4111
|
-
*
|
|
5302
|
+
* Database list returned
|
|
4112
5303
|
*/
|
|
4113
|
-
200:
|
|
5304
|
+
200: unknown;
|
|
4114
5305
|
};
|
|
4115
|
-
type
|
|
4116
|
-
body:
|
|
5306
|
+
type AddDatabaseData = {
|
|
5307
|
+
body: AddDatabaseRequest;
|
|
4117
5308
|
headers?: {
|
|
4118
5309
|
/**
|
|
4119
5310
|
* X-Workspace
|
|
4120
5311
|
*/
|
|
4121
5312
|
'X-Workspace'?: string;
|
|
4122
5313
|
};
|
|
4123
|
-
path
|
|
5314
|
+
path: {
|
|
5315
|
+
/**
|
|
5316
|
+
* Project Id
|
|
5317
|
+
*
|
|
5318
|
+
* Project ID
|
|
5319
|
+
*/
|
|
5320
|
+
project_id: string;
|
|
5321
|
+
};
|
|
4124
5322
|
query?: never;
|
|
4125
|
-
url: '/ocxp/project';
|
|
5323
|
+
url: '/ocxp/project/{project_id}/databases';
|
|
4126
5324
|
};
|
|
4127
|
-
type
|
|
5325
|
+
type AddDatabaseErrors = {
|
|
5326
|
+
/**
|
|
5327
|
+
* Project not found
|
|
5328
|
+
*/
|
|
5329
|
+
404: unknown;
|
|
4128
5330
|
/**
|
|
4129
5331
|
* Validation Error
|
|
4130
5332
|
*/
|
|
@@ -4134,13 +5336,13 @@ type CreateProjectErrors = {
|
|
|
4134
5336
|
*/
|
|
4135
5337
|
429: unknown;
|
|
4136
5338
|
};
|
|
4137
|
-
type
|
|
5339
|
+
type AddDatabaseResponses = {
|
|
4138
5340
|
/**
|
|
4139
|
-
*
|
|
5341
|
+
* Database linked successfully
|
|
4140
5342
|
*/
|
|
4141
|
-
|
|
5343
|
+
200: ProjectResponse;
|
|
4142
5344
|
};
|
|
4143
|
-
type
|
|
5345
|
+
type RemoveDatabaseData = {
|
|
4144
5346
|
body?: never;
|
|
4145
5347
|
headers?: {
|
|
4146
5348
|
/**
|
|
@@ -4149,6 +5351,10 @@ type DeleteProjectData = {
|
|
|
4149
5351
|
'X-Workspace'?: string;
|
|
4150
5352
|
};
|
|
4151
5353
|
path: {
|
|
5354
|
+
/**
|
|
5355
|
+
* Database Id
|
|
5356
|
+
*/
|
|
5357
|
+
database_id: string;
|
|
4152
5358
|
/**
|
|
4153
5359
|
* Project Id
|
|
4154
5360
|
*
|
|
@@ -4157,9 +5363,9 @@ type DeleteProjectData = {
|
|
|
4157
5363
|
project_id: string;
|
|
4158
5364
|
};
|
|
4159
5365
|
query?: never;
|
|
4160
|
-
url: '/ocxp/project/{project_id}';
|
|
5366
|
+
url: '/ocxp/project/{project_id}/databases/{database_id}';
|
|
4161
5367
|
};
|
|
4162
|
-
type
|
|
5368
|
+
type RemoveDatabaseErrors = {
|
|
4163
5369
|
/**
|
|
4164
5370
|
* Project not found
|
|
4165
5371
|
*/
|
|
@@ -4173,14 +5379,14 @@ type DeleteProjectErrors = {
|
|
|
4173
5379
|
*/
|
|
4174
5380
|
429: unknown;
|
|
4175
5381
|
};
|
|
4176
|
-
type
|
|
5382
|
+
type RemoveDatabaseResponses = {
|
|
4177
5383
|
/**
|
|
4178
|
-
*
|
|
5384
|
+
* Database unlinked successfully
|
|
4179
5385
|
*/
|
|
4180
|
-
200:
|
|
5386
|
+
200: ProjectResponse;
|
|
4181
5387
|
};
|
|
4182
|
-
type
|
|
4183
|
-
body
|
|
5388
|
+
type SetDefaultDatabaseData = {
|
|
5389
|
+
body: SetDefaultDatabaseRequest;
|
|
4184
5390
|
headers?: {
|
|
4185
5391
|
/**
|
|
4186
5392
|
* X-Workspace
|
|
@@ -4196,9 +5402,9 @@ type GetProjectData = {
|
|
|
4196
5402
|
project_id: string;
|
|
4197
5403
|
};
|
|
4198
5404
|
query?: never;
|
|
4199
|
-
url: '/ocxp/project/{project_id}';
|
|
5405
|
+
url: '/ocxp/project/{project_id}/default-database';
|
|
4200
5406
|
};
|
|
4201
|
-
type
|
|
5407
|
+
type SetDefaultDatabaseErrors = {
|
|
4202
5408
|
/**
|
|
4203
5409
|
* Project not found
|
|
4204
5410
|
*/
|
|
@@ -4212,14 +5418,14 @@ type GetProjectErrors = {
|
|
|
4212
5418
|
*/
|
|
4213
5419
|
429: unknown;
|
|
4214
5420
|
};
|
|
4215
|
-
type
|
|
5421
|
+
type SetDefaultDatabaseResponses = {
|
|
4216
5422
|
/**
|
|
4217
|
-
*
|
|
5423
|
+
* Default database set successfully
|
|
4218
5424
|
*/
|
|
4219
5425
|
200: ProjectResponse;
|
|
4220
5426
|
};
|
|
4221
|
-
type
|
|
4222
|
-
body:
|
|
5427
|
+
type RegenerateMissionData = {
|
|
5428
|
+
body: RegenerateMissionRequest;
|
|
4223
5429
|
headers?: {
|
|
4224
5430
|
/**
|
|
4225
5431
|
* X-Workspace
|
|
@@ -4228,18 +5434,18 @@ type UpdateProjectData = {
|
|
|
4228
5434
|
};
|
|
4229
5435
|
path: {
|
|
4230
5436
|
/**
|
|
4231
|
-
*
|
|
5437
|
+
* Mission Id
|
|
4232
5438
|
*
|
|
4233
|
-
*
|
|
5439
|
+
* Mission ID
|
|
4234
5440
|
*/
|
|
4235
|
-
|
|
5441
|
+
mission_id: string;
|
|
4236
5442
|
};
|
|
4237
5443
|
query?: never;
|
|
4238
|
-
url: '/ocxp/
|
|
5444
|
+
url: '/ocxp/mission/{mission_id}/regenerate';
|
|
4239
5445
|
};
|
|
4240
|
-
type
|
|
5446
|
+
type RegenerateMissionErrors = {
|
|
4241
5447
|
/**
|
|
4242
|
-
*
|
|
5448
|
+
* Mission not found
|
|
4243
5449
|
*/
|
|
4244
5450
|
404: unknown;
|
|
4245
5451
|
/**
|
|
@@ -4249,38 +5455,31 @@ type UpdateProjectErrors = {
|
|
|
4249
5455
|
/**
|
|
4250
5456
|
* Rate limit exceeded
|
|
4251
5457
|
*/
|
|
4252
|
-
429: unknown;
|
|
5458
|
+
429: unknown;
|
|
5459
|
+
/**
|
|
5460
|
+
* Archive or regeneration failed
|
|
5461
|
+
*/
|
|
5462
|
+
500: unknown;
|
|
4253
5463
|
};
|
|
4254
|
-
type
|
|
5464
|
+
type RegenerateMissionResponses = {
|
|
4255
5465
|
/**
|
|
4256
|
-
*
|
|
5466
|
+
* Regeneration started successfully
|
|
4257
5467
|
*/
|
|
4258
|
-
200:
|
|
5468
|
+
200: RegenerateMissionResponse;
|
|
4259
5469
|
};
|
|
4260
|
-
type
|
|
4261
|
-
body:
|
|
5470
|
+
type QueryKnowledgeBaseData = {
|
|
5471
|
+
body: KbQueryRequest;
|
|
4262
5472
|
headers?: {
|
|
4263
5473
|
/**
|
|
4264
5474
|
* X-Workspace
|
|
4265
5475
|
*/
|
|
4266
5476
|
'X-Workspace'?: string;
|
|
4267
5477
|
};
|
|
4268
|
-
path
|
|
4269
|
-
/**
|
|
4270
|
-
* Project Id
|
|
4271
|
-
*
|
|
4272
|
-
* Project ID
|
|
4273
|
-
*/
|
|
4274
|
-
project_id: string;
|
|
4275
|
-
};
|
|
5478
|
+
path?: never;
|
|
4276
5479
|
query?: never;
|
|
4277
|
-
url: '/ocxp/
|
|
5480
|
+
url: '/ocxp/kb/query';
|
|
4278
5481
|
};
|
|
4279
|
-
type
|
|
4280
|
-
/**
|
|
4281
|
-
* Project not found
|
|
4282
|
-
*/
|
|
4283
|
-
404: unknown;
|
|
5482
|
+
type QueryKnowledgeBaseErrors = {
|
|
4284
5483
|
/**
|
|
4285
5484
|
* Validation Error
|
|
4286
5485
|
*/
|
|
@@ -4290,40 +5489,25 @@ type AddLinkedRepoErrors = {
|
|
|
4290
5489
|
*/
|
|
4291
5490
|
429: unknown;
|
|
4292
5491
|
};
|
|
4293
|
-
type
|
|
5492
|
+
type QueryKnowledgeBaseResponses = {
|
|
4294
5493
|
/**
|
|
4295
|
-
*
|
|
5494
|
+
* Successful Response
|
|
4296
5495
|
*/
|
|
4297
|
-
200:
|
|
5496
|
+
200: KbQueryResponse;
|
|
4298
5497
|
};
|
|
4299
|
-
type
|
|
4300
|
-
body
|
|
5498
|
+
type RagKnowledgeBaseData = {
|
|
5499
|
+
body: RagRequest;
|
|
4301
5500
|
headers?: {
|
|
4302
5501
|
/**
|
|
4303
5502
|
* X-Workspace
|
|
4304
5503
|
*/
|
|
4305
5504
|
'X-Workspace'?: string;
|
|
4306
5505
|
};
|
|
4307
|
-
path
|
|
4308
|
-
/**
|
|
4309
|
-
* Repo Id
|
|
4310
|
-
*/
|
|
4311
|
-
repo_id: string;
|
|
4312
|
-
/**
|
|
4313
|
-
* Project Id
|
|
4314
|
-
*
|
|
4315
|
-
* Project ID
|
|
4316
|
-
*/
|
|
4317
|
-
project_id: string;
|
|
4318
|
-
};
|
|
5506
|
+
path?: never;
|
|
4319
5507
|
query?: never;
|
|
4320
|
-
url: '/ocxp/
|
|
5508
|
+
url: '/ocxp/kb/rag';
|
|
4321
5509
|
};
|
|
4322
|
-
type
|
|
4323
|
-
/**
|
|
4324
|
-
* Project not found
|
|
4325
|
-
*/
|
|
4326
|
-
404: unknown;
|
|
5510
|
+
type RagKnowledgeBaseErrors = {
|
|
4327
5511
|
/**
|
|
4328
5512
|
* Validation Error
|
|
4329
5513
|
*/
|
|
@@ -4333,36 +5517,86 @@ type RemoveLinkedRepoErrors = {
|
|
|
4333
5517
|
*/
|
|
4334
5518
|
429: unknown;
|
|
4335
5519
|
};
|
|
4336
|
-
type
|
|
5520
|
+
type RagKnowledgeBaseResponses = {
|
|
4337
5521
|
/**
|
|
4338
|
-
*
|
|
5522
|
+
* Successful Response
|
|
4339
5523
|
*/
|
|
4340
|
-
200:
|
|
5524
|
+
200: KbRagResponse;
|
|
4341
5525
|
};
|
|
4342
|
-
type
|
|
4343
|
-
body
|
|
5526
|
+
type ListMemosData = {
|
|
5527
|
+
body?: never;
|
|
4344
5528
|
headers?: {
|
|
4345
5529
|
/**
|
|
4346
5530
|
* X-Workspace
|
|
4347
5531
|
*/
|
|
4348
5532
|
'X-Workspace'?: string;
|
|
4349
5533
|
};
|
|
4350
|
-
path
|
|
5534
|
+
path?: never;
|
|
5535
|
+
query?: {
|
|
5536
|
+
/**
|
|
5537
|
+
* Status
|
|
5538
|
+
*
|
|
5539
|
+
* Filter by status (open, acknowledged, resolved, ignored)
|
|
5540
|
+
*/
|
|
5541
|
+
status?: MemoStatus | null;
|
|
5542
|
+
/**
|
|
5543
|
+
* Source Type
|
|
5544
|
+
*
|
|
5545
|
+
* Filter by source type (repo, project, mission, doc)
|
|
5546
|
+
*/
|
|
5547
|
+
source_type?: SourceType | null;
|
|
5548
|
+
/**
|
|
5549
|
+
* Category
|
|
5550
|
+
*
|
|
5551
|
+
* Filter by category
|
|
5552
|
+
*/
|
|
5553
|
+
category?: MemoCategory | null;
|
|
5554
|
+
/**
|
|
5555
|
+
* Severity
|
|
5556
|
+
*
|
|
5557
|
+
* Filter by minimum severity
|
|
5558
|
+
*/
|
|
5559
|
+
severity?: MemoSeverity | null;
|
|
5560
|
+
/**
|
|
5561
|
+
* Mission Id
|
|
5562
|
+
*
|
|
5563
|
+
* Filter by mission ID (extracts from mission source_id)
|
|
5564
|
+
*/
|
|
5565
|
+
mission_id?: string | null;
|
|
4351
5566
|
/**
|
|
4352
5567
|
* Project Id
|
|
4353
5568
|
*
|
|
4354
|
-
*
|
|
5569
|
+
* Filter by project ID (matches project source_id)
|
|
4355
5570
|
*/
|
|
4356
|
-
project_id
|
|
5571
|
+
project_id?: string | null;
|
|
5572
|
+
/**
|
|
5573
|
+
* Limit
|
|
5574
|
+
*
|
|
5575
|
+
* Maximum results per page
|
|
5576
|
+
*/
|
|
5577
|
+
limit?: number;
|
|
5578
|
+
/**
|
|
5579
|
+
* Offset
|
|
5580
|
+
*
|
|
5581
|
+
* Number of items to skip (for pagination)
|
|
5582
|
+
*/
|
|
5583
|
+
offset?: number;
|
|
5584
|
+
/**
|
|
5585
|
+
* Order By
|
|
5586
|
+
*
|
|
5587
|
+
* Field to sort by (created_at, updated_at, highest_severity)
|
|
5588
|
+
*/
|
|
5589
|
+
order_by?: string;
|
|
5590
|
+
/**
|
|
5591
|
+
* Order Dir
|
|
5592
|
+
*
|
|
5593
|
+
* Sort direction (asc, desc)
|
|
5594
|
+
*/
|
|
5595
|
+
order_dir?: 'asc' | 'desc';
|
|
4357
5596
|
};
|
|
4358
|
-
|
|
4359
|
-
url: '/ocxp/project/{project_id}/default-repo';
|
|
5597
|
+
url: '/ocxp/memo';
|
|
4360
5598
|
};
|
|
4361
|
-
type
|
|
4362
|
-
/**
|
|
4363
|
-
* Project not found
|
|
4364
|
-
*/
|
|
4365
|
-
404: unknown;
|
|
5599
|
+
type ListMemosErrors = {
|
|
4366
5600
|
/**
|
|
4367
5601
|
* Validation Error
|
|
4368
5602
|
*/
|
|
@@ -4372,36 +5606,30 @@ type SetDefaultRepoErrors = {
|
|
|
4372
5606
|
*/
|
|
4373
5607
|
429: unknown;
|
|
4374
5608
|
};
|
|
4375
|
-
type
|
|
5609
|
+
type ListMemosResponses = {
|
|
4376
5610
|
/**
|
|
4377
|
-
*
|
|
5611
|
+
* List of memos returned successfully
|
|
4378
5612
|
*/
|
|
4379
|
-
200:
|
|
5613
|
+
200: MemoListResponse;
|
|
4380
5614
|
};
|
|
4381
|
-
type
|
|
4382
|
-
|
|
5615
|
+
type ListMemosResponse = ListMemosResponses[keyof ListMemosResponses];
|
|
5616
|
+
type CreateMemoData = {
|
|
5617
|
+
body: CreateMemoRequest;
|
|
4383
5618
|
headers?: {
|
|
4384
5619
|
/**
|
|
4385
5620
|
* X-Workspace
|
|
4386
5621
|
*/
|
|
4387
5622
|
'X-Workspace'?: string;
|
|
4388
5623
|
};
|
|
4389
|
-
path
|
|
4390
|
-
/**
|
|
4391
|
-
* Project Id
|
|
4392
|
-
*
|
|
4393
|
-
* Project ID
|
|
4394
|
-
*/
|
|
4395
|
-
project_id: string;
|
|
4396
|
-
};
|
|
5624
|
+
path?: never;
|
|
4397
5625
|
query?: never;
|
|
4398
|
-
url: '/ocxp/
|
|
5626
|
+
url: '/ocxp/memo';
|
|
4399
5627
|
};
|
|
4400
|
-
type
|
|
5628
|
+
type CreateMemoErrors = {
|
|
4401
5629
|
/**
|
|
4402
|
-
*
|
|
5630
|
+
* Invalid request
|
|
4403
5631
|
*/
|
|
4404
|
-
|
|
5632
|
+
400: unknown;
|
|
4405
5633
|
/**
|
|
4406
5634
|
* Validation Error
|
|
4407
5635
|
*/
|
|
@@ -4411,14 +5639,15 @@ type GetContextReposErrors = {
|
|
|
4411
5639
|
*/
|
|
4412
5640
|
429: unknown;
|
|
4413
5641
|
};
|
|
4414
|
-
type
|
|
5642
|
+
type CreateMemoResponses = {
|
|
4415
5643
|
/**
|
|
4416
|
-
*
|
|
5644
|
+
* Memo created successfully
|
|
4417
5645
|
*/
|
|
4418
|
-
|
|
5646
|
+
201: Memo;
|
|
4419
5647
|
};
|
|
4420
|
-
type
|
|
4421
|
-
|
|
5648
|
+
type CreateMemoResponse = CreateMemoResponses[keyof CreateMemoResponses];
|
|
5649
|
+
type DeleteMemoData = {
|
|
5650
|
+
body?: never;
|
|
4422
5651
|
headers?: {
|
|
4423
5652
|
/**
|
|
4424
5653
|
* X-Workspace
|
|
@@ -4427,18 +5656,18 @@ type AddMissionData = {
|
|
|
4427
5656
|
};
|
|
4428
5657
|
path: {
|
|
4429
5658
|
/**
|
|
4430
|
-
*
|
|
5659
|
+
* Memo Id
|
|
4431
5660
|
*
|
|
4432
|
-
*
|
|
5661
|
+
* Memo ID
|
|
4433
5662
|
*/
|
|
4434
|
-
|
|
5663
|
+
memo_id: string;
|
|
4435
5664
|
};
|
|
4436
5665
|
query?: never;
|
|
4437
|
-
url: '/ocxp/
|
|
5666
|
+
url: '/ocxp/memo/{memo_id}';
|
|
4438
5667
|
};
|
|
4439
|
-
type
|
|
5668
|
+
type DeleteMemoErrors = {
|
|
4440
5669
|
/**
|
|
4441
|
-
*
|
|
5670
|
+
* Memo not found
|
|
4442
5671
|
*/
|
|
4443
5672
|
404: unknown;
|
|
4444
5673
|
/**
|
|
@@ -4450,13 +5679,14 @@ type AddMissionErrors = {
|
|
|
4450
5679
|
*/
|
|
4451
5680
|
429: unknown;
|
|
4452
5681
|
};
|
|
4453
|
-
type
|
|
5682
|
+
type DeleteMemoResponses = {
|
|
4454
5683
|
/**
|
|
4455
|
-
*
|
|
5684
|
+
* Memo deleted successfully
|
|
4456
5685
|
*/
|
|
4457
|
-
200:
|
|
5686
|
+
200: MemoActionResponse;
|
|
4458
5687
|
};
|
|
4459
|
-
type
|
|
5688
|
+
type DeleteMemoResponse = DeleteMemoResponses[keyof DeleteMemoResponses];
|
|
5689
|
+
type GetMemoData = {
|
|
4460
5690
|
body?: never;
|
|
4461
5691
|
headers?: {
|
|
4462
5692
|
/**
|
|
@@ -4466,22 +5696,18 @@ type RemoveMissionData = {
|
|
|
4466
5696
|
};
|
|
4467
5697
|
path: {
|
|
4468
5698
|
/**
|
|
4469
|
-
*
|
|
4470
|
-
*/
|
|
4471
|
-
mission_id: string;
|
|
4472
|
-
/**
|
|
4473
|
-
* Project Id
|
|
5699
|
+
* Memo Id
|
|
4474
5700
|
*
|
|
4475
|
-
*
|
|
5701
|
+
* Memo ID
|
|
4476
5702
|
*/
|
|
4477
|
-
|
|
5703
|
+
memo_id: string;
|
|
4478
5704
|
};
|
|
4479
5705
|
query?: never;
|
|
4480
|
-
url: '/ocxp/
|
|
5706
|
+
url: '/ocxp/memo/{memo_id}';
|
|
4481
5707
|
};
|
|
4482
|
-
type
|
|
5708
|
+
type GetMemoErrors = {
|
|
4483
5709
|
/**
|
|
4484
|
-
*
|
|
5710
|
+
* Memo not found
|
|
4485
5711
|
*/
|
|
4486
5712
|
404: unknown;
|
|
4487
5713
|
/**
|
|
@@ -4493,13 +5719,14 @@ type RemoveMissionErrors = {
|
|
|
4493
5719
|
*/
|
|
4494
5720
|
429: unknown;
|
|
4495
5721
|
};
|
|
4496
|
-
type
|
|
5722
|
+
type GetMemoResponses = {
|
|
4497
5723
|
/**
|
|
4498
|
-
*
|
|
5724
|
+
* Memo returned successfully
|
|
4499
5725
|
*/
|
|
4500
|
-
200:
|
|
5726
|
+
200: Memo;
|
|
4501
5727
|
};
|
|
4502
|
-
type
|
|
5728
|
+
type GetMemoResponse = GetMemoResponses[keyof GetMemoResponses];
|
|
5729
|
+
type GetMemoForSourceData = {
|
|
4503
5730
|
body?: never;
|
|
4504
5731
|
headers?: {
|
|
4505
5732
|
/**
|
|
@@ -4509,20 +5736,22 @@ type GetProjectDatabasesData = {
|
|
|
4509
5736
|
};
|
|
4510
5737
|
path: {
|
|
4511
5738
|
/**
|
|
4512
|
-
*
|
|
5739
|
+
* Source Type
|
|
4513
5740
|
*
|
|
4514
|
-
*
|
|
5741
|
+
* Source type (repo, project, mission, doc)
|
|
4515
5742
|
*/
|
|
4516
|
-
|
|
5743
|
+
source_type: string;
|
|
5744
|
+
/**
|
|
5745
|
+
* Source Id
|
|
5746
|
+
*
|
|
5747
|
+
* Source entity ID
|
|
5748
|
+
*/
|
|
5749
|
+
source_id: string;
|
|
4517
5750
|
};
|
|
4518
5751
|
query?: never;
|
|
4519
|
-
url: '/ocxp/
|
|
5752
|
+
url: '/ocxp/memo/source/{source_type}/{source_id}';
|
|
4520
5753
|
};
|
|
4521
|
-
type
|
|
4522
|
-
/**
|
|
4523
|
-
* Project not found
|
|
4524
|
-
*/
|
|
4525
|
-
404: unknown;
|
|
5754
|
+
type GetMemoForSourceErrors = {
|
|
4526
5755
|
/**
|
|
4527
5756
|
* Validation Error
|
|
4528
5757
|
*/
|
|
@@ -4532,14 +5761,17 @@ type GetProjectDatabasesErrors = {
|
|
|
4532
5761
|
*/
|
|
4533
5762
|
429: unknown;
|
|
4534
5763
|
};
|
|
4535
|
-
type
|
|
5764
|
+
type GetMemoForSourceResponses = {
|
|
4536
5765
|
/**
|
|
4537
|
-
*
|
|
5766
|
+
* Response Getmemoforsource
|
|
5767
|
+
*
|
|
5768
|
+
* Memo returned or null if none exists
|
|
4538
5769
|
*/
|
|
4539
|
-
200:
|
|
5770
|
+
200: Memo | null;
|
|
4540
5771
|
};
|
|
4541
|
-
type
|
|
4542
|
-
|
|
5772
|
+
type GetMemoForSourceResponse = GetMemoForSourceResponses[keyof GetMemoForSourceResponses];
|
|
5773
|
+
type ResolveMemoData = {
|
|
5774
|
+
body: MemoResolveRequest;
|
|
4543
5775
|
headers?: {
|
|
4544
5776
|
/**
|
|
4545
5777
|
* X-Workspace
|
|
@@ -4548,18 +5780,18 @@ type AddDatabaseData = {
|
|
|
4548
5780
|
};
|
|
4549
5781
|
path: {
|
|
4550
5782
|
/**
|
|
4551
|
-
*
|
|
5783
|
+
* Memo Id
|
|
4552
5784
|
*
|
|
4553
|
-
*
|
|
5785
|
+
* Memo ID
|
|
4554
5786
|
*/
|
|
4555
|
-
|
|
5787
|
+
memo_id: string;
|
|
4556
5788
|
};
|
|
4557
5789
|
query?: never;
|
|
4558
|
-
url: '/ocxp/
|
|
5790
|
+
url: '/ocxp/memo/{memo_id}/resolve';
|
|
4559
5791
|
};
|
|
4560
|
-
type
|
|
5792
|
+
type ResolveMemoErrors = {
|
|
4561
5793
|
/**
|
|
4562
|
-
*
|
|
5794
|
+
* Memo not found
|
|
4563
5795
|
*/
|
|
4564
5796
|
404: unknown;
|
|
4565
5797
|
/**
|
|
@@ -4571,13 +5803,13 @@ type AddDatabaseErrors = {
|
|
|
4571
5803
|
*/
|
|
4572
5804
|
429: unknown;
|
|
4573
5805
|
};
|
|
4574
|
-
type
|
|
5806
|
+
type ResolveMemoResponses = {
|
|
4575
5807
|
/**
|
|
4576
|
-
*
|
|
5808
|
+
* Memo resolved successfully
|
|
4577
5809
|
*/
|
|
4578
|
-
200:
|
|
5810
|
+
200: MemoActionResponse;
|
|
4579
5811
|
};
|
|
4580
|
-
type
|
|
5812
|
+
type AcknowledgeMemoData = {
|
|
4581
5813
|
body?: never;
|
|
4582
5814
|
headers?: {
|
|
4583
5815
|
/**
|
|
@@ -4587,22 +5819,18 @@ type RemoveDatabaseData = {
|
|
|
4587
5819
|
};
|
|
4588
5820
|
path: {
|
|
4589
5821
|
/**
|
|
4590
|
-
*
|
|
4591
|
-
*/
|
|
4592
|
-
database_id: string;
|
|
4593
|
-
/**
|
|
4594
|
-
* Project Id
|
|
5822
|
+
* Memo Id
|
|
4595
5823
|
*
|
|
4596
|
-
*
|
|
5824
|
+
* Memo ID
|
|
4597
5825
|
*/
|
|
4598
|
-
|
|
5826
|
+
memo_id: string;
|
|
4599
5827
|
};
|
|
4600
5828
|
query?: never;
|
|
4601
|
-
url: '/ocxp/
|
|
5829
|
+
url: '/ocxp/memo/{memo_id}/acknowledge';
|
|
4602
5830
|
};
|
|
4603
|
-
type
|
|
5831
|
+
type AcknowledgeMemoErrors = {
|
|
4604
5832
|
/**
|
|
4605
|
-
*
|
|
5833
|
+
* Memo not found
|
|
4606
5834
|
*/
|
|
4607
5835
|
404: unknown;
|
|
4608
5836
|
/**
|
|
@@ -4614,14 +5842,14 @@ type RemoveDatabaseErrors = {
|
|
|
4614
5842
|
*/
|
|
4615
5843
|
429: unknown;
|
|
4616
5844
|
};
|
|
4617
|
-
type
|
|
5845
|
+
type AcknowledgeMemoResponses = {
|
|
4618
5846
|
/**
|
|
4619
|
-
*
|
|
5847
|
+
* Memo acknowledged successfully
|
|
4620
5848
|
*/
|
|
4621
|
-
200:
|
|
5849
|
+
200: MemoActionResponse;
|
|
4622
5850
|
};
|
|
4623
|
-
type
|
|
4624
|
-
body
|
|
5851
|
+
type IgnoreMemoData = {
|
|
5852
|
+
body?: never;
|
|
4625
5853
|
headers?: {
|
|
4626
5854
|
/**
|
|
4627
5855
|
* X-Workspace
|
|
@@ -4630,18 +5858,18 @@ type SetDefaultDatabaseData = {
|
|
|
4630
5858
|
};
|
|
4631
5859
|
path: {
|
|
4632
5860
|
/**
|
|
4633
|
-
*
|
|
5861
|
+
* Memo Id
|
|
4634
5862
|
*
|
|
4635
|
-
*
|
|
5863
|
+
* Memo ID
|
|
4636
5864
|
*/
|
|
4637
|
-
|
|
5865
|
+
memo_id: string;
|
|
4638
5866
|
};
|
|
4639
5867
|
query?: never;
|
|
4640
|
-
url: '/ocxp/
|
|
5868
|
+
url: '/ocxp/memo/{memo_id}/ignore';
|
|
4641
5869
|
};
|
|
4642
|
-
type
|
|
5870
|
+
type IgnoreMemoErrors = {
|
|
4643
5871
|
/**
|
|
4644
|
-
*
|
|
5872
|
+
* Memo not found
|
|
4645
5873
|
*/
|
|
4646
5874
|
404: unknown;
|
|
4647
5875
|
/**
|
|
@@ -4653,36 +5881,62 @@ type SetDefaultDatabaseErrors = {
|
|
|
4653
5881
|
*/
|
|
4654
5882
|
429: unknown;
|
|
4655
5883
|
};
|
|
4656
|
-
type
|
|
5884
|
+
type IgnoreMemoResponses = {
|
|
4657
5885
|
/**
|
|
4658
|
-
*
|
|
5886
|
+
* Memo ignored successfully
|
|
4659
5887
|
*/
|
|
4660
|
-
200:
|
|
5888
|
+
200: MemoActionResponse;
|
|
4661
5889
|
};
|
|
4662
|
-
type
|
|
4663
|
-
body
|
|
5890
|
+
type ListWorkflowsData = {
|
|
5891
|
+
body?: never;
|
|
4664
5892
|
headers?: {
|
|
4665
5893
|
/**
|
|
4666
5894
|
* X-Workspace
|
|
4667
5895
|
*/
|
|
4668
5896
|
'X-Workspace'?: string;
|
|
4669
5897
|
};
|
|
4670
|
-
path
|
|
5898
|
+
path?: never;
|
|
5899
|
+
query: {
|
|
4671
5900
|
/**
|
|
4672
5901
|
* Mission Id
|
|
4673
5902
|
*
|
|
4674
|
-
*
|
|
5903
|
+
* Filter by mission ID
|
|
4675
5904
|
*/
|
|
4676
5905
|
mission_id: string;
|
|
5906
|
+
/**
|
|
5907
|
+
* Status
|
|
5908
|
+
*
|
|
5909
|
+
* Filter by workflow status
|
|
5910
|
+
*/
|
|
5911
|
+
status?: WorkflowStatus | null;
|
|
5912
|
+
/**
|
|
5913
|
+
* Limit
|
|
5914
|
+
*
|
|
5915
|
+
* Maximum results per page
|
|
5916
|
+
*/
|
|
5917
|
+
limit?: number;
|
|
5918
|
+
/**
|
|
5919
|
+
* Offset
|
|
5920
|
+
*
|
|
5921
|
+
* Number of items to skip
|
|
5922
|
+
*/
|
|
5923
|
+
offset?: number;
|
|
5924
|
+
/**
|
|
5925
|
+
* Order By
|
|
5926
|
+
*
|
|
5927
|
+
* Field to sort by (created_at, updated_at, name)
|
|
5928
|
+
*/
|
|
5929
|
+
order_by?: string;
|
|
5930
|
+
/**
|
|
5931
|
+
* Order Dir
|
|
5932
|
+
*
|
|
5933
|
+
* Sort direction (asc, desc)
|
|
5934
|
+
*/
|
|
5935
|
+
order_dir?: string;
|
|
4677
5936
|
};
|
|
4678
|
-
|
|
4679
|
-
url: '/ocxp/mission/{mission_id}/regenerate';
|
|
5937
|
+
url: '/ocxp/workflow';
|
|
4680
5938
|
};
|
|
4681
|
-
type
|
|
4682
|
-
/**
|
|
4683
|
-
* Mission not found
|
|
4684
|
-
*/
|
|
4685
|
-
404: unknown;
|
|
5939
|
+
type ListWorkflowsErrors = {
|
|
4686
5940
|
/**
|
|
4687
5941
|
* Validation Error
|
|
4688
5942
|
*/
|
|
@@ -4691,19 +5945,15 @@ type RegenerateMissionErrors = {
|
|
|
4691
5945
|
* Rate limit exceeded
|
|
4692
5946
|
*/
|
|
4693
5947
|
429: unknown;
|
|
4694
|
-
/**
|
|
4695
|
-
* Archive or regeneration failed
|
|
4696
|
-
*/
|
|
4697
|
-
500: unknown;
|
|
4698
5948
|
};
|
|
4699
|
-
type
|
|
5949
|
+
type ListWorkflowsResponses = {
|
|
4700
5950
|
/**
|
|
4701
|
-
*
|
|
5951
|
+
* List of workflows returned successfully
|
|
4702
5952
|
*/
|
|
4703
|
-
200:
|
|
5953
|
+
200: WorkflowListResponse;
|
|
4704
5954
|
};
|
|
4705
|
-
type
|
|
4706
|
-
body:
|
|
5955
|
+
type CreateWorkflowData = {
|
|
5956
|
+
body: WorkflowCreate;
|
|
4707
5957
|
headers?: {
|
|
4708
5958
|
/**
|
|
4709
5959
|
* X-Workspace
|
|
@@ -4712,9 +5962,13 @@ type QueryKnowledgeBaseData = {
|
|
|
4712
5962
|
};
|
|
4713
5963
|
path?: never;
|
|
4714
5964
|
query?: never;
|
|
4715
|
-
url: '/ocxp/
|
|
5965
|
+
url: '/ocxp/workflow';
|
|
4716
5966
|
};
|
|
4717
|
-
type
|
|
5967
|
+
type CreateWorkflowErrors = {
|
|
5968
|
+
/**
|
|
5969
|
+
* Invalid request
|
|
5970
|
+
*/
|
|
5971
|
+
400: unknown;
|
|
4718
5972
|
/**
|
|
4719
5973
|
* Validation Error
|
|
4720
5974
|
*/
|
|
@@ -4724,25 +5978,36 @@ type QueryKnowledgeBaseErrors = {
|
|
|
4724
5978
|
*/
|
|
4725
5979
|
429: unknown;
|
|
4726
5980
|
};
|
|
4727
|
-
type
|
|
5981
|
+
type CreateWorkflowResponses = {
|
|
4728
5982
|
/**
|
|
4729
|
-
*
|
|
5983
|
+
* Workflow created successfully
|
|
4730
5984
|
*/
|
|
4731
|
-
|
|
5985
|
+
201: WorkflowResponse;
|
|
4732
5986
|
};
|
|
4733
|
-
type
|
|
4734
|
-
body
|
|
5987
|
+
type DeleteWorkflowData = {
|
|
5988
|
+
body?: never;
|
|
4735
5989
|
headers?: {
|
|
4736
5990
|
/**
|
|
4737
5991
|
* X-Workspace
|
|
4738
5992
|
*/
|
|
4739
5993
|
'X-Workspace'?: string;
|
|
4740
5994
|
};
|
|
4741
|
-
path
|
|
5995
|
+
path: {
|
|
5996
|
+
/**
|
|
5997
|
+
* Workflow Id
|
|
5998
|
+
*
|
|
5999
|
+
* Workflow ID
|
|
6000
|
+
*/
|
|
6001
|
+
workflow_id: string;
|
|
6002
|
+
};
|
|
4742
6003
|
query?: never;
|
|
4743
|
-
url: '/ocxp/
|
|
6004
|
+
url: '/ocxp/workflow/{workflow_id}';
|
|
4744
6005
|
};
|
|
4745
|
-
type
|
|
6006
|
+
type DeleteWorkflowErrors = {
|
|
6007
|
+
/**
|
|
6008
|
+
* Workflow not found
|
|
6009
|
+
*/
|
|
6010
|
+
404: unknown;
|
|
4746
6011
|
/**
|
|
4747
6012
|
* Validation Error
|
|
4748
6013
|
*/
|
|
@@ -4752,13 +6017,13 @@ type RagKnowledgeBaseErrors = {
|
|
|
4752
6017
|
*/
|
|
4753
6018
|
429: unknown;
|
|
4754
6019
|
};
|
|
4755
|
-
type
|
|
6020
|
+
type DeleteWorkflowResponses = {
|
|
4756
6021
|
/**
|
|
4757
|
-
*
|
|
6022
|
+
* Workflow deleted successfully
|
|
4758
6023
|
*/
|
|
4759
|
-
200:
|
|
6024
|
+
200: WorkflowActionResponse;
|
|
4760
6025
|
};
|
|
4761
|
-
type
|
|
6026
|
+
type GetWorkflowData = {
|
|
4762
6027
|
body?: never;
|
|
4763
6028
|
headers?: {
|
|
4764
6029
|
/**
|
|
@@ -4766,54 +6031,22 @@ type ListMemosData = {
|
|
|
4766
6031
|
*/
|
|
4767
6032
|
'X-Workspace'?: string;
|
|
4768
6033
|
};
|
|
4769
|
-
path
|
|
4770
|
-
query?: {
|
|
4771
|
-
/**
|
|
4772
|
-
* Status
|
|
4773
|
-
*
|
|
4774
|
-
* Filter by status (open, acknowledged, resolved, ignored)
|
|
4775
|
-
*/
|
|
4776
|
-
status?: MemoStatus | null;
|
|
4777
|
-
/**
|
|
4778
|
-
* Source Type
|
|
4779
|
-
*
|
|
4780
|
-
* Filter by source type (repo, project, mission, doc)
|
|
4781
|
-
*/
|
|
4782
|
-
source_type?: SourceType | null;
|
|
4783
|
-
/**
|
|
4784
|
-
* Category
|
|
4785
|
-
*
|
|
4786
|
-
* Filter by category
|
|
4787
|
-
*/
|
|
4788
|
-
category?: MemoCategory | null;
|
|
4789
|
-
/**
|
|
4790
|
-
* Severity
|
|
4791
|
-
*
|
|
4792
|
-
* Filter by minimum severity
|
|
4793
|
-
*/
|
|
4794
|
-
severity?: MemoSeverity | null;
|
|
4795
|
-
/**
|
|
4796
|
-
* Mission Id
|
|
4797
|
-
*
|
|
4798
|
-
* Filter by mission ID (extracts from mission source_id)
|
|
4799
|
-
*/
|
|
4800
|
-
mission_id?: string | null;
|
|
4801
|
-
/**
|
|
4802
|
-
* Project Id
|
|
4803
|
-
*
|
|
4804
|
-
* Filter by project ID (matches project source_id)
|
|
4805
|
-
*/
|
|
4806
|
-
project_id?: string | null;
|
|
6034
|
+
path: {
|
|
4807
6035
|
/**
|
|
4808
|
-
*
|
|
6036
|
+
* Workflow Id
|
|
4809
6037
|
*
|
|
4810
|
-
*
|
|
6038
|
+
* Workflow ID
|
|
4811
6039
|
*/
|
|
4812
|
-
|
|
6040
|
+
workflow_id: string;
|
|
4813
6041
|
};
|
|
4814
|
-
|
|
6042
|
+
query?: never;
|
|
6043
|
+
url: '/ocxp/workflow/{workflow_id}';
|
|
4815
6044
|
};
|
|
4816
|
-
type
|
|
6045
|
+
type GetWorkflowErrors = {
|
|
6046
|
+
/**
|
|
6047
|
+
* Workflow not found
|
|
6048
|
+
*/
|
|
6049
|
+
404: unknown;
|
|
4817
6050
|
/**
|
|
4818
6051
|
* Validation Error
|
|
4819
6052
|
*/
|
|
@@ -4823,30 +6056,36 @@ type ListMemosErrors = {
|
|
|
4823
6056
|
*/
|
|
4824
6057
|
429: unknown;
|
|
4825
6058
|
};
|
|
4826
|
-
type
|
|
6059
|
+
type GetWorkflowResponses = {
|
|
4827
6060
|
/**
|
|
4828
|
-
*
|
|
6061
|
+
* Workflow returned successfully
|
|
4829
6062
|
*/
|
|
4830
|
-
200:
|
|
6063
|
+
200: WorkflowResponse;
|
|
4831
6064
|
};
|
|
4832
|
-
type
|
|
4833
|
-
|
|
4834
|
-
body: CreateMemoRequest;
|
|
6065
|
+
type StartWorkflowData = {
|
|
6066
|
+
body?: never;
|
|
4835
6067
|
headers?: {
|
|
4836
6068
|
/**
|
|
4837
6069
|
* X-Workspace
|
|
4838
6070
|
*/
|
|
4839
6071
|
'X-Workspace'?: string;
|
|
4840
6072
|
};
|
|
4841
|
-
path
|
|
6073
|
+
path: {
|
|
6074
|
+
/**
|
|
6075
|
+
* Workflow Id
|
|
6076
|
+
*
|
|
6077
|
+
* Workflow ID
|
|
6078
|
+
*/
|
|
6079
|
+
workflow_id: string;
|
|
6080
|
+
};
|
|
4842
6081
|
query?: never;
|
|
4843
|
-
url: '/ocxp/
|
|
6082
|
+
url: '/ocxp/workflow/{workflow_id}/start';
|
|
4844
6083
|
};
|
|
4845
|
-
type
|
|
6084
|
+
type StartWorkflowErrors = {
|
|
4846
6085
|
/**
|
|
4847
|
-
*
|
|
6086
|
+
* Workflow not found
|
|
4848
6087
|
*/
|
|
4849
|
-
|
|
6088
|
+
404: unknown;
|
|
4850
6089
|
/**
|
|
4851
6090
|
* Validation Error
|
|
4852
6091
|
*/
|
|
@@ -4856,14 +6095,13 @@ type CreateMemoErrors = {
|
|
|
4856
6095
|
*/
|
|
4857
6096
|
429: unknown;
|
|
4858
6097
|
};
|
|
4859
|
-
type
|
|
6098
|
+
type StartWorkflowResponses = {
|
|
4860
6099
|
/**
|
|
4861
|
-
*
|
|
6100
|
+
* Workflow started successfully
|
|
4862
6101
|
*/
|
|
4863
|
-
|
|
6102
|
+
200: WorkflowActionResponse;
|
|
4864
6103
|
};
|
|
4865
|
-
type
|
|
4866
|
-
type DeleteMemoData = {
|
|
6104
|
+
type ListTasksData = {
|
|
4867
6105
|
body?: never;
|
|
4868
6106
|
headers?: {
|
|
4869
6107
|
/**
|
|
@@ -4873,18 +6111,18 @@ type DeleteMemoData = {
|
|
|
4873
6111
|
};
|
|
4874
6112
|
path: {
|
|
4875
6113
|
/**
|
|
4876
|
-
*
|
|
6114
|
+
* Workflow Id
|
|
4877
6115
|
*
|
|
4878
|
-
*
|
|
6116
|
+
* Workflow ID
|
|
4879
6117
|
*/
|
|
4880
|
-
|
|
6118
|
+
workflow_id: string;
|
|
4881
6119
|
};
|
|
4882
6120
|
query?: never;
|
|
4883
|
-
url: '/ocxp/
|
|
6121
|
+
url: '/ocxp/workflow/{workflow_id}/tasks';
|
|
4884
6122
|
};
|
|
4885
|
-
type
|
|
6123
|
+
type ListTasksErrors = {
|
|
4886
6124
|
/**
|
|
4887
|
-
*
|
|
6125
|
+
* Workflow not found
|
|
4888
6126
|
*/
|
|
4889
6127
|
404: unknown;
|
|
4890
6128
|
/**
|
|
@@ -4896,15 +6134,14 @@ type DeleteMemoErrors = {
|
|
|
4896
6134
|
*/
|
|
4897
6135
|
429: unknown;
|
|
4898
6136
|
};
|
|
4899
|
-
type
|
|
6137
|
+
type ListTasksResponses = {
|
|
4900
6138
|
/**
|
|
4901
|
-
*
|
|
6139
|
+
* Tasks returned successfully
|
|
4902
6140
|
*/
|
|
4903
|
-
200:
|
|
6141
|
+
200: TaskListResponse;
|
|
4904
6142
|
};
|
|
4905
|
-
type
|
|
4906
|
-
|
|
4907
|
-
body?: never;
|
|
6143
|
+
type AddTaskData = {
|
|
6144
|
+
body: WorkflowTaskCreate;
|
|
4908
6145
|
headers?: {
|
|
4909
6146
|
/**
|
|
4910
6147
|
* X-Workspace
|
|
@@ -4913,18 +6150,18 @@ type GetMemoData = {
|
|
|
4913
6150
|
};
|
|
4914
6151
|
path: {
|
|
4915
6152
|
/**
|
|
4916
|
-
*
|
|
6153
|
+
* Workflow Id
|
|
4917
6154
|
*
|
|
4918
|
-
*
|
|
6155
|
+
* Workflow ID
|
|
4919
6156
|
*/
|
|
4920
|
-
|
|
6157
|
+
workflow_id: string;
|
|
4921
6158
|
};
|
|
4922
6159
|
query?: never;
|
|
4923
|
-
url: '/ocxp/
|
|
6160
|
+
url: '/ocxp/workflow/{workflow_id}/tasks';
|
|
4924
6161
|
};
|
|
4925
|
-
type
|
|
6162
|
+
type AddTaskErrors = {
|
|
4926
6163
|
/**
|
|
4927
|
-
*
|
|
6164
|
+
* Workflow not found
|
|
4928
6165
|
*/
|
|
4929
6166
|
404: unknown;
|
|
4930
6167
|
/**
|
|
@@ -4936,15 +6173,14 @@ type GetMemoErrors = {
|
|
|
4936
6173
|
*/
|
|
4937
6174
|
429: unknown;
|
|
4938
6175
|
};
|
|
4939
|
-
type
|
|
6176
|
+
type AddTaskResponses = {
|
|
4940
6177
|
/**
|
|
4941
|
-
*
|
|
6178
|
+
* Task added successfully
|
|
4942
6179
|
*/
|
|
4943
|
-
|
|
6180
|
+
201: TaskResponse;
|
|
4944
6181
|
};
|
|
4945
|
-
type
|
|
4946
|
-
|
|
4947
|
-
body?: never;
|
|
6182
|
+
type BulkUpdateTasksData = {
|
|
6183
|
+
body: BulkTaskUpdateRequest;
|
|
4948
6184
|
headers?: {
|
|
4949
6185
|
/**
|
|
4950
6186
|
* X-Workspace
|
|
@@ -4953,22 +6189,20 @@ type GetMemoForSourceData = {
|
|
|
4953
6189
|
};
|
|
4954
6190
|
path: {
|
|
4955
6191
|
/**
|
|
4956
|
-
*
|
|
4957
|
-
*
|
|
4958
|
-
* Source type (repo, project, mission, doc)
|
|
4959
|
-
*/
|
|
4960
|
-
source_type: string;
|
|
4961
|
-
/**
|
|
4962
|
-
* Source Id
|
|
6192
|
+
* Workflow Id
|
|
4963
6193
|
*
|
|
4964
|
-
*
|
|
6194
|
+
* Workflow ID
|
|
4965
6195
|
*/
|
|
4966
|
-
|
|
6196
|
+
workflow_id: string;
|
|
4967
6197
|
};
|
|
4968
6198
|
query?: never;
|
|
4969
|
-
url: '/ocxp/
|
|
6199
|
+
url: '/ocxp/workflow/{workflow_id}/tasks/bulk';
|
|
4970
6200
|
};
|
|
4971
|
-
type
|
|
6201
|
+
type BulkUpdateTasksErrors = {
|
|
6202
|
+
/**
|
|
6203
|
+
* Workflow not found
|
|
6204
|
+
*/
|
|
6205
|
+
404: unknown;
|
|
4972
6206
|
/**
|
|
4973
6207
|
* Validation Error
|
|
4974
6208
|
*/
|
|
@@ -4978,17 +6212,14 @@ type GetMemoForSourceErrors = {
|
|
|
4978
6212
|
*/
|
|
4979
6213
|
429: unknown;
|
|
4980
6214
|
};
|
|
4981
|
-
type
|
|
6215
|
+
type BulkUpdateTasksResponses = {
|
|
4982
6216
|
/**
|
|
4983
|
-
*
|
|
4984
|
-
*
|
|
4985
|
-
* Memo returned or null if none exists
|
|
6217
|
+
* Tasks updated (check results for per-task status)
|
|
4986
6218
|
*/
|
|
4987
|
-
200:
|
|
6219
|
+
200: BulkTaskUpdateResponse;
|
|
4988
6220
|
};
|
|
4989
|
-
type
|
|
4990
|
-
|
|
4991
|
-
body: MemoResolveRequest;
|
|
6221
|
+
type DeleteTaskData = {
|
|
6222
|
+
body?: never;
|
|
4992
6223
|
headers?: {
|
|
4993
6224
|
/**
|
|
4994
6225
|
* X-Workspace
|
|
@@ -4997,18 +6228,24 @@ type ResolveMemoData = {
|
|
|
4997
6228
|
};
|
|
4998
6229
|
path: {
|
|
4999
6230
|
/**
|
|
5000
|
-
*
|
|
6231
|
+
* Workflow Id
|
|
5001
6232
|
*
|
|
5002
|
-
*
|
|
6233
|
+
* Workflow ID
|
|
5003
6234
|
*/
|
|
5004
|
-
|
|
6235
|
+
workflow_id: string;
|
|
6236
|
+
/**
|
|
6237
|
+
* Task Id
|
|
6238
|
+
*
|
|
6239
|
+
* Task ID
|
|
6240
|
+
*/
|
|
6241
|
+
task_id: string;
|
|
5005
6242
|
};
|
|
5006
6243
|
query?: never;
|
|
5007
|
-
url: '/ocxp/
|
|
6244
|
+
url: '/ocxp/workflow/{workflow_id}/tasks/{task_id}';
|
|
5008
6245
|
};
|
|
5009
|
-
type
|
|
6246
|
+
type DeleteTaskErrors = {
|
|
5010
6247
|
/**
|
|
5011
|
-
*
|
|
6248
|
+
* Workflow or task not found
|
|
5012
6249
|
*/
|
|
5013
6250
|
404: unknown;
|
|
5014
6251
|
/**
|
|
@@ -5020,13 +6257,13 @@ type ResolveMemoErrors = {
|
|
|
5020
6257
|
*/
|
|
5021
6258
|
429: unknown;
|
|
5022
6259
|
};
|
|
5023
|
-
type
|
|
6260
|
+
type DeleteTaskResponses = {
|
|
5024
6261
|
/**
|
|
5025
|
-
*
|
|
6262
|
+
* Task deleted successfully
|
|
5026
6263
|
*/
|
|
5027
|
-
200:
|
|
6264
|
+
200: WorkflowActionResponse;
|
|
5028
6265
|
};
|
|
5029
|
-
type
|
|
6266
|
+
type GetTaskData = {
|
|
5030
6267
|
body?: never;
|
|
5031
6268
|
headers?: {
|
|
5032
6269
|
/**
|
|
@@ -5036,18 +6273,24 @@ type AcknowledgeMemoData = {
|
|
|
5036
6273
|
};
|
|
5037
6274
|
path: {
|
|
5038
6275
|
/**
|
|
5039
|
-
*
|
|
6276
|
+
* Workflow Id
|
|
6277
|
+
*
|
|
6278
|
+
* Workflow ID
|
|
6279
|
+
*/
|
|
6280
|
+
workflow_id: string;
|
|
6281
|
+
/**
|
|
6282
|
+
* Task Id
|
|
5040
6283
|
*
|
|
5041
|
-
*
|
|
6284
|
+
* Task ID
|
|
5042
6285
|
*/
|
|
5043
|
-
|
|
6286
|
+
task_id: string;
|
|
5044
6287
|
};
|
|
5045
6288
|
query?: never;
|
|
5046
|
-
url: '/ocxp/
|
|
6289
|
+
url: '/ocxp/workflow/{workflow_id}/tasks/{task_id}';
|
|
5047
6290
|
};
|
|
5048
|
-
type
|
|
6291
|
+
type GetTaskErrors = {
|
|
5049
6292
|
/**
|
|
5050
|
-
*
|
|
6293
|
+
* Workflow or task not found
|
|
5051
6294
|
*/
|
|
5052
6295
|
404: unknown;
|
|
5053
6296
|
/**
|
|
@@ -5059,14 +6302,14 @@ type AcknowledgeMemoErrors = {
|
|
|
5059
6302
|
*/
|
|
5060
6303
|
429: unknown;
|
|
5061
6304
|
};
|
|
5062
|
-
type
|
|
6305
|
+
type GetTaskResponses = {
|
|
5063
6306
|
/**
|
|
5064
|
-
*
|
|
6307
|
+
* Task returned successfully
|
|
5065
6308
|
*/
|
|
5066
|
-
200:
|
|
6309
|
+
200: TaskResponse;
|
|
5067
6310
|
};
|
|
5068
|
-
type
|
|
5069
|
-
body
|
|
6311
|
+
type UpdateTaskData = {
|
|
6312
|
+
body: TaskUpdate;
|
|
5070
6313
|
headers?: {
|
|
5071
6314
|
/**
|
|
5072
6315
|
* X-Workspace
|
|
@@ -5075,18 +6318,24 @@ type IgnoreMemoData = {
|
|
|
5075
6318
|
};
|
|
5076
6319
|
path: {
|
|
5077
6320
|
/**
|
|
5078
|
-
*
|
|
6321
|
+
* Workflow Id
|
|
5079
6322
|
*
|
|
5080
|
-
*
|
|
6323
|
+
* Workflow ID
|
|
5081
6324
|
*/
|
|
5082
|
-
|
|
6325
|
+
workflow_id: string;
|
|
6326
|
+
/**
|
|
6327
|
+
* Task Id
|
|
6328
|
+
*
|
|
6329
|
+
* Task ID
|
|
6330
|
+
*/
|
|
6331
|
+
task_id: string;
|
|
5083
6332
|
};
|
|
5084
6333
|
query?: never;
|
|
5085
|
-
url: '/ocxp/
|
|
6334
|
+
url: '/ocxp/workflow/{workflow_id}/tasks/{task_id}';
|
|
5086
6335
|
};
|
|
5087
|
-
type
|
|
6336
|
+
type UpdateTaskErrors = {
|
|
5088
6337
|
/**
|
|
5089
|
-
*
|
|
6338
|
+
* Workflow or task not found
|
|
5090
6339
|
*/
|
|
5091
6340
|
404: unknown;
|
|
5092
6341
|
/**
|
|
@@ -5098,11 +6347,11 @@ type IgnoreMemoErrors = {
|
|
|
5098
6347
|
*/
|
|
5099
6348
|
429: unknown;
|
|
5100
6349
|
};
|
|
5101
|
-
type
|
|
6350
|
+
type UpdateTaskResponses = {
|
|
5102
6351
|
/**
|
|
5103
|
-
*
|
|
6352
|
+
* Task updated successfully
|
|
5104
6353
|
*/
|
|
5105
|
-
200:
|
|
6354
|
+
200: TaskResponse;
|
|
5106
6355
|
};
|
|
5107
6356
|
type DownloadRepositoryData = {
|
|
5108
6357
|
body: DownloadRequest;
|
|
@@ -5182,7 +6431,32 @@ type ListDownloadedReposData = {
|
|
|
5182
6431
|
'X-Workspace'?: string;
|
|
5183
6432
|
};
|
|
5184
6433
|
path?: never;
|
|
5185
|
-
query?:
|
|
6434
|
+
query?: {
|
|
6435
|
+
/**
|
|
6436
|
+
* Limit
|
|
6437
|
+
*
|
|
6438
|
+
* Maximum number of repos to return
|
|
6439
|
+
*/
|
|
6440
|
+
limit?: number;
|
|
6441
|
+
/**
|
|
6442
|
+
* Offset
|
|
6443
|
+
*
|
|
6444
|
+
* Number of repos to skip (for pagination)
|
|
6445
|
+
*/
|
|
6446
|
+
offset?: number;
|
|
6447
|
+
/**
|
|
6448
|
+
* Order By
|
|
6449
|
+
*
|
|
6450
|
+
* Field to order by (created_at, last_synced)
|
|
6451
|
+
*/
|
|
6452
|
+
order_by?: string | null;
|
|
6453
|
+
/**
|
|
6454
|
+
* Order Dir
|
|
6455
|
+
*
|
|
6456
|
+
* Sort direction (asc, desc)
|
|
6457
|
+
*/
|
|
6458
|
+
order_dir?: string;
|
|
6459
|
+
};
|
|
5186
6460
|
url: '/ocxp/repo/list';
|
|
5187
6461
|
};
|
|
5188
6462
|
type ListDownloadedReposErrors = {
|
|
@@ -5452,6 +6726,24 @@ type ListDatabasesData = {
|
|
|
5452
6726
|
* Maximum number of databases to return
|
|
5453
6727
|
*/
|
|
5454
6728
|
limit?: number;
|
|
6729
|
+
/**
|
|
6730
|
+
* Offset
|
|
6731
|
+
*
|
|
6732
|
+
* Number of databases to skip (for pagination)
|
|
6733
|
+
*/
|
|
6734
|
+
offset?: number;
|
|
6735
|
+
/**
|
|
6736
|
+
* Order By
|
|
6737
|
+
*
|
|
6738
|
+
* Field to order by (created_at, updated_at)
|
|
6739
|
+
*/
|
|
6740
|
+
order_by?: string | null;
|
|
6741
|
+
/**
|
|
6742
|
+
* Order Dir
|
|
6743
|
+
*
|
|
6744
|
+
* Sort direction (asc, desc)
|
|
6745
|
+
*/
|
|
6746
|
+
order_dir?: string;
|
|
5455
6747
|
};
|
|
5456
6748
|
url: '/ocxp/database';
|
|
5457
6749
|
};
|
|
@@ -6230,6 +7522,10 @@ type ReadContentResponses = {
|
|
|
6230
7522
|
type WriteContentData = {
|
|
6231
7523
|
body: WriteRequest;
|
|
6232
7524
|
headers?: {
|
|
7525
|
+
/**
|
|
7526
|
+
* X-User-Id
|
|
7527
|
+
*/
|
|
7528
|
+
'X-User-Id'?: string | null;
|
|
6233
7529
|
/**
|
|
6234
7530
|
* X-Workspace
|
|
6235
7531
|
*/
|
|
@@ -6969,7 +8265,7 @@ declare const getSyncStatus: <ThrowOnError extends boolean = false>(options: Opt
|
|
|
6969
8265
|
/**
|
|
6970
8266
|
* List all sessions
|
|
6971
8267
|
*
|
|
6972
|
-
* Returns sessions for the workspace filtered by status. Uses AgentCore Memory when available for fast retrieval.
|
|
8268
|
+
* Returns sessions for the workspace filtered by status. Uses AgentCore Memory when available for fast retrieval. Supports offset-based pagination.
|
|
6973
8269
|
*/
|
|
6974
8270
|
declare const listSessions: <ThrowOnError extends boolean = false>(options?: Options<ListSessionsData, ThrowOnError>) => RequestResult<ListSessionsResponses, ListSessionsErrors, ThrowOnError, "fields">;
|
|
6975
8271
|
/**
|
|
@@ -6999,7 +8295,7 @@ declare const archiveSession: <ThrowOnError extends boolean = false>(options: Op
|
|
|
6999
8295
|
/**
|
|
7000
8296
|
* List all projects
|
|
7001
8297
|
*
|
|
7002
|
-
* Returns all projects in the workspace with their linked repos and missions.
|
|
8298
|
+
* Returns all projects in the workspace with their linked repos and missions. Supports offset-based pagination.
|
|
7003
8299
|
*/
|
|
7004
8300
|
declare const listProjects: <ThrowOnError extends boolean = false>(options?: Options<ListProjectsData, ThrowOnError>) => RequestResult<ListProjectsResponses, ListProjectsErrors, ThrowOnError, "fields">;
|
|
7005
8301
|
/**
|
|
@@ -7119,7 +8415,7 @@ declare const ragKnowledgeBase: <ThrowOnError extends boolean = false>(options:
|
|
|
7119
8415
|
/**
|
|
7120
8416
|
* List memos
|
|
7121
8417
|
*
|
|
7122
|
-
* List memos for the workspace with optional filters.
|
|
8418
|
+
* List memos for the workspace with optional filters and pagination.
|
|
7123
8419
|
*/
|
|
7124
8420
|
declare const listMemos: <ThrowOnError extends boolean = false>(options?: Options<ListMemosData, ThrowOnError>) => RequestResult<ListMemosResponses, ListMemosErrors, ThrowOnError, "fields">;
|
|
7125
8421
|
/**
|
|
@@ -7164,6 +8460,72 @@ declare const acknowledgeMemo: <ThrowOnError extends boolean = false>(options: O
|
|
|
7164
8460
|
* Mark a memo as ignored (false positive or accepted risk).
|
|
7165
8461
|
*/
|
|
7166
8462
|
declare const ignoreMemo: <ThrowOnError extends boolean = false>(options: Options<IgnoreMemoData, ThrowOnError>) => RequestResult<IgnoreMemoResponses, IgnoreMemoErrors, ThrowOnError, "fields">;
|
|
8463
|
+
/**
|
|
8464
|
+
* List workflows
|
|
8465
|
+
*
|
|
8466
|
+
* List workflows for a mission with optional status filter and pagination.
|
|
8467
|
+
*/
|
|
8468
|
+
declare const listWorkflows: <ThrowOnError extends boolean = false>(options: Options<ListWorkflowsData, ThrowOnError>) => RequestResult<ListWorkflowsResponses, ListWorkflowsErrors, ThrowOnError, "fields">;
|
|
8469
|
+
/**
|
|
8470
|
+
* Create workflow with tasks
|
|
8471
|
+
*
|
|
8472
|
+
* Create a new workflow with optional initial tasks. Tasks are stored as memos.
|
|
8473
|
+
*/
|
|
8474
|
+
declare const createWorkflow: <ThrowOnError extends boolean = false>(options: Options<CreateWorkflowData, ThrowOnError>) => RequestResult<CreateWorkflowResponses, CreateWorkflowErrors, ThrowOnError, "fields">;
|
|
8475
|
+
/**
|
|
8476
|
+
* Delete workflow
|
|
8477
|
+
*
|
|
8478
|
+
* Delete a workflow and all its task memos.
|
|
8479
|
+
*/
|
|
8480
|
+
declare const deleteWorkflow: <ThrowOnError extends boolean = false>(options: Options<DeleteWorkflowData, ThrowOnError>) => RequestResult<DeleteWorkflowResponses, DeleteWorkflowErrors, ThrowOnError, "fields">;
|
|
8481
|
+
/**
|
|
8482
|
+
* Get workflow with tasks
|
|
8483
|
+
*
|
|
8484
|
+
* Get a workflow with all its tasks in strands-compatible format.
|
|
8485
|
+
*/
|
|
8486
|
+
declare const getWorkflow: <ThrowOnError extends boolean = false>(options: Options<GetWorkflowData, ThrowOnError>) => RequestResult<GetWorkflowResponses, GetWorkflowErrors, ThrowOnError, "fields">;
|
|
8487
|
+
/**
|
|
8488
|
+
* Start workflow
|
|
8489
|
+
*
|
|
8490
|
+
* Mark workflow as running.
|
|
8491
|
+
*/
|
|
8492
|
+
declare const startWorkflow: <ThrowOnError extends boolean = false>(options: Options<StartWorkflowData, ThrowOnError>) => RequestResult<StartWorkflowResponses, StartWorkflowErrors, ThrowOnError, "fields">;
|
|
8493
|
+
/**
|
|
8494
|
+
* List workflow tasks
|
|
8495
|
+
*
|
|
8496
|
+
* List all tasks for a workflow.
|
|
8497
|
+
*/
|
|
8498
|
+
declare const listTasks: <ThrowOnError extends boolean = false>(options: Options<ListTasksData, ThrowOnError>) => RequestResult<ListTasksResponses, ListTasksErrors, ThrowOnError, "fields">;
|
|
8499
|
+
/**
|
|
8500
|
+
* Add task to workflow
|
|
8501
|
+
*
|
|
8502
|
+
* Add a new task to an existing workflow.
|
|
8503
|
+
*/
|
|
8504
|
+
declare const addTask: <ThrowOnError extends boolean = false>(options: Options<AddTaskData, ThrowOnError>) => RequestResult<AddTaskResponses, AddTaskErrors, ThrowOnError, "fields">;
|
|
8505
|
+
/**
|
|
8506
|
+
* Bulk update tasks
|
|
8507
|
+
*
|
|
8508
|
+
* Update multiple task statuses in a single request for O(1) performance.
|
|
8509
|
+
*/
|
|
8510
|
+
declare const bulkUpdateTasks: <ThrowOnError extends boolean = false>(options: Options<BulkUpdateTasksData, ThrowOnError>) => RequestResult<BulkUpdateTasksResponses, BulkUpdateTasksErrors, ThrowOnError, "fields">;
|
|
8511
|
+
/**
|
|
8512
|
+
* Delete task
|
|
8513
|
+
*
|
|
8514
|
+
* Delete a specific task from a workflow.
|
|
8515
|
+
*/
|
|
8516
|
+
declare const deleteTask: <ThrowOnError extends boolean = false>(options: Options<DeleteTaskData, ThrowOnError>) => RequestResult<DeleteTaskResponses, DeleteTaskErrors, ThrowOnError, "fields">;
|
|
8517
|
+
/**
|
|
8518
|
+
* Get task
|
|
8519
|
+
*
|
|
8520
|
+
* Get a specific task from a workflow.
|
|
8521
|
+
*/
|
|
8522
|
+
declare const getTask: <ThrowOnError extends boolean = false>(options: Options<GetTaskData, ThrowOnError>) => RequestResult<GetTaskResponses, GetTaskErrors, ThrowOnError, "fields">;
|
|
8523
|
+
/**
|
|
8524
|
+
* Update task
|
|
8525
|
+
*
|
|
8526
|
+
* Update a task's status, result, or error.
|
|
8527
|
+
*/
|
|
8528
|
+
declare const updateTask: <ThrowOnError extends boolean = false>(options: Options<UpdateTaskData, ThrowOnError>) => RequestResult<UpdateTaskResponses, UpdateTaskErrors, ThrowOnError, "fields">;
|
|
7167
8529
|
/**
|
|
7168
8530
|
* Start repository download
|
|
7169
8531
|
*
|
|
@@ -7179,13 +8541,13 @@ declare const getRepoDownloadStatus: <ThrowOnError extends boolean = false>(opti
|
|
|
7179
8541
|
/**
|
|
7180
8542
|
* List downloaded repositories
|
|
7181
8543
|
*
|
|
7182
|
-
* Returns
|
|
8544
|
+
* Returns repositories that have been downloaded for the workspace with pagination support.
|
|
7183
8545
|
*/
|
|
7184
8546
|
declare const listDownloadedRepos: <ThrowOnError extends boolean = false>(options?: Options<ListDownloadedReposData, ThrowOnError>) => RequestResult<ListDownloadedReposResponses, ListDownloadedReposErrors, ThrowOnError, "fields">;
|
|
7185
8547
|
/**
|
|
7186
8548
|
* Delete repository
|
|
7187
8549
|
*
|
|
7188
|
-
* Permanently deletes a downloaded repository.
|
|
8550
|
+
* Permanently deletes a downloaded repository. Accepts UUID or owner/repo format.
|
|
7189
8551
|
*/
|
|
7190
8552
|
declare const deleteRepo: <ThrowOnError extends boolean = false>(options: Options<DeleteRepoData, ThrowOnError>) => RequestResult<DeleteRepoResponses, DeleteRepoErrors, ThrowOnError, "fields">;
|
|
7191
8553
|
/**
|
|
@@ -7234,7 +8596,7 @@ declare const githubGetContents: <ThrowOnError extends boolean = false>(options:
|
|
|
7234
8596
|
/**
|
|
7235
8597
|
* List all database configurations
|
|
7236
8598
|
*
|
|
7237
|
-
* Returns all database configurations in the workspace.
|
|
8599
|
+
* Returns all database configurations in the workspace. Supports offset-based pagination.
|
|
7238
8600
|
*/
|
|
7239
8601
|
declare const listDatabases: <ThrowOnError extends boolean = false>(options?: Options<ListDatabasesData, ThrowOnError>) => RequestResult<ListDatabasesResponses, ListDatabasesErrors, ThrowOnError, "fields">;
|
|
7240
8602
|
/**
|
|
@@ -7342,7 +8704,7 @@ declare const readContent: <ThrowOnError extends boolean = false>(options: Optio
|
|
|
7342
8704
|
/**
|
|
7343
8705
|
* Write content
|
|
7344
8706
|
*
|
|
7345
|
-
* Writes content to storage. Supports ETag for optimistic locking
|
|
8707
|
+
* Writes content to storage with robust verification. Supports ETag for optimistic locking, ifNotExists for creation-only, and wait_for_index/verify_access for synchronous KB indexing verification.
|
|
7346
8708
|
*/
|
|
7347
8709
|
declare const writeContent: <ThrowOnError extends boolean = false>(options: Options<WriteContentData, ThrowOnError>) => RequestResult<WriteContentResponses, WriteContentErrors, ThrowOnError, "fields">;
|
|
7348
8710
|
/**
|
|
@@ -7419,17 +8781,196 @@ declare const refreshTokens: <ThrowOnError extends boolean = false>(options: Opt
|
|
|
7419
8781
|
*/
|
|
7420
8782
|
declare const getAuthConfig: <ThrowOnError extends boolean = false>(options?: Options<GetAuthConfigData, ThrowOnError>) => RequestResult<GetAuthConfigResponses, unknown, ThrowOnError, "fields">;
|
|
7421
8783
|
/**
|
|
7422
|
-
* Get Current User
|
|
7423
|
-
*
|
|
7424
|
-
* Get current authenticated user info.
|
|
8784
|
+
* Get Current User
|
|
8785
|
+
*
|
|
8786
|
+
* Get current authenticated user info.
|
|
8787
|
+
*/
|
|
8788
|
+
declare const getCurrentUser: <ThrowOnError extends boolean = false>(options?: Options<GetCurrentUserData, ThrowOnError>) => RequestResult<GetCurrentUserResponses, GetCurrentUserErrors, ThrowOnError, "fields">;
|
|
8789
|
+
/**
|
|
8790
|
+
* List Workspaces
|
|
8791
|
+
*
|
|
8792
|
+
* List workspaces for authenticated user.
|
|
8793
|
+
*/
|
|
8794
|
+
declare const listWorkspaces: <ThrowOnError extends boolean = false>(options?: Options<ListWorkspacesData, ThrowOnError>) => RequestResult<ListWorkspacesResponses, ListWorkspacesErrors, ThrowOnError, "fields">;
|
|
8795
|
+
|
|
8796
|
+
/**
|
|
8797
|
+
* OCXP Error Types
|
|
8798
|
+
*
|
|
8799
|
+
* Typed error classes for the OCXP SDK providing structured error handling
|
|
8800
|
+
* with error codes, HTTP status codes, and detailed context.
|
|
8801
|
+
*/
|
|
8802
|
+
/**
|
|
8803
|
+
* Error codes for OCXP operations
|
|
8804
|
+
*/
|
|
8805
|
+
declare enum OCXPErrorCode {
|
|
8806
|
+
/** Network-level error (connection failed, timeout, etc.) */
|
|
8807
|
+
NETWORK_ERROR = "NETWORK_ERROR",
|
|
8808
|
+
/** Request or response validation failed */
|
|
8809
|
+
VALIDATION_ERROR = "VALIDATION_ERROR",
|
|
8810
|
+
/** Authentication or authorization failed */
|
|
8811
|
+
AUTH_ERROR = "AUTH_ERROR",
|
|
8812
|
+
/** Resource not found */
|
|
8813
|
+
NOT_FOUND = "NOT_FOUND",
|
|
8814
|
+
/** Rate limit exceeded */
|
|
8815
|
+
RATE_LIMITED = "RATE_LIMITED",
|
|
8816
|
+
/** Conflict (e.g., etag mismatch) */
|
|
8817
|
+
CONFLICT = "CONFLICT",
|
|
8818
|
+
/** Operation timed out */
|
|
8819
|
+
TIMEOUT = "TIMEOUT",
|
|
8820
|
+
/** Server-side error */
|
|
8821
|
+
SERVER_ERROR = "SERVER_ERROR",
|
|
8822
|
+
/** Unknown error */
|
|
8823
|
+
UNKNOWN = "UNKNOWN"
|
|
8824
|
+
}
|
|
8825
|
+
/**
|
|
8826
|
+
* Base error class for all OCXP errors
|
|
8827
|
+
*/
|
|
8828
|
+
declare class OCXPError extends Error {
|
|
8829
|
+
/** Error code for programmatic handling */
|
|
8830
|
+
readonly code: OCXPErrorCode;
|
|
8831
|
+
/** HTTP status code if applicable */
|
|
8832
|
+
readonly statusCode: number;
|
|
8833
|
+
/** Additional error details */
|
|
8834
|
+
readonly details?: Record<string, unknown>;
|
|
8835
|
+
/** Request ID for debugging */
|
|
8836
|
+
readonly requestId?: string;
|
|
8837
|
+
/** Original cause of the error */
|
|
8838
|
+
readonly cause?: Error;
|
|
8839
|
+
constructor(message: string, code?: OCXPErrorCode, statusCode?: number, options?: {
|
|
8840
|
+
details?: Record<string, unknown>;
|
|
8841
|
+
requestId?: string;
|
|
8842
|
+
cause?: Error;
|
|
8843
|
+
});
|
|
8844
|
+
/**
|
|
8845
|
+
* Convert error to JSON for logging/serialization
|
|
8846
|
+
*/
|
|
8847
|
+
toJSON(): Record<string, unknown>;
|
|
8848
|
+
}
|
|
8849
|
+
/**
|
|
8850
|
+
* Network-level error (connection failed, DNS resolution, etc.)
|
|
8851
|
+
*/
|
|
8852
|
+
declare class OCXPNetworkError extends OCXPError {
|
|
8853
|
+
constructor(message: string, options?: {
|
|
8854
|
+
details?: Record<string, unknown>;
|
|
8855
|
+
requestId?: string;
|
|
8856
|
+
cause?: Error;
|
|
8857
|
+
});
|
|
8858
|
+
}
|
|
8859
|
+
/**
|
|
8860
|
+
* Validation error (request or response validation failed)
|
|
8861
|
+
*/
|
|
8862
|
+
declare class OCXPValidationError extends OCXPError {
|
|
8863
|
+
/** Field-level validation errors */
|
|
8864
|
+
readonly validationErrors?: Record<string, string[]>;
|
|
8865
|
+
constructor(message: string, validationErrors?: Record<string, string[]>, options?: {
|
|
8866
|
+
details?: Record<string, unknown>;
|
|
8867
|
+
requestId?: string;
|
|
8868
|
+
cause?: Error;
|
|
8869
|
+
});
|
|
8870
|
+
}
|
|
8871
|
+
/**
|
|
8872
|
+
* Authentication or authorization error
|
|
8873
|
+
*/
|
|
8874
|
+
declare class OCXPAuthError extends OCXPError {
|
|
8875
|
+
constructor(message: string, options?: {
|
|
8876
|
+
details?: Record<string, unknown>;
|
|
8877
|
+
requestId?: string;
|
|
8878
|
+
cause?: Error;
|
|
8879
|
+
});
|
|
8880
|
+
}
|
|
8881
|
+
/**
|
|
8882
|
+
* Resource not found error
|
|
8883
|
+
*/
|
|
8884
|
+
declare class OCXPNotFoundError extends OCXPError {
|
|
8885
|
+
/** The resource path that was not found */
|
|
8886
|
+
readonly path?: string;
|
|
8887
|
+
constructor(message: string, path?: string, options?: {
|
|
8888
|
+
details?: Record<string, unknown>;
|
|
8889
|
+
requestId?: string;
|
|
8890
|
+
cause?: Error;
|
|
8891
|
+
});
|
|
8892
|
+
}
|
|
8893
|
+
/**
|
|
8894
|
+
* Rate limit exceeded error
|
|
8895
|
+
*/
|
|
8896
|
+
declare class OCXPRateLimitError extends OCXPError {
|
|
8897
|
+
/** Seconds until rate limit resets */
|
|
8898
|
+
readonly retryAfter?: number;
|
|
8899
|
+
constructor(message?: string, retryAfter?: number, options?: {
|
|
8900
|
+
details?: Record<string, unknown>;
|
|
8901
|
+
requestId?: string;
|
|
8902
|
+
cause?: Error;
|
|
8903
|
+
});
|
|
8904
|
+
}
|
|
8905
|
+
/**
|
|
8906
|
+
* Conflict error (e.g., etag mismatch, concurrent modification)
|
|
8907
|
+
*/
|
|
8908
|
+
declare class OCXPConflictError extends OCXPError {
|
|
8909
|
+
/** Expected etag value */
|
|
8910
|
+
readonly expectedEtag?: string;
|
|
8911
|
+
/** Actual etag value */
|
|
8912
|
+
readonly actualEtag?: string;
|
|
8913
|
+
constructor(message: string, options?: {
|
|
8914
|
+
expectedEtag?: string;
|
|
8915
|
+
actualEtag?: string;
|
|
8916
|
+
details?: Record<string, unknown>;
|
|
8917
|
+
requestId?: string;
|
|
8918
|
+
cause?: Error;
|
|
8919
|
+
});
|
|
8920
|
+
}
|
|
8921
|
+
/**
|
|
8922
|
+
* Operation timeout error
|
|
8923
|
+
*/
|
|
8924
|
+
declare class OCXPTimeoutError extends OCXPError {
|
|
8925
|
+
/** Timeout duration in milliseconds */
|
|
8926
|
+
readonly timeoutMs?: number;
|
|
8927
|
+
constructor(message?: string, timeoutMs?: number, options?: {
|
|
8928
|
+
details?: Record<string, unknown>;
|
|
8929
|
+
requestId?: string;
|
|
8930
|
+
cause?: Error;
|
|
8931
|
+
});
|
|
8932
|
+
}
|
|
8933
|
+
/**
|
|
8934
|
+
* Type guard to check if an error is an OCXPError
|
|
8935
|
+
*/
|
|
8936
|
+
declare function isOCXPError(error: unknown): error is OCXPError;
|
|
8937
|
+
/**
|
|
8938
|
+
* Type guard for specific error types
|
|
8939
|
+
*/
|
|
8940
|
+
declare function isOCXPNetworkError(error: unknown): error is OCXPNetworkError;
|
|
8941
|
+
declare function isOCXPValidationError(error: unknown): error is OCXPValidationError;
|
|
8942
|
+
declare function isOCXPAuthError(error: unknown): error is OCXPAuthError;
|
|
8943
|
+
declare function isOCXPNotFoundError(error: unknown): error is OCXPNotFoundError;
|
|
8944
|
+
declare function isOCXPRateLimitError(error: unknown): error is OCXPRateLimitError;
|
|
8945
|
+
declare function isOCXPConflictError(error: unknown): error is OCXPConflictError;
|
|
8946
|
+
declare function isOCXPTimeoutError(error: unknown): error is OCXPTimeoutError;
|
|
8947
|
+
/**
|
|
8948
|
+
* Map HTTP status code to appropriate OCXP error
|
|
8949
|
+
*/
|
|
8950
|
+
declare function mapHttpError(statusCode: number, message: string, options?: {
|
|
8951
|
+
details?: Record<string, unknown>;
|
|
8952
|
+
requestId?: string;
|
|
8953
|
+
path?: string;
|
|
8954
|
+
retryAfter?: number;
|
|
8955
|
+
}): OCXPError;
|
|
8956
|
+
|
|
8957
|
+
/**
|
|
8958
|
+
* OCXP Type Exports
|
|
7425
8959
|
*/
|
|
7426
|
-
|
|
8960
|
+
|
|
7427
8961
|
/**
|
|
7428
|
-
*
|
|
7429
|
-
*
|
|
7430
|
-
* List workspaces for authenticated user.
|
|
8962
|
+
* Project Credentials for frontend authentication
|
|
7431
8963
|
*/
|
|
7432
|
-
|
|
8964
|
+
interface ProjectCredentials {
|
|
8965
|
+
url?: string | null;
|
|
8966
|
+
username?: string | null;
|
|
8967
|
+
password?: string | null;
|
|
8968
|
+
login_instructions?: string | null;
|
|
8969
|
+
workspace?: string | null;
|
|
8970
|
+
project_id?: string | null;
|
|
8971
|
+
createdAt?: string;
|
|
8972
|
+
updatedAt?: string;
|
|
8973
|
+
}
|
|
7433
8974
|
|
|
7434
8975
|
interface ListEntry$1 {
|
|
7435
8976
|
name: string;
|
|
@@ -7475,6 +9016,22 @@ interface OCXPClientOptions {
|
|
|
7475
9016
|
/** Static token or async function to get token */
|
|
7476
9017
|
token?: string | (() => Promise<string>);
|
|
7477
9018
|
}
|
|
9019
|
+
/**
|
|
9020
|
+
* Standard pagination options for all list methods
|
|
9021
|
+
* Supports both offset-based and cursor-based pagination
|
|
9022
|
+
*/
|
|
9023
|
+
interface ListOptions {
|
|
9024
|
+
/** Items per page (default: 50, max: 100) */
|
|
9025
|
+
limit?: number;
|
|
9026
|
+
/** Skip first N items (for offset pagination) */
|
|
9027
|
+
offset?: number;
|
|
9028
|
+
/** Cursor token (for cursor pagination, alternative to offset) */
|
|
9029
|
+
cursor?: string;
|
|
9030
|
+
/** Sort field */
|
|
9031
|
+
orderBy?: string;
|
|
9032
|
+
/** Sort direction: asc | desc */
|
|
9033
|
+
orderDir?: 'asc' | 'desc';
|
|
9034
|
+
}
|
|
7478
9035
|
type ContentTypeValue = 'mission' | 'project' | 'context' | 'sop' | 'repo' | 'artifact' | 'kb' | 'docs';
|
|
7479
9036
|
/**
|
|
7480
9037
|
* OCXPClient provides a high-level interface to the OCXP API
|
|
@@ -7636,12 +9193,15 @@ declare class OCXPClient {
|
|
|
7636
9193
|
*/
|
|
7637
9194
|
kbRag(query: string, sessionId?: string): Promise<KbRagResponse>;
|
|
7638
9195
|
/**
|
|
7639
|
-
* List all missions in workspace
|
|
9196
|
+
* List all missions in workspace with pagination support
|
|
9197
|
+
* @param options - Filtering, pagination, and sorting options
|
|
9198
|
+
* @returns Paginated mission list with total count
|
|
7640
9199
|
*/
|
|
7641
|
-
listMissions(options?: {
|
|
9200
|
+
listMissions(options?: ListOptions & {
|
|
7642
9201
|
projectId?: string;
|
|
7643
9202
|
status?: string;
|
|
7644
|
-
|
|
9203
|
+
missionIds?: string[];
|
|
9204
|
+
includeMetadata?: boolean;
|
|
7645
9205
|
}): Promise<MissionListResponse>;
|
|
7646
9206
|
/**
|
|
7647
9207
|
* Create a new mission with auto-generated UUID
|
|
@@ -8009,6 +9569,61 @@ declare class OCXPClient {
|
|
|
8009
9569
|
deleteGitHubToken(): Promise<{
|
|
8010
9570
|
success: boolean;
|
|
8011
9571
|
}>;
|
|
9572
|
+
/**
|
|
9573
|
+
* Get project credentials for frontend authentication
|
|
9574
|
+
* @param projectId - Project ID
|
|
9575
|
+
* @returns Project credentials
|
|
9576
|
+
*/
|
|
9577
|
+
getProjectCredentials(projectId: string): Promise<ProjectCredentials>;
|
|
9578
|
+
/**
|
|
9579
|
+
* Save project credentials for frontend authentication
|
|
9580
|
+
* @param projectId - Project ID
|
|
9581
|
+
* @param credentials - Credentials to save (url, username, password)
|
|
9582
|
+
* @returns Success response
|
|
9583
|
+
*/
|
|
9584
|
+
saveProjectCredentials(projectId: string, credentials: {
|
|
9585
|
+
url: string;
|
|
9586
|
+
username: string;
|
|
9587
|
+
password: string;
|
|
9588
|
+
login_instructions?: string;
|
|
9589
|
+
}): Promise<CredentialActionResponse>;
|
|
9590
|
+
/**
|
|
9591
|
+
* Update project credentials for frontend authentication
|
|
9592
|
+
* @param projectId - Project ID
|
|
9593
|
+
* @param updates - Partial credential updates
|
|
9594
|
+
* @returns Success response
|
|
9595
|
+
*/
|
|
9596
|
+
updateProjectCredentials(projectId: string, updates: Partial<ProjectCredentials>): Promise<CredentialActionResponse>;
|
|
9597
|
+
/**
|
|
9598
|
+
* Test project credentials
|
|
9599
|
+
* @param projectId - Project ID
|
|
9600
|
+
* @returns Test result with success flag and optional message
|
|
9601
|
+
*/
|
|
9602
|
+
testProjectCredentials(projectId: string): Promise<CredentialActionResponse>;
|
|
9603
|
+
/**
|
|
9604
|
+
* Delete project credentials
|
|
9605
|
+
* @param projectId - Project ID
|
|
9606
|
+
* @returns void
|
|
9607
|
+
*/
|
|
9608
|
+
deleteProjectCredentials(projectId: string): Promise<void>;
|
|
9609
|
+
/**
|
|
9610
|
+
* Generate mission output (documents, reports, etc.)
|
|
9611
|
+
* @param missionId - Mission UUID
|
|
9612
|
+
* @param outputType - Type of output: 'documents', 'report', 'summary', etc.
|
|
9613
|
+
* @param options - Output options (doc_types, strategy, etc.)
|
|
9614
|
+
*/
|
|
9615
|
+
generateMissionOutput(missionId: string, outputType: string, options?: {
|
|
9616
|
+
doc_types?: string[];
|
|
9617
|
+
strategy?: string;
|
|
9618
|
+
session_id?: string;
|
|
9619
|
+
options?: Record<string, unknown>;
|
|
9620
|
+
}): Promise<GenerateOutputResponse>;
|
|
9621
|
+
/**
|
|
9622
|
+
* Get output generation status
|
|
9623
|
+
* @param missionId - Mission UUID
|
|
9624
|
+
* @param outputType - Type of output to check (default: 'documents')
|
|
9625
|
+
*/
|
|
9626
|
+
getMissionOutputStatus(missionId: string, outputType?: string): Promise<OutputStatusResponse>;
|
|
8012
9627
|
private _mission?;
|
|
8013
9628
|
private _project?;
|
|
8014
9629
|
private _session?;
|
|
@@ -8040,6 +9655,41 @@ declare class OCXPClient {
|
|
|
8040
9655
|
*/
|
|
8041
9656
|
get prototype(): PrototypeNamespace;
|
|
8042
9657
|
}
|
|
9658
|
+
/** Supported document types for mission output generation */
|
|
9659
|
+
declare enum DocumentType {
|
|
9660
|
+
IMPLEMENTATION_GUIDE = "implementation_guide",
|
|
9661
|
+
PRD = "prd",
|
|
9662
|
+
ARCHITECTURE_DECISIONS = "architecture_decisions",
|
|
9663
|
+
DATABASE_SCHEMA = "database_schema",
|
|
9664
|
+
DEPLOYMENT_GUIDE = "deployment_guide",
|
|
9665
|
+
TESTING_STRATEGY = "testing_strategy",
|
|
9666
|
+
API_REFERENCE = "api_reference"
|
|
9667
|
+
}
|
|
9668
|
+
/** Metadata for each document type */
|
|
9669
|
+
interface DocumentTypeInfo {
|
|
9670
|
+
name: string;
|
|
9671
|
+
description: string;
|
|
9672
|
+
icon: string;
|
|
9673
|
+
}
|
|
9674
|
+
/** Map of document type to display info */
|
|
9675
|
+
declare const DOCUMENT_TYPE_INFO: Record<DocumentType, DocumentTypeInfo>;
|
|
9676
|
+
/** Response from generateOutput */
|
|
9677
|
+
interface GenerateOutputResponse {
|
|
9678
|
+
session_id: string;
|
|
9679
|
+
status: string;
|
|
9680
|
+
output_type: string;
|
|
9681
|
+
doc_types?: string[];
|
|
9682
|
+
message?: string;
|
|
9683
|
+
}
|
|
9684
|
+
/** Response from getOutputStatus */
|
|
9685
|
+
interface OutputStatusResponse {
|
|
9686
|
+
status: 'pending' | 'generating' | 'ready' | 'failed';
|
|
9687
|
+
output_type: string;
|
|
9688
|
+
generated_docs: string[];
|
|
9689
|
+
progress?: number;
|
|
9690
|
+
message?: string;
|
|
9691
|
+
error?: string;
|
|
9692
|
+
}
|
|
8043
9693
|
/**
|
|
8044
9694
|
* Mission namespace for convenient mission operations
|
|
8045
9695
|
*/
|
|
@@ -8047,13 +9697,15 @@ declare class MissionNamespace {
|
|
|
8047
9697
|
private client;
|
|
8048
9698
|
constructor(client: OCXPClient);
|
|
8049
9699
|
/**
|
|
8050
|
-
* List missions with optional filtering
|
|
9700
|
+
* List missions with optional filtering and pagination
|
|
8051
9701
|
* @example ocxp.mission.list({ status: 'active', limit: 10 })
|
|
9702
|
+
* @example ocxp.mission.list({ limit: 20, offset: 40, orderBy: 'created_at', orderDir: 'desc' })
|
|
8052
9703
|
*/
|
|
8053
|
-
list(options?: {
|
|
9704
|
+
list(options?: ListOptions & {
|
|
8054
9705
|
projectId?: string;
|
|
8055
9706
|
status?: string;
|
|
8056
|
-
|
|
9707
|
+
missionIds?: string[];
|
|
9708
|
+
includeMetadata?: boolean;
|
|
8057
9709
|
}): Promise<MissionListResponse>;
|
|
8058
9710
|
/**
|
|
8059
9711
|
* Get a mission by ID
|
|
@@ -8128,6 +9780,39 @@ declare class MissionNamespace {
|
|
|
8128
9780
|
* @example ocxp.mission.tree('mission-id', 5, true)
|
|
8129
9781
|
*/
|
|
8130
9782
|
tree(path?: string, depth?: number, includeVersions?: boolean): Promise<ContentTreeResponse>;
|
|
9783
|
+
/**
|
|
9784
|
+
* Generate mission output (documents, reports, etc.)
|
|
9785
|
+
* General endpoint for all output types using existing research.
|
|
9786
|
+
*
|
|
9787
|
+
* @param missionId - Mission UUID
|
|
9788
|
+
* @param outputType - Type of output: 'documents', 'report', 'summary', etc.
|
|
9789
|
+
* @param options - Output options (doc_types, strategy, etc.)
|
|
9790
|
+
* @returns Output response with session_id for tracking
|
|
9791
|
+
*
|
|
9792
|
+
* @example
|
|
9793
|
+
* await ocxp.mission.generateOutput('mission-id', 'documents', {
|
|
9794
|
+
* doc_types: ['implementation-guide', 'prd'],
|
|
9795
|
+
* strategy: 'generate_all'
|
|
9796
|
+
* })
|
|
9797
|
+
*/
|
|
9798
|
+
generateOutput(missionId: string, outputType: string, options?: {
|
|
9799
|
+
doc_types?: string[];
|
|
9800
|
+
strategy?: string;
|
|
9801
|
+
session_id?: string;
|
|
9802
|
+
options?: Record<string, unknown>;
|
|
9803
|
+
}): Promise<GenerateOutputResponse>;
|
|
9804
|
+
/**
|
|
9805
|
+
* Get output generation status
|
|
9806
|
+
* Check progress and status of output generation.
|
|
9807
|
+
*
|
|
9808
|
+
* @param missionId - Mission UUID
|
|
9809
|
+
* @param outputType - Type of output to check (default: 'documents')
|
|
9810
|
+
* @returns Current output status with progress
|
|
9811
|
+
*
|
|
9812
|
+
* @example
|
|
9813
|
+
* const status = await ocxp.mission.getOutputStatus('mission-id', 'documents')
|
|
9814
|
+
*/
|
|
9815
|
+
getOutputStatus(missionId: string, outputType?: string): Promise<OutputStatusResponse>;
|
|
8131
9816
|
}
|
|
8132
9817
|
/**
|
|
8133
9818
|
* Project namespace for convenient project operations
|
|
@@ -8810,167 +10495,6 @@ declare class WebSocketService {
|
|
|
8810
10495
|
*/
|
|
8811
10496
|
declare function createWebSocketService(options: WebSocketServiceOptions): WebSocketService;
|
|
8812
10497
|
|
|
8813
|
-
/**
|
|
8814
|
-
* OCXP Error Types
|
|
8815
|
-
*
|
|
8816
|
-
* Typed error classes for the OCXP SDK providing structured error handling
|
|
8817
|
-
* with error codes, HTTP status codes, and detailed context.
|
|
8818
|
-
*/
|
|
8819
|
-
/**
|
|
8820
|
-
* Error codes for OCXP operations
|
|
8821
|
-
*/
|
|
8822
|
-
declare enum OCXPErrorCode {
|
|
8823
|
-
/** Network-level error (connection failed, timeout, etc.) */
|
|
8824
|
-
NETWORK_ERROR = "NETWORK_ERROR",
|
|
8825
|
-
/** Request or response validation failed */
|
|
8826
|
-
VALIDATION_ERROR = "VALIDATION_ERROR",
|
|
8827
|
-
/** Authentication or authorization failed */
|
|
8828
|
-
AUTH_ERROR = "AUTH_ERROR",
|
|
8829
|
-
/** Resource not found */
|
|
8830
|
-
NOT_FOUND = "NOT_FOUND",
|
|
8831
|
-
/** Rate limit exceeded */
|
|
8832
|
-
RATE_LIMITED = "RATE_LIMITED",
|
|
8833
|
-
/** Conflict (e.g., etag mismatch) */
|
|
8834
|
-
CONFLICT = "CONFLICT",
|
|
8835
|
-
/** Operation timed out */
|
|
8836
|
-
TIMEOUT = "TIMEOUT",
|
|
8837
|
-
/** Server-side error */
|
|
8838
|
-
SERVER_ERROR = "SERVER_ERROR",
|
|
8839
|
-
/** Unknown error */
|
|
8840
|
-
UNKNOWN = "UNKNOWN"
|
|
8841
|
-
}
|
|
8842
|
-
/**
|
|
8843
|
-
* Base error class for all OCXP errors
|
|
8844
|
-
*/
|
|
8845
|
-
declare class OCXPError extends Error {
|
|
8846
|
-
/** Error code for programmatic handling */
|
|
8847
|
-
readonly code: OCXPErrorCode;
|
|
8848
|
-
/** HTTP status code if applicable */
|
|
8849
|
-
readonly statusCode: number;
|
|
8850
|
-
/** Additional error details */
|
|
8851
|
-
readonly details?: Record<string, unknown>;
|
|
8852
|
-
/** Request ID for debugging */
|
|
8853
|
-
readonly requestId?: string;
|
|
8854
|
-
/** Original cause of the error */
|
|
8855
|
-
readonly cause?: Error;
|
|
8856
|
-
constructor(message: string, code?: OCXPErrorCode, statusCode?: number, options?: {
|
|
8857
|
-
details?: Record<string, unknown>;
|
|
8858
|
-
requestId?: string;
|
|
8859
|
-
cause?: Error;
|
|
8860
|
-
});
|
|
8861
|
-
/**
|
|
8862
|
-
* Convert error to JSON for logging/serialization
|
|
8863
|
-
*/
|
|
8864
|
-
toJSON(): Record<string, unknown>;
|
|
8865
|
-
}
|
|
8866
|
-
/**
|
|
8867
|
-
* Network-level error (connection failed, DNS resolution, etc.)
|
|
8868
|
-
*/
|
|
8869
|
-
declare class OCXPNetworkError extends OCXPError {
|
|
8870
|
-
constructor(message: string, options?: {
|
|
8871
|
-
details?: Record<string, unknown>;
|
|
8872
|
-
requestId?: string;
|
|
8873
|
-
cause?: Error;
|
|
8874
|
-
});
|
|
8875
|
-
}
|
|
8876
|
-
/**
|
|
8877
|
-
* Validation error (request or response validation failed)
|
|
8878
|
-
*/
|
|
8879
|
-
declare class OCXPValidationError extends OCXPError {
|
|
8880
|
-
/** Field-level validation errors */
|
|
8881
|
-
readonly validationErrors?: Record<string, string[]>;
|
|
8882
|
-
constructor(message: string, validationErrors?: Record<string, string[]>, options?: {
|
|
8883
|
-
details?: Record<string, unknown>;
|
|
8884
|
-
requestId?: string;
|
|
8885
|
-
cause?: Error;
|
|
8886
|
-
});
|
|
8887
|
-
}
|
|
8888
|
-
/**
|
|
8889
|
-
* Authentication or authorization error
|
|
8890
|
-
*/
|
|
8891
|
-
declare class OCXPAuthError extends OCXPError {
|
|
8892
|
-
constructor(message: string, options?: {
|
|
8893
|
-
details?: Record<string, unknown>;
|
|
8894
|
-
requestId?: string;
|
|
8895
|
-
cause?: Error;
|
|
8896
|
-
});
|
|
8897
|
-
}
|
|
8898
|
-
/**
|
|
8899
|
-
* Resource not found error
|
|
8900
|
-
*/
|
|
8901
|
-
declare class OCXPNotFoundError extends OCXPError {
|
|
8902
|
-
/** The resource path that was not found */
|
|
8903
|
-
readonly path?: string;
|
|
8904
|
-
constructor(message: string, path?: string, options?: {
|
|
8905
|
-
details?: Record<string, unknown>;
|
|
8906
|
-
requestId?: string;
|
|
8907
|
-
cause?: Error;
|
|
8908
|
-
});
|
|
8909
|
-
}
|
|
8910
|
-
/**
|
|
8911
|
-
* Rate limit exceeded error
|
|
8912
|
-
*/
|
|
8913
|
-
declare class OCXPRateLimitError extends OCXPError {
|
|
8914
|
-
/** Seconds until rate limit resets */
|
|
8915
|
-
readonly retryAfter?: number;
|
|
8916
|
-
constructor(message?: string, retryAfter?: number, options?: {
|
|
8917
|
-
details?: Record<string, unknown>;
|
|
8918
|
-
requestId?: string;
|
|
8919
|
-
cause?: Error;
|
|
8920
|
-
});
|
|
8921
|
-
}
|
|
8922
|
-
/**
|
|
8923
|
-
* Conflict error (e.g., etag mismatch, concurrent modification)
|
|
8924
|
-
*/
|
|
8925
|
-
declare class OCXPConflictError extends OCXPError {
|
|
8926
|
-
/** Expected etag value */
|
|
8927
|
-
readonly expectedEtag?: string;
|
|
8928
|
-
/** Actual etag value */
|
|
8929
|
-
readonly actualEtag?: string;
|
|
8930
|
-
constructor(message: string, options?: {
|
|
8931
|
-
expectedEtag?: string;
|
|
8932
|
-
actualEtag?: string;
|
|
8933
|
-
details?: Record<string, unknown>;
|
|
8934
|
-
requestId?: string;
|
|
8935
|
-
cause?: Error;
|
|
8936
|
-
});
|
|
8937
|
-
}
|
|
8938
|
-
/**
|
|
8939
|
-
* Operation timeout error
|
|
8940
|
-
*/
|
|
8941
|
-
declare class OCXPTimeoutError extends OCXPError {
|
|
8942
|
-
/** Timeout duration in milliseconds */
|
|
8943
|
-
readonly timeoutMs?: number;
|
|
8944
|
-
constructor(message?: string, timeoutMs?: number, options?: {
|
|
8945
|
-
details?: Record<string, unknown>;
|
|
8946
|
-
requestId?: string;
|
|
8947
|
-
cause?: Error;
|
|
8948
|
-
});
|
|
8949
|
-
}
|
|
8950
|
-
/**
|
|
8951
|
-
* Type guard to check if an error is an OCXPError
|
|
8952
|
-
*/
|
|
8953
|
-
declare function isOCXPError(error: unknown): error is OCXPError;
|
|
8954
|
-
/**
|
|
8955
|
-
* Type guard for specific error types
|
|
8956
|
-
*/
|
|
8957
|
-
declare function isOCXPNetworkError(error: unknown): error is OCXPNetworkError;
|
|
8958
|
-
declare function isOCXPValidationError(error: unknown): error is OCXPValidationError;
|
|
8959
|
-
declare function isOCXPAuthError(error: unknown): error is OCXPAuthError;
|
|
8960
|
-
declare function isOCXPNotFoundError(error: unknown): error is OCXPNotFoundError;
|
|
8961
|
-
declare function isOCXPRateLimitError(error: unknown): error is OCXPRateLimitError;
|
|
8962
|
-
declare function isOCXPConflictError(error: unknown): error is OCXPConflictError;
|
|
8963
|
-
declare function isOCXPTimeoutError(error: unknown): error is OCXPTimeoutError;
|
|
8964
|
-
/**
|
|
8965
|
-
* Map HTTP status code to appropriate OCXP error
|
|
8966
|
-
*/
|
|
8967
|
-
declare function mapHttpError(statusCode: number, message: string, options?: {
|
|
8968
|
-
details?: Record<string, unknown>;
|
|
8969
|
-
requestId?: string;
|
|
8970
|
-
path?: string;
|
|
8971
|
-
retryAfter?: number;
|
|
8972
|
-
}): OCXPError;
|
|
8973
|
-
|
|
8974
10498
|
/**
|
|
8975
10499
|
* Common Zod Schemas for OCXP API
|
|
8976
10500
|
*
|
|
@@ -9018,7 +10542,7 @@ declare const OCXPResponseSchema: z.ZodObject<{
|
|
|
9018
10542
|
}, z.core.$strip>;
|
|
9019
10543
|
type OCXPResponse = z.infer<typeof OCXPResponseSchema>;
|
|
9020
10544
|
/**
|
|
9021
|
-
* Pagination schema for list responses
|
|
10545
|
+
* Pagination schema for list responses (cursor-based)
|
|
9022
10546
|
*/
|
|
9023
10547
|
declare const PaginationSchema: z.ZodObject<{
|
|
9024
10548
|
cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -9026,13 +10550,51 @@ declare const PaginationSchema: z.ZodObject<{
|
|
|
9026
10550
|
total: z.ZodNumber;
|
|
9027
10551
|
}, z.core.$strip>;
|
|
9028
10552
|
type Pagination = z.infer<typeof PaginationSchema>;
|
|
10553
|
+
/**
|
|
10554
|
+
* Standard pagination query parameters for all list endpoints
|
|
10555
|
+
* Supports both cursor-based AND offset-based pagination
|
|
10556
|
+
*/
|
|
10557
|
+
declare const PaginationParamsSchema: z.ZodObject<{
|
|
10558
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
10559
|
+
offset: z.ZodDefault<z.ZodNumber>;
|
|
10560
|
+
cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10561
|
+
orderBy: z.ZodOptional<z.ZodString>;
|
|
10562
|
+
orderDir: z.ZodDefault<z.ZodEnum<{
|
|
10563
|
+
asc: "asc";
|
|
10564
|
+
desc: "desc";
|
|
10565
|
+
}>>;
|
|
10566
|
+
}, z.core.$strip>;
|
|
10567
|
+
type PaginationParams = z.infer<typeof PaginationParamsSchema>;
|
|
10568
|
+
/**
|
|
10569
|
+
* Standard paginated response structure for all list endpoints
|
|
10570
|
+
* Used to create typed paginated responses
|
|
10571
|
+
*/
|
|
10572
|
+
declare function createPaginatedResponseSchema<T extends z.ZodTypeAny>(itemSchema: T): z.ZodObject<{
|
|
10573
|
+
items: z.ZodArray<T>;
|
|
10574
|
+
total: z.ZodNumber;
|
|
10575
|
+
limit: z.ZodNumber;
|
|
10576
|
+
offset: z.ZodNumber;
|
|
10577
|
+
cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10578
|
+
hasMore: z.ZodBoolean;
|
|
10579
|
+
}, z.core.$strip>;
|
|
10580
|
+
/**
|
|
10581
|
+
* Generic paginated response type
|
|
10582
|
+
*/
|
|
10583
|
+
interface PaginatedResponse<T> {
|
|
10584
|
+
items: T[];
|
|
10585
|
+
total: number;
|
|
10586
|
+
limit: number;
|
|
10587
|
+
offset: number;
|
|
10588
|
+
cursor?: string | null;
|
|
10589
|
+
hasMore: boolean;
|
|
10590
|
+
}
|
|
9029
10591
|
/**
|
|
9030
10592
|
* Content type enum - the 8 valid content types
|
|
9031
10593
|
*/
|
|
9032
10594
|
declare const ContentTypeSchema: z.ZodEnum<{
|
|
10595
|
+
mission: "mission";
|
|
9033
10596
|
repo: "repo";
|
|
9034
10597
|
project: "project";
|
|
9035
|
-
mission: "mission";
|
|
9036
10598
|
context: "context";
|
|
9037
10599
|
sop: "sop";
|
|
9038
10600
|
artifact: "artifact";
|
|
@@ -10132,9 +11694,9 @@ type ContextReposResponse = z.infer<typeof ContextReposResponseSchema>;
|
|
|
10132
11694
|
*/
|
|
10133
11695
|
declare const RepoStatusEnum: z.ZodEnum<{
|
|
10134
11696
|
failed: "failed";
|
|
11697
|
+
processing: "processing";
|
|
10135
11698
|
queued: "queued";
|
|
10136
11699
|
uploading: "uploading";
|
|
10137
|
-
processing: "processing";
|
|
10138
11700
|
vectorizing: "vectorizing";
|
|
10139
11701
|
complete: "complete";
|
|
10140
11702
|
}>;
|
|
@@ -10172,9 +11734,9 @@ declare const RepoDownloadDataSchema: z.ZodObject<{
|
|
|
10172
11734
|
s3_path: z.ZodOptional<z.ZodString>;
|
|
10173
11735
|
status: z.ZodEnum<{
|
|
10174
11736
|
failed: "failed";
|
|
11737
|
+
processing: "processing";
|
|
10175
11738
|
queued: "queued";
|
|
10176
11739
|
uploading: "uploading";
|
|
10177
|
-
processing: "processing";
|
|
10178
11740
|
vectorizing: "vectorizing";
|
|
10179
11741
|
complete: "complete";
|
|
10180
11742
|
}>;
|
|
@@ -10194,9 +11756,9 @@ declare const RepoDownloadResponseSchema: z.ZodObject<{
|
|
|
10194
11756
|
s3_path: z.ZodOptional<z.ZodString>;
|
|
10195
11757
|
status: z.ZodEnum<{
|
|
10196
11758
|
failed: "failed";
|
|
11759
|
+
processing: "processing";
|
|
10197
11760
|
queued: "queued";
|
|
10198
11761
|
uploading: "uploading";
|
|
10199
|
-
processing: "processing";
|
|
10200
11762
|
vectorizing: "vectorizing";
|
|
10201
11763
|
complete: "complete";
|
|
10202
11764
|
}>;
|
|
@@ -10224,9 +11786,9 @@ declare const RepoStatusDataSchema: z.ZodObject<{
|
|
|
10224
11786
|
job_id: z.ZodString;
|
|
10225
11787
|
status: z.ZodEnum<{
|
|
10226
11788
|
failed: "failed";
|
|
11789
|
+
processing: "processing";
|
|
10227
11790
|
queued: "queued";
|
|
10228
11791
|
uploading: "uploading";
|
|
10229
|
-
processing: "processing";
|
|
10230
11792
|
vectorizing: "vectorizing";
|
|
10231
11793
|
complete: "complete";
|
|
10232
11794
|
}>;
|
|
@@ -10247,9 +11809,9 @@ declare const RepoStatusResponseSchema: z.ZodObject<{
|
|
|
10247
11809
|
job_id: z.ZodString;
|
|
10248
11810
|
status: z.ZodEnum<{
|
|
10249
11811
|
failed: "failed";
|
|
11812
|
+
processing: "processing";
|
|
10250
11813
|
queued: "queued";
|
|
10251
11814
|
uploading: "uploading";
|
|
10252
|
-
processing: "processing";
|
|
10253
11815
|
vectorizing: "vectorizing";
|
|
10254
11816
|
complete: "complete";
|
|
10255
11817
|
}>;
|
|
@@ -10696,8 +12258,8 @@ declare const KBIngestDataSchema: z.ZodObject<{
|
|
|
10696
12258
|
status: z.ZodOptional<z.ZodEnum<{
|
|
10697
12259
|
failed: "failed";
|
|
10698
12260
|
processing: "processing";
|
|
10699
|
-
complete: "complete";
|
|
10700
12261
|
pending: "pending";
|
|
12262
|
+
complete: "complete";
|
|
10701
12263
|
}>>;
|
|
10702
12264
|
}, z.core.$strip>;
|
|
10703
12265
|
type KBIngestData = z.infer<typeof KBIngestDataSchema>;
|
|
@@ -10713,8 +12275,8 @@ declare const KBIngestResponseSchema: z.ZodObject<{
|
|
|
10713
12275
|
status: z.ZodOptional<z.ZodEnum<{
|
|
10714
12276
|
failed: "failed";
|
|
10715
12277
|
processing: "processing";
|
|
10716
|
-
complete: "complete";
|
|
10717
12278
|
pending: "pending";
|
|
12279
|
+
complete: "complete";
|
|
10718
12280
|
}>>;
|
|
10719
12281
|
}, z.core.$strip>>;
|
|
10720
12282
|
error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -10796,8 +12358,8 @@ declare const IngestionJobSchema: z.ZodObject<{
|
|
|
10796
12358
|
jobId: z.ZodString;
|
|
10797
12359
|
status: z.ZodEnum<{
|
|
10798
12360
|
failed: "failed";
|
|
10799
|
-
queued: "queued";
|
|
10800
12361
|
processing: "processing";
|
|
12362
|
+
queued: "queued";
|
|
10801
12363
|
complete: "complete";
|
|
10802
12364
|
}>;
|
|
10803
12365
|
progress: z.ZodOptional<z.ZodNumber>;
|
|
@@ -10817,8 +12379,8 @@ declare const IngestionJobResponseSchema: z.ZodObject<{
|
|
|
10817
12379
|
jobId: z.ZodString;
|
|
10818
12380
|
status: z.ZodEnum<{
|
|
10819
12381
|
failed: "failed";
|
|
10820
|
-
queued: "queued";
|
|
10821
12382
|
processing: "processing";
|
|
12383
|
+
queued: "queued";
|
|
10822
12384
|
complete: "complete";
|
|
10823
12385
|
}>;
|
|
10824
12386
|
progress: z.ZodOptional<z.ZodNumber>;
|
|
@@ -11533,4 +13095,4 @@ declare const GithubCommitsResponseSchema: z.ZodObject<{
|
|
|
11533
13095
|
}, z.core.$strip>;
|
|
11534
13096
|
type GithubCommitsResponse = z.infer<typeof GithubCommitsResponseSchema>;
|
|
11535
13097
|
|
|
11536
|
-
export { type AcknowledgeMemoData, type AcknowledgeMemoResponses, type AddDatabaseData, type AddDatabaseResponses, type AddLinkedRepoData, type AddLinkedRepoResponses, type AddMissionData, type AddMissionRequest, type AddMissionResponses, type AddProjectRepoData, AddProjectRepoDataSchema, type AddProjectRepoResponse, AddProjectRepoResponseSchema, type AddRepoRequest, type ArchiveSessionData, type ArchiveSessionResponses, type AuthConfig, type AuthTokenData, AuthTokenDataSchema, type AuthTokenResponse, AuthTokenResponseSchema, type AuthUserInfo, type AuthUserInfoResponse, AuthUserInfoResponseSchema, AuthUserInfoSchema, type AuthValidateData, AuthValidateDataSchema, type AuthValidateResponse, AuthValidateResponseSchema, type BulkDeleteContentData, type BulkDeleteContentResponses, type BulkDeleteRequest, type BulkReadContentData, type BulkReadContentResponses, type BulkReadRequest, type BulkWriteContentData, type BulkWriteContentResponses, type BulkWriteRequest, type CheckAccessRequest, type Client, type ClientOptions, type Config, type ConnectionState, type ContentType, type ContentTypeInfo, ContentTypeInfoSchema, ContentTypeSchema, type ContentTypeValue, type ContentTypesData, ContentTypesDataSchema, type ContentTypesResponse, ContentTypesResponseSchema, type ContentTypesResult, type ContextReposData, ContextReposDataSchema, type ContextReposResponse, ContextReposResponseSchema, type CreateDatabaseData, type CreateDatabaseResponses, type CreateMemoData, type CreateMemoRequest, type CreateMemoResponse, type CreateMemoResponses, type CreateProjectData, CreateProjectDataSchema, type CreateProjectResponse, CreateProjectResponseSchema, type CreateProjectResponses, type CreateSessionData, CreateSessionDataSchema, type CreateSessionResponse, CreateSessionResponseSchema, type DatabaseConfigResponse, type DatabaseCreate, type DatabaseListResponse, type DatabaseSampleResponse, type DatabaseSchemaResponse, type DatabaseUpdate, type DeleteContentData, type DeleteContentResponses, type DeleteData, DeleteDataSchema, type DeleteDatabaseData, type DeleteDatabaseResponses, type DeleteMemoData, type DeleteMemoResponse, type DeleteMemoResponses, type DeleteProjectData, DeleteProjectDataSchema, type DeleteProjectResponse, DeleteProjectResponseSchema, type DeleteProjectResponses, type DeleteRepoData, type DeleteRepoResponses, type DeleteResponse, DeleteResponseSchema, type DeleteResult, type DiscoveryData, DiscoveryDataSchema, type DiscoveryEndpoint, DiscoveryEndpointSchema, type DiscoveryResponse, DiscoveryResponseSchema, type DownloadRepositoryData, type DownloadRepositoryResponses, type DownloadRequest, type ErrorResponse, ErrorResponseSchema, type ForkRequest, type ForkSessionData, ForkSessionDataSchema, type ForkSessionResponse, ForkSessionResponseSchema, type ForkSessionResponses, type GetAuthConfigData, type GetAuthConfigResponses, type GetContentStatsData, type GetContentStatsResponses, type GetContentTreeData, type GetContentTreeResponses, type GetContentTypesData, type GetContentTypesResponses, type GetContentsRequest, type GetContextReposData, type GetContextReposResponses, type GetCurrentUserData, type GetCurrentUserResponses, type GetDatabaseData, type GetDatabaseResponses, type GetMemoData, type GetMemoForSourceData, type GetMemoForSourceResponse, type GetMemoForSourceResponses, type GetMemoResponse, type GetMemoResponses, type GetMissionContextData, type GetMissionContextResponses, type GetProjectData, GetProjectDataSchema, type GetProjectDatabasesData, type GetProjectDatabasesResponses, type GetProjectResponse, GetProjectResponseSchema, type GetProjectResponses, type GetPrototypeChatData, type GetPrototypeChatResponses, type GetRepoCommitsData, type GetRepoCommitsResponses, type GetRepoDownloadStatusData, type GetRepoDownloadStatusResponses, type GetSampleData, type GetSampleResponses, type GetSchemaData, type GetSchemaResponses, type GetSessionMessagesData, GetSessionMessagesDataSchema, type GetSessionMessagesResponse, GetSessionMessagesResponseSchema, type GetSessionMessagesResponses, type GetStoredVersionsData, type GetStoredVersionsResponses, type GetSyncStatusData, type GetSyncStatusResponses, type GithubBranchInfo, GithubBranchInfoSchema, type GithubBranchesData, GithubBranchesDataSchema, type GithubBranchesResponse, GithubBranchesResponseSchema, type GithubCheckAccessData, type GithubCheckAccessResponses, type GithubCommitInfo, GithubCommitInfoSchema, type GithubCommitsData, GithubCommitsDataSchema, type GithubCommitsResponse, GithubCommitsResponseSchema, type GithubDirectoryData, GithubDirectoryDataSchema, type GithubDirectoryResponse, GithubDirectoryResponseSchema, type GithubFileData, GithubFileDataSchema, type GithubFileInfo, GithubFileInfoSchema, type GithubFileResponse, GithubFileResponseSchema, type GithubGetContentsData, type GithubGetContentsResponses, type GithubListBranchesData, type GithubListBranchesResponses, type GithubRepoData, GithubRepoDataSchema, type GithubRepoInfo, GithubRepoInfoSchema, type GithubRepoResponse, GithubRepoResponseSchema, type IgnoreMemoData, type IgnoreMemoResponses, type IngestionJob, type IngestionJobResponse, IngestionJobResponseSchema, IngestionJobSchema, type JobProgressMessage, type KBDocument, KBDocumentSchema, type KBIngestData, KBIngestDataSchema, type KBIngestResponse, KBIngestResponseSchema, type KBListData, KBListDataSchema, type KBListResponse, KBListResponseSchema, KBNamespace, type KbQueryRequest, type LinkPrototypeChatData, type LinkPrototypeChatResponses, type LinkedRepoResponse, type ListBranchesRequest, type ListContentData, type ListContentResponses, type ListData, ListDataSchema, type ListDatabasesData, type ListDatabasesResponses, type ListDownloadedReposData, type ListDownloadedReposResponses, type ListEntry, ListEntrySchema, type ListMemosData, type ListMemosResponse, type ListMemosResponses, type ListProjectsData, ListProjectsDataSchema, type ListProjectsResponse, ListProjectsResponseSchema, type ListProjectsResponses, type ListPrototypeChatsData, type ListPrototypeChatsResponses, type ListResponse, ListResponseSchema, type ListResult, type ListSessionsData, ListSessionsDataSchema, type ListSessionsResponse, ListSessionsResponseSchema, type ListSessionsResponses, type ListTablesData, type ListTablesResponses, type ListWorkspacesData, type ListWorkspacesResponses, type LockContentData, type LockContentResponses, type LoginData, type LoginForAccessTokenData, type LoginForAccessTokenResponses, type LoginRequest, type LoginResponses, type Memo, type MemoActionResponse, type MemoCategory, type MemoSeverity, type MemoStatus, type MessageResponse, type Meta, MetaSchema, type MissionCreateRequest, MissionNamespace, type MoveContentData, type MoveContentResponses, type MoveRequest, type NotificationMessage, OCXPAuthError, OCXPClient, type OCXPClientOptions, OCXPConflictError, OCXPError, OCXPErrorCode, OCXPNetworkError, OCXPNotFoundError, OCXPPathService, type OCXPPathServiceOptions, OCXPRateLimitError, type OCXPResponse, OCXPResponseSchema, OCXPTimeoutError, OCXPValidationError, type Options, type Pagination, PaginationSchema, type ParsedPath, type PathEntry, type PathFileInfo, type PathListResult, type PathMoveResult, type PathReadResult, type PathWriteOptions, type PathWriteResult, type PresignedUrlData, PresignedUrlDataSchema, type PresignedUrlResponse, PresignedUrlResponseSchema, type PreviewPrototypeChatData, type PreviewPrototypeChatResponses, type Project, type ProjectCreate, type ProjectListResponse, type ProjectMission, ProjectMissionSchema, ProjectNamespace, type ProjectRepo, ProjectRepoSchema, type ProjectResponse, ProjectSchema, type ProjectUpdate, type PrototypeChatGetResponse, type PrototypeChatLinkRequest, type PrototypeChatLinkResponse, type PrototypeChatListItem, type PrototypeChatListResponse, type PrototypeChatMessage, type PrototypeChatPreviewRequest, type PrototypeChatPreviewResponse, type PrototypeChatSyncAsyncRequest, type PrototypeChatSyncAsyncResponse, type PrototypeChatSyncRequest, type PrototypeChatSyncResponse, type PrototypeChatVersion, PrototypeNamespace, type PrototypePageInfo, type PrototypeStoredVersionsResponse, type PrototypeSyncCompleteMessage, type PrototypeSyncJobStatusResponse, type PrototypeSyncProgressMessage, type QueryContentData, type QueryContentResponses, type QueryData, QueryDataSchema, type QueryFilter, QueryFilterSchema, type QueryKnowledgeBaseData, type QueryKnowledgeBaseResponses, type QueryResponse, QueryResponseSchema, type RagKnowledgeBaseData, type RagKnowledgeBaseResponses, type ReadContentData, type ReadContentResponses, type ReadData, ReadDataSchema, type ReadResponse, ReadResponseSchema, type ReadResult, type RefreshRequest, type RefreshResponse, type RefreshTokensData, type RefreshTokensResponses, type RegenerateMissionData, type RegenerateMissionRequest, type RegenerateMissionResponse, type RegenerateMissionResponses, type RemoveDatabaseData, type RemoveDatabaseResponses, type RemoveLinkedRepoData, type RemoveLinkedRepoResponses, type RemoveMissionData, type RemoveMissionResponses, type RepoCommitInfo, type RepoCommitStatusResponse, type RepoDeleteData, RepoDeleteDataSchema, type RepoDeleteResponse, RepoDeleteResponseSchema, type RepoDownloadData, RepoDownloadDataSchema, type RepoDownloadRequest, RepoDownloadRequestSchema, type RepoDownloadResponse, RepoDownloadResponseSchema, type RepoExistsData, RepoExistsDataSchema, type RepoExistsResponse, RepoExistsResponseSchema, type RepoInfo, type RepoListData, RepoListDataSchema, type RepoListItem, RepoListItemSchema, type RepoListResponse, RepoListResponseSchema, type RepoStatus, type RepoStatusData, RepoStatusDataSchema, RepoStatusEnum, type RepoStatusMessage, type RepoStatusResponse, RepoStatusResponseSchema, type RepoSyncAllResponse, type RepoSyncResponse, type ResolveMemoData, type ResolveMemoResponses, type SearchContentData, type SearchContentResponses, type SearchData, SearchDataSchema, type SearchResponse, SearchResponseSchema, type SearchResultItem, SearchResultItemSchema, type Session, type SessionForkResponse, type SessionListResponse, type SessionMessage, SessionMessageSchema, type SessionMessagesResponse, type SessionMetadataUpdate, SessionNamespace, type SessionResponse, SessionSchema, type SetDefaultDatabaseData, type SetDefaultDatabaseResponses, type SetDefaultRepoData, type SetDefaultRepoRequest, type SetDefaultRepoResponses, type SourceType, type StatsData, StatsDataSchema, type StatsResponse, StatsResponseSchema, type SyncAllReposData, type SyncAllReposResponses, type SyncEventMessage, type SyncPrototypeChatAsyncData, type SyncPrototypeChatAsyncResponses, type SyncPrototypeChatData, type SyncPrototypeChatResponses, type SyncRepoData, type SyncRepoResponses, type TestDatabaseConnectionData, type TestDatabaseConnectionResponses, type TokenProvider, type TokenResponse, type ToolCreateMissionData, type ToolCreateMissionResponses, type ToolUpdateMissionData, type ToolUpdateMissionResponses, type TreeData, TreeDataSchema, type TreeNode, TreeNodeSchema, type TreeResponse, TreeResponseSchema, type UnlockContentData, type UnlockContentResponses, type UpdateDatabaseData, type UpdateDatabaseResponses, type UpdateProjectData, UpdateProjectDataSchema, type UpdateProjectResponse, UpdateProjectResponseSchema, type UpdateProjectResponses, type UpdateSessionMetadataData, UpdateSessionMetadataDataSchema, type UpdateSessionMetadataResponse, UpdateSessionMetadataResponseSchema, type UpdateSessionMetadataResponses, type UserResponse, VALID_CONTENT_TYPES, type VectorSearchData, VectorSearchDataSchema, type VectorSearchResponse, VectorSearchResponseSchema, type WSBaseMessage, WSBaseMessageSchema, type WSChatMessage, WSChatMessageSchema, type WSChatResponse, WSChatResponseSchema, type WSConnected, WSConnectedSchema, type WSErrorMessage, WSErrorMessageSchema, type WSMessage, WSMessageSchema, type WSMessageType, WSMessageTypeSchema, type WSParseResult, type WSPingPong, WSPingPongSchema, type WSStatus, WSStatusSchema, type WSStreamChunk, WSStreamChunkSchema, type WSStreamEnd, WSStreamEndSchema, type WSStreamStart, WSStreamStartSchema, type WebSocketEventHandler, type WebSocketMessage, type WebSocketMessageType, WebSocketService, type WebSocketServiceOptions, type WorkspacesResponse, type WriteContentData, type WriteContentResponses, type WriteData, WriteDataSchema, type WriteRequest, type WriteResponse, WriteResponseSchema, type WriteResult, acknowledgeMemo, addDatabase, addLinkedRepo, addMission, archiveSession, buildPath, bulkDeleteContent, bulkReadContent, bulkWriteContent, createClient, createConfig, createDatabase, createMemo, createOCXPClient, createPathService, createProject, createResponseSchema, createWebSocketService, deleteContent, deleteDatabase, deleteMemo, deleteProject, deleteRepo, downloadRepository, forkSession, getAuthConfig, getCanonicalType, getContentStats, getContentTree, getContentTypes, getContextRepos, getCurrentUser, getDatabase, getMemo, getMemoForSource, getMissionContext, getProject, getProjectDatabases, getPrototypeChat, getRepoCommits, getRepoDownloadStatus, getSample, getSchema, getSessionMessages, getStoredVersions, getSyncStatus, githubCheckAccess, githubGetContents, githubListBranches, ignoreMemo, isOCXPAuthError, isOCXPConflictError, isOCXPError, isOCXPNetworkError, isOCXPNotFoundError, isOCXPRateLimitError, isOCXPTimeoutError, isOCXPValidationError, isValidContentType, linkPrototypeChat, listContent, listContextDatabases, listDatabases, listDownloadedRepos, listMemos, listProjects, listPrototypeChats, listSessions, listTables, listWorkspaces, lockContent, login, loginForAccessToken, mapHttpError, moveContent, normalizePath, parsePath, parseWSMessage, previewPrototypeChat, queryContent, queryKnowledgeBase, ragKnowledgeBase, readContent, refreshTokens, regenerateMission, removeDatabase, removeLinkedRepo, removeMission, resolveMemo, safeParseWSMessage, searchContent, setDefaultDatabase, setDefaultRepo, syncAllRepos, syncPrototypeChat, syncPrototypeChatAsync, syncRepo, testDatabaseConnection, toolCreateMission, toolUpdateMission, unlockContent, updateDatabase, updateProject, updateSessionMetadata, writeContent };
|
|
13098
|
+
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 AddTaskData, type AddTaskResponses, 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 BulkReadContentData, type BulkReadContentResponses, type BulkReadRequest, type BulkUpdateTasksData, type BulkUpdateTasksResponses, 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 CreateWorkflowData, type CreateWorkflowResponses, DOCUMENT_TYPE_INFO, 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 DeleteTaskData, type DeleteTaskResponses, type DeleteWorkflowData, type DeleteWorkflowResponses, type DiscoveryData, DiscoveryDataSchema, type DiscoveryEndpoint, DiscoveryEndpointSchema, type DiscoveryResponse, DiscoveryResponseSchema, DocumentType, type DocumentTypeInfo, type DownloadRepositoryData, type DownloadRepositoryResponses, type DownloadRequest, type ErrorResponse, ErrorResponseSchema, type ForkRequest, type ForkSessionData, ForkSessionDataSchema, type ForkSessionResponse, ForkSessionResponseSchema, type ForkSessionResponses, type GenerateOutputResponse, type GetAuthConfigData, type GetAuthConfigResponses, type GetContentStatsData, type GetContentStatsResponses, type GetContentTreeData, type GetContentTreeResponses, type GetContentTypesData, type GetContentTypesResponses, type GetContentsRequest, type GetContextReposData, type GetContextReposResponses, type GetCurrentUserData, type GetCurrentUserResponses, type GetDatabaseData, type GetDatabaseResponses, type GetMemoData, type GetMemoForSourceData, type GetMemoForSourceResponse, type GetMemoForSourceResponses, type GetMemoResponse, type GetMemoResponses, type GetMissionContextData, type GetMissionContextResponses, type GetProjectData, GetProjectDataSchema, type GetProjectDatabasesData, type GetProjectDatabasesResponses, type GetProjectResponse, GetProjectResponseSchema, type GetProjectResponses, type GetPrototypeChatData, type GetPrototypeChatResponses, type GetRepoCommitsData, type GetRepoCommitsResponses, type GetRepoDownloadStatusData, type GetRepoDownloadStatusResponses, type GetSampleData, type GetSampleResponses, type GetSchemaData, type GetSchemaResponses, type GetSessionMessagesData, GetSessionMessagesDataSchema, type GetSessionMessagesResponse, GetSessionMessagesResponseSchema, type GetSessionMessagesResponses, type GetStoredVersionsData, type GetStoredVersionsResponses, type GetSyncStatusData, type GetSyncStatusResponses, type GetTaskData, type GetTaskResponses, type GetWorkflowData, type GetWorkflowResponses, 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 ListOptions, 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 ListTasksData, type ListTasksResponses, type ListWorkflowsData, type ListWorkflowsResponses, 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 OutputStatusResponse, type PaginatedResponse, type Pagination, type PaginationParams, PaginationParamsSchema, PaginationSchema, type ParsedPath, type PathEntry, type PathFileInfo, type PathListResult, type PathMoveResult, type PathReadResult, type PathWriteOptions, type PathWriteResult, type PresignedUrlData, PresignedUrlDataSchema, type PresignedUrlResponse, PresignedUrlResponseSchema, type PreviewPrototypeChatData, type PreviewPrototypeChatResponses, type Project, type ProjectCreate, type ProjectListResponse, type ProjectMission, ProjectMissionSchema, ProjectNamespace, type ProjectRepo, ProjectRepoSchema, type ProjectResponse, ProjectSchema, type ProjectUpdate, type PrototypeChatGetResponse, type PrototypeChatLinkRequest, type PrototypeChatLinkResponse, type PrototypeChatListItem, type PrototypeChatListResponse, type PrototypeChatMessage, type PrototypeChatPreviewRequest, type PrototypeChatPreviewResponse, type PrototypeChatSyncAsyncRequest, type PrototypeChatSyncAsyncResponse, type PrototypeChatSyncRequest, type PrototypeChatSyncResponse, type PrototypeChatVersion, PrototypeNamespace, type PrototypePageInfo, type PrototypeStoredVersionsResponse, type PrototypeSyncCompleteMessage, type PrototypeSyncJobStatusResponse, type PrototypeSyncProgressMessage, type QueryContentData, type QueryContentResponses, type QueryData, QueryDataSchema, type QueryFilter, QueryFilterSchema, type QueryKnowledgeBaseData, type QueryKnowledgeBaseResponses, type QueryResponse, QueryResponseSchema, type RagKnowledgeBaseData, type RagKnowledgeBaseResponses, type ReadContentData, type ReadContentResponses, type ReadData, ReadDataSchema, type ReadResponse, ReadResponseSchema, type ReadResult, type RefreshRequest, type RefreshResponse, type RefreshTokensData, type RefreshTokensResponses, type RegenerateMissionData, type RegenerateMissionRequest, type RegenerateMissionResponse, type RegenerateMissionResponses, type RemoveDatabaseData, type RemoveDatabaseResponses, type RemoveLinkedRepoData, type RemoveLinkedRepoResponses, type RemoveMissionData, type RemoveMissionResponses, type RepoCommitInfo, type RepoCommitStatusResponse, type RepoDeleteData, RepoDeleteDataSchema, type RepoDeleteResponse, RepoDeleteResponseSchema, type RepoDownloadData, RepoDownloadDataSchema, type RepoDownloadRequest, RepoDownloadRequestSchema, type RepoDownloadResponse, RepoDownloadResponseSchema, type RepoExistsData, RepoExistsDataSchema, type RepoExistsResponse, RepoExistsResponseSchema, type RepoInfo, type RepoListData, RepoListDataSchema, type RepoListItem, RepoListItemSchema, type RepoListResponse, RepoListResponseSchema, type RepoStatus, type RepoStatusData, RepoStatusDataSchema, RepoStatusEnum, type RepoStatusMessage, type RepoStatusResponse, RepoStatusResponseSchema, type RepoSyncAllResponse, type RepoSyncResponse, type ResolveMemoData, type ResolveMemoResponses, type SearchContentData, type SearchContentResponses, type SearchData, SearchDataSchema, type SearchResponse, SearchResponseSchema, type SearchResultItem, SearchResultItemSchema, type Session, type SessionForkResponse, type SessionListResponse, type SessionMessage, SessionMessageSchema, type SessionMessagesResponse, type SessionMetadataUpdate, SessionNamespace, type SessionResponse, SessionSchema, type SetDefaultDatabaseData, type SetDefaultDatabaseResponses, type SetDefaultRepoData, type SetDefaultRepoRequest, type SetDefaultRepoResponses, type SourceType, type StartWorkflowData, type StartWorkflowResponses, type StatsData, StatsDataSchema, type StatsResponse, StatsResponseSchema, type SyncAllReposData, type SyncAllReposResponses, type SyncEventMessage, type SyncPrototypeChatAsyncData, type SyncPrototypeChatAsyncResponses, type SyncPrototypeChatData, type SyncPrototypeChatResponses, type SyncRepoData, type SyncRepoResponses, type TaskResponse, type TaskStatus, 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 UpdateTaskData, type UpdateTaskResponses, 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 Workflow, type WorkflowActionResponse, type WorkflowCreate, type WorkflowListResponse, type WorkflowResponse, type WorkflowStatus, type WorkflowTaskCreate, type WorkspacesResponse, type WriteContentData, type WriteContentResponses, type WriteData, WriteDataSchema, type WriteRequest, type WriteResponse, WriteResponseSchema, type WriteResult, acknowledgeMemo, addDatabase, addLinkedRepo, addMission, addTask, archiveSession, buildPath, bulkDeleteContent, bulkReadContent, bulkUpdateTasks, bulkWriteContent, createClient, createConfig, createDatabase, createMemo, createOCXPClient, createPaginatedResponseSchema, createPathService, createProject, createResponseSchema, createWebSocketService, createWorkflow, deleteContent, deleteDatabase, deleteMemo, deleteProject, deleteRepo, deleteTask, deleteWorkflow, downloadRepository, forkSession, getAuthConfig, getCanonicalType, getContentStats, getContentTree, getContentTypes, getContextRepos, getCurrentUser, getDatabase, getMemo, getMemoForSource, getMissionContext, getProject, getProjectDatabases, getPrototypeChat, getRepoCommits, getRepoDownloadStatus, getSample, getSchema, getSessionMessages, getStoredVersions, getSyncStatus, getTask, getWorkflow, githubCheckAccess, githubGetContents, githubListBranches, ignoreMemo, isOCXPAuthError, isOCXPConflictError, isOCXPError, isOCXPNetworkError, isOCXPNotFoundError, isOCXPRateLimitError, isOCXPTimeoutError, isOCXPValidationError, isValidContentType, linkPrototypeChat, listContent, listContextDatabases, listDatabases, listDownloadedRepos, listMemos, listProjects, listPrototypeChats, listSessions, listTables, listTasks, listWorkflows, listWorkspaces, lockContent, login, loginForAccessToken, mapHttpError, moveContent, normalizePath, parsePath, parseWSMessage, previewPrototypeChat, queryContent, queryKnowledgeBase, ragKnowledgeBase, readContent, refreshTokens, regenerateMission, removeDatabase, removeLinkedRepo, removeMission, resolveMemo, safeParseWSMessage, searchContent, setDefaultDatabase, setDefaultRepo, startWorkflow, syncAllRepos, syncPrototypeChat, syncPrototypeChatAsync, syncRepo, testDatabaseConnection, toolCreateMission, toolUpdateMission, unlockContent, updateDatabase, updateProject, updateSessionMetadata, updateTask, writeContent };
|