@duvoai/cli 1.10.1 → 1.11.0
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/bin/duvo.js +1754 -1656
- package/dist/bin/duvo.js.map +4 -4
- package/package.json +1 -1
package/dist/bin/duvo.js
CHANGED
|
@@ -84,11 +84,11 @@ import { z as z46 } from "zod";
|
|
|
84
84
|
import { z as z47 } from "zod";
|
|
85
85
|
import { z as z48 } from "zod";
|
|
86
86
|
import { z as z49 } from "zod";
|
|
87
|
-
import { z as z51 } from "zod";
|
|
88
87
|
import { z as z50 } from "zod";
|
|
89
|
-
import { z as z53 } from "zod";
|
|
90
88
|
import { z as z52 } from "zod";
|
|
89
|
+
import { z as z51 } from "zod";
|
|
91
90
|
import { z as z54 } from "zod";
|
|
91
|
+
import { z as z53 } from "zod";
|
|
92
92
|
import { z as z55 } from "zod";
|
|
93
93
|
import { z as z56 } from "zod";
|
|
94
94
|
import { z as z57 } from "zod";
|
|
@@ -100,13 +100,14 @@ import { z as z62 } from "zod";
|
|
|
100
100
|
import { z as z63 } from "zod";
|
|
101
101
|
import { z as z64 } from "zod";
|
|
102
102
|
import { z as z65 } from "zod";
|
|
103
|
-
import { z as z67 } from "zod";
|
|
104
103
|
import { z as z66 } from "zod";
|
|
105
104
|
import { z as z68 } from "zod";
|
|
105
|
+
import { z as z67 } from "zod";
|
|
106
106
|
import { z as z69 } from "zod";
|
|
107
107
|
import { z as z70 } from "zod";
|
|
108
108
|
import { z as z71 } from "zod";
|
|
109
109
|
import { z as z72 } from "zod";
|
|
110
|
+
import { z as z73 } from "zod";
|
|
110
111
|
|
|
111
112
|
// ../node_modules/.pnpm/jsonrepair@3.13.2/node_modules/jsonrepair/lib/esm/utils/JSONRepairError.js
|
|
112
113
|
var JSONRepairError = class extends Error {
|
|
@@ -3064,8 +3065,6 @@ var clarityProcessLandscapeNodeSchema = z14.object({
|
|
|
3064
3065
|
sortOrder: z14.number(),
|
|
3065
3066
|
depth: z14.number(),
|
|
3066
3067
|
existence: z14.enum(["proposed", "active"]),
|
|
3067
|
-
placementState: z14.enum(["unfiled", "suggested", "confirmed"]),
|
|
3068
|
-
placementConfidence: z14.number().nullable(),
|
|
3069
3068
|
contentConfirmedAt: z14.string().nullable(),
|
|
3070
3069
|
existenceConfirmedAt: z14.string().nullable(),
|
|
3071
3070
|
source: z14.enum(["ai", "human"]),
|
|
@@ -3079,6 +3078,10 @@ var clarityProcessLandscapeNodeSchema = z14.object({
|
|
|
3079
3078
|
captureSuggestions: z14.array(clarityLandscapeCaptureSuggestionSchema).optional(),
|
|
3080
3079
|
captureRequests: z14.array(clarityLandscapeCaptureRequestSchema).optional()
|
|
3081
3080
|
});
|
|
3081
|
+
var clarityProcessLandscapeUnlinkedProcessSchema = clarityProcessLandscapeSummarySchema.extend({
|
|
3082
|
+
teamId: z14.guid(),
|
|
3083
|
+
teamName: z14.string().nullable()
|
|
3084
|
+
});
|
|
3082
3085
|
var clarityProcessLandscapeLinkSchema = z14.object({
|
|
3083
3086
|
id: z14.guid(),
|
|
3084
3087
|
sourceNodeId: z14.guid(),
|
|
@@ -3090,15 +3093,25 @@ var clarityProcessLandscapeLinkSchema = z14.object({
|
|
|
3090
3093
|
var clarityProcessLandscapeStatsSchema = z14.object({
|
|
3091
3094
|
totalNodes: z14.number(),
|
|
3092
3095
|
processNodes: z14.number(),
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
unfiledNodes: z14.number(),
|
|
3096
|
+
proposedNodes: z14.number(),
|
|
3097
|
+
unsortedProcesses: z14.number(),
|
|
3096
3098
|
latestUpdatedAt: z14.string().nullable()
|
|
3097
3099
|
});
|
|
3100
|
+
var clarityProcessLandscapeGenerationSchema = z14.object({
|
|
3101
|
+
eligibleCaptureCount: z14.number(),
|
|
3102
|
+
status: z14.enum(["idle", "starting", "running", "completed", "failed"])
|
|
3103
|
+
});
|
|
3104
|
+
var generateClarityProcessLandscapeResponseSchema = z14.object({
|
|
3105
|
+
started: z14.literal(true),
|
|
3106
|
+
generationId: z14.guid(),
|
|
3107
|
+
eligibleCaptureCount: z14.number()
|
|
3108
|
+
});
|
|
3098
3109
|
var clarityProcessLandscapeResponseSchema = z14.object({
|
|
3099
3110
|
nodes: z14.array(clarityProcessLandscapeNodeSchema),
|
|
3100
3111
|
links: z14.array(clarityProcessLandscapeLinkSchema),
|
|
3112
|
+
unlinkedProcesses: z14.array(clarityProcessLandscapeUnlinkedProcessSchema),
|
|
3101
3113
|
stats: clarityProcessLandscapeStatsSchema,
|
|
3114
|
+
generation: clarityProcessLandscapeGenerationSchema,
|
|
3102
3115
|
truncated: z14.boolean()
|
|
3103
3116
|
});
|
|
3104
3117
|
var GENERATION_STEP_STATUSES = [
|
|
@@ -4059,7 +4072,8 @@ var organizationInterviewSummarySchema = teamInterviewSummarySchema.extend({
|
|
|
4059
4072
|
scope: clarityInterviewScopeSchema,
|
|
4060
4073
|
teamId: z18.guid().nullable(),
|
|
4061
4074
|
teamName: z18.string().nullable(),
|
|
4062
|
-
organizationId: z18.guid()
|
|
4075
|
+
organizationId: z18.guid(),
|
|
4076
|
+
hasTranscript: z18.boolean()
|
|
4063
4077
|
});
|
|
4064
4078
|
var clarityInterviewSchema = z18.object({
|
|
4065
4079
|
id: z18.guid(),
|
|
@@ -4195,6 +4209,22 @@ var clarityInterviewStatusChangedEventDataSchema = z19.object({
|
|
|
4195
4209
|
interviewId: z19.guid(),
|
|
4196
4210
|
status: clarityInterviewStatusSchema
|
|
4197
4211
|
});
|
|
4212
|
+
var clarityProcessLandscapeGenerationStatusChangedEventDataSchema = z19.object({
|
|
4213
|
+
organizationId: z19.guid(),
|
|
4214
|
+
generationId: z19.guid(),
|
|
4215
|
+
status: clarityProcessLandscapeGenerationSchema.shape.status.exclude([
|
|
4216
|
+
"idle"
|
|
4217
|
+
]),
|
|
4218
|
+
error: z19.string().optional()
|
|
4219
|
+
});
|
|
4220
|
+
var clarityProcessLandscapeRoomPayloadSchema = z19.object({
|
|
4221
|
+
organizationId: z19.guid()
|
|
4222
|
+
});
|
|
4223
|
+
function getClarityProcessLandscapeRoomName(organizationId) {
|
|
4224
|
+
return `clarity-process-landscape:${organizationId}`;
|
|
4225
|
+
}
|
|
4226
|
+
__name(getClarityProcessLandscapeRoomName, "getClarityProcessLandscapeRoomName");
|
|
4227
|
+
__name2(getClarityProcessLandscapeRoomName, "getClarityProcessLandscapeRoomName");
|
|
4198
4228
|
var clarityProcessRoomPayloadSchema = z19.object({
|
|
4199
4229
|
processId: z19.guid()
|
|
4200
4230
|
});
|
|
@@ -5713,6 +5743,11 @@ var artifactSchema = z26.object({
|
|
|
5713
5743
|
title: z26.string().nullable(),
|
|
5714
5744
|
html_code_present: z26.boolean(),
|
|
5715
5745
|
status: artifactStatusSchema,
|
|
5746
|
+
// Time-limited signed URL of the dashboard thumbnail, or null when no
|
|
5747
|
+
// thumbnail has been captured yet. The list view renders it as a preview
|
|
5748
|
+
// image. Optional so older/other clients (and fixtures) tolerate its absence;
|
|
5749
|
+
// the backend always includes it (string or null).
|
|
5750
|
+
thumbnail_url: z26.string().nullable().optional(),
|
|
5716
5751
|
created_at: z26.string(),
|
|
5717
5752
|
updated_at: z26.string()
|
|
5718
5753
|
});
|
|
@@ -5820,6 +5855,12 @@ var updateArtifactBodySchema = z26.object({
|
|
|
5820
5855
|
var deleteArtifactResponseSchema = z26.object({
|
|
5821
5856
|
success: z26.literal(true)
|
|
5822
5857
|
});
|
|
5858
|
+
var uploadArtifactThumbnailBodySchema = z26.object({
|
|
5859
|
+
image_base64: z26.string().min(1).max(8e6)
|
|
5860
|
+
});
|
|
5861
|
+
var uploadArtifactThumbnailResponseSchema = z26.object({
|
|
5862
|
+
ok: z26.literal(true)
|
|
5863
|
+
});
|
|
5823
5864
|
var browserReplayScreenshotSchema = z27.object({
|
|
5824
5865
|
id: z27.guid(),
|
|
5825
5866
|
agent_run_id: z27.guid(),
|
|
@@ -7116,179 +7157,192 @@ var ensureChatSandboxResponseSchema = z38.object({
|
|
|
7116
7157
|
var attachmentSendItemSchema = z38.object({
|
|
7117
7158
|
attachment_id: z38.uuid()
|
|
7118
7159
|
});
|
|
7119
|
-
var
|
|
7160
|
+
var chatConnectionSchema = z39.object({
|
|
7161
|
+
connection_id: z39.guid(),
|
|
7162
|
+
integration_id: z39.guid().nullable(),
|
|
7163
|
+
custom_integration_id: z39.guid().nullable(),
|
|
7164
|
+
type: z39.string(),
|
|
7165
|
+
created_at: z39.iso.datetime()
|
|
7166
|
+
});
|
|
7167
|
+
var listChatConnectionsResponseSchema = z39.object({
|
|
7168
|
+
connections: z39.array(chatConnectionSchema)
|
|
7169
|
+
});
|
|
7170
|
+
var attachChatConnectionBodySchema = z39.object({
|
|
7171
|
+
connection_id: z39.guid()
|
|
7172
|
+
});
|
|
7173
|
+
var feedbackSentimentSchema = z40.enum(["positive", "negative"]);
|
|
7120
7174
|
var MAX_FEEDBACK_COMMENT_LENGTH = 2e3;
|
|
7121
|
-
var feedbackDataSchema =
|
|
7122
|
-
id:
|
|
7123
|
-
agent_id:
|
|
7124
|
-
build_id:
|
|
7125
|
-
run_id:
|
|
7126
|
-
user_id:
|
|
7175
|
+
var feedbackDataSchema = z40.object({
|
|
7176
|
+
id: z40.guid(),
|
|
7177
|
+
agent_id: z40.guid(),
|
|
7178
|
+
build_id: z40.guid(),
|
|
7179
|
+
run_id: z40.guid(),
|
|
7180
|
+
user_id: z40.guid(),
|
|
7127
7181
|
sentiment: feedbackSentimentSchema,
|
|
7128
|
-
comment:
|
|
7129
|
-
session_id:
|
|
7130
|
-
created_at: z39.string(),
|
|
7131
|
-
updated_at: z39.string()
|
|
7132
|
-
});
|
|
7133
|
-
var agentFolderResponseSchema = z40.object({
|
|
7134
|
-
id: z40.string(),
|
|
7135
|
-
name: z40.string(),
|
|
7136
|
-
team_id: z40.string(),
|
|
7137
|
-
parent_folder_id: z40.string().nullable(),
|
|
7182
|
+
comment: z40.string().max(MAX_FEEDBACK_COMMENT_LENGTH).nullable(),
|
|
7183
|
+
session_id: z40.string().nullable(),
|
|
7138
7184
|
created_at: z40.string(),
|
|
7139
|
-
updated_at: z40.string()
|
|
7140
|
-
agent_count: z40.number(),
|
|
7141
|
-
subfolder_count: z40.number()
|
|
7185
|
+
updated_at: z40.string()
|
|
7142
7186
|
});
|
|
7143
|
-
var
|
|
7187
|
+
var agentFolderResponseSchema = z41.object({
|
|
7188
|
+
id: z41.string(),
|
|
7189
|
+
name: z41.string(),
|
|
7190
|
+
team_id: z41.string(),
|
|
7191
|
+
parent_folder_id: z41.string().nullable(),
|
|
7192
|
+
created_at: z41.string(),
|
|
7193
|
+
updated_at: z41.string(),
|
|
7194
|
+
agent_count: z41.number(),
|
|
7195
|
+
subfolder_count: z41.number()
|
|
7196
|
+
});
|
|
7197
|
+
var agentFoldersListResponseSchema = z41.array(
|
|
7144
7198
|
agentFolderResponseSchema
|
|
7145
7199
|
);
|
|
7146
|
-
var createAgentFolderRequestSchema =
|
|
7147
|
-
name:
|
|
7148
|
-
parent_folder_id:
|
|
7200
|
+
var createAgentFolderRequestSchema = z41.object({
|
|
7201
|
+
name: z41.string().min(1).max(100),
|
|
7202
|
+
parent_folder_id: z41.guid().nullable().optional()
|
|
7149
7203
|
});
|
|
7150
|
-
var updateAgentFolderRequestSchema =
|
|
7151
|
-
name:
|
|
7152
|
-
parent_folder_id:
|
|
7204
|
+
var updateAgentFolderRequestSchema = z41.object({
|
|
7205
|
+
name: z41.string().min(1).max(100).optional(),
|
|
7206
|
+
parent_folder_id: z41.guid().nullable().optional()
|
|
7153
7207
|
});
|
|
7154
|
-
var moveAgentsRequestSchema =
|
|
7155
|
-
agent_ids:
|
|
7156
|
-
folder_id:
|
|
7208
|
+
var moveAgentsRequestSchema = z41.object({
|
|
7209
|
+
agent_ids: z41.array(z41.guid()).min(1),
|
|
7210
|
+
folder_id: z41.guid().nullable()
|
|
7157
7211
|
});
|
|
7158
|
-
var learningSchema =
|
|
7159
|
-
id:
|
|
7160
|
-
content:
|
|
7161
|
-
sourceRunId:
|
|
7162
|
-
createdAt:
|
|
7163
|
-
updatedAt:
|
|
7212
|
+
var learningSchema = z42.object({
|
|
7213
|
+
id: z42.string(),
|
|
7214
|
+
content: z42.string(),
|
|
7215
|
+
sourceRunId: z42.string().nullable(),
|
|
7216
|
+
createdAt: z42.string(),
|
|
7217
|
+
updatedAt: z42.string()
|
|
7164
7218
|
});
|
|
7165
|
-
var getLearningsResponseSchema =
|
|
7219
|
+
var getLearningsResponseSchema = z42.object({
|
|
7166
7220
|
learning: learningSchema.nullable()
|
|
7167
7221
|
});
|
|
7168
|
-
var memorySourceTypeSchema =
|
|
7222
|
+
var memorySourceTypeSchema = z43.enum(["job", "user"]);
|
|
7169
7223
|
var memorySourceFieldsSchema = {
|
|
7170
7224
|
source_type: memorySourceTypeSchema.optional(),
|
|
7171
|
-
source_agent_run_id:
|
|
7172
|
-
source_user_id:
|
|
7173
|
-
source_updated_at:
|
|
7225
|
+
source_agent_run_id: z43.string().optional(),
|
|
7226
|
+
source_user_id: z43.string().optional(),
|
|
7227
|
+
source_updated_at: z43.string().optional()
|
|
7174
7228
|
};
|
|
7175
|
-
var agentMemoryFileSchema =
|
|
7176
|
-
name:
|
|
7177
|
-
path:
|
|
7178
|
-
updated_at:
|
|
7179
|
-
generation:
|
|
7229
|
+
var agentMemoryFileSchema = z43.object({
|
|
7230
|
+
name: z43.string(),
|
|
7231
|
+
path: z43.string(),
|
|
7232
|
+
updated_at: z43.string().optional(),
|
|
7233
|
+
generation: z43.string().optional(),
|
|
7180
7234
|
...memorySourceFieldsSchema
|
|
7181
7235
|
});
|
|
7182
|
-
var listAgentMemoryFilesResponseSchema =
|
|
7183
|
-
files:
|
|
7236
|
+
var listAgentMemoryFilesResponseSchema = z43.object({
|
|
7237
|
+
files: z43.array(agentMemoryFileSchema)
|
|
7184
7238
|
});
|
|
7185
|
-
var getAgentMemoryFileResponseSchema =
|
|
7186
|
-
path:
|
|
7187
|
-
content:
|
|
7188
|
-
generation:
|
|
7239
|
+
var getAgentMemoryFileResponseSchema = z43.object({
|
|
7240
|
+
path: z43.string(),
|
|
7241
|
+
content: z43.string(),
|
|
7242
|
+
generation: z43.string().optional(),
|
|
7189
7243
|
...memorySourceFieldsSchema
|
|
7190
7244
|
});
|
|
7191
|
-
var DataResidencySchema =
|
|
7192
|
-
var DataHandlingSchema =
|
|
7193
|
-
var browserPageSchema =
|
|
7194
|
-
id:
|
|
7195
|
-
url:
|
|
7196
|
-
faviconUrl:
|
|
7197
|
-
title:
|
|
7198
|
-
debuggerUrl:
|
|
7199
|
-
debuggerFullscreenUrl:
|
|
7200
|
-
});
|
|
7201
|
-
var browserSessionInfoSchema =
|
|
7245
|
+
var DataResidencySchema = z44.enum(["us", "eu", "apac"]);
|
|
7246
|
+
var DataHandlingSchema = z44.enum(["standard", "zdr"]);
|
|
7247
|
+
var browserPageSchema = z45.object({
|
|
7248
|
+
id: z45.string().describe("Page ID"),
|
|
7249
|
+
url: z45.url().describe("Page URL"),
|
|
7250
|
+
faviconUrl: z45.string().describe("Page favicon URL"),
|
|
7251
|
+
title: z45.string().describe("Page title"),
|
|
7252
|
+
debuggerUrl: z45.url().describe("Page-specific debugger URL"),
|
|
7253
|
+
debuggerFullscreenUrl: z45.url().describe("Page-specific full-screen debugger URL")
|
|
7254
|
+
});
|
|
7255
|
+
var browserSessionInfoSchema = z45.object({
|
|
7202
7256
|
// Session-level URLs (Browser Use provides these, Browserbase also has them)
|
|
7203
|
-
wsUrl:
|
|
7204
|
-
liveUrl:
|
|
7257
|
+
wsUrl: z45.url().nullable(),
|
|
7258
|
+
liveUrl: z45.url().nullable(),
|
|
7205
7259
|
// Page-level data (Browserbase provides these, Browser Use returns empty array)
|
|
7206
|
-
pages:
|
|
7207
|
-
});
|
|
7208
|
-
var browserbaseDebugResponseSchema =
|
|
7209
|
-
debuggerFullscreenUrl:
|
|
7210
|
-
debuggerUrl:
|
|
7211
|
-
pages:
|
|
7212
|
-
wsUrl:
|
|
7213
|
-
});
|
|
7214
|
-
var browserbaseSessionCreateResponseSchema =
|
|
7215
|
-
id:
|
|
7216
|
-
createdAt:
|
|
7217
|
-
updatedAt:
|
|
7218
|
-
projectId:
|
|
7219
|
-
startedAt:
|
|
7220
|
-
endedAt:
|
|
7221
|
-
expiresAt:
|
|
7222
|
-
status:
|
|
7223
|
-
proxyBytes:
|
|
7224
|
-
avgCpuUsage:
|
|
7225
|
-
memoryUsage:
|
|
7226
|
-
keepAlive:
|
|
7227
|
-
contextId:
|
|
7228
|
-
region:
|
|
7229
|
-
userMetadata:
|
|
7230
|
-
connectUrl:
|
|
7231
|
-
seleniumRemoteUrl:
|
|
7232
|
-
signingKey:
|
|
7233
|
-
});
|
|
7234
|
-
var getBuildParamsSchema =
|
|
7235
|
-
buildId:
|
|
7236
|
-
});
|
|
7237
|
-
var listBuildsParamsSchema =
|
|
7238
|
-
copilotId:
|
|
7239
|
-
});
|
|
7240
|
-
var updateBuildBodySchema =
|
|
7241
|
-
config:
|
|
7242
|
-
handoverTargetIds:
|
|
7243
|
-
revision_name:
|
|
7260
|
+
pages: z45.array(browserPageSchema)
|
|
7261
|
+
});
|
|
7262
|
+
var browserbaseDebugResponseSchema = z45.object({
|
|
7263
|
+
debuggerFullscreenUrl: z45.url().describe("Session full-screen debugger URL"),
|
|
7264
|
+
debuggerUrl: z45.url().describe("Session debugger URL"),
|
|
7265
|
+
pages: z45.array(browserPageSchema).describe("List of pages in the session"),
|
|
7266
|
+
wsUrl: z45.url().describe("WebSocket URL for the session")
|
|
7267
|
+
});
|
|
7268
|
+
var browserbaseSessionCreateResponseSchema = z45.object({
|
|
7269
|
+
id: z45.string().describe("Session ID"),
|
|
7270
|
+
createdAt: z45.iso.datetime().describe("Session creation timestamp"),
|
|
7271
|
+
updatedAt: z45.iso.datetime().describe("Session last update timestamp"),
|
|
7272
|
+
projectId: z45.string().describe("Project ID"),
|
|
7273
|
+
startedAt: z45.iso.datetime().describe("Session start timestamp"),
|
|
7274
|
+
endedAt: z45.iso.datetime().optional().describe("Session end timestamp"),
|
|
7275
|
+
expiresAt: z45.iso.datetime().describe("Session expiration timestamp"),
|
|
7276
|
+
status: z45.string().describe("Session status"),
|
|
7277
|
+
proxyBytes: z45.number().describe("Proxy bytes used"),
|
|
7278
|
+
avgCpuUsage: z45.number().describe("Average CPU usage"),
|
|
7279
|
+
memoryUsage: z45.number().describe("Memory usage"),
|
|
7280
|
+
keepAlive: z45.boolean().describe("Keep alive flag"),
|
|
7281
|
+
contextId: z45.string().describe("Context ID"),
|
|
7282
|
+
region: z45.string().describe("Region"),
|
|
7283
|
+
userMetadata: z45.record(z45.string(), z45.unknown()).describe("User metadata"),
|
|
7284
|
+
connectUrl: z45.string().describe("Connect URL"),
|
|
7285
|
+
seleniumRemoteUrl: z45.string().describe("Selenium remote URL"),
|
|
7286
|
+
signingKey: z45.string().describe("Signing key")
|
|
7287
|
+
});
|
|
7288
|
+
var getBuildParamsSchema = z46.object({
|
|
7289
|
+
buildId: z46.guid()
|
|
7290
|
+
});
|
|
7291
|
+
var listBuildsParamsSchema = z46.object({
|
|
7292
|
+
copilotId: z46.guid()
|
|
7293
|
+
});
|
|
7294
|
+
var updateBuildBodySchema = z46.object({
|
|
7295
|
+
config: z46.record(z46.string(), z46.any()).optional().describe("Build configuration object"),
|
|
7296
|
+
handoverTargetIds: z46.array(z46.guid()).optional().describe("Agent IDs that this agent can hand over work to"),
|
|
7297
|
+
revision_name: z46.string().trim().min(1).max(80).nullable().optional().describe(
|
|
7244
7298
|
"Optional user-defined name for this revision. Pass null to clear."
|
|
7245
7299
|
),
|
|
7246
|
-
revision_description:
|
|
7300
|
+
revision_description: z46.string().trim().max(500).nullable().optional().describe(
|
|
7247
7301
|
"Optional user-defined description for this revision. Pass null to clear."
|
|
7248
7302
|
)
|
|
7249
7303
|
});
|
|
7250
|
-
var createBuildBodySchema =
|
|
7251
|
-
copilot_id:
|
|
7252
|
-
name:
|
|
7253
|
-
config:
|
|
7254
|
-
handoverTargetIds:
|
|
7255
|
-
source_build_id:
|
|
7256
|
-
});
|
|
7257
|
-
var buildResponseSchema =
|
|
7258
|
-
build_id:
|
|
7259
|
-
name:
|
|
7260
|
-
config:
|
|
7261
|
-
copilot_id:
|
|
7262
|
-
status:
|
|
7263
|
-
created_at:
|
|
7264
|
-
updated_at:
|
|
7265
|
-
revision_number:
|
|
7266
|
-
revision_name:
|
|
7267
|
-
revision_description:
|
|
7268
|
-
parent_build_id:
|
|
7269
|
-
created_by:
|
|
7270
|
-
created_by_name:
|
|
7271
|
-
});
|
|
7272
|
-
var listBuildsResponseSchema =
|
|
7273
|
-
var buildResponseApiSchema =
|
|
7304
|
+
var createBuildBodySchema = z46.object({
|
|
7305
|
+
copilot_id: z46.guid().describe("Agent ID"),
|
|
7306
|
+
name: z46.string().describe("Build name"),
|
|
7307
|
+
config: z46.record(z46.string(), z46.any()).optional().describe("Build configuration object"),
|
|
7308
|
+
handoverTargetIds: z46.array(z46.guid()).optional().describe("Agent IDs that this agent can hand over work to"),
|
|
7309
|
+
source_build_id: z46.guid().optional().describe("Build ID to copy integrations and queue links from")
|
|
7310
|
+
});
|
|
7311
|
+
var buildResponseSchema = z46.object({
|
|
7312
|
+
build_id: z46.string().describe("Build ID"),
|
|
7313
|
+
name: z46.string().describe("Build name"),
|
|
7314
|
+
config: z46.record(z46.string(), z46.any()).nullable().describe("Build configuration"),
|
|
7315
|
+
copilot_id: z46.string().describe("Associated copilot ID"),
|
|
7316
|
+
status: z46.string().describe("Build status"),
|
|
7317
|
+
created_at: z46.coerce.date().describe("Creation timestamp"),
|
|
7318
|
+
updated_at: z46.coerce.date().nullable().describe("Last update timestamp"),
|
|
7319
|
+
revision_number: z46.number().nullable().describe("Revision number"),
|
|
7320
|
+
revision_name: z46.string().nullable().optional().describe("User-defined name for this revision"),
|
|
7321
|
+
revision_description: z46.string().nullable().optional().describe("User-defined description for this revision"),
|
|
7322
|
+
parent_build_id: z46.string().nullable().describe("Parent build ID"),
|
|
7323
|
+
created_by: z46.string().nullable().describe("User who created this build"),
|
|
7324
|
+
created_by_name: z46.string().nullable().optional().describe("Display name of the user who created this build")
|
|
7325
|
+
});
|
|
7326
|
+
var listBuildsResponseSchema = z46.array(buildResponseSchema);
|
|
7327
|
+
var buildResponseApiSchema = z46.object({
|
|
7274
7328
|
build: buildApiSchema
|
|
7275
7329
|
});
|
|
7276
|
-
var buildsListApiSchema =
|
|
7277
|
-
builds:
|
|
7278
|
-
total:
|
|
7279
|
-
limit:
|
|
7280
|
-
offset:
|
|
7330
|
+
var buildsListApiSchema = z46.object({
|
|
7331
|
+
builds: z46.array(buildApiSchema),
|
|
7332
|
+
total: z46.int(),
|
|
7333
|
+
limit: z46.int(),
|
|
7334
|
+
offset: z46.int()
|
|
7281
7335
|
});
|
|
7282
|
-
var createBuildResponseApiSchema =
|
|
7336
|
+
var createBuildResponseApiSchema = z46.object({
|
|
7283
7337
|
build: buildApiSchema,
|
|
7284
|
-
agent:
|
|
7285
|
-
id:
|
|
7338
|
+
agent: z46.object({
|
|
7339
|
+
id: z46.guid()
|
|
7286
7340
|
})
|
|
7287
7341
|
});
|
|
7288
|
-
var builderRunGenerateResponseSchema =
|
|
7289
|
-
status:
|
|
7290
|
-
builderRunId:
|
|
7291
|
-
buildId:
|
|
7342
|
+
var builderRunGenerateResponseSchema = z46.object({
|
|
7343
|
+
status: z46.literal("generating"),
|
|
7344
|
+
builderRunId: z46.string(),
|
|
7345
|
+
buildId: z46.string()
|
|
7292
7346
|
});
|
|
7293
7347
|
var BUILDER_RUN_STATUSES = [
|
|
7294
7348
|
"not_started",
|
|
@@ -7299,324 +7353,324 @@ var BUILDER_RUN_STATUSES = [
|
|
|
7299
7353
|
"waiting_for_input",
|
|
7300
7354
|
"waiting_for_approve"
|
|
7301
7355
|
];
|
|
7302
|
-
var builderRunStatusSchema =
|
|
7303
|
-
id:
|
|
7304
|
-
status:
|
|
7305
|
-
build_id:
|
|
7306
|
-
started_at:
|
|
7307
|
-
completed_at:
|
|
7356
|
+
var builderRunStatusSchema = z46.object({
|
|
7357
|
+
id: z46.string(),
|
|
7358
|
+
status: z46.enum(BUILDER_RUN_STATUSES),
|
|
7359
|
+
build_id: z46.string(),
|
|
7360
|
+
started_at: z46.string().nullable(),
|
|
7361
|
+
completed_at: z46.string().nullable(),
|
|
7308
7362
|
checkpoint_config: StoredAgentConfigSchema.nullable(),
|
|
7309
7363
|
pending_user_questions: askUserQuestionInputSchema.nullable(),
|
|
7310
|
-
schedule_suggested:
|
|
7311
|
-
});
|
|
7312
|
-
var filterValueSchema =
|
|
7313
|
-
value:
|
|
7314
|
-
name:
|
|
7315
|
-
});
|
|
7316
|
-
var filterCategorySchema =
|
|
7317
|
-
key:
|
|
7318
|
-
name:
|
|
7319
|
-
selectionMode:
|
|
7320
|
-
values:
|
|
7321
|
-
});
|
|
7322
|
-
var caseFiltersResponseSchema =
|
|
7323
|
-
filters:
|
|
7324
|
-
});
|
|
7325
|
-
var caseQueueFolderResponseSchema =
|
|
7326
|
-
id:
|
|
7327
|
-
name:
|
|
7328
|
-
team_id:
|
|
7329
|
-
parent_folder_id:
|
|
7330
|
-
created_at:
|
|
7331
|
-
updated_at:
|
|
7332
|
-
});
|
|
7333
|
-
var caseQueueFoldersListResponseSchema =
|
|
7334
|
-
folders:
|
|
7335
|
-
});
|
|
7336
|
-
var createCaseQueueFolderRequestSchema =
|
|
7337
|
-
name:
|
|
7338
|
-
parent_folder_id:
|
|
7339
|
-
});
|
|
7340
|
-
var updateCaseQueueFolderRequestSchema =
|
|
7341
|
-
name:
|
|
7342
|
-
parent_folder_id:
|
|
7343
|
-
});
|
|
7344
|
-
var moveQueuesToFolderRequestSchema =
|
|
7345
|
-
queue_ids:
|
|
7346
|
-
folder_id:
|
|
7347
|
-
});
|
|
7348
|
-
var caseQueueLabelSchema =
|
|
7349
|
-
id:
|
|
7350
|
-
key:
|
|
7364
|
+
schedule_suggested: z46.boolean().optional()
|
|
7365
|
+
});
|
|
7366
|
+
var filterValueSchema = z47.object({
|
|
7367
|
+
value: z47.string().min(1),
|
|
7368
|
+
name: z47.string().min(1)
|
|
7369
|
+
});
|
|
7370
|
+
var filterCategorySchema = z47.object({
|
|
7371
|
+
key: z47.string(),
|
|
7372
|
+
name: z47.string().min(1),
|
|
7373
|
+
selectionMode: z47.enum(["single", "multi"]),
|
|
7374
|
+
values: z47.array(filterValueSchema)
|
|
7375
|
+
});
|
|
7376
|
+
var caseFiltersResponseSchema = z47.object({
|
|
7377
|
+
filters: z47.array(filterCategorySchema)
|
|
7378
|
+
});
|
|
7379
|
+
var caseQueueFolderResponseSchema = z48.object({
|
|
7380
|
+
id: z48.string(),
|
|
7381
|
+
name: z48.string(),
|
|
7382
|
+
team_id: z48.string(),
|
|
7383
|
+
parent_folder_id: z48.string().nullable(),
|
|
7384
|
+
created_at: z48.string(),
|
|
7385
|
+
updated_at: z48.string()
|
|
7386
|
+
});
|
|
7387
|
+
var caseQueueFoldersListResponseSchema = z48.object({
|
|
7388
|
+
folders: z48.array(caseQueueFolderResponseSchema)
|
|
7389
|
+
});
|
|
7390
|
+
var createCaseQueueFolderRequestSchema = z48.object({
|
|
7391
|
+
name: z48.string().min(1).max(100),
|
|
7392
|
+
parent_folder_id: z48.guid().nullable().optional()
|
|
7393
|
+
});
|
|
7394
|
+
var updateCaseQueueFolderRequestSchema = z48.object({
|
|
7395
|
+
name: z48.string().min(1).max(100).optional(),
|
|
7396
|
+
parent_folder_id: z48.guid().nullable().optional()
|
|
7397
|
+
});
|
|
7398
|
+
var moveQueuesToFolderRequestSchema = z48.object({
|
|
7399
|
+
queue_ids: z48.array(z48.guid()).min(1),
|
|
7400
|
+
folder_id: z48.guid().nullable()
|
|
7401
|
+
});
|
|
7402
|
+
var caseQueueLabelSchema = z49.object({
|
|
7403
|
+
id: z49.guid(),
|
|
7404
|
+
key: z49.string(),
|
|
7351
7405
|
// Empty string key means a simple tag (value-only); non-empty key creates a key-value categorization
|
|
7352
|
-
value:
|
|
7353
|
-
color_hue:
|
|
7406
|
+
value: z49.string().min(1),
|
|
7407
|
+
color_hue: z49.int().min(0).max(360)
|
|
7354
7408
|
});
|
|
7355
|
-
var caseLabelsListResponseSchema =
|
|
7356
|
-
labels:
|
|
7409
|
+
var caseLabelsListResponseSchema = z49.object({
|
|
7410
|
+
labels: z49.array(caseQueueLabelSchema)
|
|
7357
7411
|
});
|
|
7358
|
-
var caseLabelAssignInputSchema =
|
|
7359
|
-
labels:
|
|
7360
|
-
|
|
7361
|
-
key:
|
|
7362
|
-
value:
|
|
7412
|
+
var caseLabelAssignInputSchema = z49.object({
|
|
7413
|
+
labels: z49.array(
|
|
7414
|
+
z49.object({
|
|
7415
|
+
key: z49.string().optional().default(""),
|
|
7416
|
+
value: z49.string().min(1)
|
|
7363
7417
|
})
|
|
7364
7418
|
).min(1).max(50)
|
|
7365
7419
|
});
|
|
7366
|
-
var caseLabelAssignResponseSchema =
|
|
7367
|
-
labels:
|
|
7420
|
+
var caseLabelAssignResponseSchema = z49.object({
|
|
7421
|
+
labels: z49.array(caseQueueLabelSchema)
|
|
7368
7422
|
});
|
|
7369
|
-
var caseLabelUpdateInputSchema =
|
|
7423
|
+
var caseLabelUpdateInputSchema = z49.object({
|
|
7370
7424
|
// key is a partial-update field: omit to leave the existing key unchanged.
|
|
7371
7425
|
// Do NOT add `.default("")` — a missing key must not silently relocate the
|
|
7372
7426
|
// label into the empty-key ("Labels") bucket when the caller only wants to
|
|
7373
7427
|
// change color or value.
|
|
7374
|
-
key:
|
|
7375
|
-
value:
|
|
7376
|
-
color_hue:
|
|
7428
|
+
key: z49.string().optional(),
|
|
7429
|
+
value: z49.string().min(1),
|
|
7430
|
+
color_hue: z49.int().min(0).max(360).optional()
|
|
7377
7431
|
});
|
|
7378
|
-
var caseLabelUpdateResponseSchema =
|
|
7432
|
+
var caseLabelUpdateResponseSchema = z49.object({
|
|
7379
7433
|
label: caseQueueLabelSchema
|
|
7380
7434
|
});
|
|
7381
|
-
var caseLabelUnlinkInputSchema =
|
|
7382
|
-
label_ids:
|
|
7435
|
+
var caseLabelUnlinkInputSchema = z49.object({
|
|
7436
|
+
label_ids: z49.array(z49.guid()).min(1)
|
|
7383
7437
|
});
|
|
7384
|
-
var caseLabelUnlinkResponseSchema =
|
|
7385
|
-
success:
|
|
7438
|
+
var caseLabelUnlinkResponseSchema = z49.object({
|
|
7439
|
+
success: z49.boolean()
|
|
7386
7440
|
});
|
|
7387
|
-
var caseLabelCreateInputSchema =
|
|
7388
|
-
key:
|
|
7389
|
-
value:
|
|
7390
|
-
color_hue:
|
|
7441
|
+
var caseLabelCreateInputSchema = z49.object({
|
|
7442
|
+
key: z49.string().optional().default(""),
|
|
7443
|
+
value: z49.string().min(1),
|
|
7444
|
+
color_hue: z49.int().min(0).max(360).optional()
|
|
7391
7445
|
});
|
|
7392
|
-
var caseLabelCreateResponseSchema =
|
|
7446
|
+
var caseLabelCreateResponseSchema = z49.object({
|
|
7393
7447
|
label: caseQueueLabelSchema.extend({
|
|
7394
|
-
case_count:
|
|
7448
|
+
case_count: z49.int().min(0)
|
|
7395
7449
|
})
|
|
7396
7450
|
});
|
|
7397
7451
|
var caseQueueLabelWithCountSchema = caseQueueLabelSchema.extend({
|
|
7398
|
-
case_count:
|
|
7452
|
+
case_count: z49.int().min(0)
|
|
7399
7453
|
});
|
|
7400
|
-
var caseLabelsWithCountsListResponseSchema =
|
|
7401
|
-
labels:
|
|
7454
|
+
var caseLabelsWithCountsListResponseSchema = z49.object({
|
|
7455
|
+
labels: z49.array(caseQueueLabelWithCountSchema)
|
|
7402
7456
|
});
|
|
7403
7457
|
var SEQUENTIAL_TRIGGER_CONCURRENCY = 1;
|
|
7404
|
-
var settableTriggerConcurrencySchema =
|
|
7405
|
-
var caseTriggerApiSchema =
|
|
7406
|
-
id:
|
|
7407
|
-
agent_id:
|
|
7408
|
-
case_queue_id:
|
|
7409
|
-
case_queue_name:
|
|
7410
|
-
user_id:
|
|
7411
|
-
enabled:
|
|
7412
|
-
concurrency:
|
|
7413
|
-
created_at:
|
|
7414
|
-
updated_at:
|
|
7415
|
-
creator_display_name:
|
|
7416
|
-
can_disable:
|
|
7417
|
-
has_conflict:
|
|
7418
|
-
conflicting_agents:
|
|
7419
|
-
});
|
|
7420
|
-
var caseTriggerResponseSchema =
|
|
7458
|
+
var settableTriggerConcurrencySchema = z50.literal(SEQUENTIAL_TRIGGER_CONCURRENCY).nullable();
|
|
7459
|
+
var caseTriggerApiSchema = z50.object({
|
|
7460
|
+
id: z50.string(),
|
|
7461
|
+
agent_id: z50.string(),
|
|
7462
|
+
case_queue_id: z50.string(),
|
|
7463
|
+
case_queue_name: z50.string(),
|
|
7464
|
+
user_id: z50.string(),
|
|
7465
|
+
enabled: z50.boolean(),
|
|
7466
|
+
concurrency: z50.int().positive().nullable(),
|
|
7467
|
+
created_at: z50.string(),
|
|
7468
|
+
updated_at: z50.string(),
|
|
7469
|
+
creator_display_name: z50.string().nullable(),
|
|
7470
|
+
can_disable: z50.boolean(),
|
|
7471
|
+
has_conflict: z50.boolean(),
|
|
7472
|
+
conflicting_agents: z50.array(conflictingAgentSchema)
|
|
7473
|
+
});
|
|
7474
|
+
var caseTriggerResponseSchema = z50.object({
|
|
7421
7475
|
case_trigger: caseTriggerApiSchema
|
|
7422
7476
|
});
|
|
7423
|
-
var caseTriggersListResponseSchema =
|
|
7424
|
-
case_triggers:
|
|
7477
|
+
var caseTriggersListResponseSchema = z50.object({
|
|
7478
|
+
case_triggers: z50.array(caseTriggerApiSchema)
|
|
7425
7479
|
});
|
|
7426
|
-
var deleteCaseTriggerResponseSchema =
|
|
7427
|
-
success:
|
|
7480
|
+
var deleteCaseTriggerResponseSchema = z50.object({
|
|
7481
|
+
success: z50.literal(true)
|
|
7428
7482
|
});
|
|
7429
|
-
var caseTriggerConflictPreviewResponseSchema =
|
|
7430
|
-
has_conflict:
|
|
7431
|
-
conflicting_agents:
|
|
7483
|
+
var caseTriggerConflictPreviewResponseSchema = z50.object({
|
|
7484
|
+
has_conflict: z50.boolean(),
|
|
7485
|
+
conflicting_agents: z50.array(conflictingAgentSchema)
|
|
7432
7486
|
});
|
|
7433
|
-
var integrationConfigMinSchema =
|
|
7434
|
-
id:
|
|
7435
|
-
integration_id:
|
|
7436
|
-
integration_type:
|
|
7487
|
+
var integrationConfigMinSchema = z50.object({
|
|
7488
|
+
id: z50.string(),
|
|
7489
|
+
integration_id: z50.guid().nullable(),
|
|
7490
|
+
integration_type: z50.string()
|
|
7437
7491
|
});
|
|
7438
|
-
var integrationConfigsResponseSchema =
|
|
7439
|
-
integrations:
|
|
7492
|
+
var integrationConfigsResponseSchema = z50.object({
|
|
7493
|
+
integrations: z50.array(integrationConfigMinSchema)
|
|
7440
7494
|
});
|
|
7441
|
-
var caseQueueMinSchema =
|
|
7442
|
-
id:
|
|
7443
|
-
name:
|
|
7495
|
+
var caseQueueMinSchema = z50.object({
|
|
7496
|
+
id: z50.string(),
|
|
7497
|
+
name: z50.string()
|
|
7444
7498
|
});
|
|
7445
|
-
var caseQueuesForSlotResponseSchema =
|
|
7446
|
-
queues:
|
|
7499
|
+
var caseQueuesForSlotResponseSchema = z50.object({
|
|
7500
|
+
queues: z50.array(caseQueueMinSchema)
|
|
7447
7501
|
});
|
|
7448
7502
|
var APPROVAL_DECISION = {
|
|
7449
7503
|
APPROVED: "approved",
|
|
7450
7504
|
REJECTED: "rejected"
|
|
7451
7505
|
};
|
|
7452
|
-
var approvalDecisionSchema =
|
|
7506
|
+
var approvalDecisionSchema = z51.enum([
|
|
7453
7507
|
APPROVAL_DECISION.APPROVED,
|
|
7454
7508
|
APPROVAL_DECISION.REJECTED
|
|
7455
7509
|
]);
|
|
7456
7510
|
var HUMAN_REQUEST_TITLE_MAX = 200;
|
|
7457
7511
|
var HUMAN_REQUEST_PROMPT_MAX = 2e3;
|
|
7458
7512
|
var MAX_APPROVERS_PER_BATCH = 20;
|
|
7459
|
-
var humanRequestBatchRowSchema =
|
|
7460
|
-
id:
|
|
7461
|
-
assignee_user_id:
|
|
7462
|
-
assignee_name:
|
|
7463
|
-
assignee_email:
|
|
7513
|
+
var humanRequestBatchRowSchema = z51.object({
|
|
7514
|
+
id: z51.string().uuid(),
|
|
7515
|
+
assignee_user_id: z51.string().uuid(),
|
|
7516
|
+
assignee_name: z51.string().nullable(),
|
|
7517
|
+
assignee_email: z51.string().nullable(),
|
|
7464
7518
|
/**
|
|
7465
7519
|
* The free-text ask the agent posed to THIS specific approver. Each row
|
|
7466
7520
|
* carries its own prompt — the multi-approver flow does not assume a
|
|
7467
7521
|
* single shared question across approvers.
|
|
7468
7522
|
*/
|
|
7469
|
-
prompt:
|
|
7523
|
+
prompt: z51.string(),
|
|
7470
7524
|
decision: approvalDecisionSchema.nullable(),
|
|
7471
|
-
responded_at:
|
|
7472
|
-
responded_by_user_id:
|
|
7473
|
-
responded_by_name:
|
|
7474
|
-
responded_by_email:
|
|
7475
|
-
cancelled_at:
|
|
7476
|
-
cancellation_reason:
|
|
7477
|
-
});
|
|
7478
|
-
var approvalBatchSchema =
|
|
7479
|
-
id:
|
|
7480
|
-
case_queue_item_id:
|
|
7481
|
-
agent_run_id:
|
|
7482
|
-
title:
|
|
7483
|
-
created_at:
|
|
7484
|
-
resolved_at:
|
|
7485
|
-
cancelled_at:
|
|
7486
|
-
cancellation_reason:
|
|
7487
|
-
rows:
|
|
7488
|
-
});
|
|
7489
|
-
var approvalRequestInputSchema =
|
|
7490
|
-
approverUserId:
|
|
7491
|
-
prompt:
|
|
7492
|
-
});
|
|
7493
|
-
var createHumanRequestBatchBodySchema =
|
|
7494
|
-
agentRunId:
|
|
7495
|
-
title:
|
|
7496
|
-
requests:
|
|
7497
|
-
});
|
|
7498
|
-
var createHumanRequestBatchResponseSchema =
|
|
7499
|
-
batchId:
|
|
7500
|
-
createdAt:
|
|
7501
|
-
humanRequestIds:
|
|
7502
|
-
});
|
|
7503
|
-
var requestCaseApprovalsToolInputSchema =
|
|
7504
|
-
title:
|
|
7505
|
-
requests:
|
|
7506
|
-
});
|
|
7507
|
-
var requestCaseApprovalsBatchStatusSchema =
|
|
7525
|
+
responded_at: z51.string().nullable(),
|
|
7526
|
+
responded_by_user_id: z51.string().uuid().nullable(),
|
|
7527
|
+
responded_by_name: z51.string().nullable(),
|
|
7528
|
+
responded_by_email: z51.string().nullable(),
|
|
7529
|
+
cancelled_at: z51.string().nullable(),
|
|
7530
|
+
cancellation_reason: z51.string().nullable()
|
|
7531
|
+
});
|
|
7532
|
+
var approvalBatchSchema = z51.object({
|
|
7533
|
+
id: z51.string().uuid(),
|
|
7534
|
+
case_queue_item_id: z51.string().uuid(),
|
|
7535
|
+
agent_run_id: z51.string().uuid(),
|
|
7536
|
+
title: z51.string(),
|
|
7537
|
+
created_at: z51.string(),
|
|
7538
|
+
resolved_at: z51.string().nullable(),
|
|
7539
|
+
cancelled_at: z51.string().nullable(),
|
|
7540
|
+
cancellation_reason: z51.string().nullable(),
|
|
7541
|
+
rows: z51.array(humanRequestBatchRowSchema)
|
|
7542
|
+
});
|
|
7543
|
+
var approvalRequestInputSchema = z51.object({
|
|
7544
|
+
approverUserId: z51.string().uuid(),
|
|
7545
|
+
prompt: z51.string().trim().min(1).max(HUMAN_REQUEST_PROMPT_MAX)
|
|
7546
|
+
});
|
|
7547
|
+
var createHumanRequestBatchBodySchema = z51.object({
|
|
7548
|
+
agentRunId: z51.string().uuid(),
|
|
7549
|
+
title: z51.string().trim().min(1).max(HUMAN_REQUEST_TITLE_MAX),
|
|
7550
|
+
requests: z51.array(approvalRequestInputSchema).min(1).max(MAX_APPROVERS_PER_BATCH)
|
|
7551
|
+
});
|
|
7552
|
+
var createHumanRequestBatchResponseSchema = z51.object({
|
|
7553
|
+
batchId: z51.string().uuid(),
|
|
7554
|
+
createdAt: z51.string(),
|
|
7555
|
+
humanRequestIds: z51.array(z51.string().uuid())
|
|
7556
|
+
});
|
|
7557
|
+
var requestCaseApprovalsToolInputSchema = z51.object({
|
|
7558
|
+
title: z51.string().trim().min(1).max(HUMAN_REQUEST_TITLE_MAX),
|
|
7559
|
+
requests: z51.array(approvalRequestInputSchema).min(1).max(MAX_APPROVERS_PER_BATCH)
|
|
7560
|
+
});
|
|
7561
|
+
var requestCaseApprovalsBatchStatusSchema = z51.enum([
|
|
7508
7562
|
"resolved",
|
|
7509
7563
|
"cancelled"
|
|
7510
7564
|
]);
|
|
7511
|
-
var requestCaseApprovalsDecisionEntrySchema =
|
|
7512
|
-
assigneeUserId:
|
|
7565
|
+
var requestCaseApprovalsDecisionEntrySchema = z51.object({
|
|
7566
|
+
assigneeUserId: z51.string().uuid(),
|
|
7513
7567
|
decision: approvalDecisionSchema,
|
|
7514
|
-
respondedAt:
|
|
7515
|
-
respondedByUserId:
|
|
7568
|
+
respondedAt: z51.string(),
|
|
7569
|
+
respondedByUserId: z51.string().uuid()
|
|
7516
7570
|
});
|
|
7517
|
-
var requestCaseApprovalsToolOutputSchema =
|
|
7571
|
+
var requestCaseApprovalsToolOutputSchema = z51.object({
|
|
7518
7572
|
status: requestCaseApprovalsBatchStatusSchema,
|
|
7519
|
-
decisions:
|
|
7520
|
-
});
|
|
7521
|
-
var humanRequestContextSchema =
|
|
7522
|
-
|
|
7523
|
-
kind:
|
|
7524
|
-
runId:
|
|
7525
|
-
buildId:
|
|
7526
|
-
agentId:
|
|
7527
|
-
agentName:
|
|
7573
|
+
decisions: z51.array(requestCaseApprovalsDecisionEntrySchema)
|
|
7574
|
+
});
|
|
7575
|
+
var humanRequestContextSchema = z51.discriminatedUnion("kind", [
|
|
7576
|
+
z51.object({
|
|
7577
|
+
kind: z51.literal("run"),
|
|
7578
|
+
runId: z51.string().uuid(),
|
|
7579
|
+
buildId: z51.string().uuid(),
|
|
7580
|
+
agentId: z51.string().uuid(),
|
|
7581
|
+
agentName: z51.string().nullable()
|
|
7528
7582
|
}),
|
|
7529
|
-
|
|
7530
|
-
kind:
|
|
7531
|
-
queueId:
|
|
7532
|
-
caseId:
|
|
7533
|
-
caseTitle:
|
|
7583
|
+
z51.object({
|
|
7584
|
+
kind: z51.literal("case"),
|
|
7585
|
+
queueId: z51.string().uuid(),
|
|
7586
|
+
caseId: z51.string().uuid(),
|
|
7587
|
+
caseTitle: z51.string()
|
|
7534
7588
|
})
|
|
7535
7589
|
]);
|
|
7536
|
-
var caseQueueItemSchema =
|
|
7537
|
-
id:
|
|
7538
|
-
queue_id:
|
|
7539
|
-
title:
|
|
7540
|
-
data:
|
|
7541
|
-
status:
|
|
7542
|
-
claimed_at:
|
|
7543
|
-
claimed_by_run_id:
|
|
7544
|
-
completed_at:
|
|
7590
|
+
var caseQueueItemSchema = z52.object({
|
|
7591
|
+
id: z52.guid(),
|
|
7592
|
+
queue_id: z52.guid(),
|
|
7593
|
+
title: z52.string(),
|
|
7594
|
+
data: z52.string(),
|
|
7595
|
+
status: z52.enum(["pending", "claimed", "completed", "failed"]),
|
|
7596
|
+
claimed_at: z52.string().nullable(),
|
|
7597
|
+
claimed_by_run_id: z52.string().nullable(),
|
|
7598
|
+
completed_at: z52.string().nullable(),
|
|
7545
7599
|
/** When the case is scheduled to be re-handled (null if not postponed) */
|
|
7546
|
-
postponed_to:
|
|
7547
|
-
created_at:
|
|
7548
|
-
updated_at:
|
|
7549
|
-
created_by_user_id:
|
|
7550
|
-
created_by_user_name:
|
|
7551
|
-
created_by_user_email:
|
|
7600
|
+
postponed_to: z52.string().nullable(),
|
|
7601
|
+
created_at: z52.string(),
|
|
7602
|
+
updated_at: z52.string(),
|
|
7603
|
+
created_by_user_id: z52.guid().nullable(),
|
|
7604
|
+
created_by_user_name: z52.string().nullable(),
|
|
7605
|
+
created_by_user_email: z52.string().nullable(),
|
|
7552
7606
|
/** Status of the associated agent run (running, waiting, etc.) - null if no active run */
|
|
7553
|
-
agent_run_status:
|
|
7607
|
+
agent_run_status: z52.string().nullable(),
|
|
7554
7608
|
/** User ID of the owner of the active agent run - null if no active run */
|
|
7555
|
-
agent_run_user_id:
|
|
7609
|
+
agent_run_user_id: z52.guid().nullable(),
|
|
7556
7610
|
/** ID of the pending human request for cases waiting for input */
|
|
7557
|
-
pending_human_request_id:
|
|
7611
|
+
pending_human_request_id: z52.guid().nullable(),
|
|
7558
7612
|
/** ID of the open `human_request_batch` bound to this case, if any. Used to derive the `awaiting_approval` UI state. */
|
|
7559
|
-
pending_approval_batch_id:
|
|
7613
|
+
pending_approval_batch_id: z52.guid().nullable(),
|
|
7560
7614
|
/** User IDs of approvers named on the open batch's unresolved rows. Used to switch the badge to "Awaiting your approval" when the viewer is one of them. */
|
|
7561
|
-
pending_approval_assignee_user_ids:
|
|
7615
|
+
pending_approval_assignee_user_ids: z52.array(z52.guid()),
|
|
7562
7616
|
/** Count of resolved `human_request` approval rows on this case with `decision = 'approved'`. */
|
|
7563
|
-
approval_approved_count:
|
|
7617
|
+
approval_approved_count: z52.int().nonnegative(),
|
|
7564
7618
|
/** Count of resolved `human_request` approval rows on this case with `decision = 'rejected'`. */
|
|
7565
|
-
approval_rejected_count:
|
|
7619
|
+
approval_rejected_count: z52.int().nonnegative(),
|
|
7566
7620
|
/** Snippet from the data field showing search match context. Only present when search matches data. */
|
|
7567
|
-
search_match_data_snippet:
|
|
7568
|
-
before:
|
|
7569
|
-
match:
|
|
7570
|
-
after:
|
|
7621
|
+
search_match_data_snippet: z52.object({
|
|
7622
|
+
before: z52.string(),
|
|
7623
|
+
match: z52.string(),
|
|
7624
|
+
after: z52.string()
|
|
7571
7625
|
}).optional(),
|
|
7572
|
-
labels:
|
|
7573
|
-
});
|
|
7574
|
-
var caseQueueItemEventSchema =
|
|
7575
|
-
id:
|
|
7576
|
-
case_queue_item_id:
|
|
7577
|
-
agent_run_id:
|
|
7578
|
-
human_request_id:
|
|
7579
|
-
type:
|
|
7580
|
-
reason:
|
|
7581
|
-
created_at:
|
|
7582
|
-
agent_id:
|
|
7583
|
-
agent_name:
|
|
7626
|
+
labels: z52.array(caseQueueLabelSchema)
|
|
7627
|
+
});
|
|
7628
|
+
var caseQueueItemEventSchema = z52.object({
|
|
7629
|
+
id: z52.guid(),
|
|
7630
|
+
case_queue_item_id: z52.guid(),
|
|
7631
|
+
agent_run_id: z52.guid().nullable(),
|
|
7632
|
+
human_request_id: z52.guid().nullable(),
|
|
7633
|
+
type: z52.string(),
|
|
7634
|
+
reason: z52.string().nullable(),
|
|
7635
|
+
created_at: z52.string(),
|
|
7636
|
+
agent_id: z52.guid().nullable(),
|
|
7637
|
+
agent_name: z52.string().nullable(),
|
|
7584
7638
|
/**
|
|
7585
7639
|
* Owner of the agent run referenced by this event (joined from
|
|
7586
7640
|
* `agent_run.user_id`). The frontend mirrors the backend
|
|
7587
7641
|
* `assertCanAccessRun` gate against this id + the viewer's team role to
|
|
7588
7642
|
* decide whether the row should expose a click affordance.
|
|
7589
7643
|
*/
|
|
7590
|
-
user_id:
|
|
7591
|
-
user_name:
|
|
7592
|
-
user_email:
|
|
7593
|
-
human_request_title:
|
|
7594
|
-
});
|
|
7595
|
-
var casesListResponseSchema =
|
|
7596
|
-
cases:
|
|
7597
|
-
total:
|
|
7598
|
-
limit:
|
|
7599
|
-
offset:
|
|
7600
|
-
});
|
|
7601
|
-
var caseCreateInputSchema =
|
|
7602
|
-
title:
|
|
7644
|
+
user_id: z52.guid().nullable(),
|
|
7645
|
+
user_name: z52.string().nullable(),
|
|
7646
|
+
user_email: z52.string().nullable(),
|
|
7647
|
+
human_request_title: z52.string().nullable()
|
|
7648
|
+
});
|
|
7649
|
+
var casesListResponseSchema = z52.object({
|
|
7650
|
+
cases: z52.array(caseQueueItemSchema),
|
|
7651
|
+
total: z52.number(),
|
|
7652
|
+
limit: z52.int(),
|
|
7653
|
+
offset: z52.int()
|
|
7654
|
+
});
|
|
7655
|
+
var caseCreateInputSchema = z52.object({
|
|
7656
|
+
title: z52.string().min(1).max(500).describe(
|
|
7603
7657
|
"Short title for the case (max 500 characters). Put long context in `data`."
|
|
7604
7658
|
),
|
|
7605
|
-
data:
|
|
7659
|
+
data: z52.string().optional().describe(
|
|
7606
7660
|
"Additional data for the case. Free-form text or JSON; Agents receive this on claim."
|
|
7607
7661
|
),
|
|
7608
|
-
labels:
|
|
7609
|
-
|
|
7610
|
-
key:
|
|
7611
|
-
value:
|
|
7662
|
+
labels: z52.array(
|
|
7663
|
+
z52.object({
|
|
7664
|
+
key: z52.string().optional().default("").describe("Label key (omit for a simple tag)."),
|
|
7665
|
+
value: z52.string().min(1).describe("Label value (required).")
|
|
7612
7666
|
})
|
|
7613
7667
|
).max(50).optional().describe(
|
|
7614
7668
|
"Optional labels to assign to the case at creation. Labels are created on the queue if they don't already exist."
|
|
7615
7669
|
)
|
|
7616
7670
|
});
|
|
7617
|
-
var caseCreateRequestSchema =
|
|
7671
|
+
var caseCreateRequestSchema = z52.object({
|
|
7618
7672
|
case: caseCreateInputSchema.optional(),
|
|
7619
|
-
cases:
|
|
7673
|
+
cases: z52.array(caseCreateInputSchema).min(1).max(100).optional()
|
|
7620
7674
|
}).superRefine((val, ctx) => {
|
|
7621
7675
|
const hasCase = val.case !== void 0;
|
|
7622
7676
|
const hasCases = val.cases !== void 0;
|
|
@@ -7634,26 +7688,26 @@ var caseCreateRequestSchema = z51.object({
|
|
|
7634
7688
|
});
|
|
7635
7689
|
}
|
|
7636
7690
|
});
|
|
7637
|
-
var caseCreateResponseSchema =
|
|
7638
|
-
added_cases:
|
|
7691
|
+
var caseCreateResponseSchema = z52.object({
|
|
7692
|
+
added_cases: z52.array(caseQueueItemSchema)
|
|
7639
7693
|
});
|
|
7640
|
-
var casesStatsSchema =
|
|
7641
|
-
total:
|
|
7642
|
-
pending:
|
|
7643
|
-
claimed:
|
|
7694
|
+
var casesStatsSchema = z52.object({
|
|
7695
|
+
total: z52.number(),
|
|
7696
|
+
pending: z52.number(),
|
|
7697
|
+
claimed: z52.number(),
|
|
7644
7698
|
/** Count of claimed cases waiting for human input (run status = waiting) */
|
|
7645
|
-
waiting:
|
|
7699
|
+
waiting: z52.number(),
|
|
7646
7700
|
/** Count of pending cases that are postponed for later */
|
|
7647
|
-
postponed:
|
|
7648
|
-
completed:
|
|
7649
|
-
failed:
|
|
7701
|
+
postponed: z52.number(),
|
|
7702
|
+
completed: z52.number(),
|
|
7703
|
+
failed: z52.number()
|
|
7650
7704
|
});
|
|
7651
|
-
var casesStatsResponseSchema =
|
|
7705
|
+
var casesStatsResponseSchema = z52.object({
|
|
7652
7706
|
stats: casesStatsSchema
|
|
7653
7707
|
});
|
|
7654
|
-
var caseDetailResponseSchema =
|
|
7708
|
+
var caseDetailResponseSchema = z52.object({
|
|
7655
7709
|
case: caseQueueItemSchema,
|
|
7656
|
-
events:
|
|
7710
|
+
events: z52.array(caseQueueItemEventSchema),
|
|
7657
7711
|
/**
|
|
7658
7712
|
* Every approval batch ever created on this case, newest first. Each
|
|
7659
7713
|
* batch carries one child row per named approver (with their decision
|
|
@@ -7661,21 +7715,21 @@ var caseDetailResponseSchema = z51.object({
|
|
|
7661
7715
|
* grouped per batch so the case-level approval history reads inline.
|
|
7662
7716
|
* Empty array when no batch has ever been created on the case.
|
|
7663
7717
|
*/
|
|
7664
|
-
approvalBatches:
|
|
7718
|
+
approvalBatches: z52.array(approvalBatchSchema)
|
|
7665
7719
|
});
|
|
7666
|
-
var caseJobSummarySchema =
|
|
7667
|
-
id:
|
|
7668
|
-
case_queue_item_id:
|
|
7669
|
-
agent_id:
|
|
7670
|
-
agent_name:
|
|
7720
|
+
var caseJobSummarySchema = z52.object({
|
|
7721
|
+
id: z52.string().uuid(),
|
|
7722
|
+
case_queue_item_id: z52.string().uuid(),
|
|
7723
|
+
agent_id: z52.string().uuid(),
|
|
7724
|
+
agent_name: z52.string(),
|
|
7671
7725
|
status: agentRunStatusSchema,
|
|
7672
|
-
source:
|
|
7673
|
-
created_at:
|
|
7674
|
-
started_at:
|
|
7675
|
-
completed_at:
|
|
7676
|
-
claimed_at:
|
|
7677
|
-
has_pending_human_request:
|
|
7678
|
-
pending_human_request_title:
|
|
7726
|
+
source: z52.string().nullable(),
|
|
7727
|
+
created_at: z52.string(),
|
|
7728
|
+
started_at: z52.string().nullable(),
|
|
7729
|
+
completed_at: z52.string().nullable(),
|
|
7730
|
+
claimed_at: z52.string(),
|
|
7731
|
+
has_pending_human_request: z52.boolean(),
|
|
7732
|
+
pending_human_request_title: z52.string().nullable(),
|
|
7679
7733
|
evaluation: evalSummarySchema,
|
|
7680
7734
|
/**
|
|
7681
7735
|
* Owner of the agent run (from `agent_run.user_id`). The frontend mirrors
|
|
@@ -7683,225 +7737,225 @@ var caseJobSummarySchema = z51.object({
|
|
|
7683
7737
|
* team role to decide whether the card is interactive (live messages,
|
|
7684
7738
|
* HITL affordances, drawer link).
|
|
7685
7739
|
*/
|
|
7686
|
-
user_id:
|
|
7740
|
+
user_id: z52.guid().nullable(),
|
|
7687
7741
|
/**
|
|
7688
7742
|
* Display name of the user who triggered the run, joined from `profiles`.
|
|
7689
7743
|
* Falls back to `user_email` for the in-card user pill when null.
|
|
7690
7744
|
*/
|
|
7691
|
-
user_name:
|
|
7692
|
-
user_email:
|
|
7745
|
+
user_name: z52.string().nullable(),
|
|
7746
|
+
user_email: z52.string().nullable()
|
|
7693
7747
|
});
|
|
7694
|
-
var caseJobsResponseSchema =
|
|
7695
|
-
runs:
|
|
7748
|
+
var caseJobsResponseSchema = z52.object({
|
|
7749
|
+
runs: z52.array(caseJobSummarySchema)
|
|
7696
7750
|
});
|
|
7697
|
-
var caseJobRecentMessagesResponseSchema =
|
|
7698
|
-
messages:
|
|
7751
|
+
var caseJobRecentMessagesResponseSchema = z52.object({
|
|
7752
|
+
messages: z52.array(agentMessageWithCreatedAtSchema)
|
|
7699
7753
|
});
|
|
7700
|
-
var adjacentCasesResponseSchema =
|
|
7701
|
-
previousId:
|
|
7702
|
-
nextId:
|
|
7703
|
-
position:
|
|
7704
|
-
total:
|
|
7754
|
+
var adjacentCasesResponseSchema = z52.object({
|
|
7755
|
+
previousId: z52.guid().nullable(),
|
|
7756
|
+
nextId: z52.guid().nullable(),
|
|
7757
|
+
position: z52.number(),
|
|
7758
|
+
total: z52.number()
|
|
7705
7759
|
});
|
|
7706
|
-
var caseDeleteResponseSchema =
|
|
7707
|
-
success:
|
|
7708
|
-
interruptedRunIds:
|
|
7760
|
+
var caseDeleteResponseSchema = z52.object({
|
|
7761
|
+
success: z52.boolean(),
|
|
7762
|
+
interruptedRunIds: z52.array(z52.guid())
|
|
7709
7763
|
});
|
|
7710
|
-
var caseBulkDeleteResponseSchema =
|
|
7711
|
-
deletedCount:
|
|
7712
|
-
interruptedRunIds:
|
|
7764
|
+
var caseBulkDeleteResponseSchema = z52.object({
|
|
7765
|
+
deletedCount: z52.number(),
|
|
7766
|
+
interruptedRunIds: z52.array(z52.guid())
|
|
7713
7767
|
});
|
|
7714
|
-
var caseBulkReprocessResponseSchema =
|
|
7715
|
-
reprocessedCount:
|
|
7716
|
-
skippedCount:
|
|
7768
|
+
var caseBulkReprocessResponseSchema = z52.object({
|
|
7769
|
+
reprocessedCount: z52.number(),
|
|
7770
|
+
skippedCount: z52.number(),
|
|
7717
7771
|
// Deprecated aliases of `reprocessedCount`, both equal to it. Returned so
|
|
7718
7772
|
// clients 308-redirected here from the deprecated `bulk-delegate` /
|
|
7719
7773
|
// `bulk-retry` endpoints still find their original field. Optional +
|
|
7720
7774
|
// `deprecated` so consumers don't couple to them; removed with those aliases
|
|
7721
7775
|
// at the 2026-06-10 sunset.
|
|
7722
|
-
delegatedCount:
|
|
7776
|
+
delegatedCount: z52.number().meta({
|
|
7723
7777
|
deprecated: true,
|
|
7724
7778
|
description: "Deprecated alias of reprocessedCount, kept for clients redirected from bulk-delegate. Removed on 2026-06-10."
|
|
7725
7779
|
}).optional(),
|
|
7726
|
-
retriedCount:
|
|
7780
|
+
retriedCount: z52.number().meta({
|
|
7727
7781
|
deprecated: true,
|
|
7728
7782
|
description: "Deprecated alias of reprocessedCount, kept for clients redirected from bulk-retry. Removed on 2026-06-10."
|
|
7729
7783
|
}).optional()
|
|
7730
7784
|
});
|
|
7731
|
-
var caseBulkStatusUpdateResponseSchema =
|
|
7732
|
-
updatedCount:
|
|
7733
|
-
skippedCount:
|
|
7734
|
-
interruptedRunIds:
|
|
7735
|
-
});
|
|
7736
|
-
var deleteQueueResponseSchema =
|
|
7737
|
-
success:
|
|
7738
|
-
deleted_case_count:
|
|
7739
|
-
interrupted_run_ids:
|
|
7740
|
-
});
|
|
7741
|
-
var caseClearQueueResponseSchema =
|
|
7742
|
-
success:
|
|
7743
|
-
deletedCount:
|
|
7744
|
-
interruptedRunIds:
|
|
7745
|
-
});
|
|
7746
|
-
var caseQueueSchema =
|
|
7747
|
-
id:
|
|
7748
|
-
name:
|
|
7749
|
-
description:
|
|
7750
|
-
folder_id:
|
|
7751
|
-
created_at:
|
|
7785
|
+
var caseBulkStatusUpdateResponseSchema = z52.object({
|
|
7786
|
+
updatedCount: z52.number(),
|
|
7787
|
+
skippedCount: z52.number(),
|
|
7788
|
+
interruptedRunIds: z52.array(z52.guid())
|
|
7789
|
+
});
|
|
7790
|
+
var deleteQueueResponseSchema = z52.object({
|
|
7791
|
+
success: z52.boolean(),
|
|
7792
|
+
deleted_case_count: z52.number(),
|
|
7793
|
+
interrupted_run_ids: z52.array(z52.guid())
|
|
7794
|
+
});
|
|
7795
|
+
var caseClearQueueResponseSchema = z52.object({
|
|
7796
|
+
success: z52.boolean(),
|
|
7797
|
+
deletedCount: z52.number(),
|
|
7798
|
+
interruptedRunIds: z52.array(z52.guid())
|
|
7799
|
+
});
|
|
7800
|
+
var caseQueueSchema = z52.object({
|
|
7801
|
+
id: z52.guid(),
|
|
7802
|
+
name: z52.string(),
|
|
7803
|
+
description: z52.string().nullable(),
|
|
7804
|
+
folder_id: z52.guid().nullable(),
|
|
7805
|
+
created_at: z52.string(),
|
|
7752
7806
|
/**
|
|
7753
7807
|
* True when at least one case in this queue has ever had an approval
|
|
7754
7808
|
* batch (open, resolved, or cancelled). The frontend uses this to relabel
|
|
7755
7809
|
* the "Needs input" filter to "Needs input/approval" and to show the
|
|
7756
7810
|
* per-case approvals column.
|
|
7757
7811
|
*/
|
|
7758
|
-
has_approvals:
|
|
7812
|
+
has_approvals: z52.boolean()
|
|
7759
7813
|
});
|
|
7760
|
-
var caseQueuesResponseSchema =
|
|
7761
|
-
queues:
|
|
7762
|
-
total:
|
|
7763
|
-
limit:
|
|
7764
|
-
offset:
|
|
7814
|
+
var caseQueuesResponseSchema = z52.object({
|
|
7815
|
+
queues: z52.array(caseQueueSchema),
|
|
7816
|
+
total: z52.number(),
|
|
7817
|
+
limit: z52.number(),
|
|
7818
|
+
offset: z52.number()
|
|
7765
7819
|
});
|
|
7766
|
-
var caseGetQueueResponseSchema =
|
|
7820
|
+
var caseGetQueueResponseSchema = z52.object({
|
|
7767
7821
|
queue: caseQueueSchema
|
|
7768
7822
|
});
|
|
7769
|
-
var caseCreateQueueResponseSchema =
|
|
7823
|
+
var caseCreateQueueResponseSchema = z52.object({
|
|
7770
7824
|
queue: caseQueueSchema
|
|
7771
7825
|
});
|
|
7772
|
-
var caseUpdateQueueResponseSchema =
|
|
7826
|
+
var caseUpdateQueueResponseSchema = z52.object({
|
|
7773
7827
|
queue: caseQueueSchema
|
|
7774
7828
|
});
|
|
7775
|
-
var caseQueueAgentProblemSchema =
|
|
7829
|
+
var caseQueueAgentProblemSchema = z52.enum([
|
|
7776
7830
|
"multiple_triggers",
|
|
7777
7831
|
"producer_consumer_mix"
|
|
7778
7832
|
]);
|
|
7779
|
-
var queueAgentProducerSchema =
|
|
7780
|
-
agent_id:
|
|
7781
|
-
agent_name:
|
|
7782
|
-
case_trigger_enabled:
|
|
7783
|
-
case_trigger_queue_name:
|
|
7784
|
-
problems:
|
|
7785
|
-
});
|
|
7786
|
-
var queueAgentConsumerSchema =
|
|
7787
|
-
agent_id:
|
|
7788
|
-
agent_name:
|
|
7789
|
-
case_trigger_enabled:
|
|
7790
|
-
is_handover_target:
|
|
7791
|
-
problems:
|
|
7833
|
+
var queueAgentProducerSchema = z52.object({
|
|
7834
|
+
agent_id: z52.guid(),
|
|
7835
|
+
agent_name: z52.string(),
|
|
7836
|
+
case_trigger_enabled: z52.boolean(),
|
|
7837
|
+
case_trigger_queue_name: z52.string().nullable(),
|
|
7838
|
+
problems: z52.array(caseQueueAgentProblemSchema)
|
|
7839
|
+
});
|
|
7840
|
+
var queueAgentConsumerSchema = z52.object({
|
|
7841
|
+
agent_id: z52.guid(),
|
|
7842
|
+
agent_name: z52.string(),
|
|
7843
|
+
case_trigger_enabled: z52.boolean(),
|
|
7844
|
+
is_handover_target: z52.boolean(),
|
|
7845
|
+
problems: z52.array(caseQueueAgentProblemSchema),
|
|
7792
7846
|
/**
|
|
7793
7847
|
* Max concurrent Jobs this consumer's enabled trigger allows, after the
|
|
7794
7848
|
* platform cap is applied. Populated only by the single-queue agents
|
|
7795
7849
|
* endpoint; omitted when the consumer has no enabled trigger.
|
|
7796
7850
|
*/
|
|
7797
|
-
concurrency_limit:
|
|
7851
|
+
concurrency_limit: z52.int().nonnegative().optional(),
|
|
7798
7852
|
/**
|
|
7799
7853
|
* True when this consumer's active Jobs have reached `concurrency_limit`, so
|
|
7800
7854
|
* the dispatcher pauses and new cases stay pending until a Job finishes.
|
|
7801
7855
|
* Populated only by the single-queue agents endpoint.
|
|
7802
7856
|
*/
|
|
7803
|
-
at_concurrency_limit:
|
|
7804
|
-
});
|
|
7805
|
-
var queueAgentsResponseSchema =
|
|
7806
|
-
queue_name:
|
|
7807
|
-
producers:
|
|
7808
|
-
consumers:
|
|
7809
|
-
});
|
|
7810
|
-
var exportCasesResponseSchema =
|
|
7811
|
-
version:
|
|
7812
|
-
queue_name:
|
|
7813
|
-
exported_at:
|
|
7814
|
-
cases:
|
|
7815
|
-
|
|
7816
|
-
title:
|
|
7817
|
-
data:
|
|
7857
|
+
at_concurrency_limit: z52.boolean().optional()
|
|
7858
|
+
});
|
|
7859
|
+
var queueAgentsResponseSchema = z52.object({
|
|
7860
|
+
queue_name: z52.string(),
|
|
7861
|
+
producers: z52.array(queueAgentProducerSchema),
|
|
7862
|
+
consumers: z52.array(queueAgentConsumerSchema)
|
|
7863
|
+
});
|
|
7864
|
+
var exportCasesResponseSchema = z52.object({
|
|
7865
|
+
version: z52.number(),
|
|
7866
|
+
queue_name: z52.string(),
|
|
7867
|
+
exported_at: z52.string(),
|
|
7868
|
+
cases: z52.array(
|
|
7869
|
+
z52.object({
|
|
7870
|
+
title: z52.string(),
|
|
7871
|
+
data: z52.string().optional()
|
|
7818
7872
|
})
|
|
7819
7873
|
)
|
|
7820
7874
|
});
|
|
7821
|
-
var importCasesResponseSchema =
|
|
7822
|
-
imported_count:
|
|
7875
|
+
var importCasesResponseSchema = z52.object({
|
|
7876
|
+
imported_count: z52.number()
|
|
7823
7877
|
});
|
|
7824
|
-
var batchQueueStatsResponseSchema =
|
|
7825
|
-
stats:
|
|
7878
|
+
var batchQueueStatsResponseSchema = z52.object({
|
|
7879
|
+
stats: z52.record(z52.guid(), casesStatsSchema)
|
|
7826
7880
|
});
|
|
7827
|
-
var batchQueueAgentsResponseSchema =
|
|
7828
|
-
agents:
|
|
7829
|
-
|
|
7830
|
-
|
|
7831
|
-
producers:
|
|
7832
|
-
consumers:
|
|
7881
|
+
var batchQueueAgentsResponseSchema = z52.object({
|
|
7882
|
+
agents: z52.record(
|
|
7883
|
+
z52.guid(),
|
|
7884
|
+
z52.object({
|
|
7885
|
+
producers: z52.array(queueAgentProducerSchema),
|
|
7886
|
+
consumers: z52.array(queueAgentConsumerSchema)
|
|
7833
7887
|
})
|
|
7834
7888
|
)
|
|
7835
7889
|
});
|
|
7836
|
-
var createTeamInviteLinkRequestSchema =
|
|
7837
|
-
frontendUrl:
|
|
7890
|
+
var createTeamInviteLinkRequestSchema = z53.object({
|
|
7891
|
+
frontendUrl: z53.url()
|
|
7838
7892
|
});
|
|
7839
|
-
var getTeamInviteLinkQuerySchema =
|
|
7840
|
-
frontendUrl:
|
|
7893
|
+
var getTeamInviteLinkQuerySchema = z53.object({
|
|
7894
|
+
frontendUrl: z53.url()
|
|
7841
7895
|
});
|
|
7842
|
-
var teamInviteLinkCreatorSchema =
|
|
7843
|
-
id:
|
|
7844
|
-
name:
|
|
7845
|
-
email:
|
|
7896
|
+
var teamInviteLinkCreatorSchema = z53.object({
|
|
7897
|
+
id: z53.guid(),
|
|
7898
|
+
name: z53.string().nullable(),
|
|
7899
|
+
email: z53.email()
|
|
7846
7900
|
});
|
|
7847
|
-
var teamInviteLinkSchema =
|
|
7848
|
-
id:
|
|
7849
|
-
url:
|
|
7850
|
-
createdAt:
|
|
7901
|
+
var teamInviteLinkSchema = z53.object({
|
|
7902
|
+
id: z53.guid(),
|
|
7903
|
+
url: z53.url().optional(),
|
|
7904
|
+
createdAt: z53.string(),
|
|
7851
7905
|
createdBy: teamInviteLinkCreatorSchema
|
|
7852
7906
|
});
|
|
7853
|
-
var getTeamInviteLinkResponseSchema =
|
|
7854
|
-
hasLink:
|
|
7907
|
+
var getTeamInviteLinkResponseSchema = z53.object({
|
|
7908
|
+
hasLink: z53.boolean(),
|
|
7855
7909
|
link: teamInviteLinkSchema.optional()
|
|
7856
7910
|
});
|
|
7857
|
-
var joinLinkInfoResponseSchema =
|
|
7858
|
-
valid:
|
|
7859
|
-
teamName:
|
|
7860
|
-
teamId:
|
|
7861
|
-
reason:
|
|
7911
|
+
var joinLinkInfoResponseSchema = z53.object({
|
|
7912
|
+
valid: z53.boolean(),
|
|
7913
|
+
teamName: z53.string().optional(),
|
|
7914
|
+
teamId: z53.guid().optional(),
|
|
7915
|
+
reason: z53.enum(["invalid", "expired"]).optional()
|
|
7862
7916
|
});
|
|
7863
|
-
var acceptJoinLinkResponseSchema =
|
|
7864
|
-
success:
|
|
7865
|
-
teamId:
|
|
7917
|
+
var acceptJoinLinkResponseSchema = z53.object({
|
|
7918
|
+
success: z53.boolean(),
|
|
7919
|
+
teamId: z53.guid()
|
|
7866
7920
|
});
|
|
7867
|
-
var createClarityProcessInviteLinkRequestSchema =
|
|
7868
|
-
frontendUrl:
|
|
7921
|
+
var createClarityProcessInviteLinkRequestSchema = z54.object({
|
|
7922
|
+
frontendUrl: z54.url()
|
|
7869
7923
|
});
|
|
7870
7924
|
var clarityProcessInviteLinkSchema = teamInviteLinkSchema;
|
|
7871
|
-
var getClarityProcessInviteLinkResponseSchema =
|
|
7872
|
-
hasLink:
|
|
7925
|
+
var getClarityProcessInviteLinkResponseSchema = z54.object({
|
|
7926
|
+
hasLink: z54.boolean(),
|
|
7873
7927
|
link: clarityProcessInviteLinkSchema.optional()
|
|
7874
7928
|
});
|
|
7875
|
-
var clarityJoinLinkInfoResponseSchema =
|
|
7876
|
-
valid:
|
|
7877
|
-
processName:
|
|
7878
|
-
processId:
|
|
7879
|
-
teamId:
|
|
7880
|
-
reason:
|
|
7881
|
-
});
|
|
7882
|
-
var acceptClarityJoinLinkResponseSchema =
|
|
7883
|
-
success:
|
|
7884
|
-
processId:
|
|
7885
|
-
});
|
|
7886
|
-
var credentialPreviewSchema =
|
|
7887
|
-
id:
|
|
7888
|
-
domain:
|
|
7889
|
-
username:
|
|
7890
|
-
hasEnabledTOTP:
|
|
7891
|
-
hasPassword:
|
|
7892
|
-
user_id:
|
|
7893
|
-
});
|
|
7894
|
-
var otpResponseSchema =
|
|
7895
|
-
code:
|
|
7896
|
-
expiresAt:
|
|
7897
|
-
});
|
|
7898
|
-
var encryptedDataSchema =
|
|
7899
|
-
encrypted_data:
|
|
7900
|
-
key_version:
|
|
7901
|
-
});
|
|
7902
|
-
var credentialDetailSchema =
|
|
7903
|
-
domain:
|
|
7904
|
-
username:
|
|
7929
|
+
var clarityJoinLinkInfoResponseSchema = z54.object({
|
|
7930
|
+
valid: z54.boolean(),
|
|
7931
|
+
processName: z54.string().optional(),
|
|
7932
|
+
processId: z54.guid().optional(),
|
|
7933
|
+
teamId: z54.guid().optional(),
|
|
7934
|
+
reason: z54.enum(["invalid", "expired"]).optional()
|
|
7935
|
+
});
|
|
7936
|
+
var acceptClarityJoinLinkResponseSchema = z54.object({
|
|
7937
|
+
success: z54.boolean(),
|
|
7938
|
+
processId: z54.guid()
|
|
7939
|
+
});
|
|
7940
|
+
var credentialPreviewSchema = z55.object({
|
|
7941
|
+
id: z55.guid().describe("Credential ID"),
|
|
7942
|
+
domain: z55.string().describe("Domain for the credential"),
|
|
7943
|
+
username: z55.string().nullable().describe("Username (if any)"),
|
|
7944
|
+
hasEnabledTOTP: z55.boolean().describe("Whether TOTP is enabled"),
|
|
7945
|
+
hasPassword: z55.boolean().describe("Whether a password is stored"),
|
|
7946
|
+
user_id: z55.string().nullable().describe("Owner user id; null when shared with the team")
|
|
7947
|
+
});
|
|
7948
|
+
var otpResponseSchema = z55.object({
|
|
7949
|
+
code: z55.string().describe("The TOTP code"),
|
|
7950
|
+
expiresAt: z55.number().describe("Expiration timestamp in milliseconds")
|
|
7951
|
+
});
|
|
7952
|
+
var encryptedDataSchema = z55.object({
|
|
7953
|
+
encrypted_data: z55.string().describe("Base64-encoded encrypted data"),
|
|
7954
|
+
key_version: z55.string().describe("KMS key version or 'base64' for dev")
|
|
7955
|
+
});
|
|
7956
|
+
var credentialDetailSchema = z55.object({
|
|
7957
|
+
domain: z55.string().describe("Domain for the credential"),
|
|
7958
|
+
username: z55.string().nullable().describe("Username (if any)"),
|
|
7905
7959
|
password: encryptedDataSchema.nullable().describe("Encrypted password data")
|
|
7906
7960
|
});
|
|
7907
7961
|
var FEATURE_FLAG_CATALOGUE = {
|
|
@@ -7915,6 +7969,16 @@ var FEATURE_FLAG_CATALOGUE = {
|
|
|
7915
7969
|
defaultValue: false,
|
|
7916
7970
|
description: "Enables the Duvo help chat dock (bottom-right floating composer + history popover) and its backend routes. When disabled, the dock is hidden and /v1/agent-chats endpoints return 404; cc-server ingestion callback is unaffected."
|
|
7917
7971
|
},
|
|
7972
|
+
AGENT_CHAT_SKIP_MCP_PREFLIGHT: {
|
|
7973
|
+
key: "agent_chat_skip_mcp_preflight",
|
|
7974
|
+
defaultValue: false,
|
|
7975
|
+
description: "Ask Duvo max-speed tier. When on, resumed chat turns skip the MCP preflight reachability check (the eager startup() warmup is already skipped on resumed turns). Lowest first-token latency, but a dead/unreachable connection is no longer caught up front \u2014 it surfaces later during tool use instead of the clean 'Couldn't connect to \u2026' error. Per-team opt-in; off by default."
|
|
7976
|
+
},
|
|
7977
|
+
AGENT_CHAT_VERBOSE: {
|
|
7978
|
+
key: "agent_chat_verbose",
|
|
7979
|
+
defaultValue: false,
|
|
7980
|
+
description: "Frontend-only. When on, the Ask Duvo chat transcript shows completed and failed tool calls as inline cards (mirroring Pulse) instead of only the generic Working\u2026/Reading\u2026 activity line. The running tool still surfaces as the activity-line verb. No backend behavior changes."
|
|
7981
|
+
},
|
|
7918
7982
|
ASSIGNMENT_EVALS: {
|
|
7919
7983
|
key: "assignment_evals",
|
|
7920
7984
|
defaultValue: false,
|
|
@@ -8010,6 +8074,11 @@ var FEATURE_FLAG_CATALOGUE = {
|
|
|
8010
8074
|
defaultValue: false,
|
|
8011
8075
|
description: "Enables dynamic island-style UI in the agent builder for contextual actions and status."
|
|
8012
8076
|
},
|
|
8077
|
+
ERP_DIAGNOSIS: {
|
|
8078
|
+
key: "erp_diagnosis",
|
|
8079
|
+
defaultValue: false,
|
|
8080
|
+
description: "Enables the ERP Diagnosis surface for SAP readiness diagnosis, including SAP connection cards and downloadable diagnosis reports. Off-by-default for staged rollout."
|
|
8081
|
+
},
|
|
8013
8082
|
COMPUTER_USE: {
|
|
8014
8083
|
key: "computer_use",
|
|
8015
8084
|
defaultValue: false,
|
|
@@ -8103,160 +8172,160 @@ function coerceFlagValue(value) {
|
|
|
8103
8172
|
}
|
|
8104
8173
|
__name(coerceFlagValue, "coerceFlagValue");
|
|
8105
8174
|
__name2(coerceFlagValue, "coerceFlagValue");
|
|
8106
|
-
var teamFileItemSchema =
|
|
8107
|
-
id:
|
|
8108
|
-
name:
|
|
8109
|
-
path:
|
|
8110
|
-
created_at:
|
|
8111
|
-
updated_at:
|
|
8112
|
-
metadata:
|
|
8113
|
-
mimetype:
|
|
8114
|
-
size:
|
|
8175
|
+
var teamFileItemSchema = z56.object({
|
|
8176
|
+
id: z56.string(),
|
|
8177
|
+
name: z56.string(),
|
|
8178
|
+
path: z56.string(),
|
|
8179
|
+
created_at: z56.string().optional(),
|
|
8180
|
+
updated_at: z56.string().optional(),
|
|
8181
|
+
metadata: z56.object({
|
|
8182
|
+
mimetype: z56.string().optional(),
|
|
8183
|
+
size: z56.number().optional()
|
|
8115
8184
|
}).nullable().optional()
|
|
8116
8185
|
});
|
|
8117
|
-
var listTeamFilesResponseSchema =
|
|
8118
|
-
files:
|
|
8119
|
-
});
|
|
8120
|
-
var createTeamFileUploadUrlBodySchema =
|
|
8121
|
-
fileName:
|
|
8122
|
-
contentType:
|
|
8123
|
-
});
|
|
8124
|
-
var createTeamFileUploadUrlResponseSchema =
|
|
8125
|
-
signedUrl:
|
|
8126
|
-
expiresAt:
|
|
8127
|
-
filePath:
|
|
8128
|
-
});
|
|
8129
|
-
var renameTeamFileBodySchema =
|
|
8130
|
-
relativePath:
|
|
8131
|
-
newFilenameOnly:
|
|
8132
|
-
});
|
|
8133
|
-
var teamFileSuccessResponseSchema =
|
|
8134
|
-
success:
|
|
8135
|
-
});
|
|
8136
|
-
var teamFileDownloadUrlResponseSchema =
|
|
8137
|
-
url:
|
|
8138
|
-
expiresAt:
|
|
8139
|
-
});
|
|
8140
|
-
var teamFileContentResponseSchema =
|
|
8141
|
-
content:
|
|
8142
|
-
path:
|
|
8143
|
-
contentType:
|
|
8144
|
-
});
|
|
8145
|
-
var updateTeamFileContentBodySchema =
|
|
8146
|
-
content:
|
|
8147
|
-
});
|
|
8148
|
-
var globalAdminApiSchema =
|
|
8149
|
-
id:
|
|
8150
|
-
email:
|
|
8151
|
-
userId:
|
|
8152
|
-
userName:
|
|
8153
|
-
addedByUserId:
|
|
8154
|
-
createdAt:
|
|
8155
|
-
});
|
|
8156
|
-
var globalAdminListResponseSchema =
|
|
8157
|
-
admins:
|
|
8158
|
-
});
|
|
8159
|
-
var globalAdminSearchResponseSchema =
|
|
8160
|
-
users:
|
|
8161
|
-
|
|
8162
|
-
id:
|
|
8163
|
-
name:
|
|
8164
|
-
email:
|
|
8165
|
-
createdAt:
|
|
8186
|
+
var listTeamFilesResponseSchema = z56.object({
|
|
8187
|
+
files: z56.array(teamFileItemSchema)
|
|
8188
|
+
});
|
|
8189
|
+
var createTeamFileUploadUrlBodySchema = z56.object({
|
|
8190
|
+
fileName: z56.string().min(1),
|
|
8191
|
+
contentType: z56.string().min(1)
|
|
8192
|
+
});
|
|
8193
|
+
var createTeamFileUploadUrlResponseSchema = z56.object({
|
|
8194
|
+
signedUrl: z56.url(),
|
|
8195
|
+
expiresAt: z56.iso.datetime(),
|
|
8196
|
+
filePath: z56.string()
|
|
8197
|
+
});
|
|
8198
|
+
var renameTeamFileBodySchema = z56.object({
|
|
8199
|
+
relativePath: z56.string().min(1),
|
|
8200
|
+
newFilenameOnly: z56.string().min(1)
|
|
8201
|
+
});
|
|
8202
|
+
var teamFileSuccessResponseSchema = z56.object({
|
|
8203
|
+
success: z56.boolean()
|
|
8204
|
+
});
|
|
8205
|
+
var teamFileDownloadUrlResponseSchema = z56.object({
|
|
8206
|
+
url: z56.url(),
|
|
8207
|
+
expiresAt: z56.iso.datetime()
|
|
8208
|
+
});
|
|
8209
|
+
var teamFileContentResponseSchema = z56.object({
|
|
8210
|
+
content: z56.string(),
|
|
8211
|
+
path: z56.string(),
|
|
8212
|
+
contentType: z56.string().optional()
|
|
8213
|
+
});
|
|
8214
|
+
var updateTeamFileContentBodySchema = z56.object({
|
|
8215
|
+
content: z56.string()
|
|
8216
|
+
});
|
|
8217
|
+
var globalAdminApiSchema = z57.object({
|
|
8218
|
+
id: z57.guid(),
|
|
8219
|
+
email: z57.string(),
|
|
8220
|
+
userId: z57.guid(),
|
|
8221
|
+
userName: z57.string().nullable(),
|
|
8222
|
+
addedByUserId: z57.guid().nullable(),
|
|
8223
|
+
createdAt: z57.string()
|
|
8224
|
+
});
|
|
8225
|
+
var globalAdminListResponseSchema = z57.object({
|
|
8226
|
+
admins: z57.array(globalAdminApiSchema)
|
|
8227
|
+
});
|
|
8228
|
+
var globalAdminSearchResponseSchema = z57.object({
|
|
8229
|
+
users: z57.array(
|
|
8230
|
+
z57.object({
|
|
8231
|
+
id: z57.guid(),
|
|
8232
|
+
name: z57.string().nullable(),
|
|
8233
|
+
email: z57.string(),
|
|
8234
|
+
createdAt: z57.string().nullable()
|
|
8166
8235
|
})
|
|
8167
8236
|
)
|
|
8168
8237
|
});
|
|
8169
|
-
var globalAdminCreateRequestSchema =
|
|
8170
|
-
userId:
|
|
8238
|
+
var globalAdminCreateRequestSchema = z57.object({
|
|
8239
|
+
userId: z57.guid()
|
|
8171
8240
|
});
|
|
8172
|
-
var globalAdminCreateResponseSchema =
|
|
8241
|
+
var globalAdminCreateResponseSchema = z57.object({
|
|
8173
8242
|
admin: globalAdminApiSchema
|
|
8174
8243
|
});
|
|
8175
|
-
var globalAdminDeleteResponseSchema =
|
|
8176
|
-
success:
|
|
8244
|
+
var globalAdminDeleteResponseSchema = z57.object({
|
|
8245
|
+
success: z57.literal(true)
|
|
8177
8246
|
});
|
|
8178
|
-
var adminAccessCheckResponseSchema =
|
|
8179
|
-
isGlobalAdmin:
|
|
8247
|
+
var adminAccessCheckResponseSchema = z57.object({
|
|
8248
|
+
isGlobalAdmin: z57.boolean()
|
|
8180
8249
|
});
|
|
8181
8250
|
var JOB_LIST_SORT_COLUMNS = ["created_at"];
|
|
8182
|
-
var jobListSortColumnSchema =
|
|
8183
|
-
var jobListIssueSeveritySchema =
|
|
8251
|
+
var jobListSortColumnSchema = z58.enum(JOB_LIST_SORT_COLUMNS);
|
|
8252
|
+
var jobListIssueSeveritySchema = z58.enum(
|
|
8184
8253
|
ALL_EVALUATION_RUBRIC_SEVERITIES
|
|
8185
8254
|
);
|
|
8186
|
-
var jobListItemSchema =
|
|
8187
|
-
id:
|
|
8188
|
-
created_at:
|
|
8189
|
-
updated_at:
|
|
8190
|
-
started_at:
|
|
8191
|
-
completed_at:
|
|
8255
|
+
var jobListItemSchema = z58.object({
|
|
8256
|
+
id: z58.guid(),
|
|
8257
|
+
created_at: z58.coerce.date(),
|
|
8258
|
+
updated_at: z58.coerce.date(),
|
|
8259
|
+
started_at: z58.coerce.date().nullable(),
|
|
8260
|
+
completed_at: z58.coerce.date().nullable(),
|
|
8192
8261
|
status: agentRunStatusSchema,
|
|
8193
|
-
source:
|
|
8194
|
-
title:
|
|
8195
|
-
run_number:
|
|
8262
|
+
source: z58.string().nullable(),
|
|
8263
|
+
title: z58.string(),
|
|
8264
|
+
run_number: z58.number(),
|
|
8196
8265
|
// Agent info
|
|
8197
|
-
agent_id:
|
|
8198
|
-
agent_name:
|
|
8199
|
-
build_id:
|
|
8266
|
+
agent_id: z58.guid(),
|
|
8267
|
+
agent_name: z58.string(),
|
|
8268
|
+
build_id: z58.guid(),
|
|
8200
8269
|
// User info
|
|
8201
|
-
user_id:
|
|
8270
|
+
user_id: z58.guid().nullable(),
|
|
8202
8271
|
// Case info
|
|
8203
|
-
case_queue_item_id:
|
|
8204
|
-
case_queue_id:
|
|
8205
|
-
case_queue_name:
|
|
8206
|
-
case_title:
|
|
8207
|
-
postponed_to:
|
|
8208
|
-
submitted_prompt_count:
|
|
8272
|
+
case_queue_item_id: z58.guid().nullable(),
|
|
8273
|
+
case_queue_id: z58.guid().nullable(),
|
|
8274
|
+
case_queue_name: z58.string().nullable(),
|
|
8275
|
+
case_title: z58.string().nullable(),
|
|
8276
|
+
postponed_to: z58.coerce.date().nullable(),
|
|
8277
|
+
submitted_prompt_count: z58.number().int().min(0),
|
|
8209
8278
|
eval_summaries: evalSummarySchema.nullable().optional()
|
|
8210
8279
|
});
|
|
8211
|
-
var jobListResponseSchema =
|
|
8212
|
-
data:
|
|
8213
|
-
total:
|
|
8280
|
+
var jobListResponseSchema = z58.object({
|
|
8281
|
+
data: z58.array(jobListItemSchema),
|
|
8282
|
+
total: z58.number()
|
|
8214
8283
|
});
|
|
8215
|
-
var jobFilterOptionsSchema =
|
|
8216
|
-
agents:
|
|
8217
|
-
|
|
8218
|
-
id:
|
|
8219
|
-
name:
|
|
8220
|
-
folder_id:
|
|
8284
|
+
var jobFilterOptionsSchema = z58.object({
|
|
8285
|
+
agents: z58.array(
|
|
8286
|
+
z58.object({
|
|
8287
|
+
id: z58.string(),
|
|
8288
|
+
name: z58.string(),
|
|
8289
|
+
folder_id: z58.string().nullable()
|
|
8221
8290
|
})
|
|
8222
8291
|
),
|
|
8223
|
-
folders:
|
|
8224
|
-
|
|
8225
|
-
id:
|
|
8226
|
-
name:
|
|
8227
|
-
parent_folder_id:
|
|
8292
|
+
folders: z58.array(
|
|
8293
|
+
z58.object({
|
|
8294
|
+
id: z58.string(),
|
|
8295
|
+
name: z58.string(),
|
|
8296
|
+
parent_folder_id: z58.string().nullable()
|
|
8228
8297
|
})
|
|
8229
8298
|
),
|
|
8230
|
-
users:
|
|
8231
|
-
|
|
8232
|
-
id:
|
|
8233
|
-
name:
|
|
8234
|
-
email:
|
|
8299
|
+
users: z58.array(
|
|
8300
|
+
z58.object({
|
|
8301
|
+
id: z58.string(),
|
|
8302
|
+
name: z58.string().nullable(),
|
|
8303
|
+
email: z58.string()
|
|
8235
8304
|
})
|
|
8236
8305
|
),
|
|
8237
|
-
caseQueues:
|
|
8238
|
-
});
|
|
8239
|
-
var mcpStepSchema =
|
|
8240
|
-
tool:
|
|
8241
|
-
params:
|
|
8242
|
-
fallbackSelectors:
|
|
8243
|
-
description:
|
|
8244
|
-
screenshot:
|
|
8245
|
-
snapshot:
|
|
8246
|
-
framePath:
|
|
8306
|
+
caseQueues: z58.array(z58.object({ id: z58.string(), name: z58.string() }))
|
|
8307
|
+
});
|
|
8308
|
+
var mcpStepSchema = z59.object({
|
|
8309
|
+
tool: z59.string().describe("MCP tool name (e.g., click, fill, navigate_page)"),
|
|
8310
|
+
params: z59.record(z59.string(), z59.unknown()).describe("Tool-specific parameters"),
|
|
8311
|
+
fallbackSelectors: z59.array(z59.string()).optional().describe("Alternative CSS selectors if primary fails"),
|
|
8312
|
+
description: z59.string().optional().describe("Human-readable step description"),
|
|
8313
|
+
screenshot: z59.string().optional().describe("Base64 screenshot at this step for visual context"),
|
|
8314
|
+
snapshot: z59.string().optional().describe("DOM snapshot in accessibility tree format at this step"),
|
|
8315
|
+
framePath: z59.array(z59.number()).optional().describe(
|
|
8247
8316
|
"Index-based path to the target iframe (e.g., [0] for first child iframe, [1, 0] for nested)"
|
|
8248
8317
|
)
|
|
8249
8318
|
});
|
|
8250
|
-
var mcpWorkflowSchema =
|
|
8251
|
-
name:
|
|
8252
|
-
startUrl:
|
|
8253
|
-
viewport:
|
|
8254
|
-
width:
|
|
8255
|
-
height:
|
|
8319
|
+
var mcpWorkflowSchema = z59.object({
|
|
8320
|
+
name: z59.string(),
|
|
8321
|
+
startUrl: z59.string(),
|
|
8322
|
+
viewport: z59.object({
|
|
8323
|
+
width: z59.number(),
|
|
8324
|
+
height: z59.number()
|
|
8256
8325
|
}),
|
|
8257
|
-
steps:
|
|
8326
|
+
steps: z59.array(mcpStepSchema)
|
|
8258
8327
|
});
|
|
8259
|
-
var MCP_WORKFLOW_JSON_SCHEMA =
|
|
8328
|
+
var MCP_WORKFLOW_JSON_SCHEMA = z59.toJSONSchema(mcpWorkflowSchema, {
|
|
8260
8329
|
reused: "inline"
|
|
8261
8330
|
});
|
|
8262
8331
|
var MCP_WORKFLOW_SCHEMA_DOCS = JSON.stringify(
|
|
@@ -8265,52 +8334,52 @@ var MCP_WORKFLOW_SCHEMA_DOCS = JSON.stringify(
|
|
|
8265
8334
|
2
|
|
8266
8335
|
);
|
|
8267
8336
|
var ORG_BROWSER_CONFIG_VERSION = 1;
|
|
8268
|
-
var organizationBrowserConfigDataSchema =
|
|
8337
|
+
var organizationBrowserConfigDataSchema = z60.object({
|
|
8269
8338
|
browserProvider: BrowserProviderTypeSchema.nullable(),
|
|
8270
8339
|
dataResidency: DataResidencySchema.nullable(),
|
|
8271
8340
|
dataHandling: DataHandlingSchema.nullable(),
|
|
8272
|
-
enforced:
|
|
8341
|
+
enforced: z60.boolean()
|
|
8273
8342
|
});
|
|
8274
|
-
var organizationBrowserConfigSchema =
|
|
8275
|
-
version:
|
|
8343
|
+
var organizationBrowserConfigSchema = z60.object({
|
|
8344
|
+
version: z60.literal(ORG_BROWSER_CONFIG_VERSION),
|
|
8276
8345
|
data: organizationBrowserConfigDataSchema
|
|
8277
8346
|
});
|
|
8278
|
-
var organizationBrowserSettingsSchema =
|
|
8279
|
-
organizationId:
|
|
8347
|
+
var organizationBrowserSettingsSchema = z60.object({
|
|
8348
|
+
organizationId: z60.guid(),
|
|
8280
8349
|
browserProvider: BrowserProviderTypeSchema.nullable(),
|
|
8281
8350
|
dataResidency: DataResidencySchema.nullable(),
|
|
8282
8351
|
dataHandling: DataHandlingSchema.nullable(),
|
|
8283
|
-
enforced:
|
|
8284
|
-
createdAt:
|
|
8285
|
-
updatedAt:
|
|
8352
|
+
enforced: z60.boolean(),
|
|
8353
|
+
createdAt: z60.string(),
|
|
8354
|
+
updatedAt: z60.string()
|
|
8286
8355
|
});
|
|
8287
|
-
var getOrganizationBrowserSettingsResponseSchema =
|
|
8356
|
+
var getOrganizationBrowserSettingsResponseSchema = z60.object({
|
|
8288
8357
|
settings: organizationBrowserSettingsSchema.nullable()
|
|
8289
8358
|
});
|
|
8290
|
-
var updateOrganizationBrowserSettingsRequestSchema =
|
|
8359
|
+
var updateOrganizationBrowserSettingsRequestSchema = z60.object({
|
|
8291
8360
|
browserProvider: BrowserProviderTypeSchema.nullable().optional(),
|
|
8292
8361
|
dataResidency: DataResidencySchema.nullable().optional(),
|
|
8293
8362
|
dataHandling: DataHandlingSchema.nullable().optional(),
|
|
8294
|
-
enforced:
|
|
8363
|
+
enforced: z60.boolean().optional()
|
|
8295
8364
|
});
|
|
8296
|
-
var updateOrganizationBrowserSettingsResponseSchema =
|
|
8365
|
+
var updateOrganizationBrowserSettingsResponseSchema = z60.object({
|
|
8297
8366
|
settings: organizationBrowserSettingsSchema
|
|
8298
8367
|
});
|
|
8299
|
-
var catalogPluginSchema =
|
|
8300
|
-
name:
|
|
8368
|
+
var catalogPluginSchema = z61.object({
|
|
8369
|
+
name: z61.string().describe("Identifier to pass in the build's plugins array."),
|
|
8301
8370
|
type: extensibleEnum(["duvo-platform", "knowledge-work", "github"], {
|
|
8302
8371
|
description: "Plugin source. 'duvo-platform' plugins are pre-baked into the Duvo runtime; 'knowledge-work' plugins are role-oriented bundles (engineering, sales, legal, \u2026) also baked into the runtime; 'github' plugins are downloaded from a user-supplied repository URL at run time."
|
|
8303
8372
|
}),
|
|
8304
|
-
description:
|
|
8373
|
+
description: z61.string()
|
|
8305
8374
|
});
|
|
8306
|
-
var pluginCatalogResponseSchema =
|
|
8307
|
-
plugins:
|
|
8375
|
+
var pluginCatalogResponseSchema = z61.object({
|
|
8376
|
+
plugins: z61.array(catalogPluginSchema)
|
|
8308
8377
|
});
|
|
8309
|
-
var limitValueSchema =
|
|
8310
|
-
|
|
8311
|
-
|
|
8378
|
+
var limitValueSchema = z62.union([
|
|
8379
|
+
z62.number().int().nonnegative(),
|
|
8380
|
+
z62.literal("unlimited")
|
|
8312
8381
|
]);
|
|
8313
|
-
var runCountingModeSchema =
|
|
8382
|
+
var runCountingModeSchema = z62.enum(["monthly", "lifetime"]);
|
|
8314
8383
|
function addDuplicateKeyIssues({
|
|
8315
8384
|
ctx,
|
|
8316
8385
|
items,
|
|
@@ -8322,7 +8391,7 @@ function addDuplicateKeyIssues({
|
|
|
8322
8391
|
const key = keyFor(item);
|
|
8323
8392
|
if (seen.has(key)) {
|
|
8324
8393
|
ctx.addIssue({
|
|
8325
|
-
code:
|
|
8394
|
+
code: z62.ZodIssueCode.custom,
|
|
8326
8395
|
message: `Duplicate Product Access grant key: ${key}`,
|
|
8327
8396
|
path: [...path, index]
|
|
8328
8397
|
});
|
|
@@ -8333,34 +8402,34 @@ function addDuplicateKeyIssues({
|
|
|
8333
8402
|
}
|
|
8334
8403
|
__name(addDuplicateKeyIssues, "addDuplicateKeyIssues");
|
|
8335
8404
|
__name2(addDuplicateKeyIssues, "addDuplicateKeyIssues");
|
|
8336
|
-
var productAccessOwnerSchema =
|
|
8337
|
-
|
|
8338
|
-
type:
|
|
8339
|
-
organizationId:
|
|
8405
|
+
var productAccessOwnerSchema = z62.discriminatedUnion("type", [
|
|
8406
|
+
z62.object({
|
|
8407
|
+
type: z62.literal("organization"),
|
|
8408
|
+
organizationId: z62.guid()
|
|
8340
8409
|
}),
|
|
8341
|
-
|
|
8342
|
-
type:
|
|
8343
|
-
teamId:
|
|
8344
|
-
organizationId:
|
|
8410
|
+
z62.object({
|
|
8411
|
+
type: z62.literal("team"),
|
|
8412
|
+
teamId: z62.guid(),
|
|
8413
|
+
organizationId: z62.guid().nullable()
|
|
8345
8414
|
})
|
|
8346
8415
|
]);
|
|
8347
|
-
var productAccessGrantSetSchema =
|
|
8348
|
-
products:
|
|
8349
|
-
|
|
8350
|
-
productKey:
|
|
8351
|
-
enabled:
|
|
8416
|
+
var productAccessGrantSetSchema = z62.object({
|
|
8417
|
+
products: z62.array(
|
|
8418
|
+
z62.object({
|
|
8419
|
+
productKey: z62.enum(PRODUCT_KEYS),
|
|
8420
|
+
enabled: z62.boolean()
|
|
8352
8421
|
})
|
|
8353
8422
|
),
|
|
8354
|
-
capabilities:
|
|
8355
|
-
|
|
8356
|
-
capabilityKey:
|
|
8357
|
-
enabled:
|
|
8423
|
+
capabilities: z62.array(
|
|
8424
|
+
z62.object({
|
|
8425
|
+
capabilityKey: z62.enum(PRODUCT_ACCESS_CAPABILITY_KEYS),
|
|
8426
|
+
enabled: z62.boolean()
|
|
8358
8427
|
})
|
|
8359
8428
|
),
|
|
8360
|
-
limits:
|
|
8361
|
-
|
|
8362
|
-
productKey:
|
|
8363
|
-
limitKey:
|
|
8429
|
+
limits: z62.array(
|
|
8430
|
+
z62.object({
|
|
8431
|
+
productKey: z62.enum(PRODUCT_KEYS),
|
|
8432
|
+
limitKey: z62.enum(ENTITLEMENT_LIMIT_KEYS),
|
|
8364
8433
|
limitValue: limitValueSchema,
|
|
8365
8434
|
countingMode: runCountingModeSchema.nullable()
|
|
8366
8435
|
})
|
|
@@ -8385,51 +8454,51 @@ var productAccessGrantSetSchema = z61.object({
|
|
|
8385
8454
|
path: ["limits"]
|
|
8386
8455
|
});
|
|
8387
8456
|
});
|
|
8388
|
-
var productAccessSnapshotSchema =
|
|
8389
|
-
products:
|
|
8390
|
-
|
|
8391
|
-
productKey:
|
|
8392
|
-
enabled:
|
|
8457
|
+
var productAccessSnapshotSchema = z62.object({
|
|
8458
|
+
products: z62.array(
|
|
8459
|
+
z62.object({
|
|
8460
|
+
productKey: z62.enum(PRODUCT_KEYS),
|
|
8461
|
+
enabled: z62.boolean()
|
|
8393
8462
|
})
|
|
8394
8463
|
),
|
|
8395
|
-
capabilities:
|
|
8396
|
-
|
|
8397
|
-
capabilityKey:
|
|
8398
|
-
productKey:
|
|
8399
|
-
enabled:
|
|
8464
|
+
capabilities: z62.array(
|
|
8465
|
+
z62.object({
|
|
8466
|
+
capabilityKey: z62.enum(PRODUCT_ACCESS_CAPABILITY_KEYS),
|
|
8467
|
+
productKey: z62.enum(PRODUCT_KEYS),
|
|
8468
|
+
enabled: z62.boolean()
|
|
8400
8469
|
})
|
|
8401
8470
|
),
|
|
8402
|
-
limits:
|
|
8403
|
-
|
|
8404
|
-
limitKey:
|
|
8405
|
-
productKey:
|
|
8471
|
+
limits: z62.array(
|
|
8472
|
+
z62.object({
|
|
8473
|
+
limitKey: z62.enum(ENTITLEMENT_LIMIT_KEYS),
|
|
8474
|
+
productKey: z62.enum(PRODUCT_KEYS),
|
|
8406
8475
|
limitValue: limitValueSchema,
|
|
8407
8476
|
countingMode: runCountingModeSchema.nullable(),
|
|
8408
|
-
label:
|
|
8477
|
+
label: z62.literal("per_team")
|
|
8409
8478
|
})
|
|
8410
8479
|
)
|
|
8411
8480
|
});
|
|
8412
|
-
var billingPlanSchema =
|
|
8413
|
-
planVersionId:
|
|
8414
|
-
planName:
|
|
8415
|
-
basePlan:
|
|
8481
|
+
var billingPlanSchema = z62.object({
|
|
8482
|
+
planVersionId: z62.string(),
|
|
8483
|
+
planName: z62.string(),
|
|
8484
|
+
basePlan: z62.enum(["free", "pro", "enterprise"])
|
|
8416
8485
|
});
|
|
8417
|
-
var inheritedFromSchema =
|
|
8418
|
-
|
|
8419
|
-
type:
|
|
8420
|
-
organizationId:
|
|
8486
|
+
var inheritedFromSchema = z62.discriminatedUnion("type", [
|
|
8487
|
+
z62.object({
|
|
8488
|
+
type: z62.literal("organization"),
|
|
8489
|
+
organizationId: z62.guid()
|
|
8421
8490
|
}),
|
|
8422
|
-
|
|
8423
|
-
type:
|
|
8424
|
-
planVersionId:
|
|
8491
|
+
z62.object({
|
|
8492
|
+
type: z62.literal("team_subscription"),
|
|
8493
|
+
planVersionId: z62.string()
|
|
8425
8494
|
})
|
|
8426
8495
|
]);
|
|
8427
|
-
var productAccessReadResponseSchema =
|
|
8496
|
+
var productAccessReadResponseSchema = z62.object({
|
|
8428
8497
|
owner: productAccessOwnerSchema,
|
|
8429
|
-
source:
|
|
8430
|
-
accessRevision:
|
|
8498
|
+
source: z62.enum(PLAN_ENTITLEMENTS_SOURCE_VALUES),
|
|
8499
|
+
accessRevision: z62.string().min(1),
|
|
8431
8500
|
displayPreset: displayPresetSchema,
|
|
8432
|
-
hasExplicitTeamAccess:
|
|
8501
|
+
hasExplicitTeamAccess: z62.boolean(),
|
|
8433
8502
|
inheritedFrom: inheritedFromSchema.nullable(),
|
|
8434
8503
|
billingPlan: billingPlanSchema.nullable(),
|
|
8435
8504
|
grants: productAccessSnapshotSchema,
|
|
@@ -8437,67 +8506,67 @@ var productAccessReadResponseSchema = z61.object({
|
|
|
8437
8506
|
}).superRefine((value, ctx) => {
|
|
8438
8507
|
if (value.owner.type === "team" && value.source === "organization" && value.inheritedFrom?.type !== "organization") {
|
|
8439
8508
|
ctx.addIssue({
|
|
8440
|
-
code:
|
|
8509
|
+
code: z62.ZodIssueCode.custom,
|
|
8441
8510
|
message: "inheritedFrom organization context is required when team source is organization",
|
|
8442
8511
|
path: ["inheritedFrom"]
|
|
8443
8512
|
});
|
|
8444
8513
|
}
|
|
8445
8514
|
if (value.owner.type === "team" && value.source === "team_subscription" && value.inheritedFrom?.type !== "team_subscription") {
|
|
8446
8515
|
ctx.addIssue({
|
|
8447
|
-
code:
|
|
8516
|
+
code: z62.ZodIssueCode.custom,
|
|
8448
8517
|
message: "inheritedFrom subscription context is required when team source is team_subscription",
|
|
8449
8518
|
path: ["inheritedFrom"]
|
|
8450
8519
|
});
|
|
8451
8520
|
}
|
|
8452
8521
|
if (value.owner.type === "team" && value.source === "team" && value.inheritedFrom !== null) {
|
|
8453
8522
|
ctx.addIssue({
|
|
8454
|
-
code:
|
|
8523
|
+
code: z62.ZodIssueCode.custom,
|
|
8455
8524
|
message: "inheritedFrom must be null for direct team Product Access",
|
|
8456
8525
|
path: ["inheritedFrom"]
|
|
8457
8526
|
});
|
|
8458
8527
|
}
|
|
8459
8528
|
if (value.owner.type === "organization" && value.billingPlan !== null) {
|
|
8460
8529
|
ctx.addIssue({
|
|
8461
|
-
code:
|
|
8530
|
+
code: z62.ZodIssueCode.custom,
|
|
8462
8531
|
message: "billingPlan must be null for organization Product Access",
|
|
8463
8532
|
path: ["billingPlan"]
|
|
8464
8533
|
});
|
|
8465
8534
|
}
|
|
8466
8535
|
if (value.owner.type === "organization" && value.source !== "organization") {
|
|
8467
8536
|
ctx.addIssue({
|
|
8468
|
-
code:
|
|
8537
|
+
code: z62.ZodIssueCode.custom,
|
|
8469
8538
|
message: "organization Product Access source must be organization",
|
|
8470
8539
|
path: ["source"]
|
|
8471
8540
|
});
|
|
8472
8541
|
}
|
|
8473
8542
|
if (value.owner.type === "organization" && value.inheritedFrom !== null) {
|
|
8474
8543
|
ctx.addIssue({
|
|
8475
|
-
code:
|
|
8544
|
+
code: z62.ZodIssueCode.custom,
|
|
8476
8545
|
message: "inheritedFrom must be null for organization Product Access",
|
|
8477
8546
|
path: ["inheritedFrom"]
|
|
8478
8547
|
});
|
|
8479
8548
|
}
|
|
8480
8549
|
});
|
|
8481
|
-
var productAccessImpactRequestSchema =
|
|
8550
|
+
var productAccessImpactRequestSchema = z62.object({
|
|
8482
8551
|
proposedGrants: productAccessGrantSetSchema
|
|
8483
8552
|
});
|
|
8484
|
-
var productAccessWriteRequestSchema =
|
|
8553
|
+
var productAccessWriteRequestSchema = z62.object({
|
|
8485
8554
|
proposedGrants: productAccessGrantSetSchema,
|
|
8486
|
-
accessRevision:
|
|
8487
|
-
impactFingerprint:
|
|
8488
|
-
});
|
|
8489
|
-
var productAccessTeamResetRequestSchema =
|
|
8490
|
-
accessRevision:
|
|
8491
|
-
impactFingerprint:
|
|
8492
|
-
});
|
|
8493
|
-
var productAccessChangeSummarySchema =
|
|
8494
|
-
addedProducts:
|
|
8495
|
-
removedProducts:
|
|
8496
|
-
addedCapabilities:
|
|
8497
|
-
removedCapabilities:
|
|
8498
|
-
limitChanges:
|
|
8499
|
-
|
|
8500
|
-
limitKey:
|
|
8555
|
+
accessRevision: z62.string().min(1),
|
|
8556
|
+
impactFingerprint: z62.string().min(1).optional()
|
|
8557
|
+
});
|
|
8558
|
+
var productAccessTeamResetRequestSchema = z62.object({
|
|
8559
|
+
accessRevision: z62.string().min(1),
|
|
8560
|
+
impactFingerprint: z62.string().min(1).optional()
|
|
8561
|
+
});
|
|
8562
|
+
var productAccessChangeSummarySchema = z62.object({
|
|
8563
|
+
addedProducts: z62.array(z62.enum(PRODUCT_KEYS)),
|
|
8564
|
+
removedProducts: z62.array(z62.enum(PRODUCT_KEYS)),
|
|
8565
|
+
addedCapabilities: z62.array(z62.enum(PRODUCT_ACCESS_CAPABILITY_KEYS)),
|
|
8566
|
+
removedCapabilities: z62.array(z62.enum(PRODUCT_ACCESS_CAPABILITY_KEYS)),
|
|
8567
|
+
limitChanges: z62.array(
|
|
8568
|
+
z62.object({
|
|
8569
|
+
limitKey: z62.enum(ENTITLEMENT_LIMIT_KEYS),
|
|
8501
8570
|
currentValue: limitValueSchema,
|
|
8502
8571
|
currentCountingMode: runCountingModeSchema.nullable(),
|
|
8503
8572
|
proposedValue: limitValueSchema,
|
|
@@ -8505,61 +8574,61 @@ var productAccessChangeSummarySchema = z61.object({
|
|
|
8505
8574
|
})
|
|
8506
8575
|
)
|
|
8507
8576
|
});
|
|
8508
|
-
var productAccessImpactResponseSchema =
|
|
8577
|
+
var productAccessImpactResponseSchema = z62.object({
|
|
8509
8578
|
owner: productAccessOwnerSchema,
|
|
8510
|
-
impactFingerprint:
|
|
8511
|
-
affectedTeamCount:
|
|
8512
|
-
affectedTeamsTruncated:
|
|
8579
|
+
impactFingerprint: z62.string().min(1),
|
|
8580
|
+
affectedTeamCount: z62.number().int().nonnegative(),
|
|
8581
|
+
affectedTeamsTruncated: z62.boolean(),
|
|
8513
8582
|
changes: productAccessChangeSummarySchema,
|
|
8514
|
-
sideEffects:
|
|
8515
|
-
automationWillPause:
|
|
8516
|
-
clarityWillHide:
|
|
8583
|
+
sideEffects: z62.object({
|
|
8584
|
+
automationWillPause: z62.boolean(),
|
|
8585
|
+
clarityWillHide: z62.boolean()
|
|
8517
8586
|
}),
|
|
8518
|
-
affectedTeamsPreview:
|
|
8519
|
-
|
|
8520
|
-
teamId:
|
|
8521
|
-
teamName:
|
|
8522
|
-
source:
|
|
8587
|
+
affectedTeamsPreview: z62.array(
|
|
8588
|
+
z62.object({
|
|
8589
|
+
teamId: z62.guid(),
|
|
8590
|
+
teamName: z62.string(),
|
|
8591
|
+
source: z62.enum(PLAN_ENTITLEMENTS_SOURCE_VALUES),
|
|
8523
8592
|
changes: productAccessChangeSummarySchema
|
|
8524
8593
|
})
|
|
8525
8594
|
)
|
|
8526
8595
|
});
|
|
8527
|
-
var publicProfileSchema =
|
|
8528
|
-
id:
|
|
8529
|
-
name:
|
|
8530
|
-
email:
|
|
8531
|
-
teamId:
|
|
8596
|
+
var publicProfileSchema = z63.object({
|
|
8597
|
+
id: z63.guid(),
|
|
8598
|
+
name: z63.string().nullable(),
|
|
8599
|
+
email: z63.email(),
|
|
8600
|
+
teamId: z63.guid().nullable()
|
|
8532
8601
|
});
|
|
8533
|
-
var publicProfileResponseSchema =
|
|
8602
|
+
var publicProfileResponseSchema = z63.object({
|
|
8534
8603
|
profile: publicProfileSchema
|
|
8535
8604
|
});
|
|
8536
|
-
var elementSelectorsSchema =
|
|
8537
|
-
css:
|
|
8538
|
-
cssPath:
|
|
8539
|
-
xpath:
|
|
8540
|
-
testId:
|
|
8541
|
-
ariaSelector:
|
|
8542
|
-
text:
|
|
8605
|
+
var elementSelectorsSchema = z64.object({
|
|
8606
|
+
css: z64.string().optional(),
|
|
8607
|
+
cssPath: z64.string().optional(),
|
|
8608
|
+
xpath: z64.string().optional(),
|
|
8609
|
+
testId: z64.string().optional(),
|
|
8610
|
+
ariaSelector: z64.string().optional(),
|
|
8611
|
+
text: z64.string().optional()
|
|
8543
8612
|
});
|
|
8544
|
-
var elementInfoSchema =
|
|
8545
|
-
uid:
|
|
8613
|
+
var elementInfoSchema = z64.object({
|
|
8614
|
+
uid: z64.string().optional(),
|
|
8546
8615
|
selectors: elementSelectorsSchema,
|
|
8547
|
-
tagName:
|
|
8548
|
-
textContent:
|
|
8549
|
-
ariaLabel:
|
|
8550
|
-
computedRole:
|
|
8551
|
-
attributes:
|
|
8552
|
-
framePath:
|
|
8553
|
-
frameUrl:
|
|
8554
|
-
});
|
|
8555
|
-
var recordedEventSchema =
|
|
8556
|
-
id:
|
|
8557
|
-
type:
|
|
8558
|
-
timestamp:
|
|
8559
|
-
url:
|
|
8560
|
-
tabId:
|
|
8561
|
-
frameId:
|
|
8562
|
-
framePath:
|
|
8616
|
+
tagName: z64.string(),
|
|
8617
|
+
textContent: z64.string().optional(),
|
|
8618
|
+
ariaLabel: z64.string().optional(),
|
|
8619
|
+
computedRole: z64.string().optional(),
|
|
8620
|
+
attributes: z64.record(z64.string(), z64.string()).optional(),
|
|
8621
|
+
framePath: z64.array(z64.number()).optional(),
|
|
8622
|
+
frameUrl: z64.string().optional()
|
|
8623
|
+
});
|
|
8624
|
+
var recordedEventSchema = z64.looseObject({
|
|
8625
|
+
id: z64.string(),
|
|
8626
|
+
type: z64.string(),
|
|
8627
|
+
timestamp: z64.number(),
|
|
8628
|
+
url: z64.string(),
|
|
8629
|
+
tabId: z64.number().optional(),
|
|
8630
|
+
frameId: z64.number().optional(),
|
|
8631
|
+
framePath: z64.array(z64.number()).optional(),
|
|
8563
8632
|
element: elementInfoSchema.optional()
|
|
8564
8633
|
});
|
|
8565
8634
|
var DUVO_CLIENT_HEADER = "x-duvo-client";
|
|
@@ -8579,63 +8648,63 @@ function resolveRequestSourceFromClientHeader(header) {
|
|
|
8579
8648
|
}
|
|
8580
8649
|
__name(resolveRequestSourceFromClientHeader, "resolveRequestSourceFromClientHeader");
|
|
8581
8650
|
__name2(resolveRequestSourceFromClientHeader, "resolveRequestSourceFromClientHeader");
|
|
8582
|
-
var RedactedMcpServerConfigSchema =
|
|
8651
|
+
var RedactedMcpServerConfigSchema = z65.object({
|
|
8583
8652
|
type: TransportTypeSchema,
|
|
8584
8653
|
integrationSlug: IntegrationSlugSchema,
|
|
8585
|
-
instanceId:
|
|
8654
|
+
instanceId: z65.string().nullable()
|
|
8586
8655
|
});
|
|
8587
|
-
var ThreadContextMessageSchema =
|
|
8588
|
-
role:
|
|
8589
|
-
content:
|
|
8656
|
+
var ThreadContextMessageSchema = z65.object({
|
|
8657
|
+
role: z65.enum(["user", "assistant"]),
|
|
8658
|
+
content: z65.string()
|
|
8590
8659
|
});
|
|
8591
|
-
var ChatFileReferenceSchema =
|
|
8592
|
-
id:
|
|
8593
|
-
name:
|
|
8594
|
-
mimetype:
|
|
8595
|
-
size:
|
|
8596
|
-
platform:
|
|
8597
|
-
workspaceId:
|
|
8598
|
-
channelId:
|
|
8599
|
-
});
|
|
8600
|
-
var ResolvedSubAgentSchema =
|
|
8601
|
-
agentId:
|
|
8602
|
-
buildId:
|
|
8603
|
-
name:
|
|
8660
|
+
var ChatFileReferenceSchema = z65.object({
|
|
8661
|
+
id: z65.string(),
|
|
8662
|
+
name: z65.string(),
|
|
8663
|
+
mimetype: z65.string(),
|
|
8664
|
+
size: z65.number(),
|
|
8665
|
+
platform: z65.enum(["slack", "teams"]),
|
|
8666
|
+
workspaceId: z65.string(),
|
|
8667
|
+
channelId: z65.string()
|
|
8668
|
+
});
|
|
8669
|
+
var ResolvedSubAgentSchema = z65.object({
|
|
8670
|
+
agentId: z65.string().uuid(),
|
|
8671
|
+
buildId: z65.string().uuid(),
|
|
8672
|
+
name: z65.string().min(1).max(64).regex(/^[a-z0-9-]+$/).describe(
|
|
8604
8673
|
"Stable slug used as the Claude Code subagent name (kebab-case, \u226464 chars)"
|
|
8605
8674
|
),
|
|
8606
|
-
description:
|
|
8675
|
+
description: z65.string().describe(
|
|
8607
8676
|
"Routing description Claude uses to decide when to delegate to this subagent"
|
|
8608
8677
|
),
|
|
8609
|
-
prompt:
|
|
8610
|
-
model:
|
|
8611
|
-
mcpServers:
|
|
8678
|
+
prompt: z65.string().describe("System prompt (AOP) for this subagent"),
|
|
8679
|
+
model: z65.string().optional().describe("Optional Claude model identifier override for this subagent"),
|
|
8680
|
+
mcpServers: z65.record(z65.string(), RedactedMcpServerConfigSchema).default({}).describe(
|
|
8612
8681
|
"Redacted MCP server configs scoped to this subagent. Secrets resolved at execution time."
|
|
8613
8682
|
)
|
|
8614
8683
|
});
|
|
8615
8684
|
var RunConfigSchema = AgentConfigSchema.extend({
|
|
8616
|
-
task:
|
|
8617
|
-
mcpServers:
|
|
8618
|
-
subAgents:
|
|
8619
|
-
conversationHistory:
|
|
8620
|
-
chatFiles:
|
|
8685
|
+
task: z65.string(),
|
|
8686
|
+
mcpServers: z65.record(z65.string(), RedactedMcpServerConfigSchema),
|
|
8687
|
+
subAgents: z65.array(ResolvedSubAgentSchema).optional().default([]),
|
|
8688
|
+
conversationHistory: z65.array(ThreadContextMessageSchema).optional(),
|
|
8689
|
+
chatFiles: z65.array(ChatFileReferenceSchema).optional(),
|
|
8621
8690
|
/** IANA timezone (e.g. `"Europe/Prague"`). Consumers should fall back to UTC when absent. */
|
|
8622
|
-
timezone:
|
|
8691
|
+
timezone: z65.string().optional(),
|
|
8623
8692
|
/**
|
|
8624
8693
|
* ISO 8601 timestamp captured when the run was created. Frozen at
|
|
8625
8694
|
* run-creation time and never recomputed, so resumes reuse the same value —
|
|
8626
8695
|
* the runtime injects it into the cached system prompt and a changing value
|
|
8627
8696
|
* would bust the prompt cache.
|
|
8628
8697
|
*/
|
|
8629
|
-
sessionStartedAt:
|
|
8698
|
+
sessionStartedAt: z65.string().optional()
|
|
8630
8699
|
});
|
|
8631
|
-
var StoredRunConfigV0Schema =
|
|
8632
|
-
version:
|
|
8700
|
+
var StoredRunConfigV0Schema = z65.object({
|
|
8701
|
+
version: z65.literal("v0")
|
|
8633
8702
|
});
|
|
8634
|
-
var StoredRunConfigV1Schema =
|
|
8635
|
-
version:
|
|
8703
|
+
var StoredRunConfigV1Schema = z65.object({
|
|
8704
|
+
version: z65.literal("v1"),
|
|
8636
8705
|
data: RunConfigSchema
|
|
8637
8706
|
});
|
|
8638
|
-
var StoredRunConfigSchema =
|
|
8707
|
+
var StoredRunConfigSchema = z65.union([
|
|
8639
8708
|
StoredRunConfigV0Schema,
|
|
8640
8709
|
StoredRunConfigV1Schema
|
|
8641
8710
|
]);
|
|
@@ -8654,177 +8723,177 @@ function isRunConfig(config) {
|
|
|
8654
8723
|
}
|
|
8655
8724
|
__name(isRunConfig, "isRunConfig");
|
|
8656
8725
|
__name2(isRunConfig, "isRunConfig");
|
|
8657
|
-
var skillApiSchema =
|
|
8658
|
-
id:
|
|
8659
|
-
name:
|
|
8660
|
-
description:
|
|
8726
|
+
var skillApiSchema = z66.object({
|
|
8727
|
+
id: z66.string(),
|
|
8728
|
+
name: z66.string(),
|
|
8729
|
+
description: z66.string(),
|
|
8661
8730
|
// System skills have null team_id.
|
|
8662
|
-
team_id:
|
|
8663
|
-
});
|
|
8664
|
-
var listSkillsResponseSchema = z65.object({
|
|
8665
|
-
skills: z65.array(skillApiSchema)
|
|
8666
|
-
});
|
|
8667
|
-
var systemSkillSchema = z65.object({
|
|
8668
|
-
id: z65.string(),
|
|
8669
|
-
name: z65.string(),
|
|
8670
|
-
description: z65.string()
|
|
8731
|
+
team_id: z66.string().nullable()
|
|
8671
8732
|
});
|
|
8672
|
-
var
|
|
8673
|
-
skills:
|
|
8733
|
+
var listSkillsResponseSchema = z66.object({
|
|
8734
|
+
skills: z66.array(skillApiSchema)
|
|
8674
8735
|
});
|
|
8675
|
-
var
|
|
8676
|
-
|
|
8677
|
-
|
|
8678
|
-
|
|
8679
|
-
|
|
8680
|
-
|
|
8681
|
-
|
|
8682
|
-
|
|
8683
|
-
|
|
8684
|
-
|
|
8685
|
-
|
|
8686
|
-
|
|
8687
|
-
|
|
8688
|
-
|
|
8689
|
-
});
|
|
8690
|
-
var
|
|
8691
|
-
|
|
8692
|
-
});
|
|
8693
|
-
var
|
|
8694
|
-
|
|
8695
|
-
|
|
8696
|
-
|
|
8697
|
-
|
|
8698
|
-
|
|
8699
|
-
|
|
8736
|
+
var systemSkillSchema = z66.object({
|
|
8737
|
+
id: z66.string(),
|
|
8738
|
+
name: z66.string(),
|
|
8739
|
+
description: z66.string()
|
|
8740
|
+
});
|
|
8741
|
+
var listSystemSkillsResponseSchema = z66.object({
|
|
8742
|
+
skills: z66.array(systemSkillSchema)
|
|
8743
|
+
});
|
|
8744
|
+
var skillFileItemSchema = z66.object({
|
|
8745
|
+
name: z66.string(),
|
|
8746
|
+
path: z66.string(),
|
|
8747
|
+
size: z66.number().optional(),
|
|
8748
|
+
contentType: z66.string().optional(),
|
|
8749
|
+
updatedAt: z66.string().optional()
|
|
8750
|
+
});
|
|
8751
|
+
var listSkillFilesResponseSchema = z66.object({
|
|
8752
|
+
files: z66.array(skillFileItemSchema)
|
|
8753
|
+
});
|
|
8754
|
+
var getSkillFileContentResponseSchema = z66.object({
|
|
8755
|
+
content: z66.string(),
|
|
8756
|
+
path: z66.string(),
|
|
8757
|
+
contentType: z66.string().optional()
|
|
8758
|
+
});
|
|
8759
|
+
var updateSkillFileBodySchema = z66.object({
|
|
8760
|
+
content: z66.string()
|
|
8761
|
+
});
|
|
8762
|
+
var updateSkillFileResponseSchema = z66.object({
|
|
8763
|
+
success: z66.boolean(),
|
|
8764
|
+
message: z66.string(),
|
|
8765
|
+
skill: z66.object({
|
|
8766
|
+
id: z66.string(),
|
|
8767
|
+
name: z66.string(),
|
|
8768
|
+
description: z66.string()
|
|
8700
8769
|
}).optional()
|
|
8701
8770
|
});
|
|
8702
|
-
var deleteSkillResponseSchema =
|
|
8703
|
-
success:
|
|
8704
|
-
message:
|
|
8771
|
+
var deleteSkillResponseSchema = z66.object({
|
|
8772
|
+
success: z66.boolean(),
|
|
8773
|
+
message: z66.string()
|
|
8705
8774
|
});
|
|
8706
|
-
var generateSkillBodySchema =
|
|
8707
|
-
prompt:
|
|
8708
|
-
existingContent:
|
|
8775
|
+
var generateSkillBodySchema = z66.object({
|
|
8776
|
+
prompt: z66.string().min(1).max(2e3),
|
|
8777
|
+
existingContent: z66.string().max(2e4).optional()
|
|
8709
8778
|
});
|
|
8710
|
-
var generateSkillResponseSchema =
|
|
8711
|
-
content:
|
|
8779
|
+
var generateSkillResponseSchema = z66.object({
|
|
8780
|
+
content: z66.string()
|
|
8712
8781
|
});
|
|
8713
|
-
var skillAssignmentSchema =
|
|
8714
|
-
id:
|
|
8715
|
-
name:
|
|
8782
|
+
var skillAssignmentSchema = z66.object({
|
|
8783
|
+
id: z66.string(),
|
|
8784
|
+
name: z66.string()
|
|
8716
8785
|
});
|
|
8717
|
-
var listSkillAssignmentsResponseSchema =
|
|
8718
|
-
assignments:
|
|
8719
|
-
total:
|
|
8786
|
+
var listSkillAssignmentsResponseSchema = z66.object({
|
|
8787
|
+
assignments: z66.array(skillAssignmentSchema),
|
|
8788
|
+
total: z66.number()
|
|
8720
8789
|
});
|
|
8721
|
-
var teamInvitationApiSchema =
|
|
8722
|
-
id:
|
|
8723
|
-
team_id:
|
|
8724
|
-
email:
|
|
8725
|
-
invited_by:
|
|
8726
|
-
role:
|
|
8727
|
-
status:
|
|
8728
|
-
name:
|
|
8729
|
-
created_at:
|
|
8730
|
-
process_id:
|
|
8731
|
-
});
|
|
8732
|
-
var teamInvitationDetailApiSchema =
|
|
8733
|
-
id:
|
|
8734
|
-
team_id:
|
|
8735
|
-
email:
|
|
8736
|
-
invited_by:
|
|
8737
|
-
role:
|
|
8738
|
-
status:
|
|
8739
|
-
name:
|
|
8740
|
-
created_at:
|
|
8741
|
-
process_id:
|
|
8742
|
-
team:
|
|
8743
|
-
id:
|
|
8744
|
-
name:
|
|
8790
|
+
var teamInvitationApiSchema = z67.object({
|
|
8791
|
+
id: z67.string(),
|
|
8792
|
+
team_id: z67.string(),
|
|
8793
|
+
email: z67.email(),
|
|
8794
|
+
invited_by: z67.string(),
|
|
8795
|
+
role: z67.string(),
|
|
8796
|
+
status: z67.string(),
|
|
8797
|
+
name: z67.string().nullable(),
|
|
8798
|
+
created_at: z67.string(),
|
|
8799
|
+
process_id: z67.guid().nullable().optional()
|
|
8800
|
+
});
|
|
8801
|
+
var teamInvitationDetailApiSchema = z67.object({
|
|
8802
|
+
id: z67.string(),
|
|
8803
|
+
team_id: z67.string(),
|
|
8804
|
+
email: z67.email(),
|
|
8805
|
+
invited_by: z67.string(),
|
|
8806
|
+
role: z67.string(),
|
|
8807
|
+
status: z67.string(),
|
|
8808
|
+
name: z67.string().nullable(),
|
|
8809
|
+
created_at: z67.string(),
|
|
8810
|
+
process_id: z67.guid().nullable().optional(),
|
|
8811
|
+
team: z67.object({
|
|
8812
|
+
id: z67.string(),
|
|
8813
|
+
name: z67.string()
|
|
8745
8814
|
}),
|
|
8746
|
-
invitedBy:
|
|
8747
|
-
id:
|
|
8748
|
-
name:
|
|
8749
|
-
email:
|
|
8815
|
+
invitedBy: z67.object({
|
|
8816
|
+
id: z67.string(),
|
|
8817
|
+
name: z67.string().nullable(),
|
|
8818
|
+
email: z67.email()
|
|
8750
8819
|
}),
|
|
8751
|
-
process:
|
|
8752
|
-
id:
|
|
8753
|
-
name:
|
|
8820
|
+
process: z67.object({
|
|
8821
|
+
id: z67.string(),
|
|
8822
|
+
name: z67.string()
|
|
8754
8823
|
}).optional()
|
|
8755
8824
|
});
|
|
8756
|
-
var createTeamInvitationRequestSchema =
|
|
8757
|
-
email:
|
|
8758
|
-
role:
|
|
8759
|
-
processId:
|
|
8825
|
+
var createTeamInvitationRequestSchema = z67.object({
|
|
8826
|
+
email: z67.email(),
|
|
8827
|
+
role: z67.string(),
|
|
8828
|
+
processId: z67.guid().optional()
|
|
8760
8829
|
});
|
|
8761
|
-
var acceptTeamInvitationRequestSchema =
|
|
8762
|
-
name:
|
|
8830
|
+
var acceptTeamInvitationRequestSchema = z67.object({
|
|
8831
|
+
name: z67.string().optional()
|
|
8763
8832
|
});
|
|
8764
|
-
var bulkInviteResponseSchema =
|
|
8765
|
-
succeeded:
|
|
8766
|
-
skipped:
|
|
8767
|
-
failed:
|
|
8833
|
+
var bulkInviteResponseSchema = z67.object({
|
|
8834
|
+
succeeded: z67.number(),
|
|
8835
|
+
skipped: z67.number(),
|
|
8836
|
+
failed: z67.number()
|
|
8768
8837
|
});
|
|
8769
|
-
var teamDiscoveryModeSchema =
|
|
8770
|
-
var BrowserRegionSchema =
|
|
8838
|
+
var teamDiscoveryModeSchema = z68.enum(["request", "auto"]);
|
|
8839
|
+
var BrowserRegionSchema = z68.enum([
|
|
8771
8840
|
"us-west-2",
|
|
8772
8841
|
"us-east-1",
|
|
8773
8842
|
"eu-central-1",
|
|
8774
8843
|
"ap-southeast-1"
|
|
8775
8844
|
]);
|
|
8776
|
-
var BrowserLocationSchema =
|
|
8777
|
-
|
|
8778
|
-
|
|
8779
|
-
|
|
8780
|
-
|
|
8781
|
-
|
|
8782
|
-
|
|
8783
|
-
|
|
8845
|
+
var BrowserLocationSchema = z68.union([
|
|
8846
|
+
z68.literal("cz"),
|
|
8847
|
+
z68.literal("de"),
|
|
8848
|
+
z68.literal("fr"),
|
|
8849
|
+
z68.literal("gb"),
|
|
8850
|
+
z68.literal("it"),
|
|
8851
|
+
z68.literal("pl"),
|
|
8852
|
+
z68.literal("sk")
|
|
8784
8853
|
]);
|
|
8785
|
-
var teamMemberApiSchema =
|
|
8786
|
-
id:
|
|
8787
|
-
name:
|
|
8788
|
-
email:
|
|
8789
|
-
role:
|
|
8790
|
-
inheritedFromOrg:
|
|
8791
|
-
});
|
|
8792
|
-
var listTeamMembersResponseSchema =
|
|
8793
|
-
members:
|
|
8794
|
-
total:
|
|
8795
|
-
limit:
|
|
8796
|
-
offset:
|
|
8797
|
-
});
|
|
8798
|
-
var updateMemberRoleRequestSchema =
|
|
8799
|
-
role:
|
|
8800
|
-
});
|
|
8801
|
-
var removeMemberResponseSchema =
|
|
8802
|
-
success:
|
|
8803
|
-
nextTeamId:
|
|
8804
|
-
planType:
|
|
8805
|
-
});
|
|
8806
|
-
var getMemberMeResponseSchema =
|
|
8807
|
-
role:
|
|
8808
|
-
});
|
|
8809
|
-
var addTeamMemberRequestSchema =
|
|
8810
|
-
userId:
|
|
8811
|
-
role:
|
|
8812
|
-
});
|
|
8813
|
-
var updateTeamRequestSchema =
|
|
8814
|
-
name:
|
|
8815
|
-
slack_team_id:
|
|
8854
|
+
var teamMemberApiSchema = z68.object({
|
|
8855
|
+
id: z68.guid(),
|
|
8856
|
+
name: z68.string().nullable(),
|
|
8857
|
+
email: z68.email(),
|
|
8858
|
+
role: z68.string(),
|
|
8859
|
+
inheritedFromOrg: z68.boolean().default(false)
|
|
8860
|
+
});
|
|
8861
|
+
var listTeamMembersResponseSchema = z68.object({
|
|
8862
|
+
members: z68.array(teamMemberApiSchema),
|
|
8863
|
+
total: z68.number().int().nonnegative(),
|
|
8864
|
+
limit: z68.number().int().positive(),
|
|
8865
|
+
offset: z68.number().int().nonnegative()
|
|
8866
|
+
});
|
|
8867
|
+
var updateMemberRoleRequestSchema = z68.object({
|
|
8868
|
+
role: z68.string()
|
|
8869
|
+
});
|
|
8870
|
+
var removeMemberResponseSchema = z68.object({
|
|
8871
|
+
success: z68.literal(true),
|
|
8872
|
+
nextTeamId: z68.guid().nullable(),
|
|
8873
|
+
planType: z68.enum(["pro", "enterprise"]).nullable()
|
|
8874
|
+
});
|
|
8875
|
+
var getMemberMeResponseSchema = z68.object({
|
|
8876
|
+
role: z68.string().nullable()
|
|
8877
|
+
});
|
|
8878
|
+
var addTeamMemberRequestSchema = z68.object({
|
|
8879
|
+
userId: z68.guid(),
|
|
8880
|
+
role: z68.string()
|
|
8881
|
+
});
|
|
8882
|
+
var updateTeamRequestSchema = z68.object({
|
|
8883
|
+
name: z68.string().min(1).optional(),
|
|
8884
|
+
slack_team_id: z68.string().optional(),
|
|
8816
8885
|
discovery_mode: teamDiscoveryModeSchema.optional()
|
|
8817
8886
|
});
|
|
8818
|
-
var teamApiSchema =
|
|
8819
|
-
id:
|
|
8820
|
-
name:
|
|
8821
|
-
created_at:
|
|
8822
|
-
organization_id:
|
|
8823
|
-
slack_team_id:
|
|
8887
|
+
var teamApiSchema = z68.object({
|
|
8888
|
+
id: z68.guid(),
|
|
8889
|
+
name: z68.string(),
|
|
8890
|
+
created_at: z68.string(),
|
|
8891
|
+
organization_id: z68.guid().nullable(),
|
|
8892
|
+
slack_team_id: z68.string().nullable(),
|
|
8824
8893
|
discovery_mode: teamDiscoveryModeSchema
|
|
8825
8894
|
});
|
|
8826
8895
|
var TEAM_CONFIG_VERSION = 1;
|
|
8827
|
-
var teamConfigDataSchema =
|
|
8896
|
+
var teamConfigDataSchema = z68.object({
|
|
8828
8897
|
browserProviderOverride: BrowserProviderTypeSchema.nullable().optional(),
|
|
8829
8898
|
// Egress identity (proxy country) — what the target site sees.
|
|
8830
8899
|
browserLocationOverride: BrowserLocationSchema.nullable().optional(),
|
|
@@ -8835,182 +8904,182 @@ var teamConfigDataSchema = z67.object({
|
|
|
8835
8904
|
// Kept optional so existing v1 rows still parse; the resolver reads the new
|
|
8836
8905
|
// fields first and falls back to these. Do not surface in the UI.
|
|
8837
8906
|
browserRegionOverride: BrowserRegionSchema.nullable().optional(),
|
|
8838
|
-
sessionRecordingOverride:
|
|
8907
|
+
sessionRecordingOverride: z68.boolean().nullable().optional()
|
|
8839
8908
|
});
|
|
8840
|
-
var teamConfigSchema =
|
|
8841
|
-
version:
|
|
8909
|
+
var teamConfigSchema = z68.object({
|
|
8910
|
+
version: z68.literal(TEAM_CONFIG_VERSION),
|
|
8842
8911
|
data: teamConfigDataSchema
|
|
8843
8912
|
});
|
|
8844
|
-
var listTeamInvitesResponseSchema =
|
|
8845
|
-
invitations:
|
|
8913
|
+
var listTeamInvitesResponseSchema = z68.object({
|
|
8914
|
+
invitations: z68.array(teamInvitationApiSchema)
|
|
8846
8915
|
});
|
|
8847
|
-
var teamInsightsCopilotSchema =
|
|
8848
|
-
id:
|
|
8849
|
-
name:
|
|
8850
|
-
teamName:
|
|
8851
|
-
created_at:
|
|
8852
|
-
updated_at:
|
|
8853
|
-
team_id:
|
|
8854
|
-
thread_id:
|
|
8855
|
-
slack_enabled:
|
|
8856
|
-
});
|
|
8857
|
-
var teamInsightsUserProfileSchema =
|
|
8858
|
-
id:
|
|
8859
|
-
name:
|
|
8860
|
-
email:
|
|
8916
|
+
var teamInsightsCopilotSchema = z69.object({
|
|
8917
|
+
id: z69.guid(),
|
|
8918
|
+
name: z69.string(),
|
|
8919
|
+
teamName: z69.string().nullable().optional(),
|
|
8920
|
+
created_at: z69.string().nullable(),
|
|
8921
|
+
updated_at: z69.string().nullable(),
|
|
8922
|
+
team_id: z69.string().nullable(),
|
|
8923
|
+
thread_id: z69.string().nullable(),
|
|
8924
|
+
slack_enabled: z69.boolean().nullable()
|
|
8925
|
+
});
|
|
8926
|
+
var teamInsightsUserProfileSchema = z69.object({
|
|
8927
|
+
id: z69.guid(),
|
|
8928
|
+
name: z69.string().nullable(),
|
|
8929
|
+
email: z69.string()
|
|
8861
8930
|
});
|
|
8862
8931
|
var teamInsightsUserUsageSchema = teamInsightsUserProfileSchema.extend(
|
|
8863
8932
|
{
|
|
8864
|
-
runCount:
|
|
8865
|
-
lastRun:
|
|
8933
|
+
runCount: z69.number(),
|
|
8934
|
+
lastRun: z69.string().nullable()
|
|
8866
8935
|
}
|
|
8867
8936
|
);
|
|
8868
|
-
var teamInsightsMetricSourceSchema =
|
|
8937
|
+
var teamInsightsMetricSourceSchema = z69.object({
|
|
8869
8938
|
source: agentRunSourceSchema,
|
|
8870
|
-
runsTotal:
|
|
8871
|
-
completedRuns:
|
|
8939
|
+
runsTotal: z69.number(),
|
|
8940
|
+
completedRuns: z69.number()
|
|
8872
8941
|
});
|
|
8873
8942
|
var teamInsightsCopilotWithRunsSchema = teamInsightsCopilotSchema.extend({
|
|
8874
|
-
integrations:
|
|
8875
|
-
uniqueUsersCount:
|
|
8876
|
-
users:
|
|
8877
|
-
totalRuns:
|
|
8878
|
-
completedRuns:
|
|
8879
|
-
totalTimeSpentMs:
|
|
8880
|
-
averageTimeSpentMs:
|
|
8881
|
-
completedRunsWithTiming:
|
|
8882
|
-
sources:
|
|
8883
|
-
});
|
|
8884
|
-
var teamInsightsAgentsRunResponseSchema =
|
|
8885
|
-
data:
|
|
8886
|
-
total:
|
|
8887
|
-
});
|
|
8888
|
-
var teamInsightsMetricsResponseSchema =
|
|
8889
|
-
runsTotal:
|
|
8890
|
-
completedRuns:
|
|
8891
|
-
sources:
|
|
8892
|
-
});
|
|
8893
|
-
var teamInsightsUserAgentRunSchema =
|
|
8894
|
-
id: z68.guid(),
|
|
8895
|
-
created_at: z68.string(),
|
|
8896
|
-
updated_at: z68.string(),
|
|
8897
|
-
agent_id: z68.guid(),
|
|
8898
|
-
agent_name: z68.string(),
|
|
8899
|
-
build_id: z68.guid(),
|
|
8900
|
-
source: z68.string().nullable(),
|
|
8901
|
-
started_at: z68.string().nullable(),
|
|
8902
|
-
completed_at: z68.string().nullable()
|
|
8903
|
-
});
|
|
8904
|
-
var teamInsightsAgentSchema = z68.object({
|
|
8905
|
-
id: z68.guid(),
|
|
8906
|
-
name: z68.string(),
|
|
8907
|
-
teamName: z68.string().nullable().optional(),
|
|
8908
|
-
runs: z68.array(teamInsightsUserAgentRunSchema)
|
|
8909
|
-
});
|
|
8910
|
-
var teamInsightsUserWithAgentsAndRunsSchema = teamInsightsUserProfileSchema.extend({
|
|
8911
|
-
agents: z68.array(teamInsightsAgentSchema),
|
|
8912
|
-
runs: z68.array(teamInsightsUserAgentRunSchema),
|
|
8913
|
-
totalRuns: z68.number()
|
|
8914
|
-
});
|
|
8915
|
-
var teamInsightsUsersResponseSchema = z68.object({
|
|
8916
|
-
data: z68.array(teamInsightsUserWithAgentsAndRunsSchema),
|
|
8917
|
-
total: z68.number()
|
|
8918
|
-
});
|
|
8919
|
-
var guardrailsAuthorSchema = z69.object({
|
|
8943
|
+
integrations: z69.array(z69.string()),
|
|
8944
|
+
uniqueUsersCount: z69.number(),
|
|
8945
|
+
users: z69.array(teamInsightsUserUsageSchema),
|
|
8946
|
+
totalRuns: z69.number(),
|
|
8947
|
+
completedRuns: z69.number(),
|
|
8948
|
+
totalTimeSpentMs: z69.number(),
|
|
8949
|
+
averageTimeSpentMs: z69.number(),
|
|
8950
|
+
completedRunsWithTiming: z69.number(),
|
|
8951
|
+
sources: z69.array(teamInsightsMetricSourceSchema)
|
|
8952
|
+
});
|
|
8953
|
+
var teamInsightsAgentsRunResponseSchema = z69.object({
|
|
8954
|
+
data: z69.array(teamInsightsCopilotWithRunsSchema),
|
|
8955
|
+
total: z69.number()
|
|
8956
|
+
});
|
|
8957
|
+
var teamInsightsMetricsResponseSchema = z69.object({
|
|
8958
|
+
runsTotal: z69.number(),
|
|
8959
|
+
completedRuns: z69.number(),
|
|
8960
|
+
sources: z69.array(teamInsightsMetricSourceSchema)
|
|
8961
|
+
});
|
|
8962
|
+
var teamInsightsUserAgentRunSchema = z69.object({
|
|
8920
8963
|
id: z69.guid(),
|
|
8921
|
-
|
|
8922
|
-
|
|
8923
|
-
|
|
8924
|
-
|
|
8964
|
+
created_at: z69.string(),
|
|
8965
|
+
updated_at: z69.string(),
|
|
8966
|
+
agent_id: z69.guid(),
|
|
8967
|
+
agent_name: z69.string(),
|
|
8968
|
+
build_id: z69.guid(),
|
|
8969
|
+
source: z69.string().nullable(),
|
|
8970
|
+
started_at: z69.string().nullable(),
|
|
8971
|
+
completed_at: z69.string().nullable()
|
|
8972
|
+
});
|
|
8973
|
+
var teamInsightsAgentSchema = z69.object({
|
|
8925
8974
|
id: z69.guid(),
|
|
8926
|
-
|
|
8927
|
-
|
|
8928
|
-
|
|
8929
|
-
|
|
8975
|
+
name: z69.string(),
|
|
8976
|
+
teamName: z69.string().nullable().optional(),
|
|
8977
|
+
runs: z69.array(teamInsightsUserAgentRunSchema)
|
|
8978
|
+
});
|
|
8979
|
+
var teamInsightsUserWithAgentsAndRunsSchema = teamInsightsUserProfileSchema.extend({
|
|
8980
|
+
agents: z69.array(teamInsightsAgentSchema),
|
|
8981
|
+
runs: z69.array(teamInsightsUserAgentRunSchema),
|
|
8982
|
+
totalRuns: z69.number()
|
|
8983
|
+
});
|
|
8984
|
+
var teamInsightsUsersResponseSchema = z69.object({
|
|
8985
|
+
data: z69.array(teamInsightsUserWithAgentsAndRunsSchema),
|
|
8986
|
+
total: z69.number()
|
|
8987
|
+
});
|
|
8988
|
+
var guardrailsAuthorSchema = z70.object({
|
|
8989
|
+
id: z70.guid(),
|
|
8990
|
+
name: z70.string().nullable(),
|
|
8991
|
+
email: z70.email()
|
|
8992
|
+
});
|
|
8993
|
+
var guardrailsRevisionSchema = z70.object({
|
|
8994
|
+
id: z70.guid(),
|
|
8995
|
+
teamId: z70.guid(),
|
|
8996
|
+
guardrailsText: z70.string().nullable(),
|
|
8997
|
+
blockedDomains: z70.array(z70.string()),
|
|
8998
|
+
createdAt: z70.string(),
|
|
8930
8999
|
createdBy: guardrailsAuthorSchema
|
|
8931
9000
|
});
|
|
8932
|
-
var getTeamGuardrailsResponseSchema =
|
|
9001
|
+
var getTeamGuardrailsResponseSchema = z70.object({
|
|
8933
9002
|
current: guardrailsRevisionSchema.nullable()
|
|
8934
9003
|
});
|
|
8935
|
-
var listTeamGuardrailsRevisionsQuerySchema =
|
|
8936
|
-
limit:
|
|
8937
|
-
offset:
|
|
9004
|
+
var listTeamGuardrailsRevisionsQuerySchema = z70.object({
|
|
9005
|
+
limit: z70.coerce.number().int().min(1).max(100).default(20),
|
|
9006
|
+
offset: z70.coerce.number().int().min(0).default(0)
|
|
8938
9007
|
});
|
|
8939
|
-
var listTeamGuardrailsRevisionsResponseSchema =
|
|
8940
|
-
revisions:
|
|
8941
|
-
total:
|
|
9008
|
+
var listTeamGuardrailsRevisionsResponseSchema = z70.object({
|
|
9009
|
+
revisions: z70.array(guardrailsRevisionSchema),
|
|
9010
|
+
total: z70.number().int().nonnegative()
|
|
8942
9011
|
});
|
|
8943
|
-
var createTeamGuardrailsRevisionRequestSchema =
|
|
8944
|
-
guardrailsText:
|
|
8945
|
-
blockedDomains:
|
|
9012
|
+
var createTeamGuardrailsRevisionRequestSchema = z70.object({
|
|
9013
|
+
guardrailsText: z70.string().max(MAX_GUARDRAILS_TEXT_LENGTH).nullable().transform((value) => value && value.trim().length > 0 ? value : null),
|
|
9014
|
+
blockedDomains: z70.array(z70.string()).max(MAX_BLOCKED_DOMAINS)
|
|
8946
9015
|
});
|
|
8947
|
-
var userDismissalListResponseSchema =
|
|
8948
|
-
data:
|
|
9016
|
+
var userDismissalListResponseSchema = z71.object({
|
|
9017
|
+
data: z71.array(z71.string())
|
|
8949
9018
|
});
|
|
8950
|
-
var userDismissalMutationSchema =
|
|
8951
|
-
elementKey:
|
|
9019
|
+
var userDismissalMutationSchema = z71.object({
|
|
9020
|
+
elementKey: z71.string()
|
|
8952
9021
|
});
|
|
8953
9022
|
var PASSWORD_MIN = 1;
|
|
8954
9023
|
var PASSWORD_MAX = 1024;
|
|
8955
9024
|
var NAME_MAX = 200;
|
|
8956
9025
|
var URL_MAX = 500;
|
|
8957
9026
|
var USERNAME_MAX = 200;
|
|
8958
|
-
var vpnProxyConfigSummarySchema =
|
|
8959
|
-
id:
|
|
8960
|
-
name:
|
|
8961
|
-
server:
|
|
8962
|
-
username:
|
|
8963
|
-
enabled:
|
|
8964
|
-
passwordSet:
|
|
8965
|
-
organizationCount:
|
|
8966
|
-
createdAt:
|
|
8967
|
-
updatedAt:
|
|
8968
|
-
});
|
|
8969
|
-
var vpnProxyConfigListResponseSchema =
|
|
8970
|
-
configs:
|
|
8971
|
-
});
|
|
8972
|
-
var vpnProxyConfigCreateRequestSchema =
|
|
8973
|
-
name:
|
|
8974
|
-
server:
|
|
8975
|
-
username:
|
|
8976
|
-
password:
|
|
8977
|
-
enabled:
|
|
8978
|
-
});
|
|
8979
|
-
var vpnProxyConfigCreateResponseSchema =
|
|
9027
|
+
var vpnProxyConfigSummarySchema = z72.object({
|
|
9028
|
+
id: z72.guid(),
|
|
9029
|
+
name: z72.string(),
|
|
9030
|
+
server: z72.string(),
|
|
9031
|
+
username: z72.string(),
|
|
9032
|
+
enabled: z72.boolean(),
|
|
9033
|
+
passwordSet: z72.boolean(),
|
|
9034
|
+
organizationCount: z72.number().int().nonnegative(),
|
|
9035
|
+
createdAt: z72.string(),
|
|
9036
|
+
updatedAt: z72.string()
|
|
9037
|
+
});
|
|
9038
|
+
var vpnProxyConfigListResponseSchema = z72.object({
|
|
9039
|
+
configs: z72.array(vpnProxyConfigSummarySchema)
|
|
9040
|
+
});
|
|
9041
|
+
var vpnProxyConfigCreateRequestSchema = z72.object({
|
|
9042
|
+
name: z72.string().trim().min(1).max(NAME_MAX),
|
|
9043
|
+
server: z72.string().trim().min(1).max(URL_MAX).url(),
|
|
9044
|
+
username: z72.string().trim().min(1).max(USERNAME_MAX),
|
|
9045
|
+
password: z72.string().min(PASSWORD_MIN).max(PASSWORD_MAX),
|
|
9046
|
+
enabled: z72.boolean().prefault(true)
|
|
9047
|
+
});
|
|
9048
|
+
var vpnProxyConfigCreateResponseSchema = z72.object({
|
|
8980
9049
|
config: vpnProxyConfigSummarySchema
|
|
8981
9050
|
});
|
|
8982
|
-
var vpnProxyConfigUpdateRequestSchema =
|
|
8983
|
-
name:
|
|
8984
|
-
server:
|
|
8985
|
-
username:
|
|
8986
|
-
password:
|
|
8987
|
-
enabled:
|
|
9051
|
+
var vpnProxyConfigUpdateRequestSchema = z72.object({
|
|
9052
|
+
name: z72.string().trim().min(1).max(NAME_MAX).optional(),
|
|
9053
|
+
server: z72.string().trim().min(1).max(URL_MAX).url().optional(),
|
|
9054
|
+
username: z72.string().trim().min(1).max(USERNAME_MAX).optional(),
|
|
9055
|
+
password: z72.string().min(PASSWORD_MIN).max(PASSWORD_MAX).optional(),
|
|
9056
|
+
enabled: z72.boolean().optional()
|
|
8988
9057
|
});
|
|
8989
|
-
var vpnProxyConfigUpdateResponseSchema =
|
|
9058
|
+
var vpnProxyConfigUpdateResponseSchema = z72.object({
|
|
8990
9059
|
config: vpnProxyConfigSummarySchema
|
|
8991
9060
|
});
|
|
8992
|
-
var vpnProxyConfigDeleteResponseSchema =
|
|
8993
|
-
success:
|
|
9061
|
+
var vpnProxyConfigDeleteResponseSchema = z72.object({
|
|
9062
|
+
success: z72.literal(true)
|
|
8994
9063
|
});
|
|
8995
|
-
var vpnProxyConfigOrganizationSchema =
|
|
8996
|
-
id:
|
|
8997
|
-
organizationId:
|
|
8998
|
-
organizationName:
|
|
8999
|
-
attachedAt:
|
|
9064
|
+
var vpnProxyConfigOrganizationSchema = z72.object({
|
|
9065
|
+
id: z72.guid(),
|
|
9066
|
+
organizationId: z72.guid(),
|
|
9067
|
+
organizationName: z72.string(),
|
|
9068
|
+
attachedAt: z72.string()
|
|
9000
9069
|
});
|
|
9001
|
-
var vpnProxyConfigOrganizationListResponseSchema =
|
|
9002
|
-
organizations:
|
|
9070
|
+
var vpnProxyConfigOrganizationListResponseSchema = z72.object({
|
|
9071
|
+
organizations: z72.array(vpnProxyConfigOrganizationSchema)
|
|
9003
9072
|
});
|
|
9004
|
-
var vpnProxyConfigAttachOrganizationRequestSchema =
|
|
9005
|
-
organizationId:
|
|
9073
|
+
var vpnProxyConfigAttachOrganizationRequestSchema = z72.object({
|
|
9074
|
+
organizationId: z72.guid()
|
|
9006
9075
|
});
|
|
9007
|
-
var vpnProxyConfigAttachOrganizationResponseSchema =
|
|
9076
|
+
var vpnProxyConfigAttachOrganizationResponseSchema = z72.object({
|
|
9008
9077
|
attachment: vpnProxyConfigOrganizationSchema
|
|
9009
9078
|
});
|
|
9010
|
-
var vpnProxyConfigDetachOrganizationResponseSchema =
|
|
9011
|
-
success:
|
|
9079
|
+
var vpnProxyConfigDetachOrganizationResponseSchema = z72.object({
|
|
9080
|
+
success: z72.literal(true)
|
|
9012
9081
|
});
|
|
9013
|
-
var vpnProxyConfigForOrganizationResponseSchema =
|
|
9082
|
+
var vpnProxyConfigForOrganizationResponseSchema = z72.object({
|
|
9014
9083
|
config: vpnProxyConfigSummarySchema.nullable()
|
|
9015
9084
|
});
|
|
9016
9085
|
function canonicalizeSopInput(config) {
|
|
@@ -9031,7 +9100,7 @@ function canonicalizeSopInput(config) {
|
|
|
9031
9100
|
}
|
|
9032
9101
|
__name(canonicalizeSopInput, "canonicalizeSopInput");
|
|
9033
9102
|
__name2(canonicalizeSopInput, "canonicalizeSopInput");
|
|
9034
|
-
var caseFilterStatusSchema =
|
|
9103
|
+
var caseFilterStatusSchema = z73.enum([
|
|
9035
9104
|
"pending",
|
|
9036
9105
|
"claimed",
|
|
9037
9106
|
"completed",
|
|
@@ -9039,19 +9108,19 @@ var caseFilterStatusSchema = z72.enum([
|
|
|
9039
9108
|
"needs_input",
|
|
9040
9109
|
"postponed"
|
|
9041
9110
|
]);
|
|
9042
|
-
var casesFiltersSchema =
|
|
9043
|
-
status:
|
|
9044
|
-
created_at_from:
|
|
9045
|
-
updated_at_from:
|
|
9046
|
-
labels:
|
|
9111
|
+
var casesFiltersSchema = z73.object({
|
|
9112
|
+
status: z73.array(caseFilterStatusSchema).optional(),
|
|
9113
|
+
created_at_from: z73.string().optional(),
|
|
9114
|
+
updated_at_from: z73.string().optional(),
|
|
9115
|
+
labels: z73.record(z73.string(), z73.array(z73.string())).optional()
|
|
9047
9116
|
});
|
|
9048
|
-
var casesListRequestBodySchema =
|
|
9117
|
+
var casesListRequestBodySchema = z73.object({
|
|
9049
9118
|
filters: casesFiltersSchema.default({}),
|
|
9050
|
-
limit:
|
|
9051
|
-
offset:
|
|
9052
|
-
sort_by:
|
|
9053
|
-
sort_order:
|
|
9054
|
-
search:
|
|
9119
|
+
limit: z73.int().min(1).max(100).default(25),
|
|
9120
|
+
offset: z73.int().min(0).default(0),
|
|
9121
|
+
sort_by: z73.enum(["created_at", "updated_at", "postponed_to"]).default("created_at"),
|
|
9122
|
+
sort_order: z73.enum(["asc", "desc"]).default("desc"),
|
|
9123
|
+
search: z73.string().optional()
|
|
9055
9124
|
});
|
|
9056
9125
|
function toBase64(input) {
|
|
9057
9126
|
if (typeof btoa === "function") {
|
|
@@ -9146,7 +9215,7 @@ function setFilterValuesByCategoryKey(filters, categoryKey, values) {
|
|
|
9146
9215
|
const { status: _, ...rest } = filters;
|
|
9147
9216
|
return rest;
|
|
9148
9217
|
}
|
|
9149
|
-
const parsed =
|
|
9218
|
+
const parsed = z73.array(caseFilterStatusSchema).safeParse(values);
|
|
9150
9219
|
if (!parsed.success) {
|
|
9151
9220
|
return filters;
|
|
9152
9221
|
}
|
|
@@ -10369,11 +10438,11 @@ function emptyConfig() {
|
|
|
10369
10438
|
__name(emptyConfig, "emptyConfig");
|
|
10370
10439
|
|
|
10371
10440
|
// src/config/env.ts
|
|
10372
|
-
import { z as
|
|
10373
|
-
var optionalEnvString =
|
|
10441
|
+
import { z as z74 } from "zod";
|
|
10442
|
+
var optionalEnvString = z74.string().optional().transform(
|
|
10374
10443
|
(value) => value === void 0 || value === "" ? void 0 : value
|
|
10375
10444
|
);
|
|
10376
|
-
var CliEnvSchema =
|
|
10445
|
+
var CliEnvSchema = z74.object({
|
|
10377
10446
|
DUVO_PROFILE: optionalEnvString,
|
|
10378
10447
|
DUVO_API_KEY: optionalEnvString,
|
|
10379
10448
|
DUVO_API_BASE_URL: optionalEnvString,
|
|
@@ -10870,9 +10939,9 @@ async function requireAuthenticatedConfig(command) {
|
|
|
10870
10939
|
__name(requireAuthenticatedConfig, "requireAuthenticatedConfig");
|
|
10871
10940
|
|
|
10872
10941
|
// src/commands/shared/team-context.ts
|
|
10873
|
-
import { z as
|
|
10874
|
-
var teamSchema =
|
|
10875
|
-
var listMyTeamsResponseSchema =
|
|
10942
|
+
import { z as z75 } from "zod";
|
|
10943
|
+
var teamSchema = z75.object({ id: z75.string() });
|
|
10944
|
+
var listMyTeamsResponseSchema = z75.object({ teams: z75.array(teamSchema) });
|
|
10876
10945
|
async function resolveRequiredTeamId(config, options = {}) {
|
|
10877
10946
|
if (options.override) {
|
|
10878
10947
|
return options.override;
|
|
@@ -11655,56 +11724,56 @@ import { readFile as readFile2 } from "node:fs/promises";
|
|
|
11655
11724
|
import { confirm as confirm2, isCancel as isCancel2, text } from "@clack/prompts";
|
|
11656
11725
|
|
|
11657
11726
|
// src/api/agent-schemas.ts
|
|
11658
|
-
import { z as
|
|
11727
|
+
import { z as z77 } from "zod";
|
|
11659
11728
|
|
|
11660
11729
|
// src/api/json-value.ts
|
|
11661
|
-
import { z as
|
|
11662
|
-
var jsonValueSchema =
|
|
11663
|
-
() =>
|
|
11664
|
-
|
|
11665
|
-
|
|
11666
|
-
|
|
11667
|
-
|
|
11668
|
-
|
|
11669
|
-
|
|
11730
|
+
import { z as z76 } from "zod";
|
|
11731
|
+
var jsonValueSchema = z76.lazy(
|
|
11732
|
+
() => z76.union([
|
|
11733
|
+
z76.string(),
|
|
11734
|
+
z76.number(),
|
|
11735
|
+
z76.boolean(),
|
|
11736
|
+
z76.null(),
|
|
11737
|
+
z76.array(jsonValueSchema),
|
|
11738
|
+
z76.record(z76.string(), jsonValueSchema)
|
|
11670
11739
|
])
|
|
11671
11740
|
);
|
|
11672
11741
|
|
|
11673
11742
|
// src/api/agent-schemas.ts
|
|
11674
|
-
var publicAgentSchema =
|
|
11675
|
-
id:
|
|
11676
|
-
name:
|
|
11677
|
-
slack_enabled:
|
|
11678
|
-
microsoft_teams_enabled:
|
|
11679
|
-
agentic_memory_enabled:
|
|
11680
|
-
thread_id:
|
|
11681
|
-
created_at:
|
|
11682
|
-
updated_at:
|
|
11683
|
-
latest_build:
|
|
11684
|
-
});
|
|
11685
|
-
var publicBuildSchema =
|
|
11686
|
-
id:
|
|
11687
|
-
agent_id:
|
|
11688
|
-
name:
|
|
11689
|
-
revision_number:
|
|
11690
|
-
created_at:
|
|
11691
|
-
updated_at:
|
|
11692
|
-
});
|
|
11693
|
-
var listAgentsResponseSchema =
|
|
11694
|
-
agents:
|
|
11695
|
-
total:
|
|
11696
|
-
limit:
|
|
11697
|
-
offset:
|
|
11698
|
-
});
|
|
11699
|
-
var getAgentResponseSchema =
|
|
11743
|
+
var publicAgentSchema = z77.object({
|
|
11744
|
+
id: z77.string(),
|
|
11745
|
+
name: z77.string(),
|
|
11746
|
+
slack_enabled: z77.boolean().nullish(),
|
|
11747
|
+
microsoft_teams_enabled: z77.boolean().nullish(),
|
|
11748
|
+
agentic_memory_enabled: z77.boolean().nullish(),
|
|
11749
|
+
thread_id: z77.string().nullish(),
|
|
11750
|
+
created_at: z77.string().nullish(),
|
|
11751
|
+
updated_at: z77.string().nullish(),
|
|
11752
|
+
latest_build: z77.object({ config: jsonValueSchema.nullish() }).nullish()
|
|
11753
|
+
});
|
|
11754
|
+
var publicBuildSchema = z77.object({
|
|
11755
|
+
id: z77.string(),
|
|
11756
|
+
agent_id: z77.string(),
|
|
11757
|
+
name: z77.string(),
|
|
11758
|
+
revision_number: z77.number().nullish(),
|
|
11759
|
+
created_at: z77.string().nullish(),
|
|
11760
|
+
updated_at: z77.string().nullish()
|
|
11761
|
+
});
|
|
11762
|
+
var listAgentsResponseSchema = z77.object({
|
|
11763
|
+
agents: z77.array(publicAgentSchema),
|
|
11764
|
+
total: z77.number().nullish(),
|
|
11765
|
+
limit: z77.number().nullish(),
|
|
11766
|
+
offset: z77.number().nullish()
|
|
11767
|
+
});
|
|
11768
|
+
var getAgentResponseSchema = z77.object({
|
|
11700
11769
|
agent: publicAgentSchema
|
|
11701
11770
|
});
|
|
11702
|
-
var createAgentResponseSchema =
|
|
11771
|
+
var createAgentResponseSchema = z77.object({
|
|
11703
11772
|
agent: publicAgentSchema,
|
|
11704
11773
|
build: publicBuildSchema.optional()
|
|
11705
11774
|
});
|
|
11706
|
-
var deleteAgentResponseSchema =
|
|
11707
|
-
success:
|
|
11775
|
+
var deleteAgentResponseSchema = z77.object({
|
|
11776
|
+
success: z77.literal(true)
|
|
11708
11777
|
});
|
|
11709
11778
|
var buildConfigSchema = StoredAgentConfigSchemaV2;
|
|
11710
11779
|
var DEFAULT_NEW_AGENT_NAME = DEFAULT_AGENT_NAME;
|
|
@@ -12154,29 +12223,29 @@ function registerAgentsEvalScores(agents) {
|
|
|
12154
12223
|
__name(registerAgentsEvalScores, "registerAgentsEvalScores");
|
|
12155
12224
|
|
|
12156
12225
|
// src/api/build-schemas.ts
|
|
12157
|
-
import { z as
|
|
12158
|
-
var publicBuildSchema2 =
|
|
12159
|
-
id:
|
|
12160
|
-
agent_id:
|
|
12161
|
-
name:
|
|
12162
|
-
status:
|
|
12226
|
+
import { z as z78 } from "zod";
|
|
12227
|
+
var publicBuildSchema2 = z78.object({
|
|
12228
|
+
id: z78.string(),
|
|
12229
|
+
agent_id: z78.string(),
|
|
12230
|
+
name: z78.string(),
|
|
12231
|
+
status: z78.string().nullish(),
|
|
12163
12232
|
config: jsonValueSchema.nullish(),
|
|
12164
|
-
revision_number:
|
|
12165
|
-
created_at:
|
|
12166
|
-
updated_at:
|
|
12233
|
+
revision_number: z78.number().nullish(),
|
|
12234
|
+
created_at: z78.string().nullish(),
|
|
12235
|
+
updated_at: z78.string().nullish()
|
|
12167
12236
|
});
|
|
12168
|
-
var listBuildsResponseSchema2 =
|
|
12169
|
-
builds:
|
|
12170
|
-
total:
|
|
12171
|
-
limit:
|
|
12172
|
-
offset:
|
|
12237
|
+
var listBuildsResponseSchema2 = z78.object({
|
|
12238
|
+
builds: z78.array(publicBuildSchema2),
|
|
12239
|
+
total: z78.number().nullish(),
|
|
12240
|
+
limit: z78.number().nullish(),
|
|
12241
|
+
offset: z78.number().nullish()
|
|
12173
12242
|
});
|
|
12174
|
-
var getBuildResponseSchema =
|
|
12243
|
+
var getBuildResponseSchema = z78.object({
|
|
12175
12244
|
build: publicBuildSchema2
|
|
12176
12245
|
});
|
|
12177
|
-
var createBuildResponseSchema =
|
|
12246
|
+
var createBuildResponseSchema = z78.object({
|
|
12178
12247
|
build: publicBuildSchema2,
|
|
12179
|
-
agent:
|
|
12248
|
+
agent: z78.object({ id: z78.string() })
|
|
12180
12249
|
});
|
|
12181
12250
|
|
|
12182
12251
|
// src/commands/agents/get.ts
|
|
@@ -12426,30 +12495,30 @@ function registerAgentsModels(agents) {
|
|
|
12426
12495
|
__name(registerAgentsModels, "registerAgentsModels");
|
|
12427
12496
|
|
|
12428
12497
|
// src/api/schedule-schemas.ts
|
|
12429
|
-
import { z as
|
|
12430
|
-
var publicScheduleSchema =
|
|
12431
|
-
id:
|
|
12432
|
-
build_id:
|
|
12433
|
-
agent_id:
|
|
12434
|
-
user_id:
|
|
12435
|
-
enabled:
|
|
12436
|
-
frequency:
|
|
12437
|
-
time:
|
|
12438
|
-
timezone:
|
|
12439
|
-
day:
|
|
12440
|
-
day_of_month:
|
|
12441
|
-
cron:
|
|
12442
|
-
source:
|
|
12443
|
-
task:
|
|
12444
|
-
recurring:
|
|
12445
|
-
created_at:
|
|
12446
|
-
updated_at:
|
|
12447
|
-
});
|
|
12448
|
-
var listSchedulesResponseSchema =
|
|
12449
|
-
schedules:
|
|
12450
|
-
});
|
|
12451
|
-
var deleteScheduleResponseSchema =
|
|
12452
|
-
success:
|
|
12498
|
+
import { z as z79 } from "zod";
|
|
12499
|
+
var publicScheduleSchema = z79.object({
|
|
12500
|
+
id: z79.string(),
|
|
12501
|
+
build_id: z79.string(),
|
|
12502
|
+
agent_id: z79.string(),
|
|
12503
|
+
user_id: z79.string(),
|
|
12504
|
+
enabled: z79.boolean(),
|
|
12505
|
+
frequency: z79.string(),
|
|
12506
|
+
time: z79.string().nullish(),
|
|
12507
|
+
timezone: z79.string(),
|
|
12508
|
+
day: z79.string().nullish(),
|
|
12509
|
+
day_of_month: z79.number().nullish(),
|
|
12510
|
+
cron: z79.string().nullish(),
|
|
12511
|
+
source: z79.string().nullish(),
|
|
12512
|
+
task: z79.string().nullish(),
|
|
12513
|
+
recurring: z79.boolean().nullish(),
|
|
12514
|
+
created_at: z79.string(),
|
|
12515
|
+
updated_at: z79.string()
|
|
12516
|
+
});
|
|
12517
|
+
var listSchedulesResponseSchema = z79.object({
|
|
12518
|
+
schedules: z79.array(publicScheduleSchema)
|
|
12519
|
+
});
|
|
12520
|
+
var deleteScheduleResponseSchema = z79.object({
|
|
12521
|
+
success: z79.literal(true)
|
|
12453
12522
|
});
|
|
12454
12523
|
|
|
12455
12524
|
// src/commands/agents/schedules/render-schedule.ts
|
|
@@ -12897,33 +12966,33 @@ function registerAgentsSetModel(agents) {
|
|
|
12897
12966
|
__name(registerAgentsSetModel, "registerAgentsSetModel");
|
|
12898
12967
|
|
|
12899
12968
|
// src/api/trigger-schemas.ts
|
|
12900
|
-
import { z as
|
|
12901
|
-
var triggerSchema =
|
|
12902
|
-
id:
|
|
12903
|
-
agent_id:
|
|
12904
|
-
user_id:
|
|
12905
|
-
integration_slug:
|
|
12906
|
-
trigger_type:
|
|
12907
|
-
filter_config:
|
|
12908
|
-
integration_instance_id:
|
|
12909
|
-
enabled:
|
|
12910
|
-
created_at:
|
|
12911
|
-
updated_at:
|
|
12969
|
+
import { z as z80 } from "zod";
|
|
12970
|
+
var triggerSchema = z80.object({
|
|
12971
|
+
id: z80.string(),
|
|
12972
|
+
agent_id: z80.string(),
|
|
12973
|
+
user_id: z80.string(),
|
|
12974
|
+
integration_slug: z80.string(),
|
|
12975
|
+
trigger_type: z80.string(),
|
|
12976
|
+
filter_config: z80.record(z80.string(), z80.unknown()),
|
|
12977
|
+
integration_instance_id: z80.string(),
|
|
12978
|
+
enabled: z80.boolean(),
|
|
12979
|
+
created_at: z80.string(),
|
|
12980
|
+
updated_at: z80.string()
|
|
12912
12981
|
});
|
|
12913
|
-
var listTriggersResponseSchema =
|
|
12914
|
-
triggers:
|
|
12982
|
+
var listTriggersResponseSchema = z80.object({
|
|
12983
|
+
triggers: z80.array(triggerSchema)
|
|
12915
12984
|
});
|
|
12916
|
-
var triggerTypeSchema =
|
|
12917
|
-
integration_slug:
|
|
12918
|
-
integration_name:
|
|
12919
|
-
icon_url:
|
|
12920
|
-
trigger_type:
|
|
12921
|
-
label:
|
|
12922
|
-
description:
|
|
12923
|
-
filter_schema:
|
|
12985
|
+
var triggerTypeSchema = z80.object({
|
|
12986
|
+
integration_slug: z80.string(),
|
|
12987
|
+
integration_name: z80.string(),
|
|
12988
|
+
icon_url: z80.string(),
|
|
12989
|
+
trigger_type: z80.string(),
|
|
12990
|
+
label: z80.string(),
|
|
12991
|
+
description: z80.string(),
|
|
12992
|
+
filter_schema: z80.record(z80.string(), z80.unknown())
|
|
12924
12993
|
});
|
|
12925
|
-
var listTriggerTypesResponseSchema =
|
|
12926
|
-
trigger_types:
|
|
12994
|
+
var listTriggerTypesResponseSchema = z80.object({
|
|
12995
|
+
trigger_types: z80.array(triggerTypeSchema)
|
|
12927
12996
|
});
|
|
12928
12997
|
|
|
12929
12998
|
// src/commands/agents/triggers/list.ts
|
|
@@ -13547,55 +13616,55 @@ function fieldsToSearchParams(fields) {
|
|
|
13547
13616
|
__name(fieldsToSearchParams, "fieldsToSearchParams");
|
|
13548
13617
|
|
|
13549
13618
|
// src/api/integration-schemas.ts
|
|
13550
|
-
import { z as
|
|
13551
|
-
var integrationSchema =
|
|
13552
|
-
id:
|
|
13553
|
-
name:
|
|
13554
|
-
type:
|
|
13555
|
-
provider:
|
|
13556
|
-
user_id:
|
|
13557
|
-
team_id:
|
|
13558
|
-
server_url:
|
|
13559
|
-
transport_type:
|
|
13560
|
-
auth_method:
|
|
13561
|
-
composio_mcp_id:
|
|
13562
|
-
custom_integration_id:
|
|
13563
|
-
icon_url:
|
|
13564
|
-
oauth_provider:
|
|
13565
|
-
oauth_provider_key:
|
|
13566
|
-
oauth_scopes:
|
|
13567
|
-
integration_id:
|
|
13568
|
-
created_at:
|
|
13569
|
-
updated_at:
|
|
13570
|
-
});
|
|
13571
|
-
var integrationsListResponseSchema2 =
|
|
13572
|
-
integrations:
|
|
13619
|
+
import { z as z81 } from "zod";
|
|
13620
|
+
var integrationSchema = z81.object({
|
|
13621
|
+
id: z81.string(),
|
|
13622
|
+
name: z81.string(),
|
|
13623
|
+
type: z81.string(),
|
|
13624
|
+
provider: z81.string(),
|
|
13625
|
+
user_id: z81.string().nullable(),
|
|
13626
|
+
team_id: z81.string(),
|
|
13627
|
+
server_url: z81.string().optional(),
|
|
13628
|
+
transport_type: z81.string().optional(),
|
|
13629
|
+
auth_method: z81.string().nullish(),
|
|
13630
|
+
composio_mcp_id: z81.string().nullish(),
|
|
13631
|
+
custom_integration_id: z81.string().nullish(),
|
|
13632
|
+
icon_url: z81.string().nullish(),
|
|
13633
|
+
oauth_provider: z81.string().nullish(),
|
|
13634
|
+
oauth_provider_key: z81.string().nullish(),
|
|
13635
|
+
oauth_scopes: z81.array(z81.string()).nullish(),
|
|
13636
|
+
integration_id: z81.string().nullish(),
|
|
13637
|
+
created_at: z81.string(),
|
|
13638
|
+
updated_at: z81.string()
|
|
13639
|
+
});
|
|
13640
|
+
var integrationsListResponseSchema2 = z81.object({
|
|
13641
|
+
integrations: z81.array(integrationSchema)
|
|
13573
13642
|
});
|
|
13574
13643
|
var connectionResponseSchema = integrationSchema;
|
|
13575
|
-
var buildIntegrationConfigSchema2 =
|
|
13576
|
-
id:
|
|
13577
|
-
integration_id:
|
|
13578
|
-
custom_integration_id:
|
|
13579
|
-
integration_type:
|
|
13580
|
-
integration_name:
|
|
13581
|
-
created_at:
|
|
13644
|
+
var buildIntegrationConfigSchema2 = z81.object({
|
|
13645
|
+
id: z81.string(),
|
|
13646
|
+
integration_id: z81.string().nullable(),
|
|
13647
|
+
custom_integration_id: z81.string().nullable(),
|
|
13648
|
+
integration_type: z81.string(),
|
|
13649
|
+
integration_name: z81.string(),
|
|
13650
|
+
created_at: z81.string()
|
|
13582
13651
|
});
|
|
13583
|
-
var listBuildIntegrationsResponseSchema2 =
|
|
13584
|
-
integrations:
|
|
13652
|
+
var listBuildIntegrationsResponseSchema2 = z81.object({
|
|
13653
|
+
integrations: z81.array(buildIntegrationConfigSchema2)
|
|
13585
13654
|
});
|
|
13586
|
-
var attachBuildIntegrationsResponseSchema =
|
|
13587
|
-
success:
|
|
13588
|
-
count:
|
|
13655
|
+
var attachBuildIntegrationsResponseSchema = z81.object({
|
|
13656
|
+
success: z81.boolean(),
|
|
13657
|
+
count: z81.number()
|
|
13589
13658
|
});
|
|
13590
|
-
var buildIntegrationConnectionSchema =
|
|
13591
|
-
connection_id:
|
|
13592
|
-
created_at:
|
|
13659
|
+
var buildIntegrationConnectionSchema = z81.object({
|
|
13660
|
+
connection_id: z81.string(),
|
|
13661
|
+
created_at: z81.string()
|
|
13593
13662
|
});
|
|
13594
|
-
var listBuildIntegrationConnectionsResponseSchema =
|
|
13595
|
-
connections:
|
|
13663
|
+
var listBuildIntegrationConnectionsResponseSchema = z81.object({
|
|
13664
|
+
connections: z81.array(buildIntegrationConnectionSchema)
|
|
13596
13665
|
});
|
|
13597
|
-
var successResponseSchema =
|
|
13598
|
-
success:
|
|
13666
|
+
var successResponseSchema = z81.object({
|
|
13667
|
+
success: z81.boolean()
|
|
13599
13668
|
});
|
|
13600
13669
|
|
|
13601
13670
|
// src/commands/build-integrations/attach.ts
|
|
@@ -13638,15 +13707,15 @@ function registerBuildIntegrationsAttach(buildIntegrations) {
|
|
|
13638
13707
|
__name(registerBuildIntegrationsAttach, "registerBuildIntegrationsAttach");
|
|
13639
13708
|
|
|
13640
13709
|
// src/commands/build-integrations/case-queue-setup.ts
|
|
13641
|
-
import { z as
|
|
13642
|
-
var slotSchema =
|
|
13643
|
-
config_id:
|
|
13644
|
-
integration_type:
|
|
13645
|
-
linked_queue_count:
|
|
13710
|
+
import { z as z82 } from "zod";
|
|
13711
|
+
var slotSchema = z82.object({
|
|
13712
|
+
config_id: z82.string(),
|
|
13713
|
+
integration_type: z82.string(),
|
|
13714
|
+
linked_queue_count: z82.number()
|
|
13646
13715
|
});
|
|
13647
|
-
var responseSchema2 =
|
|
13648
|
-
configs:
|
|
13649
|
-
has_available_queues:
|
|
13716
|
+
var responseSchema2 = z82.object({
|
|
13717
|
+
configs: z82.array(slotSchema),
|
|
13718
|
+
has_available_queues: z82.boolean()
|
|
13650
13719
|
});
|
|
13651
13720
|
var TABLE_COLUMNS10 = [
|
|
13652
13721
|
{ header: "SLOT ID", cell: /* @__PURE__ */ __name((row) => row.config_id, "cell") },
|
|
@@ -14141,9 +14210,9 @@ function registerBuildsList(builds) {
|
|
|
14141
14210
|
__name(registerBuildsList, "registerBuildsList");
|
|
14142
14211
|
|
|
14143
14212
|
// src/commands/builds/promote.ts
|
|
14144
|
-
import { z as
|
|
14145
|
-
var promoteResponseSchema =
|
|
14146
|
-
success:
|
|
14213
|
+
import { z as z83 } from "zod";
|
|
14214
|
+
var promoteResponseSchema = z83.object({
|
|
14215
|
+
success: z83.boolean()
|
|
14147
14216
|
});
|
|
14148
14217
|
function registerBuildsPromote(builds) {
|
|
14149
14218
|
builds.command("promote <id>").description(
|
|
@@ -15154,7 +15223,7 @@ function parseSortOrder(raw) {
|
|
|
15154
15223
|
__name(parseSortOrder, "parseSortOrder");
|
|
15155
15224
|
|
|
15156
15225
|
// src/commands/cases/runs.ts
|
|
15157
|
-
import { z as
|
|
15226
|
+
import { z as z84 } from "zod";
|
|
15158
15227
|
var MIN_LIMIT4 = 1;
|
|
15159
15228
|
var MAX_LIMIT4 = 10;
|
|
15160
15229
|
var DEFAULT_LIMIT4 = 3;
|
|
@@ -15172,17 +15241,17 @@ var RUNS_TABLE_COLUMNS = [
|
|
|
15172
15241
|
cell: /* @__PURE__ */ __name((row) => row.has_pending_human_request ? row.pending_human_request_title ?? "(unknown)" : "", "cell")
|
|
15173
15242
|
}
|
|
15174
15243
|
];
|
|
15175
|
-
var recentMessageSchema =
|
|
15176
|
-
id:
|
|
15177
|
-
type:
|
|
15178
|
-
role:
|
|
15179
|
-
timestamp:
|
|
15180
|
-
text_content:
|
|
15181
|
-
tool_call:
|
|
15182
|
-
tool_result:
|
|
15183
|
-
});
|
|
15184
|
-
var recentMessagesResponseSchema =
|
|
15185
|
-
messages:
|
|
15244
|
+
var recentMessageSchema = z84.object({
|
|
15245
|
+
id: z84.string(),
|
|
15246
|
+
type: z84.string(),
|
|
15247
|
+
role: z84.string(),
|
|
15248
|
+
timestamp: z84.string(),
|
|
15249
|
+
text_content: z84.string().nullish(),
|
|
15250
|
+
tool_call: z84.object({ id: z84.string(), name: z84.string() }).passthrough().nullish(),
|
|
15251
|
+
tool_result: z84.object({ tool_call_id: z84.string() }).passthrough().nullish()
|
|
15252
|
+
});
|
|
15253
|
+
var recentMessagesResponseSchema = z84.object({
|
|
15254
|
+
messages: z84.array(recentMessageSchema)
|
|
15186
15255
|
});
|
|
15187
15256
|
var TEXT_PREVIEW_WIDTH = 60;
|
|
15188
15257
|
var MESSAGES_TABLE_COLUMNS = [
|
|
@@ -15311,55 +15380,55 @@ function registerCases(program) {
|
|
|
15311
15380
|
__name(registerCases, "registerCases");
|
|
15312
15381
|
|
|
15313
15382
|
// src/api/clarity-schemas.ts
|
|
15314
|
-
import { z as
|
|
15315
|
-
var clarityListProcessSchema =
|
|
15316
|
-
id:
|
|
15317
|
-
name:
|
|
15383
|
+
import { z as z85 } from "zod";
|
|
15384
|
+
var clarityListProcessSchema = z85.object({
|
|
15385
|
+
id: z85.guid(),
|
|
15386
|
+
name: z85.string(),
|
|
15318
15387
|
status: clarityProcessStatusSchema,
|
|
15319
15388
|
visibility: clarityProcessVisibilitySchema,
|
|
15320
|
-
version:
|
|
15321
|
-
capture_count:
|
|
15322
|
-
capture_counts:
|
|
15323
|
-
video:
|
|
15324
|
-
interview:
|
|
15325
|
-
document:
|
|
15389
|
+
version: z85.number().int(),
|
|
15390
|
+
capture_count: z85.number().int(),
|
|
15391
|
+
capture_counts: z85.object({
|
|
15392
|
+
video: z85.number().int(),
|
|
15393
|
+
interview: z85.number().int(),
|
|
15394
|
+
document: z85.number().int()
|
|
15326
15395
|
}).optional(),
|
|
15327
|
-
pending_invitation_count:
|
|
15328
|
-
contributors:
|
|
15329
|
-
|
|
15330
|
-
user_id:
|
|
15331
|
-
user_name:
|
|
15396
|
+
pending_invitation_count: z85.number().int(),
|
|
15397
|
+
contributors: z85.array(
|
|
15398
|
+
z85.object({
|
|
15399
|
+
user_id: z85.string(),
|
|
15400
|
+
user_name: z85.string()
|
|
15332
15401
|
})
|
|
15333
15402
|
),
|
|
15334
|
-
created_at:
|
|
15335
|
-
created_by_name:
|
|
15336
|
-
});
|
|
15337
|
-
var listClarityProcessesResponseSchema =
|
|
15338
|
-
processes:
|
|
15339
|
-
total:
|
|
15340
|
-
limit:
|
|
15341
|
-
offset:
|
|
15342
|
-
});
|
|
15343
|
-
var createClarityInviteLinkResponseSchema =
|
|
15344
|
-
invite_link:
|
|
15345
|
-
id:
|
|
15346
|
-
url:
|
|
15347
|
-
created_at:
|
|
15348
|
-
created_by:
|
|
15349
|
-
id:
|
|
15350
|
-
email:
|
|
15403
|
+
created_at: z85.string(),
|
|
15404
|
+
created_by_name: z85.string().nullable()
|
|
15405
|
+
});
|
|
15406
|
+
var listClarityProcessesResponseSchema = z85.object({
|
|
15407
|
+
processes: z85.array(clarityListProcessSchema),
|
|
15408
|
+
total: z85.number().int(),
|
|
15409
|
+
limit: z85.number().int(),
|
|
15410
|
+
offset: z85.number().int()
|
|
15411
|
+
});
|
|
15412
|
+
var createClarityInviteLinkResponseSchema = z85.object({
|
|
15413
|
+
invite_link: z85.object({
|
|
15414
|
+
id: z85.guid(),
|
|
15415
|
+
url: z85.url(),
|
|
15416
|
+
created_at: z85.string(),
|
|
15417
|
+
created_by: z85.object({
|
|
15418
|
+
id: z85.guid(),
|
|
15419
|
+
email: z85.email().nullable()
|
|
15351
15420
|
})
|
|
15352
15421
|
})
|
|
15353
15422
|
});
|
|
15354
|
-
var createArtifactImportUploadUrlResponseSchema =
|
|
15355
|
-
signed_url:
|
|
15356
|
-
capture_id:
|
|
15357
|
-
expires_at:
|
|
15423
|
+
var createArtifactImportUploadUrlResponseSchema = z85.object({
|
|
15424
|
+
signed_url: z85.url(),
|
|
15425
|
+
capture_id: z85.guid(),
|
|
15426
|
+
expires_at: z85.iso.datetime()
|
|
15358
15427
|
});
|
|
15359
|
-
var completeArtifactImportResponseSchema =
|
|
15428
|
+
var completeArtifactImportResponseSchema = z85.object({
|
|
15360
15429
|
capture: clarityCaptureSchema.extend({
|
|
15361
|
-
createdAt:
|
|
15362
|
-
updatedAt:
|
|
15430
|
+
createdAt: z85.iso.datetime(),
|
|
15431
|
+
updatedAt: z85.iso.datetime()
|
|
15363
15432
|
})
|
|
15364
15433
|
});
|
|
15365
15434
|
var legacyClarityProcessResponseSchema = legacyClarityProcessDetailSchema;
|
|
@@ -15798,8 +15867,8 @@ function renderCompletedImport(response) {
|
|
|
15798
15867
|
__name(renderCompletedImport, "renderCompletedImport");
|
|
15799
15868
|
|
|
15800
15869
|
// src/commands/clarity/assign-extra-capture-request.ts
|
|
15801
|
-
import { z as
|
|
15802
|
-
var responseSchema3 =
|
|
15870
|
+
import { z as z86 } from "zod";
|
|
15871
|
+
var responseSchema3 = z86.object({
|
|
15803
15872
|
request: clarityProposalExtraCaptureRequestSchema
|
|
15804
15873
|
});
|
|
15805
15874
|
function renderRequest(request) {
|
|
@@ -15846,11 +15915,11 @@ function registerClarityAssignExtraCaptureRequest(clarity) {
|
|
|
15846
15915
|
__name(registerClarityAssignExtraCaptureRequest, "registerClarityAssignExtraCaptureRequest");
|
|
15847
15916
|
|
|
15848
15917
|
// src/commands/clarity/build-automation.ts
|
|
15849
|
-
import { z as
|
|
15850
|
-
var responseSchema4 =
|
|
15851
|
-
automation_run:
|
|
15852
|
-
id:
|
|
15853
|
-
status:
|
|
15918
|
+
import { z as z87 } from "zod";
|
|
15919
|
+
var responseSchema4 = z87.object({
|
|
15920
|
+
automation_run: z87.object({
|
|
15921
|
+
id: z87.string(),
|
|
15922
|
+
status: z87.string()
|
|
15854
15923
|
})
|
|
15855
15924
|
});
|
|
15856
15925
|
function registerClarityBuildAutomation(clarity) {
|
|
@@ -15921,7 +15990,7 @@ function registerClarityCreateInviteLink(clarity) {
|
|
|
15921
15990
|
__name(registerClarityCreateInviteLink, "registerClarityCreateInviteLink");
|
|
15922
15991
|
|
|
15923
15992
|
// src/commands/clarity/doctor.ts
|
|
15924
|
-
import { z as
|
|
15993
|
+
import { z as z88 } from "zod";
|
|
15925
15994
|
|
|
15926
15995
|
// src/commands/clarity/render.ts
|
|
15927
15996
|
var DEFAULT_HUMAN_SUMMARY_LIMIT = 1200;
|
|
@@ -17519,6 +17588,19 @@ var CLARITY_WRITE_TOOLS = [
|
|
|
17519
17588
|
}
|
|
17520
17589
|
],
|
|
17521
17590
|
description: "Confirm a landscape node placement, content, or existence axis."
|
|
17591
|
+
},
|
|
17592
|
+
{
|
|
17593
|
+
name: "generateClarityProcessLandscape",
|
|
17594
|
+
scope: "v1+v2",
|
|
17595
|
+
read_only: false,
|
|
17596
|
+
commands: ["duvo clarity landscape generate"],
|
|
17597
|
+
endpoints: [
|
|
17598
|
+
{
|
|
17599
|
+
method: "POST",
|
|
17600
|
+
path: "/v2/organizations/:orgId/clarity/hierarchy/landscape/generate"
|
|
17601
|
+
}
|
|
17602
|
+
],
|
|
17603
|
+
description: "Start a process-landscape generation run from the organization's eligible Clarity captures."
|
|
17522
17604
|
}
|
|
17523
17605
|
];
|
|
17524
17606
|
var CLARITY_TOOLS = [
|
|
@@ -17691,8 +17773,8 @@ async function buildTeamContextCheck(config) {
|
|
|
17691
17773
|
}
|
|
17692
17774
|
}
|
|
17693
17775
|
__name(buildTeamContextCheck, "buildTeamContextCheck");
|
|
17694
|
-
var listMyTeamsResponseSchema2 =
|
|
17695
|
-
teams:
|
|
17776
|
+
var listMyTeamsResponseSchema2 = z88.object({
|
|
17777
|
+
teams: z88.array(z88.object({ id: z88.string() }))
|
|
17696
17778
|
});
|
|
17697
17779
|
async function buildClarityApiReachableCheck(command, config) {
|
|
17698
17780
|
let teamId;
|
|
@@ -18310,19 +18392,19 @@ function buildGenerateTransformationProposalBody(options) {
|
|
|
18310
18392
|
__name(buildGenerateTransformationProposalBody, "buildGenerateTransformationProposalBody");
|
|
18311
18393
|
|
|
18312
18394
|
// src/commands/clarity/get-current-process.ts
|
|
18313
|
-
import { z as
|
|
18314
|
-
var snapshotSchema =
|
|
18315
|
-
snapshot:
|
|
18316
|
-
id:
|
|
18317
|
-
kind:
|
|
18318
|
-
source_snapshot_id:
|
|
18319
|
-
parent_id:
|
|
18320
|
-
status:
|
|
18321
|
-
creator_type:
|
|
18322
|
-
user_id:
|
|
18323
|
-
sandbox_id:
|
|
18324
|
-
created_at:
|
|
18325
|
-
updated_at:
|
|
18395
|
+
import { z as z89 } from "zod";
|
|
18396
|
+
var snapshotSchema = z89.object({
|
|
18397
|
+
snapshot: z89.object({
|
|
18398
|
+
id: z89.string(),
|
|
18399
|
+
kind: z89.string(),
|
|
18400
|
+
source_snapshot_id: z89.string().nullable(),
|
|
18401
|
+
parent_id: z89.string().nullable(),
|
|
18402
|
+
status: z89.string(),
|
|
18403
|
+
creator_type: z89.string(),
|
|
18404
|
+
user_id: z89.string().nullable(),
|
|
18405
|
+
sandbox_id: z89.string().nullable(),
|
|
18406
|
+
created_at: z89.string(),
|
|
18407
|
+
updated_at: z89.string()
|
|
18326
18408
|
})
|
|
18327
18409
|
});
|
|
18328
18410
|
function registerClarityGetCurrentProcess(clarity) {
|
|
@@ -18366,19 +18448,19 @@ function registerClarityGetCurrentProcess(clarity) {
|
|
|
18366
18448
|
__name(registerClarityGetCurrentProcess, "registerClarityGetCurrentProcess");
|
|
18367
18449
|
|
|
18368
18450
|
// src/commands/clarity/get-transformation-proposal.ts
|
|
18369
|
-
import { z as
|
|
18370
|
-
var snapshotSchema2 =
|
|
18371
|
-
snapshot:
|
|
18372
|
-
id:
|
|
18373
|
-
kind:
|
|
18374
|
-
source_snapshot_id:
|
|
18375
|
-
parent_id:
|
|
18376
|
-
status:
|
|
18377
|
-
creator_type:
|
|
18378
|
-
user_id:
|
|
18379
|
-
sandbox_id:
|
|
18380
|
-
created_at:
|
|
18381
|
-
updated_at:
|
|
18451
|
+
import { z as z90 } from "zod";
|
|
18452
|
+
var snapshotSchema2 = z90.object({
|
|
18453
|
+
snapshot: z90.object({
|
|
18454
|
+
id: z90.string(),
|
|
18455
|
+
kind: z90.string(),
|
|
18456
|
+
source_snapshot_id: z90.string().nullable(),
|
|
18457
|
+
parent_id: z90.string().nullable(),
|
|
18458
|
+
status: z90.string(),
|
|
18459
|
+
creator_type: z90.string(),
|
|
18460
|
+
user_id: z90.string().nullable(),
|
|
18461
|
+
sandbox_id: z90.string().nullable(),
|
|
18462
|
+
created_at: z90.string(),
|
|
18463
|
+
updated_at: z90.string()
|
|
18382
18464
|
})
|
|
18383
18465
|
});
|
|
18384
18466
|
function registerClarityGetTransformationProposal(clarity) {
|
|
@@ -18474,74 +18556,79 @@ Transformation proposal versions (${tpVersions.length}):`
|
|
|
18474
18556
|
__name(registerClarityGet, "registerClarityGet");
|
|
18475
18557
|
|
|
18476
18558
|
// src/commands/clarity/landscape.ts
|
|
18477
|
-
import { z as
|
|
18559
|
+
import { z as z91 } from "zod";
|
|
18478
18560
|
var ORG_FLAG_DESCRIPTION = "organization id for the org-scoped process landscape (overrides DUVO_ORG_ID)";
|
|
18479
18561
|
var LANDSCAPE_RESOURCE_PATH = "/clarity/hierarchy/landscape";
|
|
18480
18562
|
var TREE_RESOURCE_PATH = "/clarity/hierarchy/tree";
|
|
18481
18563
|
var NODES_RESOURCE_PATH = "/clarity/hierarchy/nodes";
|
|
18482
18564
|
var PROCESS_NODE_TYPE = "process";
|
|
18483
18565
|
var AREA_NODE_TYPE = "area";
|
|
18484
|
-
var
|
|
18485
|
-
var
|
|
18486
|
-
|
|
18487
|
-
|
|
18488
|
-
name: z90.string()
|
|
18566
|
+
var axisSchema = z91.enum(["content", "existence"]);
|
|
18567
|
+
var processSummarySchema = z91.object({
|
|
18568
|
+
id: z91.string(),
|
|
18569
|
+
name: z91.string()
|
|
18489
18570
|
}).passthrough();
|
|
18490
|
-
var landscapeNodeSchema =
|
|
18491
|
-
id:
|
|
18492
|
-
parentId:
|
|
18493
|
-
processId:
|
|
18494
|
-
name:
|
|
18495
|
-
ownerLabel:
|
|
18496
|
-
placementState: placementStateSchema,
|
|
18571
|
+
var landscapeNodeSchema = z91.object({
|
|
18572
|
+
id: z91.string(),
|
|
18573
|
+
parentId: z91.string().nullable(),
|
|
18574
|
+
processId: z91.string().nullable(),
|
|
18575
|
+
name: z91.string(),
|
|
18576
|
+
ownerLabel: z91.string().nullable(),
|
|
18497
18577
|
process: processSummarySchema.nullable()
|
|
18498
18578
|
}).passthrough();
|
|
18499
|
-
var
|
|
18500
|
-
|
|
18501
|
-
|
|
18502
|
-
|
|
18503
|
-
|
|
18504
|
-
|
|
18505
|
-
|
|
18506
|
-
|
|
18579
|
+
var unlinkedProcessSchema = processSummarySchema.extend({
|
|
18580
|
+
teamId: z91.string(),
|
|
18581
|
+
teamName: z91.string().nullable()
|
|
18582
|
+
}).passthrough();
|
|
18583
|
+
var treeNodeSchema = z91.object({
|
|
18584
|
+
id: z91.string(),
|
|
18585
|
+
parentId: z91.string().nullable(),
|
|
18586
|
+
processId: z91.string().nullable(),
|
|
18587
|
+
name: z91.string(),
|
|
18588
|
+
ownerLabel: z91.string().nullable(),
|
|
18589
|
+
depth: z91.number()
|
|
18507
18590
|
}).passthrough();
|
|
18508
|
-
var landscapeResponseSchema =
|
|
18509
|
-
nodes:
|
|
18510
|
-
links:
|
|
18511
|
-
|
|
18512
|
-
id:
|
|
18513
|
-
sourceNodeId:
|
|
18514
|
-
targetNodeId:
|
|
18515
|
-
type:
|
|
18516
|
-
state:
|
|
18517
|
-
confidence:
|
|
18591
|
+
var landscapeResponseSchema = z91.object({
|
|
18592
|
+
nodes: z91.array(landscapeNodeSchema),
|
|
18593
|
+
links: z91.array(
|
|
18594
|
+
z91.object({
|
|
18595
|
+
id: z91.string(),
|
|
18596
|
+
sourceNodeId: z91.string(),
|
|
18597
|
+
targetNodeId: z91.string(),
|
|
18598
|
+
type: z91.string(),
|
|
18599
|
+
state: z91.string(),
|
|
18600
|
+
confidence: z91.number().nullable()
|
|
18518
18601
|
}).passthrough()
|
|
18519
18602
|
),
|
|
18520
|
-
|
|
18521
|
-
|
|
18522
|
-
|
|
18523
|
-
|
|
18524
|
-
|
|
18525
|
-
|
|
18526
|
-
latestUpdatedAt:
|
|
18603
|
+
unlinkedProcesses: z91.array(unlinkedProcessSchema),
|
|
18604
|
+
stats: z91.object({
|
|
18605
|
+
totalNodes: z91.number(),
|
|
18606
|
+
processNodes: z91.number(),
|
|
18607
|
+
proposedNodes: z91.number(),
|
|
18608
|
+
unsortedProcesses: z91.number(),
|
|
18609
|
+
latestUpdatedAt: z91.string().nullable()
|
|
18527
18610
|
}).passthrough(),
|
|
18528
|
-
truncated:
|
|
18611
|
+
truncated: z91.boolean()
|
|
18529
18612
|
}).passthrough();
|
|
18530
|
-
var treeResponseSchema =
|
|
18531
|
-
nodes:
|
|
18532
|
-
truncated:
|
|
18613
|
+
var treeResponseSchema = z91.object({
|
|
18614
|
+
nodes: z91.array(treeNodeSchema),
|
|
18615
|
+
truncated: z91.boolean()
|
|
18533
18616
|
}).passthrough();
|
|
18534
|
-
var nodeResponseSchema =
|
|
18535
|
-
id:
|
|
18536
|
-
parentId:
|
|
18537
|
-
processId:
|
|
18538
|
-
name:
|
|
18539
|
-
ownerLabel:
|
|
18540
|
-
placementState: placementStateSchema
|
|
18617
|
+
var nodeResponseSchema = z91.object({
|
|
18618
|
+
id: z91.string(),
|
|
18619
|
+
parentId: z91.string().nullable(),
|
|
18620
|
+
processId: z91.string().nullable(),
|
|
18621
|
+
name: z91.string(),
|
|
18622
|
+
ownerLabel: z91.string().nullable()
|
|
18541
18623
|
}).passthrough();
|
|
18542
|
-
var deleteNodeResponseSchema =
|
|
18543
|
-
deletedCount:
|
|
18624
|
+
var deleteNodeResponseSchema = z91.object({
|
|
18625
|
+
deletedCount: z91.number()
|
|
18544
18626
|
});
|
|
18627
|
+
var generateLandscapeResponseSchema = z91.object({
|
|
18628
|
+
started: z91.literal(true),
|
|
18629
|
+
generationId: z91.string(),
|
|
18630
|
+
eligibleCaptureCount: z91.number()
|
|
18631
|
+
}).passthrough();
|
|
18545
18632
|
var LANDSCAPE_COLUMNS = [
|
|
18546
18633
|
{ header: "ID", cell: /* @__PURE__ */ __name((row) => row.id, "cell"), maxWidth: 36 },
|
|
18547
18634
|
{
|
|
@@ -18555,10 +18642,6 @@ var LANDSCAPE_COLUMNS = [
|
|
|
18555
18642
|
header: "PROCESS",
|
|
18556
18643
|
cell: /* @__PURE__ */ __name((row) => row.process?.name ?? "-", "cell"),
|
|
18557
18644
|
maxWidth: 28
|
|
18558
|
-
},
|
|
18559
|
-
{
|
|
18560
|
-
header: "PLACEMENT",
|
|
18561
|
-
cell: /* @__PURE__ */ __name((row) => row.placementState, "cell")
|
|
18562
18645
|
}
|
|
18563
18646
|
];
|
|
18564
18647
|
var TREE_COLUMNS = [
|
|
@@ -18570,11 +18653,7 @@ var TREE_COLUMNS = [
|
|
|
18570
18653
|
},
|
|
18571
18654
|
{ header: "DEPTH", cell: /* @__PURE__ */ __name((row) => String(row.depth), "cell") },
|
|
18572
18655
|
{ header: "TYPE", cell: getTreeNodeType },
|
|
18573
|
-
{ header: "NAME", cell: /* @__PURE__ */ __name((row) => row.name, "cell"), maxWidth: 36 }
|
|
18574
|
-
{
|
|
18575
|
-
header: "PLACEMENT",
|
|
18576
|
-
cell: /* @__PURE__ */ __name((row) => row.placementState, "cell")
|
|
18577
|
-
}
|
|
18656
|
+
{ header: "NAME", cell: /* @__PURE__ */ __name((row) => row.name, "cell"), maxWidth: 36 }
|
|
18578
18657
|
];
|
|
18579
18658
|
function registerClarityLandscape(clarity) {
|
|
18580
18659
|
const landscape = clarity.command("landscape").description("Inspect and curate the Clarity process landscape").option("--org <org-id>", ORG_FLAG_DESCRIPTION);
|
|
@@ -18660,7 +18739,7 @@ function registerClarityLandscape(clarity) {
|
|
|
18660
18739
|
const node = nodeResponseSchema.parse(raw);
|
|
18661
18740
|
renderNodeMutationResult("Moved node", node, options);
|
|
18662
18741
|
}, "moveNodeAction"));
|
|
18663
|
-
landscape.command("confirm-node <node-id>").description("Confirm a landscape node axis").requiredOption("--axis <axis>", "
|
|
18742
|
+
landscape.command("confirm-node <node-id>").description("Confirm a landscape node axis").requiredOption("--axis <axis>", "content or existence").option("--org <org-id>", ORG_FLAG_DESCRIPTION).option("--json", "output JSON").action(/* @__PURE__ */ __name(async function confirmNodeAction(nodeId, options) {
|
|
18664
18743
|
const config = await requireAuthenticatedConfig(this);
|
|
18665
18744
|
const raw = await httpRequest({
|
|
18666
18745
|
method: "POST",
|
|
@@ -18687,6 +18766,25 @@ function registerClarityLandscape(clarity) {
|
|
|
18687
18766
|
}
|
|
18688
18767
|
console.log(`Deleted node: ${nodeId} (${response.deletedCount} nodes)`);
|
|
18689
18768
|
}, "deleteNodeAction"));
|
|
18769
|
+
landscape.command("generate").description(
|
|
18770
|
+
"Generate the Clarity process landscape from eligible captures"
|
|
18771
|
+
).option("--org <org-id>", ORG_FLAG_DESCRIPTION).option("--json", "output JSON").action(/* @__PURE__ */ __name(async function generateAction(options) {
|
|
18772
|
+
const config = await requireAuthenticatedConfig(this);
|
|
18773
|
+
const raw = await httpRequest({
|
|
18774
|
+
method: "POST",
|
|
18775
|
+
path: resolveOrgPath(this, `${LANDSCAPE_RESOURCE_PATH}/generate`),
|
|
18776
|
+
apiKey: config.apiKey,
|
|
18777
|
+
apiBaseUrl: config.apiBaseUrl
|
|
18778
|
+
});
|
|
18779
|
+
const response = generateLandscapeResponseSchema.parse(raw);
|
|
18780
|
+
if (options.json) {
|
|
18781
|
+
printJson(response);
|
|
18782
|
+
return;
|
|
18783
|
+
}
|
|
18784
|
+
console.log(
|
|
18785
|
+
`Started process landscape generation: ${response.generationId} (${response.eligibleCaptureCount} captures)`
|
|
18786
|
+
);
|
|
18787
|
+
}, "generateAction"));
|
|
18690
18788
|
}
|
|
18691
18789
|
__name(registerClarityLandscape, "registerClarityLandscape");
|
|
18692
18790
|
function nodePath(orgId, nodeId) {
|
|
@@ -18835,7 +18933,7 @@ __name(buildRootSearchParams, "buildRootSearchParams");
|
|
|
18835
18933
|
function parseAxis(value) {
|
|
18836
18934
|
const parsed = axisSchema.safeParse(value);
|
|
18837
18935
|
if (!parsed.success) {
|
|
18838
|
-
throw new CliError("Axis must be
|
|
18936
|
+
throw new CliError("Axis must be content or existence.");
|
|
18839
18937
|
}
|
|
18840
18938
|
return parsed.data;
|
|
18841
18939
|
}
|
|
@@ -18992,40 +19090,40 @@ function registerClarityPostprocess(clarity) {
|
|
|
18992
19090
|
__name(registerClarityPostprocess, "registerClarityPostprocess");
|
|
18993
19091
|
|
|
18994
19092
|
// src/commands/clarity/process-links.ts
|
|
18995
|
-
import { z as
|
|
19093
|
+
import { z as z92 } from "zod";
|
|
18996
19094
|
var MIN_LIMIT6 = 1;
|
|
18997
19095
|
var MAX_LIMIT6 = 500;
|
|
18998
19096
|
var DEFAULT_LIMIT6 = 100;
|
|
18999
19097
|
var ORG_FLAG_DESCRIPTION2 = "organization id for the org-scoped process landscape (overrides DUVO_ORG_ID)";
|
|
19000
19098
|
var PROCESS_LINKS_RESOURCE_PATH = "/clarity/hierarchy/process-links";
|
|
19001
|
-
var processLinkTypeSchema =
|
|
19099
|
+
var processLinkTypeSchema = z92.enum([
|
|
19002
19100
|
"hands_off_to",
|
|
19003
19101
|
"shares_step_with",
|
|
19004
19102
|
"variant_of"
|
|
19005
19103
|
]);
|
|
19006
|
-
var processLinkStateSchema =
|
|
19007
|
-
var processLinkSchema =
|
|
19008
|
-
id:
|
|
19009
|
-
source_node_id:
|
|
19010
|
-
target_node_id:
|
|
19104
|
+
var processLinkStateSchema = z92.enum(["suggested", "confirmed"]);
|
|
19105
|
+
var processLinkSchema = z92.object({
|
|
19106
|
+
id: z92.string(),
|
|
19107
|
+
source_node_id: z92.string(),
|
|
19108
|
+
target_node_id: z92.string(),
|
|
19011
19109
|
type: processLinkTypeSchema,
|
|
19012
19110
|
state: processLinkStateSchema,
|
|
19013
|
-
confidence:
|
|
19014
|
-
created_at:
|
|
19015
|
-
updated_at:
|
|
19111
|
+
confidence: z92.number().nullable(),
|
|
19112
|
+
created_at: z92.string(),
|
|
19113
|
+
updated_at: z92.string()
|
|
19016
19114
|
});
|
|
19017
|
-
var listProcessLinksResponseSchema =
|
|
19018
|
-
process_links:
|
|
19019
|
-
total:
|
|
19020
|
-
limit:
|
|
19021
|
-
offset:
|
|
19115
|
+
var listProcessLinksResponseSchema = z92.object({
|
|
19116
|
+
process_links: z92.array(processLinkSchema),
|
|
19117
|
+
total: z92.number(),
|
|
19118
|
+
limit: z92.number(),
|
|
19119
|
+
offset: z92.number()
|
|
19022
19120
|
});
|
|
19023
|
-
var processLinkMutationResponseSchema =
|
|
19121
|
+
var processLinkMutationResponseSchema = z92.object({
|
|
19024
19122
|
process_link: processLinkSchema,
|
|
19025
|
-
created:
|
|
19123
|
+
created: z92.boolean().optional()
|
|
19026
19124
|
});
|
|
19027
|
-
var deleteProcessLinkResponseSchema =
|
|
19028
|
-
deleted:
|
|
19125
|
+
var deleteProcessLinkResponseSchema = z92.object({
|
|
19126
|
+
deleted: z92.boolean()
|
|
19029
19127
|
});
|
|
19030
19128
|
var PROCESS_LINK_COLUMNS = [
|
|
19031
19129
|
{ header: "ID", cell: /* @__PURE__ */ __name((row) => row.id, "cell"), maxWidth: 36 },
|
|
@@ -19237,14 +19335,14 @@ function renderProcessLinks(response) {
|
|
|
19237
19335
|
__name(renderProcessLinks, "renderProcessLinks");
|
|
19238
19336
|
|
|
19239
19337
|
// src/commands/clarity/promote-current-process.ts
|
|
19240
|
-
import { z as
|
|
19241
|
-
var snapshotSchema3 =
|
|
19242
|
-
snapshot:
|
|
19243
|
-
id:
|
|
19244
|
-
status:
|
|
19245
|
-
creator_type:
|
|
19246
|
-
created_at:
|
|
19247
|
-
updated_at:
|
|
19338
|
+
import { z as z93 } from "zod";
|
|
19339
|
+
var snapshotSchema3 = z93.object({
|
|
19340
|
+
snapshot: z93.object({
|
|
19341
|
+
id: z93.string(),
|
|
19342
|
+
status: z93.string(),
|
|
19343
|
+
creator_type: z93.string(),
|
|
19344
|
+
created_at: z93.string(),
|
|
19345
|
+
updated_at: z93.string()
|
|
19248
19346
|
})
|
|
19249
19347
|
});
|
|
19250
19348
|
function registerClarityPromoteCurrentProcess(clarity) {
|
|
@@ -19281,14 +19379,14 @@ function registerClarityPromoteCurrentProcess(clarity) {
|
|
|
19281
19379
|
__name(registerClarityPromoteCurrentProcess, "registerClarityPromoteCurrentProcess");
|
|
19282
19380
|
|
|
19283
19381
|
// src/commands/clarity/promote-transformation-proposal.ts
|
|
19284
|
-
import { z as
|
|
19285
|
-
var snapshotSchema4 =
|
|
19286
|
-
snapshot:
|
|
19287
|
-
id:
|
|
19288
|
-
status:
|
|
19289
|
-
creator_type:
|
|
19290
|
-
created_at:
|
|
19291
|
-
updated_at:
|
|
19382
|
+
import { z as z94 } from "zod";
|
|
19383
|
+
var snapshotSchema4 = z94.object({
|
|
19384
|
+
snapshot: z94.object({
|
|
19385
|
+
id: z94.string(),
|
|
19386
|
+
status: z94.string(),
|
|
19387
|
+
creator_type: z94.string(),
|
|
19388
|
+
created_at: z94.string(),
|
|
19389
|
+
updated_at: z94.string()
|
|
19292
19390
|
})
|
|
19293
19391
|
});
|
|
19294
19392
|
function registerClarityPromoteTransformationProposal(clarity) {
|
|
@@ -19364,8 +19462,8 @@ __name(registerClarityRevertTransformationProposal, "registerClarityRevertTransf
|
|
|
19364
19462
|
|
|
19365
19463
|
// src/commands/clarity/save-snapshot.ts
|
|
19366
19464
|
import { readFile as readFile6 } from "node:fs/promises";
|
|
19367
|
-
import { z as
|
|
19368
|
-
var snapshotFileSchema =
|
|
19465
|
+
import { z as z95 } from "zod";
|
|
19466
|
+
var snapshotFileSchema = z95.union([
|
|
19369
19467
|
saveClarityProcessSnapshotBodySchema.shape.steps,
|
|
19370
19468
|
saveClarityProcessSnapshotBodySchema.pick({
|
|
19371
19469
|
steps: true,
|
|
@@ -20363,16 +20461,16 @@ function registerConnectionsList(connections) {
|
|
|
20363
20461
|
__name(registerConnectionsList, "registerConnectionsList");
|
|
20364
20462
|
|
|
20365
20463
|
// src/commands/connections/probe.ts
|
|
20366
|
-
import { z as
|
|
20367
|
-
var toolSchema =
|
|
20368
|
-
name:
|
|
20369
|
-
description:
|
|
20370
|
-
input_schema:
|
|
20464
|
+
import { z as z96 } from "zod";
|
|
20465
|
+
var toolSchema = z96.object({
|
|
20466
|
+
name: z96.string(),
|
|
20467
|
+
description: z96.string().optional(),
|
|
20468
|
+
input_schema: z96.record(z96.string(), z96.unknown()).optional()
|
|
20371
20469
|
});
|
|
20372
|
-
var probeResponseSchema =
|
|
20373
|
-
success:
|
|
20374
|
-
tools:
|
|
20375
|
-
error:
|
|
20470
|
+
var probeResponseSchema = z96.object({
|
|
20471
|
+
success: z96.boolean(),
|
|
20472
|
+
tools: z96.array(toolSchema).optional(),
|
|
20473
|
+
error: z96.string().optional()
|
|
20376
20474
|
});
|
|
20377
20475
|
var DESCRIPTION_MAX_WIDTH = 80;
|
|
20378
20476
|
var TABLE_COLUMNS21 = [
|
|
@@ -20591,48 +20689,48 @@ function registerConnections(program) {
|
|
|
20591
20689
|
__name(registerConnections, "registerConnections");
|
|
20592
20690
|
|
|
20593
20691
|
// src/api/credential-schemas.ts
|
|
20594
|
-
import { z as
|
|
20595
|
-
var dateLike =
|
|
20596
|
-
var secretSchema =
|
|
20597
|
-
id:
|
|
20598
|
-
team_id:
|
|
20599
|
-
user_id:
|
|
20600
|
-
name:
|
|
20601
|
-
service_slug:
|
|
20602
|
-
env_var_keys:
|
|
20603
|
-
created_by:
|
|
20692
|
+
import { z as z97 } from "zod";
|
|
20693
|
+
var dateLike = z97.string();
|
|
20694
|
+
var secretSchema = z97.object({
|
|
20695
|
+
id: z97.string(),
|
|
20696
|
+
team_id: z97.string(),
|
|
20697
|
+
user_id: z97.string().nullable(),
|
|
20698
|
+
name: z97.string(),
|
|
20699
|
+
service_slug: z97.string().nullable(),
|
|
20700
|
+
env_var_keys: z97.array(z97.string()),
|
|
20701
|
+
created_by: z97.string(),
|
|
20604
20702
|
created_at: dateLike,
|
|
20605
20703
|
updated_at: dateLike
|
|
20606
20704
|
});
|
|
20607
|
-
var secretsListResponseSchema =
|
|
20705
|
+
var secretsListResponseSchema = z97.array(secretSchema);
|
|
20608
20706
|
var secretResponseSchema = secretSchema;
|
|
20609
|
-
var browserLoginSchema =
|
|
20610
|
-
id:
|
|
20611
|
-
user_id:
|
|
20612
|
-
team_id:
|
|
20613
|
-
domain:
|
|
20614
|
-
username:
|
|
20707
|
+
var browserLoginSchema = z97.object({
|
|
20708
|
+
id: z97.string(),
|
|
20709
|
+
user_id: z97.string().nullable(),
|
|
20710
|
+
team_id: z97.string(),
|
|
20711
|
+
domain: z97.string(),
|
|
20712
|
+
username: z97.string().nullable(),
|
|
20615
20713
|
password: encryptedDataSchema.nullable(),
|
|
20616
20714
|
otp_secret: encryptedDataSchema.nullable(),
|
|
20617
20715
|
created_at: dateLike,
|
|
20618
20716
|
updated_at: dateLike
|
|
20619
20717
|
});
|
|
20620
|
-
var browserLoginsListResponseSchema =
|
|
20621
|
-
var revisionLoginSummarySchema =
|
|
20622
|
-
id:
|
|
20623
|
-
user_id:
|
|
20624
|
-
team_id:
|
|
20625
|
-
domain:
|
|
20626
|
-
username:
|
|
20718
|
+
var browserLoginsListResponseSchema = z97.array(credentialPreviewSchema);
|
|
20719
|
+
var revisionLoginSummarySchema = z97.object({
|
|
20720
|
+
id: z97.string(),
|
|
20721
|
+
user_id: z97.string().nullable(),
|
|
20722
|
+
team_id: z97.string().nullable(),
|
|
20723
|
+
domain: z97.string(),
|
|
20724
|
+
username: z97.string().nullable(),
|
|
20627
20725
|
created_at: dateLike,
|
|
20628
20726
|
updated_at: dateLike
|
|
20629
20727
|
});
|
|
20630
|
-
var revisionLoginsListResponseSchema =
|
|
20728
|
+
var revisionLoginsListResponseSchema = z97.array(
|
|
20631
20729
|
revisionLoginSummarySchema
|
|
20632
20730
|
);
|
|
20633
|
-
var revisionSecretsListResponseSchema =
|
|
20634
|
-
var successResponseSchema2 =
|
|
20635
|
-
success:
|
|
20731
|
+
var revisionSecretsListResponseSchema = z97.array(secretSchema);
|
|
20732
|
+
var successResponseSchema2 = z97.object({
|
|
20733
|
+
success: z97.boolean()
|
|
20636
20734
|
});
|
|
20637
20735
|
var attachSuccessResponseSchema = successResponseSchema2;
|
|
20638
20736
|
var deleteSecretResponseSchema = successResponseSchema2;
|
|
@@ -24502,91 +24600,91 @@ function registerRevisionSecrets(program) {
|
|
|
24502
24600
|
__name(registerRevisionSecrets, "registerRevisionSecrets");
|
|
24503
24601
|
|
|
24504
24602
|
// src/api/run-schemas.ts
|
|
24505
|
-
import { z as
|
|
24506
|
-
var publicRunSchema =
|
|
24507
|
-
id:
|
|
24508
|
-
agent_id:
|
|
24509
|
-
build_id:
|
|
24510
|
-
status:
|
|
24511
|
-
source:
|
|
24512
|
-
sandbox_id:
|
|
24513
|
-
started_at:
|
|
24514
|
-
completed_at:
|
|
24515
|
-
created_at:
|
|
24516
|
-
updated_at:
|
|
24517
|
-
human_in_the_loop_enabled:
|
|
24518
|
-
});
|
|
24519
|
-
var startRunResponseSchema =
|
|
24603
|
+
import { z as z98 } from "zod";
|
|
24604
|
+
var publicRunSchema = z98.object({
|
|
24605
|
+
id: z98.string(),
|
|
24606
|
+
agent_id: z98.string(),
|
|
24607
|
+
build_id: z98.string(),
|
|
24608
|
+
status: z98.string(),
|
|
24609
|
+
source: z98.string().nullish(),
|
|
24610
|
+
sandbox_id: z98.string().nullish(),
|
|
24611
|
+
started_at: z98.string().nullish(),
|
|
24612
|
+
completed_at: z98.string().nullish(),
|
|
24613
|
+
created_at: z98.string(),
|
|
24614
|
+
updated_at: z98.string().nullish(),
|
|
24615
|
+
human_in_the_loop_enabled: z98.boolean().nullish()
|
|
24616
|
+
});
|
|
24617
|
+
var startRunResponseSchema = z98.object({
|
|
24520
24618
|
run: publicRunSchema
|
|
24521
24619
|
});
|
|
24522
|
-
var questionOptionSchema =
|
|
24523
|
-
label:
|
|
24524
|
-
description:
|
|
24525
|
-
});
|
|
24526
|
-
var questionSchema =
|
|
24527
|
-
question:
|
|
24528
|
-
header:
|
|
24529
|
-
options:
|
|
24530
|
-
multi_select:
|
|
24531
|
-
});
|
|
24532
|
-
var pendingHumanRequestSchema =
|
|
24533
|
-
id:
|
|
24534
|
-
title:
|
|
24535
|
-
description:
|
|
24536
|
-
created_at:
|
|
24537
|
-
type:
|
|
24538
|
-
questions:
|
|
24539
|
-
});
|
|
24540
|
-
var getRunResponseSchema =
|
|
24620
|
+
var questionOptionSchema = z98.object({
|
|
24621
|
+
label: z98.string(),
|
|
24622
|
+
description: z98.string().nullish()
|
|
24623
|
+
});
|
|
24624
|
+
var questionSchema = z98.object({
|
|
24625
|
+
question: z98.string(),
|
|
24626
|
+
header: z98.string().nullish(),
|
|
24627
|
+
options: z98.array(questionOptionSchema).nullish(),
|
|
24628
|
+
multi_select: z98.boolean().nullish()
|
|
24629
|
+
});
|
|
24630
|
+
var pendingHumanRequestSchema = z98.object({
|
|
24631
|
+
id: z98.string(),
|
|
24632
|
+
title: z98.string(),
|
|
24633
|
+
description: z98.string().nullish(),
|
|
24634
|
+
created_at: z98.string(),
|
|
24635
|
+
type: z98.string(),
|
|
24636
|
+
questions: z98.array(questionSchema).nullish()
|
|
24637
|
+
});
|
|
24638
|
+
var getRunResponseSchema = z98.object({
|
|
24541
24639
|
run: publicRunSchema.nullable(),
|
|
24542
24640
|
pending_human_request: pendingHumanRequestSchema.nullish()
|
|
24543
24641
|
});
|
|
24544
|
-
var stopRunResponseSchema =
|
|
24545
|
-
success:
|
|
24546
|
-
message:
|
|
24547
|
-
});
|
|
24548
|
-
var runMessageSchema =
|
|
24549
|
-
id:
|
|
24550
|
-
type:
|
|
24551
|
-
role:
|
|
24552
|
-
timestamp:
|
|
24553
|
-
text_content:
|
|
24554
|
-
tool_call:
|
|
24555
|
-
id:
|
|
24556
|
-
name:
|
|
24557
|
-
arguments:
|
|
24642
|
+
var stopRunResponseSchema = z98.object({
|
|
24643
|
+
success: z98.boolean(),
|
|
24644
|
+
message: z98.string().nullish()
|
|
24645
|
+
});
|
|
24646
|
+
var runMessageSchema = z98.object({
|
|
24647
|
+
id: z98.string(),
|
|
24648
|
+
type: z98.string(),
|
|
24649
|
+
role: z98.string(),
|
|
24650
|
+
timestamp: z98.string(),
|
|
24651
|
+
text_content: z98.string().nullish(),
|
|
24652
|
+
tool_call: z98.object({
|
|
24653
|
+
id: z98.string(),
|
|
24654
|
+
name: z98.string(),
|
|
24655
|
+
arguments: z98.record(z98.string(), z98.unknown()).nullish()
|
|
24558
24656
|
}).nullish(),
|
|
24559
|
-
tool_result:
|
|
24560
|
-
tool_call_id:
|
|
24561
|
-
result:
|
|
24562
|
-
error:
|
|
24657
|
+
tool_result: z98.object({
|
|
24658
|
+
tool_call_id: z98.string(),
|
|
24659
|
+
result: z98.unknown().nullish(),
|
|
24660
|
+
error: z98.string().nullish()
|
|
24563
24661
|
}).nullish()
|
|
24564
24662
|
});
|
|
24565
|
-
var listRunMessagesResponseSchema =
|
|
24566
|
-
messages:
|
|
24567
|
-
total:
|
|
24568
|
-
limit:
|
|
24569
|
-
offset:
|
|
24663
|
+
var listRunMessagesResponseSchema = z98.object({
|
|
24664
|
+
messages: z98.array(runMessageSchema),
|
|
24665
|
+
total: z98.number().nullish(),
|
|
24666
|
+
limit: z98.number().nullish(),
|
|
24667
|
+
offset: z98.number().nullish()
|
|
24570
24668
|
});
|
|
24571
|
-
var postedMessageSchema =
|
|
24572
|
-
id:
|
|
24573
|
-
type:
|
|
24574
|
-
role:
|
|
24575
|
-
timestamp:
|
|
24576
|
-
text_content:
|
|
24669
|
+
var postedMessageSchema = z98.object({
|
|
24670
|
+
id: z98.string(),
|
|
24671
|
+
type: z98.string(),
|
|
24672
|
+
role: z98.string(),
|
|
24673
|
+
timestamp: z98.string(),
|
|
24674
|
+
text_content: z98.string()
|
|
24577
24675
|
});
|
|
24578
|
-
var postRunMessageResponseSchema =
|
|
24676
|
+
var postRunMessageResponseSchema = z98.object({
|
|
24579
24677
|
message: postedMessageSchema
|
|
24580
24678
|
});
|
|
24581
|
-
var respondHumanRequestResponseSchema =
|
|
24582
|
-
human_request:
|
|
24583
|
-
id:
|
|
24584
|
-
run_id:
|
|
24585
|
-
title:
|
|
24586
|
-
description:
|
|
24587
|
-
response:
|
|
24588
|
-
responded_at:
|
|
24589
|
-
created_at:
|
|
24679
|
+
var respondHumanRequestResponseSchema = z98.object({
|
|
24680
|
+
human_request: z98.object({
|
|
24681
|
+
id: z98.string(),
|
|
24682
|
+
run_id: z98.string(),
|
|
24683
|
+
title: z98.string(),
|
|
24684
|
+
description: z98.string().nullish(),
|
|
24685
|
+
response: z98.string().nullish(),
|
|
24686
|
+
responded_at: z98.string().nullish(),
|
|
24687
|
+
created_at: z98.string()
|
|
24590
24688
|
})
|
|
24591
24689
|
});
|
|
24592
24690
|
|
|
@@ -25281,28 +25379,28 @@ function registerRuns(program) {
|
|
|
25281
25379
|
__name(registerRuns, "registerRuns");
|
|
25282
25380
|
|
|
25283
25381
|
// src/api/sandbox-schemas.ts
|
|
25284
|
-
import { z as
|
|
25285
|
-
var createSandboxResponseSchema =
|
|
25286
|
-
sandbox_id:
|
|
25287
|
-
expires_at:
|
|
25382
|
+
import { z as z99 } from "zod";
|
|
25383
|
+
var createSandboxResponseSchema = z99.object({
|
|
25384
|
+
sandbox_id: z99.string(),
|
|
25385
|
+
expires_at: z99.string()
|
|
25288
25386
|
});
|
|
25289
|
-
var createSandboxUploadUrlResponseSchema =
|
|
25290
|
-
upload_url:
|
|
25291
|
-
path:
|
|
25292
|
-
expires_in_seconds:
|
|
25387
|
+
var createSandboxUploadUrlResponseSchema = z99.object({
|
|
25388
|
+
upload_url: z99.string(),
|
|
25389
|
+
path: z99.string(),
|
|
25390
|
+
expires_in_seconds: z99.number()
|
|
25293
25391
|
});
|
|
25294
|
-
var sandboxFileSchema =
|
|
25295
|
-
name:
|
|
25296
|
-
path:
|
|
25297
|
-
type:
|
|
25298
|
-
size_bytes:
|
|
25392
|
+
var sandboxFileSchema = z99.object({
|
|
25393
|
+
name: z99.string(),
|
|
25394
|
+
path: z99.string(),
|
|
25395
|
+
type: z99.enum(["file", "dir"]),
|
|
25396
|
+
size_bytes: z99.number()
|
|
25299
25397
|
});
|
|
25300
|
-
var listSandboxFilesResponseSchema =
|
|
25301
|
-
files:
|
|
25398
|
+
var listSandboxFilesResponseSchema = z99.object({
|
|
25399
|
+
files: z99.array(sandboxFileSchema)
|
|
25302
25400
|
});
|
|
25303
|
-
var uploadSandboxFileResponseSchema =
|
|
25304
|
-
path:
|
|
25305
|
-
size_bytes:
|
|
25401
|
+
var uploadSandboxFileResponseSchema = z99.object({
|
|
25402
|
+
path: z99.string(),
|
|
25403
|
+
size_bytes: z99.number()
|
|
25306
25404
|
});
|
|
25307
25405
|
var DEFAULT_SANDBOX_FILES_PATH = "/workspace";
|
|
25308
25406
|
|
|
@@ -25913,13 +26011,13 @@ __name(registerSkillsAssignments, "registerSkillsAssignments");
|
|
|
25913
26011
|
|
|
25914
26012
|
// src/commands/skills/create.ts
|
|
25915
26013
|
import { readFileSync as readFileSync5 } from "node:fs";
|
|
25916
|
-
import { z as
|
|
25917
|
-
var createSkillResponseSchema =
|
|
25918
|
-
skill:
|
|
25919
|
-
id:
|
|
25920
|
-
name:
|
|
25921
|
-
description:
|
|
25922
|
-
team_id:
|
|
26014
|
+
import { z as z100 } from "zod";
|
|
26015
|
+
var createSkillResponseSchema = z100.object({
|
|
26016
|
+
skill: z100.object({
|
|
26017
|
+
id: z100.string(),
|
|
26018
|
+
name: z100.string(),
|
|
26019
|
+
description: z100.string(),
|
|
26020
|
+
team_id: z100.string()
|
|
25923
26021
|
})
|
|
25924
26022
|
});
|
|
25925
26023
|
function registerSkillsCreate(skills) {
|
|
@@ -26283,13 +26381,13 @@ function readExistingContent(source) {
|
|
|
26283
26381
|
__name(readExistingContent, "readExistingContent");
|
|
26284
26382
|
|
|
26285
26383
|
// src/commands/skills/install.ts
|
|
26286
|
-
import { z as
|
|
26287
|
-
var installSkillResponseSchema =
|
|
26288
|
-
skill:
|
|
26289
|
-
id:
|
|
26290
|
-
name:
|
|
26291
|
-
description:
|
|
26292
|
-
team_id:
|
|
26384
|
+
import { z as z101 } from "zod";
|
|
26385
|
+
var installSkillResponseSchema = z101.object({
|
|
26386
|
+
skill: z101.object({
|
|
26387
|
+
id: z101.string(),
|
|
26388
|
+
name: z101.string(),
|
|
26389
|
+
description: z101.string(),
|
|
26390
|
+
team_id: z101.string()
|
|
26293
26391
|
})
|
|
26294
26392
|
});
|
|
26295
26393
|
function registerSkillsInstall(skills) {
|
|
@@ -26479,13 +26577,13 @@ __name(registerSkillsSystem, "registerSkillsSystem");
|
|
|
26479
26577
|
// src/commands/skills/upload.ts
|
|
26480
26578
|
import { readFile as readFile8, stat as stat2 } from "node:fs/promises";
|
|
26481
26579
|
import { basename as basename3 } from "node:path";
|
|
26482
|
-
import { z as
|
|
26483
|
-
var uploadSkillResponseSchema =
|
|
26484
|
-
skill:
|
|
26485
|
-
id:
|
|
26486
|
-
name:
|
|
26487
|
-
description:
|
|
26488
|
-
team_id:
|
|
26580
|
+
import { z as z102 } from "zod";
|
|
26581
|
+
var uploadSkillResponseSchema = z102.object({
|
|
26582
|
+
skill: z102.object({
|
|
26583
|
+
id: z102.string(),
|
|
26584
|
+
name: z102.string(),
|
|
26585
|
+
description: z102.string(),
|
|
26586
|
+
team_id: z102.string()
|
|
26489
26587
|
})
|
|
26490
26588
|
});
|
|
26491
26589
|
function registerSkillsUpload(skills) {
|
|
@@ -26859,11 +26957,11 @@ function registerTeamMembers(team) {
|
|
|
26859
26957
|
__name(registerTeamMembers, "registerTeamMembers");
|
|
26860
26958
|
|
|
26861
26959
|
// src/commands/team/use.ts
|
|
26862
|
-
import { z as
|
|
26960
|
+
import { z as z103 } from "zod";
|
|
26863
26961
|
var TEAM_ID_SHAPE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
26864
|
-
var teamIdSchema =
|
|
26865
|
-
var listMyTeamsResponseSchema3 =
|
|
26866
|
-
teams:
|
|
26962
|
+
var teamIdSchema = z103.string().regex(TEAM_ID_SHAPE);
|
|
26963
|
+
var listMyTeamsResponseSchema3 = z103.object({
|
|
26964
|
+
teams: z103.array(z103.object({ id: z103.string() }))
|
|
26867
26965
|
});
|
|
26868
26966
|
function registerTeamUse(team) {
|
|
26869
26967
|
team.command("use <team-id>").description(
|
|
@@ -26945,14 +27043,14 @@ function registerTeam(program) {
|
|
|
26945
27043
|
__name(registerTeam, "registerTeam");
|
|
26946
27044
|
|
|
26947
27045
|
// src/commands/teams/list.ts
|
|
26948
|
-
import { z as
|
|
26949
|
-
var teamApiSchema2 =
|
|
26950
|
-
id:
|
|
26951
|
-
name:
|
|
26952
|
-
organization_id:
|
|
27046
|
+
import { z as z104 } from "zod";
|
|
27047
|
+
var teamApiSchema2 = z104.object({
|
|
27048
|
+
id: z104.string(),
|
|
27049
|
+
name: z104.string(),
|
|
27050
|
+
organization_id: z104.string().nullable()
|
|
26953
27051
|
});
|
|
26954
|
-
var listMyTeamsResponseSchema4 =
|
|
26955
|
-
teams:
|
|
27052
|
+
var listMyTeamsResponseSchema4 = z104.object({
|
|
27053
|
+
teams: z104.array(teamApiSchema2)
|
|
26956
27054
|
});
|
|
26957
27055
|
function registerTeamsList(program) {
|
|
26958
27056
|
const teams = program.command("teams").description("Inspect the teams your credentials can act on");
|
|
@@ -27048,7 +27146,7 @@ __name(resolveActiveTeamId, "resolveActiveTeamId");
|
|
|
27048
27146
|
var version = resolveVersion();
|
|
27049
27147
|
function resolveVersion() {
|
|
27050
27148
|
if (true) {
|
|
27051
|
-
return "1.
|
|
27149
|
+
return "1.11.0";
|
|
27052
27150
|
}
|
|
27053
27151
|
const packageJsonPath = join3(
|
|
27054
27152
|
dirname3(fileURLToPath2(import.meta.url)),
|
|
@@ -27132,7 +27230,7 @@ function checkForUpdate() {
|
|
|
27132
27230
|
__name(checkForUpdate, "checkForUpdate");
|
|
27133
27231
|
function loadPackageMeta() {
|
|
27134
27232
|
if (true) {
|
|
27135
|
-
return { name: "@duvoai/cli", version: "1.
|
|
27233
|
+
return { name: "@duvoai/cli", version: "1.11.0" };
|
|
27136
27234
|
}
|
|
27137
27235
|
const require2 = createRequire(import.meta.url);
|
|
27138
27236
|
const raw = require2("../package.json");
|