@ocxp/client 0.2.7 → 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 +332 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2196 -677
- package/dist/index.d.ts +2196 -677
- package/dist/index.js +318 -32
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -813,11 +813,7 @@ var createClient = (config = {}) => {
|
|
|
813
813
|
};
|
|
814
814
|
|
|
815
815
|
// src/generated/client.gen.ts
|
|
816
|
-
var client = createClient(
|
|
817
|
-
createConfig({
|
|
818
|
-
baseUrl: "https://ix8b43sg3j.execute-api.us-west-2.amazonaws.com"
|
|
819
|
-
})
|
|
820
|
-
);
|
|
816
|
+
var client = createClient(createConfig());
|
|
821
817
|
|
|
822
818
|
// src/generated/sdk.gen.ts
|
|
823
819
|
var bulkReadContent = (options) => (options.client ?? client).post({
|
|
@@ -1041,6 +1037,39 @@ var setDefaultDatabase = (options) => (options.client ?? client).put({
|
|
|
1041
1037
|
...options.headers
|
|
1042
1038
|
}
|
|
1043
1039
|
});
|
|
1040
|
+
var deleteCredentials = (options) => (options.client ?? client).delete({
|
|
1041
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1042
|
+
url: "/ocxp/project/{project_id}/credentials",
|
|
1043
|
+
...options
|
|
1044
|
+
});
|
|
1045
|
+
var getCredentials = (options) => (options.client ?? client).get({
|
|
1046
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1047
|
+
url: "/ocxp/project/{project_id}/credentials",
|
|
1048
|
+
...options
|
|
1049
|
+
});
|
|
1050
|
+
var updateCredentials = (options) => (options.client ?? client).patch({
|
|
1051
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1052
|
+
url: "/ocxp/project/{project_id}/credentials",
|
|
1053
|
+
...options,
|
|
1054
|
+
headers: {
|
|
1055
|
+
"Content-Type": "application/json",
|
|
1056
|
+
...options.headers
|
|
1057
|
+
}
|
|
1058
|
+
});
|
|
1059
|
+
var saveCredentials = (options) => (options.client ?? client).post({
|
|
1060
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1061
|
+
url: "/ocxp/project/{project_id}/credentials",
|
|
1062
|
+
...options,
|
|
1063
|
+
headers: {
|
|
1064
|
+
"Content-Type": "application/json",
|
|
1065
|
+
...options.headers
|
|
1066
|
+
}
|
|
1067
|
+
});
|
|
1068
|
+
var testCredentials = (options) => (options.client ?? client).post({
|
|
1069
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1070
|
+
url: "/ocxp/project/{project_id}/credentials/test",
|
|
1071
|
+
...options
|
|
1072
|
+
});
|
|
1044
1073
|
var listMissions = (options) => (options?.client ?? client).get({
|
|
1045
1074
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1046
1075
|
url: "/ocxp/mission",
|
|
@@ -1163,6 +1192,77 @@ var ignoreMemo = (options) => (options.client ?? client).post({
|
|
|
1163
1192
|
url: "/ocxp/memo/{memo_id}/ignore",
|
|
1164
1193
|
...options
|
|
1165
1194
|
});
|
|
1195
|
+
var listWorkflows = (options) => (options.client ?? client).get({
|
|
1196
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1197
|
+
url: "/ocxp/workflow",
|
|
1198
|
+
...options
|
|
1199
|
+
});
|
|
1200
|
+
var createWorkflow = (options) => (options.client ?? client).post({
|
|
1201
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1202
|
+
url: "/ocxp/workflow",
|
|
1203
|
+
...options,
|
|
1204
|
+
headers: {
|
|
1205
|
+
"Content-Type": "application/json",
|
|
1206
|
+
...options.headers
|
|
1207
|
+
}
|
|
1208
|
+
});
|
|
1209
|
+
var deleteWorkflow = (options) => (options.client ?? client).delete({
|
|
1210
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1211
|
+
url: "/ocxp/workflow/{workflow_id}",
|
|
1212
|
+
...options
|
|
1213
|
+
});
|
|
1214
|
+
var getWorkflow = (options) => (options.client ?? client).get({
|
|
1215
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1216
|
+
url: "/ocxp/workflow/{workflow_id}",
|
|
1217
|
+
...options
|
|
1218
|
+
});
|
|
1219
|
+
var startWorkflow = (options) => (options.client ?? client).post({
|
|
1220
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1221
|
+
url: "/ocxp/workflow/{workflow_id}/start",
|
|
1222
|
+
...options
|
|
1223
|
+
});
|
|
1224
|
+
var listTasks = (options) => (options.client ?? client).get({
|
|
1225
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1226
|
+
url: "/ocxp/workflow/{workflow_id}/tasks",
|
|
1227
|
+
...options
|
|
1228
|
+
});
|
|
1229
|
+
var addTask = (options) => (options.client ?? client).post({
|
|
1230
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1231
|
+
url: "/ocxp/workflow/{workflow_id}/tasks",
|
|
1232
|
+
...options,
|
|
1233
|
+
headers: {
|
|
1234
|
+
"Content-Type": "application/json",
|
|
1235
|
+
...options.headers
|
|
1236
|
+
}
|
|
1237
|
+
});
|
|
1238
|
+
var bulkUpdateTasks = (options) => (options.client ?? client).patch({
|
|
1239
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1240
|
+
url: "/ocxp/workflow/{workflow_id}/tasks/bulk",
|
|
1241
|
+
...options,
|
|
1242
|
+
headers: {
|
|
1243
|
+
"Content-Type": "application/json",
|
|
1244
|
+
...options.headers
|
|
1245
|
+
}
|
|
1246
|
+
});
|
|
1247
|
+
var deleteTask = (options) => (options.client ?? client).delete({
|
|
1248
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1249
|
+
url: "/ocxp/workflow/{workflow_id}/tasks/{task_id}",
|
|
1250
|
+
...options
|
|
1251
|
+
});
|
|
1252
|
+
var getTask = (options) => (options.client ?? client).get({
|
|
1253
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1254
|
+
url: "/ocxp/workflow/{workflow_id}/tasks/{task_id}",
|
|
1255
|
+
...options
|
|
1256
|
+
});
|
|
1257
|
+
var updateTask = (options) => (options.client ?? client).patch({
|
|
1258
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1259
|
+
url: "/ocxp/workflow/{workflow_id}/tasks/{task_id}",
|
|
1260
|
+
...options,
|
|
1261
|
+
headers: {
|
|
1262
|
+
"Content-Type": "application/json",
|
|
1263
|
+
...options.headers
|
|
1264
|
+
}
|
|
1265
|
+
});
|
|
1166
1266
|
var downloadRepository = (options) => (options.client ?? client).post({
|
|
1167
1267
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1168
1268
|
url: "/ocxp/repo/download",
|
|
@@ -1727,17 +1827,25 @@ var OCXPClient = class {
|
|
|
1727
1827
|
}
|
|
1728
1828
|
// ============== Mission Operations ==============
|
|
1729
1829
|
/**
|
|
1730
|
-
* List all missions in workspace
|
|
1830
|
+
* List all missions in workspace with pagination support
|
|
1831
|
+
* @param options - Filtering, pagination, and sorting options
|
|
1832
|
+
* @returns Paginated mission list with total count
|
|
1731
1833
|
*/
|
|
1732
1834
|
async listMissions(options) {
|
|
1733
1835
|
const headers = await this.getHeaders();
|
|
1836
|
+
const query = {
|
|
1837
|
+
project_id: options?.projectId,
|
|
1838
|
+
status: options?.status,
|
|
1839
|
+
limit: options?.limit,
|
|
1840
|
+
offset: options?.offset,
|
|
1841
|
+
order_by: options?.orderBy,
|
|
1842
|
+
order_dir: options?.orderDir,
|
|
1843
|
+
mission_ids: options?.missionIds,
|
|
1844
|
+
include_metadata: options?.includeMetadata
|
|
1845
|
+
};
|
|
1734
1846
|
const response = await listMissions({
|
|
1735
1847
|
client: this.client,
|
|
1736
|
-
query
|
|
1737
|
-
project_id: options?.projectId,
|
|
1738
|
-
status: options?.status,
|
|
1739
|
-
limit: options?.limit
|
|
1740
|
-
},
|
|
1848
|
+
query,
|
|
1741
1849
|
headers
|
|
1742
1850
|
});
|
|
1743
1851
|
return extractData(response);
|
|
@@ -2629,29 +2737,66 @@ var OCXPClient = class {
|
|
|
2629
2737
|
*/
|
|
2630
2738
|
async getProjectCredentials(projectId) {
|
|
2631
2739
|
const headers = await this.getHeaders();
|
|
2632
|
-
const response = await
|
|
2633
|
-
|
|
2634
|
-
|
|
2740
|
+
const response = await getCredentials({
|
|
2741
|
+
client: this.client,
|
|
2742
|
+
path: { project_id: projectId },
|
|
2635
2743
|
headers
|
|
2636
2744
|
});
|
|
2637
2745
|
if (response.error) {
|
|
2638
2746
|
throw new Error(`Failed to get credentials: ${JSON.stringify(response.error)}`);
|
|
2639
2747
|
}
|
|
2748
|
+
const data = response.data;
|
|
2749
|
+
if (!data.data) {
|
|
2750
|
+
throw new Error("No credentials found");
|
|
2751
|
+
}
|
|
2752
|
+
return data.data;
|
|
2753
|
+
}
|
|
2754
|
+
/**
|
|
2755
|
+
* Save project credentials for frontend authentication
|
|
2756
|
+
* @param projectId - Project ID
|
|
2757
|
+
* @param credentials - Credentials to save (url, username, password)
|
|
2758
|
+
* @returns Success response
|
|
2759
|
+
*/
|
|
2760
|
+
async saveProjectCredentials(projectId, credentials) {
|
|
2761
|
+
const headers = await this.getHeaders();
|
|
2762
|
+
const body = {
|
|
2763
|
+
url: credentials.url,
|
|
2764
|
+
username: credentials.username,
|
|
2765
|
+
password: credentials.password,
|
|
2766
|
+
login_instructions: credentials.login_instructions || "",
|
|
2767
|
+
workspace: this.workspace
|
|
2768
|
+
};
|
|
2769
|
+
const response = await saveCredentials({
|
|
2770
|
+
client: this.client,
|
|
2771
|
+
path: { project_id: projectId },
|
|
2772
|
+
headers,
|
|
2773
|
+
body
|
|
2774
|
+
});
|
|
2775
|
+
if (response.error) {
|
|
2776
|
+
throw new Error(`Failed to save credentials: ${JSON.stringify(response.error)}`);
|
|
2777
|
+
}
|
|
2640
2778
|
return response.data;
|
|
2641
2779
|
}
|
|
2642
2780
|
/**
|
|
2643
2781
|
* Update project credentials for frontend authentication
|
|
2644
2782
|
* @param projectId - Project ID
|
|
2645
2783
|
* @param updates - Partial credential updates
|
|
2646
|
-
* @returns
|
|
2784
|
+
* @returns Success response
|
|
2647
2785
|
*/
|
|
2648
2786
|
async updateProjectCredentials(projectId, updates) {
|
|
2649
2787
|
const headers = await this.getHeaders();
|
|
2650
|
-
const
|
|
2651
|
-
|
|
2652
|
-
|
|
2788
|
+
const body = {
|
|
2789
|
+
url: updates.url ?? void 0,
|
|
2790
|
+
username: updates.username ?? void 0,
|
|
2791
|
+
password: updates.password ?? void 0,
|
|
2792
|
+
login_instructions: updates.login_instructions ?? void 0,
|
|
2793
|
+
workspace: updates.workspace ?? void 0
|
|
2794
|
+
};
|
|
2795
|
+
const response = await updateCredentials({
|
|
2796
|
+
client: this.client,
|
|
2797
|
+
path: { project_id: projectId },
|
|
2653
2798
|
headers,
|
|
2654
|
-
body
|
|
2799
|
+
body
|
|
2655
2800
|
});
|
|
2656
2801
|
if (response.error) {
|
|
2657
2802
|
throw new Error(`Failed to update credentials: ${JSON.stringify(response.error)}`);
|
|
@@ -2665,19 +2810,15 @@ var OCXPClient = class {
|
|
|
2665
2810
|
*/
|
|
2666
2811
|
async testProjectCredentials(projectId) {
|
|
2667
2812
|
const headers = await this.getHeaders();
|
|
2668
|
-
const response = await
|
|
2669
|
-
|
|
2670
|
-
|
|
2813
|
+
const response = await testCredentials({
|
|
2814
|
+
client: this.client,
|
|
2815
|
+
path: { project_id: projectId },
|
|
2671
2816
|
headers
|
|
2672
2817
|
});
|
|
2673
2818
|
if (response.error) {
|
|
2674
2819
|
throw new Error(`Failed to test credentials: ${JSON.stringify(response.error)}`);
|
|
2675
2820
|
}
|
|
2676
|
-
|
|
2677
|
-
if (data && typeof data === "object" && "success" in data) {
|
|
2678
|
-
return data;
|
|
2679
|
-
}
|
|
2680
|
-
return { success: false };
|
|
2821
|
+
return response.data;
|
|
2681
2822
|
}
|
|
2682
2823
|
/**
|
|
2683
2824
|
* Delete project credentials
|
|
@@ -2686,15 +2827,58 @@ var OCXPClient = class {
|
|
|
2686
2827
|
*/
|
|
2687
2828
|
async deleteProjectCredentials(projectId) {
|
|
2688
2829
|
const headers = await this.getHeaders();
|
|
2689
|
-
const response = await
|
|
2690
|
-
|
|
2691
|
-
|
|
2830
|
+
const response = await deleteCredentials({
|
|
2831
|
+
client: this.client,
|
|
2832
|
+
path: { project_id: projectId },
|
|
2692
2833
|
headers
|
|
2693
2834
|
});
|
|
2694
2835
|
if (response.error) {
|
|
2695
2836
|
throw new Error(`Failed to delete credentials: ${JSON.stringify(response.error)}`);
|
|
2696
2837
|
}
|
|
2697
2838
|
}
|
|
2839
|
+
// ============== Document Generation ==============
|
|
2840
|
+
/**
|
|
2841
|
+
* Generate mission output (documents, reports, etc.)
|
|
2842
|
+
* @param missionId - Mission UUID
|
|
2843
|
+
* @param outputType - Type of output: 'documents', 'report', 'summary', etc.
|
|
2844
|
+
* @param options - Output options (doc_types, strategy, etc.)
|
|
2845
|
+
*/
|
|
2846
|
+
async generateMissionOutput(missionId, outputType, options) {
|
|
2847
|
+
const headers = await this.getHeaders();
|
|
2848
|
+
const response = await this.client.request({
|
|
2849
|
+
method: "POST",
|
|
2850
|
+
url: `/ocxp/mission/${missionId}/output`,
|
|
2851
|
+
headers,
|
|
2852
|
+
body: {
|
|
2853
|
+
output_type: outputType,
|
|
2854
|
+
doc_types: options?.doc_types,
|
|
2855
|
+
strategy: options?.strategy || "generate_all",
|
|
2856
|
+
session_id: options?.session_id,
|
|
2857
|
+
options: options?.options
|
|
2858
|
+
}
|
|
2859
|
+
});
|
|
2860
|
+
if (response.error) {
|
|
2861
|
+
throw new Error(`Failed to generate output: ${JSON.stringify(response.error)}`);
|
|
2862
|
+
}
|
|
2863
|
+
return response.data;
|
|
2864
|
+
}
|
|
2865
|
+
/**
|
|
2866
|
+
* Get output generation status
|
|
2867
|
+
* @param missionId - Mission UUID
|
|
2868
|
+
* @param outputType - Type of output to check (default: 'documents')
|
|
2869
|
+
*/
|
|
2870
|
+
async getMissionOutputStatus(missionId, outputType = "documents") {
|
|
2871
|
+
const headers = await this.getHeaders();
|
|
2872
|
+
const response = await this.client.request({
|
|
2873
|
+
method: "GET",
|
|
2874
|
+
url: `/ocxp/mission/${missionId}/output/status?output_type=${outputType}`,
|
|
2875
|
+
headers
|
|
2876
|
+
});
|
|
2877
|
+
if (response.error) {
|
|
2878
|
+
throw new Error(`Failed to get output status: ${JSON.stringify(response.error)}`);
|
|
2879
|
+
}
|
|
2880
|
+
return response.data;
|
|
2881
|
+
}
|
|
2698
2882
|
// ============== Namespaced Accessors ==============
|
|
2699
2883
|
_mission;
|
|
2700
2884
|
_project;
|
|
@@ -2752,13 +2936,61 @@ var OCXPClient = class {
|
|
|
2752
2936
|
return this._prototype;
|
|
2753
2937
|
}
|
|
2754
2938
|
};
|
|
2939
|
+
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
2940
|
+
DocumentType2["IMPLEMENTATION_GUIDE"] = "implementation_guide";
|
|
2941
|
+
DocumentType2["PRD"] = "prd";
|
|
2942
|
+
DocumentType2["ARCHITECTURE_DECISIONS"] = "architecture_decisions";
|
|
2943
|
+
DocumentType2["DATABASE_SCHEMA"] = "database_schema";
|
|
2944
|
+
DocumentType2["DEPLOYMENT_GUIDE"] = "deployment_guide";
|
|
2945
|
+
DocumentType2["TESTING_STRATEGY"] = "testing_strategy";
|
|
2946
|
+
DocumentType2["API_REFERENCE"] = "api_reference";
|
|
2947
|
+
return DocumentType2;
|
|
2948
|
+
})(DocumentType || {});
|
|
2949
|
+
var DOCUMENT_TYPE_INFO = {
|
|
2950
|
+
["implementation_guide" /* IMPLEMENTATION_GUIDE */]: {
|
|
2951
|
+
name: "Implementation Guide",
|
|
2952
|
+
description: "Step-by-step development guide",
|
|
2953
|
+
icon: "book"
|
|
2954
|
+
},
|
|
2955
|
+
["prd" /* PRD */]: {
|
|
2956
|
+
name: "PRD",
|
|
2957
|
+
description: "Product requirements document",
|
|
2958
|
+
icon: "file-text"
|
|
2959
|
+
},
|
|
2960
|
+
["architecture_decisions" /* ARCHITECTURE_DECISIONS */]: {
|
|
2961
|
+
name: "Architecture Decisions",
|
|
2962
|
+
description: "ADRs and design rationale",
|
|
2963
|
+
icon: "layers"
|
|
2964
|
+
},
|
|
2965
|
+
["database_schema" /* DATABASE_SCHEMA */]: {
|
|
2966
|
+
name: "Database Schema",
|
|
2967
|
+
description: "Data model and schema design",
|
|
2968
|
+
icon: "database"
|
|
2969
|
+
},
|
|
2970
|
+
["deployment_guide" /* DEPLOYMENT_GUIDE */]: {
|
|
2971
|
+
name: "Deployment Guide",
|
|
2972
|
+
description: "Deployment and infrastructure setup",
|
|
2973
|
+
icon: "cloud"
|
|
2974
|
+
},
|
|
2975
|
+
["testing_strategy" /* TESTING_STRATEGY */]: {
|
|
2976
|
+
name: "Testing Strategy",
|
|
2977
|
+
description: "Test plan and coverage strategy",
|
|
2978
|
+
icon: "check-square"
|
|
2979
|
+
},
|
|
2980
|
+
["api_reference" /* API_REFERENCE */]: {
|
|
2981
|
+
name: "API Reference",
|
|
2982
|
+
description: "API endpoints and contracts",
|
|
2983
|
+
icon: "code"
|
|
2984
|
+
}
|
|
2985
|
+
};
|
|
2755
2986
|
var MissionNamespace = class {
|
|
2756
2987
|
constructor(client2) {
|
|
2757
2988
|
this.client = client2;
|
|
2758
2989
|
}
|
|
2759
2990
|
/**
|
|
2760
|
-
* List missions with optional filtering
|
|
2991
|
+
* List missions with optional filtering and pagination
|
|
2761
2992
|
* @example ocxp.mission.list({ status: 'active', limit: 10 })
|
|
2993
|
+
* @example ocxp.mission.list({ limit: 20, offset: 40, orderBy: 'created_at', orderDir: 'desc' })
|
|
2762
2994
|
*/
|
|
2763
2995
|
async list(options) {
|
|
2764
2996
|
return this.client.listMissions(options);
|
|
@@ -2830,6 +3062,38 @@ var MissionNamespace = class {
|
|
|
2830
3062
|
async tree(path, depth, includeVersions) {
|
|
2831
3063
|
return this.client.tree("mission", path, depth, includeVersions);
|
|
2832
3064
|
}
|
|
3065
|
+
/**
|
|
3066
|
+
* Generate mission output (documents, reports, etc.)
|
|
3067
|
+
* General endpoint for all output types using existing research.
|
|
3068
|
+
*
|
|
3069
|
+
* @param missionId - Mission UUID
|
|
3070
|
+
* @param outputType - Type of output: 'documents', 'report', 'summary', etc.
|
|
3071
|
+
* @param options - Output options (doc_types, strategy, etc.)
|
|
3072
|
+
* @returns Output response with session_id for tracking
|
|
3073
|
+
*
|
|
3074
|
+
* @example
|
|
3075
|
+
* await ocxp.mission.generateOutput('mission-id', 'documents', {
|
|
3076
|
+
* doc_types: ['implementation-guide', 'prd'],
|
|
3077
|
+
* strategy: 'generate_all'
|
|
3078
|
+
* })
|
|
3079
|
+
*/
|
|
3080
|
+
async generateOutput(missionId, outputType, options) {
|
|
3081
|
+
return this.client.generateMissionOutput(missionId, outputType, options);
|
|
3082
|
+
}
|
|
3083
|
+
/**
|
|
3084
|
+
* Get output generation status
|
|
3085
|
+
* Check progress and status of output generation.
|
|
3086
|
+
*
|
|
3087
|
+
* @param missionId - Mission UUID
|
|
3088
|
+
* @param outputType - Type of output to check (default: 'documents')
|
|
3089
|
+
* @returns Current output status with progress
|
|
3090
|
+
*
|
|
3091
|
+
* @example
|
|
3092
|
+
* const status = await ocxp.mission.getOutputStatus('mission-id', 'documents')
|
|
3093
|
+
*/
|
|
3094
|
+
async getOutputStatus(missionId, outputType = "documents") {
|
|
3095
|
+
return this.client.getMissionOutputStatus(missionId, outputType);
|
|
3096
|
+
}
|
|
2833
3097
|
};
|
|
2834
3098
|
var ProjectNamespace = class {
|
|
2835
3099
|
constructor(client2) {
|
|
@@ -3737,6 +4001,28 @@ var PaginationSchema = zod.z.object({
|
|
|
3737
4001
|
hasMore: zod.z.boolean(),
|
|
3738
4002
|
total: zod.z.number()
|
|
3739
4003
|
});
|
|
4004
|
+
var PaginationParamsSchema = zod.z.object({
|
|
4005
|
+
/** Items per page (default: 50, max: 100) */
|
|
4006
|
+
limit: zod.z.number().min(1).max(100).default(50),
|
|
4007
|
+
/** Skip first N items (for offset pagination) */
|
|
4008
|
+
offset: zod.z.number().min(0).default(0),
|
|
4009
|
+
/** Cursor token (for cursor pagination, alternative to offset) */
|
|
4010
|
+
cursor: zod.z.string().nullable().optional(),
|
|
4011
|
+
/** Sort field */
|
|
4012
|
+
orderBy: zod.z.string().optional(),
|
|
4013
|
+
/** Sort direction: asc | desc */
|
|
4014
|
+
orderDir: zod.z.enum(["asc", "desc"]).default("desc")
|
|
4015
|
+
});
|
|
4016
|
+
function createPaginatedResponseSchema(itemSchema) {
|
|
4017
|
+
return zod.z.object({
|
|
4018
|
+
items: zod.z.array(itemSchema),
|
|
4019
|
+
total: zod.z.number(),
|
|
4020
|
+
limit: zod.z.number(),
|
|
4021
|
+
offset: zod.z.number(),
|
|
4022
|
+
cursor: zod.z.string().nullable().optional(),
|
|
4023
|
+
hasMore: zod.z.boolean()
|
|
4024
|
+
});
|
|
4025
|
+
}
|
|
3740
4026
|
var ContentTypeSchema = zod.z.enum([
|
|
3741
4027
|
"mission",
|
|
3742
4028
|
"project",
|
|
@@ -4337,6 +4623,7 @@ exports.CreateProjectDataSchema = CreateProjectDataSchema;
|
|
|
4337
4623
|
exports.CreateProjectResponseSchema = CreateProjectResponseSchema;
|
|
4338
4624
|
exports.CreateSessionDataSchema = CreateSessionDataSchema;
|
|
4339
4625
|
exports.CreateSessionResponseSchema = CreateSessionResponseSchema;
|
|
4626
|
+
exports.DOCUMENT_TYPE_INFO = DOCUMENT_TYPE_INFO;
|
|
4340
4627
|
exports.DeleteDataSchema = DeleteDataSchema;
|
|
4341
4628
|
exports.DeleteProjectDataSchema = DeleteProjectDataSchema;
|
|
4342
4629
|
exports.DeleteProjectResponseSchema = DeleteProjectResponseSchema;
|
|
@@ -4344,6 +4631,7 @@ exports.DeleteResponseSchema = DeleteResponseSchema;
|
|
|
4344
4631
|
exports.DiscoveryDataSchema = DiscoveryDataSchema;
|
|
4345
4632
|
exports.DiscoveryEndpointSchema = DiscoveryEndpointSchema;
|
|
4346
4633
|
exports.DiscoveryResponseSchema = DiscoveryResponseSchema;
|
|
4634
|
+
exports.DocumentType = DocumentType;
|
|
4347
4635
|
exports.ErrorResponseSchema = ErrorResponseSchema;
|
|
4348
4636
|
exports.ForkSessionDataSchema = ForkSessionDataSchema;
|
|
4349
4637
|
exports.ForkSessionResponseSchema = ForkSessionResponseSchema;
|
|
@@ -4394,6 +4682,7 @@ exports.OCXPRateLimitError = OCXPRateLimitError;
|
|
|
4394
4682
|
exports.OCXPResponseSchema = OCXPResponseSchema;
|
|
4395
4683
|
exports.OCXPTimeoutError = OCXPTimeoutError;
|
|
4396
4684
|
exports.OCXPValidationError = OCXPValidationError;
|
|
4685
|
+
exports.PaginationParamsSchema = PaginationParamsSchema;
|
|
4397
4686
|
exports.PaginationSchema = PaginationSchema;
|
|
4398
4687
|
exports.PresignedUrlDataSchema = PresignedUrlDataSchema;
|
|
4399
4688
|
exports.PresignedUrlResponseSchema = PresignedUrlResponseSchema;
|
|
@@ -4457,25 +4746,31 @@ exports.acknowledgeMemo = acknowledgeMemo;
|
|
|
4457
4746
|
exports.addDatabase = addDatabase;
|
|
4458
4747
|
exports.addLinkedRepo = addLinkedRepo;
|
|
4459
4748
|
exports.addMission = addMission;
|
|
4749
|
+
exports.addTask = addTask;
|
|
4460
4750
|
exports.archiveSession = archiveSession;
|
|
4461
4751
|
exports.buildPath = buildPath;
|
|
4462
4752
|
exports.bulkDeleteContent = bulkDeleteContent;
|
|
4463
4753
|
exports.bulkReadContent = bulkReadContent;
|
|
4754
|
+
exports.bulkUpdateTasks = bulkUpdateTasks;
|
|
4464
4755
|
exports.bulkWriteContent = bulkWriteContent;
|
|
4465
4756
|
exports.createClient = createClient;
|
|
4466
4757
|
exports.createConfig = createConfig;
|
|
4467
4758
|
exports.createDatabase = createDatabase;
|
|
4468
4759
|
exports.createMemo = createMemo;
|
|
4469
4760
|
exports.createOCXPClient = createOCXPClient;
|
|
4761
|
+
exports.createPaginatedResponseSchema = createPaginatedResponseSchema;
|
|
4470
4762
|
exports.createPathService = createPathService;
|
|
4471
4763
|
exports.createProject = createProject;
|
|
4472
4764
|
exports.createResponseSchema = createResponseSchema;
|
|
4473
4765
|
exports.createWebSocketService = createWebSocketService;
|
|
4766
|
+
exports.createWorkflow = createWorkflow;
|
|
4474
4767
|
exports.deleteContent = deleteContent;
|
|
4475
4768
|
exports.deleteDatabase = deleteDatabase;
|
|
4476
4769
|
exports.deleteMemo = deleteMemo;
|
|
4477
4770
|
exports.deleteProject = deleteProject;
|
|
4478
4771
|
exports.deleteRepo = deleteRepo;
|
|
4772
|
+
exports.deleteTask = deleteTask;
|
|
4773
|
+
exports.deleteWorkflow = deleteWorkflow;
|
|
4479
4774
|
exports.downloadRepository = downloadRepository;
|
|
4480
4775
|
exports.forkSession = forkSession;
|
|
4481
4776
|
exports.getAuthConfig = getAuthConfig;
|
|
@@ -4499,6 +4794,8 @@ exports.getSchema = getSchema;
|
|
|
4499
4794
|
exports.getSessionMessages = getSessionMessages;
|
|
4500
4795
|
exports.getStoredVersions = getStoredVersions;
|
|
4501
4796
|
exports.getSyncStatus = getSyncStatus;
|
|
4797
|
+
exports.getTask = getTask;
|
|
4798
|
+
exports.getWorkflow = getWorkflow;
|
|
4502
4799
|
exports.githubCheckAccess = githubCheckAccess;
|
|
4503
4800
|
exports.githubGetContents = githubGetContents;
|
|
4504
4801
|
exports.githubListBranches = githubListBranches;
|
|
@@ -4522,6 +4819,8 @@ exports.listProjects = listProjects;
|
|
|
4522
4819
|
exports.listPrototypeChats = listPrototypeChats;
|
|
4523
4820
|
exports.listSessions = listSessions;
|
|
4524
4821
|
exports.listTables = listTables;
|
|
4822
|
+
exports.listTasks = listTasks;
|
|
4823
|
+
exports.listWorkflows = listWorkflows;
|
|
4525
4824
|
exports.listWorkspaces = listWorkspaces;
|
|
4526
4825
|
exports.lockContent = lockContent;
|
|
4527
4826
|
exports.login = login;
|
|
@@ -4546,6 +4845,7 @@ exports.safeParseWSMessage = safeParseWSMessage;
|
|
|
4546
4845
|
exports.searchContent = searchContent;
|
|
4547
4846
|
exports.setDefaultDatabase = setDefaultDatabase;
|
|
4548
4847
|
exports.setDefaultRepo = setDefaultRepo;
|
|
4848
|
+
exports.startWorkflow = startWorkflow;
|
|
4549
4849
|
exports.syncAllRepos = syncAllRepos;
|
|
4550
4850
|
exports.syncPrototypeChat = syncPrototypeChat;
|
|
4551
4851
|
exports.syncPrototypeChatAsync = syncPrototypeChatAsync;
|
|
@@ -4557,6 +4857,7 @@ exports.unlockContent = unlockContent;
|
|
|
4557
4857
|
exports.updateDatabase = updateDatabase;
|
|
4558
4858
|
exports.updateProject = updateProject;
|
|
4559
4859
|
exports.updateSessionMetadata = updateSessionMetadata;
|
|
4860
|
+
exports.updateTask = updateTask;
|
|
4560
4861
|
exports.writeContent = writeContent;
|
|
4561
4862
|
//# sourceMappingURL=index.cjs.map
|
|
4562
4863
|
//# sourceMappingURL=index.cjs.map
|