@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 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-4-6[1m]"
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-4-6[1m]";
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).optional(),
3364
- captureSuggestions: z15.array(clarityLandscapeCaptureSuggestionSchema).optional(),
3365
- captureRequests: z15.array(clarityLandscapeCaptureRequestSchema).optional(),
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 DataResidencySchema = z51.enum(["us", "eu", "apac"]);
9067
- var DataHandlingSchema = z51.enum(["standard", "zdr"]);
9068
- var browserPageSchema = z52.object({
9069
- id: z52.string().describe("Page ID"),
9070
- url: z52.url().describe("Page URL"),
9071
- faviconUrl: z52.string().describe("Page favicon URL"),
9072
- title: z52.string().describe("Page title"),
9073
- debuggerUrl: z52.url().describe("Page-specific debugger URL"),
9074
- debuggerFullscreenUrl: z52.url().describe("Page-specific full-screen debugger URL")
9075
- });
9076
- var browserSessionInfoSchema = z52.object({
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: z52.url().nullable(),
9079
- liveUrl: z52.url().nullable(),
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: z52.array(browserPageSchema)
9082
- });
9083
- var browserbaseDebugResponseSchema = z52.object({
9084
- debuggerFullscreenUrl: z52.url().describe("Session full-screen debugger URL"),
9085
- debuggerUrl: z52.url().describe("Session debugger URL"),
9086
- pages: z52.array(browserPageSchema).describe("List of pages in the session"),
9087
- wsUrl: z52.url().describe("WebSocket URL for the session")
9088
- });
9089
- var browserbaseSessionCreateResponseSchema = z52.object({
9090
- id: z52.string().describe("Session ID"),
9091
- createdAt: z52.iso.datetime().describe("Session creation timestamp"),
9092
- updatedAt: z52.iso.datetime().describe("Session last update timestamp"),
9093
- projectId: z52.string().describe("Project ID"),
9094
- startedAt: z52.iso.datetime().describe("Session start timestamp"),
9095
- endedAt: z52.iso.datetime().optional().describe("Session end timestamp"),
9096
- expiresAt: z52.iso.datetime().describe("Session expiration timestamp"),
9097
- status: z52.string().describe("Session status"),
9098
- proxyBytes: z52.number().describe("Proxy bytes used"),
9099
- avgCpuUsage: z52.number().describe("Average CPU usage"),
9100
- memoryUsage: z52.number().describe("Memory usage"),
9101
- keepAlive: z52.boolean().describe("Keep alive flag"),
9102
- contextId: z52.string().describe("Context ID"),
9103
- region: z52.string().describe("Region"),
9104
- userMetadata: z52.record(z52.string(), z52.unknown()).describe("User metadata"),
9105
- connectUrl: z52.string().describe("Connect URL"),
9106
- seleniumRemoteUrl: z52.string().describe("Selenium remote URL"),
9107
- signingKey: z52.string().describe("Signing key")
9108
- });
9109
- var getBuildParamsSchema = z53.object({
9110
- buildId: z53.guid()
9111
- });
9112
- var listBuildsParamsSchema = z53.object({
9113
- copilotId: z53.guid()
9114
- });
9115
- var updateBuildBodySchema = z53.object({
9116
- config: z53.record(z53.string(), z53.any()).optional().describe("Build configuration object"),
9117
- handoverTargetIds: z53.array(z53.guid()).optional().describe("Agent IDs that this agent can hand over work to"),
9118
- revision_name: z53.string().trim().min(1).max(80).nullable().optional().describe(
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: z53.string().trim().max(500).nullable().optional().describe(
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 = z53.object({
9126
- copilot_id: z53.guid().describe("Agent ID"),
9127
- name: z53.string().describe("Build name"),
9128
- config: z53.record(z53.string(), z53.any()).optional().describe("Build configuration object"),
9129
- handoverTargetIds: z53.array(z53.guid()).optional().describe("Agent IDs that this agent can hand over work to"),
9130
- source_build_id: z53.guid().optional().describe("Build ID to copy integrations and queue links from")
9131
- });
9132
- var buildResponseSchema = z53.object({
9133
- build_id: z53.string().describe("Build ID"),
9134
- name: z53.string().describe("Build name"),
9135
- config: z53.record(z53.string(), z53.any()).nullable().describe("Build configuration"),
9136
- copilot_id: z53.string().describe("Associated copilot ID"),
9137
- status: z53.string().describe("Build status"),
9138
- created_at: z53.coerce.date().describe("Creation timestamp"),
9139
- updated_at: z53.coerce.date().nullable().describe("Last update timestamp"),
9140
- revision_number: z53.number().nullable().describe("Revision number"),
9141
- revision_name: z53.string().nullable().optional().describe("User-defined name for this revision"),
9142
- revision_description: z53.string().nullable().optional().describe("User-defined description for this revision"),
9143
- parent_build_id: z53.string().nullable().describe("Parent build ID"),
9144
- created_by: z53.string().nullable().describe("User who created this build"),
9145
- created_by_name: z53.string().nullable().optional().describe("Display name of the user who created this build")
9146
- });
9147
- var listBuildsResponseSchema = z53.array(buildResponseSchema);
9148
- var buildResponseApiSchema = z53.object({
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 = z53.object({
9152
- builds: z53.array(buildApiSchema),
9153
- total: z53.int(),
9154
- limit: z53.int(),
9155
- offset: z53.int()
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 = z53.object({
9203
+ var createBuildResponseApiSchema = z54.object({
9158
9204
  build: buildApiSchema,
9159
- agent: z53.object({
9160
- id: z53.guid()
9205
+ agent: z54.object({
9206
+ id: z54.guid()
9161
9207
  })
9162
9208
  });
9163
- var builderRunGenerateResponseSchema = z53.object({
9164
- status: z53.literal("generating"),
9165
- builderRunId: z53.string(),
9166
- buildId: z53.string()
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 = z53.object({
9178
- id: z53.string(),
9179
- status: z53.enum(BUILDER_RUN_STATUSES),
9180
- build_id: z53.string(),
9181
- started_at: z53.string().nullable(),
9182
- completed_at: z53.string().nullable(),
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: z53.boolean().optional()
9186
- });
9187
- var filterValueSchema = z54.object({
9188
- value: z54.string().min(1),
9189
- name: z54.string().min(1)
9190
- });
9191
- var filterCategorySchema = z54.object({
9192
- key: z54.string(),
9193
- name: z54.string().min(1),
9194
- selectionMode: z54.enum(["single", "multi"]),
9195
- values: z54.array(filterValueSchema)
9196
- });
9197
- var caseFiltersResponseSchema = z54.object({
9198
- filters: z54.array(filterCategorySchema)
9199
- });
9200
- var caseQueueFolderResponseSchema = z55.object({
9201
- id: z55.string(),
9202
- name: z55.string(),
9203
- team_id: z55.string(),
9204
- parent_folder_id: z55.string().nullable(),
9205
- created_at: z55.string(),
9206
- updated_at: z55.string()
9207
- });
9208
- var caseQueueFoldersListResponseSchema = z55.object({
9209
- folders: z55.array(caseQueueFolderResponseSchema)
9210
- });
9211
- var createCaseQueueFolderRequestSchema = z55.object({
9212
- name: z55.string().min(1).max(100),
9213
- parent_folder_id: z55.guid().nullable().optional()
9214
- });
9215
- var updateCaseQueueFolderRequestSchema = z55.object({
9216
- name: z55.string().min(1).max(100).optional(),
9217
- parent_folder_id: z55.guid().nullable().optional()
9218
- });
9219
- var moveQueuesToFolderRequestSchema = z55.object({
9220
- queue_ids: z55.array(z55.guid()).min(1),
9221
- folder_id: z55.guid().nullable()
9222
- });
9223
- var caseQueueLabelSchema = z56.object({
9224
- id: z56.guid(),
9225
- key: z56.string(),
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: z56.string().min(1),
9228
- color_hue: z56.int().min(0).max(360)
9273
+ value: z57.string().min(1),
9274
+ color_hue: z57.int().min(0).max(360)
9229
9275
  });
9230
- var caseLabelsListResponseSchema = z56.object({
9231
- labels: z56.array(caseQueueLabelSchema)
9276
+ var caseLabelsListResponseSchema = z57.object({
9277
+ labels: z57.array(caseQueueLabelSchema)
9232
9278
  });
9233
- var caseLabelAssignInputSchema = z56.object({
9234
- labels: z56.array(
9235
- z56.object({
9236
- key: z56.string().optional().default(""),
9237
- value: z56.string().min(1)
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 = z56.object({
9242
- labels: z56.array(caseQueueLabelSchema)
9287
+ var caseLabelAssignResponseSchema = z57.object({
9288
+ labels: z57.array(caseQueueLabelSchema)
9243
9289
  });
9244
- var caseLabelUpdateInputSchema = z56.object({
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: z56.string().optional(),
9250
- value: z56.string().min(1),
9251
- color_hue: z56.int().min(0).max(360).optional()
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 = z56.object({
9299
+ var caseLabelUpdateResponseSchema = z57.object({
9254
9300
  label: caseQueueLabelSchema
9255
9301
  });
9256
- var caseLabelUnlinkInputSchema = z56.object({
9257
- label_ids: z56.array(z56.guid()).min(1)
9302
+ var caseLabelUnlinkInputSchema = z57.object({
9303
+ label_ids: z57.array(z57.guid()).min(1)
9258
9304
  });
9259
- var caseLabelUnlinkResponseSchema = z56.object({
9260
- success: z56.boolean()
9305
+ var caseLabelUnlinkResponseSchema = z57.object({
9306
+ success: z57.boolean()
9261
9307
  });
9262
- var caseLabelCreateInputSchema = z56.object({
9263
- key: z56.string().optional().default(""),
9264
- value: z56.string().min(1),
9265
- color_hue: z56.int().min(0).max(360).optional()
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 = z56.object({
9313
+ var caseLabelCreateResponseSchema = z57.object({
9268
9314
  label: caseQueueLabelSchema.extend({
9269
- case_count: z56.int().min(0)
9315
+ case_count: z57.int().min(0)
9270
9316
  })
9271
9317
  });
9272
9318
  var caseQueueLabelWithCountSchema = caseQueueLabelSchema.extend({
9273
- case_count: z56.int().min(0)
9319
+ case_count: z57.int().min(0)
9274
9320
  });
9275
- var caseLabelsWithCountsListResponseSchema = z56.object({
9276
- labels: z56.array(caseQueueLabelWithCountSchema)
9321
+ var caseLabelsWithCountsListResponseSchema = z57.object({
9322
+ labels: z57.array(caseQueueLabelWithCountSchema)
9277
9323
  });
9278
9324
  var SEQUENTIAL_TRIGGER_CONCURRENCY = 1;
9279
- var settableTriggerConcurrencySchema = z57.literal(SEQUENTIAL_TRIGGER_CONCURRENCY).nullable();
9280
- var caseTriggerApiSchema = z57.object({
9281
- id: z57.string(),
9282
- agent_id: z57.string(),
9283
- case_queue_id: z57.string(),
9284
- case_queue_name: z57.string(),
9285
- user_id: z57.string(),
9286
- enabled: z57.boolean(),
9287
- concurrency: z57.int().positive().nullable(),
9288
- created_at: z57.string(),
9289
- updated_at: z57.string(),
9290
- creator_display_name: z57.string().nullable(),
9291
- can_disable: z57.boolean(),
9292
- has_conflict: z57.boolean(),
9293
- conflicting_agents: z57.array(conflictingAgentSchema)
9294
- });
9295
- var caseTriggerResponseSchema = z57.object({
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 = z57.object({
9299
- case_triggers: z57.array(caseTriggerApiSchema)
9344
+ var caseTriggersListResponseSchema = z58.object({
9345
+ case_triggers: z58.array(caseTriggerApiSchema)
9300
9346
  });
9301
- var deleteCaseTriggerResponseSchema = z57.object({
9302
- success: z57.literal(true)
9347
+ var deleteCaseTriggerResponseSchema = z58.object({
9348
+ success: z58.literal(true)
9303
9349
  });
9304
- var caseTriggerConflictPreviewResponseSchema = z57.object({
9305
- has_conflict: z57.boolean(),
9306
- conflicting_agents: z57.array(conflictingAgentSchema)
9350
+ var caseTriggerConflictPreviewResponseSchema = z58.object({
9351
+ has_conflict: z58.boolean(),
9352
+ conflicting_agents: z58.array(conflictingAgentSchema)
9307
9353
  });
9308
- var integrationConfigMinSchema = z57.object({
9309
- id: z57.string(),
9310
- integration_id: z57.guid().nullable(),
9311
- integration_type: z57.string()
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 = z57.object({
9314
- integrations: z57.array(integrationConfigMinSchema)
9359
+ var integrationConfigsResponseSchema = z58.object({
9360
+ integrations: z58.array(integrationConfigMinSchema)
9315
9361
  });
9316
- var caseQueueMinSchema = z57.object({
9317
- id: z57.string(),
9318
- name: z57.string()
9362
+ var caseQueueMinSchema = z58.object({
9363
+ id: z58.string(),
9364
+ name: z58.string()
9319
9365
  });
9320
- var caseQueuesForSlotResponseSchema = z57.object({
9321
- queues: z57.array(caseQueueMinSchema)
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 = z58.enum([
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 = z58.object({
9335
- id: z58.string().uuid(),
9336
- assignee_user_id: z58.string().uuid(),
9337
- assignee_name: z58.string().nullable(),
9338
- assignee_email: z58.string().nullable(),
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: z58.string(),
9390
+ prompt: z59.string(),
9345
9391
  decision: approvalDecisionSchema.nullable(),
9346
- responded_at: z58.string().nullable(),
9347
- responded_by_user_id: z58.string().uuid().nullable(),
9348
- responded_by_name: z58.string().nullable(),
9349
- responded_by_email: z58.string().nullable(),
9350
- cancelled_at: z58.string().nullable(),
9351
- cancellation_reason: z58.string().nullable()
9352
- });
9353
- var approvalBatchSchema = z58.object({
9354
- id: z58.string().uuid(),
9355
- case_queue_item_id: z58.string().uuid(),
9356
- agent_run_id: z58.string().uuid(),
9357
- title: z58.string(),
9358
- created_at: z58.string(),
9359
- resolved_at: z58.string().nullable(),
9360
- cancelled_at: z58.string().nullable(),
9361
- cancellation_reason: z58.string().nullable(),
9362
- rows: z58.array(humanRequestBatchRowSchema)
9363
- });
9364
- var approvalRequestInputSchema = z58.object({
9365
- approverUserId: z58.string().uuid(),
9366
- prompt: z58.string().trim().min(1).max(HUMAN_REQUEST_PROMPT_MAX)
9367
- });
9368
- var createHumanRequestBatchBodySchema = z58.object({
9369
- agentRunId: z58.string().uuid(),
9370
- title: z58.string().trim().min(1).max(HUMAN_REQUEST_TITLE_MAX),
9371
- requests: z58.array(approvalRequestInputSchema).min(1).max(MAX_APPROVERS_PER_BATCH)
9372
- });
9373
- var createHumanRequestBatchResponseSchema = z58.object({
9374
- batchId: z58.string().uuid(),
9375
- createdAt: z58.string(),
9376
- humanRequestIds: z58.array(z58.string().uuid())
9377
- });
9378
- var requestCaseApprovalsToolInputSchema = z58.object({
9379
- title: z58.string().trim().min(1).max(HUMAN_REQUEST_TITLE_MAX),
9380
- requests: z58.array(approvalRequestInputSchema).min(1).max(MAX_APPROVERS_PER_BATCH)
9381
- });
9382
- var requestCaseApprovalsBatchStatusSchema = z58.enum([
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 = z58.object({
9387
- assigneeUserId: z58.string().uuid(),
9432
+ var requestCaseApprovalsDecisionEntrySchema = z59.object({
9433
+ assigneeUserId: z59.string().uuid(),
9388
9434
  decision: approvalDecisionSchema,
9389
- respondedAt: z58.string(),
9390
- respondedByUserId: z58.string().uuid()
9435
+ respondedAt: z59.string(),
9436
+ respondedByUserId: z59.string().uuid()
9391
9437
  });
9392
- var requestCaseApprovalsToolOutputSchema = z58.object({
9438
+ var requestCaseApprovalsToolOutputSchema = z59.object({
9393
9439
  status: requestCaseApprovalsBatchStatusSchema,
9394
- decisions: z58.array(requestCaseApprovalsDecisionEntrySchema)
9395
- });
9396
- var humanRequestContextSchema = z58.discriminatedUnion("kind", [
9397
- z58.object({
9398
- kind: z58.literal("run"),
9399
- runId: z58.string().uuid(),
9400
- buildId: z58.string().uuid(),
9401
- agentId: z58.string().uuid(),
9402
- agentName: z58.string().nullable()
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
- z58.object({
9405
- kind: z58.literal("case"),
9406
- queueId: z58.string().uuid(),
9407
- caseId: z58.string().uuid(),
9408
- caseTitle: z58.string()
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 = z59.object({
9412
- id: z59.guid(),
9413
- queue_id: z59.guid(),
9414
- title: z59.string(),
9415
- data: z59.string(),
9416
- status: z59.enum(["pending", "completed", "failed"]),
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: z59.enum([
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: z59.string().nullable(),
9431
- claimed_by_run_id: z59.string().nullable(),
9432
- completed_at: z59.string().nullable(),
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: z59.string().nullable(),
9435
- created_at: z59.string(),
9436
- updated_at: z59.string(),
9437
- created_by_user_id: z59.guid().nullable(),
9438
- created_by_user_name: z59.string().nullable(),
9439
- created_by_user_email: z59.string().nullable(),
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: z59.string().nullable(),
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: z59.guid().nullable(),
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: z59.guid().nullable(),
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: z59.guid().nullable(),
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: z59.array(z59.guid()),
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: z59.int().nonnegative(),
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: z59.int().nonnegative(),
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: z59.object({
9464
- before: z59.string(),
9465
- match: z59.string(),
9466
- after: z59.string()
9509
+ search_match_data_snippet: z60.object({
9510
+ before: z60.string(),
9511
+ match: z60.string(),
9512
+ after: z60.string()
9467
9513
  }).optional(),
9468
- labels: z59.array(caseQueueLabelSchema)
9469
- });
9470
- var caseQueueItemEventSchema = z59.object({
9471
- id: z59.guid(),
9472
- case_queue_item_id: z59.guid(),
9473
- agent_run_id: z59.guid().nullable(),
9474
- human_request_id: z59.guid().nullable(),
9475
- type: z59.string(),
9476
- reason: z59.string().nullable(),
9477
- created_at: z59.string(),
9478
- agent_id: z59.guid().nullable(),
9479
- agent_name: z59.string().nullable(),
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: z59.guid().nullable(),
9487
- user_name: z59.string().nullable(),
9488
- user_email: z59.string().nullable(),
9489
- human_request_title: z59.string().nullable()
9490
- });
9491
- var casesListResponseSchema = z59.object({
9492
- cases: z59.array(caseQueueItemSchema),
9493
- total: z59.number(),
9494
- limit: z59.int(),
9495
- offset: z59.int()
9496
- });
9497
- var caseCreateInputSchema = z59.object({
9498
- title: z59.string().min(1).max(500).describe(
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: z59.string().optional().describe(
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: z59.array(
9505
- z59.object({
9506
- key: z59.string().optional().default("").describe("Label key (omit for a simple tag)."),
9507
- value: z59.string().min(1).describe("Label value (required).")
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 = z59.object({
9559
+ var caseCreateRequestSchema = z60.object({
9514
9560
  case: caseCreateInputSchema.optional(),
9515
- cases: z59.array(caseCreateInputSchema).min(1).max(100).optional()
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 = z59.object({
9534
- added_cases: z59.array(caseQueueItemSchema)
9579
+ var caseCreateResponseSchema = z60.object({
9580
+ added_cases: z60.array(caseQueueItemSchema)
9535
9581
  });
9536
- var casesStatsSchema = z59.object({
9537
- total: z59.number(),
9582
+ var casesStatsSchema = z60.object({
9583
+ total: z60.number(),
9538
9584
  /** Pending, unowned, not postponed — idle and claimable */
9539
- pending: z59.number(),
9585
+ pending: z60.number(),
9540
9586
  /** "In Progress": pending cases owned by a run with no open HITL token */
9541
- claimed: z59.number(),
9587
+ claimed: z60.number(),
9542
9588
  /** "Needs Input": pending cases whose owning run has an open HITL token */
9543
- waiting: z59.number(),
9589
+ waiting: z60.number(),
9544
9590
  /** Pending, unowned cases postponed for later */
9545
- postponed: z59.number(),
9546
- completed: z59.number(),
9547
- failed: z59.number()
9591
+ postponed: z60.number(),
9592
+ completed: z60.number(),
9593
+ failed: z60.number()
9548
9594
  });
9549
- var casesStatsResponseSchema = z59.object({
9595
+ var casesStatsResponseSchema = z60.object({
9550
9596
  stats: casesStatsSchema
9551
9597
  });
9552
- var caseDetailResponseSchema = z59.object({
9598
+ var caseDetailResponseSchema = z60.object({
9553
9599
  case: caseQueueItemSchema,
9554
- events: z59.array(caseQueueItemEventSchema),
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: z59.array(approvalBatchSchema)
9608
+ approvalBatches: z60.array(approvalBatchSchema)
9563
9609
  });
9564
- var caseJobSummarySchema = z59.object({
9565
- id: z59.string().uuid(),
9566
- case_queue_item_id: z59.string().uuid(),
9567
- agent_id: z59.string().uuid(),
9568
- agent_name: z59.string(),
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: z59.string().nullable(),
9571
- created_at: z59.string(),
9572
- started_at: z59.string().nullable(),
9573
- completed_at: z59.string().nullable(),
9574
- claimed_at: z59.string(),
9575
- has_pending_human_request: z59.boolean(),
9576
- pending_human_request_title: z59.string().nullable(),
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: z59.guid().nullable(),
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: z59.string().nullable(),
9590
- user_email: z59.string().nullable()
9635
+ user_name: z60.string().nullable(),
9636
+ user_email: z60.string().nullable()
9591
9637
  });
9592
- var caseJobsResponseSchema = z59.object({
9593
- runs: z59.array(caseJobSummarySchema)
9638
+ var caseJobsResponseSchema = z60.object({
9639
+ runs: z60.array(caseJobSummarySchema)
9594
9640
  });
9595
- var caseJobRecentMessagesResponseSchema = z59.object({
9596
- messages: z59.array(agentMessageWithCreatedAtSchema)
9641
+ var caseJobRecentMessagesResponseSchema = z60.object({
9642
+ messages: z60.array(agentMessageWithCreatedAtSchema)
9597
9643
  });
9598
- var adjacentCasesResponseSchema = z59.object({
9599
- previousId: z59.guid().nullable(),
9600
- nextId: z59.guid().nullable(),
9601
- position: z59.number(),
9602
- total: z59.number()
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 = z59.object({
9605
- success: z59.boolean(),
9606
- interruptedRunIds: z59.array(z59.guid())
9650
+ var caseDeleteResponseSchema = z60.object({
9651
+ success: z60.boolean(),
9652
+ interruptedRunIds: z60.array(z60.guid())
9607
9653
  });
9608
- var caseBulkDeleteResponseSchema = z59.object({
9609
- deletedCount: z59.number(),
9610
- interruptedRunIds: z59.array(z59.guid())
9654
+ var caseBulkDeleteResponseSchema = z60.object({
9655
+ deletedCount: z60.number(),
9656
+ interruptedRunIds: z60.array(z60.guid())
9611
9657
  });
9612
- var caseBulkReprocessResponseSchema = z59.object({
9613
- reprocessedCount: z59.number(),
9614
- skippedCount: z59.number(),
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: z59.number().meta({
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: z59.number().meta({
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 = z59.object({
9630
- updatedCount: z59.number(),
9631
- skippedCount: z59.number(),
9632
- interruptedRunIds: z59.array(z59.guid())
9633
- });
9634
- var deleteQueueResponseSchema = z59.object({
9635
- success: z59.boolean(),
9636
- deleted_case_count: z59.number(),
9637
- interrupted_run_ids: z59.array(z59.guid())
9638
- });
9639
- var caseClearQueueResponseSchema = z59.object({
9640
- success: z59.boolean(),
9641
- deletedCount: z59.number(),
9642
- interruptedRunIds: z59.array(z59.guid())
9643
- });
9644
- var caseQueueSchema = z59.object({
9645
- id: z59.guid(),
9646
- name: z59.string(),
9647
- description: z59.string().nullable(),
9648
- folder_id: z59.guid().nullable(),
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: z59.guid().nullable().optional(),
9652
- created_at: z59.string(),
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: z59.boolean()
9705
+ has_approvals: z60.boolean()
9660
9706
  });
9661
- var caseQueuesResponseSchema = z59.object({
9662
- queues: z59.array(caseQueueSchema),
9663
- total: z59.number(),
9664
- limit: z59.number(),
9665
- offset: z59.number()
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 = z59.object({
9713
+ var caseGetQueueResponseSchema = z60.object({
9668
9714
  queue: caseQueueSchema
9669
9715
  });
9670
- var caseCreateQueueResponseSchema = z59.object({
9716
+ var caseCreateQueueResponseSchema = z60.object({
9671
9717
  queue: caseQueueSchema
9672
9718
  });
9673
- var caseUpdateQueueResponseSchema = z59.object({
9719
+ var caseUpdateQueueResponseSchema = z60.object({
9674
9720
  queue: caseQueueSchema
9675
9721
  });
9676
- var caseQueueAgentProblemSchema = z59.enum([
9722
+ var caseQueueAgentProblemSchema = z60.enum([
9677
9723
  "multiple_triggers",
9678
9724
  "producer_consumer_mix"
9679
9725
  ]);
9680
- var queueAgentProducerSchema = z59.object({
9681
- agent_id: z59.guid(),
9682
- agent_name: z59.string(),
9683
- case_trigger_enabled: z59.boolean(),
9684
- case_trigger_queue_name: z59.string().nullable(),
9685
- problems: z59.array(caseQueueAgentProblemSchema)
9686
- });
9687
- var queueAgentConsumerSchema = z59.object({
9688
- agent_id: z59.guid(),
9689
- agent_name: z59.string(),
9690
- case_trigger_enabled: z59.boolean(),
9691
- is_handover_target: z59.boolean(),
9692
- problems: z59.array(caseQueueAgentProblemSchema),
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: z59.int().nonnegative().optional(),
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: z59.boolean().optional()
9705
- });
9706
- var queueAgentsResponseSchema = z59.object({
9707
- queue_name: z59.string(),
9708
- producers: z59.array(queueAgentProducerSchema),
9709
- consumers: z59.array(queueAgentConsumerSchema)
9710
- });
9711
- var exportCasesResponseSchema = z59.object({
9712
- version: z59.number(),
9713
- queue_name: z59.string(),
9714
- exported_at: z59.string(),
9715
- cases: z59.array(
9716
- z59.object({
9717
- title: z59.string(),
9718
- data: z59.string().optional()
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 = z59.object({
9723
- imported_count: z59.number()
9768
+ var importCasesResponseSchema = z60.object({
9769
+ imported_count: z60.number()
9724
9770
  });
9725
- var batchQueueStatsResponseSchema = z59.object({
9726
- stats: z59.record(z59.guid(), casesStatsSchema)
9771
+ var batchQueueStatsResponseSchema = z60.object({
9772
+ stats: z60.record(z60.guid(), casesStatsSchema)
9727
9773
  });
9728
- var batchQueueAgentsResponseSchema = z59.object({
9729
- agents: z59.record(
9730
- z59.guid(),
9731
- z59.object({
9732
- producers: z59.array(queueAgentProducerSchema),
9733
- consumers: z59.array(queueAgentConsumerSchema)
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 = z60.object({
9738
- frontendUrl: z60.url()
9783
+ var createTeamInviteLinkRequestSchema = z61.object({
9784
+ frontendUrl: z61.url()
9739
9785
  });
9740
- var getTeamInviteLinkQuerySchema = z60.object({
9741
- frontendUrl: z60.url()
9786
+ var getTeamInviteLinkQuerySchema = z61.object({
9787
+ frontendUrl: z61.url()
9742
9788
  });
9743
- var teamInviteLinkCreatorSchema = z60.object({
9744
- id: z60.guid(),
9745
- name: z60.string().nullable(),
9746
- email: z60.email()
9789
+ var teamInviteLinkCreatorSchema = z61.object({
9790
+ id: z61.guid(),
9791
+ name: z61.string().nullable(),
9792
+ email: z61.email()
9747
9793
  });
9748
- var teamInviteLinkSchema = z60.object({
9749
- id: z60.guid(),
9750
- url: z60.url().optional(),
9751
- createdAt: z60.string(),
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 = z60.object({
9755
- hasLink: z60.boolean(),
9800
+ var getTeamInviteLinkResponseSchema = z61.object({
9801
+ hasLink: z61.boolean(),
9756
9802
  link: teamInviteLinkSchema.optional()
9757
9803
  });
9758
- var joinLinkInfoResponseSchema = z60.object({
9759
- valid: z60.boolean(),
9760
- teamName: z60.string().optional(),
9761
- teamId: z60.guid().optional(),
9762
- reason: z60.enum(["invalid", "expired"]).optional()
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 = z60.object({
9765
- success: z60.boolean(),
9766
- teamId: z60.guid()
9810
+ var acceptJoinLinkResponseSchema = z61.object({
9811
+ success: z61.boolean(),
9812
+ teamId: z61.guid()
9767
9813
  });
9768
- var createClarityProcessInviteLinkRequestSchema = z61.object({
9769
- frontendUrl: z61.url()
9814
+ var createClarityProcessInviteLinkRequestSchema = z62.object({
9815
+ frontendUrl: z62.url()
9770
9816
  });
9771
9817
  var clarityProcessInviteLinkSchema = teamInviteLinkSchema;
9772
- var getClarityProcessInviteLinkResponseSchema = z61.object({
9773
- hasLink: z61.boolean(),
9818
+ var getClarityProcessInviteLinkResponseSchema = z62.object({
9819
+ hasLink: z62.boolean(),
9774
9820
  link: clarityProcessInviteLinkSchema.optional()
9775
9821
  });
9776
- var clarityJoinLinkInfoResponseSchema = z61.object({
9777
- valid: z61.boolean(),
9778
- processName: z61.string().optional(),
9779
- processId: z61.guid().optional(),
9780
- teamId: z61.guid().optional(),
9781
- reason: z61.enum(["invalid", "expired"]).optional()
9782
- });
9783
- var acceptClarityJoinLinkResponseSchema = z61.object({
9784
- success: z61.boolean(),
9785
- processId: z61.guid()
9786
- });
9787
- var credentialPreviewSchema = z62.object({
9788
- id: z62.guid().describe("Credential ID"),
9789
- domain: z62.string().describe("Domain for the credential"),
9790
- username: z62.string().nullable().describe("Username (if any)"),
9791
- hasEnabledTOTP: z62.boolean().describe("Whether TOTP is enabled"),
9792
- hasPassword: z62.boolean().describe("Whether a password is stored"),
9793
- user_id: z62.string().nullable().describe("Owner user id; null when shared with the team")
9794
- });
9795
- var otpResponseSchema = z62.object({
9796
- code: z62.string().describe("The TOTP code"),
9797
- expiresAt: z62.number().describe("Expiration timestamp in milliseconds")
9798
- });
9799
- var encryptedDataSchema = z62.object({
9800
- encrypted_data: z62.string().describe("Base64-encoded encrypted data"),
9801
- key_version: z62.string().describe("KMS key version or 'base64' for dev")
9802
- });
9803
- var credentialDetailSchema = z62.object({
9804
- domain: z62.string().describe("Domain for the credential"),
9805
- username: z62.string().nullable().describe("Username (if any)"),
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 = z63.object({
10043
- id: z63.string(),
10044
- name: z63.string(),
10045
- path: z63.string(),
10046
- created_at: z63.string().optional(),
10047
- updated_at: z63.string().optional(),
10048
- metadata: z63.object({
10049
- mimetype: z63.string().optional(),
10050
- size: z63.number().optional()
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 = z63.object({
10054
- files: z63.array(teamFileItemSchema)
10055
- });
10056
- var createTeamFileUploadUrlBodySchema = z63.object({
10057
- fileName: z63.string().min(1),
10058
- contentType: z63.string().min(1)
10059
- });
10060
- var createTeamFileUploadUrlResponseSchema = z63.object({
10061
- signedUrl: z63.url(),
10062
- expiresAt: z63.iso.datetime(),
10063
- filePath: z63.string()
10064
- });
10065
- var renameTeamFileBodySchema = z63.object({
10066
- relativePath: z63.string().min(1),
10067
- newFilenameOnly: z63.string().min(1)
10068
- });
10069
- var teamFileSuccessResponseSchema = z63.object({
10070
- success: z63.boolean()
10071
- });
10072
- var teamFileDownloadUrlResponseSchema = z63.object({
10073
- url: z63.url(),
10074
- expiresAt: z63.iso.datetime()
10075
- });
10076
- var teamFileContentResponseSchema = z63.object({
10077
- content: z63.string(),
10078
- path: z63.string(),
10079
- contentType: z63.string().optional()
10080
- });
10081
- var updateTeamFileContentBodySchema = z63.object({
10082
- content: z63.string()
10083
- });
10084
- var globalAdminApiSchema = z64.object({
10085
- id: z64.guid(),
10086
- email: z64.string(),
10087
- userId: z64.guid(),
10088
- userName: z64.string().nullable(),
10089
- addedByUserId: z64.guid().nullable(),
10090
- createdAt: z64.string()
10091
- });
10092
- var globalAdminListResponseSchema = z64.object({
10093
- admins: z64.array(globalAdminApiSchema)
10094
- });
10095
- var globalAdminSearchResponseSchema = z64.object({
10096
- users: z64.array(
10097
- z64.object({
10098
- id: z64.guid(),
10099
- name: z64.string().nullable(),
10100
- email: z64.string(),
10101
- createdAt: z64.string().nullable()
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 = z64.object({
10106
- userId: z64.guid()
10156
+ var globalAdminCreateRequestSchema = z65.object({
10157
+ userId: z65.guid()
10107
10158
  });
10108
- var globalAdminCreateResponseSchema = z64.object({
10159
+ var globalAdminCreateResponseSchema = z65.object({
10109
10160
  admin: globalAdminApiSchema
10110
10161
  });
10111
- var globalAdminDeleteResponseSchema = z64.object({
10112
- success: z64.literal(true)
10162
+ var globalAdminDeleteResponseSchema = z65.object({
10163
+ success: z65.literal(true)
10113
10164
  });
10114
- var adminAccessCheckResponseSchema = z64.object({
10115
- isGlobalAdmin: z64.boolean()
10165
+ var adminAccessCheckResponseSchema = z65.object({
10166
+ isGlobalAdmin: z65.boolean()
10116
10167
  });
10117
10168
  var JOB_LIST_SORT_COLUMNS = ["created_at"];
10118
- var jobListSortColumnSchema = z65.enum(JOB_LIST_SORT_COLUMNS);
10119
- var jobListIssueSeveritySchema = z65.enum(
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 = z65.object({
10123
- id: z65.guid(),
10124
- created_at: z65.coerce.date(),
10125
- updated_at: z65.coerce.date(),
10126
- started_at: z65.coerce.date().nullable(),
10127
- completed_at: z65.coerce.date().nullable(),
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: z65.string().nullable(),
10130
- title: z65.string(),
10131
- run_number: z65.number(),
10180
+ source: z66.string().nullable(),
10181
+ title: z66.string(),
10182
+ run_number: z66.number(),
10132
10183
  // Agent info
10133
- agent_id: z65.guid(),
10134
- agent_name: z65.string(),
10135
- build_id: z65.guid(),
10184
+ agent_id: z66.guid(),
10185
+ agent_name: z66.string(),
10186
+ build_id: z66.guid(),
10136
10187
  // User info
10137
- user_id: z65.guid().nullable(),
10188
+ user_id: z66.guid().nullable(),
10138
10189
  // Case info
10139
- case_queue_item_id: z65.guid().nullable(),
10140
- case_queue_id: z65.guid().nullable(),
10141
- case_queue_name: z65.string().nullable(),
10142
- case_title: z65.string().nullable(),
10143
- postponed_to: z65.coerce.date().nullable(),
10144
- submitted_prompt_count: z65.number().int().min(0),
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 = z65.object({
10148
- data: z65.array(jobListItemSchema),
10149
- total: z65.number()
10198
+ var jobListResponseSchema = z66.object({
10199
+ data: z66.array(jobListItemSchema),
10200
+ total: z66.number()
10150
10201
  });
10151
- var jobFilterOptionsSchema = z65.object({
10152
- agents: z65.array(
10153
- z65.object({
10154
- id: z65.string(),
10155
- name: z65.string(),
10156
- folder_id: z65.string().nullable()
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: z65.array(
10160
- z65.object({
10161
- id: z65.string(),
10162
- name: z65.string(),
10163
- parent_folder_id: z65.string().nullable()
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: z65.array(
10167
- z65.object({
10168
- id: z65.string(),
10169
- name: z65.string().nullable(),
10170
- email: z65.string()
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: z65.array(z65.object({ id: z65.string(), name: z65.string() }))
10174
- });
10175
- var mcpStepSchema = z66.object({
10176
- tool: z66.string().describe("MCP tool name (e.g., click, fill, navigate_page)"),
10177
- params: z66.record(z66.string(), z66.unknown()).describe("Tool-specific parameters"),
10178
- fallbackSelectors: z66.array(z66.string()).optional().describe("Alternative CSS selectors if primary fails"),
10179
- description: z66.string().optional().describe("Human-readable step description"),
10180
- screenshot: z66.string().optional().describe("Base64 screenshot at this step for visual context"),
10181
- snapshot: z66.string().optional().describe("DOM snapshot in accessibility tree format at this step"),
10182
- framePath: z66.array(z66.number()).optional().describe(
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 = z66.object({
10187
- name: z66.string(),
10188
- startUrl: z66.string(),
10189
- viewport: z66.object({
10190
- width: z66.number(),
10191
- height: z66.number()
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: z66.array(mcpStepSchema)
10244
+ steps: z67.array(mcpStepSchema)
10194
10245
  });
10195
- var MCP_WORKFLOW_JSON_SCHEMA = z66.toJSONSchema(mcpWorkflowSchema, {
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 = z67.object({
10255
+ var organizationBrowserConfigDataSchema = z68.object({
10205
10256
  browserProvider: BrowserProviderTypeSchema.nullable(),
10206
10257
  dataResidency: DataResidencySchema.nullable(),
10207
10258
  dataHandling: DataHandlingSchema.nullable(),
10208
- enforced: z67.boolean()
10259
+ enforced: z68.boolean(),
10260
+ egressMode: browserEgressModeSchema.nullable().optional()
10209
10261
  });
10210
- var organizationBrowserConfigSchema = z67.object({
10211
- version: z67.literal(ORG_BROWSER_CONFIG_VERSION),
10262
+ var organizationBrowserConfigSchema = z68.object({
10263
+ version: z68.literal(ORG_BROWSER_CONFIG_VERSION),
10212
10264
  data: organizationBrowserConfigDataSchema
10213
10265
  });
10214
- var organizationBrowserSettingsSchema = z67.object({
10215
- organizationId: z67.guid(),
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: z67.boolean(),
10220
- createdAt: z67.string(),
10221
- updatedAt: z67.string()
10271
+ enforced: z68.boolean(),
10272
+ egressMode: browserEgressModeSchema.nullable().optional(),
10273
+ createdAt: z68.string(),
10274
+ updatedAt: z68.string()
10222
10275
  });
10223
- var getOrganizationBrowserSettingsResponseSchema = z67.object({
10276
+ var getOrganizationBrowserSettingsResponseSchema = z68.object({
10224
10277
  settings: organizationBrowserSettingsSchema.nullable()
10225
10278
  });
10226
- var updateOrganizationBrowserSettingsRequestSchema = z67.object({
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: z67.boolean().optional()
10283
+ enforced: z68.boolean().optional(),
10284
+ egressMode: browserEgressModeSchema.nullable().optional()
10231
10285
  });
10232
- var updateOrganizationBrowserSettingsResponseSchema = z67.object({
10286
+ var updateOrganizationBrowserSettingsResponseSchema = z68.object({
10233
10287
  settings: organizationBrowserSettingsSchema
10234
10288
  });
10235
- var catalogPluginSchema = z68.object({
10236
- name: z68.string().describe("Identifier to pass in the build's plugins array."),
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: z68.string()
10294
+ description: z69.string()
10241
10295
  });
10242
- var pluginCatalogResponseSchema = z68.object({
10243
- plugins: z68.array(catalogPluginSchema)
10296
+ var pluginCatalogResponseSchema = z69.object({
10297
+ plugins: z69.array(catalogPluginSchema)
10244
10298
  });
10245
- var limitValueSchema = z69.union([
10246
- z69.number().int().nonnegative(),
10247
- z69.literal("unlimited")
10299
+ var limitValueSchema = z70.union([
10300
+ z70.number().int().nonnegative(),
10301
+ z70.literal("unlimited")
10248
10302
  ]);
10249
- var runCountingModeSchema = z69.enum(["monthly", "lifetime"]);
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: z69.ZodIssueCode.custom,
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 = z69.discriminatedUnion("type", [
10273
- z69.object({
10274
- type: z69.literal("organization"),
10275
- organizationId: z69.guid()
10326
+ var productAccessOwnerSchema = z70.discriminatedUnion("type", [
10327
+ z70.object({
10328
+ type: z70.literal("organization"),
10329
+ organizationId: z70.guid()
10276
10330
  }),
10277
- z69.object({
10278
- type: z69.literal("team"),
10279
- teamId: z69.guid(),
10280
- organizationId: z69.guid().nullable()
10331
+ z70.object({
10332
+ type: z70.literal("team"),
10333
+ teamId: z70.guid(),
10334
+ organizationId: z70.guid().nullable()
10281
10335
  })
10282
10336
  ]);
10283
- var productAccessGrantSetSchema = z69.object({
10284
- products: z69.array(
10285
- z69.object({
10286
- productKey: z69.enum(PRODUCT_KEYS),
10287
- enabled: z69.boolean()
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: z69.array(
10291
- z69.object({
10292
- capabilityKey: z69.enum(PRODUCT_ACCESS_CAPABILITY_KEYS),
10293
- enabled: z69.boolean()
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: z69.array(
10297
- z69.object({
10298
- productKey: z69.enum(PRODUCT_KEYS),
10299
- limitKey: z69.enum(ENTITLEMENT_LIMIT_KEYS),
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 = z69.object({
10325
- products: z69.array(
10326
- z69.object({
10327
- productKey: z69.enum(PRODUCT_KEYS),
10328
- enabled: z69.boolean()
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: z69.array(
10332
- z69.object({
10385
+ capabilities: z70.array(
10386
+ z70.object({
10333
10387
  capabilityKey: extensibleEnum(PRODUCT_ACCESS_CAPABILITY_KEYS),
10334
- productKey: z69.enum(PRODUCT_KEYS),
10335
- enabled: z69.boolean()
10388
+ productKey: z70.enum(PRODUCT_KEYS),
10389
+ enabled: z70.boolean()
10336
10390
  })
10337
10391
  ),
10338
- limits: z69.array(
10339
- z69.object({
10340
- limitKey: z69.enum(ENTITLEMENT_LIMIT_KEYS),
10341
- productKey: z69.enum(PRODUCT_KEYS),
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: z69.literal("per_team")
10398
+ label: z70.literal("per_team")
10345
10399
  })
10346
10400
  )
10347
10401
  });
10348
- var billingPlanSchema = z69.object({
10349
- planVersionId: z69.string(),
10350
- planName: z69.string(),
10351
- basePlan: z69.enum(["free", "pro", "enterprise"])
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 = z69.discriminatedUnion("type", [
10354
- z69.object({
10355
- type: z69.literal("organization"),
10356
- organizationId: z69.guid()
10407
+ var inheritedFromSchema = z70.discriminatedUnion("type", [
10408
+ z70.object({
10409
+ type: z70.literal("organization"),
10410
+ organizationId: z70.guid()
10357
10411
  }),
10358
- z69.object({
10359
- type: z69.literal("team_subscription"),
10360
- planVersionId: z69.string()
10412
+ z70.object({
10413
+ type: z70.literal("team_subscription"),
10414
+ planVersionId: z70.string()
10361
10415
  })
10362
10416
  ]);
10363
- var productAccessReadResponseSchema = z69.object({
10417
+ var productAccessReadResponseSchema = z70.object({
10364
10418
  owner: productAccessOwnerSchema,
10365
- source: z69.enum(PLAN_ENTITLEMENTS_SOURCE_VALUES),
10366
- accessRevision: z69.string().min(1),
10419
+ source: z70.enum(PLAN_ENTITLEMENTS_SOURCE_VALUES),
10420
+ accessRevision: z70.string().min(1),
10367
10421
  displayPreset: displayPresetSchema,
10368
- hasExplicitTeamAccess: z69.boolean(),
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: z69.ZodIssueCode.custom,
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: z69.ZodIssueCode.custom,
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: z69.ZodIssueCode.custom,
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: z69.ZodIssueCode.custom,
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: z69.ZodIssueCode.custom,
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: z69.ZodIssueCode.custom,
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 = z69.object({
10471
+ var productAccessImpactRequestSchema = z70.object({
10418
10472
  proposedGrants: productAccessGrantSetSchema
10419
10473
  });
10420
- var productAccessWriteRequestSchema = z69.object({
10474
+ var productAccessWriteRequestSchema = z70.object({
10421
10475
  proposedGrants: productAccessGrantSetSchema,
10422
- accessRevision: z69.string().min(1),
10423
- impactFingerprint: z69.string().min(1).optional()
10424
- });
10425
- var productAccessTeamResetRequestSchema = z69.object({
10426
- accessRevision: z69.string().min(1),
10427
- impactFingerprint: z69.string().min(1).optional()
10428
- });
10429
- var productAccessChangeSummarySchema = z69.object({
10430
- addedProducts: z69.array(z69.enum(PRODUCT_KEYS)),
10431
- removedProducts: z69.array(z69.enum(PRODUCT_KEYS)),
10432
- addedCapabilities: z69.array(extensibleEnum(PRODUCT_ACCESS_CAPABILITY_KEYS)),
10433
- removedCapabilities: z69.array(extensibleEnum(PRODUCT_ACCESS_CAPABILITY_KEYS)),
10434
- limitChanges: z69.array(
10435
- z69.object({
10436
- limitKey: z69.enum(ENTITLEMENT_LIMIT_KEYS),
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 = z69.object({
10498
+ var productAccessImpactResponseSchema = z70.object({
10445
10499
  owner: productAccessOwnerSchema,
10446
- impactFingerprint: z69.string().min(1),
10447
- affectedTeamCount: z69.number().int().nonnegative(),
10448
- affectedTeamsTruncated: z69.boolean(),
10500
+ impactFingerprint: z70.string().min(1),
10501
+ affectedTeamCount: z70.number().int().nonnegative(),
10502
+ affectedTeamsTruncated: z70.boolean(),
10449
10503
  changes: productAccessChangeSummarySchema,
10450
- sideEffects: z69.object({
10451
- automationWillPause: z69.boolean(),
10452
- clarityWillHide: z69.boolean()
10504
+ sideEffects: z70.object({
10505
+ automationWillPause: z70.boolean(),
10506
+ clarityWillHide: z70.boolean()
10453
10507
  }),
10454
- affectedTeamsPreview: z69.array(
10455
- z69.object({
10456
- teamId: z69.guid(),
10457
- teamName: z69.string(),
10458
- source: z69.enum(PLAN_ENTITLEMENTS_SOURCE_VALUES),
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 = z70.object({
10464
- id: z70.guid(),
10465
- name: z70.string().nullable(),
10466
- email: z70.email(),
10467
- teamId: z70.guid().nullable()
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 = z70.object({
10523
+ var publicProfileResponseSchema = z71.object({
10470
10524
  profile: publicProfileSchema
10471
10525
  });
10472
- var elementSelectorsSchema = z71.object({
10473
- css: z71.string().optional(),
10474
- cssPath: z71.string().optional(),
10475
- xpath: z71.string().optional(),
10476
- testId: z71.string().optional(),
10477
- ariaSelector: z71.string().optional(),
10478
- text: z71.string().optional()
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 = z71.object({
10481
- uid: z71.string().optional(),
10534
+ var elementInfoSchema = z72.object({
10535
+ uid: z72.string().optional(),
10482
10536
  selectors: elementSelectorsSchema,
10483
- tagName: z71.string(),
10484
- textContent: z71.string().optional(),
10485
- ariaLabel: z71.string().optional(),
10486
- computedRole: z71.string().optional(),
10487
- attributes: z71.record(z71.string(), z71.string()).optional(),
10488
- framePath: z71.array(z71.number()).optional(),
10489
- frameUrl: z71.string().optional()
10490
- });
10491
- var recordedEventSchema = z71.looseObject({
10492
- id: z71.string(),
10493
- type: z71.string(),
10494
- timestamp: z71.number(),
10495
- url: z71.string(),
10496
- tabId: z71.number().optional(),
10497
- frameId: z71.number().optional(),
10498
- framePath: z71.array(z71.number()).optional(),
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 = z71.object({
10512
- role: z71.string().optional(),
10513
- name: z71.string().optional(),
10514
- automationId: z71.string().optional(),
10515
- className: z71.string().optional(),
10516
- bounds: z71.object({
10517
- x: z71.number(),
10518
- y: z71.number(),
10519
- width: z71.number(),
10520
- height: z71.number()
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 = z71.object({
10524
- selector: z71.string().optional(),
10525
- confidence: z71.enum(COMPUTER_USE_TARGET_CONFIDENCES),
10526
- source: z71.enum(COMPUTER_USE_TARGET_SOURCES),
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 = z71.object({
10583
+ var computerUseEventBaseSchema = z72.object({
10530
10584
  /** Client-generated id; correlates an async element resolution back. */
10531
- id: z71.string().optional(),
10532
- timestamp: z71.number(),
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: z71.number().int().nonnegative().optional(),
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: z71.literal("click"),
10593
+ type: z72.literal("click"),
10540
10594
  /** Cursor position in native desktop pixels. */
10541
- x: z71.number(),
10542
- y: z71.number(),
10543
- button: z71.enum(["left", "right", "middle"]).optional(),
10544
- double: z71.boolean().optional()
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: z71.literal("scroll"),
10548
- x: z71.number(),
10549
- y: z71.number(),
10550
- deltaX: z71.number(),
10551
- deltaY: z71.number()
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: z71.literal("type"),
10608
+ type: z72.literal("type"),
10555
10609
  /** Number of characters typed (redacted; no literal text). */
10556
- textLength: z71.number().int().nonnegative(),
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: z71.string().optional()
10615
+ text: z72.string().optional()
10562
10616
  });
10563
10617
  var computerUseKeyEventSchema = computerUseEventBaseSchema.extend({
10564
- type: z71.literal("key"),
10565
- key: z71.string()
10618
+ type: z72.literal("key"),
10619
+ key: z72.string()
10566
10620
  });
10567
- var computerUseRecordedEventSchema = z71.discriminatedUnion("type", [
10621
+ var computerUseRecordedEventSchema = z72.discriminatedUnion("type", [
10568
10622
  computerUseClickEventSchema,
10569
10623
  computerUseScrollEventSchema,
10570
10624
  computerUseTypeEventSchema,
10571
10625
  computerUseKeyEventSchema
10572
10626
  ]);
10573
- var computerUseScreenshotSchema = z71.object({
10574
- seq: z71.number().int().nonnegative(),
10627
+ var computerUseScreenshotSchema = z72.object({
10628
+ seq: z72.number().int().nonnegative(),
10575
10629
  /** Base64-encoded JPEG (no data: URL prefix). */
10576
- base64: z71.string()
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 = z72.object({
10649
+ var RedactedMcpServerConfigSchema = z73.object({
10596
10650
  type: TransportTypeSchema,
10597
10651
  integrationSlug: IntegrationSlugSchema,
10598
- instanceId: z72.string().nullable()
10652
+ instanceId: z73.string().nullable()
10599
10653
  });
10600
- var ThreadContextMessageSchema = z72.object({
10601
- role: z72.enum(["user", "assistant"]),
10602
- content: z72.string()
10654
+ var ThreadContextMessageSchema = z73.object({
10655
+ role: z73.enum(["user", "assistant"]),
10656
+ content: z73.string()
10603
10657
  });
10604
- var ChatFileReferenceSchema = z72.object({
10605
- id: z72.string(),
10606
- name: z72.string(),
10607
- mimetype: z72.string(),
10608
- size: z72.number(),
10609
- platform: z72.enum(["slack", "teams"]),
10610
- workspaceId: z72.string(),
10611
- channelId: z72.string()
10612
- });
10613
- var ResolvedSubAgentSchema = z72.object({
10614
- agentId: z72.string().uuid(),
10615
- buildId: z72.string().uuid(),
10616
- name: z72.string().min(1).max(64).regex(/^[a-z0-9-]+$/).describe(
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: z72.string().describe(
10673
+ description: z73.string().describe(
10620
10674
  "Routing description Claude uses to decide when to delegate to this subagent"
10621
10675
  ),
10622
- prompt: z72.string().describe("System prompt (AOP) for this subagent"),
10623
- model: z72.string().optional().describe("Optional Claude model identifier override for this subagent"),
10624
- mcpServers: z72.record(z72.string(), RedactedMcpServerConfigSchema).default({}).describe(
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: z72.string(),
10630
- mcpServers: z72.record(z72.string(), RedactedMcpServerConfigSchema),
10631
- subAgents: z72.array(ResolvedSubAgentSchema).optional().default([]),
10632
- conversationHistory: z72.array(ThreadContextMessageSchema).optional(),
10633
- chatFiles: z72.array(ChatFileReferenceSchema).optional(),
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: z72.string().optional(),
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: z72.string().optional(),
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: z72.boolean().optional()
10705
+ resumedAfterStop: z73.boolean().optional()
10652
10706
  });
10653
- var StoredRunConfigV0Schema = z72.object({
10654
- version: z72.literal("v0")
10707
+ var StoredRunConfigV0Schema = z73.object({
10708
+ version: z73.literal("v0")
10655
10709
  });
10656
- var StoredRunConfigV1Schema = z72.object({
10657
- version: z72.literal("v1"),
10710
+ var StoredRunConfigV1Schema = z73.object({
10711
+ version: z73.literal("v1"),
10658
10712
  data: RunConfigSchema
10659
10713
  });
10660
- var StoredRunConfigSchema = z72.union([
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 = z73.object({
10680
- id: z73.string(),
10681
- name: z73.string(),
10682
- description: z73.string(),
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: z73.string().nullable()
10685
- });
10686
- var listSkillsResponseSchema = z73.object({
10687
- skills: z73.array(skillApiSchema)
10738
+ team_id: z74.string().nullable()
10688
10739
  });
10689
- var systemSkillSchema = z73.object({
10690
- id: z73.string(),
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 listSkillFilesResponseSchema = z73.object({
10705
- files: z73.array(skillFileItemSchema)
10706
- });
10707
- var getSkillFileContentResponseSchema = z73.object({
10708
- content: z73.string(),
10709
- path: z73.string(),
10710
- contentType: z73.string().optional()
10711
- });
10712
- var updateSkillFileBodySchema = z73.object({
10713
- content: z73.string()
10714
- });
10715
- var updateSkillFileResponseSchema = z73.object({
10716
- success: z73.boolean(),
10717
- message: z73.string(),
10718
- skill: z73.object({
10719
- id: z73.string(),
10720
- name: z73.string(),
10721
- description: z73.string()
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 = z73.object({
10725
- success: z73.boolean(),
10726
- message: z73.string()
10778
+ var deleteSkillResponseSchema = z74.object({
10779
+ success: z74.boolean(),
10780
+ message: z74.string()
10727
10781
  });
10728
- var generateSkillBodySchema = z73.object({
10729
- prompt: z73.string().min(1).max(2e3),
10730
- existingContent: z73.string().max(2e4).optional()
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 = z73.object({
10733
- content: z73.string()
10786
+ var generateSkillResponseSchema = z74.object({
10787
+ content: z74.string()
10734
10788
  });
10735
- var skillAssignmentSchema = z73.object({
10736
- id: z73.string(),
10737
- name: z73.string()
10789
+ var skillAssignmentSchema = z74.object({
10790
+ id: z74.string(),
10791
+ name: z74.string()
10738
10792
  });
10739
- var listSkillAssignmentsResponseSchema = z73.object({
10740
- assignments: z73.array(skillAssignmentSchema),
10741
- total: z73.number()
10793
+ var listSkillAssignmentsResponseSchema = z74.object({
10794
+ assignments: z74.array(skillAssignmentSchema),
10795
+ total: z74.number()
10742
10796
  });
10743
- var teamInvitationApiSchema = z74.object({
10744
- id: z74.string(),
10745
- team_id: z74.string(),
10746
- email: z74.email(),
10747
- invited_by: z74.string(),
10748
- role: z74.string(),
10749
- status: z74.string(),
10750
- name: z74.string().nullable(),
10751
- created_at: z74.string(),
10752
- process_id: z74.guid().nullable().optional()
10753
- });
10754
- var teamInvitationDetailApiSchema = z74.object({
10755
- id: z74.string(),
10756
- team_id: z74.string(),
10757
- email: z74.email(),
10758
- invited_by: z74.string(),
10759
- role: z74.string(),
10760
- status: z74.string(),
10761
- name: z74.string().nullable(),
10762
- created_at: z74.string(),
10763
- process_id: z74.guid().nullable().optional(),
10764
- team: z74.object({
10765
- id: z74.string(),
10766
- name: z74.string()
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: z74.object({
10769
- id: z74.string(),
10770
- name: z74.string().nullable(),
10771
- email: z74.email()
10822
+ invitedBy: z75.object({
10823
+ id: z75.string(),
10824
+ name: z75.string().nullable(),
10825
+ email: z75.email()
10772
10826
  }),
10773
- process: z74.object({
10774
- id: z74.string(),
10775
- name: z74.string()
10827
+ process: z75.object({
10828
+ id: z75.string(),
10829
+ name: z75.string()
10776
10830
  }).optional()
10777
10831
  });
10778
- var createTeamInvitationRequestSchema = z74.object({
10779
- email: z74.email(),
10780
- role: z74.string(),
10781
- processId: z74.guid().optional()
10832
+ var createTeamInvitationRequestSchema = z75.object({
10833
+ email: z75.email(),
10834
+ role: z75.string(),
10835
+ processId: z75.guid().optional()
10782
10836
  });
10783
- var acceptTeamInvitationRequestSchema = z74.object({
10784
- name: z74.string().optional()
10837
+ var acceptTeamInvitationRequestSchema = z75.object({
10838
+ name: z75.string().optional()
10785
10839
  });
10786
- var bulkInviteResponseSchema = z74.object({
10787
- succeeded: z74.number(),
10788
- skipped: z74.number(),
10789
- failed: z74.number()
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 = z75.enum(TEAM_DISCOVERY_MODES);
10793
- var BrowserRegionSchema = z75.enum([
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 = z75.union([
10800
- z75.literal("cz"),
10801
- z75.literal("de"),
10802
- z75.literal("fr"),
10803
- z75.literal("gb"),
10804
- z75.literal("it"),
10805
- z75.literal("pl"),
10806
- z75.literal("sk")
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 = z75.object({
10809
- id: z75.guid(),
10810
- name: z75.string().nullable(),
10811
- email: z75.email(),
10812
- role: z75.string(),
10813
- inheritedFromOrg: z75.boolean().default(false)
10814
- });
10815
- var listTeamMembersResponseSchema = z75.object({
10816
- members: z75.array(teamMemberApiSchema),
10817
- total: z75.number().int().nonnegative(),
10818
- limit: z75.number().int().positive(),
10819
- offset: z75.number().int().nonnegative()
10820
- });
10821
- var updateMemberRoleRequestSchema = z75.object({
10822
- role: z75.string()
10823
- });
10824
- var removeMemberResponseSchema = z75.object({
10825
- success: z75.literal(true),
10826
- nextTeamId: z75.guid().nullable(),
10827
- planType: z75.enum(["pro", "enterprise"]).nullable()
10828
- });
10829
- var getMemberMeResponseSchema = z75.object({
10830
- role: z75.string().nullable(),
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: z75.boolean()
10888
+ isMember: z76.boolean()
10835
10889
  });
10836
- var addTeamMemberRequestSchema = z75.object({
10837
- userId: z75.guid(),
10838
- role: z75.string()
10890
+ var addTeamMemberRequestSchema = z76.object({
10891
+ userId: z76.guid(),
10892
+ role: z76.string()
10839
10893
  });
10840
- var updateTeamRequestSchema = z75.object({
10841
- name: z75.string().min(1).optional(),
10842
- slack_team_id: z75.string().optional(),
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 = z75.object({
10846
- id: z75.guid().describe("Unique team identifier"),
10847
- name: z75.string().describe("Human-readable team name"),
10848
- created_at: z75.string().describe("ISO 8601 creation timestamp"),
10849
- organization_id: z75.guid().nullable().describe("Parent organization ID, or null if the team is standalone"),
10850
- slack_team_id: z75.string().nullable().describe("Linked Slack workspace ID, or null if Slack is not connected"),
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 = z75.object({
10913
+ var teamResponseApiSchema = z76.object({
10860
10914
  team: teamApiSchema
10861
10915
  });
10862
10916
  var TEAM_CONFIG_VERSION = 1;
10863
- var teamConfigDataSchema = z75.object({
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: z75.boolean().nullable().optional()
10934
+ sessionRecordingOverride: z76.boolean().nullable().optional()
10875
10935
  });
10876
- var teamConfigSchema = z75.object({
10877
- version: z75.literal(TEAM_CONFIG_VERSION),
10936
+ var teamConfigSchema = z76.object({
10937
+ version: z76.literal(TEAM_CONFIG_VERSION),
10878
10938
  data: teamConfigDataSchema
10879
10939
  });
10880
- var listTeamInvitesResponseSchema = z75.object({
10881
- invitations: z75.array(teamInvitationApiSchema)
10940
+ var listTeamInvitesResponseSchema = z76.object({
10941
+ invitations: z76.array(teamInvitationApiSchema)
10882
10942
  });
10883
- var teamInsightsCopilotSchema = z76.object({
10884
- id: z76.guid(),
10885
- name: z76.string(),
10886
- teamName: z76.string().nullable().optional(),
10887
- created_at: z76.string().nullable(),
10888
- updated_at: z76.string().nullable(),
10889
- team_id: z76.string().nullable(),
10890
- thread_id: z76.string().nullable(),
10891
- slack_enabled: z76.boolean().nullable()
10892
- });
10893
- var teamInsightsUserProfileSchema = z76.object({
10894
- id: z76.guid(),
10895
- name: z76.string().nullable(),
10896
- email: z76.string()
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: z76.number(),
10901
- lastRun: z76.string().nullable()
10960
+ runCount: z77.number(),
10961
+ lastRun: z77.string().nullable()
10902
10962
  }
10903
10963
  );
10904
- var teamInsightsMetricSourceSchema = z76.object({
10964
+ var teamInsightsMetricSourceSchema = z77.object({
10905
10965
  source: agentRunSourceSchema,
10906
- runsTotal: z76.number(),
10907
- completedRuns: z76.number()
10966
+ runsTotal: z77.number(),
10967
+ completedRuns: z77.number()
10908
10968
  });
10909
10969
  var teamInsightsCopilotWithRunsSchema = teamInsightsCopilotSchema.extend({
10910
- integrations: z76.array(z76.string()),
10911
- uniqueUsersCount: z76.number(),
10912
- users: z76.array(teamInsightsUserUsageSchema),
10913
- totalRuns: z76.number(),
10914
- completedRuns: z76.number(),
10915
- totalTimeSpentMs: z76.number(),
10916
- averageTimeSpentMs: z76.number(),
10917
- completedRunsWithTiming: z76.number(),
10918
- sources: z76.array(teamInsightsMetricSourceSchema)
10919
- });
10920
- var teamInsightsAgentsRunResponseSchema = z76.object({
10921
- data: z76.array(teamInsightsCopilotWithRunsSchema),
10922
- total: z76.number()
10923
- });
10924
- var teamInsightsMetricsResponseSchema = z76.object({
10925
- runsTotal: z76.number(),
10926
- completedRuns: z76.number(),
10927
- sources: z76.array(teamInsightsMetricSourceSchema)
10928
- });
10929
- var teamInsightsUserAgentRunSchema = z76.object({
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
- name: z77.string().nullable(),
10958
- email: z77.email()
10959
- });
10960
- var guardrailsRevisionSchema = z77.object({
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
- teamId: z77.guid(),
10963
- guardrailsText: z77.string().nullable(),
10964
- blockedDomains: z77.array(z77.string()),
10965
- createdAt: z77.string(),
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 = z77.object({
11028
+ var getTeamGuardrailsResponseSchema = z78.object({
10969
11029
  current: guardrailsRevisionSchema.nullable()
10970
11030
  });
10971
- var listTeamGuardrailsRevisionsQuerySchema = z77.object({
10972
- limit: z77.coerce.number().int().min(1).max(100).default(20),
10973
- offset: z77.coerce.number().int().min(0).default(0)
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 = z77.object({
10976
- revisions: z77.array(guardrailsRevisionSchema),
10977
- total: z77.number().int().nonnegative()
11035
+ var listTeamGuardrailsRevisionsResponseSchema = z78.object({
11036
+ revisions: z78.array(guardrailsRevisionSchema),
11037
+ total: z78.number().int().nonnegative()
10978
11038
  });
10979
- var createTeamGuardrailsRevisionRequestSchema = z77.object({
10980
- guardrailsText: z77.string().max(MAX_GUARDRAILS_TEXT_LENGTH).nullable().transform((value) => value && value.trim().length > 0 ? value : null),
10981
- blockedDomains: z77.array(z77.string()).max(MAX_BLOCKED_DOMAINS)
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 = z78.object({
10984
- data: z78.array(z78.string())
11043
+ var userDismissalListResponseSchema = z79.object({
11044
+ data: z79.array(z79.string())
10985
11045
  });
10986
- var userDismissalMutationSchema = z78.object({
10987
- elementKey: z78.string()
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 = z79.object({
10995
- id: z79.guid(),
10996
- name: z79.string(),
10997
- server: z79.string(),
10998
- username: z79.string(),
10999
- enabled: z79.boolean(),
11000
- passwordSet: z79.boolean(),
11001
- organizationCount: z79.number().int().nonnegative(),
11002
- createdAt: z79.string(),
11003
- updatedAt: z79.string()
11004
- });
11005
- var vpnProxyConfigListResponseSchema = z79.object({
11006
- configs: z79.array(vpnProxyConfigSummarySchema)
11007
- });
11008
- var vpnProxyConfigCreateRequestSchema = z79.object({
11009
- name: z79.string().trim().min(1).max(NAME_MAX),
11010
- server: z79.string().trim().min(1).max(URL_MAX).url(),
11011
- username: z79.string().trim().min(1).max(USERNAME_MAX),
11012
- password: z79.string().min(PASSWORD_MIN).max(PASSWORD_MAX),
11013
- enabled: z79.boolean().prefault(true)
11014
- });
11015
- var vpnProxyConfigCreateResponseSchema = z79.object({
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 = z79.object({
11019
- name: z79.string().trim().min(1).max(NAME_MAX).optional(),
11020
- server: z79.string().trim().min(1).max(URL_MAX).url().optional(),
11021
- username: z79.string().trim().min(1).max(USERNAME_MAX).optional(),
11022
- password: z79.string().min(PASSWORD_MIN).max(PASSWORD_MAX).optional(),
11023
- enabled: z79.boolean().optional()
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 = z79.object({
11085
+ var vpnProxyConfigUpdateResponseSchema = z80.object({
11026
11086
  config: vpnProxyConfigSummarySchema
11027
11087
  });
11028
- var vpnProxyConfigDeleteResponseSchema = z79.object({
11029
- success: z79.literal(true)
11088
+ var vpnProxyConfigDeleteResponseSchema = z80.object({
11089
+ success: z80.literal(true)
11030
11090
  });
11031
- var vpnProxyConfigOrganizationSchema = z79.object({
11032
- id: z79.guid(),
11033
- organizationId: z79.guid(),
11034
- organizationName: z79.string(),
11035
- attachedAt: z79.string()
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 = z79.object({
11038
- organizations: z79.array(vpnProxyConfigOrganizationSchema)
11099
+ var vpnProxyConfigOrganizationListResponseSchema = z80.object({
11100
+ organizations: z80.array(vpnProxyConfigOrganizationSchema)
11039
11101
  });
11040
- var vpnProxyConfigAttachOrganizationRequestSchema = z79.object({
11041
- organizationId: z79.guid()
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 = z79.object({
11107
+ var vpnProxyConfigAttachOrganizationResponseSchema = z80.object({
11044
11108
  attachment: vpnProxyConfigOrganizationSchema
11045
11109
  });
11046
- var vpnProxyConfigDetachOrganizationResponseSchema = z79.object({
11047
- success: z79.literal(true)
11110
+ var vpnProxyConfigDetachOrganizationResponseSchema = z80.object({
11111
+ success: z80.literal(true)
11048
11112
  });
11049
- var vpnProxyConfigForOrganizationResponseSchema = z79.object({
11050
- config: vpnProxyConfigSummarySchema.nullable()
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 = z80.enum([
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 = z80.object({
11079
- status: z80.array(caseFilterStatusSchema).optional(),
11080
- created_at_from: z80.string().optional(),
11081
- updated_at_from: z80.string().optional(),
11082
- labels: z80.record(z80.string(), z80.array(z80.string())).optional()
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 = z80.object({
11160
+ var casesListRequestBodySchema = z81.object({
11085
11161
  filters: casesFiltersSchema.default({}),
11086
- limit: z80.int().min(1).max(100).default(25),
11087
- offset: z80.int().min(0).default(0),
11088
- sort_by: z80.enum(["created_at", "updated_at", "postponed_to"]).default("created_at"),
11089
- sort_order: z80.enum(["asc", "desc"]).default("desc"),
11090
- search: z80.string().optional()
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 = z80.array(caseFilterStatusSchema).safeParse(values);
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 z81 } from "zod";
12449
- var optionalEnvString = z81.string().optional().transform(
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 = z81.object({
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 z82 } from "zod";
12955
- var teamSchema = z82.object({ id: z82.string() });
12956
- var listMyTeamsResponseSchema = z82.object({ teams: z82.array(teamSchema) });
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 z84 } from "zod";
13815
+ import { z as z85 } from "zod";
13740
13816
 
13741
13817
  // src/api/json-value.ts
13742
- import { z as z83 } from "zod";
13743
- var jsonValueSchema = z83.lazy(
13744
- () => z83.union([
13745
- z83.string(),
13746
- z83.number(),
13747
- z83.boolean(),
13748
- z83.null(),
13749
- z83.array(jsonValueSchema),
13750
- z83.record(z83.string(), jsonValueSchema)
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 = z84.object({
13756
- id: z84.string(),
13757
- name: z84.string(),
13758
- slack_enabled: z84.boolean().nullish(),
13759
- microsoft_teams_enabled: z84.boolean().nullish(),
13760
- agentic_memory_enabled: z84.boolean().nullish(),
13761
- thread_id: z84.string().nullish(),
13762
- created_at: z84.string().nullish(),
13763
- updated_at: z84.string().nullish(),
13764
- latest_build: z84.object({ config: jsonValueSchema.nullish() }).nullish()
13765
- });
13766
- var publicBuildSchema = z84.object({
13767
- id: z84.string(),
13768
- agent_id: z84.string(),
13769
- name: z84.string(),
13770
- revision_number: z84.number().nullish(),
13771
- created_at: z84.string().nullish(),
13772
- updated_at: z84.string().nullish()
13773
- });
13774
- var listAgentsResponseSchema = z84.object({
13775
- agents: z84.array(publicAgentSchema),
13776
- total: z84.number().nullish(),
13777
- limit: z84.number().nullish(),
13778
- offset: z84.number().nullish()
13779
- });
13780
- var agentUserContextSchema = z84.object({
13781
- pinned_at: z84.string().nullable()
13782
- });
13783
- var getAgentResponseSchema = z84.object({
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 = z84.object({
13863
+ var createAgentResponseSchema = z85.object({
13788
13864
  agent: publicAgentSchema,
13789
13865
  build: publicBuildSchema.optional()
13790
13866
  });
13791
- var deleteAgentResponseSchema = z84.object({
13792
- success: z84.literal(true)
13793
- });
13794
- var namedRefSchema = z84.object({
13795
- id: z84.string(),
13796
- name: z84.string()
13797
- });
13798
- var moveQueueRefSchema = z84.object({
13799
- id: z84.string(),
13800
- name: z84.string(),
13801
- item_count: z84.number()
13802
- });
13803
- var connectionDecisionSchema = z84.object({
13804
- agent_id: z84.string(),
13805
- agent_name: z84.string(),
13806
- integration_type: z84.string(),
13807
- integration_name: z84.string(),
13808
- instance_name: z84.string(),
13809
- decision: z84.string()
13810
- });
13811
- var customRebuildSchema = z84.object({
13812
- agent_id: z84.string(),
13813
- agent_name: z84.string(),
13814
- custom_integration_name: z84.string()
13815
- });
13816
- var moveAgentResponseSchema = z84.object({
13817
- source_team_id: z84.string(),
13818
- target_team_id: z84.string(),
13819
- root_agent_id: z84.string(),
13820
- agents: z84.array(namedRefSchema),
13821
- queues: z84.array(moveQueueRefSchema),
13822
- total_case_items: z84.number(),
13823
- total_runs: z84.number(),
13824
- skills_to_clone: z84.array(namedRefSchema),
13825
- files_to_copy: z84.array(z84.object({ path: z84.string() })),
13826
- warnings: z84.object({
13827
- outcome: z84.object({
13828
- instances_reconnected: z84.array(connectionDecisionSchema),
13829
- instances_disconnected: z84.array(connectionDecisionSchema),
13830
- custom_integrations_to_rebuild: z84.array(customRebuildSchema),
13831
- catalog_rows_created_on_target: z84.number()
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: z84.array(namedRefSchema),
13834
- dropped_memory_count: z84.number(),
13835
- files_copied_count: z84.number(),
13836
- files_skipped_conflict: z84.array(z84.string())
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: z84.object({
13839
- move_learnings: z84.boolean()
13914
+ options: z85.object({
13915
+ move_learnings: z85.boolean()
13840
13916
  }),
13841
- applied: z84.boolean()
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 z85 } from "zod";
14559
- var publicBuildSchema2 = z85.object({
14560
- id: z85.string(),
14561
- agent_id: z85.string(),
14562
- name: z85.string(),
14563
- status: z85.string().nullish(),
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: z85.number().nullish(),
14566
- created_at: z85.string().nullish(),
14567
- updated_at: z85.string().nullish()
14641
+ revision_number: z86.number().nullish(),
14642
+ created_at: z86.string().nullish(),
14643
+ updated_at: z86.string().nullish()
14568
14644
  });
14569
- var listBuildsResponseSchema2 = z85.object({
14570
- builds: z85.array(publicBuildSchema2),
14571
- total: z85.number().nullish(),
14572
- limit: z85.number().nullish(),
14573
- offset: z85.number().nullish()
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 = z85.object({
14651
+ var getBuildResponseSchema = z86.object({
14576
14652
  build: publicBuildSchema2
14577
14653
  });
14578
- var createBuildResponseSchema = z85.object({
14654
+ var createBuildResponseSchema = z86.object({
14579
14655
  build: publicBuildSchema2,
14580
- agent: z85.object({ id: z85.string() })
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 z86 } from "zod";
14977
- var publicScheduleSchema = z86.object({
14978
- id: z86.string(),
14979
- build_id: z86.string(),
14980
- agent_id: z86.string(),
14981
- user_id: z86.string(),
14982
- enabled: z86.boolean(),
14983
- frequency: z86.string(),
14984
- time: z86.string().nullish(),
14985
- timezone: z86.string(),
14986
- day: z86.string().nullish(),
14987
- day_of_month: z86.number().nullish(),
14988
- cron: z86.string().nullish(),
14989
- source: z86.string().nullish(),
14990
- task: z86.string().nullish(),
14991
- recurring: z86.boolean().nullish(),
14992
- created_at: z86.string(),
14993
- updated_at: z86.string()
14994
- });
14995
- var listSchedulesResponseSchema = z86.object({
14996
- schedules: z86.array(publicScheduleSchema)
14997
- });
14998
- var deleteScheduleResponseSchema = z86.object({
14999
- success: z86.literal(true)
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 z87 } from "zod";
15448
- var triggerSchema = z87.object({
15449
- id: z87.string(),
15450
- agent_id: z87.string(),
15451
- user_id: z87.string(),
15452
- integration_slug: z87.string(),
15453
- trigger_type: z87.string(),
15454
- filter_config: z87.record(z87.string(), z87.unknown()),
15455
- integration_instance_id: z87.string(),
15456
- enabled: z87.boolean(),
15457
- created_at: z87.string(),
15458
- updated_at: z87.string()
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 = z87.object({
15461
- triggers: z87.array(triggerSchema)
15536
+ var listTriggersResponseSchema = z88.object({
15537
+ triggers: z88.array(triggerSchema)
15462
15538
  });
15463
- var triggerTypeSchema = z87.object({
15464
- integration_slug: z87.string(),
15465
- integration_name: z87.string(),
15466
- icon_url: z87.string(),
15467
- trigger_type: z87.string(),
15468
- label: z87.string(),
15469
- description: z87.string(),
15470
- filter_schema: z87.record(z87.string(), z87.unknown())
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 = z87.object({
15473
- trigger_types: z87.array(triggerTypeSchema)
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 z88 } from "zod";
16104
- var integrationSchema = z88.object({
16105
- id: z88.string(),
16106
- name: z88.string(),
16107
- type: z88.string(),
16108
- provider: z88.string(),
16109
- user_id: z88.string().nullable(),
16110
- team_id: z88.string(),
16111
- server_url: z88.string().optional(),
16112
- transport_type: z88.string().optional(),
16113
- auth_method: z88.string().nullish(),
16114
- composio_mcp_id: z88.string().nullish(),
16115
- custom_integration_id: z88.string().nullish(),
16116
- icon_url: z88.string().nullish(),
16117
- oauth_provider: z88.string().nullish(),
16118
- oauth_provider_key: z88.string().nullish(),
16119
- oauth_scopes: z88.array(z88.string()).nullish(),
16120
- integration_id: z88.string().nullish(),
16121
- created_at: z88.string(),
16122
- updated_at: z88.string()
16123
- });
16124
- var integrationsListResponseSchema2 = z88.object({
16125
- integrations: z88.array(integrationSchema)
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 = z88.object({
16129
- id: z88.string(),
16130
- integration_id: z88.string().nullable(),
16131
- custom_integration_id: z88.string().nullable(),
16132
- integration_type: z88.string(),
16133
- integration_name: z88.string(),
16134
- created_at: z88.string()
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 = z88.object({
16137
- integrations: z88.array(buildIntegrationConfigSchema2)
16212
+ var listBuildIntegrationsResponseSchema2 = z89.object({
16213
+ integrations: z89.array(buildIntegrationConfigSchema2)
16138
16214
  });
16139
- var attachBuildIntegrationsResponseSchema = z88.object({
16140
- success: z88.boolean(),
16141
- count: z88.number()
16215
+ var attachBuildIntegrationsResponseSchema = z89.object({
16216
+ success: z89.boolean(),
16217
+ count: z89.number()
16142
16218
  });
16143
- var buildIntegrationConnectionSchema = z88.object({
16144
- connection_id: z88.string(),
16145
- created_at: z88.string()
16219
+ var buildIntegrationConnectionSchema = z89.object({
16220
+ connection_id: z89.string(),
16221
+ created_at: z89.string()
16146
16222
  });
16147
- var listBuildIntegrationConnectionsResponseSchema = z88.object({
16148
- connections: z88.array(buildIntegrationConnectionSchema)
16223
+ var listBuildIntegrationConnectionsResponseSchema = z89.object({
16224
+ connections: z89.array(buildIntegrationConnectionSchema)
16149
16225
  });
16150
- var successResponseSchema = z88.object({
16151
- success: z88.boolean()
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 z89 } from "zod";
16195
- var slotSchema = z89.object({
16196
- config_id: z89.string(),
16197
- integration_type: z89.string(),
16198
- linked_queue_count: z89.number()
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 = z89.object({
16201
- configs: z89.array(slotSchema),
16202
- has_available_queues: z89.boolean()
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 z90 } from "zod";
16698
- var promoteResponseSchema = z90.object({
16699
- success: z90.boolean()
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 z91 } from "zod";
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 = z91.object({
17729
- id: z91.string(),
17730
- type: z91.string(),
17731
- role: z91.string(),
17732
- timestamp: z91.string(),
17733
- text_content: z91.string().nullish(),
17734
- tool_call: z91.object({ id: z91.string(), name: z91.string() }).passthrough().nullish(),
17735
- tool_result: z91.object({ tool_call_id: z91.string() }).passthrough().nullish()
17736
- });
17737
- var recentMessagesResponseSchema = z91.object({
17738
- messages: z91.array(recentMessageSchema)
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 z92 } from "zod";
17868
- var clarityListProcessSchema = z92.object({
17869
- id: z92.guid(),
17870
- name: z92.string(),
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: z92.number().int(),
17874
- capture_count: z92.number().int(),
17875
- capture_counts: z92.object({
17876
- video: z92.number().int(),
17877
- interview: z92.number().int(),
17878
- document: z92.number().int()
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: z92.number().int(),
17881
- contributors: z92.array(
17882
- z92.object({
17883
- user_id: z92.string(),
17884
- user_name: z92.string()
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: z92.string(),
17888
- created_by_name: z92.string().nullable()
17889
- });
17890
- var listClarityProcessesResponseSchema = z92.object({
17891
- processes: z92.array(clarityListProcessSchema),
17892
- total: z92.number().int(),
17893
- limit: z92.number().int(),
17894
- offset: z92.number().int()
17895
- });
17896
- var createClarityInviteLinkResponseSchema = z92.object({
17897
- invite_link: z92.object({
17898
- id: z92.guid(),
17899
- url: z92.url(),
17900
- created_at: z92.string(),
17901
- created_by: z92.object({
17902
- id: z92.guid(),
17903
- email: z92.email().nullable()
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 = z92.object({
17908
- signed_url: z92.url(),
17909
- capture_id: z92.guid(),
17910
- expires_at: z92.iso.datetime()
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 = z92.object({
17988
+ var completeArtifactImportResponseSchema = z93.object({
17913
17989
  capture: clarityCaptureSchema.extend({
17914
- createdAt: z92.iso.datetime(),
17915
- updatedAt: z92.iso.datetime()
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 z93 } from "zod";
18355
- var responseSchema3 = z93.object({
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 z94 } from "zod";
18403
- var responseSchema4 = z94.object({
18404
- automation_run: z94.object({
18405
- id: z94.string(),
18406
- status: z94.string()
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 z95 } from "zod";
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 = z95.object({
20417
- teams: z95.array(z95.object({ id: z95.string() }))
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 z96 } from "zod";
21036
- var snapshotSchema = z96.object({
21037
- snapshot: z96.object({
21038
- id: z96.string(),
21039
- kind: z96.string(),
21040
- source_snapshot_id: z96.string().nullable(),
21041
- parent_id: z96.string().nullable(),
21042
- status: z96.string(),
21043
- creator_type: z96.string(),
21044
- user_id: z96.string().nullable(),
21045
- sandbox_id: z96.string().nullable(),
21046
- created_at: z96.string(),
21047
- updated_at: z96.string()
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 z97 } from "zod";
21092
- var snapshotSchema2 = z97.object({
21093
- snapshot: z97.object({
21094
- id: z97.string(),
21095
- kind: z97.string(),
21096
- source_snapshot_id: z97.string().nullable(),
21097
- parent_id: z97.string().nullable(),
21098
- status: z97.string(),
21099
- creator_type: z97.string(),
21100
- user_id: z97.string().nullable(),
21101
- sandbox_id: z97.string().nullable(),
21102
- created_at: z97.string(),
21103
- updated_at: z97.string()
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 z98 } from "zod";
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 axisSchema = z98.enum(["content", "existence"]);
21245
- var processSummarySchema = z98.object({
21246
- id: z98.string(),
21247
- name: z98.string()
21307
+ var processSummarySchema = z99.object({
21308
+ id: z99.string(),
21309
+ name: z99.string()
21248
21310
  }).passthrough();
21249
- var landscapeNodeSchema = z98.object({
21250
- id: z98.string(),
21251
- parentId: z98.string().nullable(),
21252
- processId: z98.string().nullable(),
21253
- name: z98.string(),
21254
- ownerLabel: z98.string().nullable(),
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: z98.string(),
21259
- teamName: z98.string().nullable()
21320
+ teamId: z99.string(),
21321
+ teamName: z99.string().nullable()
21260
21322
  }).passthrough();
21261
- var treeNodeSchema = z98.object({
21262
- id: z98.string(),
21263
- parentId: z98.string().nullable(),
21264
- processId: z98.string().nullable(),
21265
- name: z98.string(),
21266
- ownerLabel: z98.string().nullable(),
21267
- depth: z98.number()
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 = z98.object({
21270
- nodes: z98.array(landscapeNodeSchema),
21271
- links: z98.array(
21272
- z98.object({
21273
- id: z98.string(),
21274
- sourceNodeId: z98.string(),
21275
- targetNodeId: z98.string(),
21276
- type: z98.string(),
21277
- state: z98.string(),
21278
- confidence: z98.number().nullable()
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: z98.array(unlinkedProcessSchema),
21282
- stats: z98.object({
21283
- totalNodes: z98.number(),
21284
- processNodes: z98.number(),
21285
- proposedNodes: z98.number(),
21286
- unsortedProcesses: z98.number(),
21287
- latestUpdatedAt: z98.string().nullable()
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: z98.boolean()
21351
+ truncated: z99.boolean()
21290
21352
  }).passthrough();
21291
- var treeResponseSchema = z98.object({
21292
- nodes: z98.array(treeNodeSchema),
21293
- truncated: z98.boolean()
21353
+ var treeResponseSchema = z99.object({
21354
+ nodes: z99.array(treeNodeSchema),
21355
+ truncated: z99.boolean()
21294
21356
  }).passthrough();
21295
- var nodeResponseSchema = z98.object({
21296
- id: z98.string(),
21297
- parentId: z98.string().nullable(),
21298
- processId: z98.string().nullable(),
21299
- name: z98.string(),
21300
- ownerLabel: z98.string().nullable()
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 = z98.object({
21303
- deletedCount: z98.number(),
21304
- detachedCount: z98.number()
21305
- });
21306
- var generateLandscapeResponseSchema = z98.object({
21307
- started: z98.literal(true),
21308
- generationId: z98.string(),
21309
- eligibleCaptureCount: z98.number()
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 = z98.object({
21312
- id: z98.string(),
21313
- scope: z98.string(),
21314
- type: z98.string(),
21315
- title: z98.string(),
21316
- organizationId: z98.string().nullable(),
21317
- organizationName: z98.string().nullable(),
21318
- teamId: z98.string().nullable(),
21319
- teamName: z98.string().nullable(),
21320
- processNodeId: z98.string().nullable(),
21321
- createdAt: z98.string(),
21322
- transcriptMessageCount: z98.number()
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 = z98.object({
21325
- captures: z98.array(captureSchema),
21326
- total: z98.number(),
21327
- truncated: z98.boolean()
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 z99 } from "zod";
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 = z99.looseObject({
21903
- id: z99.string(),
21904
- status: z99.string(),
21905
- creator_type: z99.string(),
21906
- created_at: z99.string(),
21907
- parent_id: z99.string().nullable().optional(),
21908
- source_snapshot_id: z99.string().nullable().optional()
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 = z99.looseObject({
21911
- snapshots: z99.array(snapshotListItemSchema),
21912
- total: z99.number().int().optional()
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 z100 } from "zod";
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 = z100.enum([
22373
+ var processLinkTypeSchema = z101.enum([
22336
22374
  "hands_off_to",
22337
22375
  "shares_step_with",
22338
22376
  "variant_of"
22339
22377
  ]);
22340
- var processLinkStateSchema = z100.enum(["suggested", "confirmed"]);
22341
- var processLinkSchema = z100.object({
22342
- id: z100.string(),
22343
- source_node_id: z100.string(),
22344
- target_node_id: z100.string(),
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: z100.number().nullable(),
22348
- created_at: z100.string(),
22349
- updated_at: z100.string()
22385
+ confidence: z101.number().nullable(),
22386
+ created_at: z101.string(),
22387
+ updated_at: z101.string()
22350
22388
  });
22351
- var listProcessLinksResponseSchema = z100.object({
22352
- process_links: z100.array(processLinkSchema),
22353
- total: z100.number(),
22354
- limit: z100.number(),
22355
- offset: z100.number()
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 = z100.object({
22395
+ var processLinkMutationResponseSchema = z101.object({
22358
22396
  process_link: processLinkSchema,
22359
- created: z100.boolean().optional()
22397
+ created: z101.boolean().optional()
22360
22398
  });
22361
- var deleteProcessLinkResponseSchema = z100.object({
22362
- deleted: z100.boolean()
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 z101 } from "zod";
22556
- var snapshotSchema3 = z101.object({
22557
- snapshot: z101.object({
22558
- id: z101.string(),
22559
- status: z101.string(),
22560
- creator_type: z101.string(),
22561
- created_at: z101.string(),
22562
- updated_at: z101.string()
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 z102 } from "zod";
22600
- var snapshotSchema4 = z102.object({
22601
- snapshot: z102.object({
22602
- id: z102.string(),
22603
- status: z102.string(),
22604
- creator_type: z102.string(),
22605
- created_at: z102.string(),
22606
- updated_at: z102.string()
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 z103 } from "zod";
22683
- var snapshotFileSchema = z103.union([
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 z104 } from "zod";
23685
- var toolSchema = z104.object({
23686
- name: z104.string(),
23687
- description: z104.string().optional(),
23688
- input_schema: z104.record(z104.string(), z104.unknown()).optional()
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 = z104.object({
23691
- success: z104.boolean(),
23692
- tools: z104.array(toolSchema).optional(),
23693
- error: z104.string().optional()
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 z105 } from "zod";
23917
- var dateLike = z105.string();
23918
- var secretSchema = z105.object({
23919
- id: z105.string(),
23920
- team_id: z105.string(),
23921
- user_id: z105.string().nullable(),
23922
- name: z105.string(),
23923
- service_slug: z105.string().nullable(),
23924
- env_var_keys: z105.array(z105.string()),
23925
- created_by: z105.string(),
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 = z105.array(secretSchema);
23967
+ var secretsListResponseSchema = z106.array(secretSchema);
23930
23968
  var secretResponseSchema = secretSchema;
23931
- var browserLoginSchema = z105.object({
23932
- id: z105.string(),
23933
- user_id: z105.string().nullable(),
23934
- team_id: z105.string(),
23935
- domain: z105.string(),
23936
- username: z105.string().nullable(),
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 = z105.array(credentialPreviewSchema);
23943
- var revisionLoginSummarySchema = z105.object({
23944
- id: z105.string(),
23945
- user_id: z105.string().nullable(),
23946
- team_id: z105.string().nullable(),
23947
- domain: z105.string(),
23948
- username: z105.string().nullable(),
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 = z105.array(
23990
+ var revisionLoginsListResponseSchema = z106.array(
23953
23991
  revisionLoginSummarySchema
23954
23992
  );
23955
- var revisionSecretsListResponseSchema = z105.array(secretSchema);
23956
- var successResponseSchema2 = z105.object({
23957
- success: z105.boolean()
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 z106 } from "zod";
28423
- var publicRunSchema = z106.object({
28424
- id: z106.string(),
28425
- agent_id: z106.string(),
28426
- build_id: z106.string(),
28427
- status: z106.string(),
28428
- source: z106.string().nullish(),
28429
- sandbox_id: z106.string().nullish(),
28430
- started_at: z106.string().nullish(),
28431
- completed_at: z106.string().nullish(),
28432
- created_at: z106.string(),
28433
- updated_at: z106.string().nullish(),
28434
- human_in_the_loop_enabled: z106.boolean().nullish()
28435
- });
28436
- var startRunResponseSchema = z106.object({
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 = z106.object({
28440
- label: z106.string(),
28441
- description: z106.string().nullish()
28442
- });
28443
- var questionSchema = z106.object({
28444
- question: z106.string(),
28445
- header: z106.string().nullish(),
28446
- options: z106.array(questionOptionSchema).nullish(),
28447
- multi_select: z106.boolean().nullish()
28448
- });
28449
- var pendingHumanRequestSchema = z106.object({
28450
- id: z106.string(),
28451
- title: z106.string(),
28452
- description: z106.string().nullish(),
28453
- created_at: z106.string(),
28454
- type: z106.string(),
28455
- questions: z106.array(questionSchema).nullish()
28456
- });
28457
- var getRunResponseSchema = z106.object({
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 = z106.object({
28462
- success: z106.boolean(),
28463
- message: z106.string().nullish()
28464
- });
28465
- var runMessageSchema = z106.object({
28466
- id: z106.string(),
28467
- type: z106.string(),
28468
- role: z106.string(),
28469
- timestamp: z106.string(),
28470
- text_content: z106.string().nullish(),
28471
- tool_call: z106.object({
28472
- id: z106.string(),
28473
- name: z106.string(),
28474
- arguments: z106.record(z106.string(), z106.unknown()).nullish()
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: z106.object({
28477
- tool_call_id: z106.string(),
28478
- result: z106.unknown().nullish(),
28479
- error: z106.string().nullish()
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 = z106.object({
28483
- messages: z106.array(runMessageSchema),
28484
- total: z106.number().nullish(),
28485
- limit: z106.number().nullish(),
28486
- offset: z106.number().nullish()
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 = z106.object({
28489
- id: z106.string(),
28490
- type: z106.string(),
28491
- role: z106.string(),
28492
- timestamp: z106.string(),
28493
- text_content: z106.string()
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 = z106.object({
28608
+ var postRunMessageResponseSchema = z107.object({
28496
28609
  message: postedMessageSchema
28497
28610
  });
28498
- var respondHumanRequestResponseSchema = z106.object({
28499
- human_request: z106.object({
28500
- id: z106.string(),
28501
- run_id: z106.string(),
28502
- title: z106.string(),
28503
- description: z106.string().nullish(),
28504
- response: z106.string().nullish(),
28505
- responded_at: z106.string().nullish(),
28506
- created_at: z106.string()
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 z107 } from "zod";
29202
- var createSandboxResponseSchema = z107.object({
29203
- sandbox_id: z107.string(),
29204
- expires_at: z107.string()
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 = z107.object({
29207
- upload_url: z107.string(),
29208
- path: z107.string(),
29209
- expires_in_seconds: z107.number()
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 = z107.object({
29212
- name: z107.string(),
29213
- path: z107.string(),
29214
- type: z107.enum(["file", "dir"]),
29215
- size_bytes: z107.number()
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 = z107.object({
29218
- files: z107.array(sandboxFileSchema)
29330
+ var listSandboxFilesResponseSchema = z108.object({
29331
+ files: z108.array(sandboxFileSchema)
29219
29332
  });
29220
- var uploadSandboxFileResponseSchema = z107.object({
29221
- path: z107.string(),
29222
- size_bytes: z107.number()
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 z108 } from "zod";
29834
- var createSkillResponseSchema = z108.object({
29835
- skill: z108.object({
29836
- id: z108.string(),
29837
- name: z108.string(),
29838
- description: z108.string(),
29839
- team_id: z108.string()
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 z109 } from "zod";
30204
- var installSkillResponseSchema = z109.object({
30205
- skill: z109.object({
30206
- id: z109.string(),
30207
- name: z109.string(),
30208
- description: z109.string(),
30209
- team_id: z109.string()
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 z110 } from "zod";
30400
- var uploadSkillResponseSchema = z110.object({
30401
- skill: z110.object({
30402
- id: z110.string(),
30403
- name: z110.string(),
30404
- description: z110.string(),
30405
- team_id: z110.string()
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 z111 } from "zod";
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 = z111.string().regex(TEAM_ID_SHAPE);
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 z112 } from "zod";
30867
- var teamApiSchema2 = z112.object({
30868
- id: z112.string(),
30869
- name: z112.string(),
30870
- organization_id: z112.string().nullable()
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 = z112.object({
30873
- teams: z112.array(teamApiSchema2)
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 z113 } from "zod";
30917
- var headlineSchema = z113.object({
30918
- total_runs: z113.number(),
30919
- completed_runs: z113.number(),
30920
- failed_runs: z113.number(),
30921
- success_rate: z113.number().nullable(),
30922
- active_agents: z113.number(),
30923
- active_users: z113.number(),
30924
- start_date: z113.string(),
30925
- end_date: z113.string(),
30926
- truncated: z113.boolean(),
30927
- aggregated_teams: z113.number(),
30928
- total_teams: z113.number()
30929
- });
30930
- var orgInsightsHeadlineResponseSchema = z113.object({
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 z114 } from "zod";
30999
- var teamMetricSchema = z114.object({
31000
- team_id: z114.string(),
31001
- team_name: z114.string(),
31002
- is_deleted: z114.boolean(),
31003
- member_count: z114.number(),
31004
- assignment_count: z114.number(),
31005
- scheduled_job_count: z114.number(),
31006
- total_jobs: z114.number(),
31007
- completed_jobs: z114.number(),
31008
- failed_jobs: z114.number(),
31009
- total_runs: z114.number()
31010
- });
31011
- var orgInsightsMetricsResponseSchema = z114.object({
31012
- teams: z114.array(teamMetricSchema),
31013
- start_date: z114.string(),
31014
- end_date: z114.string(),
31015
- truncated: z114.boolean(),
31016
- total_teams: z114.number(),
31017
- org_member_count: z114.number()
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 z115 } from "zod";
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 = z115.object({
31084
- period: z115.string(),
31085
- total_runs: z115.number(),
31086
- scheduled_runs: z115.number(),
31087
- on_demand_runs: z115.number()
31088
- });
31089
- var usageChartResponseSchema = z115.object({
31090
- buckets: z115.array(bucketSchema),
31091
- granularity: z115.enum(GRANULARITIES),
31092
- truncated: z115.boolean(),
31093
- total_teams: z115.number()
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 z116 } from "zod";
31153
- var orgTeamSchema = z116.object({
31154
- id: z116.string(),
31155
- name: z116.string(),
31156
- userIsMember: z116.boolean(),
31157
- userRole: z116.string().nullable(),
31158
- memberCount: z116.number()
31159
- });
31160
- var listOrgTeamsResponseSchema = z116.object({
31161
- teams: z116.array(orgTeamSchema),
31162
- total: z116.number()
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.25.0";
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.25.0" };
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");