@duvoai/cli 1.25.0 → 1.26.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 +1932 -1819
- package/dist/bin/duvo.js.map +4 -4
- package/package.json +1 -1
package/dist/bin/duvo.js
CHANGED
|
@@ -92,11 +92,11 @@ import { z as z54 } 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";
|
|
95
|
-
import { z as z59 } from "zod";
|
|
96
95
|
import { z as z58 } from "zod";
|
|
97
|
-
import { z as z61 } from "zod";
|
|
98
96
|
import { z as z60 } from "zod";
|
|
97
|
+
import { z as z59 } from "zod";
|
|
99
98
|
import { z as z62 } from "zod";
|
|
99
|
+
import { z as z61 } 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";
|
|
@@ -108,13 +108,14 @@ import { z as z70 } from "zod";
|
|
|
108
108
|
import { z as z71 } from "zod";
|
|
109
109
|
import { z as z72 } from "zod";
|
|
110
110
|
import { z as z73 } from "zod";
|
|
111
|
-
import { z as z75 } from "zod";
|
|
112
111
|
import { z as z74 } from "zod";
|
|
113
112
|
import { z as z76 } from "zod";
|
|
113
|
+
import { z as z75 } from "zod";
|
|
114
114
|
import { z as z77 } from "zod";
|
|
115
115
|
import { z as z78 } from "zod";
|
|
116
116
|
import { z as z79 } from "zod";
|
|
117
117
|
import { z as z80 } from "zod";
|
|
118
|
+
import { z as z81 } from "zod";
|
|
118
119
|
|
|
119
120
|
// ../node_modules/.pnpm/jsonrepair@3.13.2/node_modules/jsonrepair/lib/esm/utils/JSONRepairError.js
|
|
120
121
|
var JSONRepairError = class extends Error {
|
|
@@ -2502,7 +2503,7 @@ var canExecuteConcurrentResultSchema = z11.object({
|
|
|
2502
2503
|
var BrowsingProviderSchema = z12.enum(["google", "anthropic"]);
|
|
2503
2504
|
var PLATFORM_DEFAULT_MODELS = {
|
|
2504
2505
|
agent: {
|
|
2505
|
-
model: "claude-sonnet-
|
|
2506
|
+
model: "claude-sonnet-5"
|
|
2506
2507
|
},
|
|
2507
2508
|
browsing: {
|
|
2508
2509
|
provider: "google",
|
|
@@ -2510,8 +2511,6 @@ var PLATFORM_DEFAULT_MODELS = {
|
|
|
2510
2511
|
}
|
|
2511
2512
|
};
|
|
2512
2513
|
var CLAUDE_MODEL_IDS = [
|
|
2513
|
-
"claude-sonnet-4-6",
|
|
2514
|
-
"claude-sonnet-4-6[1m]",
|
|
2515
2514
|
"claude-sonnet-5",
|
|
2516
2515
|
"claude-opus-4-8",
|
|
2517
2516
|
"claude-opus-4-8[1m]"
|
|
@@ -2536,6 +2535,8 @@ var LEGACY_MODEL_IDS = [
|
|
|
2536
2535
|
"claude-sonnet-4-20250514[1m]",
|
|
2537
2536
|
"claude-sonnet-4-5-20250929",
|
|
2538
2537
|
"claude-sonnet-4-5-20250929[1m]",
|
|
2538
|
+
"claude-sonnet-4-6",
|
|
2539
|
+
"claude-sonnet-4-6[1m]",
|
|
2539
2540
|
"claude-opus-4-1-20250805",
|
|
2540
2541
|
"claude-opus-4-5-20251101",
|
|
2541
2542
|
// Retired in favour of Opus 4.8 (migrated via LEGACY_MODEL_REMAP, not the
|
|
@@ -2550,13 +2551,6 @@ var ClaudeModelIdSchema = z12.enum([
|
|
|
2550
2551
|
...LEGACY_MODEL_IDS
|
|
2551
2552
|
]);
|
|
2552
2553
|
var AVAILABLE_AGENT_MODELS = {
|
|
2553
|
-
"claude-sonnet-4-6": {
|
|
2554
|
-
displayName: "Claude Sonnet 4.6"
|
|
2555
|
-
},
|
|
2556
|
-
"claude-sonnet-4-6[1m]": {
|
|
2557
|
-
displayName: "Claude Sonnet 4.6",
|
|
2558
|
-
description: "Fast and capable for everyday tasks"
|
|
2559
|
-
},
|
|
2560
2554
|
"claude-sonnet-5": {
|
|
2561
2555
|
displayName: "Claude Sonnet 5",
|
|
2562
2556
|
description: "Fast and capable for everyday tasks"
|
|
@@ -2578,8 +2572,10 @@ var BrowsingModelIdSchema = z12.enum([
|
|
|
2578
2572
|
"claude-sonnet-4-5",
|
|
2579
2573
|
"claude-opus-4-1"
|
|
2580
2574
|
]);
|
|
2581
|
-
var LEGACY_DEFAULT_MODEL = "claude-sonnet-
|
|
2575
|
+
var LEGACY_DEFAULT_MODEL = "claude-sonnet-5";
|
|
2582
2576
|
var LEGACY_MODEL_REMAP = {
|
|
2577
|
+
"claude-sonnet-4-6": "claude-sonnet-5",
|
|
2578
|
+
"claude-sonnet-4-6[1m]": "claude-sonnet-5",
|
|
2583
2579
|
"claude-opus-4-6": "claude-opus-4-8",
|
|
2584
2580
|
"claude-opus-4-6[1m]": "claude-opus-4-8[1m]",
|
|
2585
2581
|
"claude-opus-4-7": "claude-opus-4-8",
|
|
@@ -3360,9 +3356,9 @@ var clarityProcessLandscapeNodeSchema = z15.object({
|
|
|
3360
3356
|
teamId: z15.guid().nullable().optional(),
|
|
3361
3357
|
teamName: z15.string().nullable().optional(),
|
|
3362
3358
|
assignedTeam: clarityLandscapeAssignedTeamSchema.nullable().optional(),
|
|
3363
|
-
teamAssignmentSuggestions: z15.array(clarityLandscapeTeamAssignmentSuggestionSchema).
|
|
3364
|
-
captureSuggestions: z15.array(clarityLandscapeCaptureSuggestionSchema).
|
|
3365
|
-
captureRequests: z15.array(clarityLandscapeCaptureRequestSchema).
|
|
3359
|
+
teamAssignmentSuggestions: z15.array(clarityLandscapeTeamAssignmentSuggestionSchema).default([]),
|
|
3360
|
+
captureSuggestions: z15.array(clarityLandscapeCaptureSuggestionSchema).default([]),
|
|
3361
|
+
captureRequests: z15.array(clarityLandscapeCaptureRequestSchema).default([]),
|
|
3366
3362
|
labels: z15.array(clarityProcessAssignedLabelSchema).default([])
|
|
3367
3363
|
});
|
|
3368
3364
|
var clarityProcessLandscapeUnlinkedProcessSchema = clarityProcessLandscapeSummarySchema.extend({
|
|
@@ -3561,10 +3557,6 @@ var portfolioIntelligenceStatusSchema = z15.enum(
|
|
|
3561
3557
|
PORTFOLIO_INTELLIGENCE_STATUSES
|
|
3562
3558
|
);
|
|
3563
3559
|
var EXECUTION_MODES = ["human-led", "hybrid", "agent-led"];
|
|
3564
|
-
var operatingModelDesignPrincipleSchema = z15.object({
|
|
3565
|
-
title: z15.string().min(1),
|
|
3566
|
-
description: z15.string().min(1)
|
|
3567
|
-
});
|
|
3568
3560
|
var operatingModelValueStreamSchema = z15.object({
|
|
3569
3561
|
name: z15.string().min(1),
|
|
3570
3562
|
description: z15.string().min(1),
|
|
@@ -3665,7 +3657,6 @@ var operatingModelObjectionsSchema = z15.object({
|
|
|
3665
3657
|
});
|
|
3666
3658
|
var operatingModelAnalysisSchema = z15.object({
|
|
3667
3659
|
executiveSummary: z15.string().min(1),
|
|
3668
|
-
designPrinciples: z15.array(operatingModelDesignPrincipleSchema).min(1),
|
|
3669
3660
|
valueStreams: z15.array(operatingModelValueStreamSchema).min(1),
|
|
3670
3661
|
organizationAndGovernance: z15.array(operatingModelOrgElementSchema).min(1),
|
|
3671
3662
|
peopleAndSkills: z15.array(operatingModelPeopleSkillSchema).min(1),
|
|
@@ -6224,6 +6215,7 @@ __name(makeSentryReporter, "makeSentryReporter");
|
|
|
6224
6215
|
__name2(makeSentryReporter, "makeSentryReporter");
|
|
6225
6216
|
var MAX_BLOCKED_DOMAINS = 1e3;
|
|
6226
6217
|
var MAX_GUARDRAILS_TEXT_LENGTH = 2e4;
|
|
6218
|
+
var MAX_VPN_BYPASS_DOMAINS = 1e3;
|
|
6227
6219
|
var DOMAIN_LABEL = /^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/;
|
|
6228
6220
|
function stripToHost(value) {
|
|
6229
6221
|
if (/^[a-z][a-z0-9+.-]*:\/\//.test(value)) {
|
|
@@ -6354,6 +6346,22 @@ function blockedDomainAgentErrorMessage(args) {
|
|
|
6354
6346
|
}
|
|
6355
6347
|
__name(blockedDomainAgentErrorMessage, "blockedDomainAgentErrorMessage");
|
|
6356
6348
|
__name2(blockedDomainAgentErrorMessage, "blockedDomainAgentErrorMessage");
|
|
6349
|
+
function domainsToBrowserbaseBypassPattern(domains) {
|
|
6350
|
+
if (domains.length === 0) {
|
|
6351
|
+
return null;
|
|
6352
|
+
}
|
|
6353
|
+
const escaped = domains.map(
|
|
6354
|
+
(domain) => domain.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")
|
|
6355
|
+
);
|
|
6356
|
+
return `^([a-zA-Z0-9-]+\\.)*(${escaped.join("|")})$`;
|
|
6357
|
+
}
|
|
6358
|
+
__name(domainsToBrowserbaseBypassPattern, "domainsToBrowserbaseBypassPattern");
|
|
6359
|
+
__name2(domainsToBrowserbaseBypassPattern, "domainsToBrowserbaseBypassPattern");
|
|
6360
|
+
function normalizeShopDomain(input) {
|
|
6361
|
+
return input.trim().toLowerCase().replace(/^https?:\/\//, "").replace(/\/.*$/, "");
|
|
6362
|
+
}
|
|
6363
|
+
__name(normalizeShopDomain, "normalizeShopDomain");
|
|
6364
|
+
__name2(normalizeShopDomain, "normalizeShopDomain");
|
|
6357
6365
|
var NOTIFICATION_SEVERITIES = [
|
|
6358
6366
|
"info",
|
|
6359
6367
|
"warning",
|
|
@@ -7414,6 +7422,38 @@ var deleteArtifactShareResponseSchema = z31.object({
|
|
|
7414
7422
|
var deleteArtifactResponseSchema = z31.object({
|
|
7415
7423
|
success: z31.literal(true)
|
|
7416
7424
|
});
|
|
7425
|
+
var movePulseBodySchema = z31.object({
|
|
7426
|
+
targetTeamId: z31.guid().describe("ID of the destination team the dashboard moves to.")
|
|
7427
|
+
}).strict();
|
|
7428
|
+
var pulseConnectionDecisionSchema = z31.enum([
|
|
7429
|
+
"reuse",
|
|
7430
|
+
"needs_reconnect",
|
|
7431
|
+
"custom_to_rebuild"
|
|
7432
|
+
]);
|
|
7433
|
+
var pulseConnectionOutcomeSchema = z31.object({
|
|
7434
|
+
integrationType: z31.string(),
|
|
7435
|
+
integrationName: z31.string(),
|
|
7436
|
+
instanceName: z31.string(),
|
|
7437
|
+
decision: pulseConnectionDecisionSchema
|
|
7438
|
+
});
|
|
7439
|
+
var movePulsePlanSchema = z31.object({
|
|
7440
|
+
artifactId: z31.guid(),
|
|
7441
|
+
artifactTitle: z31.string().nullable(),
|
|
7442
|
+
sourceTeamId: z31.guid(),
|
|
7443
|
+
targetTeamId: z31.guid(),
|
|
7444
|
+
// True when the dashboard's creator differs from the mover, so ownership
|
|
7445
|
+
// will be (or was) reassigned to the mover on the target team.
|
|
7446
|
+
ownershipReassigned: z31.boolean(),
|
|
7447
|
+
// True when the dashboard was published (visibility != 'private') and will
|
|
7448
|
+
// be (or was) reset to private on the target team.
|
|
7449
|
+
visibilityReset: z31.boolean(),
|
|
7450
|
+
connections: z31.object({
|
|
7451
|
+
reused: z31.array(pulseConnectionOutcomeSchema),
|
|
7452
|
+
disconnected: z31.array(pulseConnectionOutcomeSchema),
|
|
7453
|
+
customToRebuild: z31.array(pulseConnectionOutcomeSchema)
|
|
7454
|
+
}),
|
|
7455
|
+
applied: z31.boolean()
|
|
7456
|
+
});
|
|
7417
7457
|
var uploadArtifactThumbnailBodySchema = z31.object({
|
|
7418
7458
|
image_base64: z31.string().min(1).max(8e6)
|
|
7419
7459
|
});
|
|
@@ -9063,107 +9103,113 @@ var activateAutomationRevisionResponseApiSchema = z50.object({
|
|
|
9063
9103
|
),
|
|
9064
9104
|
repinned_case_count: z50.int().describe("Number of pending cases re-pinned onto the activated revision")
|
|
9065
9105
|
});
|
|
9066
|
-
var
|
|
9067
|
-
|
|
9068
|
-
|
|
9069
|
-
|
|
9070
|
-
|
|
9071
|
-
|
|
9072
|
-
|
|
9073
|
-
|
|
9074
|
-
|
|
9075
|
-
|
|
9076
|
-
|
|
9106
|
+
var BROWSER_EGRESS_MODES = [
|
|
9107
|
+
"provider",
|
|
9108
|
+
"direct",
|
|
9109
|
+
"organization-vpn"
|
|
9110
|
+
];
|
|
9111
|
+
var browserEgressModeSchema = z51.enum(BROWSER_EGRESS_MODES);
|
|
9112
|
+
var DataResidencySchema = z52.enum(["us", "eu", "apac"]);
|
|
9113
|
+
var DataHandlingSchema = z52.enum(["standard", "zdr"]);
|
|
9114
|
+
var browserPageSchema = z53.object({
|
|
9115
|
+
id: z53.string().describe("Page ID"),
|
|
9116
|
+
url: z53.url().describe("Page URL"),
|
|
9117
|
+
faviconUrl: z53.string().describe("Page favicon URL"),
|
|
9118
|
+
title: z53.string().describe("Page title"),
|
|
9119
|
+
debuggerUrl: z53.url().describe("Page-specific debugger URL"),
|
|
9120
|
+
debuggerFullscreenUrl: z53.url().describe("Page-specific full-screen debugger URL")
|
|
9121
|
+
});
|
|
9122
|
+
var browserSessionInfoSchema = z53.object({
|
|
9077
9123
|
// Session-level URLs (Browser Use provides these, Browserbase also has them)
|
|
9078
|
-
wsUrl:
|
|
9079
|
-
liveUrl:
|
|
9124
|
+
wsUrl: z53.url().nullable(),
|
|
9125
|
+
liveUrl: z53.url().nullable(),
|
|
9080
9126
|
// Page-level data (Browserbase provides these, Browser Use returns empty array)
|
|
9081
|
-
pages:
|
|
9082
|
-
});
|
|
9083
|
-
var browserbaseDebugResponseSchema =
|
|
9084
|
-
debuggerFullscreenUrl:
|
|
9085
|
-
debuggerUrl:
|
|
9086
|
-
pages:
|
|
9087
|
-
wsUrl:
|
|
9088
|
-
});
|
|
9089
|
-
var browserbaseSessionCreateResponseSchema =
|
|
9090
|
-
id:
|
|
9091
|
-
createdAt:
|
|
9092
|
-
updatedAt:
|
|
9093
|
-
projectId:
|
|
9094
|
-
startedAt:
|
|
9095
|
-
endedAt:
|
|
9096
|
-
expiresAt:
|
|
9097
|
-
status:
|
|
9098
|
-
proxyBytes:
|
|
9099
|
-
avgCpuUsage:
|
|
9100
|
-
memoryUsage:
|
|
9101
|
-
keepAlive:
|
|
9102
|
-
contextId:
|
|
9103
|
-
region:
|
|
9104
|
-
userMetadata:
|
|
9105
|
-
connectUrl:
|
|
9106
|
-
seleniumRemoteUrl:
|
|
9107
|
-
signingKey:
|
|
9108
|
-
});
|
|
9109
|
-
var getBuildParamsSchema =
|
|
9110
|
-
buildId:
|
|
9111
|
-
});
|
|
9112
|
-
var listBuildsParamsSchema =
|
|
9113
|
-
copilotId:
|
|
9114
|
-
});
|
|
9115
|
-
var updateBuildBodySchema =
|
|
9116
|
-
config:
|
|
9117
|
-
handoverTargetIds:
|
|
9118
|
-
revision_name:
|
|
9127
|
+
pages: z53.array(browserPageSchema)
|
|
9128
|
+
});
|
|
9129
|
+
var browserbaseDebugResponseSchema = z53.object({
|
|
9130
|
+
debuggerFullscreenUrl: z53.url().describe("Session full-screen debugger URL"),
|
|
9131
|
+
debuggerUrl: z53.url().describe("Session debugger URL"),
|
|
9132
|
+
pages: z53.array(browserPageSchema).describe("List of pages in the session"),
|
|
9133
|
+
wsUrl: z53.url().describe("WebSocket URL for the session")
|
|
9134
|
+
});
|
|
9135
|
+
var browserbaseSessionCreateResponseSchema = z53.object({
|
|
9136
|
+
id: z53.string().describe("Session ID"),
|
|
9137
|
+
createdAt: z53.iso.datetime().describe("Session creation timestamp"),
|
|
9138
|
+
updatedAt: z53.iso.datetime().describe("Session last update timestamp"),
|
|
9139
|
+
projectId: z53.string().describe("Project ID"),
|
|
9140
|
+
startedAt: z53.iso.datetime().describe("Session start timestamp"),
|
|
9141
|
+
endedAt: z53.iso.datetime().optional().describe("Session end timestamp"),
|
|
9142
|
+
expiresAt: z53.iso.datetime().describe("Session expiration timestamp"),
|
|
9143
|
+
status: z53.string().describe("Session status"),
|
|
9144
|
+
proxyBytes: z53.number().describe("Proxy bytes used"),
|
|
9145
|
+
avgCpuUsage: z53.number().describe("Average CPU usage"),
|
|
9146
|
+
memoryUsage: z53.number().describe("Memory usage"),
|
|
9147
|
+
keepAlive: z53.boolean().describe("Keep alive flag"),
|
|
9148
|
+
contextId: z53.string().describe("Context ID"),
|
|
9149
|
+
region: z53.string().describe("Region"),
|
|
9150
|
+
userMetadata: z53.record(z53.string(), z53.unknown()).describe("User metadata"),
|
|
9151
|
+
connectUrl: z53.string().describe("Connect URL"),
|
|
9152
|
+
seleniumRemoteUrl: z53.string().describe("Selenium remote URL"),
|
|
9153
|
+
signingKey: z53.string().describe("Signing key")
|
|
9154
|
+
});
|
|
9155
|
+
var getBuildParamsSchema = z54.object({
|
|
9156
|
+
buildId: z54.guid()
|
|
9157
|
+
});
|
|
9158
|
+
var listBuildsParamsSchema = z54.object({
|
|
9159
|
+
copilotId: z54.guid()
|
|
9160
|
+
});
|
|
9161
|
+
var updateBuildBodySchema = z54.object({
|
|
9162
|
+
config: z54.record(z54.string(), z54.any()).optional().describe("Build configuration object"),
|
|
9163
|
+
handoverTargetIds: z54.array(z54.guid()).optional().describe("Agent IDs that this agent can hand over work to"),
|
|
9164
|
+
revision_name: z54.string().trim().min(1).max(80).nullable().optional().describe(
|
|
9119
9165
|
"Optional user-defined name for this revision. Pass null to clear."
|
|
9120
9166
|
),
|
|
9121
|
-
revision_description:
|
|
9167
|
+
revision_description: z54.string().trim().max(500).nullable().optional().describe(
|
|
9122
9168
|
"Optional user-defined description for this revision. Pass null to clear."
|
|
9123
9169
|
)
|
|
9124
9170
|
});
|
|
9125
|
-
var createBuildBodySchema =
|
|
9126
|
-
copilot_id:
|
|
9127
|
-
name:
|
|
9128
|
-
config:
|
|
9129
|
-
handoverTargetIds:
|
|
9130
|
-
source_build_id:
|
|
9131
|
-
});
|
|
9132
|
-
var buildResponseSchema =
|
|
9133
|
-
build_id:
|
|
9134
|
-
name:
|
|
9135
|
-
config:
|
|
9136
|
-
copilot_id:
|
|
9137
|
-
status:
|
|
9138
|
-
created_at:
|
|
9139
|
-
updated_at:
|
|
9140
|
-
revision_number:
|
|
9141
|
-
revision_name:
|
|
9142
|
-
revision_description:
|
|
9143
|
-
parent_build_id:
|
|
9144
|
-
created_by:
|
|
9145
|
-
created_by_name:
|
|
9146
|
-
});
|
|
9147
|
-
var listBuildsResponseSchema =
|
|
9148
|
-
var buildResponseApiSchema =
|
|
9171
|
+
var createBuildBodySchema = z54.object({
|
|
9172
|
+
copilot_id: z54.guid().describe("Agent ID"),
|
|
9173
|
+
name: z54.string().describe("Build name"),
|
|
9174
|
+
config: z54.record(z54.string(), z54.any()).optional().describe("Build configuration object"),
|
|
9175
|
+
handoverTargetIds: z54.array(z54.guid()).optional().describe("Agent IDs that this agent can hand over work to"),
|
|
9176
|
+
source_build_id: z54.guid().optional().describe("Build ID to copy integrations and queue links from")
|
|
9177
|
+
});
|
|
9178
|
+
var buildResponseSchema = z54.object({
|
|
9179
|
+
build_id: z54.string().describe("Build ID"),
|
|
9180
|
+
name: z54.string().describe("Build name"),
|
|
9181
|
+
config: z54.record(z54.string(), z54.any()).nullable().describe("Build configuration"),
|
|
9182
|
+
copilot_id: z54.string().describe("Associated copilot ID"),
|
|
9183
|
+
status: z54.string().describe("Build status"),
|
|
9184
|
+
created_at: z54.coerce.date().describe("Creation timestamp"),
|
|
9185
|
+
updated_at: z54.coerce.date().nullable().describe("Last update timestamp"),
|
|
9186
|
+
revision_number: z54.number().nullable().describe("Revision number"),
|
|
9187
|
+
revision_name: z54.string().nullable().optional().describe("User-defined name for this revision"),
|
|
9188
|
+
revision_description: z54.string().nullable().optional().describe("User-defined description for this revision"),
|
|
9189
|
+
parent_build_id: z54.string().nullable().describe("Parent build ID"),
|
|
9190
|
+
created_by: z54.string().nullable().describe("User who created this build"),
|
|
9191
|
+
created_by_name: z54.string().nullable().optional().describe("Display name of the user who created this build")
|
|
9192
|
+
});
|
|
9193
|
+
var listBuildsResponseSchema = z54.array(buildResponseSchema);
|
|
9194
|
+
var buildResponseApiSchema = z54.object({
|
|
9149
9195
|
build: buildApiSchema
|
|
9150
9196
|
});
|
|
9151
|
-
var buildsListApiSchema =
|
|
9152
|
-
builds:
|
|
9153
|
-
total:
|
|
9154
|
-
limit:
|
|
9155
|
-
offset:
|
|
9197
|
+
var buildsListApiSchema = z54.object({
|
|
9198
|
+
builds: z54.array(buildApiSchema),
|
|
9199
|
+
total: z54.int(),
|
|
9200
|
+
limit: z54.int(),
|
|
9201
|
+
offset: z54.int()
|
|
9156
9202
|
});
|
|
9157
|
-
var createBuildResponseApiSchema =
|
|
9203
|
+
var createBuildResponseApiSchema = z54.object({
|
|
9158
9204
|
build: buildApiSchema,
|
|
9159
|
-
agent:
|
|
9160
|
-
id:
|
|
9205
|
+
agent: z54.object({
|
|
9206
|
+
id: z54.guid()
|
|
9161
9207
|
})
|
|
9162
9208
|
});
|
|
9163
|
-
var builderRunGenerateResponseSchema =
|
|
9164
|
-
status:
|
|
9165
|
-
builderRunId:
|
|
9166
|
-
buildId:
|
|
9209
|
+
var builderRunGenerateResponseSchema = z54.object({
|
|
9210
|
+
status: z54.literal("generating"),
|
|
9211
|
+
builderRunId: z54.string(),
|
|
9212
|
+
buildId: z54.string()
|
|
9167
9213
|
});
|
|
9168
9214
|
var BUILDER_RUN_STATUSES = [
|
|
9169
9215
|
"not_started",
|
|
@@ -9174,252 +9220,252 @@ var BUILDER_RUN_STATUSES = [
|
|
|
9174
9220
|
"waiting_for_input",
|
|
9175
9221
|
"waiting_for_approve"
|
|
9176
9222
|
];
|
|
9177
|
-
var builderRunStatusSchema =
|
|
9178
|
-
id:
|
|
9179
|
-
status:
|
|
9180
|
-
build_id:
|
|
9181
|
-
started_at:
|
|
9182
|
-
completed_at:
|
|
9223
|
+
var builderRunStatusSchema = z54.object({
|
|
9224
|
+
id: z54.string(),
|
|
9225
|
+
status: z54.enum(BUILDER_RUN_STATUSES),
|
|
9226
|
+
build_id: z54.string(),
|
|
9227
|
+
started_at: z54.string().nullable(),
|
|
9228
|
+
completed_at: z54.string().nullable(),
|
|
9183
9229
|
checkpoint_config: StoredAgentConfigSchema.nullable(),
|
|
9184
9230
|
pending_user_questions: askUserQuestionInputSchema.nullable(),
|
|
9185
|
-
schedule_suggested:
|
|
9186
|
-
});
|
|
9187
|
-
var filterValueSchema =
|
|
9188
|
-
value:
|
|
9189
|
-
name:
|
|
9190
|
-
});
|
|
9191
|
-
var filterCategorySchema =
|
|
9192
|
-
key:
|
|
9193
|
-
name:
|
|
9194
|
-
selectionMode:
|
|
9195
|
-
values:
|
|
9196
|
-
});
|
|
9197
|
-
var caseFiltersResponseSchema =
|
|
9198
|
-
filters:
|
|
9199
|
-
});
|
|
9200
|
-
var caseQueueFolderResponseSchema =
|
|
9201
|
-
id:
|
|
9202
|
-
name:
|
|
9203
|
-
team_id:
|
|
9204
|
-
parent_folder_id:
|
|
9205
|
-
created_at:
|
|
9206
|
-
updated_at:
|
|
9207
|
-
});
|
|
9208
|
-
var caseQueueFoldersListResponseSchema =
|
|
9209
|
-
folders:
|
|
9210
|
-
});
|
|
9211
|
-
var createCaseQueueFolderRequestSchema =
|
|
9212
|
-
name:
|
|
9213
|
-
parent_folder_id:
|
|
9214
|
-
});
|
|
9215
|
-
var updateCaseQueueFolderRequestSchema =
|
|
9216
|
-
name:
|
|
9217
|
-
parent_folder_id:
|
|
9218
|
-
});
|
|
9219
|
-
var moveQueuesToFolderRequestSchema =
|
|
9220
|
-
queue_ids:
|
|
9221
|
-
folder_id:
|
|
9222
|
-
});
|
|
9223
|
-
var caseQueueLabelSchema =
|
|
9224
|
-
id:
|
|
9225
|
-
key:
|
|
9231
|
+
schedule_suggested: z54.boolean().optional()
|
|
9232
|
+
});
|
|
9233
|
+
var filterValueSchema = z55.object({
|
|
9234
|
+
value: z55.string().min(1),
|
|
9235
|
+
name: z55.string().min(1)
|
|
9236
|
+
});
|
|
9237
|
+
var filterCategorySchema = z55.object({
|
|
9238
|
+
key: z55.string(),
|
|
9239
|
+
name: z55.string().min(1),
|
|
9240
|
+
selectionMode: z55.enum(["single", "multi"]),
|
|
9241
|
+
values: z55.array(filterValueSchema)
|
|
9242
|
+
});
|
|
9243
|
+
var caseFiltersResponseSchema = z55.object({
|
|
9244
|
+
filters: z55.array(filterCategorySchema)
|
|
9245
|
+
});
|
|
9246
|
+
var caseQueueFolderResponseSchema = z56.object({
|
|
9247
|
+
id: z56.string(),
|
|
9248
|
+
name: z56.string(),
|
|
9249
|
+
team_id: z56.string(),
|
|
9250
|
+
parent_folder_id: z56.string().nullable(),
|
|
9251
|
+
created_at: z56.string(),
|
|
9252
|
+
updated_at: z56.string()
|
|
9253
|
+
});
|
|
9254
|
+
var caseQueueFoldersListResponseSchema = z56.object({
|
|
9255
|
+
folders: z56.array(caseQueueFolderResponseSchema)
|
|
9256
|
+
});
|
|
9257
|
+
var createCaseQueueFolderRequestSchema = z56.object({
|
|
9258
|
+
name: z56.string().min(1).max(100),
|
|
9259
|
+
parent_folder_id: z56.guid().nullable().optional()
|
|
9260
|
+
});
|
|
9261
|
+
var updateCaseQueueFolderRequestSchema = z56.object({
|
|
9262
|
+
name: z56.string().min(1).max(100).optional(),
|
|
9263
|
+
parent_folder_id: z56.guid().nullable().optional()
|
|
9264
|
+
});
|
|
9265
|
+
var moveQueuesToFolderRequestSchema = z56.object({
|
|
9266
|
+
queue_ids: z56.array(z56.guid()).min(1),
|
|
9267
|
+
folder_id: z56.guid().nullable()
|
|
9268
|
+
});
|
|
9269
|
+
var caseQueueLabelSchema = z57.object({
|
|
9270
|
+
id: z57.guid(),
|
|
9271
|
+
key: z57.string(),
|
|
9226
9272
|
// Empty string key means a simple tag (value-only); non-empty key creates a key-value categorization
|
|
9227
|
-
value:
|
|
9228
|
-
color_hue:
|
|
9273
|
+
value: z57.string().min(1),
|
|
9274
|
+
color_hue: z57.int().min(0).max(360)
|
|
9229
9275
|
});
|
|
9230
|
-
var caseLabelsListResponseSchema =
|
|
9231
|
-
labels:
|
|
9276
|
+
var caseLabelsListResponseSchema = z57.object({
|
|
9277
|
+
labels: z57.array(caseQueueLabelSchema)
|
|
9232
9278
|
});
|
|
9233
|
-
var caseLabelAssignInputSchema =
|
|
9234
|
-
labels:
|
|
9235
|
-
|
|
9236
|
-
key:
|
|
9237
|
-
value:
|
|
9279
|
+
var caseLabelAssignInputSchema = z57.object({
|
|
9280
|
+
labels: z57.array(
|
|
9281
|
+
z57.object({
|
|
9282
|
+
key: z57.string().optional().default(""),
|
|
9283
|
+
value: z57.string().min(1)
|
|
9238
9284
|
})
|
|
9239
9285
|
).min(1).max(50)
|
|
9240
9286
|
});
|
|
9241
|
-
var caseLabelAssignResponseSchema =
|
|
9242
|
-
labels:
|
|
9287
|
+
var caseLabelAssignResponseSchema = z57.object({
|
|
9288
|
+
labels: z57.array(caseQueueLabelSchema)
|
|
9243
9289
|
});
|
|
9244
|
-
var caseLabelUpdateInputSchema =
|
|
9290
|
+
var caseLabelUpdateInputSchema = z57.object({
|
|
9245
9291
|
// key is a partial-update field: omit to leave the existing key unchanged.
|
|
9246
9292
|
// Do NOT add `.default("")` — a missing key must not silently relocate the
|
|
9247
9293
|
// label into the empty-key ("Labels") bucket when the caller only wants to
|
|
9248
9294
|
// change color or value.
|
|
9249
|
-
key:
|
|
9250
|
-
value:
|
|
9251
|
-
color_hue:
|
|
9295
|
+
key: z57.string().optional(),
|
|
9296
|
+
value: z57.string().min(1),
|
|
9297
|
+
color_hue: z57.int().min(0).max(360).optional()
|
|
9252
9298
|
});
|
|
9253
|
-
var caseLabelUpdateResponseSchema =
|
|
9299
|
+
var caseLabelUpdateResponseSchema = z57.object({
|
|
9254
9300
|
label: caseQueueLabelSchema
|
|
9255
9301
|
});
|
|
9256
|
-
var caseLabelUnlinkInputSchema =
|
|
9257
|
-
label_ids:
|
|
9302
|
+
var caseLabelUnlinkInputSchema = z57.object({
|
|
9303
|
+
label_ids: z57.array(z57.guid()).min(1)
|
|
9258
9304
|
});
|
|
9259
|
-
var caseLabelUnlinkResponseSchema =
|
|
9260
|
-
success:
|
|
9305
|
+
var caseLabelUnlinkResponseSchema = z57.object({
|
|
9306
|
+
success: z57.boolean()
|
|
9261
9307
|
});
|
|
9262
|
-
var caseLabelCreateInputSchema =
|
|
9263
|
-
key:
|
|
9264
|
-
value:
|
|
9265
|
-
color_hue:
|
|
9308
|
+
var caseLabelCreateInputSchema = z57.object({
|
|
9309
|
+
key: z57.string().optional().default(""),
|
|
9310
|
+
value: z57.string().min(1),
|
|
9311
|
+
color_hue: z57.int().min(0).max(360).optional()
|
|
9266
9312
|
});
|
|
9267
|
-
var caseLabelCreateResponseSchema =
|
|
9313
|
+
var caseLabelCreateResponseSchema = z57.object({
|
|
9268
9314
|
label: caseQueueLabelSchema.extend({
|
|
9269
|
-
case_count:
|
|
9315
|
+
case_count: z57.int().min(0)
|
|
9270
9316
|
})
|
|
9271
9317
|
});
|
|
9272
9318
|
var caseQueueLabelWithCountSchema = caseQueueLabelSchema.extend({
|
|
9273
|
-
case_count:
|
|
9319
|
+
case_count: z57.int().min(0)
|
|
9274
9320
|
});
|
|
9275
|
-
var caseLabelsWithCountsListResponseSchema =
|
|
9276
|
-
labels:
|
|
9321
|
+
var caseLabelsWithCountsListResponseSchema = z57.object({
|
|
9322
|
+
labels: z57.array(caseQueueLabelWithCountSchema)
|
|
9277
9323
|
});
|
|
9278
9324
|
var SEQUENTIAL_TRIGGER_CONCURRENCY = 1;
|
|
9279
|
-
var settableTriggerConcurrencySchema =
|
|
9280
|
-
var caseTriggerApiSchema =
|
|
9281
|
-
id:
|
|
9282
|
-
agent_id:
|
|
9283
|
-
case_queue_id:
|
|
9284
|
-
case_queue_name:
|
|
9285
|
-
user_id:
|
|
9286
|
-
enabled:
|
|
9287
|
-
concurrency:
|
|
9288
|
-
created_at:
|
|
9289
|
-
updated_at:
|
|
9290
|
-
creator_display_name:
|
|
9291
|
-
can_disable:
|
|
9292
|
-
has_conflict:
|
|
9293
|
-
conflicting_agents:
|
|
9294
|
-
});
|
|
9295
|
-
var caseTriggerResponseSchema =
|
|
9325
|
+
var settableTriggerConcurrencySchema = z58.literal(SEQUENTIAL_TRIGGER_CONCURRENCY).nullable();
|
|
9326
|
+
var caseTriggerApiSchema = z58.object({
|
|
9327
|
+
id: z58.string(),
|
|
9328
|
+
agent_id: z58.string(),
|
|
9329
|
+
case_queue_id: z58.string(),
|
|
9330
|
+
case_queue_name: z58.string(),
|
|
9331
|
+
user_id: z58.string(),
|
|
9332
|
+
enabled: z58.boolean(),
|
|
9333
|
+
concurrency: z58.int().positive().nullable(),
|
|
9334
|
+
created_at: z58.string(),
|
|
9335
|
+
updated_at: z58.string(),
|
|
9336
|
+
creator_display_name: z58.string().nullable(),
|
|
9337
|
+
can_disable: z58.boolean(),
|
|
9338
|
+
has_conflict: z58.boolean(),
|
|
9339
|
+
conflicting_agents: z58.array(conflictingAgentSchema)
|
|
9340
|
+
});
|
|
9341
|
+
var caseTriggerResponseSchema = z58.object({
|
|
9296
9342
|
case_trigger: caseTriggerApiSchema
|
|
9297
9343
|
});
|
|
9298
|
-
var caseTriggersListResponseSchema =
|
|
9299
|
-
case_triggers:
|
|
9344
|
+
var caseTriggersListResponseSchema = z58.object({
|
|
9345
|
+
case_triggers: z58.array(caseTriggerApiSchema)
|
|
9300
9346
|
});
|
|
9301
|
-
var deleteCaseTriggerResponseSchema =
|
|
9302
|
-
success:
|
|
9347
|
+
var deleteCaseTriggerResponseSchema = z58.object({
|
|
9348
|
+
success: z58.literal(true)
|
|
9303
9349
|
});
|
|
9304
|
-
var caseTriggerConflictPreviewResponseSchema =
|
|
9305
|
-
has_conflict:
|
|
9306
|
-
conflicting_agents:
|
|
9350
|
+
var caseTriggerConflictPreviewResponseSchema = z58.object({
|
|
9351
|
+
has_conflict: z58.boolean(),
|
|
9352
|
+
conflicting_agents: z58.array(conflictingAgentSchema)
|
|
9307
9353
|
});
|
|
9308
|
-
var integrationConfigMinSchema =
|
|
9309
|
-
id:
|
|
9310
|
-
integration_id:
|
|
9311
|
-
integration_type:
|
|
9354
|
+
var integrationConfigMinSchema = z58.object({
|
|
9355
|
+
id: z58.string(),
|
|
9356
|
+
integration_id: z58.guid().nullable(),
|
|
9357
|
+
integration_type: z58.string()
|
|
9312
9358
|
});
|
|
9313
|
-
var integrationConfigsResponseSchema =
|
|
9314
|
-
integrations:
|
|
9359
|
+
var integrationConfigsResponseSchema = z58.object({
|
|
9360
|
+
integrations: z58.array(integrationConfigMinSchema)
|
|
9315
9361
|
});
|
|
9316
|
-
var caseQueueMinSchema =
|
|
9317
|
-
id:
|
|
9318
|
-
name:
|
|
9362
|
+
var caseQueueMinSchema = z58.object({
|
|
9363
|
+
id: z58.string(),
|
|
9364
|
+
name: z58.string()
|
|
9319
9365
|
});
|
|
9320
|
-
var caseQueuesForSlotResponseSchema =
|
|
9321
|
-
queues:
|
|
9366
|
+
var caseQueuesForSlotResponseSchema = z58.object({
|
|
9367
|
+
queues: z58.array(caseQueueMinSchema)
|
|
9322
9368
|
});
|
|
9323
9369
|
var APPROVAL_DECISION = {
|
|
9324
9370
|
APPROVED: "approved",
|
|
9325
9371
|
REJECTED: "rejected"
|
|
9326
9372
|
};
|
|
9327
|
-
var approvalDecisionSchema =
|
|
9373
|
+
var approvalDecisionSchema = z59.enum([
|
|
9328
9374
|
APPROVAL_DECISION.APPROVED,
|
|
9329
9375
|
APPROVAL_DECISION.REJECTED
|
|
9330
9376
|
]);
|
|
9331
9377
|
var HUMAN_REQUEST_TITLE_MAX = 200;
|
|
9332
9378
|
var HUMAN_REQUEST_PROMPT_MAX = 2e3;
|
|
9333
9379
|
var MAX_APPROVERS_PER_BATCH = 20;
|
|
9334
|
-
var humanRequestBatchRowSchema =
|
|
9335
|
-
id:
|
|
9336
|
-
assignee_user_id:
|
|
9337
|
-
assignee_name:
|
|
9338
|
-
assignee_email:
|
|
9380
|
+
var humanRequestBatchRowSchema = z59.object({
|
|
9381
|
+
id: z59.string().uuid(),
|
|
9382
|
+
assignee_user_id: z59.string().uuid(),
|
|
9383
|
+
assignee_name: z59.string().nullable(),
|
|
9384
|
+
assignee_email: z59.string().nullable(),
|
|
9339
9385
|
/**
|
|
9340
9386
|
* The free-text ask the agent posed to THIS specific approver. Each row
|
|
9341
9387
|
* carries its own prompt — the multi-approver flow does not assume a
|
|
9342
9388
|
* single shared question across approvers.
|
|
9343
9389
|
*/
|
|
9344
|
-
prompt:
|
|
9390
|
+
prompt: z59.string(),
|
|
9345
9391
|
decision: approvalDecisionSchema.nullable(),
|
|
9346
|
-
responded_at:
|
|
9347
|
-
responded_by_user_id:
|
|
9348
|
-
responded_by_name:
|
|
9349
|
-
responded_by_email:
|
|
9350
|
-
cancelled_at:
|
|
9351
|
-
cancellation_reason:
|
|
9352
|
-
});
|
|
9353
|
-
var approvalBatchSchema =
|
|
9354
|
-
id:
|
|
9355
|
-
case_queue_item_id:
|
|
9356
|
-
agent_run_id:
|
|
9357
|
-
title:
|
|
9358
|
-
created_at:
|
|
9359
|
-
resolved_at:
|
|
9360
|
-
cancelled_at:
|
|
9361
|
-
cancellation_reason:
|
|
9362
|
-
rows:
|
|
9363
|
-
});
|
|
9364
|
-
var approvalRequestInputSchema =
|
|
9365
|
-
approverUserId:
|
|
9366
|
-
prompt:
|
|
9367
|
-
});
|
|
9368
|
-
var createHumanRequestBatchBodySchema =
|
|
9369
|
-
agentRunId:
|
|
9370
|
-
title:
|
|
9371
|
-
requests:
|
|
9372
|
-
});
|
|
9373
|
-
var createHumanRequestBatchResponseSchema =
|
|
9374
|
-
batchId:
|
|
9375
|
-
createdAt:
|
|
9376
|
-
humanRequestIds:
|
|
9377
|
-
});
|
|
9378
|
-
var requestCaseApprovalsToolInputSchema =
|
|
9379
|
-
title:
|
|
9380
|
-
requests:
|
|
9381
|
-
});
|
|
9382
|
-
var requestCaseApprovalsBatchStatusSchema =
|
|
9392
|
+
responded_at: z59.string().nullable(),
|
|
9393
|
+
responded_by_user_id: z59.string().uuid().nullable(),
|
|
9394
|
+
responded_by_name: z59.string().nullable(),
|
|
9395
|
+
responded_by_email: z59.string().nullable(),
|
|
9396
|
+
cancelled_at: z59.string().nullable(),
|
|
9397
|
+
cancellation_reason: z59.string().nullable()
|
|
9398
|
+
});
|
|
9399
|
+
var approvalBatchSchema = z59.object({
|
|
9400
|
+
id: z59.string().uuid(),
|
|
9401
|
+
case_queue_item_id: z59.string().uuid(),
|
|
9402
|
+
agent_run_id: z59.string().uuid(),
|
|
9403
|
+
title: z59.string(),
|
|
9404
|
+
created_at: z59.string(),
|
|
9405
|
+
resolved_at: z59.string().nullable(),
|
|
9406
|
+
cancelled_at: z59.string().nullable(),
|
|
9407
|
+
cancellation_reason: z59.string().nullable(),
|
|
9408
|
+
rows: z59.array(humanRequestBatchRowSchema)
|
|
9409
|
+
});
|
|
9410
|
+
var approvalRequestInputSchema = z59.object({
|
|
9411
|
+
approverUserId: z59.string().uuid(),
|
|
9412
|
+
prompt: z59.string().trim().min(1).max(HUMAN_REQUEST_PROMPT_MAX)
|
|
9413
|
+
});
|
|
9414
|
+
var createHumanRequestBatchBodySchema = z59.object({
|
|
9415
|
+
agentRunId: z59.string().uuid(),
|
|
9416
|
+
title: z59.string().trim().min(1).max(HUMAN_REQUEST_TITLE_MAX),
|
|
9417
|
+
requests: z59.array(approvalRequestInputSchema).min(1).max(MAX_APPROVERS_PER_BATCH)
|
|
9418
|
+
});
|
|
9419
|
+
var createHumanRequestBatchResponseSchema = z59.object({
|
|
9420
|
+
batchId: z59.string().uuid(),
|
|
9421
|
+
createdAt: z59.string(),
|
|
9422
|
+
humanRequestIds: z59.array(z59.string().uuid())
|
|
9423
|
+
});
|
|
9424
|
+
var requestCaseApprovalsToolInputSchema = z59.object({
|
|
9425
|
+
title: z59.string().trim().min(1).max(HUMAN_REQUEST_TITLE_MAX),
|
|
9426
|
+
requests: z59.array(approvalRequestInputSchema).min(1).max(MAX_APPROVERS_PER_BATCH)
|
|
9427
|
+
});
|
|
9428
|
+
var requestCaseApprovalsBatchStatusSchema = z59.enum([
|
|
9383
9429
|
"resolved",
|
|
9384
9430
|
"cancelled"
|
|
9385
9431
|
]);
|
|
9386
|
-
var requestCaseApprovalsDecisionEntrySchema =
|
|
9387
|
-
assigneeUserId:
|
|
9432
|
+
var requestCaseApprovalsDecisionEntrySchema = z59.object({
|
|
9433
|
+
assigneeUserId: z59.string().uuid(),
|
|
9388
9434
|
decision: approvalDecisionSchema,
|
|
9389
|
-
respondedAt:
|
|
9390
|
-
respondedByUserId:
|
|
9435
|
+
respondedAt: z59.string(),
|
|
9436
|
+
respondedByUserId: z59.string().uuid()
|
|
9391
9437
|
});
|
|
9392
|
-
var requestCaseApprovalsToolOutputSchema =
|
|
9438
|
+
var requestCaseApprovalsToolOutputSchema = z59.object({
|
|
9393
9439
|
status: requestCaseApprovalsBatchStatusSchema,
|
|
9394
|
-
decisions:
|
|
9395
|
-
});
|
|
9396
|
-
var humanRequestContextSchema =
|
|
9397
|
-
|
|
9398
|
-
kind:
|
|
9399
|
-
runId:
|
|
9400
|
-
buildId:
|
|
9401
|
-
agentId:
|
|
9402
|
-
agentName:
|
|
9440
|
+
decisions: z59.array(requestCaseApprovalsDecisionEntrySchema)
|
|
9441
|
+
});
|
|
9442
|
+
var humanRequestContextSchema = z59.discriminatedUnion("kind", [
|
|
9443
|
+
z59.object({
|
|
9444
|
+
kind: z59.literal("run"),
|
|
9445
|
+
runId: z59.string().uuid(),
|
|
9446
|
+
buildId: z59.string().uuid(),
|
|
9447
|
+
agentId: z59.string().uuid(),
|
|
9448
|
+
agentName: z59.string().nullable()
|
|
9403
9449
|
}),
|
|
9404
|
-
|
|
9405
|
-
kind:
|
|
9406
|
-
queueId:
|
|
9407
|
-
caseId:
|
|
9408
|
-
caseTitle:
|
|
9450
|
+
z59.object({
|
|
9451
|
+
kind: z59.literal("case"),
|
|
9452
|
+
queueId: z59.string().uuid(),
|
|
9453
|
+
caseId: z59.string().uuid(),
|
|
9454
|
+
caseTitle: z59.string()
|
|
9409
9455
|
})
|
|
9410
9456
|
]);
|
|
9411
|
-
var caseQueueItemSchema =
|
|
9412
|
-
id:
|
|
9413
|
-
queue_id:
|
|
9414
|
-
title:
|
|
9415
|
-
data:
|
|
9416
|
-
status:
|
|
9457
|
+
var caseQueueItemSchema = z60.object({
|
|
9458
|
+
id: z60.guid(),
|
|
9459
|
+
queue_id: z60.guid(),
|
|
9460
|
+
title: z60.string(),
|
|
9461
|
+
data: z60.string(),
|
|
9462
|
+
status: z60.enum(["pending", "completed", "failed"]),
|
|
9417
9463
|
/**
|
|
9418
9464
|
* Derived display bucket combining the settlement status with ownership,
|
|
9419
9465
|
* open HITL tokens, and scheduling. See CASE_DISPLAY_STATUS in
|
|
9420
9466
|
* `constants/case-queue.ts` for the derivation rules.
|
|
9421
9467
|
*/
|
|
9422
|
-
display_status:
|
|
9468
|
+
display_status: z60.enum([
|
|
9423
9469
|
"pending",
|
|
9424
9470
|
"in_progress",
|
|
9425
9471
|
"needs_input",
|
|
@@ -9427,30 +9473,30 @@ var caseQueueItemSchema = z59.object({
|
|
|
9427
9473
|
"completed",
|
|
9428
9474
|
"failed"
|
|
9429
9475
|
]),
|
|
9430
|
-
claimed_at:
|
|
9431
|
-
claimed_by_run_id:
|
|
9432
|
-
completed_at:
|
|
9476
|
+
claimed_at: z60.string().nullable(),
|
|
9477
|
+
claimed_by_run_id: z60.string().nullable(),
|
|
9478
|
+
completed_at: z60.string().nullable(),
|
|
9433
9479
|
/** When the case is scheduled to be re-handled (null if not postponed) */
|
|
9434
|
-
postponed_to:
|
|
9435
|
-
created_at:
|
|
9436
|
-
updated_at:
|
|
9437
|
-
created_by_user_id:
|
|
9438
|
-
created_by_user_name:
|
|
9439
|
-
created_by_user_email:
|
|
9480
|
+
postponed_to: z60.string().nullable(),
|
|
9481
|
+
created_at: z60.string(),
|
|
9482
|
+
updated_at: z60.string(),
|
|
9483
|
+
created_by_user_id: z60.guid().nullable(),
|
|
9484
|
+
created_by_user_name: z60.string().nullable(),
|
|
9485
|
+
created_by_user_email: z60.string().nullable(),
|
|
9440
9486
|
/** Status of the associated agent run (running, waiting, etc.) - null if no active run */
|
|
9441
|
-
agent_run_status:
|
|
9487
|
+
agent_run_status: z60.string().nullable(),
|
|
9442
9488
|
/** User ID of the owner of the active agent run - null if no active run */
|
|
9443
|
-
agent_run_user_id:
|
|
9489
|
+
agent_run_user_id: z60.guid().nullable(),
|
|
9444
9490
|
/** ID of the pending human request for cases waiting for input */
|
|
9445
|
-
pending_human_request_id:
|
|
9491
|
+
pending_human_request_id: z60.guid().nullable(),
|
|
9446
9492
|
/** ID of the open `human_request_batch` bound to this case, if any. Used to derive the `awaiting_approval` UI state. */
|
|
9447
|
-
pending_approval_batch_id:
|
|
9493
|
+
pending_approval_batch_id: z60.guid().nullable(),
|
|
9448
9494
|
/** 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. */
|
|
9449
|
-
pending_approval_assignee_user_ids:
|
|
9495
|
+
pending_approval_assignee_user_ids: z60.array(z60.guid()),
|
|
9450
9496
|
/** Count of resolved `human_request` approval rows on this case with `decision = 'approved'`. */
|
|
9451
|
-
approval_approved_count:
|
|
9497
|
+
approval_approved_count: z60.int().nonnegative(),
|
|
9452
9498
|
/** Count of resolved `human_request` approval rows on this case with `decision = 'rejected'`. */
|
|
9453
|
-
approval_rejected_count:
|
|
9499
|
+
approval_rejected_count: z60.int().nonnegative(),
|
|
9454
9500
|
/**
|
|
9455
9501
|
* Whole-case evaluation summary for the "Found issues" column, mirroring a
|
|
9456
9502
|
* Run's `eval_summaries`. Derived from the latest `case_evaluation` output:
|
|
@@ -9460,59 +9506,59 @@ var caseQueueItemSchema = z59.object({
|
|
|
9460
9506
|
*/
|
|
9461
9507
|
eval_summary: evalSummarySchema.nullable().optional(),
|
|
9462
9508
|
/** Snippet from the data field showing search match context. Only present when search matches data. */
|
|
9463
|
-
search_match_data_snippet:
|
|
9464
|
-
before:
|
|
9465
|
-
match:
|
|
9466
|
-
after:
|
|
9509
|
+
search_match_data_snippet: z60.object({
|
|
9510
|
+
before: z60.string(),
|
|
9511
|
+
match: z60.string(),
|
|
9512
|
+
after: z60.string()
|
|
9467
9513
|
}).optional(),
|
|
9468
|
-
labels:
|
|
9469
|
-
});
|
|
9470
|
-
var caseQueueItemEventSchema =
|
|
9471
|
-
id:
|
|
9472
|
-
case_queue_item_id:
|
|
9473
|
-
agent_run_id:
|
|
9474
|
-
human_request_id:
|
|
9475
|
-
type:
|
|
9476
|
-
reason:
|
|
9477
|
-
created_at:
|
|
9478
|
-
agent_id:
|
|
9479
|
-
agent_name:
|
|
9514
|
+
labels: z60.array(caseQueueLabelSchema)
|
|
9515
|
+
});
|
|
9516
|
+
var caseQueueItemEventSchema = z60.object({
|
|
9517
|
+
id: z60.guid(),
|
|
9518
|
+
case_queue_item_id: z60.guid(),
|
|
9519
|
+
agent_run_id: z60.guid().nullable(),
|
|
9520
|
+
human_request_id: z60.guid().nullable(),
|
|
9521
|
+
type: z60.string(),
|
|
9522
|
+
reason: z60.string().nullable(),
|
|
9523
|
+
created_at: z60.string(),
|
|
9524
|
+
agent_id: z60.guid().nullable(),
|
|
9525
|
+
agent_name: z60.string().nullable(),
|
|
9480
9526
|
/**
|
|
9481
9527
|
* Owner of the agent run referenced by this event (joined from
|
|
9482
9528
|
* `agent_run.user_id`). The frontend mirrors the backend
|
|
9483
9529
|
* `assertCanAccessRun` gate against this id + the viewer's team role to
|
|
9484
9530
|
* decide whether the row should expose a click affordance.
|
|
9485
9531
|
*/
|
|
9486
|
-
user_id:
|
|
9487
|
-
user_name:
|
|
9488
|
-
user_email:
|
|
9489
|
-
human_request_title:
|
|
9490
|
-
});
|
|
9491
|
-
var casesListResponseSchema =
|
|
9492
|
-
cases:
|
|
9493
|
-
total:
|
|
9494
|
-
limit:
|
|
9495
|
-
offset:
|
|
9496
|
-
});
|
|
9497
|
-
var caseCreateInputSchema =
|
|
9498
|
-
title:
|
|
9532
|
+
user_id: z60.guid().nullable(),
|
|
9533
|
+
user_name: z60.string().nullable(),
|
|
9534
|
+
user_email: z60.string().nullable(),
|
|
9535
|
+
human_request_title: z60.string().nullable()
|
|
9536
|
+
});
|
|
9537
|
+
var casesListResponseSchema = z60.object({
|
|
9538
|
+
cases: z60.array(caseQueueItemSchema),
|
|
9539
|
+
total: z60.number(),
|
|
9540
|
+
limit: z60.int(),
|
|
9541
|
+
offset: z60.int()
|
|
9542
|
+
});
|
|
9543
|
+
var caseCreateInputSchema = z60.object({
|
|
9544
|
+
title: z60.string().min(1).max(500).describe(
|
|
9499
9545
|
"Short title for the case (max 500 characters). Put long context in `data`."
|
|
9500
9546
|
),
|
|
9501
|
-
data:
|
|
9547
|
+
data: z60.string().optional().describe(
|
|
9502
9548
|
"Additional data for the case. Free-form text or JSON; Agents receive this on claim."
|
|
9503
9549
|
),
|
|
9504
|
-
labels:
|
|
9505
|
-
|
|
9506
|
-
key:
|
|
9507
|
-
value:
|
|
9550
|
+
labels: z60.array(
|
|
9551
|
+
z60.object({
|
|
9552
|
+
key: z60.string().optional().default("").describe("Label key (omit for a simple tag)."),
|
|
9553
|
+
value: z60.string().min(1).describe("Label value (required).")
|
|
9508
9554
|
})
|
|
9509
9555
|
).max(50).optional().describe(
|
|
9510
9556
|
"Optional labels to assign to the case at creation. Labels are created on the queue if they don't already exist."
|
|
9511
9557
|
)
|
|
9512
9558
|
});
|
|
9513
|
-
var caseCreateRequestSchema =
|
|
9559
|
+
var caseCreateRequestSchema = z60.object({
|
|
9514
9560
|
case: caseCreateInputSchema.optional(),
|
|
9515
|
-
cases:
|
|
9561
|
+
cases: z60.array(caseCreateInputSchema).min(1).max(100).optional()
|
|
9516
9562
|
}).superRefine((val, ctx) => {
|
|
9517
9563
|
const hasCase = val.case !== void 0;
|
|
9518
9564
|
const hasCases = val.cases !== void 0;
|
|
@@ -9530,28 +9576,28 @@ var caseCreateRequestSchema = z59.object({
|
|
|
9530
9576
|
});
|
|
9531
9577
|
}
|
|
9532
9578
|
});
|
|
9533
|
-
var caseCreateResponseSchema =
|
|
9534
|
-
added_cases:
|
|
9579
|
+
var caseCreateResponseSchema = z60.object({
|
|
9580
|
+
added_cases: z60.array(caseQueueItemSchema)
|
|
9535
9581
|
});
|
|
9536
|
-
var casesStatsSchema =
|
|
9537
|
-
total:
|
|
9582
|
+
var casesStatsSchema = z60.object({
|
|
9583
|
+
total: z60.number(),
|
|
9538
9584
|
/** Pending, unowned, not postponed — idle and claimable */
|
|
9539
|
-
pending:
|
|
9585
|
+
pending: z60.number(),
|
|
9540
9586
|
/** "In Progress": pending cases owned by a run with no open HITL token */
|
|
9541
|
-
claimed:
|
|
9587
|
+
claimed: z60.number(),
|
|
9542
9588
|
/** "Needs Input": pending cases whose owning run has an open HITL token */
|
|
9543
|
-
waiting:
|
|
9589
|
+
waiting: z60.number(),
|
|
9544
9590
|
/** Pending, unowned cases postponed for later */
|
|
9545
|
-
postponed:
|
|
9546
|
-
completed:
|
|
9547
|
-
failed:
|
|
9591
|
+
postponed: z60.number(),
|
|
9592
|
+
completed: z60.number(),
|
|
9593
|
+
failed: z60.number()
|
|
9548
9594
|
});
|
|
9549
|
-
var casesStatsResponseSchema =
|
|
9595
|
+
var casesStatsResponseSchema = z60.object({
|
|
9550
9596
|
stats: casesStatsSchema
|
|
9551
9597
|
});
|
|
9552
|
-
var caseDetailResponseSchema =
|
|
9598
|
+
var caseDetailResponseSchema = z60.object({
|
|
9553
9599
|
case: caseQueueItemSchema,
|
|
9554
|
-
events:
|
|
9600
|
+
events: z60.array(caseQueueItemEventSchema),
|
|
9555
9601
|
/**
|
|
9556
9602
|
* Every approval batch ever created on this case, newest first. Each
|
|
9557
9603
|
* batch carries one child row per named approver (with their decision
|
|
@@ -9559,21 +9605,21 @@ var caseDetailResponseSchema = z59.object({
|
|
|
9559
9605
|
* grouped per batch so the case-level approval history reads inline.
|
|
9560
9606
|
* Empty array when no batch has ever been created on the case.
|
|
9561
9607
|
*/
|
|
9562
|
-
approvalBatches:
|
|
9608
|
+
approvalBatches: z60.array(approvalBatchSchema)
|
|
9563
9609
|
});
|
|
9564
|
-
var caseJobSummarySchema =
|
|
9565
|
-
id:
|
|
9566
|
-
case_queue_item_id:
|
|
9567
|
-
agent_id:
|
|
9568
|
-
agent_name:
|
|
9610
|
+
var caseJobSummarySchema = z60.object({
|
|
9611
|
+
id: z60.string().uuid(),
|
|
9612
|
+
case_queue_item_id: z60.string().uuid(),
|
|
9613
|
+
agent_id: z60.string().uuid(),
|
|
9614
|
+
agent_name: z60.string(),
|
|
9569
9615
|
status: agentRunStatusSchema,
|
|
9570
|
-
source:
|
|
9571
|
-
created_at:
|
|
9572
|
-
started_at:
|
|
9573
|
-
completed_at:
|
|
9574
|
-
claimed_at:
|
|
9575
|
-
has_pending_human_request:
|
|
9576
|
-
pending_human_request_title:
|
|
9616
|
+
source: z60.string().nullable(),
|
|
9617
|
+
created_at: z60.string(),
|
|
9618
|
+
started_at: z60.string().nullable(),
|
|
9619
|
+
completed_at: z60.string().nullable(),
|
|
9620
|
+
claimed_at: z60.string(),
|
|
9621
|
+
has_pending_human_request: z60.boolean(),
|
|
9622
|
+
pending_human_request_title: z60.string().nullable(),
|
|
9577
9623
|
evaluation: evalSummarySchema,
|
|
9578
9624
|
/**
|
|
9579
9625
|
* Owner of the agent run (from `agent_run.user_id`). The frontend mirrors
|
|
@@ -9581,228 +9627,228 @@ var caseJobSummarySchema = z59.object({
|
|
|
9581
9627
|
* team role to decide whether the card is interactive (live messages,
|
|
9582
9628
|
* HITL affordances, drawer link).
|
|
9583
9629
|
*/
|
|
9584
|
-
user_id:
|
|
9630
|
+
user_id: z60.guid().nullable(),
|
|
9585
9631
|
/**
|
|
9586
9632
|
* Display name of the user who triggered the run, joined from `profiles`.
|
|
9587
9633
|
* Falls back to `user_email` for the in-card user pill when null.
|
|
9588
9634
|
*/
|
|
9589
|
-
user_name:
|
|
9590
|
-
user_email:
|
|
9635
|
+
user_name: z60.string().nullable(),
|
|
9636
|
+
user_email: z60.string().nullable()
|
|
9591
9637
|
});
|
|
9592
|
-
var caseJobsResponseSchema =
|
|
9593
|
-
runs:
|
|
9638
|
+
var caseJobsResponseSchema = z60.object({
|
|
9639
|
+
runs: z60.array(caseJobSummarySchema)
|
|
9594
9640
|
});
|
|
9595
|
-
var caseJobRecentMessagesResponseSchema =
|
|
9596
|
-
messages:
|
|
9641
|
+
var caseJobRecentMessagesResponseSchema = z60.object({
|
|
9642
|
+
messages: z60.array(agentMessageWithCreatedAtSchema)
|
|
9597
9643
|
});
|
|
9598
|
-
var adjacentCasesResponseSchema =
|
|
9599
|
-
previousId:
|
|
9600
|
-
nextId:
|
|
9601
|
-
position:
|
|
9602
|
-
total:
|
|
9644
|
+
var adjacentCasesResponseSchema = z60.object({
|
|
9645
|
+
previousId: z60.guid().nullable(),
|
|
9646
|
+
nextId: z60.guid().nullable(),
|
|
9647
|
+
position: z60.number(),
|
|
9648
|
+
total: z60.number()
|
|
9603
9649
|
});
|
|
9604
|
-
var caseDeleteResponseSchema =
|
|
9605
|
-
success:
|
|
9606
|
-
interruptedRunIds:
|
|
9650
|
+
var caseDeleteResponseSchema = z60.object({
|
|
9651
|
+
success: z60.boolean(),
|
|
9652
|
+
interruptedRunIds: z60.array(z60.guid())
|
|
9607
9653
|
});
|
|
9608
|
-
var caseBulkDeleteResponseSchema =
|
|
9609
|
-
deletedCount:
|
|
9610
|
-
interruptedRunIds:
|
|
9654
|
+
var caseBulkDeleteResponseSchema = z60.object({
|
|
9655
|
+
deletedCount: z60.number(),
|
|
9656
|
+
interruptedRunIds: z60.array(z60.guid())
|
|
9611
9657
|
});
|
|
9612
|
-
var caseBulkReprocessResponseSchema =
|
|
9613
|
-
reprocessedCount:
|
|
9614
|
-
skippedCount:
|
|
9658
|
+
var caseBulkReprocessResponseSchema = z60.object({
|
|
9659
|
+
reprocessedCount: z60.number(),
|
|
9660
|
+
skippedCount: z60.number(),
|
|
9615
9661
|
// Deprecated aliases of `reprocessedCount`, both equal to it. Returned so
|
|
9616
9662
|
// clients 308-redirected here from the deprecated `bulk-delegate` /
|
|
9617
9663
|
// `bulk-retry` endpoints still find their original field. Optional +
|
|
9618
9664
|
// `deprecated` so consumers don't couple to them; removed with those aliases
|
|
9619
9665
|
// at the 2026-06-10 sunset.
|
|
9620
|
-
delegatedCount:
|
|
9666
|
+
delegatedCount: z60.number().meta({
|
|
9621
9667
|
deprecated: true,
|
|
9622
9668
|
description: "Deprecated alias of reprocessedCount, kept for clients redirected from bulk-delegate. Removed on 2026-06-10."
|
|
9623
9669
|
}).optional(),
|
|
9624
|
-
retriedCount:
|
|
9670
|
+
retriedCount: z60.number().meta({
|
|
9625
9671
|
deprecated: true,
|
|
9626
9672
|
description: "Deprecated alias of reprocessedCount, kept for clients redirected from bulk-retry. Removed on 2026-06-10."
|
|
9627
9673
|
}).optional()
|
|
9628
9674
|
});
|
|
9629
|
-
var caseBulkStatusUpdateResponseSchema =
|
|
9630
|
-
updatedCount:
|
|
9631
|
-
skippedCount:
|
|
9632
|
-
interruptedRunIds:
|
|
9633
|
-
});
|
|
9634
|
-
var deleteQueueResponseSchema =
|
|
9635
|
-
success:
|
|
9636
|
-
deleted_case_count:
|
|
9637
|
-
interrupted_run_ids:
|
|
9638
|
-
});
|
|
9639
|
-
var caseClearQueueResponseSchema =
|
|
9640
|
-
success:
|
|
9641
|
-
deletedCount:
|
|
9642
|
-
interruptedRunIds:
|
|
9643
|
-
});
|
|
9644
|
-
var caseQueueSchema =
|
|
9645
|
-
id:
|
|
9646
|
-
name:
|
|
9647
|
-
description:
|
|
9648
|
-
folder_id:
|
|
9675
|
+
var caseBulkStatusUpdateResponseSchema = z60.object({
|
|
9676
|
+
updatedCount: z60.number(),
|
|
9677
|
+
skippedCount: z60.number(),
|
|
9678
|
+
interruptedRunIds: z60.array(z60.guid())
|
|
9679
|
+
});
|
|
9680
|
+
var deleteQueueResponseSchema = z60.object({
|
|
9681
|
+
success: z60.boolean(),
|
|
9682
|
+
deleted_case_count: z60.number(),
|
|
9683
|
+
interrupted_run_ids: z60.array(z60.guid())
|
|
9684
|
+
});
|
|
9685
|
+
var caseClearQueueResponseSchema = z60.object({
|
|
9686
|
+
success: z60.boolean(),
|
|
9687
|
+
deletedCount: z60.number(),
|
|
9688
|
+
interruptedRunIds: z60.array(z60.guid())
|
|
9689
|
+
});
|
|
9690
|
+
var caseQueueSchema = z60.object({
|
|
9691
|
+
id: z60.guid(),
|
|
9692
|
+
name: z60.string(),
|
|
9693
|
+
description: z60.string().nullable(),
|
|
9694
|
+
folder_id: z60.guid().nullable(),
|
|
9649
9695
|
// Optional (additive) so existing CaseQueue consumers and fixtures across the
|
|
9650
9696
|
// FE/CLI don't break; the backend always populates it on real responses.
|
|
9651
|
-
automation_id:
|
|
9652
|
-
created_at:
|
|
9697
|
+
automation_id: z60.guid().nullable().optional(),
|
|
9698
|
+
created_at: z60.string(),
|
|
9653
9699
|
/**
|
|
9654
9700
|
* True when at least one case in this queue has ever had an approval
|
|
9655
9701
|
* batch (open, resolved, or cancelled). The frontend uses this to relabel
|
|
9656
9702
|
* the "Needs input" filter to "Needs input/approval" and to show the
|
|
9657
9703
|
* per-case approvals column.
|
|
9658
9704
|
*/
|
|
9659
|
-
has_approvals:
|
|
9705
|
+
has_approvals: z60.boolean()
|
|
9660
9706
|
});
|
|
9661
|
-
var caseQueuesResponseSchema =
|
|
9662
|
-
queues:
|
|
9663
|
-
total:
|
|
9664
|
-
limit:
|
|
9665
|
-
offset:
|
|
9707
|
+
var caseQueuesResponseSchema = z60.object({
|
|
9708
|
+
queues: z60.array(caseQueueSchema),
|
|
9709
|
+
total: z60.number(),
|
|
9710
|
+
limit: z60.number(),
|
|
9711
|
+
offset: z60.number()
|
|
9666
9712
|
});
|
|
9667
|
-
var caseGetQueueResponseSchema =
|
|
9713
|
+
var caseGetQueueResponseSchema = z60.object({
|
|
9668
9714
|
queue: caseQueueSchema
|
|
9669
9715
|
});
|
|
9670
|
-
var caseCreateQueueResponseSchema =
|
|
9716
|
+
var caseCreateQueueResponseSchema = z60.object({
|
|
9671
9717
|
queue: caseQueueSchema
|
|
9672
9718
|
});
|
|
9673
|
-
var caseUpdateQueueResponseSchema =
|
|
9719
|
+
var caseUpdateQueueResponseSchema = z60.object({
|
|
9674
9720
|
queue: caseQueueSchema
|
|
9675
9721
|
});
|
|
9676
|
-
var caseQueueAgentProblemSchema =
|
|
9722
|
+
var caseQueueAgentProblemSchema = z60.enum([
|
|
9677
9723
|
"multiple_triggers",
|
|
9678
9724
|
"producer_consumer_mix"
|
|
9679
9725
|
]);
|
|
9680
|
-
var queueAgentProducerSchema =
|
|
9681
|
-
agent_id:
|
|
9682
|
-
agent_name:
|
|
9683
|
-
case_trigger_enabled:
|
|
9684
|
-
case_trigger_queue_name:
|
|
9685
|
-
problems:
|
|
9686
|
-
});
|
|
9687
|
-
var queueAgentConsumerSchema =
|
|
9688
|
-
agent_id:
|
|
9689
|
-
agent_name:
|
|
9690
|
-
case_trigger_enabled:
|
|
9691
|
-
is_handover_target:
|
|
9692
|
-
problems:
|
|
9726
|
+
var queueAgentProducerSchema = z60.object({
|
|
9727
|
+
agent_id: z60.guid(),
|
|
9728
|
+
agent_name: z60.string(),
|
|
9729
|
+
case_trigger_enabled: z60.boolean(),
|
|
9730
|
+
case_trigger_queue_name: z60.string().nullable(),
|
|
9731
|
+
problems: z60.array(caseQueueAgentProblemSchema)
|
|
9732
|
+
});
|
|
9733
|
+
var queueAgentConsumerSchema = z60.object({
|
|
9734
|
+
agent_id: z60.guid(),
|
|
9735
|
+
agent_name: z60.string(),
|
|
9736
|
+
case_trigger_enabled: z60.boolean(),
|
|
9737
|
+
is_handover_target: z60.boolean(),
|
|
9738
|
+
problems: z60.array(caseQueueAgentProblemSchema),
|
|
9693
9739
|
/**
|
|
9694
9740
|
* Max concurrent Jobs this consumer's enabled trigger allows, after the
|
|
9695
9741
|
* platform cap is applied. Populated only by the single-queue agents
|
|
9696
9742
|
* endpoint; omitted when the consumer has no enabled trigger.
|
|
9697
9743
|
*/
|
|
9698
|
-
concurrency_limit:
|
|
9744
|
+
concurrency_limit: z60.int().nonnegative().optional(),
|
|
9699
9745
|
/**
|
|
9700
9746
|
* True when this consumer's active Jobs have reached `concurrency_limit`, so
|
|
9701
9747
|
* the dispatcher pauses and new cases stay pending until a Job finishes.
|
|
9702
9748
|
* Populated only by the single-queue agents endpoint.
|
|
9703
9749
|
*/
|
|
9704
|
-
at_concurrency_limit:
|
|
9705
|
-
});
|
|
9706
|
-
var queueAgentsResponseSchema =
|
|
9707
|
-
queue_name:
|
|
9708
|
-
producers:
|
|
9709
|
-
consumers:
|
|
9710
|
-
});
|
|
9711
|
-
var exportCasesResponseSchema =
|
|
9712
|
-
version:
|
|
9713
|
-
queue_name:
|
|
9714
|
-
exported_at:
|
|
9715
|
-
cases:
|
|
9716
|
-
|
|
9717
|
-
title:
|
|
9718
|
-
data:
|
|
9750
|
+
at_concurrency_limit: z60.boolean().optional()
|
|
9751
|
+
});
|
|
9752
|
+
var queueAgentsResponseSchema = z60.object({
|
|
9753
|
+
queue_name: z60.string(),
|
|
9754
|
+
producers: z60.array(queueAgentProducerSchema),
|
|
9755
|
+
consumers: z60.array(queueAgentConsumerSchema)
|
|
9756
|
+
});
|
|
9757
|
+
var exportCasesResponseSchema = z60.object({
|
|
9758
|
+
version: z60.number(),
|
|
9759
|
+
queue_name: z60.string(),
|
|
9760
|
+
exported_at: z60.string(),
|
|
9761
|
+
cases: z60.array(
|
|
9762
|
+
z60.object({
|
|
9763
|
+
title: z60.string(),
|
|
9764
|
+
data: z60.string().optional()
|
|
9719
9765
|
})
|
|
9720
9766
|
)
|
|
9721
9767
|
});
|
|
9722
|
-
var importCasesResponseSchema =
|
|
9723
|
-
imported_count:
|
|
9768
|
+
var importCasesResponseSchema = z60.object({
|
|
9769
|
+
imported_count: z60.number()
|
|
9724
9770
|
});
|
|
9725
|
-
var batchQueueStatsResponseSchema =
|
|
9726
|
-
stats:
|
|
9771
|
+
var batchQueueStatsResponseSchema = z60.object({
|
|
9772
|
+
stats: z60.record(z60.guid(), casesStatsSchema)
|
|
9727
9773
|
});
|
|
9728
|
-
var batchQueueAgentsResponseSchema =
|
|
9729
|
-
agents:
|
|
9730
|
-
|
|
9731
|
-
|
|
9732
|
-
producers:
|
|
9733
|
-
consumers:
|
|
9774
|
+
var batchQueueAgentsResponseSchema = z60.object({
|
|
9775
|
+
agents: z60.record(
|
|
9776
|
+
z60.guid(),
|
|
9777
|
+
z60.object({
|
|
9778
|
+
producers: z60.array(queueAgentProducerSchema),
|
|
9779
|
+
consumers: z60.array(queueAgentConsumerSchema)
|
|
9734
9780
|
})
|
|
9735
9781
|
)
|
|
9736
9782
|
});
|
|
9737
|
-
var createTeamInviteLinkRequestSchema =
|
|
9738
|
-
frontendUrl:
|
|
9783
|
+
var createTeamInviteLinkRequestSchema = z61.object({
|
|
9784
|
+
frontendUrl: z61.url()
|
|
9739
9785
|
});
|
|
9740
|
-
var getTeamInviteLinkQuerySchema =
|
|
9741
|
-
frontendUrl:
|
|
9786
|
+
var getTeamInviteLinkQuerySchema = z61.object({
|
|
9787
|
+
frontendUrl: z61.url()
|
|
9742
9788
|
});
|
|
9743
|
-
var teamInviteLinkCreatorSchema =
|
|
9744
|
-
id:
|
|
9745
|
-
name:
|
|
9746
|
-
email:
|
|
9789
|
+
var teamInviteLinkCreatorSchema = z61.object({
|
|
9790
|
+
id: z61.guid(),
|
|
9791
|
+
name: z61.string().nullable(),
|
|
9792
|
+
email: z61.email()
|
|
9747
9793
|
});
|
|
9748
|
-
var teamInviteLinkSchema =
|
|
9749
|
-
id:
|
|
9750
|
-
url:
|
|
9751
|
-
createdAt:
|
|
9794
|
+
var teamInviteLinkSchema = z61.object({
|
|
9795
|
+
id: z61.guid(),
|
|
9796
|
+
url: z61.url().optional(),
|
|
9797
|
+
createdAt: z61.string(),
|
|
9752
9798
|
createdBy: teamInviteLinkCreatorSchema
|
|
9753
9799
|
});
|
|
9754
|
-
var getTeamInviteLinkResponseSchema =
|
|
9755
|
-
hasLink:
|
|
9800
|
+
var getTeamInviteLinkResponseSchema = z61.object({
|
|
9801
|
+
hasLink: z61.boolean(),
|
|
9756
9802
|
link: teamInviteLinkSchema.optional()
|
|
9757
9803
|
});
|
|
9758
|
-
var joinLinkInfoResponseSchema =
|
|
9759
|
-
valid:
|
|
9760
|
-
teamName:
|
|
9761
|
-
teamId:
|
|
9762
|
-
reason:
|
|
9804
|
+
var joinLinkInfoResponseSchema = z61.object({
|
|
9805
|
+
valid: z61.boolean(),
|
|
9806
|
+
teamName: z61.string().optional(),
|
|
9807
|
+
teamId: z61.guid().optional(),
|
|
9808
|
+
reason: z61.enum(["invalid", "expired"]).optional()
|
|
9763
9809
|
});
|
|
9764
|
-
var acceptJoinLinkResponseSchema =
|
|
9765
|
-
success:
|
|
9766
|
-
teamId:
|
|
9810
|
+
var acceptJoinLinkResponseSchema = z61.object({
|
|
9811
|
+
success: z61.boolean(),
|
|
9812
|
+
teamId: z61.guid()
|
|
9767
9813
|
});
|
|
9768
|
-
var createClarityProcessInviteLinkRequestSchema =
|
|
9769
|
-
frontendUrl:
|
|
9814
|
+
var createClarityProcessInviteLinkRequestSchema = z62.object({
|
|
9815
|
+
frontendUrl: z62.url()
|
|
9770
9816
|
});
|
|
9771
9817
|
var clarityProcessInviteLinkSchema = teamInviteLinkSchema;
|
|
9772
|
-
var getClarityProcessInviteLinkResponseSchema =
|
|
9773
|
-
hasLink:
|
|
9818
|
+
var getClarityProcessInviteLinkResponseSchema = z62.object({
|
|
9819
|
+
hasLink: z62.boolean(),
|
|
9774
9820
|
link: clarityProcessInviteLinkSchema.optional()
|
|
9775
9821
|
});
|
|
9776
|
-
var clarityJoinLinkInfoResponseSchema =
|
|
9777
|
-
valid:
|
|
9778
|
-
processName:
|
|
9779
|
-
processId:
|
|
9780
|
-
teamId:
|
|
9781
|
-
reason:
|
|
9782
|
-
});
|
|
9783
|
-
var acceptClarityJoinLinkResponseSchema =
|
|
9784
|
-
success:
|
|
9785
|
-
processId:
|
|
9786
|
-
});
|
|
9787
|
-
var credentialPreviewSchema =
|
|
9788
|
-
id:
|
|
9789
|
-
domain:
|
|
9790
|
-
username:
|
|
9791
|
-
hasEnabledTOTP:
|
|
9792
|
-
hasPassword:
|
|
9793
|
-
user_id:
|
|
9794
|
-
});
|
|
9795
|
-
var otpResponseSchema =
|
|
9796
|
-
code:
|
|
9797
|
-
expiresAt:
|
|
9798
|
-
});
|
|
9799
|
-
var encryptedDataSchema =
|
|
9800
|
-
encrypted_data:
|
|
9801
|
-
key_version:
|
|
9802
|
-
});
|
|
9803
|
-
var credentialDetailSchema =
|
|
9804
|
-
domain:
|
|
9805
|
-
username:
|
|
9822
|
+
var clarityJoinLinkInfoResponseSchema = z62.object({
|
|
9823
|
+
valid: z62.boolean(),
|
|
9824
|
+
processName: z62.string().optional(),
|
|
9825
|
+
processId: z62.guid().optional(),
|
|
9826
|
+
teamId: z62.guid().optional(),
|
|
9827
|
+
reason: z62.enum(["invalid", "expired"]).optional()
|
|
9828
|
+
});
|
|
9829
|
+
var acceptClarityJoinLinkResponseSchema = z62.object({
|
|
9830
|
+
success: z62.boolean(),
|
|
9831
|
+
processId: z62.guid()
|
|
9832
|
+
});
|
|
9833
|
+
var credentialPreviewSchema = z63.object({
|
|
9834
|
+
id: z63.guid().describe("Credential ID"),
|
|
9835
|
+
domain: z63.string().describe("Domain for the credential"),
|
|
9836
|
+
username: z63.string().nullable().describe("Username (if any)"),
|
|
9837
|
+
hasEnabledTOTP: z63.boolean().describe("Whether TOTP is enabled"),
|
|
9838
|
+
hasPassword: z63.boolean().describe("Whether a password is stored"),
|
|
9839
|
+
user_id: z63.string().nullable().describe("Owner user id; null when shared with the team")
|
|
9840
|
+
});
|
|
9841
|
+
var otpResponseSchema = z63.object({
|
|
9842
|
+
code: z63.string().describe("The TOTP code"),
|
|
9843
|
+
expiresAt: z63.number().describe("Expiration timestamp in milliseconds")
|
|
9844
|
+
});
|
|
9845
|
+
var encryptedDataSchema = z63.object({
|
|
9846
|
+
encrypted_data: z63.string().describe("Base64-encoded encrypted data"),
|
|
9847
|
+
key_version: z63.string().describe("KMS key version or 'base64' for dev")
|
|
9848
|
+
});
|
|
9849
|
+
var credentialDetailSchema = z63.object({
|
|
9850
|
+
domain: z63.string().describe("Domain for the credential"),
|
|
9851
|
+
username: z63.string().nullable().describe("Username (if any)"),
|
|
9806
9852
|
password: encryptedDataSchema.nullable().describe("Encrypted password data")
|
|
9807
9853
|
});
|
|
9808
9854
|
var FEATURE_FLAG_CATALOGUE = {
|
|
@@ -9961,6 +10007,11 @@ var FEATURE_FLAG_CATALOGUE = {
|
|
|
9961
10007
|
defaultValue: false,
|
|
9962
10008
|
description: "Enables the Move Agent to another team flow. Default-off while we monitor multi-table move semantics in prod; flip on for individual teams to grant access."
|
|
9963
10009
|
},
|
|
10010
|
+
CROSS_TEAM_PULSE_MOVE: {
|
|
10011
|
+
key: "cross_team_pulse_move",
|
|
10012
|
+
defaultValue: false,
|
|
10013
|
+
description: "Enables the Move Pulse dashboard to another team flow. Moving a dashboard reassigns its ownership to the mover, resets it to private, and reconnects or drops its attached Connections against the target team. Default-off while we monitor move semantics in prod; flip on for individual teams to grant access."
|
|
10014
|
+
},
|
|
9964
10015
|
TEAM_ONTOLOGY: {
|
|
9965
10016
|
key: "team_ontology",
|
|
9966
10017
|
defaultValue: false,
|
|
@@ -10039,160 +10090,160 @@ function coerceFlagValue(value) {
|
|
|
10039
10090
|
}
|
|
10040
10091
|
__name(coerceFlagValue, "coerceFlagValue");
|
|
10041
10092
|
__name2(coerceFlagValue, "coerceFlagValue");
|
|
10042
|
-
var teamFileItemSchema =
|
|
10043
|
-
id:
|
|
10044
|
-
name:
|
|
10045
|
-
path:
|
|
10046
|
-
created_at:
|
|
10047
|
-
updated_at:
|
|
10048
|
-
metadata:
|
|
10049
|
-
mimetype:
|
|
10050
|
-
size:
|
|
10093
|
+
var teamFileItemSchema = z64.object({
|
|
10094
|
+
id: z64.string(),
|
|
10095
|
+
name: z64.string(),
|
|
10096
|
+
path: z64.string(),
|
|
10097
|
+
created_at: z64.string().optional(),
|
|
10098
|
+
updated_at: z64.string().optional(),
|
|
10099
|
+
metadata: z64.object({
|
|
10100
|
+
mimetype: z64.string().optional(),
|
|
10101
|
+
size: z64.number().optional()
|
|
10051
10102
|
}).nullable().optional()
|
|
10052
10103
|
});
|
|
10053
|
-
var listTeamFilesResponseSchema =
|
|
10054
|
-
files:
|
|
10055
|
-
});
|
|
10056
|
-
var createTeamFileUploadUrlBodySchema =
|
|
10057
|
-
fileName:
|
|
10058
|
-
contentType:
|
|
10059
|
-
});
|
|
10060
|
-
var createTeamFileUploadUrlResponseSchema =
|
|
10061
|
-
signedUrl:
|
|
10062
|
-
expiresAt:
|
|
10063
|
-
filePath:
|
|
10064
|
-
});
|
|
10065
|
-
var renameTeamFileBodySchema =
|
|
10066
|
-
relativePath:
|
|
10067
|
-
newFilenameOnly:
|
|
10068
|
-
});
|
|
10069
|
-
var teamFileSuccessResponseSchema =
|
|
10070
|
-
success:
|
|
10071
|
-
});
|
|
10072
|
-
var teamFileDownloadUrlResponseSchema =
|
|
10073
|
-
url:
|
|
10074
|
-
expiresAt:
|
|
10075
|
-
});
|
|
10076
|
-
var teamFileContentResponseSchema =
|
|
10077
|
-
content:
|
|
10078
|
-
path:
|
|
10079
|
-
contentType:
|
|
10080
|
-
});
|
|
10081
|
-
var updateTeamFileContentBodySchema =
|
|
10082
|
-
content:
|
|
10083
|
-
});
|
|
10084
|
-
var globalAdminApiSchema =
|
|
10085
|
-
id:
|
|
10086
|
-
email:
|
|
10087
|
-
userId:
|
|
10088
|
-
userName:
|
|
10089
|
-
addedByUserId:
|
|
10090
|
-
createdAt:
|
|
10091
|
-
});
|
|
10092
|
-
var globalAdminListResponseSchema =
|
|
10093
|
-
admins:
|
|
10094
|
-
});
|
|
10095
|
-
var globalAdminSearchResponseSchema =
|
|
10096
|
-
users:
|
|
10097
|
-
|
|
10098
|
-
id:
|
|
10099
|
-
name:
|
|
10100
|
-
email:
|
|
10101
|
-
createdAt:
|
|
10104
|
+
var listTeamFilesResponseSchema = z64.object({
|
|
10105
|
+
files: z64.array(teamFileItemSchema)
|
|
10106
|
+
});
|
|
10107
|
+
var createTeamFileUploadUrlBodySchema = z64.object({
|
|
10108
|
+
fileName: z64.string().min(1),
|
|
10109
|
+
contentType: z64.string().min(1)
|
|
10110
|
+
});
|
|
10111
|
+
var createTeamFileUploadUrlResponseSchema = z64.object({
|
|
10112
|
+
signedUrl: z64.url(),
|
|
10113
|
+
expiresAt: z64.iso.datetime(),
|
|
10114
|
+
filePath: z64.string()
|
|
10115
|
+
});
|
|
10116
|
+
var renameTeamFileBodySchema = z64.object({
|
|
10117
|
+
relativePath: z64.string().min(1),
|
|
10118
|
+
newFilenameOnly: z64.string().min(1)
|
|
10119
|
+
});
|
|
10120
|
+
var teamFileSuccessResponseSchema = z64.object({
|
|
10121
|
+
success: z64.boolean()
|
|
10122
|
+
});
|
|
10123
|
+
var teamFileDownloadUrlResponseSchema = z64.object({
|
|
10124
|
+
url: z64.url(),
|
|
10125
|
+
expiresAt: z64.iso.datetime()
|
|
10126
|
+
});
|
|
10127
|
+
var teamFileContentResponseSchema = z64.object({
|
|
10128
|
+
content: z64.string(),
|
|
10129
|
+
path: z64.string(),
|
|
10130
|
+
contentType: z64.string().optional()
|
|
10131
|
+
});
|
|
10132
|
+
var updateTeamFileContentBodySchema = z64.object({
|
|
10133
|
+
content: z64.string()
|
|
10134
|
+
});
|
|
10135
|
+
var globalAdminApiSchema = z65.object({
|
|
10136
|
+
id: z65.guid(),
|
|
10137
|
+
email: z65.string(),
|
|
10138
|
+
userId: z65.guid(),
|
|
10139
|
+
userName: z65.string().nullable(),
|
|
10140
|
+
addedByUserId: z65.guid().nullable(),
|
|
10141
|
+
createdAt: z65.string()
|
|
10142
|
+
});
|
|
10143
|
+
var globalAdminListResponseSchema = z65.object({
|
|
10144
|
+
admins: z65.array(globalAdminApiSchema)
|
|
10145
|
+
});
|
|
10146
|
+
var globalAdminSearchResponseSchema = z65.object({
|
|
10147
|
+
users: z65.array(
|
|
10148
|
+
z65.object({
|
|
10149
|
+
id: z65.guid(),
|
|
10150
|
+
name: z65.string().nullable(),
|
|
10151
|
+
email: z65.string(),
|
|
10152
|
+
createdAt: z65.string().nullable()
|
|
10102
10153
|
})
|
|
10103
10154
|
)
|
|
10104
10155
|
});
|
|
10105
|
-
var globalAdminCreateRequestSchema =
|
|
10106
|
-
userId:
|
|
10156
|
+
var globalAdminCreateRequestSchema = z65.object({
|
|
10157
|
+
userId: z65.guid()
|
|
10107
10158
|
});
|
|
10108
|
-
var globalAdminCreateResponseSchema =
|
|
10159
|
+
var globalAdminCreateResponseSchema = z65.object({
|
|
10109
10160
|
admin: globalAdminApiSchema
|
|
10110
10161
|
});
|
|
10111
|
-
var globalAdminDeleteResponseSchema =
|
|
10112
|
-
success:
|
|
10162
|
+
var globalAdminDeleteResponseSchema = z65.object({
|
|
10163
|
+
success: z65.literal(true)
|
|
10113
10164
|
});
|
|
10114
|
-
var adminAccessCheckResponseSchema =
|
|
10115
|
-
isGlobalAdmin:
|
|
10165
|
+
var adminAccessCheckResponseSchema = z65.object({
|
|
10166
|
+
isGlobalAdmin: z65.boolean()
|
|
10116
10167
|
});
|
|
10117
10168
|
var JOB_LIST_SORT_COLUMNS = ["created_at"];
|
|
10118
|
-
var jobListSortColumnSchema =
|
|
10119
|
-
var jobListIssueSeveritySchema =
|
|
10169
|
+
var jobListSortColumnSchema = z66.enum(JOB_LIST_SORT_COLUMNS);
|
|
10170
|
+
var jobListIssueSeveritySchema = z66.enum(
|
|
10120
10171
|
ALL_EVALUATION_RUBRIC_SEVERITIES
|
|
10121
10172
|
);
|
|
10122
|
-
var jobListItemSchema =
|
|
10123
|
-
id:
|
|
10124
|
-
created_at:
|
|
10125
|
-
updated_at:
|
|
10126
|
-
started_at:
|
|
10127
|
-
completed_at:
|
|
10173
|
+
var jobListItemSchema = z66.object({
|
|
10174
|
+
id: z66.guid(),
|
|
10175
|
+
created_at: z66.coerce.date(),
|
|
10176
|
+
updated_at: z66.coerce.date(),
|
|
10177
|
+
started_at: z66.coerce.date().nullable(),
|
|
10178
|
+
completed_at: z66.coerce.date().nullable(),
|
|
10128
10179
|
status: agentRunStatusSchema,
|
|
10129
|
-
source:
|
|
10130
|
-
title:
|
|
10131
|
-
run_number:
|
|
10180
|
+
source: z66.string().nullable(),
|
|
10181
|
+
title: z66.string(),
|
|
10182
|
+
run_number: z66.number(),
|
|
10132
10183
|
// Agent info
|
|
10133
|
-
agent_id:
|
|
10134
|
-
agent_name:
|
|
10135
|
-
build_id:
|
|
10184
|
+
agent_id: z66.guid(),
|
|
10185
|
+
agent_name: z66.string(),
|
|
10186
|
+
build_id: z66.guid(),
|
|
10136
10187
|
// User info
|
|
10137
|
-
user_id:
|
|
10188
|
+
user_id: z66.guid().nullable(),
|
|
10138
10189
|
// Case info
|
|
10139
|
-
case_queue_item_id:
|
|
10140
|
-
case_queue_id:
|
|
10141
|
-
case_queue_name:
|
|
10142
|
-
case_title:
|
|
10143
|
-
postponed_to:
|
|
10144
|
-
submitted_prompt_count:
|
|
10190
|
+
case_queue_item_id: z66.guid().nullable(),
|
|
10191
|
+
case_queue_id: z66.guid().nullable(),
|
|
10192
|
+
case_queue_name: z66.string().nullable(),
|
|
10193
|
+
case_title: z66.string().nullable(),
|
|
10194
|
+
postponed_to: z66.coerce.date().nullable(),
|
|
10195
|
+
submitted_prompt_count: z66.number().int().min(0),
|
|
10145
10196
|
eval_summaries: evalSummarySchema.nullable().optional()
|
|
10146
10197
|
});
|
|
10147
|
-
var jobListResponseSchema =
|
|
10148
|
-
data:
|
|
10149
|
-
total:
|
|
10198
|
+
var jobListResponseSchema = z66.object({
|
|
10199
|
+
data: z66.array(jobListItemSchema),
|
|
10200
|
+
total: z66.number()
|
|
10150
10201
|
});
|
|
10151
|
-
var jobFilterOptionsSchema =
|
|
10152
|
-
agents:
|
|
10153
|
-
|
|
10154
|
-
id:
|
|
10155
|
-
name:
|
|
10156
|
-
folder_id:
|
|
10202
|
+
var jobFilterOptionsSchema = z66.object({
|
|
10203
|
+
agents: z66.array(
|
|
10204
|
+
z66.object({
|
|
10205
|
+
id: z66.string(),
|
|
10206
|
+
name: z66.string(),
|
|
10207
|
+
folder_id: z66.string().nullable()
|
|
10157
10208
|
})
|
|
10158
10209
|
),
|
|
10159
|
-
folders:
|
|
10160
|
-
|
|
10161
|
-
id:
|
|
10162
|
-
name:
|
|
10163
|
-
parent_folder_id:
|
|
10210
|
+
folders: z66.array(
|
|
10211
|
+
z66.object({
|
|
10212
|
+
id: z66.string(),
|
|
10213
|
+
name: z66.string(),
|
|
10214
|
+
parent_folder_id: z66.string().nullable()
|
|
10164
10215
|
})
|
|
10165
10216
|
),
|
|
10166
|
-
users:
|
|
10167
|
-
|
|
10168
|
-
id:
|
|
10169
|
-
name:
|
|
10170
|
-
email:
|
|
10217
|
+
users: z66.array(
|
|
10218
|
+
z66.object({
|
|
10219
|
+
id: z66.string(),
|
|
10220
|
+
name: z66.string().nullable(),
|
|
10221
|
+
email: z66.string()
|
|
10171
10222
|
})
|
|
10172
10223
|
),
|
|
10173
|
-
caseQueues:
|
|
10174
|
-
});
|
|
10175
|
-
var mcpStepSchema =
|
|
10176
|
-
tool:
|
|
10177
|
-
params:
|
|
10178
|
-
fallbackSelectors:
|
|
10179
|
-
description:
|
|
10180
|
-
screenshot:
|
|
10181
|
-
snapshot:
|
|
10182
|
-
framePath:
|
|
10224
|
+
caseQueues: z66.array(z66.object({ id: z66.string(), name: z66.string() }))
|
|
10225
|
+
});
|
|
10226
|
+
var mcpStepSchema = z67.object({
|
|
10227
|
+
tool: z67.string().describe("MCP tool name (e.g., click, fill, navigate_page)"),
|
|
10228
|
+
params: z67.record(z67.string(), z67.unknown()).describe("Tool-specific parameters"),
|
|
10229
|
+
fallbackSelectors: z67.array(z67.string()).optional().describe("Alternative CSS selectors if primary fails"),
|
|
10230
|
+
description: z67.string().optional().describe("Human-readable step description"),
|
|
10231
|
+
screenshot: z67.string().optional().describe("Base64 screenshot at this step for visual context"),
|
|
10232
|
+
snapshot: z67.string().optional().describe("DOM snapshot in accessibility tree format at this step"),
|
|
10233
|
+
framePath: z67.array(z67.number()).optional().describe(
|
|
10183
10234
|
"Index-based path to the target iframe (e.g., [0] for first child iframe, [1, 0] for nested)"
|
|
10184
10235
|
)
|
|
10185
10236
|
});
|
|
10186
|
-
var mcpWorkflowSchema =
|
|
10187
|
-
name:
|
|
10188
|
-
startUrl:
|
|
10189
|
-
viewport:
|
|
10190
|
-
width:
|
|
10191
|
-
height:
|
|
10237
|
+
var mcpWorkflowSchema = z67.object({
|
|
10238
|
+
name: z67.string(),
|
|
10239
|
+
startUrl: z67.string(),
|
|
10240
|
+
viewport: z67.object({
|
|
10241
|
+
width: z67.number(),
|
|
10242
|
+
height: z67.number()
|
|
10192
10243
|
}),
|
|
10193
|
-
steps:
|
|
10244
|
+
steps: z67.array(mcpStepSchema)
|
|
10194
10245
|
});
|
|
10195
|
-
var MCP_WORKFLOW_JSON_SCHEMA =
|
|
10246
|
+
var MCP_WORKFLOW_JSON_SCHEMA = z67.toJSONSchema(mcpWorkflowSchema, {
|
|
10196
10247
|
reused: "inline"
|
|
10197
10248
|
});
|
|
10198
10249
|
var MCP_WORKFLOW_SCHEMA_DOCS = JSON.stringify(
|
|
@@ -10201,52 +10252,55 @@ var MCP_WORKFLOW_SCHEMA_DOCS = JSON.stringify(
|
|
|
10201
10252
|
2
|
|
10202
10253
|
);
|
|
10203
10254
|
var ORG_BROWSER_CONFIG_VERSION = 1;
|
|
10204
|
-
var organizationBrowserConfigDataSchema =
|
|
10255
|
+
var organizationBrowserConfigDataSchema = z68.object({
|
|
10205
10256
|
browserProvider: BrowserProviderTypeSchema.nullable(),
|
|
10206
10257
|
dataResidency: DataResidencySchema.nullable(),
|
|
10207
10258
|
dataHandling: DataHandlingSchema.nullable(),
|
|
10208
|
-
enforced:
|
|
10259
|
+
enforced: z68.boolean(),
|
|
10260
|
+
egressMode: browserEgressModeSchema.nullable().optional()
|
|
10209
10261
|
});
|
|
10210
|
-
var organizationBrowserConfigSchema =
|
|
10211
|
-
version:
|
|
10262
|
+
var organizationBrowserConfigSchema = z68.object({
|
|
10263
|
+
version: z68.literal(ORG_BROWSER_CONFIG_VERSION),
|
|
10212
10264
|
data: organizationBrowserConfigDataSchema
|
|
10213
10265
|
});
|
|
10214
|
-
var organizationBrowserSettingsSchema =
|
|
10215
|
-
organizationId:
|
|
10266
|
+
var organizationBrowserSettingsSchema = z68.object({
|
|
10267
|
+
organizationId: z68.guid(),
|
|
10216
10268
|
browserProvider: BrowserProviderTypeSchema.nullable(),
|
|
10217
10269
|
dataResidency: DataResidencySchema.nullable(),
|
|
10218
10270
|
dataHandling: DataHandlingSchema.nullable(),
|
|
10219
|
-
enforced:
|
|
10220
|
-
|
|
10221
|
-
|
|
10271
|
+
enforced: z68.boolean(),
|
|
10272
|
+
egressMode: browserEgressModeSchema.nullable().optional(),
|
|
10273
|
+
createdAt: z68.string(),
|
|
10274
|
+
updatedAt: z68.string()
|
|
10222
10275
|
});
|
|
10223
|
-
var getOrganizationBrowserSettingsResponseSchema =
|
|
10276
|
+
var getOrganizationBrowserSettingsResponseSchema = z68.object({
|
|
10224
10277
|
settings: organizationBrowserSettingsSchema.nullable()
|
|
10225
10278
|
});
|
|
10226
|
-
var updateOrganizationBrowserSettingsRequestSchema =
|
|
10279
|
+
var updateOrganizationBrowserSettingsRequestSchema = z68.object({
|
|
10227
10280
|
browserProvider: BrowserProviderTypeSchema.nullable().optional(),
|
|
10228
10281
|
dataResidency: DataResidencySchema.nullable().optional(),
|
|
10229
10282
|
dataHandling: DataHandlingSchema.nullable().optional(),
|
|
10230
|
-
enforced:
|
|
10283
|
+
enforced: z68.boolean().optional(),
|
|
10284
|
+
egressMode: browserEgressModeSchema.nullable().optional()
|
|
10231
10285
|
});
|
|
10232
|
-
var updateOrganizationBrowserSettingsResponseSchema =
|
|
10286
|
+
var updateOrganizationBrowserSettingsResponseSchema = z68.object({
|
|
10233
10287
|
settings: organizationBrowserSettingsSchema
|
|
10234
10288
|
});
|
|
10235
|
-
var catalogPluginSchema =
|
|
10236
|
-
name:
|
|
10289
|
+
var catalogPluginSchema = z69.object({
|
|
10290
|
+
name: z69.string().describe("Identifier to pass in the build's plugins array."),
|
|
10237
10291
|
type: extensibleEnum(["duvo-platform", "knowledge-work", "github"], {
|
|
10238
10292
|
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."
|
|
10239
10293
|
}),
|
|
10240
|
-
description:
|
|
10294
|
+
description: z69.string()
|
|
10241
10295
|
});
|
|
10242
|
-
var pluginCatalogResponseSchema =
|
|
10243
|
-
plugins:
|
|
10296
|
+
var pluginCatalogResponseSchema = z69.object({
|
|
10297
|
+
plugins: z69.array(catalogPluginSchema)
|
|
10244
10298
|
});
|
|
10245
|
-
var limitValueSchema =
|
|
10246
|
-
|
|
10247
|
-
|
|
10299
|
+
var limitValueSchema = z70.union([
|
|
10300
|
+
z70.number().int().nonnegative(),
|
|
10301
|
+
z70.literal("unlimited")
|
|
10248
10302
|
]);
|
|
10249
|
-
var runCountingModeSchema =
|
|
10303
|
+
var runCountingModeSchema = z70.enum(["monthly", "lifetime"]);
|
|
10250
10304
|
function addDuplicateKeyIssues({
|
|
10251
10305
|
ctx,
|
|
10252
10306
|
items,
|
|
@@ -10258,7 +10312,7 @@ function addDuplicateKeyIssues({
|
|
|
10258
10312
|
const key = keyFor(item);
|
|
10259
10313
|
if (seen.has(key)) {
|
|
10260
10314
|
ctx.addIssue({
|
|
10261
|
-
code:
|
|
10315
|
+
code: z70.ZodIssueCode.custom,
|
|
10262
10316
|
message: `Duplicate Product Access grant key: ${key}`,
|
|
10263
10317
|
path: [...path, index]
|
|
10264
10318
|
});
|
|
@@ -10269,34 +10323,34 @@ function addDuplicateKeyIssues({
|
|
|
10269
10323
|
}
|
|
10270
10324
|
__name(addDuplicateKeyIssues, "addDuplicateKeyIssues");
|
|
10271
10325
|
__name2(addDuplicateKeyIssues, "addDuplicateKeyIssues");
|
|
10272
|
-
var productAccessOwnerSchema =
|
|
10273
|
-
|
|
10274
|
-
type:
|
|
10275
|
-
organizationId:
|
|
10326
|
+
var productAccessOwnerSchema = z70.discriminatedUnion("type", [
|
|
10327
|
+
z70.object({
|
|
10328
|
+
type: z70.literal("organization"),
|
|
10329
|
+
organizationId: z70.guid()
|
|
10276
10330
|
}),
|
|
10277
|
-
|
|
10278
|
-
type:
|
|
10279
|
-
teamId:
|
|
10280
|
-
organizationId:
|
|
10331
|
+
z70.object({
|
|
10332
|
+
type: z70.literal("team"),
|
|
10333
|
+
teamId: z70.guid(),
|
|
10334
|
+
organizationId: z70.guid().nullable()
|
|
10281
10335
|
})
|
|
10282
10336
|
]);
|
|
10283
|
-
var productAccessGrantSetSchema =
|
|
10284
|
-
products:
|
|
10285
|
-
|
|
10286
|
-
productKey:
|
|
10287
|
-
enabled:
|
|
10337
|
+
var productAccessGrantSetSchema = z70.object({
|
|
10338
|
+
products: z70.array(
|
|
10339
|
+
z70.object({
|
|
10340
|
+
productKey: z70.enum(PRODUCT_KEYS),
|
|
10341
|
+
enabled: z70.boolean()
|
|
10288
10342
|
})
|
|
10289
10343
|
),
|
|
10290
|
-
capabilities:
|
|
10291
|
-
|
|
10292
|
-
capabilityKey:
|
|
10293
|
-
enabled:
|
|
10344
|
+
capabilities: z70.array(
|
|
10345
|
+
z70.object({
|
|
10346
|
+
capabilityKey: z70.enum(PRODUCT_ACCESS_CAPABILITY_KEYS),
|
|
10347
|
+
enabled: z70.boolean()
|
|
10294
10348
|
})
|
|
10295
10349
|
),
|
|
10296
|
-
limits:
|
|
10297
|
-
|
|
10298
|
-
productKey:
|
|
10299
|
-
limitKey:
|
|
10350
|
+
limits: z70.array(
|
|
10351
|
+
z70.object({
|
|
10352
|
+
productKey: z70.enum(PRODUCT_KEYS),
|
|
10353
|
+
limitKey: z70.enum(ENTITLEMENT_LIMIT_KEYS),
|
|
10300
10354
|
limitValue: limitValueSchema,
|
|
10301
10355
|
countingMode: runCountingModeSchema.nullable()
|
|
10302
10356
|
})
|
|
@@ -10321,51 +10375,51 @@ var productAccessGrantSetSchema = z69.object({
|
|
|
10321
10375
|
path: ["limits"]
|
|
10322
10376
|
});
|
|
10323
10377
|
});
|
|
10324
|
-
var productAccessSnapshotSchema =
|
|
10325
|
-
products:
|
|
10326
|
-
|
|
10327
|
-
productKey:
|
|
10328
|
-
enabled:
|
|
10378
|
+
var productAccessSnapshotSchema = z70.object({
|
|
10379
|
+
products: z70.array(
|
|
10380
|
+
z70.object({
|
|
10381
|
+
productKey: z70.enum(PRODUCT_KEYS),
|
|
10382
|
+
enabled: z70.boolean()
|
|
10329
10383
|
})
|
|
10330
10384
|
),
|
|
10331
|
-
capabilities:
|
|
10332
|
-
|
|
10385
|
+
capabilities: z70.array(
|
|
10386
|
+
z70.object({
|
|
10333
10387
|
capabilityKey: extensibleEnum(PRODUCT_ACCESS_CAPABILITY_KEYS),
|
|
10334
|
-
productKey:
|
|
10335
|
-
enabled:
|
|
10388
|
+
productKey: z70.enum(PRODUCT_KEYS),
|
|
10389
|
+
enabled: z70.boolean()
|
|
10336
10390
|
})
|
|
10337
10391
|
),
|
|
10338
|
-
limits:
|
|
10339
|
-
|
|
10340
|
-
limitKey:
|
|
10341
|
-
productKey:
|
|
10392
|
+
limits: z70.array(
|
|
10393
|
+
z70.object({
|
|
10394
|
+
limitKey: z70.enum(ENTITLEMENT_LIMIT_KEYS),
|
|
10395
|
+
productKey: z70.enum(PRODUCT_KEYS),
|
|
10342
10396
|
limitValue: limitValueSchema,
|
|
10343
10397
|
countingMode: runCountingModeSchema.nullable(),
|
|
10344
|
-
label:
|
|
10398
|
+
label: z70.literal("per_team")
|
|
10345
10399
|
})
|
|
10346
10400
|
)
|
|
10347
10401
|
});
|
|
10348
|
-
var billingPlanSchema =
|
|
10349
|
-
planVersionId:
|
|
10350
|
-
planName:
|
|
10351
|
-
basePlan:
|
|
10402
|
+
var billingPlanSchema = z70.object({
|
|
10403
|
+
planVersionId: z70.string(),
|
|
10404
|
+
planName: z70.string(),
|
|
10405
|
+
basePlan: z70.enum(["free", "pro", "enterprise"])
|
|
10352
10406
|
});
|
|
10353
|
-
var inheritedFromSchema =
|
|
10354
|
-
|
|
10355
|
-
type:
|
|
10356
|
-
organizationId:
|
|
10407
|
+
var inheritedFromSchema = z70.discriminatedUnion("type", [
|
|
10408
|
+
z70.object({
|
|
10409
|
+
type: z70.literal("organization"),
|
|
10410
|
+
organizationId: z70.guid()
|
|
10357
10411
|
}),
|
|
10358
|
-
|
|
10359
|
-
type:
|
|
10360
|
-
planVersionId:
|
|
10412
|
+
z70.object({
|
|
10413
|
+
type: z70.literal("team_subscription"),
|
|
10414
|
+
planVersionId: z70.string()
|
|
10361
10415
|
})
|
|
10362
10416
|
]);
|
|
10363
|
-
var productAccessReadResponseSchema =
|
|
10417
|
+
var productAccessReadResponseSchema = z70.object({
|
|
10364
10418
|
owner: productAccessOwnerSchema,
|
|
10365
|
-
source:
|
|
10366
|
-
accessRevision:
|
|
10419
|
+
source: z70.enum(PLAN_ENTITLEMENTS_SOURCE_VALUES),
|
|
10420
|
+
accessRevision: z70.string().min(1),
|
|
10367
10421
|
displayPreset: displayPresetSchema,
|
|
10368
|
-
hasExplicitTeamAccess:
|
|
10422
|
+
hasExplicitTeamAccess: z70.boolean(),
|
|
10369
10423
|
inheritedFrom: inheritedFromSchema.nullable(),
|
|
10370
10424
|
billingPlan: billingPlanSchema.nullable(),
|
|
10371
10425
|
grants: productAccessSnapshotSchema,
|
|
@@ -10373,67 +10427,67 @@ var productAccessReadResponseSchema = z69.object({
|
|
|
10373
10427
|
}).superRefine((value, ctx) => {
|
|
10374
10428
|
if (value.owner.type === "team" && value.source === "organization" && value.inheritedFrom?.type !== "organization") {
|
|
10375
10429
|
ctx.addIssue({
|
|
10376
|
-
code:
|
|
10430
|
+
code: z70.ZodIssueCode.custom,
|
|
10377
10431
|
message: "inheritedFrom organization context is required when team source is organization",
|
|
10378
10432
|
path: ["inheritedFrom"]
|
|
10379
10433
|
});
|
|
10380
10434
|
}
|
|
10381
10435
|
if (value.owner.type === "team" && value.source === "team_subscription" && value.inheritedFrom?.type !== "team_subscription") {
|
|
10382
10436
|
ctx.addIssue({
|
|
10383
|
-
code:
|
|
10437
|
+
code: z70.ZodIssueCode.custom,
|
|
10384
10438
|
message: "inheritedFrom subscription context is required when team source is team_subscription",
|
|
10385
10439
|
path: ["inheritedFrom"]
|
|
10386
10440
|
});
|
|
10387
10441
|
}
|
|
10388
10442
|
if (value.owner.type === "team" && value.source === "team" && value.inheritedFrom !== null) {
|
|
10389
10443
|
ctx.addIssue({
|
|
10390
|
-
code:
|
|
10444
|
+
code: z70.ZodIssueCode.custom,
|
|
10391
10445
|
message: "inheritedFrom must be null for direct team Product Access",
|
|
10392
10446
|
path: ["inheritedFrom"]
|
|
10393
10447
|
});
|
|
10394
10448
|
}
|
|
10395
10449
|
if (value.owner.type === "organization" && value.billingPlan !== null) {
|
|
10396
10450
|
ctx.addIssue({
|
|
10397
|
-
code:
|
|
10451
|
+
code: z70.ZodIssueCode.custom,
|
|
10398
10452
|
message: "billingPlan must be null for organization Product Access",
|
|
10399
10453
|
path: ["billingPlan"]
|
|
10400
10454
|
});
|
|
10401
10455
|
}
|
|
10402
10456
|
if (value.owner.type === "organization" && value.source !== "organization") {
|
|
10403
10457
|
ctx.addIssue({
|
|
10404
|
-
code:
|
|
10458
|
+
code: z70.ZodIssueCode.custom,
|
|
10405
10459
|
message: "organization Product Access source must be organization",
|
|
10406
10460
|
path: ["source"]
|
|
10407
10461
|
});
|
|
10408
10462
|
}
|
|
10409
10463
|
if (value.owner.type === "organization" && value.inheritedFrom !== null) {
|
|
10410
10464
|
ctx.addIssue({
|
|
10411
|
-
code:
|
|
10465
|
+
code: z70.ZodIssueCode.custom,
|
|
10412
10466
|
message: "inheritedFrom must be null for organization Product Access",
|
|
10413
10467
|
path: ["inheritedFrom"]
|
|
10414
10468
|
});
|
|
10415
10469
|
}
|
|
10416
10470
|
});
|
|
10417
|
-
var productAccessImpactRequestSchema =
|
|
10471
|
+
var productAccessImpactRequestSchema = z70.object({
|
|
10418
10472
|
proposedGrants: productAccessGrantSetSchema
|
|
10419
10473
|
});
|
|
10420
|
-
var productAccessWriteRequestSchema =
|
|
10474
|
+
var productAccessWriteRequestSchema = z70.object({
|
|
10421
10475
|
proposedGrants: productAccessGrantSetSchema,
|
|
10422
|
-
accessRevision:
|
|
10423
|
-
impactFingerprint:
|
|
10424
|
-
});
|
|
10425
|
-
var productAccessTeamResetRequestSchema =
|
|
10426
|
-
accessRevision:
|
|
10427
|
-
impactFingerprint:
|
|
10428
|
-
});
|
|
10429
|
-
var productAccessChangeSummarySchema =
|
|
10430
|
-
addedProducts:
|
|
10431
|
-
removedProducts:
|
|
10432
|
-
addedCapabilities:
|
|
10433
|
-
removedCapabilities:
|
|
10434
|
-
limitChanges:
|
|
10435
|
-
|
|
10436
|
-
limitKey:
|
|
10476
|
+
accessRevision: z70.string().min(1),
|
|
10477
|
+
impactFingerprint: z70.string().min(1).optional()
|
|
10478
|
+
});
|
|
10479
|
+
var productAccessTeamResetRequestSchema = z70.object({
|
|
10480
|
+
accessRevision: z70.string().min(1),
|
|
10481
|
+
impactFingerprint: z70.string().min(1).optional()
|
|
10482
|
+
});
|
|
10483
|
+
var productAccessChangeSummarySchema = z70.object({
|
|
10484
|
+
addedProducts: z70.array(z70.enum(PRODUCT_KEYS)),
|
|
10485
|
+
removedProducts: z70.array(z70.enum(PRODUCT_KEYS)),
|
|
10486
|
+
addedCapabilities: z70.array(extensibleEnum(PRODUCT_ACCESS_CAPABILITY_KEYS)),
|
|
10487
|
+
removedCapabilities: z70.array(extensibleEnum(PRODUCT_ACCESS_CAPABILITY_KEYS)),
|
|
10488
|
+
limitChanges: z70.array(
|
|
10489
|
+
z70.object({
|
|
10490
|
+
limitKey: z70.enum(ENTITLEMENT_LIMIT_KEYS),
|
|
10437
10491
|
currentValue: limitValueSchema,
|
|
10438
10492
|
currentCountingMode: runCountingModeSchema.nullable(),
|
|
10439
10493
|
proposedValue: limitValueSchema,
|
|
@@ -10441,61 +10495,61 @@ var productAccessChangeSummarySchema = z69.object({
|
|
|
10441
10495
|
})
|
|
10442
10496
|
)
|
|
10443
10497
|
});
|
|
10444
|
-
var productAccessImpactResponseSchema =
|
|
10498
|
+
var productAccessImpactResponseSchema = z70.object({
|
|
10445
10499
|
owner: productAccessOwnerSchema,
|
|
10446
|
-
impactFingerprint:
|
|
10447
|
-
affectedTeamCount:
|
|
10448
|
-
affectedTeamsTruncated:
|
|
10500
|
+
impactFingerprint: z70.string().min(1),
|
|
10501
|
+
affectedTeamCount: z70.number().int().nonnegative(),
|
|
10502
|
+
affectedTeamsTruncated: z70.boolean(),
|
|
10449
10503
|
changes: productAccessChangeSummarySchema,
|
|
10450
|
-
sideEffects:
|
|
10451
|
-
automationWillPause:
|
|
10452
|
-
clarityWillHide:
|
|
10504
|
+
sideEffects: z70.object({
|
|
10505
|
+
automationWillPause: z70.boolean(),
|
|
10506
|
+
clarityWillHide: z70.boolean()
|
|
10453
10507
|
}),
|
|
10454
|
-
affectedTeamsPreview:
|
|
10455
|
-
|
|
10456
|
-
teamId:
|
|
10457
|
-
teamName:
|
|
10458
|
-
source:
|
|
10508
|
+
affectedTeamsPreview: z70.array(
|
|
10509
|
+
z70.object({
|
|
10510
|
+
teamId: z70.guid(),
|
|
10511
|
+
teamName: z70.string(),
|
|
10512
|
+
source: z70.enum(PLAN_ENTITLEMENTS_SOURCE_VALUES),
|
|
10459
10513
|
changes: productAccessChangeSummarySchema
|
|
10460
10514
|
})
|
|
10461
10515
|
)
|
|
10462
10516
|
});
|
|
10463
|
-
var publicProfileSchema =
|
|
10464
|
-
id:
|
|
10465
|
-
name:
|
|
10466
|
-
email:
|
|
10467
|
-
teamId:
|
|
10517
|
+
var publicProfileSchema = z71.object({
|
|
10518
|
+
id: z71.guid(),
|
|
10519
|
+
name: z71.string().nullable(),
|
|
10520
|
+
email: z71.email(),
|
|
10521
|
+
teamId: z71.guid().nullable()
|
|
10468
10522
|
});
|
|
10469
|
-
var publicProfileResponseSchema =
|
|
10523
|
+
var publicProfileResponseSchema = z71.object({
|
|
10470
10524
|
profile: publicProfileSchema
|
|
10471
10525
|
});
|
|
10472
|
-
var elementSelectorsSchema =
|
|
10473
|
-
css:
|
|
10474
|
-
cssPath:
|
|
10475
|
-
xpath:
|
|
10476
|
-
testId:
|
|
10477
|
-
ariaSelector:
|
|
10478
|
-
text:
|
|
10526
|
+
var elementSelectorsSchema = z72.object({
|
|
10527
|
+
css: z72.string().optional(),
|
|
10528
|
+
cssPath: z72.string().optional(),
|
|
10529
|
+
xpath: z72.string().optional(),
|
|
10530
|
+
testId: z72.string().optional(),
|
|
10531
|
+
ariaSelector: z72.string().optional(),
|
|
10532
|
+
text: z72.string().optional()
|
|
10479
10533
|
});
|
|
10480
|
-
var elementInfoSchema =
|
|
10481
|
-
uid:
|
|
10534
|
+
var elementInfoSchema = z72.object({
|
|
10535
|
+
uid: z72.string().optional(),
|
|
10482
10536
|
selectors: elementSelectorsSchema,
|
|
10483
|
-
tagName:
|
|
10484
|
-
textContent:
|
|
10485
|
-
ariaLabel:
|
|
10486
|
-
computedRole:
|
|
10487
|
-
attributes:
|
|
10488
|
-
framePath:
|
|
10489
|
-
frameUrl:
|
|
10490
|
-
});
|
|
10491
|
-
var recordedEventSchema =
|
|
10492
|
-
id:
|
|
10493
|
-
type:
|
|
10494
|
-
timestamp:
|
|
10495
|
-
url:
|
|
10496
|
-
tabId:
|
|
10497
|
-
frameId:
|
|
10498
|
-
framePath:
|
|
10537
|
+
tagName: z72.string(),
|
|
10538
|
+
textContent: z72.string().optional(),
|
|
10539
|
+
ariaLabel: z72.string().optional(),
|
|
10540
|
+
computedRole: z72.string().optional(),
|
|
10541
|
+
attributes: z72.record(z72.string(), z72.string()).optional(),
|
|
10542
|
+
framePath: z72.array(z72.number()).optional(),
|
|
10543
|
+
frameUrl: z72.string().optional()
|
|
10544
|
+
});
|
|
10545
|
+
var recordedEventSchema = z72.looseObject({
|
|
10546
|
+
id: z72.string(),
|
|
10547
|
+
type: z72.string(),
|
|
10548
|
+
timestamp: z72.number(),
|
|
10549
|
+
url: z72.string(),
|
|
10550
|
+
tabId: z72.number().optional(),
|
|
10551
|
+
frameId: z72.number().optional(),
|
|
10552
|
+
framePath: z72.array(z72.number()).optional(),
|
|
10499
10553
|
element: elementInfoSchema.optional()
|
|
10500
10554
|
});
|
|
10501
10555
|
var COMPUTER_USE_TARGET_SOURCES = [
|
|
@@ -10508,72 +10562,72 @@ var COMPUTER_USE_TARGET_CONFIDENCES = [
|
|
|
10508
10562
|
"medium",
|
|
10509
10563
|
"low"
|
|
10510
10564
|
];
|
|
10511
|
-
var computerUseElementIdentitySchema =
|
|
10512
|
-
role:
|
|
10513
|
-
name:
|
|
10514
|
-
automationId:
|
|
10515
|
-
className:
|
|
10516
|
-
bounds:
|
|
10517
|
-
x:
|
|
10518
|
-
y:
|
|
10519
|
-
width:
|
|
10520
|
-
height:
|
|
10565
|
+
var computerUseElementIdentitySchema = z72.object({
|
|
10566
|
+
role: z72.string().optional(),
|
|
10567
|
+
name: z72.string().optional(),
|
|
10568
|
+
automationId: z72.string().optional(),
|
|
10569
|
+
className: z72.string().optional(),
|
|
10570
|
+
bounds: z72.object({
|
|
10571
|
+
x: z72.number(),
|
|
10572
|
+
y: z72.number(),
|
|
10573
|
+
width: z72.number(),
|
|
10574
|
+
height: z72.number()
|
|
10521
10575
|
}).optional()
|
|
10522
10576
|
});
|
|
10523
|
-
var computerUseElementTargetSchema =
|
|
10524
|
-
selector:
|
|
10525
|
-
confidence:
|
|
10526
|
-
source:
|
|
10577
|
+
var computerUseElementTargetSchema = z72.object({
|
|
10578
|
+
selector: z72.string().optional(),
|
|
10579
|
+
confidence: z72.enum(COMPUTER_USE_TARGET_CONFIDENCES),
|
|
10580
|
+
source: z72.enum(COMPUTER_USE_TARGET_SOURCES),
|
|
10527
10581
|
element: computerUseElementIdentitySchema.optional()
|
|
10528
10582
|
});
|
|
10529
|
-
var computerUseEventBaseSchema =
|
|
10583
|
+
var computerUseEventBaseSchema = z72.object({
|
|
10530
10584
|
/** Client-generated id; correlates an async element resolution back. */
|
|
10531
|
-
id:
|
|
10532
|
-
timestamp:
|
|
10585
|
+
id: z72.string().optional(),
|
|
10586
|
+
timestamp: z72.number(),
|
|
10533
10587
|
/** Links this event to a screenshot uploaded in the same/earlier batch. */
|
|
10534
|
-
screenshotSeq:
|
|
10588
|
+
screenshotSeq: z72.number().int().nonnegative().optional(),
|
|
10535
10589
|
/** Resolved UIA element target (primary replay anchor). */
|
|
10536
10590
|
target: computerUseElementTargetSchema.optional()
|
|
10537
10591
|
});
|
|
10538
10592
|
var computerUseClickEventSchema = computerUseEventBaseSchema.extend({
|
|
10539
|
-
type:
|
|
10593
|
+
type: z72.literal("click"),
|
|
10540
10594
|
/** Cursor position in native desktop pixels. */
|
|
10541
|
-
x:
|
|
10542
|
-
y:
|
|
10543
|
-
button:
|
|
10544
|
-
double:
|
|
10595
|
+
x: z72.number(),
|
|
10596
|
+
y: z72.number(),
|
|
10597
|
+
button: z72.enum(["left", "right", "middle"]).optional(),
|
|
10598
|
+
double: z72.boolean().optional()
|
|
10545
10599
|
});
|
|
10546
10600
|
var computerUseScrollEventSchema = computerUseEventBaseSchema.extend({
|
|
10547
|
-
type:
|
|
10548
|
-
x:
|
|
10549
|
-
y:
|
|
10550
|
-
deltaX:
|
|
10551
|
-
deltaY:
|
|
10601
|
+
type: z72.literal("scroll"),
|
|
10602
|
+
x: z72.number(),
|
|
10603
|
+
y: z72.number(),
|
|
10604
|
+
deltaX: z72.number(),
|
|
10605
|
+
deltaY: z72.number()
|
|
10552
10606
|
});
|
|
10553
10607
|
var computerUseTypeEventSchema = computerUseEventBaseSchema.extend({
|
|
10554
|
-
type:
|
|
10608
|
+
type: z72.literal("type"),
|
|
10555
10609
|
/** Number of characters typed (redacted; no literal text). */
|
|
10556
|
-
textLength:
|
|
10610
|
+
textLength: z72.number().int().nonnegative(),
|
|
10557
10611
|
/**
|
|
10558
10612
|
* @deprecated Never persisted. Literal typed text can contain secrets; the
|
|
10559
10613
|
* recorder sends `textLength` instead and the backend strips any `text`.
|
|
10560
10614
|
*/
|
|
10561
|
-
text:
|
|
10615
|
+
text: z72.string().optional()
|
|
10562
10616
|
});
|
|
10563
10617
|
var computerUseKeyEventSchema = computerUseEventBaseSchema.extend({
|
|
10564
|
-
type:
|
|
10565
|
-
key:
|
|
10618
|
+
type: z72.literal("key"),
|
|
10619
|
+
key: z72.string()
|
|
10566
10620
|
});
|
|
10567
|
-
var computerUseRecordedEventSchema =
|
|
10621
|
+
var computerUseRecordedEventSchema = z72.discriminatedUnion("type", [
|
|
10568
10622
|
computerUseClickEventSchema,
|
|
10569
10623
|
computerUseScrollEventSchema,
|
|
10570
10624
|
computerUseTypeEventSchema,
|
|
10571
10625
|
computerUseKeyEventSchema
|
|
10572
10626
|
]);
|
|
10573
|
-
var computerUseScreenshotSchema =
|
|
10574
|
-
seq:
|
|
10627
|
+
var computerUseScreenshotSchema = z72.object({
|
|
10628
|
+
seq: z72.number().int().nonnegative(),
|
|
10575
10629
|
/** Base64-encoded JPEG (no data: URL prefix). */
|
|
10576
|
-
base64:
|
|
10630
|
+
base64: z72.string()
|
|
10577
10631
|
});
|
|
10578
10632
|
var DUVO_CLIENT_HEADER = "x-duvo-client";
|
|
10579
10633
|
var DUVO_CLIENTS = {
|
|
@@ -10592,54 +10646,54 @@ function resolveRequestSourceFromClientHeader(header) {
|
|
|
10592
10646
|
}
|
|
10593
10647
|
__name(resolveRequestSourceFromClientHeader, "resolveRequestSourceFromClientHeader");
|
|
10594
10648
|
__name2(resolveRequestSourceFromClientHeader, "resolveRequestSourceFromClientHeader");
|
|
10595
|
-
var RedactedMcpServerConfigSchema =
|
|
10649
|
+
var RedactedMcpServerConfigSchema = z73.object({
|
|
10596
10650
|
type: TransportTypeSchema,
|
|
10597
10651
|
integrationSlug: IntegrationSlugSchema,
|
|
10598
|
-
instanceId:
|
|
10652
|
+
instanceId: z73.string().nullable()
|
|
10599
10653
|
});
|
|
10600
|
-
var ThreadContextMessageSchema =
|
|
10601
|
-
role:
|
|
10602
|
-
content:
|
|
10654
|
+
var ThreadContextMessageSchema = z73.object({
|
|
10655
|
+
role: z73.enum(["user", "assistant"]),
|
|
10656
|
+
content: z73.string()
|
|
10603
10657
|
});
|
|
10604
|
-
var ChatFileReferenceSchema =
|
|
10605
|
-
id:
|
|
10606
|
-
name:
|
|
10607
|
-
mimetype:
|
|
10608
|
-
size:
|
|
10609
|
-
platform:
|
|
10610
|
-
workspaceId:
|
|
10611
|
-
channelId:
|
|
10612
|
-
});
|
|
10613
|
-
var ResolvedSubAgentSchema =
|
|
10614
|
-
agentId:
|
|
10615
|
-
buildId:
|
|
10616
|
-
name:
|
|
10658
|
+
var ChatFileReferenceSchema = z73.object({
|
|
10659
|
+
id: z73.string(),
|
|
10660
|
+
name: z73.string(),
|
|
10661
|
+
mimetype: z73.string(),
|
|
10662
|
+
size: z73.number(),
|
|
10663
|
+
platform: z73.enum(["slack", "teams"]),
|
|
10664
|
+
workspaceId: z73.string(),
|
|
10665
|
+
channelId: z73.string()
|
|
10666
|
+
});
|
|
10667
|
+
var ResolvedSubAgentSchema = z73.object({
|
|
10668
|
+
agentId: z73.string().uuid(),
|
|
10669
|
+
buildId: z73.string().uuid(),
|
|
10670
|
+
name: z73.string().min(1).max(64).regex(/^[a-z0-9-]+$/).describe(
|
|
10617
10671
|
"Stable slug used as the Claude Code subagent name (kebab-case, \u226464 chars)"
|
|
10618
10672
|
),
|
|
10619
|
-
description:
|
|
10673
|
+
description: z73.string().describe(
|
|
10620
10674
|
"Routing description Claude uses to decide when to delegate to this subagent"
|
|
10621
10675
|
),
|
|
10622
|
-
prompt:
|
|
10623
|
-
model:
|
|
10624
|
-
mcpServers:
|
|
10676
|
+
prompt: z73.string().describe("System prompt (AOP) for this subagent"),
|
|
10677
|
+
model: z73.string().optional().describe("Optional Claude model identifier override for this subagent"),
|
|
10678
|
+
mcpServers: z73.record(z73.string(), RedactedMcpServerConfigSchema).default({}).describe(
|
|
10625
10679
|
"Redacted MCP server configs scoped to this subagent. Secrets resolved at execution time."
|
|
10626
10680
|
)
|
|
10627
10681
|
});
|
|
10628
10682
|
var RunConfigSchema = AgentConfigSchema.extend({
|
|
10629
|
-
task:
|
|
10630
|
-
mcpServers:
|
|
10631
|
-
subAgents:
|
|
10632
|
-
conversationHistory:
|
|
10633
|
-
chatFiles:
|
|
10683
|
+
task: z73.string(),
|
|
10684
|
+
mcpServers: z73.record(z73.string(), RedactedMcpServerConfigSchema),
|
|
10685
|
+
subAgents: z73.array(ResolvedSubAgentSchema).optional().default([]),
|
|
10686
|
+
conversationHistory: z73.array(ThreadContextMessageSchema).optional(),
|
|
10687
|
+
chatFiles: z73.array(ChatFileReferenceSchema).optional(),
|
|
10634
10688
|
/** IANA timezone (e.g. `"Europe/Prague"`). Consumers should fall back to UTC when absent. */
|
|
10635
|
-
timezone:
|
|
10689
|
+
timezone: z73.string().optional(),
|
|
10636
10690
|
/**
|
|
10637
10691
|
* ISO 8601 timestamp captured when the run was created. Frozen at
|
|
10638
10692
|
* run-creation time and never recomputed, so resumes reuse the same value —
|
|
10639
10693
|
* the runtime injects it into the cached system prompt and a changing value
|
|
10640
10694
|
* would bust the prompt cache.
|
|
10641
10695
|
*/
|
|
10642
|
-
sessionStartedAt:
|
|
10696
|
+
sessionStartedAt: z73.string().optional(),
|
|
10643
10697
|
/**
|
|
10644
10698
|
* True when this dispatch resumes a run the user stopped. Derived on each
|
|
10645
10699
|
* continue from the durable `agent_run.stopped_by_user` column (set only by a
|
|
@@ -10648,16 +10702,16 @@ var RunConfigSchema = AgentConfigSchema.extend({
|
|
|
10648
10702
|
* first resumed turn. Lives here — not in cc-server memory — so it survives a
|
|
10649
10703
|
* sandbox suspend/resume.
|
|
10650
10704
|
*/
|
|
10651
|
-
resumedAfterStop:
|
|
10705
|
+
resumedAfterStop: z73.boolean().optional()
|
|
10652
10706
|
});
|
|
10653
|
-
var StoredRunConfigV0Schema =
|
|
10654
|
-
version:
|
|
10707
|
+
var StoredRunConfigV0Schema = z73.object({
|
|
10708
|
+
version: z73.literal("v0")
|
|
10655
10709
|
});
|
|
10656
|
-
var StoredRunConfigV1Schema =
|
|
10657
|
-
version:
|
|
10710
|
+
var StoredRunConfigV1Schema = z73.object({
|
|
10711
|
+
version: z73.literal("v1"),
|
|
10658
10712
|
data: RunConfigSchema
|
|
10659
10713
|
});
|
|
10660
|
-
var StoredRunConfigSchema =
|
|
10714
|
+
var StoredRunConfigSchema = z73.union([
|
|
10661
10715
|
StoredRunConfigV0Schema,
|
|
10662
10716
|
StoredRunConfigV1Schema
|
|
10663
10717
|
]);
|
|
@@ -10676,178 +10730,178 @@ function isRunConfig(config) {
|
|
|
10676
10730
|
}
|
|
10677
10731
|
__name(isRunConfig, "isRunConfig");
|
|
10678
10732
|
__name2(isRunConfig, "isRunConfig");
|
|
10679
|
-
var skillApiSchema =
|
|
10680
|
-
id:
|
|
10681
|
-
name:
|
|
10682
|
-
description:
|
|
10733
|
+
var skillApiSchema = z74.object({
|
|
10734
|
+
id: z74.string(),
|
|
10735
|
+
name: z74.string(),
|
|
10736
|
+
description: z74.string(),
|
|
10683
10737
|
// System skills have null team_id.
|
|
10684
|
-
team_id:
|
|
10685
|
-
});
|
|
10686
|
-
var listSkillsResponseSchema = z73.object({
|
|
10687
|
-
skills: z73.array(skillApiSchema)
|
|
10738
|
+
team_id: z74.string().nullable()
|
|
10688
10739
|
});
|
|
10689
|
-
var
|
|
10690
|
-
|
|
10691
|
-
name: z73.string(),
|
|
10692
|
-
description: z73.string()
|
|
10693
|
-
});
|
|
10694
|
-
var listSystemSkillsResponseSchema = z73.object({
|
|
10695
|
-
skills: z73.array(systemSkillSchema)
|
|
10696
|
-
});
|
|
10697
|
-
var skillFileItemSchema = z73.object({
|
|
10698
|
-
name: z73.string(),
|
|
10699
|
-
path: z73.string(),
|
|
10700
|
-
size: z73.number().optional(),
|
|
10701
|
-
contentType: z73.string().optional(),
|
|
10702
|
-
updatedAt: z73.string().optional()
|
|
10740
|
+
var listSkillsResponseSchema = z74.object({
|
|
10741
|
+
skills: z74.array(skillApiSchema)
|
|
10703
10742
|
});
|
|
10704
|
-
var
|
|
10705
|
-
|
|
10706
|
-
|
|
10707
|
-
|
|
10708
|
-
|
|
10709
|
-
|
|
10710
|
-
|
|
10711
|
-
});
|
|
10712
|
-
var
|
|
10713
|
-
|
|
10714
|
-
|
|
10715
|
-
|
|
10716
|
-
|
|
10717
|
-
|
|
10718
|
-
|
|
10719
|
-
|
|
10720
|
-
|
|
10721
|
-
|
|
10743
|
+
var systemSkillSchema = z74.object({
|
|
10744
|
+
id: z74.string(),
|
|
10745
|
+
name: z74.string(),
|
|
10746
|
+
description: z74.string()
|
|
10747
|
+
});
|
|
10748
|
+
var listSystemSkillsResponseSchema = z74.object({
|
|
10749
|
+
skills: z74.array(systemSkillSchema)
|
|
10750
|
+
});
|
|
10751
|
+
var skillFileItemSchema = z74.object({
|
|
10752
|
+
name: z74.string(),
|
|
10753
|
+
path: z74.string(),
|
|
10754
|
+
size: z74.number().optional(),
|
|
10755
|
+
contentType: z74.string().optional(),
|
|
10756
|
+
updatedAt: z74.string().optional()
|
|
10757
|
+
});
|
|
10758
|
+
var listSkillFilesResponseSchema = z74.object({
|
|
10759
|
+
files: z74.array(skillFileItemSchema)
|
|
10760
|
+
});
|
|
10761
|
+
var getSkillFileContentResponseSchema = z74.object({
|
|
10762
|
+
content: z74.string(),
|
|
10763
|
+
path: z74.string(),
|
|
10764
|
+
contentType: z74.string().optional()
|
|
10765
|
+
});
|
|
10766
|
+
var updateSkillFileBodySchema = z74.object({
|
|
10767
|
+
content: z74.string()
|
|
10768
|
+
});
|
|
10769
|
+
var updateSkillFileResponseSchema = z74.object({
|
|
10770
|
+
success: z74.boolean(),
|
|
10771
|
+
message: z74.string(),
|
|
10772
|
+
skill: z74.object({
|
|
10773
|
+
id: z74.string(),
|
|
10774
|
+
name: z74.string(),
|
|
10775
|
+
description: z74.string()
|
|
10722
10776
|
}).optional()
|
|
10723
10777
|
});
|
|
10724
|
-
var deleteSkillResponseSchema =
|
|
10725
|
-
success:
|
|
10726
|
-
message:
|
|
10778
|
+
var deleteSkillResponseSchema = z74.object({
|
|
10779
|
+
success: z74.boolean(),
|
|
10780
|
+
message: z74.string()
|
|
10727
10781
|
});
|
|
10728
|
-
var generateSkillBodySchema =
|
|
10729
|
-
prompt:
|
|
10730
|
-
existingContent:
|
|
10782
|
+
var generateSkillBodySchema = z74.object({
|
|
10783
|
+
prompt: z74.string().min(1).max(2e3),
|
|
10784
|
+
existingContent: z74.string().max(2e4).optional()
|
|
10731
10785
|
});
|
|
10732
|
-
var generateSkillResponseSchema =
|
|
10733
|
-
content:
|
|
10786
|
+
var generateSkillResponseSchema = z74.object({
|
|
10787
|
+
content: z74.string()
|
|
10734
10788
|
});
|
|
10735
|
-
var skillAssignmentSchema =
|
|
10736
|
-
id:
|
|
10737
|
-
name:
|
|
10789
|
+
var skillAssignmentSchema = z74.object({
|
|
10790
|
+
id: z74.string(),
|
|
10791
|
+
name: z74.string()
|
|
10738
10792
|
});
|
|
10739
|
-
var listSkillAssignmentsResponseSchema =
|
|
10740
|
-
assignments:
|
|
10741
|
-
total:
|
|
10793
|
+
var listSkillAssignmentsResponseSchema = z74.object({
|
|
10794
|
+
assignments: z74.array(skillAssignmentSchema),
|
|
10795
|
+
total: z74.number()
|
|
10742
10796
|
});
|
|
10743
|
-
var teamInvitationApiSchema =
|
|
10744
|
-
id:
|
|
10745
|
-
team_id:
|
|
10746
|
-
email:
|
|
10747
|
-
invited_by:
|
|
10748
|
-
role:
|
|
10749
|
-
status:
|
|
10750
|
-
name:
|
|
10751
|
-
created_at:
|
|
10752
|
-
process_id:
|
|
10753
|
-
});
|
|
10754
|
-
var teamInvitationDetailApiSchema =
|
|
10755
|
-
id:
|
|
10756
|
-
team_id:
|
|
10757
|
-
email:
|
|
10758
|
-
invited_by:
|
|
10759
|
-
role:
|
|
10760
|
-
status:
|
|
10761
|
-
name:
|
|
10762
|
-
created_at:
|
|
10763
|
-
process_id:
|
|
10764
|
-
team:
|
|
10765
|
-
id:
|
|
10766
|
-
name:
|
|
10797
|
+
var teamInvitationApiSchema = z75.object({
|
|
10798
|
+
id: z75.string(),
|
|
10799
|
+
team_id: z75.string(),
|
|
10800
|
+
email: z75.email(),
|
|
10801
|
+
invited_by: z75.string(),
|
|
10802
|
+
role: z75.string(),
|
|
10803
|
+
status: z75.string(),
|
|
10804
|
+
name: z75.string().nullable(),
|
|
10805
|
+
created_at: z75.string(),
|
|
10806
|
+
process_id: z75.guid().nullable().optional()
|
|
10807
|
+
});
|
|
10808
|
+
var teamInvitationDetailApiSchema = z75.object({
|
|
10809
|
+
id: z75.string(),
|
|
10810
|
+
team_id: z75.string(),
|
|
10811
|
+
email: z75.email(),
|
|
10812
|
+
invited_by: z75.string(),
|
|
10813
|
+
role: z75.string(),
|
|
10814
|
+
status: z75.string(),
|
|
10815
|
+
name: z75.string().nullable(),
|
|
10816
|
+
created_at: z75.string(),
|
|
10817
|
+
process_id: z75.guid().nullable().optional(),
|
|
10818
|
+
team: z75.object({
|
|
10819
|
+
id: z75.string(),
|
|
10820
|
+
name: z75.string()
|
|
10767
10821
|
}),
|
|
10768
|
-
invitedBy:
|
|
10769
|
-
id:
|
|
10770
|
-
name:
|
|
10771
|
-
email:
|
|
10822
|
+
invitedBy: z75.object({
|
|
10823
|
+
id: z75.string(),
|
|
10824
|
+
name: z75.string().nullable(),
|
|
10825
|
+
email: z75.email()
|
|
10772
10826
|
}),
|
|
10773
|
-
process:
|
|
10774
|
-
id:
|
|
10775
|
-
name:
|
|
10827
|
+
process: z75.object({
|
|
10828
|
+
id: z75.string(),
|
|
10829
|
+
name: z75.string()
|
|
10776
10830
|
}).optional()
|
|
10777
10831
|
});
|
|
10778
|
-
var createTeamInvitationRequestSchema =
|
|
10779
|
-
email:
|
|
10780
|
-
role:
|
|
10781
|
-
processId:
|
|
10832
|
+
var createTeamInvitationRequestSchema = z75.object({
|
|
10833
|
+
email: z75.email(),
|
|
10834
|
+
role: z75.string(),
|
|
10835
|
+
processId: z75.guid().optional()
|
|
10782
10836
|
});
|
|
10783
|
-
var acceptTeamInvitationRequestSchema =
|
|
10784
|
-
name:
|
|
10837
|
+
var acceptTeamInvitationRequestSchema = z75.object({
|
|
10838
|
+
name: z75.string().optional()
|
|
10785
10839
|
});
|
|
10786
|
-
var bulkInviteResponseSchema =
|
|
10787
|
-
succeeded:
|
|
10788
|
-
skipped:
|
|
10789
|
-
failed:
|
|
10840
|
+
var bulkInviteResponseSchema = z75.object({
|
|
10841
|
+
succeeded: z75.number(),
|
|
10842
|
+
skipped: z75.number(),
|
|
10843
|
+
failed: z75.number()
|
|
10790
10844
|
});
|
|
10791
10845
|
var TEAM_DISCOVERY_MODES = ["request", "auto"];
|
|
10792
|
-
var teamDiscoveryModeSchema =
|
|
10793
|
-
var BrowserRegionSchema =
|
|
10846
|
+
var teamDiscoveryModeSchema = z76.enum(TEAM_DISCOVERY_MODES);
|
|
10847
|
+
var BrowserRegionSchema = z76.enum([
|
|
10794
10848
|
"us-west-2",
|
|
10795
10849
|
"us-east-1",
|
|
10796
10850
|
"eu-central-1",
|
|
10797
10851
|
"ap-southeast-1"
|
|
10798
10852
|
]);
|
|
10799
|
-
var BrowserLocationSchema =
|
|
10800
|
-
|
|
10801
|
-
|
|
10802
|
-
|
|
10803
|
-
|
|
10804
|
-
|
|
10805
|
-
|
|
10806
|
-
|
|
10853
|
+
var BrowserLocationSchema = z76.union([
|
|
10854
|
+
z76.literal("cz"),
|
|
10855
|
+
z76.literal("de"),
|
|
10856
|
+
z76.literal("fr"),
|
|
10857
|
+
z76.literal("gb"),
|
|
10858
|
+
z76.literal("it"),
|
|
10859
|
+
z76.literal("pl"),
|
|
10860
|
+
z76.literal("sk")
|
|
10807
10861
|
]);
|
|
10808
|
-
var teamMemberApiSchema =
|
|
10809
|
-
id:
|
|
10810
|
-
name:
|
|
10811
|
-
email:
|
|
10812
|
-
role:
|
|
10813
|
-
inheritedFromOrg:
|
|
10814
|
-
});
|
|
10815
|
-
var listTeamMembersResponseSchema =
|
|
10816
|
-
members:
|
|
10817
|
-
total:
|
|
10818
|
-
limit:
|
|
10819
|
-
offset:
|
|
10820
|
-
});
|
|
10821
|
-
var updateMemberRoleRequestSchema =
|
|
10822
|
-
role:
|
|
10823
|
-
});
|
|
10824
|
-
var removeMemberResponseSchema =
|
|
10825
|
-
success:
|
|
10826
|
-
nextTeamId:
|
|
10827
|
-
planType:
|
|
10828
|
-
});
|
|
10829
|
-
var getMemberMeResponseSchema =
|
|
10830
|
-
role:
|
|
10862
|
+
var teamMemberApiSchema = z76.object({
|
|
10863
|
+
id: z76.guid(),
|
|
10864
|
+
name: z76.string().nullable(),
|
|
10865
|
+
email: z76.email(),
|
|
10866
|
+
role: z76.string(),
|
|
10867
|
+
inheritedFromOrg: z76.boolean().default(false)
|
|
10868
|
+
});
|
|
10869
|
+
var listTeamMembersResponseSchema = z76.object({
|
|
10870
|
+
members: z76.array(teamMemberApiSchema),
|
|
10871
|
+
total: z76.number().int().nonnegative(),
|
|
10872
|
+
limit: z76.number().int().positive(),
|
|
10873
|
+
offset: z76.number().int().nonnegative()
|
|
10874
|
+
});
|
|
10875
|
+
var updateMemberRoleRequestSchema = z76.object({
|
|
10876
|
+
role: z76.string()
|
|
10877
|
+
});
|
|
10878
|
+
var removeMemberResponseSchema = z76.object({
|
|
10879
|
+
success: z76.literal(true),
|
|
10880
|
+
nextTeamId: z76.guid().nullable(),
|
|
10881
|
+
planType: z76.enum(["pro", "enterprise"]).nullable()
|
|
10882
|
+
});
|
|
10883
|
+
var getMemberMeResponseSchema = z76.object({
|
|
10884
|
+
role: z76.string().nullable(),
|
|
10831
10885
|
// True only when a real `user_team_memberships` row exists. `role` can be a
|
|
10832
10886
|
// read-only *virtual* role for org leaders who haven't joined, so it is not a
|
|
10833
10887
|
// membership signal on its own — use this flag to tell a real member apart.
|
|
10834
|
-
isMember:
|
|
10888
|
+
isMember: z76.boolean()
|
|
10835
10889
|
});
|
|
10836
|
-
var addTeamMemberRequestSchema =
|
|
10837
|
-
userId:
|
|
10838
|
-
role:
|
|
10890
|
+
var addTeamMemberRequestSchema = z76.object({
|
|
10891
|
+
userId: z76.guid(),
|
|
10892
|
+
role: z76.string()
|
|
10839
10893
|
});
|
|
10840
|
-
var updateTeamRequestSchema =
|
|
10841
|
-
name:
|
|
10842
|
-
slack_team_id:
|
|
10894
|
+
var updateTeamRequestSchema = z76.object({
|
|
10895
|
+
name: z76.string().min(1).optional(),
|
|
10896
|
+
slack_team_id: z76.string().optional(),
|
|
10843
10897
|
discovery_mode: teamDiscoveryModeSchema.optional()
|
|
10844
10898
|
});
|
|
10845
|
-
var teamApiSchema =
|
|
10846
|
-
id:
|
|
10847
|
-
name:
|
|
10848
|
-
created_at:
|
|
10849
|
-
organization_id:
|
|
10850
|
-
slack_team_id:
|
|
10899
|
+
var teamApiSchema = z76.object({
|
|
10900
|
+
id: z76.guid().describe("Unique team identifier"),
|
|
10901
|
+
name: z76.string().describe("Human-readable team name"),
|
|
10902
|
+
created_at: z76.string().describe("ISO 8601 creation timestamp"),
|
|
10903
|
+
organization_id: z76.guid().nullable().describe("Parent organization ID, or null if the team is standalone"),
|
|
10904
|
+
slack_team_id: z76.string().nullable().describe("Linked Slack workspace ID, or null if Slack is not connected"),
|
|
10851
10905
|
// Responses use x-extensible-enum: adding a discovery mode to a strict
|
|
10852
10906
|
// response enum is breaking in oasdiff, while an added x-extensible-enum
|
|
10853
10907
|
// value is not. The strict request enum (updateTeamRequestSchema) still
|
|
@@ -10856,198 +10910,220 @@ var teamApiSchema = z75.object({
|
|
|
10856
10910
|
description: "How the team handles agent discovery"
|
|
10857
10911
|
})
|
|
10858
10912
|
});
|
|
10859
|
-
var teamResponseApiSchema =
|
|
10913
|
+
var teamResponseApiSchema = z76.object({
|
|
10860
10914
|
team: teamApiSchema
|
|
10861
10915
|
});
|
|
10862
10916
|
var TEAM_CONFIG_VERSION = 1;
|
|
10863
|
-
var teamConfigDataSchema =
|
|
10917
|
+
var teamConfigDataSchema = z76.object({
|
|
10864
10918
|
browserProviderOverride: BrowserProviderTypeSchema.nullable().optional(),
|
|
10865
10919
|
// Egress identity (proxy country) — what the target site sees.
|
|
10866
10920
|
browserLocationOverride: BrowserLocationSchema.nullable().optional(),
|
|
10921
|
+
// Egress mode override (provider / direct / organization-vpn). Location stays
|
|
10922
|
+
// on browserLocationOverride; this is the orthogonal mode axis.
|
|
10923
|
+
browserEgressModeOverride: browserEgressModeSchema.nullable().optional(),
|
|
10867
10924
|
// Coarse residency + data-handling overrides (the current model).
|
|
10868
10925
|
dataResidencyOverride: DataResidencySchema.nullable().optional(),
|
|
10869
10926
|
dataHandlingOverride: DataHandlingSchema.nullable().optional(),
|
|
10927
|
+
// Domains that bypass the org VPN and connect directly (split tunnel).
|
|
10928
|
+
// Union'd at runtime with the org-default list on vpn_proxy_config.
|
|
10929
|
+
vpnBypassDomains: z76.array(z76.string()).max(MAX_VPN_BYPASS_DOMAINS).nullable().optional(),
|
|
10870
10930
|
// Deprecated: superseded by dataResidencyOverride / dataHandlingOverride.
|
|
10871
10931
|
// Kept optional so existing v1 rows still parse; the resolver reads the new
|
|
10872
10932
|
// fields first and falls back to these. Do not surface in the UI.
|
|
10873
10933
|
browserRegionOverride: BrowserRegionSchema.nullable().optional(),
|
|
10874
|
-
sessionRecordingOverride:
|
|
10934
|
+
sessionRecordingOverride: z76.boolean().nullable().optional()
|
|
10875
10935
|
});
|
|
10876
|
-
var teamConfigSchema =
|
|
10877
|
-
version:
|
|
10936
|
+
var teamConfigSchema = z76.object({
|
|
10937
|
+
version: z76.literal(TEAM_CONFIG_VERSION),
|
|
10878
10938
|
data: teamConfigDataSchema
|
|
10879
10939
|
});
|
|
10880
|
-
var listTeamInvitesResponseSchema =
|
|
10881
|
-
invitations:
|
|
10940
|
+
var listTeamInvitesResponseSchema = z76.object({
|
|
10941
|
+
invitations: z76.array(teamInvitationApiSchema)
|
|
10882
10942
|
});
|
|
10883
|
-
var teamInsightsCopilotSchema =
|
|
10884
|
-
id:
|
|
10885
|
-
name:
|
|
10886
|
-
teamName:
|
|
10887
|
-
created_at:
|
|
10888
|
-
updated_at:
|
|
10889
|
-
team_id:
|
|
10890
|
-
thread_id:
|
|
10891
|
-
slack_enabled:
|
|
10892
|
-
});
|
|
10893
|
-
var teamInsightsUserProfileSchema =
|
|
10894
|
-
id:
|
|
10895
|
-
name:
|
|
10896
|
-
email:
|
|
10943
|
+
var teamInsightsCopilotSchema = z77.object({
|
|
10944
|
+
id: z77.guid(),
|
|
10945
|
+
name: z77.string(),
|
|
10946
|
+
teamName: z77.string().nullable().optional(),
|
|
10947
|
+
created_at: z77.string().nullable(),
|
|
10948
|
+
updated_at: z77.string().nullable(),
|
|
10949
|
+
team_id: z77.string().nullable(),
|
|
10950
|
+
thread_id: z77.string().nullable(),
|
|
10951
|
+
slack_enabled: z77.boolean().nullable()
|
|
10952
|
+
});
|
|
10953
|
+
var teamInsightsUserProfileSchema = z77.object({
|
|
10954
|
+
id: z77.guid(),
|
|
10955
|
+
name: z77.string().nullable(),
|
|
10956
|
+
email: z77.string()
|
|
10897
10957
|
});
|
|
10898
10958
|
var teamInsightsUserUsageSchema = teamInsightsUserProfileSchema.extend(
|
|
10899
10959
|
{
|
|
10900
|
-
runCount:
|
|
10901
|
-
lastRun:
|
|
10960
|
+
runCount: z77.number(),
|
|
10961
|
+
lastRun: z77.string().nullable()
|
|
10902
10962
|
}
|
|
10903
10963
|
);
|
|
10904
|
-
var teamInsightsMetricSourceSchema =
|
|
10964
|
+
var teamInsightsMetricSourceSchema = z77.object({
|
|
10905
10965
|
source: agentRunSourceSchema,
|
|
10906
|
-
runsTotal:
|
|
10907
|
-
completedRuns:
|
|
10966
|
+
runsTotal: z77.number(),
|
|
10967
|
+
completedRuns: z77.number()
|
|
10908
10968
|
});
|
|
10909
10969
|
var teamInsightsCopilotWithRunsSchema = teamInsightsCopilotSchema.extend({
|
|
10910
|
-
integrations:
|
|
10911
|
-
uniqueUsersCount:
|
|
10912
|
-
users:
|
|
10913
|
-
totalRuns:
|
|
10914
|
-
completedRuns:
|
|
10915
|
-
totalTimeSpentMs:
|
|
10916
|
-
averageTimeSpentMs:
|
|
10917
|
-
completedRunsWithTiming:
|
|
10918
|
-
sources:
|
|
10919
|
-
});
|
|
10920
|
-
var teamInsightsAgentsRunResponseSchema =
|
|
10921
|
-
data:
|
|
10922
|
-
total:
|
|
10923
|
-
});
|
|
10924
|
-
var teamInsightsMetricsResponseSchema =
|
|
10925
|
-
runsTotal:
|
|
10926
|
-
completedRuns:
|
|
10927
|
-
sources:
|
|
10928
|
-
});
|
|
10929
|
-
var teamInsightsUserAgentRunSchema =
|
|
10930
|
-
id: z76.guid(),
|
|
10931
|
-
created_at: z76.string(),
|
|
10932
|
-
updated_at: z76.string(),
|
|
10933
|
-
agent_id: z76.guid(),
|
|
10934
|
-
agent_name: z76.string(),
|
|
10935
|
-
build_id: z76.guid(),
|
|
10936
|
-
source: z76.string().nullable(),
|
|
10937
|
-
started_at: z76.string().nullable(),
|
|
10938
|
-
completed_at: z76.string().nullable()
|
|
10939
|
-
});
|
|
10940
|
-
var teamInsightsAgentSchema = z76.object({
|
|
10941
|
-
id: z76.guid(),
|
|
10942
|
-
name: z76.string(),
|
|
10943
|
-
teamName: z76.string().nullable().optional(),
|
|
10944
|
-
runs: z76.array(teamInsightsUserAgentRunSchema)
|
|
10945
|
-
});
|
|
10946
|
-
var teamInsightsUserWithAgentsAndRunsSchema = teamInsightsUserProfileSchema.extend({
|
|
10947
|
-
agents: z76.array(teamInsightsAgentSchema),
|
|
10948
|
-
runs: z76.array(teamInsightsUserAgentRunSchema),
|
|
10949
|
-
totalRuns: z76.number()
|
|
10950
|
-
});
|
|
10951
|
-
var teamInsightsUsersResponseSchema = z76.object({
|
|
10952
|
-
data: z76.array(teamInsightsUserWithAgentsAndRunsSchema),
|
|
10953
|
-
total: z76.number()
|
|
10954
|
-
});
|
|
10955
|
-
var guardrailsAuthorSchema = z77.object({
|
|
10970
|
+
integrations: z77.array(z77.string()),
|
|
10971
|
+
uniqueUsersCount: z77.number(),
|
|
10972
|
+
users: z77.array(teamInsightsUserUsageSchema),
|
|
10973
|
+
totalRuns: z77.number(),
|
|
10974
|
+
completedRuns: z77.number(),
|
|
10975
|
+
totalTimeSpentMs: z77.number(),
|
|
10976
|
+
averageTimeSpentMs: z77.number(),
|
|
10977
|
+
completedRunsWithTiming: z77.number(),
|
|
10978
|
+
sources: z77.array(teamInsightsMetricSourceSchema)
|
|
10979
|
+
});
|
|
10980
|
+
var teamInsightsAgentsRunResponseSchema = z77.object({
|
|
10981
|
+
data: z77.array(teamInsightsCopilotWithRunsSchema),
|
|
10982
|
+
total: z77.number()
|
|
10983
|
+
});
|
|
10984
|
+
var teamInsightsMetricsResponseSchema = z77.object({
|
|
10985
|
+
runsTotal: z77.number(),
|
|
10986
|
+
completedRuns: z77.number(),
|
|
10987
|
+
sources: z77.array(teamInsightsMetricSourceSchema)
|
|
10988
|
+
});
|
|
10989
|
+
var teamInsightsUserAgentRunSchema = z77.object({
|
|
10956
10990
|
id: z77.guid(),
|
|
10957
|
-
|
|
10958
|
-
|
|
10959
|
-
|
|
10960
|
-
|
|
10991
|
+
created_at: z77.string(),
|
|
10992
|
+
updated_at: z77.string(),
|
|
10993
|
+
agent_id: z77.guid(),
|
|
10994
|
+
agent_name: z77.string(),
|
|
10995
|
+
build_id: z77.guid(),
|
|
10996
|
+
source: z77.string().nullable(),
|
|
10997
|
+
started_at: z77.string().nullable(),
|
|
10998
|
+
completed_at: z77.string().nullable()
|
|
10999
|
+
});
|
|
11000
|
+
var teamInsightsAgentSchema = z77.object({
|
|
10961
11001
|
id: z77.guid(),
|
|
10962
|
-
|
|
10963
|
-
|
|
10964
|
-
|
|
10965
|
-
|
|
11002
|
+
name: z77.string(),
|
|
11003
|
+
teamName: z77.string().nullable().optional(),
|
|
11004
|
+
runs: z77.array(teamInsightsUserAgentRunSchema)
|
|
11005
|
+
});
|
|
11006
|
+
var teamInsightsUserWithAgentsAndRunsSchema = teamInsightsUserProfileSchema.extend({
|
|
11007
|
+
agents: z77.array(teamInsightsAgentSchema),
|
|
11008
|
+
runs: z77.array(teamInsightsUserAgentRunSchema),
|
|
11009
|
+
totalRuns: z77.number()
|
|
11010
|
+
});
|
|
11011
|
+
var teamInsightsUsersResponseSchema = z77.object({
|
|
11012
|
+
data: z77.array(teamInsightsUserWithAgentsAndRunsSchema),
|
|
11013
|
+
total: z77.number()
|
|
11014
|
+
});
|
|
11015
|
+
var guardrailsAuthorSchema = z78.object({
|
|
11016
|
+
id: z78.guid(),
|
|
11017
|
+
name: z78.string().nullable(),
|
|
11018
|
+
email: z78.email()
|
|
11019
|
+
});
|
|
11020
|
+
var guardrailsRevisionSchema = z78.object({
|
|
11021
|
+
id: z78.guid(),
|
|
11022
|
+
teamId: z78.guid(),
|
|
11023
|
+
guardrailsText: z78.string().nullable(),
|
|
11024
|
+
blockedDomains: z78.array(z78.string()),
|
|
11025
|
+
createdAt: z78.string(),
|
|
10966
11026
|
createdBy: guardrailsAuthorSchema
|
|
10967
11027
|
});
|
|
10968
|
-
var getTeamGuardrailsResponseSchema =
|
|
11028
|
+
var getTeamGuardrailsResponseSchema = z78.object({
|
|
10969
11029
|
current: guardrailsRevisionSchema.nullable()
|
|
10970
11030
|
});
|
|
10971
|
-
var listTeamGuardrailsRevisionsQuerySchema =
|
|
10972
|
-
limit:
|
|
10973
|
-
offset:
|
|
11031
|
+
var listTeamGuardrailsRevisionsQuerySchema = z78.object({
|
|
11032
|
+
limit: z78.coerce.number().int().min(1).max(100).default(20),
|
|
11033
|
+
offset: z78.coerce.number().int().min(0).default(0)
|
|
10974
11034
|
});
|
|
10975
|
-
var listTeamGuardrailsRevisionsResponseSchema =
|
|
10976
|
-
revisions:
|
|
10977
|
-
total:
|
|
11035
|
+
var listTeamGuardrailsRevisionsResponseSchema = z78.object({
|
|
11036
|
+
revisions: z78.array(guardrailsRevisionSchema),
|
|
11037
|
+
total: z78.number().int().nonnegative()
|
|
10978
11038
|
});
|
|
10979
|
-
var createTeamGuardrailsRevisionRequestSchema =
|
|
10980
|
-
guardrailsText:
|
|
10981
|
-
blockedDomains:
|
|
11039
|
+
var createTeamGuardrailsRevisionRequestSchema = z78.object({
|
|
11040
|
+
guardrailsText: z78.string().max(MAX_GUARDRAILS_TEXT_LENGTH).nullable().transform((value) => value && value.trim().length > 0 ? value : null),
|
|
11041
|
+
blockedDomains: z78.array(z78.string()).max(MAX_BLOCKED_DOMAINS)
|
|
10982
11042
|
});
|
|
10983
|
-
var userDismissalListResponseSchema =
|
|
10984
|
-
data:
|
|
11043
|
+
var userDismissalListResponseSchema = z79.object({
|
|
11044
|
+
data: z79.array(z79.string())
|
|
10985
11045
|
});
|
|
10986
|
-
var userDismissalMutationSchema =
|
|
10987
|
-
elementKey:
|
|
11046
|
+
var userDismissalMutationSchema = z79.object({
|
|
11047
|
+
elementKey: z79.string()
|
|
10988
11048
|
});
|
|
10989
11049
|
var PASSWORD_MIN = 1;
|
|
10990
11050
|
var PASSWORD_MAX = 1024;
|
|
10991
11051
|
var NAME_MAX = 200;
|
|
10992
11052
|
var URL_MAX = 500;
|
|
10993
11053
|
var USERNAME_MAX = 200;
|
|
10994
|
-
var vpnProxyConfigSummarySchema =
|
|
10995
|
-
id:
|
|
10996
|
-
name:
|
|
10997
|
-
server:
|
|
10998
|
-
username:
|
|
10999
|
-
enabled:
|
|
11000
|
-
passwordSet:
|
|
11001
|
-
organizationCount:
|
|
11002
|
-
createdAt:
|
|
11003
|
-
updatedAt:
|
|
11004
|
-
});
|
|
11005
|
-
var vpnProxyConfigListResponseSchema =
|
|
11006
|
-
configs:
|
|
11007
|
-
});
|
|
11008
|
-
var vpnProxyConfigCreateRequestSchema =
|
|
11009
|
-
name:
|
|
11010
|
-
server:
|
|
11011
|
-
username:
|
|
11012
|
-
password:
|
|
11013
|
-
enabled:
|
|
11014
|
-
});
|
|
11015
|
-
var vpnProxyConfigCreateResponseSchema =
|
|
11054
|
+
var vpnProxyConfigSummarySchema = z80.object({
|
|
11055
|
+
id: z80.guid(),
|
|
11056
|
+
name: z80.string(),
|
|
11057
|
+
server: z80.string(),
|
|
11058
|
+
username: z80.string(),
|
|
11059
|
+
enabled: z80.boolean(),
|
|
11060
|
+
passwordSet: z80.boolean(),
|
|
11061
|
+
organizationCount: z80.number().int().nonnegative(),
|
|
11062
|
+
createdAt: z80.string(),
|
|
11063
|
+
updatedAt: z80.string()
|
|
11064
|
+
});
|
|
11065
|
+
var vpnProxyConfigListResponseSchema = z80.object({
|
|
11066
|
+
configs: z80.array(vpnProxyConfigSummarySchema)
|
|
11067
|
+
});
|
|
11068
|
+
var vpnProxyConfigCreateRequestSchema = z80.object({
|
|
11069
|
+
name: z80.string().trim().min(1).max(NAME_MAX),
|
|
11070
|
+
server: z80.string().trim().min(1).max(URL_MAX).url(),
|
|
11071
|
+
username: z80.string().trim().min(1).max(USERNAME_MAX),
|
|
11072
|
+
password: z80.string().min(PASSWORD_MIN).max(PASSWORD_MAX),
|
|
11073
|
+
enabled: z80.boolean().prefault(true)
|
|
11074
|
+
});
|
|
11075
|
+
var vpnProxyConfigCreateResponseSchema = z80.object({
|
|
11016
11076
|
config: vpnProxyConfigSummarySchema
|
|
11017
11077
|
});
|
|
11018
|
-
var vpnProxyConfigUpdateRequestSchema =
|
|
11019
|
-
name:
|
|
11020
|
-
server:
|
|
11021
|
-
username:
|
|
11022
|
-
password:
|
|
11023
|
-
enabled:
|
|
11078
|
+
var vpnProxyConfigUpdateRequestSchema = z80.object({
|
|
11079
|
+
name: z80.string().trim().min(1).max(NAME_MAX).optional(),
|
|
11080
|
+
server: z80.string().trim().min(1).max(URL_MAX).url().optional(),
|
|
11081
|
+
username: z80.string().trim().min(1).max(USERNAME_MAX).optional(),
|
|
11082
|
+
password: z80.string().min(PASSWORD_MIN).max(PASSWORD_MAX).optional(),
|
|
11083
|
+
enabled: z80.boolean().optional()
|
|
11024
11084
|
});
|
|
11025
|
-
var vpnProxyConfigUpdateResponseSchema =
|
|
11085
|
+
var vpnProxyConfigUpdateResponseSchema = z80.object({
|
|
11026
11086
|
config: vpnProxyConfigSummarySchema
|
|
11027
11087
|
});
|
|
11028
|
-
var vpnProxyConfigDeleteResponseSchema =
|
|
11029
|
-
success:
|
|
11088
|
+
var vpnProxyConfigDeleteResponseSchema = z80.object({
|
|
11089
|
+
success: z80.literal(true)
|
|
11030
11090
|
});
|
|
11031
|
-
var vpnProxyConfigOrganizationSchema =
|
|
11032
|
-
id:
|
|
11033
|
-
organizationId:
|
|
11034
|
-
organizationName:
|
|
11035
|
-
|
|
11091
|
+
var vpnProxyConfigOrganizationSchema = z80.object({
|
|
11092
|
+
id: z80.guid(),
|
|
11093
|
+
organizationId: z80.guid(),
|
|
11094
|
+
organizationName: z80.string(),
|
|
11095
|
+
bypassDomains: z80.array(z80.string()),
|
|
11096
|
+
vpnEnforced: z80.boolean(),
|
|
11097
|
+
attachedAt: z80.string()
|
|
11036
11098
|
});
|
|
11037
|
-
var vpnProxyConfigOrganizationListResponseSchema =
|
|
11038
|
-
organizations:
|
|
11099
|
+
var vpnProxyConfigOrganizationListResponseSchema = z80.object({
|
|
11100
|
+
organizations: z80.array(vpnProxyConfigOrganizationSchema)
|
|
11039
11101
|
});
|
|
11040
|
-
var vpnProxyConfigAttachOrganizationRequestSchema =
|
|
11041
|
-
organizationId:
|
|
11102
|
+
var vpnProxyConfigAttachOrganizationRequestSchema = z80.object({
|
|
11103
|
+
organizationId: z80.guid(),
|
|
11104
|
+
bypassDomains: z80.array(z80.string()).max(MAX_VPN_BYPASS_DOMAINS).prefault([]),
|
|
11105
|
+
vpnEnforced: z80.boolean().prefault(false)
|
|
11042
11106
|
});
|
|
11043
|
-
var vpnProxyConfigAttachOrganizationResponseSchema =
|
|
11107
|
+
var vpnProxyConfigAttachOrganizationResponseSchema = z80.object({
|
|
11044
11108
|
attachment: vpnProxyConfigOrganizationSchema
|
|
11045
11109
|
});
|
|
11046
|
-
var vpnProxyConfigDetachOrganizationResponseSchema =
|
|
11047
|
-
success:
|
|
11110
|
+
var vpnProxyConfigDetachOrganizationResponseSchema = z80.object({
|
|
11111
|
+
success: z80.literal(true)
|
|
11048
11112
|
});
|
|
11049
|
-
var
|
|
11050
|
-
|
|
11113
|
+
var vpnProxyConfigForOrganizationAttachmentSchema = z80.object({
|
|
11114
|
+
bypassDomains: z80.array(z80.string()),
|
|
11115
|
+
vpnEnforced: z80.boolean()
|
|
11116
|
+
});
|
|
11117
|
+
var vpnProxyConfigForOrganizationResponseSchema = z80.object({
|
|
11118
|
+
config: vpnProxyConfigSummarySchema.nullable(),
|
|
11119
|
+
attachment: vpnProxyConfigForOrganizationAttachmentSchema.nullable()
|
|
11120
|
+
});
|
|
11121
|
+
var vpnProxyConfigUpdateOrganizationPolicyRequestSchema = z80.object({
|
|
11122
|
+
bypassDomains: z80.array(z80.string()).max(MAX_VPN_BYPASS_DOMAINS).optional(),
|
|
11123
|
+
vpnEnforced: z80.boolean().optional()
|
|
11124
|
+
});
|
|
11125
|
+
var vpnProxyConfigUpdateOrganizationPolicyResponseSchema = z80.object({
|
|
11126
|
+
attachment: vpnProxyConfigOrganizationSchema
|
|
11051
11127
|
});
|
|
11052
11128
|
function canonicalizeSopInput(config) {
|
|
11053
11129
|
const { input } = config.data;
|
|
@@ -11067,7 +11143,7 @@ function canonicalizeSopInput(config) {
|
|
|
11067
11143
|
}
|
|
11068
11144
|
__name(canonicalizeSopInput, "canonicalizeSopInput");
|
|
11069
11145
|
__name2(canonicalizeSopInput, "canonicalizeSopInput");
|
|
11070
|
-
var caseFilterStatusSchema =
|
|
11146
|
+
var caseFilterStatusSchema = z81.enum([
|
|
11071
11147
|
"pending",
|
|
11072
11148
|
"claimed",
|
|
11073
11149
|
"completed",
|
|
@@ -11075,19 +11151,19 @@ var caseFilterStatusSchema = z80.enum([
|
|
|
11075
11151
|
"needs_input",
|
|
11076
11152
|
"postponed"
|
|
11077
11153
|
]);
|
|
11078
|
-
var casesFiltersSchema =
|
|
11079
|
-
status:
|
|
11080
|
-
created_at_from:
|
|
11081
|
-
updated_at_from:
|
|
11082
|
-
labels:
|
|
11154
|
+
var casesFiltersSchema = z81.object({
|
|
11155
|
+
status: z81.array(caseFilterStatusSchema).optional(),
|
|
11156
|
+
created_at_from: z81.string().optional(),
|
|
11157
|
+
updated_at_from: z81.string().optional(),
|
|
11158
|
+
labels: z81.record(z81.string(), z81.array(z81.string())).optional()
|
|
11083
11159
|
});
|
|
11084
|
-
var casesListRequestBodySchema =
|
|
11160
|
+
var casesListRequestBodySchema = z81.object({
|
|
11085
11161
|
filters: casesFiltersSchema.default({}),
|
|
11086
|
-
limit:
|
|
11087
|
-
offset:
|
|
11088
|
-
sort_by:
|
|
11089
|
-
sort_order:
|
|
11090
|
-
search:
|
|
11162
|
+
limit: z81.int().min(1).max(100).default(25),
|
|
11163
|
+
offset: z81.int().min(0).default(0),
|
|
11164
|
+
sort_by: z81.enum(["created_at", "updated_at", "postponed_to"]).default("created_at"),
|
|
11165
|
+
sort_order: z81.enum(["asc", "desc"]).default("desc"),
|
|
11166
|
+
search: z81.string().optional()
|
|
11091
11167
|
});
|
|
11092
11168
|
function toBase64(input) {
|
|
11093
11169
|
if (typeof btoa === "function") {
|
|
@@ -11182,7 +11258,7 @@ function setFilterValuesByCategoryKey(filters, categoryKey, values) {
|
|
|
11182
11258
|
const { status: _, ...rest } = filters;
|
|
11183
11259
|
return rest;
|
|
11184
11260
|
}
|
|
11185
|
-
const parsed =
|
|
11261
|
+
const parsed = z81.array(caseFilterStatusSchema).safeParse(values);
|
|
11186
11262
|
if (!parsed.success) {
|
|
11187
11263
|
return filters;
|
|
11188
11264
|
}
|
|
@@ -12445,11 +12521,11 @@ function emptyConfig() {
|
|
|
12445
12521
|
__name(emptyConfig, "emptyConfig");
|
|
12446
12522
|
|
|
12447
12523
|
// src/config/env.ts
|
|
12448
|
-
import { z as
|
|
12449
|
-
var optionalEnvString =
|
|
12524
|
+
import { z as z82 } from "zod";
|
|
12525
|
+
var optionalEnvString = z82.string().optional().transform(
|
|
12450
12526
|
(value) => value === void 0 || value === "" ? void 0 : value
|
|
12451
12527
|
);
|
|
12452
|
-
var CliEnvSchema =
|
|
12528
|
+
var CliEnvSchema = z82.object({
|
|
12453
12529
|
DUVO_PROFILE: optionalEnvString,
|
|
12454
12530
|
DUVO_API_KEY: optionalEnvString,
|
|
12455
12531
|
DUVO_API_BASE_URL: optionalEnvString,
|
|
@@ -12951,9 +13027,9 @@ async function requireAuthenticatedConfig(command) {
|
|
|
12951
13027
|
__name(requireAuthenticatedConfig, "requireAuthenticatedConfig");
|
|
12952
13028
|
|
|
12953
13029
|
// src/commands/shared/team-context.ts
|
|
12954
|
-
import { z as
|
|
12955
|
-
var teamSchema =
|
|
12956
|
-
var listMyTeamsResponseSchema =
|
|
13030
|
+
import { z as z83 } from "zod";
|
|
13031
|
+
var teamSchema = z83.object({ id: z83.string() });
|
|
13032
|
+
var listMyTeamsResponseSchema = z83.object({ teams: z83.array(teamSchema) });
|
|
12957
13033
|
async function resolveRequiredTeamId(config, options = {}) {
|
|
12958
13034
|
if (options.override) {
|
|
12959
13035
|
return options.override;
|
|
@@ -13736,109 +13812,109 @@ import { readFile as readFile2 } from "node:fs/promises";
|
|
|
13736
13812
|
import { confirm as confirm2, isCancel as isCancel2, text } from "@clack/prompts";
|
|
13737
13813
|
|
|
13738
13814
|
// src/api/agent-schemas.ts
|
|
13739
|
-
import { z as
|
|
13815
|
+
import { z as z85 } from "zod";
|
|
13740
13816
|
|
|
13741
13817
|
// src/api/json-value.ts
|
|
13742
|
-
import { z as
|
|
13743
|
-
var jsonValueSchema =
|
|
13744
|
-
() =>
|
|
13745
|
-
|
|
13746
|
-
|
|
13747
|
-
|
|
13748
|
-
|
|
13749
|
-
|
|
13750
|
-
|
|
13818
|
+
import { z as z84 } from "zod";
|
|
13819
|
+
var jsonValueSchema = z84.lazy(
|
|
13820
|
+
() => z84.union([
|
|
13821
|
+
z84.string(),
|
|
13822
|
+
z84.number(),
|
|
13823
|
+
z84.boolean(),
|
|
13824
|
+
z84.null(),
|
|
13825
|
+
z84.array(jsonValueSchema),
|
|
13826
|
+
z84.record(z84.string(), jsonValueSchema)
|
|
13751
13827
|
])
|
|
13752
13828
|
);
|
|
13753
13829
|
|
|
13754
13830
|
// src/api/agent-schemas.ts
|
|
13755
|
-
var publicAgentSchema =
|
|
13756
|
-
id:
|
|
13757
|
-
name:
|
|
13758
|
-
slack_enabled:
|
|
13759
|
-
microsoft_teams_enabled:
|
|
13760
|
-
agentic_memory_enabled:
|
|
13761
|
-
thread_id:
|
|
13762
|
-
created_at:
|
|
13763
|
-
updated_at:
|
|
13764
|
-
latest_build:
|
|
13765
|
-
});
|
|
13766
|
-
var publicBuildSchema =
|
|
13767
|
-
id:
|
|
13768
|
-
agent_id:
|
|
13769
|
-
name:
|
|
13770
|
-
revision_number:
|
|
13771
|
-
created_at:
|
|
13772
|
-
updated_at:
|
|
13773
|
-
});
|
|
13774
|
-
var listAgentsResponseSchema =
|
|
13775
|
-
agents:
|
|
13776
|
-
total:
|
|
13777
|
-
limit:
|
|
13778
|
-
offset:
|
|
13779
|
-
});
|
|
13780
|
-
var agentUserContextSchema =
|
|
13781
|
-
pinned_at:
|
|
13782
|
-
});
|
|
13783
|
-
var getAgentResponseSchema =
|
|
13831
|
+
var publicAgentSchema = z85.object({
|
|
13832
|
+
id: z85.string(),
|
|
13833
|
+
name: z85.string(),
|
|
13834
|
+
slack_enabled: z85.boolean().nullish(),
|
|
13835
|
+
microsoft_teams_enabled: z85.boolean().nullish(),
|
|
13836
|
+
agentic_memory_enabled: z85.boolean().nullish(),
|
|
13837
|
+
thread_id: z85.string().nullish(),
|
|
13838
|
+
created_at: z85.string().nullish(),
|
|
13839
|
+
updated_at: z85.string().nullish(),
|
|
13840
|
+
latest_build: z85.object({ config: jsonValueSchema.nullish() }).nullish()
|
|
13841
|
+
});
|
|
13842
|
+
var publicBuildSchema = z85.object({
|
|
13843
|
+
id: z85.string(),
|
|
13844
|
+
agent_id: z85.string(),
|
|
13845
|
+
name: z85.string(),
|
|
13846
|
+
revision_number: z85.number().nullish(),
|
|
13847
|
+
created_at: z85.string().nullish(),
|
|
13848
|
+
updated_at: z85.string().nullish()
|
|
13849
|
+
});
|
|
13850
|
+
var listAgentsResponseSchema = z85.object({
|
|
13851
|
+
agents: z85.array(publicAgentSchema),
|
|
13852
|
+
total: z85.number().nullish(),
|
|
13853
|
+
limit: z85.number().nullish(),
|
|
13854
|
+
offset: z85.number().nullish()
|
|
13855
|
+
});
|
|
13856
|
+
var agentUserContextSchema = z85.object({
|
|
13857
|
+
pinned_at: z85.string().nullable()
|
|
13858
|
+
});
|
|
13859
|
+
var getAgentResponseSchema = z85.object({
|
|
13784
13860
|
agent: publicAgentSchema,
|
|
13785
13861
|
user_context: agentUserContextSchema.optional()
|
|
13786
13862
|
});
|
|
13787
|
-
var createAgentResponseSchema =
|
|
13863
|
+
var createAgentResponseSchema = z85.object({
|
|
13788
13864
|
agent: publicAgentSchema,
|
|
13789
13865
|
build: publicBuildSchema.optional()
|
|
13790
13866
|
});
|
|
13791
|
-
var deleteAgentResponseSchema =
|
|
13792
|
-
success:
|
|
13793
|
-
});
|
|
13794
|
-
var namedRefSchema =
|
|
13795
|
-
id:
|
|
13796
|
-
name:
|
|
13797
|
-
});
|
|
13798
|
-
var moveQueueRefSchema =
|
|
13799
|
-
id:
|
|
13800
|
-
name:
|
|
13801
|
-
item_count:
|
|
13802
|
-
});
|
|
13803
|
-
var connectionDecisionSchema =
|
|
13804
|
-
agent_id:
|
|
13805
|
-
agent_name:
|
|
13806
|
-
integration_type:
|
|
13807
|
-
integration_name:
|
|
13808
|
-
instance_name:
|
|
13809
|
-
decision:
|
|
13810
|
-
});
|
|
13811
|
-
var customRebuildSchema =
|
|
13812
|
-
agent_id:
|
|
13813
|
-
agent_name:
|
|
13814
|
-
custom_integration_name:
|
|
13815
|
-
});
|
|
13816
|
-
var moveAgentResponseSchema =
|
|
13817
|
-
source_team_id:
|
|
13818
|
-
target_team_id:
|
|
13819
|
-
root_agent_id:
|
|
13820
|
-
agents:
|
|
13821
|
-
queues:
|
|
13822
|
-
total_case_items:
|
|
13823
|
-
total_runs:
|
|
13824
|
-
skills_to_clone:
|
|
13825
|
-
files_to_copy:
|
|
13826
|
-
warnings:
|
|
13827
|
-
outcome:
|
|
13828
|
-
instances_reconnected:
|
|
13829
|
-
instances_disconnected:
|
|
13830
|
-
custom_integrations_to_rebuild:
|
|
13831
|
-
catalog_rows_created_on_target:
|
|
13867
|
+
var deleteAgentResponseSchema = z85.object({
|
|
13868
|
+
success: z85.literal(true)
|
|
13869
|
+
});
|
|
13870
|
+
var namedRefSchema = z85.object({
|
|
13871
|
+
id: z85.string(),
|
|
13872
|
+
name: z85.string()
|
|
13873
|
+
});
|
|
13874
|
+
var moveQueueRefSchema = z85.object({
|
|
13875
|
+
id: z85.string(),
|
|
13876
|
+
name: z85.string(),
|
|
13877
|
+
item_count: z85.number()
|
|
13878
|
+
});
|
|
13879
|
+
var connectionDecisionSchema = z85.object({
|
|
13880
|
+
agent_id: z85.string(),
|
|
13881
|
+
agent_name: z85.string(),
|
|
13882
|
+
integration_type: z85.string(),
|
|
13883
|
+
integration_name: z85.string(),
|
|
13884
|
+
instance_name: z85.string(),
|
|
13885
|
+
decision: z85.string()
|
|
13886
|
+
});
|
|
13887
|
+
var customRebuildSchema = z85.object({
|
|
13888
|
+
agent_id: z85.string(),
|
|
13889
|
+
agent_name: z85.string(),
|
|
13890
|
+
custom_integration_name: z85.string()
|
|
13891
|
+
});
|
|
13892
|
+
var moveAgentResponseSchema = z85.object({
|
|
13893
|
+
source_team_id: z85.string(),
|
|
13894
|
+
target_team_id: z85.string(),
|
|
13895
|
+
root_agent_id: z85.string(),
|
|
13896
|
+
agents: z85.array(namedRefSchema),
|
|
13897
|
+
queues: z85.array(moveQueueRefSchema),
|
|
13898
|
+
total_case_items: z85.number(),
|
|
13899
|
+
total_runs: z85.number(),
|
|
13900
|
+
skills_to_clone: z85.array(namedRefSchema),
|
|
13901
|
+
files_to_copy: z85.array(z85.object({ path: z85.string() })),
|
|
13902
|
+
warnings: z85.object({
|
|
13903
|
+
outcome: z85.object({
|
|
13904
|
+
instances_reconnected: z85.array(connectionDecisionSchema),
|
|
13905
|
+
instances_disconnected: z85.array(connectionDecisionSchema),
|
|
13906
|
+
custom_integrations_to_rebuild: z85.array(customRebuildSchema),
|
|
13907
|
+
catalog_rows_created_on_target: z85.number()
|
|
13832
13908
|
}),
|
|
13833
|
-
dropped_folders:
|
|
13834
|
-
dropped_memory_count:
|
|
13835
|
-
files_copied_count:
|
|
13836
|
-
files_skipped_conflict:
|
|
13909
|
+
dropped_folders: z85.array(namedRefSchema),
|
|
13910
|
+
dropped_memory_count: z85.number(),
|
|
13911
|
+
files_copied_count: z85.number(),
|
|
13912
|
+
files_skipped_conflict: z85.array(z85.string())
|
|
13837
13913
|
}),
|
|
13838
|
-
options:
|
|
13839
|
-
move_learnings:
|
|
13914
|
+
options: z85.object({
|
|
13915
|
+
move_learnings: z85.boolean()
|
|
13840
13916
|
}),
|
|
13841
|
-
applied:
|
|
13917
|
+
applied: z85.boolean()
|
|
13842
13918
|
});
|
|
13843
13919
|
var buildConfigSchema = StoredAgentConfigSchemaV2;
|
|
13844
13920
|
var DEFAULT_NEW_AGENT_NAME = DEFAULT_AGENT_NAME;
|
|
@@ -14555,29 +14631,29 @@ function registerAgentsEvalScores(agents) {
|
|
|
14555
14631
|
__name(registerAgentsEvalScores, "registerAgentsEvalScores");
|
|
14556
14632
|
|
|
14557
14633
|
// src/api/build-schemas.ts
|
|
14558
|
-
import { z as
|
|
14559
|
-
var publicBuildSchema2 =
|
|
14560
|
-
id:
|
|
14561
|
-
agent_id:
|
|
14562
|
-
name:
|
|
14563
|
-
status:
|
|
14634
|
+
import { z as z86 } from "zod";
|
|
14635
|
+
var publicBuildSchema2 = z86.object({
|
|
14636
|
+
id: z86.string(),
|
|
14637
|
+
agent_id: z86.string(),
|
|
14638
|
+
name: z86.string(),
|
|
14639
|
+
status: z86.string().nullish(),
|
|
14564
14640
|
config: jsonValueSchema.nullish(),
|
|
14565
|
-
revision_number:
|
|
14566
|
-
created_at:
|
|
14567
|
-
updated_at:
|
|
14641
|
+
revision_number: z86.number().nullish(),
|
|
14642
|
+
created_at: z86.string().nullish(),
|
|
14643
|
+
updated_at: z86.string().nullish()
|
|
14568
14644
|
});
|
|
14569
|
-
var listBuildsResponseSchema2 =
|
|
14570
|
-
builds:
|
|
14571
|
-
total:
|
|
14572
|
-
limit:
|
|
14573
|
-
offset:
|
|
14645
|
+
var listBuildsResponseSchema2 = z86.object({
|
|
14646
|
+
builds: z86.array(publicBuildSchema2),
|
|
14647
|
+
total: z86.number().nullish(),
|
|
14648
|
+
limit: z86.number().nullish(),
|
|
14649
|
+
offset: z86.number().nullish()
|
|
14574
14650
|
});
|
|
14575
|
-
var getBuildResponseSchema =
|
|
14651
|
+
var getBuildResponseSchema = z86.object({
|
|
14576
14652
|
build: publicBuildSchema2
|
|
14577
14653
|
});
|
|
14578
|
-
var createBuildResponseSchema =
|
|
14654
|
+
var createBuildResponseSchema = z86.object({
|
|
14579
14655
|
build: publicBuildSchema2,
|
|
14580
|
-
agent:
|
|
14656
|
+
agent: z86.object({ id: z86.string() })
|
|
14581
14657
|
});
|
|
14582
14658
|
|
|
14583
14659
|
// src/commands/agents/get.ts
|
|
@@ -14973,30 +15049,30 @@ ${plan.warnings.dropped_memory_count} AOP exception(s) will be cleared for users
|
|
|
14973
15049
|
__name(renderPlan, "renderPlan");
|
|
14974
15050
|
|
|
14975
15051
|
// src/api/schedule-schemas.ts
|
|
14976
|
-
import { z as
|
|
14977
|
-
var publicScheduleSchema =
|
|
14978
|
-
id:
|
|
14979
|
-
build_id:
|
|
14980
|
-
agent_id:
|
|
14981
|
-
user_id:
|
|
14982
|
-
enabled:
|
|
14983
|
-
frequency:
|
|
14984
|
-
time:
|
|
14985
|
-
timezone:
|
|
14986
|
-
day:
|
|
14987
|
-
day_of_month:
|
|
14988
|
-
cron:
|
|
14989
|
-
source:
|
|
14990
|
-
task:
|
|
14991
|
-
recurring:
|
|
14992
|
-
created_at:
|
|
14993
|
-
updated_at:
|
|
14994
|
-
});
|
|
14995
|
-
var listSchedulesResponseSchema =
|
|
14996
|
-
schedules:
|
|
14997
|
-
});
|
|
14998
|
-
var deleteScheduleResponseSchema =
|
|
14999
|
-
success:
|
|
15052
|
+
import { z as z87 } from "zod";
|
|
15053
|
+
var publicScheduleSchema = z87.object({
|
|
15054
|
+
id: z87.string(),
|
|
15055
|
+
build_id: z87.string(),
|
|
15056
|
+
agent_id: z87.string(),
|
|
15057
|
+
user_id: z87.string(),
|
|
15058
|
+
enabled: z87.boolean(),
|
|
15059
|
+
frequency: z87.string(),
|
|
15060
|
+
time: z87.string().nullish(),
|
|
15061
|
+
timezone: z87.string(),
|
|
15062
|
+
day: z87.string().nullish(),
|
|
15063
|
+
day_of_month: z87.number().nullish(),
|
|
15064
|
+
cron: z87.string().nullish(),
|
|
15065
|
+
source: z87.string().nullish(),
|
|
15066
|
+
task: z87.string().nullish(),
|
|
15067
|
+
recurring: z87.boolean().nullish(),
|
|
15068
|
+
created_at: z87.string(),
|
|
15069
|
+
updated_at: z87.string()
|
|
15070
|
+
});
|
|
15071
|
+
var listSchedulesResponseSchema = z87.object({
|
|
15072
|
+
schedules: z87.array(publicScheduleSchema)
|
|
15073
|
+
});
|
|
15074
|
+
var deleteScheduleResponseSchema = z87.object({
|
|
15075
|
+
success: z87.literal(true)
|
|
15000
15076
|
});
|
|
15001
15077
|
|
|
15002
15078
|
// src/commands/agents/schedules/render-schedule.ts
|
|
@@ -15444,33 +15520,33 @@ function registerAgentsSetModel(agents) {
|
|
|
15444
15520
|
__name(registerAgentsSetModel, "registerAgentsSetModel");
|
|
15445
15521
|
|
|
15446
15522
|
// src/api/trigger-schemas.ts
|
|
15447
|
-
import { z as
|
|
15448
|
-
var triggerSchema =
|
|
15449
|
-
id:
|
|
15450
|
-
agent_id:
|
|
15451
|
-
user_id:
|
|
15452
|
-
integration_slug:
|
|
15453
|
-
trigger_type:
|
|
15454
|
-
filter_config:
|
|
15455
|
-
integration_instance_id:
|
|
15456
|
-
enabled:
|
|
15457
|
-
created_at:
|
|
15458
|
-
updated_at:
|
|
15523
|
+
import { z as z88 } from "zod";
|
|
15524
|
+
var triggerSchema = z88.object({
|
|
15525
|
+
id: z88.string(),
|
|
15526
|
+
agent_id: z88.string(),
|
|
15527
|
+
user_id: z88.string(),
|
|
15528
|
+
integration_slug: z88.string(),
|
|
15529
|
+
trigger_type: z88.string(),
|
|
15530
|
+
filter_config: z88.record(z88.string(), z88.unknown()),
|
|
15531
|
+
integration_instance_id: z88.string(),
|
|
15532
|
+
enabled: z88.boolean(),
|
|
15533
|
+
created_at: z88.string(),
|
|
15534
|
+
updated_at: z88.string()
|
|
15459
15535
|
});
|
|
15460
|
-
var listTriggersResponseSchema =
|
|
15461
|
-
triggers:
|
|
15536
|
+
var listTriggersResponseSchema = z88.object({
|
|
15537
|
+
triggers: z88.array(triggerSchema)
|
|
15462
15538
|
});
|
|
15463
|
-
var triggerTypeSchema =
|
|
15464
|
-
integration_slug:
|
|
15465
|
-
integration_name:
|
|
15466
|
-
icon_url:
|
|
15467
|
-
trigger_type:
|
|
15468
|
-
label:
|
|
15469
|
-
description:
|
|
15470
|
-
filter_schema:
|
|
15539
|
+
var triggerTypeSchema = z88.object({
|
|
15540
|
+
integration_slug: z88.string(),
|
|
15541
|
+
integration_name: z88.string(),
|
|
15542
|
+
icon_url: z88.string(),
|
|
15543
|
+
trigger_type: z88.string(),
|
|
15544
|
+
label: z88.string(),
|
|
15545
|
+
description: z88.string(),
|
|
15546
|
+
filter_schema: z88.record(z88.string(), z88.unknown())
|
|
15471
15547
|
});
|
|
15472
|
-
var listTriggerTypesResponseSchema =
|
|
15473
|
-
trigger_types:
|
|
15548
|
+
var listTriggerTypesResponseSchema = z88.object({
|
|
15549
|
+
trigger_types: z88.array(triggerTypeSchema)
|
|
15474
15550
|
});
|
|
15475
15551
|
|
|
15476
15552
|
// src/commands/agents/triggers/list.ts
|
|
@@ -16100,55 +16176,55 @@ function fieldsToSearchParams(fields) {
|
|
|
16100
16176
|
__name(fieldsToSearchParams, "fieldsToSearchParams");
|
|
16101
16177
|
|
|
16102
16178
|
// src/api/integration-schemas.ts
|
|
16103
|
-
import { z as
|
|
16104
|
-
var integrationSchema =
|
|
16105
|
-
id:
|
|
16106
|
-
name:
|
|
16107
|
-
type:
|
|
16108
|
-
provider:
|
|
16109
|
-
user_id:
|
|
16110
|
-
team_id:
|
|
16111
|
-
server_url:
|
|
16112
|
-
transport_type:
|
|
16113
|
-
auth_method:
|
|
16114
|
-
composio_mcp_id:
|
|
16115
|
-
custom_integration_id:
|
|
16116
|
-
icon_url:
|
|
16117
|
-
oauth_provider:
|
|
16118
|
-
oauth_provider_key:
|
|
16119
|
-
oauth_scopes:
|
|
16120
|
-
integration_id:
|
|
16121
|
-
created_at:
|
|
16122
|
-
updated_at:
|
|
16123
|
-
});
|
|
16124
|
-
var integrationsListResponseSchema2 =
|
|
16125
|
-
integrations:
|
|
16179
|
+
import { z as z89 } from "zod";
|
|
16180
|
+
var integrationSchema = z89.object({
|
|
16181
|
+
id: z89.string(),
|
|
16182
|
+
name: z89.string(),
|
|
16183
|
+
type: z89.string(),
|
|
16184
|
+
provider: z89.string(),
|
|
16185
|
+
user_id: z89.string().nullable(),
|
|
16186
|
+
team_id: z89.string(),
|
|
16187
|
+
server_url: z89.string().optional(),
|
|
16188
|
+
transport_type: z89.string().optional(),
|
|
16189
|
+
auth_method: z89.string().nullish(),
|
|
16190
|
+
composio_mcp_id: z89.string().nullish(),
|
|
16191
|
+
custom_integration_id: z89.string().nullish(),
|
|
16192
|
+
icon_url: z89.string().nullish(),
|
|
16193
|
+
oauth_provider: z89.string().nullish(),
|
|
16194
|
+
oauth_provider_key: z89.string().nullish(),
|
|
16195
|
+
oauth_scopes: z89.array(z89.string()).nullish(),
|
|
16196
|
+
integration_id: z89.string().nullish(),
|
|
16197
|
+
created_at: z89.string(),
|
|
16198
|
+
updated_at: z89.string()
|
|
16199
|
+
});
|
|
16200
|
+
var integrationsListResponseSchema2 = z89.object({
|
|
16201
|
+
integrations: z89.array(integrationSchema)
|
|
16126
16202
|
});
|
|
16127
16203
|
var connectionResponseSchema = integrationSchema;
|
|
16128
|
-
var buildIntegrationConfigSchema2 =
|
|
16129
|
-
id:
|
|
16130
|
-
integration_id:
|
|
16131
|
-
custom_integration_id:
|
|
16132
|
-
integration_type:
|
|
16133
|
-
integration_name:
|
|
16134
|
-
created_at:
|
|
16204
|
+
var buildIntegrationConfigSchema2 = z89.object({
|
|
16205
|
+
id: z89.string(),
|
|
16206
|
+
integration_id: z89.string().nullable(),
|
|
16207
|
+
custom_integration_id: z89.string().nullable(),
|
|
16208
|
+
integration_type: z89.string(),
|
|
16209
|
+
integration_name: z89.string(),
|
|
16210
|
+
created_at: z89.string()
|
|
16135
16211
|
});
|
|
16136
|
-
var listBuildIntegrationsResponseSchema2 =
|
|
16137
|
-
integrations:
|
|
16212
|
+
var listBuildIntegrationsResponseSchema2 = z89.object({
|
|
16213
|
+
integrations: z89.array(buildIntegrationConfigSchema2)
|
|
16138
16214
|
});
|
|
16139
|
-
var attachBuildIntegrationsResponseSchema =
|
|
16140
|
-
success:
|
|
16141
|
-
count:
|
|
16215
|
+
var attachBuildIntegrationsResponseSchema = z89.object({
|
|
16216
|
+
success: z89.boolean(),
|
|
16217
|
+
count: z89.number()
|
|
16142
16218
|
});
|
|
16143
|
-
var buildIntegrationConnectionSchema =
|
|
16144
|
-
connection_id:
|
|
16145
|
-
created_at:
|
|
16219
|
+
var buildIntegrationConnectionSchema = z89.object({
|
|
16220
|
+
connection_id: z89.string(),
|
|
16221
|
+
created_at: z89.string()
|
|
16146
16222
|
});
|
|
16147
|
-
var listBuildIntegrationConnectionsResponseSchema =
|
|
16148
|
-
connections:
|
|
16223
|
+
var listBuildIntegrationConnectionsResponseSchema = z89.object({
|
|
16224
|
+
connections: z89.array(buildIntegrationConnectionSchema)
|
|
16149
16225
|
});
|
|
16150
|
-
var successResponseSchema =
|
|
16151
|
-
success:
|
|
16226
|
+
var successResponseSchema = z89.object({
|
|
16227
|
+
success: z89.boolean()
|
|
16152
16228
|
});
|
|
16153
16229
|
|
|
16154
16230
|
// src/commands/build-integrations/attach.ts
|
|
@@ -16191,15 +16267,15 @@ function registerBuildIntegrationsAttach(buildIntegrations) {
|
|
|
16191
16267
|
__name(registerBuildIntegrationsAttach, "registerBuildIntegrationsAttach");
|
|
16192
16268
|
|
|
16193
16269
|
// src/commands/build-integrations/case-queue-setup.ts
|
|
16194
|
-
import { z as
|
|
16195
|
-
var slotSchema =
|
|
16196
|
-
config_id:
|
|
16197
|
-
integration_type:
|
|
16198
|
-
linked_queue_count:
|
|
16270
|
+
import { z as z90 } from "zod";
|
|
16271
|
+
var slotSchema = z90.object({
|
|
16272
|
+
config_id: z90.string(),
|
|
16273
|
+
integration_type: z90.string(),
|
|
16274
|
+
linked_queue_count: z90.number()
|
|
16199
16275
|
});
|
|
16200
|
-
var responseSchema2 =
|
|
16201
|
-
configs:
|
|
16202
|
-
has_available_queues:
|
|
16276
|
+
var responseSchema2 = z90.object({
|
|
16277
|
+
configs: z90.array(slotSchema),
|
|
16278
|
+
has_available_queues: z90.boolean()
|
|
16203
16279
|
});
|
|
16204
16280
|
var TABLE_COLUMNS10 = [
|
|
16205
16281
|
{ header: "SLOT ID", cell: /* @__PURE__ */ __name((row) => row.config_id, "cell") },
|
|
@@ -16694,9 +16770,9 @@ function registerBuildsList(builds) {
|
|
|
16694
16770
|
__name(registerBuildsList, "registerBuildsList");
|
|
16695
16771
|
|
|
16696
16772
|
// src/commands/builds/promote.ts
|
|
16697
|
-
import { z as
|
|
16698
|
-
var promoteResponseSchema =
|
|
16699
|
-
success:
|
|
16773
|
+
import { z as z91 } from "zod";
|
|
16774
|
+
var promoteResponseSchema = z91.object({
|
|
16775
|
+
success: z91.boolean()
|
|
16700
16776
|
});
|
|
16701
16777
|
function registerBuildsPromote(builds) {
|
|
16702
16778
|
builds.command("promote <id>").description(
|
|
@@ -17707,7 +17783,7 @@ function parseSortOrder(raw) {
|
|
|
17707
17783
|
__name(parseSortOrder, "parseSortOrder");
|
|
17708
17784
|
|
|
17709
17785
|
// src/commands/cases/runs.ts
|
|
17710
|
-
import { z as
|
|
17786
|
+
import { z as z92 } from "zod";
|
|
17711
17787
|
var MIN_LIMIT4 = 1;
|
|
17712
17788
|
var MAX_LIMIT4 = 10;
|
|
17713
17789
|
var DEFAULT_LIMIT4 = 3;
|
|
@@ -17725,17 +17801,17 @@ var RUNS_TABLE_COLUMNS = [
|
|
|
17725
17801
|
cell: /* @__PURE__ */ __name((row) => row.has_pending_human_request ? row.pending_human_request_title ?? "(unknown)" : "", "cell")
|
|
17726
17802
|
}
|
|
17727
17803
|
];
|
|
17728
|
-
var recentMessageSchema =
|
|
17729
|
-
id:
|
|
17730
|
-
type:
|
|
17731
|
-
role:
|
|
17732
|
-
timestamp:
|
|
17733
|
-
text_content:
|
|
17734
|
-
tool_call:
|
|
17735
|
-
tool_result:
|
|
17736
|
-
});
|
|
17737
|
-
var recentMessagesResponseSchema =
|
|
17738
|
-
messages:
|
|
17804
|
+
var recentMessageSchema = z92.object({
|
|
17805
|
+
id: z92.string(),
|
|
17806
|
+
type: z92.string(),
|
|
17807
|
+
role: z92.string(),
|
|
17808
|
+
timestamp: z92.string(),
|
|
17809
|
+
text_content: z92.string().nullish(),
|
|
17810
|
+
tool_call: z92.object({ id: z92.string(), name: z92.string() }).passthrough().nullish(),
|
|
17811
|
+
tool_result: z92.object({ tool_call_id: z92.string() }).passthrough().nullish()
|
|
17812
|
+
});
|
|
17813
|
+
var recentMessagesResponseSchema = z92.object({
|
|
17814
|
+
messages: z92.array(recentMessageSchema)
|
|
17739
17815
|
});
|
|
17740
17816
|
var TEXT_PREVIEW_WIDTH = 60;
|
|
17741
17817
|
var MESSAGES_TABLE_COLUMNS = [
|
|
@@ -17864,55 +17940,55 @@ function registerCases(program) {
|
|
|
17864
17940
|
__name(registerCases, "registerCases");
|
|
17865
17941
|
|
|
17866
17942
|
// src/api/clarity-schemas.ts
|
|
17867
|
-
import { z as
|
|
17868
|
-
var clarityListProcessSchema =
|
|
17869
|
-
id:
|
|
17870
|
-
name:
|
|
17943
|
+
import { z as z93 } from "zod";
|
|
17944
|
+
var clarityListProcessSchema = z93.object({
|
|
17945
|
+
id: z93.guid(),
|
|
17946
|
+
name: z93.string(),
|
|
17871
17947
|
status: clarityProcessStatusSchema,
|
|
17872
17948
|
visibility: clarityProcessVisibilitySchema,
|
|
17873
|
-
version:
|
|
17874
|
-
capture_count:
|
|
17875
|
-
capture_counts:
|
|
17876
|
-
video:
|
|
17877
|
-
interview:
|
|
17878
|
-
document:
|
|
17949
|
+
version: z93.number().int(),
|
|
17950
|
+
capture_count: z93.number().int(),
|
|
17951
|
+
capture_counts: z93.object({
|
|
17952
|
+
video: z93.number().int(),
|
|
17953
|
+
interview: z93.number().int(),
|
|
17954
|
+
document: z93.number().int()
|
|
17879
17955
|
}).optional(),
|
|
17880
|
-
pending_invitation_count:
|
|
17881
|
-
contributors:
|
|
17882
|
-
|
|
17883
|
-
user_id:
|
|
17884
|
-
user_name:
|
|
17956
|
+
pending_invitation_count: z93.number().int(),
|
|
17957
|
+
contributors: z93.array(
|
|
17958
|
+
z93.object({
|
|
17959
|
+
user_id: z93.string(),
|
|
17960
|
+
user_name: z93.string()
|
|
17885
17961
|
})
|
|
17886
17962
|
),
|
|
17887
|
-
created_at:
|
|
17888
|
-
created_by_name:
|
|
17889
|
-
});
|
|
17890
|
-
var listClarityProcessesResponseSchema =
|
|
17891
|
-
processes:
|
|
17892
|
-
total:
|
|
17893
|
-
limit:
|
|
17894
|
-
offset:
|
|
17895
|
-
});
|
|
17896
|
-
var createClarityInviteLinkResponseSchema =
|
|
17897
|
-
invite_link:
|
|
17898
|
-
id:
|
|
17899
|
-
url:
|
|
17900
|
-
created_at:
|
|
17901
|
-
created_by:
|
|
17902
|
-
id:
|
|
17903
|
-
email:
|
|
17963
|
+
created_at: z93.string(),
|
|
17964
|
+
created_by_name: z93.string().nullable()
|
|
17965
|
+
});
|
|
17966
|
+
var listClarityProcessesResponseSchema = z93.object({
|
|
17967
|
+
processes: z93.array(clarityListProcessSchema),
|
|
17968
|
+
total: z93.number().int(),
|
|
17969
|
+
limit: z93.number().int(),
|
|
17970
|
+
offset: z93.number().int()
|
|
17971
|
+
});
|
|
17972
|
+
var createClarityInviteLinkResponseSchema = z93.object({
|
|
17973
|
+
invite_link: z93.object({
|
|
17974
|
+
id: z93.guid(),
|
|
17975
|
+
url: z93.url(),
|
|
17976
|
+
created_at: z93.string(),
|
|
17977
|
+
created_by: z93.object({
|
|
17978
|
+
id: z93.guid(),
|
|
17979
|
+
email: z93.email().nullable()
|
|
17904
17980
|
})
|
|
17905
17981
|
})
|
|
17906
17982
|
});
|
|
17907
|
-
var createArtifactImportUploadUrlResponseSchema =
|
|
17908
|
-
signed_url:
|
|
17909
|
-
capture_id:
|
|
17910
|
-
expires_at:
|
|
17983
|
+
var createArtifactImportUploadUrlResponseSchema = z93.object({
|
|
17984
|
+
signed_url: z93.url(),
|
|
17985
|
+
capture_id: z93.guid(),
|
|
17986
|
+
expires_at: z93.iso.datetime()
|
|
17911
17987
|
});
|
|
17912
|
-
var completeArtifactImportResponseSchema =
|
|
17988
|
+
var completeArtifactImportResponseSchema = z93.object({
|
|
17913
17989
|
capture: clarityCaptureSchema.extend({
|
|
17914
|
-
createdAt:
|
|
17915
|
-
updatedAt:
|
|
17990
|
+
createdAt: z93.iso.datetime(),
|
|
17991
|
+
updatedAt: z93.iso.datetime()
|
|
17916
17992
|
})
|
|
17917
17993
|
});
|
|
17918
17994
|
var legacyClarityProcessResponseSchema = legacyClarityProcessDetailSchema;
|
|
@@ -18351,8 +18427,8 @@ function renderCompletedImport(response) {
|
|
|
18351
18427
|
__name(renderCompletedImport, "renderCompletedImport");
|
|
18352
18428
|
|
|
18353
18429
|
// src/commands/clarity/assign-extra-capture-request.ts
|
|
18354
|
-
import { z as
|
|
18355
|
-
var responseSchema3 =
|
|
18430
|
+
import { z as z94 } from "zod";
|
|
18431
|
+
var responseSchema3 = z94.object({
|
|
18356
18432
|
request: clarityProposalExtraCaptureRequestSchema
|
|
18357
18433
|
});
|
|
18358
18434
|
function renderRequest(request) {
|
|
@@ -18399,11 +18475,11 @@ function registerClarityAssignExtraCaptureRequest(clarity) {
|
|
|
18399
18475
|
__name(registerClarityAssignExtraCaptureRequest, "registerClarityAssignExtraCaptureRequest");
|
|
18400
18476
|
|
|
18401
18477
|
// src/commands/clarity/build-automation.ts
|
|
18402
|
-
import { z as
|
|
18403
|
-
var responseSchema4 =
|
|
18404
|
-
automation_run:
|
|
18405
|
-
id:
|
|
18406
|
-
status:
|
|
18478
|
+
import { z as z95 } from "zod";
|
|
18479
|
+
var responseSchema4 = z95.object({
|
|
18480
|
+
automation_run: z95.object({
|
|
18481
|
+
id: z95.string(),
|
|
18482
|
+
status: z95.string()
|
|
18407
18483
|
})
|
|
18408
18484
|
});
|
|
18409
18485
|
function registerClarityBuildAutomation(clarity) {
|
|
@@ -18474,7 +18550,7 @@ function registerClarityCreateInviteLink(clarity) {
|
|
|
18474
18550
|
__name(registerClarityCreateInviteLink, "registerClarityCreateInviteLink");
|
|
18475
18551
|
|
|
18476
18552
|
// src/commands/clarity/doctor.ts
|
|
18477
|
-
import { z as
|
|
18553
|
+
import { z as z96 } from "zod";
|
|
18478
18554
|
|
|
18479
18555
|
// src/commands/clarity/render.ts
|
|
18480
18556
|
var DEFAULT_HUMAN_SUMMARY_LIMIT = 1200;
|
|
@@ -20138,19 +20214,6 @@ var CLARITY_WRITE_TOOLS = [
|
|
|
20138
20214
|
],
|
|
20139
20215
|
description: "Move a landscape node under a new parent or to the root."
|
|
20140
20216
|
},
|
|
20141
|
-
{
|
|
20142
|
-
name: "confirmClarityLandscapeNode",
|
|
20143
|
-
scope: "v1+v2",
|
|
20144
|
-
read_only: false,
|
|
20145
|
-
commands: ["duvo clarity landscape confirm-node"],
|
|
20146
|
-
endpoints: [
|
|
20147
|
-
{
|
|
20148
|
-
method: "POST",
|
|
20149
|
-
path: "/v2/organizations/:orgId/clarity/hierarchy/nodes/:nodeId/confirm"
|
|
20150
|
-
}
|
|
20151
|
-
],
|
|
20152
|
-
description: "Confirm a landscape node placement, content, or existence axis."
|
|
20153
|
-
},
|
|
20154
20217
|
{
|
|
20155
20218
|
name: "generateClarityProcessLandscape",
|
|
20156
20219
|
scope: "v1+v2",
|
|
@@ -20413,8 +20476,8 @@ async function buildTeamContextCheck(config) {
|
|
|
20413
20476
|
}
|
|
20414
20477
|
}
|
|
20415
20478
|
__name(buildTeamContextCheck, "buildTeamContextCheck");
|
|
20416
|
-
var listMyTeamsResponseSchema2 =
|
|
20417
|
-
teams:
|
|
20479
|
+
var listMyTeamsResponseSchema2 = z96.object({
|
|
20480
|
+
teams: z96.array(z96.object({ id: z96.string() }))
|
|
20418
20481
|
});
|
|
20419
20482
|
async function buildClarityApiReachableCheck(command, config) {
|
|
20420
20483
|
let teamId;
|
|
@@ -21032,19 +21095,19 @@ function buildGenerateTransformationProposalBody(options) {
|
|
|
21032
21095
|
__name(buildGenerateTransformationProposalBody, "buildGenerateTransformationProposalBody");
|
|
21033
21096
|
|
|
21034
21097
|
// src/commands/clarity/get-current-process.ts
|
|
21035
|
-
import { z as
|
|
21036
|
-
var snapshotSchema =
|
|
21037
|
-
snapshot:
|
|
21038
|
-
id:
|
|
21039
|
-
kind:
|
|
21040
|
-
source_snapshot_id:
|
|
21041
|
-
parent_id:
|
|
21042
|
-
status:
|
|
21043
|
-
creator_type:
|
|
21044
|
-
user_id:
|
|
21045
|
-
sandbox_id:
|
|
21046
|
-
created_at:
|
|
21047
|
-
updated_at:
|
|
21098
|
+
import { z as z97 } from "zod";
|
|
21099
|
+
var snapshotSchema = z97.object({
|
|
21100
|
+
snapshot: z97.object({
|
|
21101
|
+
id: z97.string(),
|
|
21102
|
+
kind: z97.string(),
|
|
21103
|
+
source_snapshot_id: z97.string().nullable(),
|
|
21104
|
+
parent_id: z97.string().nullable(),
|
|
21105
|
+
status: z97.string(),
|
|
21106
|
+
creator_type: z97.string(),
|
|
21107
|
+
user_id: z97.string().nullable(),
|
|
21108
|
+
sandbox_id: z97.string().nullable(),
|
|
21109
|
+
created_at: z97.string(),
|
|
21110
|
+
updated_at: z97.string()
|
|
21048
21111
|
})
|
|
21049
21112
|
});
|
|
21050
21113
|
function registerClarityGetCurrentProcess(clarity) {
|
|
@@ -21088,19 +21151,19 @@ function registerClarityGetCurrentProcess(clarity) {
|
|
|
21088
21151
|
__name(registerClarityGetCurrentProcess, "registerClarityGetCurrentProcess");
|
|
21089
21152
|
|
|
21090
21153
|
// src/commands/clarity/get-transformation-proposal.ts
|
|
21091
|
-
import { z as
|
|
21092
|
-
var snapshotSchema2 =
|
|
21093
|
-
snapshot:
|
|
21094
|
-
id:
|
|
21095
|
-
kind:
|
|
21096
|
-
source_snapshot_id:
|
|
21097
|
-
parent_id:
|
|
21098
|
-
status:
|
|
21099
|
-
creator_type:
|
|
21100
|
-
user_id:
|
|
21101
|
-
sandbox_id:
|
|
21102
|
-
created_at:
|
|
21103
|
-
updated_at:
|
|
21154
|
+
import { z as z98 } from "zod";
|
|
21155
|
+
var snapshotSchema2 = z98.object({
|
|
21156
|
+
snapshot: z98.object({
|
|
21157
|
+
id: z98.string(),
|
|
21158
|
+
kind: z98.string(),
|
|
21159
|
+
source_snapshot_id: z98.string().nullable(),
|
|
21160
|
+
parent_id: z98.string().nullable(),
|
|
21161
|
+
status: z98.string(),
|
|
21162
|
+
creator_type: z98.string(),
|
|
21163
|
+
user_id: z98.string().nullable(),
|
|
21164
|
+
sandbox_id: z98.string().nullable(),
|
|
21165
|
+
created_at: z98.string(),
|
|
21166
|
+
updated_at: z98.string()
|
|
21104
21167
|
})
|
|
21105
21168
|
});
|
|
21106
21169
|
function registerClarityGetTransformationProposal(clarity) {
|
|
@@ -21196,7 +21259,7 @@ Transformation proposal versions (${tpVersions.length}):`
|
|
|
21196
21259
|
__name(registerClarityGet, "registerClarityGet");
|
|
21197
21260
|
|
|
21198
21261
|
// src/commands/clarity/landscape.ts
|
|
21199
|
-
import { z as
|
|
21262
|
+
import { z as z99 } from "zod";
|
|
21200
21263
|
|
|
21201
21264
|
// src/commands/clarity/org-scope.ts
|
|
21202
21265
|
function getOrgFlag(command) {
|
|
@@ -21241,90 +21304,89 @@ var CAPTURES_RESOURCE_PATH = "/clarity/hierarchy/captures";
|
|
|
21241
21304
|
var PROPOSED_PROCESSES_RESOURCE_PATH = "/clarity/hierarchy/proposed-processes";
|
|
21242
21305
|
var PROCESS_NODE_TYPE = "process";
|
|
21243
21306
|
var AREA_NODE_TYPE = "area";
|
|
21244
|
-
var
|
|
21245
|
-
|
|
21246
|
-
|
|
21247
|
-
name: z98.string()
|
|
21307
|
+
var processSummarySchema = z99.object({
|
|
21308
|
+
id: z99.string(),
|
|
21309
|
+
name: z99.string()
|
|
21248
21310
|
}).passthrough();
|
|
21249
|
-
var landscapeNodeSchema =
|
|
21250
|
-
id:
|
|
21251
|
-
parentId:
|
|
21252
|
-
processId:
|
|
21253
|
-
name:
|
|
21254
|
-
ownerLabel:
|
|
21311
|
+
var landscapeNodeSchema = z99.object({
|
|
21312
|
+
id: z99.string(),
|
|
21313
|
+
parentId: z99.string().nullable(),
|
|
21314
|
+
processId: z99.string().nullable(),
|
|
21315
|
+
name: z99.string(),
|
|
21316
|
+
ownerLabel: z99.string().nullable(),
|
|
21255
21317
|
process: processSummarySchema.nullable()
|
|
21256
21318
|
}).passthrough();
|
|
21257
21319
|
var unlinkedProcessSchema = processSummarySchema.extend({
|
|
21258
|
-
teamId:
|
|
21259
|
-
teamName:
|
|
21320
|
+
teamId: z99.string(),
|
|
21321
|
+
teamName: z99.string().nullable()
|
|
21260
21322
|
}).passthrough();
|
|
21261
|
-
var treeNodeSchema =
|
|
21262
|
-
id:
|
|
21263
|
-
parentId:
|
|
21264
|
-
processId:
|
|
21265
|
-
name:
|
|
21266
|
-
ownerLabel:
|
|
21267
|
-
depth:
|
|
21323
|
+
var treeNodeSchema = z99.object({
|
|
21324
|
+
id: z99.string(),
|
|
21325
|
+
parentId: z99.string().nullable(),
|
|
21326
|
+
processId: z99.string().nullable(),
|
|
21327
|
+
name: z99.string(),
|
|
21328
|
+
ownerLabel: z99.string().nullable(),
|
|
21329
|
+
depth: z99.number()
|
|
21268
21330
|
}).passthrough();
|
|
21269
|
-
var landscapeResponseSchema =
|
|
21270
|
-
nodes:
|
|
21271
|
-
links:
|
|
21272
|
-
|
|
21273
|
-
id:
|
|
21274
|
-
sourceNodeId:
|
|
21275
|
-
targetNodeId:
|
|
21276
|
-
type:
|
|
21277
|
-
state:
|
|
21278
|
-
confidence:
|
|
21331
|
+
var landscapeResponseSchema = z99.object({
|
|
21332
|
+
nodes: z99.array(landscapeNodeSchema),
|
|
21333
|
+
links: z99.array(
|
|
21334
|
+
z99.object({
|
|
21335
|
+
id: z99.string(),
|
|
21336
|
+
sourceNodeId: z99.string(),
|
|
21337
|
+
targetNodeId: z99.string(),
|
|
21338
|
+
type: z99.string(),
|
|
21339
|
+
state: z99.string(),
|
|
21340
|
+
confidence: z99.number().nullable()
|
|
21279
21341
|
}).passthrough()
|
|
21280
21342
|
),
|
|
21281
|
-
unlinkedProcesses:
|
|
21282
|
-
stats:
|
|
21283
|
-
totalNodes:
|
|
21284
|
-
processNodes:
|
|
21285
|
-
proposedNodes:
|
|
21286
|
-
unsortedProcesses:
|
|
21287
|
-
latestUpdatedAt:
|
|
21343
|
+
unlinkedProcesses: z99.array(unlinkedProcessSchema),
|
|
21344
|
+
stats: z99.object({
|
|
21345
|
+
totalNodes: z99.number(),
|
|
21346
|
+
processNodes: z99.number(),
|
|
21347
|
+
proposedNodes: z99.number(),
|
|
21348
|
+
unsortedProcesses: z99.number(),
|
|
21349
|
+
latestUpdatedAt: z99.string().nullable()
|
|
21288
21350
|
}).passthrough(),
|
|
21289
|
-
truncated:
|
|
21351
|
+
truncated: z99.boolean()
|
|
21290
21352
|
}).passthrough();
|
|
21291
|
-
var treeResponseSchema =
|
|
21292
|
-
nodes:
|
|
21293
|
-
truncated:
|
|
21353
|
+
var treeResponseSchema = z99.object({
|
|
21354
|
+
nodes: z99.array(treeNodeSchema),
|
|
21355
|
+
truncated: z99.boolean()
|
|
21294
21356
|
}).passthrough();
|
|
21295
|
-
var nodeResponseSchema =
|
|
21296
|
-
id:
|
|
21297
|
-
parentId:
|
|
21298
|
-
processId:
|
|
21299
|
-
name:
|
|
21300
|
-
ownerLabel:
|
|
21357
|
+
var nodeResponseSchema = z99.object({
|
|
21358
|
+
id: z99.string(),
|
|
21359
|
+
parentId: z99.string().nullable(),
|
|
21360
|
+
processId: z99.string().nullable(),
|
|
21361
|
+
name: z99.string(),
|
|
21362
|
+
ownerLabel: z99.string().nullable()
|
|
21301
21363
|
}).passthrough();
|
|
21302
|
-
var deleteNodeResponseSchema =
|
|
21303
|
-
deletedCount:
|
|
21304
|
-
detachedCount:
|
|
21305
|
-
});
|
|
21306
|
-
var generateLandscapeResponseSchema =
|
|
21307
|
-
started:
|
|
21308
|
-
generationId:
|
|
21309
|
-
eligibleCaptureCount:
|
|
21364
|
+
var deleteNodeResponseSchema = z99.object({
|
|
21365
|
+
deletedCount: z99.number(),
|
|
21366
|
+
detachedCount: z99.number()
|
|
21367
|
+
});
|
|
21368
|
+
var generateLandscapeResponseSchema = z99.object({
|
|
21369
|
+
started: z99.literal(true),
|
|
21370
|
+
generationId: z99.string(),
|
|
21371
|
+
eligibleCaptureCount: z99.number()
|
|
21310
21372
|
}).passthrough();
|
|
21311
|
-
var captureSchema =
|
|
21312
|
-
id:
|
|
21313
|
-
scope:
|
|
21314
|
-
type:
|
|
21315
|
-
title:
|
|
21316
|
-
organizationId:
|
|
21317
|
-
organizationName:
|
|
21318
|
-
teamId:
|
|
21319
|
-
teamName:
|
|
21320
|
-
processNodeId:
|
|
21321
|
-
createdAt:
|
|
21322
|
-
transcriptMessageCount:
|
|
21373
|
+
var captureSchema = z99.object({
|
|
21374
|
+
id: z99.string(),
|
|
21375
|
+
scope: z99.string(),
|
|
21376
|
+
type: z99.string(),
|
|
21377
|
+
title: z99.string(),
|
|
21378
|
+
organizationId: z99.string().nullable(),
|
|
21379
|
+
organizationName: z99.string().nullable(),
|
|
21380
|
+
teamId: z99.string().nullable(),
|
|
21381
|
+
teamName: z99.string().nullable(),
|
|
21382
|
+
processNodeId: z99.string().nullable(),
|
|
21383
|
+
createdAt: z99.string(),
|
|
21384
|
+
transcriptMessageCount: z99.number()
|
|
21323
21385
|
}).passthrough();
|
|
21324
|
-
var captureListResponseSchema =
|
|
21325
|
-
captures:
|
|
21326
|
-
total:
|
|
21327
|
-
truncated:
|
|
21386
|
+
var captureListResponseSchema = z99.object({
|
|
21387
|
+
captures: z99.array(captureSchema),
|
|
21388
|
+
total: z99.number(),
|
|
21389
|
+
truncated: z99.boolean()
|
|
21328
21390
|
}).passthrough();
|
|
21329
21391
|
var LANDSCAPE_COLUMNS = [
|
|
21330
21392
|
{ header: "ID", cell: /* @__PURE__ */ __name((row) => row.id, "cell"), maxWidth: 36 },
|
|
@@ -21446,18 +21508,6 @@ function registerClarityLandscape(clarity) {
|
|
|
21446
21508
|
const node = nodeResponseSchema.parse(raw);
|
|
21447
21509
|
renderNodeMutationResult("Moved node", node, options);
|
|
21448
21510
|
}, "moveNodeAction"));
|
|
21449
|
-
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) {
|
|
21450
|
-
const config = await requireAuthenticatedConfig(this);
|
|
21451
|
-
const raw = await httpRequest({
|
|
21452
|
-
method: "POST",
|
|
21453
|
-
path: nodeConfirmPath(resolveOrgId(this), nodeId),
|
|
21454
|
-
apiKey: config.apiKey,
|
|
21455
|
-
apiBaseUrl: config.apiBaseUrl,
|
|
21456
|
-
body: { axis: parseAxis(options.axis) }
|
|
21457
|
-
});
|
|
21458
|
-
const node = nodeResponseSchema.parse(raw);
|
|
21459
|
-
renderNodeMutationResult("Confirmed node", node, options);
|
|
21460
|
-
}, "confirmNodeAction"));
|
|
21461
21511
|
landscape.command("delete-node <node-id>").description(
|
|
21462
21512
|
"Delete a landscape node and its subtree. The node's linked process and captures are deleted; nested processes move to Unsorted"
|
|
21463
21513
|
).option("--org <org-id>", ORG_FLAG_DESCRIPTION).option("--json", "output JSON").action(/* @__PURE__ */ __name(async function deleteNodeAction(nodeId, options) {
|
|
@@ -21536,10 +21586,6 @@ function nodePlacementPath(orgId, nodeId) {
|
|
|
21536
21586
|
return `${nodePath(orgId, nodeId)}/placement`;
|
|
21537
21587
|
}
|
|
21538
21588
|
__name(nodePlacementPath, "nodePlacementPath");
|
|
21539
|
-
function nodeConfirmPath(orgId, nodeId) {
|
|
21540
|
-
return `${nodePath(orgId, nodeId)}/confirm`;
|
|
21541
|
-
}
|
|
21542
|
-
__name(nodeConfirmPath, "nodeConfirmPath");
|
|
21543
21589
|
function buildRenameNodeBody(options) {
|
|
21544
21590
|
if (options.ownerLabel !== void 0 && options.clearOwnerLabel) {
|
|
21545
21591
|
throw new CliError(
|
|
@@ -21658,14 +21704,6 @@ function buildRootSearchParams(rootId) {
|
|
|
21658
21704
|
return searchParams;
|
|
21659
21705
|
}
|
|
21660
21706
|
__name(buildRootSearchParams, "buildRootSearchParams");
|
|
21661
|
-
function parseAxis(value) {
|
|
21662
|
-
const parsed = axisSchema.safeParse(value);
|
|
21663
|
-
if (!parsed.success) {
|
|
21664
|
-
throw new CliError("Axis must be content or existence.");
|
|
21665
|
-
}
|
|
21666
|
-
return parsed.data;
|
|
21667
|
-
}
|
|
21668
|
-
__name(parseAxis, "parseAxis");
|
|
21669
21707
|
function renderLandscapeNodes(nodes, emptyMessage) {
|
|
21670
21708
|
if (nodes.length === 0) {
|
|
21671
21709
|
console.log(emptyMessage);
|
|
@@ -21894,22 +21932,22 @@ function registerClarityProcessSummaries(clarity) {
|
|
|
21894
21932
|
__name(registerClarityProcessSummaries, "registerClarityProcessSummaries");
|
|
21895
21933
|
|
|
21896
21934
|
// src/commands/clarity/list-snapshots.ts
|
|
21897
|
-
import { z as
|
|
21935
|
+
import { z as z100 } from "zod";
|
|
21898
21936
|
var SNAPSHOT_KINDS = ["current_process", "transformation_proposal"];
|
|
21899
21937
|
var DEFAULT_LIMIT7 = 50;
|
|
21900
21938
|
var MIN_LIMIT7 = 1;
|
|
21901
21939
|
var MAX_LIMIT7 = 100;
|
|
21902
|
-
var snapshotListItemSchema =
|
|
21903
|
-
id:
|
|
21904
|
-
status:
|
|
21905
|
-
creator_type:
|
|
21906
|
-
created_at:
|
|
21907
|
-
parent_id:
|
|
21908
|
-
source_snapshot_id:
|
|
21940
|
+
var snapshotListItemSchema = z100.looseObject({
|
|
21941
|
+
id: z100.string(),
|
|
21942
|
+
status: z100.string(),
|
|
21943
|
+
creator_type: z100.string(),
|
|
21944
|
+
created_at: z100.string(),
|
|
21945
|
+
parent_id: z100.string().nullable().optional(),
|
|
21946
|
+
source_snapshot_id: z100.string().nullable().optional()
|
|
21909
21947
|
});
|
|
21910
|
-
var listSnapshotsResponseSchema =
|
|
21911
|
-
snapshots:
|
|
21912
|
-
total:
|
|
21948
|
+
var listSnapshotsResponseSchema = z100.looseObject({
|
|
21949
|
+
snapshots: z100.array(snapshotListItemSchema),
|
|
21950
|
+
total: z100.number().int().optional()
|
|
21913
21951
|
});
|
|
21914
21952
|
var TABLE_COLUMNS21 = [
|
|
21915
21953
|
{
|
|
@@ -22326,40 +22364,40 @@ function renderLabelSummary(label) {
|
|
|
22326
22364
|
__name(renderLabelSummary, "renderLabelSummary");
|
|
22327
22365
|
|
|
22328
22366
|
// src/commands/clarity/process-links.ts
|
|
22329
|
-
import { z as
|
|
22367
|
+
import { z as z101 } from "zod";
|
|
22330
22368
|
var MIN_LIMIT9 = 1;
|
|
22331
22369
|
var MAX_LIMIT9 = 500;
|
|
22332
22370
|
var DEFAULT_LIMIT9 = 100;
|
|
22333
22371
|
var ORG_FLAG_DESCRIPTION3 = "organization id for the org-scoped process landscape (overrides DUVO_ORG_ID)";
|
|
22334
22372
|
var PROCESS_LINKS_RESOURCE_PATH = "/clarity/hierarchy/process-links";
|
|
22335
|
-
var processLinkTypeSchema =
|
|
22373
|
+
var processLinkTypeSchema = z101.enum([
|
|
22336
22374
|
"hands_off_to",
|
|
22337
22375
|
"shares_step_with",
|
|
22338
22376
|
"variant_of"
|
|
22339
22377
|
]);
|
|
22340
|
-
var processLinkStateSchema =
|
|
22341
|
-
var processLinkSchema =
|
|
22342
|
-
id:
|
|
22343
|
-
source_node_id:
|
|
22344
|
-
target_node_id:
|
|
22378
|
+
var processLinkStateSchema = z101.enum(["suggested", "confirmed"]);
|
|
22379
|
+
var processLinkSchema = z101.object({
|
|
22380
|
+
id: z101.string(),
|
|
22381
|
+
source_node_id: z101.string(),
|
|
22382
|
+
target_node_id: z101.string(),
|
|
22345
22383
|
type: processLinkTypeSchema,
|
|
22346
22384
|
state: processLinkStateSchema,
|
|
22347
|
-
confidence:
|
|
22348
|
-
created_at:
|
|
22349
|
-
updated_at:
|
|
22385
|
+
confidence: z101.number().nullable(),
|
|
22386
|
+
created_at: z101.string(),
|
|
22387
|
+
updated_at: z101.string()
|
|
22350
22388
|
});
|
|
22351
|
-
var listProcessLinksResponseSchema =
|
|
22352
|
-
process_links:
|
|
22353
|
-
total:
|
|
22354
|
-
limit:
|
|
22355
|
-
offset:
|
|
22389
|
+
var listProcessLinksResponseSchema = z101.object({
|
|
22390
|
+
process_links: z101.array(processLinkSchema),
|
|
22391
|
+
total: z101.number(),
|
|
22392
|
+
limit: z101.number(),
|
|
22393
|
+
offset: z101.number()
|
|
22356
22394
|
});
|
|
22357
|
-
var processLinkMutationResponseSchema =
|
|
22395
|
+
var processLinkMutationResponseSchema = z101.object({
|
|
22358
22396
|
process_link: processLinkSchema,
|
|
22359
|
-
created:
|
|
22397
|
+
created: z101.boolean().optional()
|
|
22360
22398
|
});
|
|
22361
|
-
var deleteProcessLinkResponseSchema =
|
|
22362
|
-
deleted:
|
|
22399
|
+
var deleteProcessLinkResponseSchema = z101.object({
|
|
22400
|
+
deleted: z101.boolean()
|
|
22363
22401
|
});
|
|
22364
22402
|
var PROCESS_LINK_COLUMNS = [
|
|
22365
22403
|
{ header: "ID", cell: /* @__PURE__ */ __name((row) => row.id, "cell"), maxWidth: 36 },
|
|
@@ -22552,14 +22590,14 @@ function renderProcessLinks(response) {
|
|
|
22552
22590
|
__name(renderProcessLinks, "renderProcessLinks");
|
|
22553
22591
|
|
|
22554
22592
|
// src/commands/clarity/promote-current-process.ts
|
|
22555
|
-
import { z as
|
|
22556
|
-
var snapshotSchema3 =
|
|
22557
|
-
snapshot:
|
|
22558
|
-
id:
|
|
22559
|
-
status:
|
|
22560
|
-
creator_type:
|
|
22561
|
-
created_at:
|
|
22562
|
-
updated_at:
|
|
22593
|
+
import { z as z102 } from "zod";
|
|
22594
|
+
var snapshotSchema3 = z102.object({
|
|
22595
|
+
snapshot: z102.object({
|
|
22596
|
+
id: z102.string(),
|
|
22597
|
+
status: z102.string(),
|
|
22598
|
+
creator_type: z102.string(),
|
|
22599
|
+
created_at: z102.string(),
|
|
22600
|
+
updated_at: z102.string()
|
|
22563
22601
|
})
|
|
22564
22602
|
});
|
|
22565
22603
|
function registerClarityPromoteCurrentProcess(clarity) {
|
|
@@ -22596,14 +22634,14 @@ function registerClarityPromoteCurrentProcess(clarity) {
|
|
|
22596
22634
|
__name(registerClarityPromoteCurrentProcess, "registerClarityPromoteCurrentProcess");
|
|
22597
22635
|
|
|
22598
22636
|
// src/commands/clarity/promote-transformation-proposal.ts
|
|
22599
|
-
import { z as
|
|
22600
|
-
var snapshotSchema4 =
|
|
22601
|
-
snapshot:
|
|
22602
|
-
id:
|
|
22603
|
-
status:
|
|
22604
|
-
creator_type:
|
|
22605
|
-
created_at:
|
|
22606
|
-
updated_at:
|
|
22637
|
+
import { z as z103 } from "zod";
|
|
22638
|
+
var snapshotSchema4 = z103.object({
|
|
22639
|
+
snapshot: z103.object({
|
|
22640
|
+
id: z103.string(),
|
|
22641
|
+
status: z103.string(),
|
|
22642
|
+
creator_type: z103.string(),
|
|
22643
|
+
created_at: z103.string(),
|
|
22644
|
+
updated_at: z103.string()
|
|
22607
22645
|
})
|
|
22608
22646
|
});
|
|
22609
22647
|
function registerClarityPromoteTransformationProposal(clarity) {
|
|
@@ -22679,8 +22717,8 @@ __name(registerClarityRevertTransformationProposal, "registerClarityRevertTransf
|
|
|
22679
22717
|
|
|
22680
22718
|
// src/commands/clarity/save-snapshot.ts
|
|
22681
22719
|
import { readFile as readFile7 } from "node:fs/promises";
|
|
22682
|
-
import { z as
|
|
22683
|
-
var snapshotFileSchema =
|
|
22720
|
+
import { z as z104 } from "zod";
|
|
22721
|
+
var snapshotFileSchema = z104.union([
|
|
22684
22722
|
saveClarityProcessSnapshotBodySchema.shape.steps,
|
|
22685
22723
|
saveClarityProcessSnapshotBodySchema.pick({
|
|
22686
22724
|
steps: true,
|
|
@@ -23681,16 +23719,16 @@ function registerConnectionsList(connections) {
|
|
|
23681
23719
|
__name(registerConnectionsList, "registerConnectionsList");
|
|
23682
23720
|
|
|
23683
23721
|
// src/commands/connections/probe.ts
|
|
23684
|
-
import { z as
|
|
23685
|
-
var toolSchema =
|
|
23686
|
-
name:
|
|
23687
|
-
description:
|
|
23688
|
-
input_schema:
|
|
23722
|
+
import { z as z105 } from "zod";
|
|
23723
|
+
var toolSchema = z105.object({
|
|
23724
|
+
name: z105.string(),
|
|
23725
|
+
description: z105.string().optional(),
|
|
23726
|
+
input_schema: z105.record(z105.string(), z105.unknown()).optional()
|
|
23689
23727
|
});
|
|
23690
|
-
var probeResponseSchema =
|
|
23691
|
-
success:
|
|
23692
|
-
tools:
|
|
23693
|
-
error:
|
|
23728
|
+
var probeResponseSchema = z105.object({
|
|
23729
|
+
success: z105.boolean(),
|
|
23730
|
+
tools: z105.array(toolSchema).optional(),
|
|
23731
|
+
error: z105.string().optional()
|
|
23694
23732
|
});
|
|
23695
23733
|
var DESCRIPTION_MAX_WIDTH = 80;
|
|
23696
23734
|
var TABLE_COLUMNS23 = [
|
|
@@ -23913,48 +23951,48 @@ function registerConnections(program) {
|
|
|
23913
23951
|
__name(registerConnections, "registerConnections");
|
|
23914
23952
|
|
|
23915
23953
|
// src/api/credential-schemas.ts
|
|
23916
|
-
import { z as
|
|
23917
|
-
var dateLike =
|
|
23918
|
-
var secretSchema =
|
|
23919
|
-
id:
|
|
23920
|
-
team_id:
|
|
23921
|
-
user_id:
|
|
23922
|
-
name:
|
|
23923
|
-
service_slug:
|
|
23924
|
-
env_var_keys:
|
|
23925
|
-
created_by:
|
|
23954
|
+
import { z as z106 } from "zod";
|
|
23955
|
+
var dateLike = z106.string();
|
|
23956
|
+
var secretSchema = z106.object({
|
|
23957
|
+
id: z106.string(),
|
|
23958
|
+
team_id: z106.string(),
|
|
23959
|
+
user_id: z106.string().nullable(),
|
|
23960
|
+
name: z106.string(),
|
|
23961
|
+
service_slug: z106.string().nullable(),
|
|
23962
|
+
env_var_keys: z106.array(z106.string()),
|
|
23963
|
+
created_by: z106.string(),
|
|
23926
23964
|
created_at: dateLike,
|
|
23927
23965
|
updated_at: dateLike
|
|
23928
23966
|
});
|
|
23929
|
-
var secretsListResponseSchema =
|
|
23967
|
+
var secretsListResponseSchema = z106.array(secretSchema);
|
|
23930
23968
|
var secretResponseSchema = secretSchema;
|
|
23931
|
-
var browserLoginSchema =
|
|
23932
|
-
id:
|
|
23933
|
-
user_id:
|
|
23934
|
-
team_id:
|
|
23935
|
-
domain:
|
|
23936
|
-
username:
|
|
23969
|
+
var browserLoginSchema = z106.object({
|
|
23970
|
+
id: z106.string(),
|
|
23971
|
+
user_id: z106.string().nullable(),
|
|
23972
|
+
team_id: z106.string(),
|
|
23973
|
+
domain: z106.string(),
|
|
23974
|
+
username: z106.string().nullable(),
|
|
23937
23975
|
password: encryptedDataSchema.nullable(),
|
|
23938
23976
|
otp_secret: encryptedDataSchema.nullable(),
|
|
23939
23977
|
created_at: dateLike,
|
|
23940
23978
|
updated_at: dateLike
|
|
23941
23979
|
});
|
|
23942
|
-
var browserLoginsListResponseSchema =
|
|
23943
|
-
var revisionLoginSummarySchema =
|
|
23944
|
-
id:
|
|
23945
|
-
user_id:
|
|
23946
|
-
team_id:
|
|
23947
|
-
domain:
|
|
23948
|
-
username:
|
|
23980
|
+
var browserLoginsListResponseSchema = z106.array(credentialPreviewSchema);
|
|
23981
|
+
var revisionLoginSummarySchema = z106.object({
|
|
23982
|
+
id: z106.string(),
|
|
23983
|
+
user_id: z106.string().nullable(),
|
|
23984
|
+
team_id: z106.string().nullable(),
|
|
23985
|
+
domain: z106.string(),
|
|
23986
|
+
username: z106.string().nullable(),
|
|
23949
23987
|
created_at: dateLike,
|
|
23950
23988
|
updated_at: dateLike
|
|
23951
23989
|
});
|
|
23952
|
-
var revisionLoginsListResponseSchema =
|
|
23990
|
+
var revisionLoginsListResponseSchema = z106.array(
|
|
23953
23991
|
revisionLoginSummarySchema
|
|
23954
23992
|
);
|
|
23955
|
-
var revisionSecretsListResponseSchema =
|
|
23956
|
-
var successResponseSchema2 =
|
|
23957
|
-
success:
|
|
23993
|
+
var revisionSecretsListResponseSchema = z106.array(secretSchema);
|
|
23994
|
+
var successResponseSchema2 = z106.object({
|
|
23995
|
+
success: z106.boolean()
|
|
23958
23996
|
});
|
|
23959
23997
|
var attachSuccessResponseSchema = successResponseSchema2;
|
|
23960
23998
|
var deleteSecretResponseSchema = successResponseSchema2;
|
|
@@ -26718,6 +26756,80 @@ function registerPulseMessages(pulse) {
|
|
|
26718
26756
|
}
|
|
26719
26757
|
__name(registerPulseMessages, "registerPulseMessages");
|
|
26720
26758
|
|
|
26759
|
+
// src/commands/pulse/move.ts
|
|
26760
|
+
function registerPulseMove(pulse) {
|
|
26761
|
+
pulse.command("move <id>").description(
|
|
26762
|
+
"Move a Pulse dashboard to another team. Only the latest version moves \u2014 chat, raw events, older versions, and member shares are deleted; you become the owner, visibility resets to private, and the dashboard's API key is rotated. Requires Manager or above on both teams."
|
|
26763
|
+
).requiredOption("--to <team-id>", "destination team ID").option(
|
|
26764
|
+
"--team <id>",
|
|
26765
|
+
"source team ID (defaults to the team scoped to your credentials)"
|
|
26766
|
+
).option(
|
|
26767
|
+
"--dry-run",
|
|
26768
|
+
"preview which connections reconnect vs drop without moving anything"
|
|
26769
|
+
).option("-y, --yes", "skip the confirmation prompt").option("--json", "output raw JSON from the API").action(/* @__PURE__ */ __name(async function moveAction(id, options) {
|
|
26770
|
+
const pulseId = trimRequired(id, "<id>");
|
|
26771
|
+
const targetTeamId = trimRequired(options.to, "--to");
|
|
26772
|
+
const config = await requireAuthenticatedConfig(this);
|
|
26773
|
+
const { apiKey, apiBaseUrl } = config;
|
|
26774
|
+
const sourceTeamId = await resolveRequiredTeamId(config, {
|
|
26775
|
+
override: options.team ?? getTeamFlag(this)
|
|
26776
|
+
});
|
|
26777
|
+
if (!options.dryRun) {
|
|
26778
|
+
await confirmDestructive({
|
|
26779
|
+
message: `Move Pulse dashboard "${pulseId}" to team ${targetTeamId}? Chat, raw events, older versions, and member shares are deleted, visibility resets to private, and the dashboard's API key is rotated \u2014 only the latest version moves.`,
|
|
26780
|
+
skip: options.yes ?? false
|
|
26781
|
+
});
|
|
26782
|
+
}
|
|
26783
|
+
const searchParams = new URLSearchParams();
|
|
26784
|
+
if (options.dryRun) {
|
|
26785
|
+
searchParams.append("dryRun", "true");
|
|
26786
|
+
}
|
|
26787
|
+
const raw = await httpRequest({
|
|
26788
|
+
method: "POST",
|
|
26789
|
+
path: `/v2/teams/${encodeURIComponent(sourceTeamId)}/artifacts/${encodeURIComponent(pulseId)}/move`,
|
|
26790
|
+
apiKey,
|
|
26791
|
+
apiBaseUrl,
|
|
26792
|
+
searchParams,
|
|
26793
|
+
body: { targetTeamId }
|
|
26794
|
+
});
|
|
26795
|
+
if (options.json) {
|
|
26796
|
+
printJson(raw);
|
|
26797
|
+
return;
|
|
26798
|
+
}
|
|
26799
|
+
const parsed = movePulsePlanSchema.safeParse(raw);
|
|
26800
|
+
if (!parsed.success) {
|
|
26801
|
+
throw new CliError(
|
|
26802
|
+
`Unexpected response from the API: ${parsed.error.message}`
|
|
26803
|
+
);
|
|
26804
|
+
}
|
|
26805
|
+
const plan = parsed.data;
|
|
26806
|
+
const reused = plan.connections.reused.length;
|
|
26807
|
+
const dropped = plan.connections.disconnected.length;
|
|
26808
|
+
const toRebuild = plan.connections.customToRebuild.length;
|
|
26809
|
+
console.log(
|
|
26810
|
+
plan.applied ? green("Pulse dashboard moved.") : yellow("Preview only \u2014 nothing was moved.")
|
|
26811
|
+
);
|
|
26812
|
+
console.log();
|
|
26813
|
+
console.log(
|
|
26814
|
+
renderKeyValue([
|
|
26815
|
+
{ label: "ID", value: plan.artifactId },
|
|
26816
|
+
{ label: "Title", value: plan.artifactTitle ?? "" },
|
|
26817
|
+
{ label: "From team", value: plan.sourceTeamId },
|
|
26818
|
+
{ label: "To team", value: plan.targetTeamId },
|
|
26819
|
+
{
|
|
26820
|
+
label: "Connections",
|
|
26821
|
+
value: `${reused} reconnect, ${dropped} dropped, ${toRebuild} need rebuild`
|
|
26822
|
+
}
|
|
26823
|
+
])
|
|
26824
|
+
);
|
|
26825
|
+
console.log();
|
|
26826
|
+
console.log(
|
|
26827
|
+
plan.applied ? "The chat and older versions were deleted \u2014 only the latest version moved." : `Apply it with: duvo pulse move ${plan.artifactId} --to ${plan.targetTeamId}`
|
|
26828
|
+
);
|
|
26829
|
+
}, "moveAction"));
|
|
26830
|
+
}
|
|
26831
|
+
__name(registerPulseMove, "registerPulseMove");
|
|
26832
|
+
|
|
26721
26833
|
// src/commands/pulse/pdf.ts
|
|
26722
26834
|
import { writeFile as writeFile2 } from "node:fs/promises";
|
|
26723
26835
|
|
|
@@ -27132,6 +27244,7 @@ function registerPulse(program) {
|
|
|
27132
27244
|
registerPulseRename(pulse);
|
|
27133
27245
|
registerPulseShare(pulse);
|
|
27134
27246
|
registerPulseDuplicate(pulse);
|
|
27247
|
+
registerPulseMove(pulse);
|
|
27135
27248
|
registerPulseDelete(pulse);
|
|
27136
27249
|
registerPulseVersions(pulse);
|
|
27137
27250
|
registerPulseRestore(pulse);
|
|
@@ -28419,91 +28532,91 @@ function registerRevisionSecrets(program) {
|
|
|
28419
28532
|
__name(registerRevisionSecrets, "registerRevisionSecrets");
|
|
28420
28533
|
|
|
28421
28534
|
// src/api/run-schemas.ts
|
|
28422
|
-
import { z as
|
|
28423
|
-
var publicRunSchema =
|
|
28424
|
-
id:
|
|
28425
|
-
agent_id:
|
|
28426
|
-
build_id:
|
|
28427
|
-
status:
|
|
28428
|
-
source:
|
|
28429
|
-
sandbox_id:
|
|
28430
|
-
started_at:
|
|
28431
|
-
completed_at:
|
|
28432
|
-
created_at:
|
|
28433
|
-
updated_at:
|
|
28434
|
-
human_in_the_loop_enabled:
|
|
28435
|
-
});
|
|
28436
|
-
var startRunResponseSchema =
|
|
28535
|
+
import { z as z107 } from "zod";
|
|
28536
|
+
var publicRunSchema = z107.object({
|
|
28537
|
+
id: z107.string(),
|
|
28538
|
+
agent_id: z107.string(),
|
|
28539
|
+
build_id: z107.string(),
|
|
28540
|
+
status: z107.string(),
|
|
28541
|
+
source: z107.string().nullish(),
|
|
28542
|
+
sandbox_id: z107.string().nullish(),
|
|
28543
|
+
started_at: z107.string().nullish(),
|
|
28544
|
+
completed_at: z107.string().nullish(),
|
|
28545
|
+
created_at: z107.string(),
|
|
28546
|
+
updated_at: z107.string().nullish(),
|
|
28547
|
+
human_in_the_loop_enabled: z107.boolean().nullish()
|
|
28548
|
+
});
|
|
28549
|
+
var startRunResponseSchema = z107.object({
|
|
28437
28550
|
run: publicRunSchema
|
|
28438
28551
|
});
|
|
28439
|
-
var questionOptionSchema =
|
|
28440
|
-
label:
|
|
28441
|
-
description:
|
|
28442
|
-
});
|
|
28443
|
-
var questionSchema =
|
|
28444
|
-
question:
|
|
28445
|
-
header:
|
|
28446
|
-
options:
|
|
28447
|
-
multi_select:
|
|
28448
|
-
});
|
|
28449
|
-
var pendingHumanRequestSchema =
|
|
28450
|
-
id:
|
|
28451
|
-
title:
|
|
28452
|
-
description:
|
|
28453
|
-
created_at:
|
|
28454
|
-
type:
|
|
28455
|
-
questions:
|
|
28456
|
-
});
|
|
28457
|
-
var getRunResponseSchema =
|
|
28552
|
+
var questionOptionSchema = z107.object({
|
|
28553
|
+
label: z107.string(),
|
|
28554
|
+
description: z107.string().nullish()
|
|
28555
|
+
});
|
|
28556
|
+
var questionSchema = z107.object({
|
|
28557
|
+
question: z107.string(),
|
|
28558
|
+
header: z107.string().nullish(),
|
|
28559
|
+
options: z107.array(questionOptionSchema).nullish(),
|
|
28560
|
+
multi_select: z107.boolean().nullish()
|
|
28561
|
+
});
|
|
28562
|
+
var pendingHumanRequestSchema = z107.object({
|
|
28563
|
+
id: z107.string(),
|
|
28564
|
+
title: z107.string(),
|
|
28565
|
+
description: z107.string().nullish(),
|
|
28566
|
+
created_at: z107.string(),
|
|
28567
|
+
type: z107.string(),
|
|
28568
|
+
questions: z107.array(questionSchema).nullish()
|
|
28569
|
+
});
|
|
28570
|
+
var getRunResponseSchema = z107.object({
|
|
28458
28571
|
run: publicRunSchema.nullable(),
|
|
28459
28572
|
pending_human_request: pendingHumanRequestSchema.nullish()
|
|
28460
28573
|
});
|
|
28461
|
-
var stopRunResponseSchema =
|
|
28462
|
-
success:
|
|
28463
|
-
message:
|
|
28464
|
-
});
|
|
28465
|
-
var runMessageSchema =
|
|
28466
|
-
id:
|
|
28467
|
-
type:
|
|
28468
|
-
role:
|
|
28469
|
-
timestamp:
|
|
28470
|
-
text_content:
|
|
28471
|
-
tool_call:
|
|
28472
|
-
id:
|
|
28473
|
-
name:
|
|
28474
|
-
arguments:
|
|
28574
|
+
var stopRunResponseSchema = z107.object({
|
|
28575
|
+
success: z107.boolean(),
|
|
28576
|
+
message: z107.string().nullish()
|
|
28577
|
+
});
|
|
28578
|
+
var runMessageSchema = z107.object({
|
|
28579
|
+
id: z107.string(),
|
|
28580
|
+
type: z107.string(),
|
|
28581
|
+
role: z107.string(),
|
|
28582
|
+
timestamp: z107.string(),
|
|
28583
|
+
text_content: z107.string().nullish(),
|
|
28584
|
+
tool_call: z107.object({
|
|
28585
|
+
id: z107.string(),
|
|
28586
|
+
name: z107.string(),
|
|
28587
|
+
arguments: z107.record(z107.string(), z107.unknown()).nullish()
|
|
28475
28588
|
}).nullish(),
|
|
28476
|
-
tool_result:
|
|
28477
|
-
tool_call_id:
|
|
28478
|
-
result:
|
|
28479
|
-
error:
|
|
28589
|
+
tool_result: z107.object({
|
|
28590
|
+
tool_call_id: z107.string(),
|
|
28591
|
+
result: z107.unknown().nullish(),
|
|
28592
|
+
error: z107.string().nullish()
|
|
28480
28593
|
}).nullish()
|
|
28481
28594
|
});
|
|
28482
|
-
var listRunMessagesResponseSchema =
|
|
28483
|
-
messages:
|
|
28484
|
-
total:
|
|
28485
|
-
limit:
|
|
28486
|
-
offset:
|
|
28595
|
+
var listRunMessagesResponseSchema = z107.object({
|
|
28596
|
+
messages: z107.array(runMessageSchema),
|
|
28597
|
+
total: z107.number().nullish(),
|
|
28598
|
+
limit: z107.number().nullish(),
|
|
28599
|
+
offset: z107.number().nullish()
|
|
28487
28600
|
});
|
|
28488
|
-
var postedMessageSchema =
|
|
28489
|
-
id:
|
|
28490
|
-
type:
|
|
28491
|
-
role:
|
|
28492
|
-
timestamp:
|
|
28493
|
-
text_content:
|
|
28601
|
+
var postedMessageSchema = z107.object({
|
|
28602
|
+
id: z107.string(),
|
|
28603
|
+
type: z107.string(),
|
|
28604
|
+
role: z107.string(),
|
|
28605
|
+
timestamp: z107.string(),
|
|
28606
|
+
text_content: z107.string()
|
|
28494
28607
|
});
|
|
28495
|
-
var postRunMessageResponseSchema =
|
|
28608
|
+
var postRunMessageResponseSchema = z107.object({
|
|
28496
28609
|
message: postedMessageSchema
|
|
28497
28610
|
});
|
|
28498
|
-
var respondHumanRequestResponseSchema =
|
|
28499
|
-
human_request:
|
|
28500
|
-
id:
|
|
28501
|
-
run_id:
|
|
28502
|
-
title:
|
|
28503
|
-
description:
|
|
28504
|
-
response:
|
|
28505
|
-
responded_at:
|
|
28506
|
-
created_at:
|
|
28611
|
+
var respondHumanRequestResponseSchema = z107.object({
|
|
28612
|
+
human_request: z107.object({
|
|
28613
|
+
id: z107.string(),
|
|
28614
|
+
run_id: z107.string(),
|
|
28615
|
+
title: z107.string(),
|
|
28616
|
+
description: z107.string().nullish(),
|
|
28617
|
+
response: z107.string().nullish(),
|
|
28618
|
+
responded_at: z107.string().nullish(),
|
|
28619
|
+
created_at: z107.string()
|
|
28507
28620
|
})
|
|
28508
28621
|
});
|
|
28509
28622
|
|
|
@@ -29198,28 +29311,28 @@ function registerRuns(program) {
|
|
|
29198
29311
|
__name(registerRuns, "registerRuns");
|
|
29199
29312
|
|
|
29200
29313
|
// src/api/sandbox-schemas.ts
|
|
29201
|
-
import { z as
|
|
29202
|
-
var createSandboxResponseSchema =
|
|
29203
|
-
sandbox_id:
|
|
29204
|
-
expires_at:
|
|
29314
|
+
import { z as z108 } from "zod";
|
|
29315
|
+
var createSandboxResponseSchema = z108.object({
|
|
29316
|
+
sandbox_id: z108.string(),
|
|
29317
|
+
expires_at: z108.string()
|
|
29205
29318
|
});
|
|
29206
|
-
var createSandboxUploadUrlResponseSchema =
|
|
29207
|
-
upload_url:
|
|
29208
|
-
path:
|
|
29209
|
-
expires_in_seconds:
|
|
29319
|
+
var createSandboxUploadUrlResponseSchema = z108.object({
|
|
29320
|
+
upload_url: z108.string(),
|
|
29321
|
+
path: z108.string(),
|
|
29322
|
+
expires_in_seconds: z108.number()
|
|
29210
29323
|
});
|
|
29211
|
-
var sandboxFileSchema =
|
|
29212
|
-
name:
|
|
29213
|
-
path:
|
|
29214
|
-
type:
|
|
29215
|
-
size_bytes:
|
|
29324
|
+
var sandboxFileSchema = z108.object({
|
|
29325
|
+
name: z108.string(),
|
|
29326
|
+
path: z108.string(),
|
|
29327
|
+
type: z108.enum(["file", "dir"]),
|
|
29328
|
+
size_bytes: z108.number()
|
|
29216
29329
|
});
|
|
29217
|
-
var listSandboxFilesResponseSchema =
|
|
29218
|
-
files:
|
|
29330
|
+
var listSandboxFilesResponseSchema = z108.object({
|
|
29331
|
+
files: z108.array(sandboxFileSchema)
|
|
29219
29332
|
});
|
|
29220
|
-
var uploadSandboxFileResponseSchema =
|
|
29221
|
-
path:
|
|
29222
|
-
size_bytes:
|
|
29333
|
+
var uploadSandboxFileResponseSchema = z108.object({
|
|
29334
|
+
path: z108.string(),
|
|
29335
|
+
size_bytes: z108.number()
|
|
29223
29336
|
});
|
|
29224
29337
|
var DEFAULT_SANDBOX_FILES_PATH = "/workspace";
|
|
29225
29338
|
|
|
@@ -29830,13 +29943,13 @@ __name(registerSkillsAssignments, "registerSkillsAssignments");
|
|
|
29830
29943
|
|
|
29831
29944
|
// src/commands/skills/create.ts
|
|
29832
29945
|
import { readFileSync as readFileSync5 } from "node:fs";
|
|
29833
|
-
import { z as
|
|
29834
|
-
var createSkillResponseSchema =
|
|
29835
|
-
skill:
|
|
29836
|
-
id:
|
|
29837
|
-
name:
|
|
29838
|
-
description:
|
|
29839
|
-
team_id:
|
|
29946
|
+
import { z as z109 } from "zod";
|
|
29947
|
+
var createSkillResponseSchema = z109.object({
|
|
29948
|
+
skill: z109.object({
|
|
29949
|
+
id: z109.string(),
|
|
29950
|
+
name: z109.string(),
|
|
29951
|
+
description: z109.string(),
|
|
29952
|
+
team_id: z109.string()
|
|
29840
29953
|
})
|
|
29841
29954
|
});
|
|
29842
29955
|
function registerSkillsCreate(skills) {
|
|
@@ -30200,13 +30313,13 @@ function readExistingContent(source) {
|
|
|
30200
30313
|
__name(readExistingContent, "readExistingContent");
|
|
30201
30314
|
|
|
30202
30315
|
// src/commands/skills/install.ts
|
|
30203
|
-
import { z as
|
|
30204
|
-
var installSkillResponseSchema =
|
|
30205
|
-
skill:
|
|
30206
|
-
id:
|
|
30207
|
-
name:
|
|
30208
|
-
description:
|
|
30209
|
-
team_id:
|
|
30316
|
+
import { z as z110 } from "zod";
|
|
30317
|
+
var installSkillResponseSchema = z110.object({
|
|
30318
|
+
skill: z110.object({
|
|
30319
|
+
id: z110.string(),
|
|
30320
|
+
name: z110.string(),
|
|
30321
|
+
description: z110.string(),
|
|
30322
|
+
team_id: z110.string()
|
|
30210
30323
|
})
|
|
30211
30324
|
});
|
|
30212
30325
|
function registerSkillsInstall(skills) {
|
|
@@ -30396,13 +30509,13 @@ __name(registerSkillsSystem, "registerSkillsSystem");
|
|
|
30396
30509
|
// src/commands/skills/upload.ts
|
|
30397
30510
|
import { readFile as readFile9, stat as stat2 } from "node:fs/promises";
|
|
30398
30511
|
import { basename as basename3 } from "node:path";
|
|
30399
|
-
import { z as
|
|
30400
|
-
var uploadSkillResponseSchema =
|
|
30401
|
-
skill:
|
|
30402
|
-
id:
|
|
30403
|
-
name:
|
|
30404
|
-
description:
|
|
30405
|
-
team_id:
|
|
30512
|
+
import { z as z111 } from "zod";
|
|
30513
|
+
var uploadSkillResponseSchema = z111.object({
|
|
30514
|
+
skill: z111.object({
|
|
30515
|
+
id: z111.string(),
|
|
30516
|
+
name: z111.string(),
|
|
30517
|
+
description: z111.string(),
|
|
30518
|
+
team_id: z111.string()
|
|
30406
30519
|
})
|
|
30407
30520
|
});
|
|
30408
30521
|
function registerSkillsUpload(skills) {
|
|
@@ -30775,9 +30888,9 @@ function registerTeamMembers(team) {
|
|
|
30775
30888
|
__name(registerTeamMembers, "registerTeamMembers");
|
|
30776
30889
|
|
|
30777
30890
|
// src/commands/team/use.ts
|
|
30778
|
-
import { z as
|
|
30891
|
+
import { z as z112 } from "zod";
|
|
30779
30892
|
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;
|
|
30780
|
-
var teamIdSchema =
|
|
30893
|
+
var teamIdSchema = z112.string().regex(TEAM_ID_SHAPE);
|
|
30781
30894
|
function registerTeamUse(team) {
|
|
30782
30895
|
team.command("use <team-id>").description(
|
|
30783
30896
|
"Set the default team for the active OAuth profile (overridable per-command via --team or DUVO_TEAM_ID)"
|
|
@@ -30863,14 +30976,14 @@ function registerTeam(program) {
|
|
|
30863
30976
|
__name(registerTeam, "registerTeam");
|
|
30864
30977
|
|
|
30865
30978
|
// src/commands/teams/list.ts
|
|
30866
|
-
import { z as
|
|
30867
|
-
var teamApiSchema2 =
|
|
30868
|
-
id:
|
|
30869
|
-
name:
|
|
30870
|
-
organization_id:
|
|
30979
|
+
import { z as z113 } from "zod";
|
|
30980
|
+
var teamApiSchema2 = z113.object({
|
|
30981
|
+
id: z113.string(),
|
|
30982
|
+
name: z113.string(),
|
|
30983
|
+
organization_id: z113.string().nullable()
|
|
30871
30984
|
});
|
|
30872
|
-
var listMyTeamsResponseSchema3 =
|
|
30873
|
-
teams:
|
|
30985
|
+
var listMyTeamsResponseSchema3 = z113.object({
|
|
30986
|
+
teams: z113.array(teamApiSchema2)
|
|
30874
30987
|
});
|
|
30875
30988
|
function registerTeamsList(teams) {
|
|
30876
30989
|
teams.command("list", { isDefault: true }).description("List every team you can act on").option("--json", "output raw JSON from the API").action(/* @__PURE__ */ __name(async function listAction(options) {
|
|
@@ -30913,21 +31026,21 @@ function registerTeamsList(teams) {
|
|
|
30913
31026
|
__name(registerTeamsList, "registerTeamsList");
|
|
30914
31027
|
|
|
30915
31028
|
// src/commands/teams/org-insights.ts
|
|
30916
|
-
import { z as
|
|
30917
|
-
var headlineSchema =
|
|
30918
|
-
total_runs:
|
|
30919
|
-
completed_runs:
|
|
30920
|
-
failed_runs:
|
|
30921
|
-
success_rate:
|
|
30922
|
-
active_agents:
|
|
30923
|
-
active_users:
|
|
30924
|
-
start_date:
|
|
30925
|
-
end_date:
|
|
30926
|
-
truncated:
|
|
30927
|
-
aggregated_teams:
|
|
30928
|
-
total_teams:
|
|
30929
|
-
});
|
|
30930
|
-
var orgInsightsHeadlineResponseSchema =
|
|
31029
|
+
import { z as z114 } from "zod";
|
|
31030
|
+
var headlineSchema = z114.object({
|
|
31031
|
+
total_runs: z114.number(),
|
|
31032
|
+
completed_runs: z114.number(),
|
|
31033
|
+
failed_runs: z114.number(),
|
|
31034
|
+
success_rate: z114.number().nullable(),
|
|
31035
|
+
active_agents: z114.number(),
|
|
31036
|
+
active_users: z114.number(),
|
|
31037
|
+
start_date: z114.string(),
|
|
31038
|
+
end_date: z114.string(),
|
|
31039
|
+
truncated: z114.boolean(),
|
|
31040
|
+
aggregated_teams: z114.number(),
|
|
31041
|
+
total_teams: z114.number()
|
|
31042
|
+
});
|
|
31043
|
+
var orgInsightsHeadlineResponseSchema = z114.object({
|
|
30931
31044
|
headline: headlineSchema
|
|
30932
31045
|
});
|
|
30933
31046
|
function formatRate(rate) {
|
|
@@ -30995,26 +31108,26 @@ function registerTeamsOrgInsights(teams) {
|
|
|
30995
31108
|
__name(registerTeamsOrgInsights, "registerTeamsOrgInsights");
|
|
30996
31109
|
|
|
30997
31110
|
// src/commands/teams/org-metrics.ts
|
|
30998
|
-
import { z as
|
|
30999
|
-
var teamMetricSchema =
|
|
31000
|
-
team_id:
|
|
31001
|
-
team_name:
|
|
31002
|
-
is_deleted:
|
|
31003
|
-
member_count:
|
|
31004
|
-
assignment_count:
|
|
31005
|
-
scheduled_job_count:
|
|
31006
|
-
total_jobs:
|
|
31007
|
-
completed_jobs:
|
|
31008
|
-
failed_jobs:
|
|
31009
|
-
total_runs:
|
|
31010
|
-
});
|
|
31011
|
-
var orgInsightsMetricsResponseSchema =
|
|
31012
|
-
teams:
|
|
31013
|
-
start_date:
|
|
31014
|
-
end_date:
|
|
31015
|
-
truncated:
|
|
31016
|
-
total_teams:
|
|
31017
|
-
org_member_count:
|
|
31111
|
+
import { z as z115 } from "zod";
|
|
31112
|
+
var teamMetricSchema = z115.object({
|
|
31113
|
+
team_id: z115.string(),
|
|
31114
|
+
team_name: z115.string(),
|
|
31115
|
+
is_deleted: z115.boolean(),
|
|
31116
|
+
member_count: z115.number(),
|
|
31117
|
+
assignment_count: z115.number(),
|
|
31118
|
+
scheduled_job_count: z115.number(),
|
|
31119
|
+
total_jobs: z115.number(),
|
|
31120
|
+
completed_jobs: z115.number(),
|
|
31121
|
+
failed_jobs: z115.number(),
|
|
31122
|
+
total_runs: z115.number()
|
|
31123
|
+
});
|
|
31124
|
+
var orgInsightsMetricsResponseSchema = z115.object({
|
|
31125
|
+
teams: z115.array(teamMetricSchema),
|
|
31126
|
+
start_date: z115.string(),
|
|
31127
|
+
end_date: z115.string(),
|
|
31128
|
+
truncated: z115.boolean(),
|
|
31129
|
+
total_teams: z115.number(),
|
|
31130
|
+
org_member_count: z115.number()
|
|
31018
31131
|
});
|
|
31019
31132
|
function registerTeamsOrgMetrics(teams) {
|
|
31020
31133
|
teams.command("org-metrics <org-id>").description("Show per-team run metrics across an organization").option("--start-date <date>", "window start (ISO 8601, default 7d ago)").option("--end-date <date>", "window end (ISO 8601, default now)").option("--json", "output raw JSON from the API").action(/* @__PURE__ */ __name(async function orgMetricsAction(orgId, options) {
|
|
@@ -31077,20 +31190,20 @@ ${total_teams} teams${suffix} \xB7 ${org_member_count} org members`
|
|
|
31077
31190
|
__name(registerTeamsOrgMetrics, "registerTeamsOrgMetrics");
|
|
31078
31191
|
|
|
31079
31192
|
// src/commands/teams/org-usage.ts
|
|
31080
|
-
import { z as
|
|
31193
|
+
import { z as z116 } from "zod";
|
|
31081
31194
|
var GRANULARITIES = ["day", "week", "month"];
|
|
31082
31195
|
var DEFAULT_LOOKBACK_MS = 30 * 24 * 60 * 60 * 1e3;
|
|
31083
|
-
var bucketSchema =
|
|
31084
|
-
period:
|
|
31085
|
-
total_runs:
|
|
31086
|
-
scheduled_runs:
|
|
31087
|
-
on_demand_runs:
|
|
31088
|
-
});
|
|
31089
|
-
var usageChartResponseSchema =
|
|
31090
|
-
buckets:
|
|
31091
|
-
granularity:
|
|
31092
|
-
truncated:
|
|
31093
|
-
total_teams:
|
|
31196
|
+
var bucketSchema = z116.object({
|
|
31197
|
+
period: z116.string(),
|
|
31198
|
+
total_runs: z116.number(),
|
|
31199
|
+
scheduled_runs: z116.number(),
|
|
31200
|
+
on_demand_runs: z116.number()
|
|
31201
|
+
});
|
|
31202
|
+
var usageChartResponseSchema = z116.object({
|
|
31203
|
+
buckets: z116.array(bucketSchema),
|
|
31204
|
+
granularity: z116.enum(GRANULARITIES),
|
|
31205
|
+
truncated: z116.boolean(),
|
|
31206
|
+
total_teams: z116.number()
|
|
31094
31207
|
});
|
|
31095
31208
|
function registerTeamsOrgUsage(teams) {
|
|
31096
31209
|
teams.command("org-usage <org-id>").description("Show org-wide run volume over time (scheduled vs on-demand)").option("--start-date <date>", "window start (ISO 8601, default 30d ago)").option("--end-date <date>", "window end (ISO 8601, default now)").option(
|
|
@@ -31149,17 +31262,17 @@ function registerTeamsOrgUsage(teams) {
|
|
|
31149
31262
|
__name(registerTeamsOrgUsage, "registerTeamsOrgUsage");
|
|
31150
31263
|
|
|
31151
31264
|
// src/commands/teams/org.ts
|
|
31152
|
-
import { z as
|
|
31153
|
-
var orgTeamSchema =
|
|
31154
|
-
id:
|
|
31155
|
-
name:
|
|
31156
|
-
userIsMember:
|
|
31157
|
-
userRole:
|
|
31158
|
-
memberCount:
|
|
31159
|
-
});
|
|
31160
|
-
var listOrgTeamsResponseSchema =
|
|
31161
|
-
teams:
|
|
31162
|
-
total:
|
|
31265
|
+
import { z as z117 } from "zod";
|
|
31266
|
+
var orgTeamSchema = z117.object({
|
|
31267
|
+
id: z117.string(),
|
|
31268
|
+
name: z117.string(),
|
|
31269
|
+
userIsMember: z117.boolean(),
|
|
31270
|
+
userRole: z117.string().nullable(),
|
|
31271
|
+
memberCount: z117.number()
|
|
31272
|
+
});
|
|
31273
|
+
var listOrgTeamsResponseSchema = z117.object({
|
|
31274
|
+
teams: z117.array(orgTeamSchema),
|
|
31275
|
+
total: z117.number()
|
|
31163
31276
|
});
|
|
31164
31277
|
function registerTeamsOrg(teams) {
|
|
31165
31278
|
teams.command("org <org-id>").description("List all teams in an organization you belong to").option("--json", "output raw JSON from the API").action(/* @__PURE__ */ __name(async function orgAction(orgId, options) {
|
|
@@ -31264,7 +31377,7 @@ __name(resolveActiveTeamId, "resolveActiveTeamId");
|
|
|
31264
31377
|
var version = resolveVersion();
|
|
31265
31378
|
function resolveVersion() {
|
|
31266
31379
|
if (true) {
|
|
31267
|
-
return "1.
|
|
31380
|
+
return "1.26.0";
|
|
31268
31381
|
}
|
|
31269
31382
|
const packageJsonPath = join3(
|
|
31270
31383
|
dirname3(fileURLToPath2(import.meta.url)),
|
|
@@ -31458,7 +31571,7 @@ function isNewerVersion(candidate, current) {
|
|
|
31458
31571
|
__name(isNewerVersion, "isNewerVersion");
|
|
31459
31572
|
function loadPackageMeta() {
|
|
31460
31573
|
if (true) {
|
|
31461
|
-
return { name: "@duvoai/cli", version: "1.
|
|
31574
|
+
return { name: "@duvoai/cli", version: "1.26.0" };
|
|
31462
31575
|
}
|
|
31463
31576
|
const require2 = createRequire(import.meta.url);
|
|
31464
31577
|
const raw = require2("../package.json");
|