@work-shape/catalyst-cli 0.8.0-rc.15 → 0.8.0-rc.17

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +254 -4
  2. package/dist/index.js +349 -216
  3. package/package.json +4 -4
package/dist/index.d.ts CHANGED
@@ -5709,6 +5709,7 @@ declare const appOperations: {
5709
5709
  code: zod.ZodOptional<zod.ZodString>;
5710
5710
  file: zod.ZodOptional<zod.ZodString>;
5711
5711
  line: zod.ZodOptional<zod.ZodNumber>;
5712
+ column: zod.ZodOptional<zod.ZodNumber>;
5712
5713
  count: zod.ZodNumber;
5713
5714
  }, zod_v4_core.$strict>>;
5714
5715
  more: zod.ZodNumber;
@@ -5725,6 +5726,54 @@ declare const appOperations: {
5725
5726
  readonly errors: readonly ["NOT_FOUND", "VALIDATION_FAILED"];
5726
5727
  readonly rateClass: "write";
5727
5728
  }>;
5729
+ readonly "apps.preview_captures.pending": Operation<{
5730
+ readonly id: "apps.preview_captures.pending";
5731
+ readonly method: "GET";
5732
+ readonly path: "/api/v1/conversations/:conversationId/preview-captures";
5733
+ readonly summary: "List the caller's capture requests of a conversation that wait for their browser";
5734
+ readonly tag: "Apps";
5735
+ readonly auth: "user";
5736
+ readonly scope: "conversation:read";
5737
+ readonly requires: readonly [];
5738
+ readonly effect: "reading";
5739
+ readonly response: {
5740
+ readonly kind: "json";
5741
+ readonly schema: zod.ZodObject<{
5742
+ captures: zod.ZodArray<zod.ZodObject<{
5743
+ id: zod.ZodString;
5744
+ fileSetId: zod.ZodString;
5745
+ }, zod_v4_core.$strict>>;
5746
+ }, zod_v4_core.$strict>;
5747
+ };
5748
+ readonly errors: readonly ["NOT_FOUND"];
5749
+ readonly rateClass: "read";
5750
+ }>;
5751
+ readonly "apps.sessions.capture": Operation<{
5752
+ readonly id: "apps.sessions.capture";
5753
+ readonly method: "POST";
5754
+ readonly path: "/api/v1/app-content-sessions/:pageSessionId/captures/:captureId";
5755
+ readonly summary: "Answer a run's capture request with a picture of the preview a frame shows, or that none can be taken";
5756
+ readonly tag: "Apps";
5757
+ readonly auth: "user";
5758
+ readonly scope: "conversation:write";
5759
+ readonly requires: readonly [];
5760
+ readonly effect: "changing";
5761
+ readonly body: zod.ZodObject<{
5762
+ conversationId: zod.ZodOptional<zod.ZodString>;
5763
+ image: zod.ZodOptional<zod.ZodBase64>;
5764
+ unavailable: zod.ZodOptional<zod.ZodLiteral<true>>;
5765
+ fileSetId: zod.ZodString;
5766
+ token: zod.ZodString;
5767
+ }, zod_v4_core.$strict>;
5768
+ readonly response: {
5769
+ readonly kind: "json";
5770
+ readonly schema: zod.ZodObject<{
5771
+ accepted: zod.ZodBoolean;
5772
+ }, zod_v4_core.$strict>;
5773
+ };
5774
+ readonly errors: readonly ["NOT_FOUND", "VALIDATION_FAILED"];
5775
+ readonly rateClass: "write";
5776
+ }>;
5728
5777
  readonly "apps.sessions.write_storage": Operation<{
5729
5778
  readonly id: "apps.sessions.write_storage";
5730
5779
  readonly method: "POST";
@@ -7637,7 +7686,7 @@ declare const assetOperations: {
7637
7686
  publishedRevision: zod.ZodOptional<zod.ZodNumber>;
7638
7687
  liveVersion: zod.ZodOptional<zod.ZodObject<{
7639
7688
  number: zod.ZodNumber;
7640
- publishedAt: zod.ZodISODateTime;
7689
+ publishedAt: zod.ZodOptional<zod.ZodISODateTime>;
7641
7690
  by: zod.ZodOptional<zod.ZodString>;
7642
7691
  }, zod_v4_core.$strip>>;
7643
7692
  draftChangedSinceLive: zod.ZodOptional<zod.ZodBoolean>;
@@ -8816,9 +8865,11 @@ declare const assetOperations: {
8816
8865
  pageId: zod.ZodString;
8817
8866
  fileSetNumber: zod.ZodNumber;
8818
8867
  byAgent: zod.ZodOptional<zod.ZodLiteral<true>>;
8868
+ agentDisplayName: zod.ZodOptional<zod.ZodString>;
8819
8869
  }, zod_v4_core.$strip>, zod.ZodObject<{
8820
8870
  kind: zod.ZodLiteral<"agent_run">;
8821
8871
  conversationId: zod.ZodString;
8872
+ agentDisplayName: zod.ZodOptional<zod.ZodString>;
8822
8873
  }, zod_v4_core.$strip>], "kind">>;
8823
8874
  globalVersion: zod.ZodNumber;
8824
8875
  createdAt: zod.ZodISODateTime;
@@ -8881,7 +8932,7 @@ declare const assetOperations: {
8881
8932
  authSource: zod.ZodString;
8882
8933
  }, zod_v4_core.$strip>]>>;
8883
8934
  }, zod_v4_core.$strip>>;
8884
- publishedAt: zod.ZodISODateTime;
8935
+ publishedAt: zod.ZodOptional<zod.ZodISODateTime>;
8885
8936
  note: zod.ZodOptional<zod.ZodString>;
8886
8937
  }, zod_v4_core.$strip>>;
8887
8938
  nextCursor: zod.ZodOptional<zod.ZodString>;
@@ -20973,6 +21024,9 @@ declare const instanceOperations: {
20973
21024
  feedback: z.ZodOptional<z.ZodObject<{
20974
21025
  exchangeSnapshot: z.ZodBoolean;
20975
21026
  }, z.core.$strip>>;
21027
+ platformReport: z.ZodOptional<z.ZodObject<{
21028
+ available: z.ZodBoolean;
21029
+ }, z.core.$strip>>;
20976
21030
  knowledge: z.ZodOptional<z.ZodObject<{
20977
21031
  semanticSearch: z.ZodBoolean;
20978
21032
  }, z.core.$strip>>;
@@ -24440,6 +24494,31 @@ declare const pageOperations: {
24440
24494
  readonly effect: "reading";
24441
24495
  readonly rateClass: "read";
24442
24496
  }>;
24497
+ readonly "assets.preview": Operation<{
24498
+ readonly tag: "Assets";
24499
+ readonly id: "assets.preview";
24500
+ readonly method: "POST";
24501
+ readonly path: "/api/v1/assets/:kind/:name/preview";
24502
+ readonly summary: "Get the address a frame loads the preview of an asset's draft from";
24503
+ readonly body: zod.ZodObject<{}, zod_v4_core.$strict>;
24504
+ readonly response: {
24505
+ readonly kind: "json";
24506
+ readonly schema: zod.ZodObject<{
24507
+ number: zod.ZodNumber;
24508
+ url: zod.ZodString;
24509
+ pageSessionId: zod.ZodString;
24510
+ expiresAt: zod.ZodISODateTime;
24511
+ fileSetId: zod.ZodString;
24512
+ revision: zod.ZodNumber;
24513
+ }, zod_v4_core.$strip>;
24514
+ };
24515
+ readonly errors: readonly ["NOT_FOUND"];
24516
+ readonly auth: "user";
24517
+ readonly scope: "conversation:read";
24518
+ readonly requires: readonly [];
24519
+ readonly effect: "reading";
24520
+ readonly rateClass: "read";
24521
+ }>;
24443
24522
  };
24444
24523
 
24445
24524
  /**
@@ -25342,6 +25421,175 @@ declare const platformOperations: {
25342
25421
  }>;
25343
25422
  };
25344
25423
 
25424
+ /**
25425
+ * "Problem an Workshape melden" (PLATFORM-REPORT): a person who reads a conversation reports a
25426
+ * run of it that failed for a platform reason to the operator's support address. The mail
25427
+ * carries the run's id, the error code, the instance, the time and the person's note; nothing
25428
+ * of the conversation. One report per run and person, a few per person and hour. Only a
25429
+ * person in the interface sends one; an agent, a key or a Workflow is refused.
25430
+ */
25431
+ declare const platformReportOperations: {
25432
+ "platform_report.send": Operation<{
25433
+ readonly id: "platform_report.send";
25434
+ readonly method: "POST";
25435
+ readonly path: "/api/v1/conversations/:conversationId/runs/:runId/platform-report";
25436
+ readonly summary: "Report a run that failed for a platform reason to the operator's support address";
25437
+ readonly tag: "Conversations";
25438
+ readonly auth: "user";
25439
+ readonly scope: "conversation:read";
25440
+ readonly requires: readonly [];
25441
+ readonly effect: "changing";
25442
+ readonly body: zod.ZodObject<{
25443
+ note: zod.ZodOptional<zod.ZodString>;
25444
+ replyToMe: zod.ZodDefault<zod.ZodBoolean>;
25445
+ }, zod_v4_core.$strict>;
25446
+ readonly response: {
25447
+ readonly kind: "json";
25448
+ readonly schema: zod.ZodObject<{
25449
+ id: zod.ZodString;
25450
+ reportedAt: zod.ZodString;
25451
+ }, zod_v4_core.$strip>;
25452
+ };
25453
+ readonly errors: readonly ["NOT_FOUND", "CONFLICT", "FORBIDDEN", "VALIDATION_FAILED"];
25454
+ readonly rateClass: "write";
25455
+ } & {
25456
+ readonly accepted: zod.ZodObject<{
25457
+ id: zod.ZodString;
25458
+ operation: zod.ZodString;
25459
+ effect: zod.ZodEnum<{
25460
+ reading: "reading";
25461
+ changing: "changing";
25462
+ }>;
25463
+ status: zod.ZodEnum<{
25464
+ failed: "failed";
25465
+ running: "running";
25466
+ pending_confirmation: "pending_confirmation";
25467
+ pending_approval: "pending_approval";
25468
+ done: "done";
25469
+ denied: "denied";
25470
+ expired: "expired";
25471
+ }>;
25472
+ actor: zod.ZodObject<{
25473
+ kind: zod.ZodEnum<{
25474
+ user: "user";
25475
+ service_principal: "service_principal";
25476
+ }>;
25477
+ id: zod.ZodString;
25478
+ label: zod.ZodString;
25479
+ }, zod_v4_core.$strip>;
25480
+ origin: zod.ZodDiscriminatedUnion<[zod.ZodObject<{
25481
+ kind: zod.ZodLiteral<"agent">;
25482
+ agentRunId: zod.ZodString;
25483
+ conversationId: zod.ZodString;
25484
+ agentName: zod.ZodString;
25485
+ toolCallId: zod.ZodString;
25486
+ toolName: zod.ZodString;
25487
+ toolRevisionId: zod.ZodOptional<zod.ZodString>;
25488
+ boundBy: zod.ZodOptional<zod.ZodObject<{
25489
+ id: zod.ZodString;
25490
+ label: zod.ZodString;
25491
+ }, zod_v4_core.$strip>>;
25492
+ draft: zod.ZodOptional<zod.ZodObject<{
25493
+ kind: zod.ZodLiteral<"agent_preview">;
25494
+ asset: zod.ZodObject<{
25495
+ kind: zod.ZodString;
25496
+ id: zod.ZodString;
25497
+ name: zod.ZodString;
25498
+ }, zod_v4_core.$strip>;
25499
+ revisionId: zod.ZodString;
25500
+ part: zod.ZodString;
25501
+ }, zod_v4_core.$strip>>;
25502
+ }, zod_v4_core.$strip>, zod.ZodObject<{
25503
+ kind: zod.ZodLiteral<"user">;
25504
+ }, zod_v4_core.$strip>, zod.ZodObject<{
25505
+ kind: zod.ZodLiteral<"cli">;
25506
+ unattended: zod.ZodOptional<zod.ZodLiteral<true>>;
25507
+ }, zod_v4_core.$strip>, zod.ZodObject<{
25508
+ kind: zod.ZodLiteral<"mcp">;
25509
+ clientName: zod.ZodOptional<zod.ZodString>;
25510
+ }, zod_v4_core.$strip>, zod.ZodObject<{
25511
+ kind: zod.ZodLiteral<"app">;
25512
+ appName: zod.ZodOptional<zod.ZodString>;
25513
+ appRevisionId: zod.ZodString;
25514
+ actionName: zod.ZodString;
25515
+ pageSessionId: zod.ZodString;
25516
+ conversationId: zod.ZodOptional<zod.ZodString>;
25517
+ target: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
25518
+ connection: zod.ZodString;
25519
+ operation: zod.ZodString;
25520
+ }, zod_v4_core.$strip>, zod.ZodObject<{
25521
+ dataStore: zod.ZodString;
25522
+ }, zod_v4_core.$strip>, zod.ZodObject<{
25523
+ workflow: zod.ZodString;
25524
+ }, zod_v4_core.$strip>]>>;
25525
+ }, zod_v4_core.$strip>, zod.ZodObject<{
25526
+ kind: zod.ZodLiteral<"workflow">;
25527
+ workflowRunId: zod.ZodString;
25528
+ stepRunId: zod.ZodString;
25529
+ boundBy: zod.ZodOptional<zod.ZodObject<{
25530
+ id: zod.ZodString;
25531
+ label: zod.ZodString;
25532
+ }, zod_v4_core.$strip>>;
25533
+ }, zod_v4_core.$strip>, zod.ZodObject<{
25534
+ kind: zod.ZodLiteral<"schedule">;
25535
+ scheduleId: zod.ZodString;
25536
+ }, zod_v4_core.$strip>], "kind">;
25537
+ target: zod.ZodEnum<{
25538
+ live: "live";
25539
+ test: "test";
25540
+ dry_run: "dry_run";
25541
+ }>;
25542
+ app: zod.ZodOptional<zod.ZodObject<{
25543
+ title: zod.ZodOptional<zod.ZodString>;
25544
+ revision: zod.ZodOptional<zod.ZodNumber>;
25545
+ deleted: zod.ZodBoolean;
25546
+ }, zod_v4_core.$strip>>;
25547
+ workspaceId: zod.ZodOptional<zod.ZodString>;
25548
+ approvalRequestId: zod.ZodOptional<zod.ZodString>;
25549
+ inputHash: zod.ZodString;
25550
+ attempt: zod.ZodNumber;
25551
+ decision: zod.ZodOptional<zod.ZodObject<{
25552
+ mode: zod.ZodEnum<{
25553
+ direct: "direct";
25554
+ confirmed: "confirmed";
25555
+ approved: "approved";
25556
+ declined: "declined";
25557
+ }>;
25558
+ reason: zod.ZodOptional<zod.ZodEnum<{
25559
+ inherited_approval_not_applied: "inherited_approval_not_applied";
25560
+ workflow_publish: "workflow_publish";
25561
+ approved_by_caller: "approved_by_caller";
25562
+ }>>;
25563
+ by: zod.ZodString;
25564
+ byLabel: zod.ZodOptional<zod.ZodString>;
25565
+ at: zod.ZodISODateTime;
25566
+ comment: zod.ZodOptional<zod.ZodString>;
25567
+ }, zod_v4_core.$strip>>;
25568
+ error: zod.ZodOptional<zod.ZodObject<{
25569
+ code: zod.ZodString;
25570
+ message: zod.ZodString;
25571
+ reason: zod.ZodOptional<zod.ZodString>;
25572
+ }, zod_v4_core.$strip>>;
25573
+ usage: zod.ZodOptional<zod.ZodObject<{
25574
+ modelCalls: zod.ZodNumber;
25575
+ inputTokens: zod.ZodNumber;
25576
+ outputTokens: zod.ZodNumber;
25577
+ totalTokens: zod.ZodNumber;
25578
+ }, zod_v4_core.$strip>>;
25579
+ correlationId: zod.ZodString;
25580
+ createdAt: zod.ZodISODateTime;
25581
+ startedAt: zod.ZodOptional<zod.ZodISODateTime>;
25582
+ finishedAt: zod.ZodOptional<zod.ZodISODateTime>;
25583
+ expiresAt: zod.ZodOptional<zod.ZodISODateTime>;
25584
+ href: zod.ZodString;
25585
+ }, zod_v4_core.$strip>;
25586
+ readonly headers: {
25587
+ readonly request: readonly ["Idempotency-Key", "Catalyst-Unattended"];
25588
+ readonly response: readonly ["Operation-Run-Id", "Location", "Idempotent-Replayed"];
25589
+ };
25590
+ }>;
25591
+ };
25592
+
25345
25593
  declare const referenceOperations: {
25346
25594
  readonly "openapi.get": Operation<{
25347
25595
  readonly id: "openapi.get";
@@ -29582,7 +29830,7 @@ declare const workflowPrincipalRightsOperations: {
29582
29830
  * The type of {@link apiOperations}, named by area: inferred, the declarations would spell out
29583
29831
  * every operation's type in one node, which is more than the compiler writes out.
29584
29832
  */
29585
- type ApiOperations = typeof scheduledStartOperations & typeof approvalRequestOperations & typeof accountOperations & typeof instanceOperations & typeof roleOperations & typeof collaborationWorkspaceOperations & typeof conversationOperations & typeof conversationFileOperations & typeof governanceOperations & typeof jobOperations & typeof operationRunOperations & typeof pageOperations & typeof appOperations & typeof configAssetOperations & typeof assetOperations & typeof agentOperations & typeof connectionOperations & typeof guardrailOperations & typeof workflowOperations & typeof workflowPrincipalRightsOperations & typeof dataStoreOperations & typeof knowledgeOperations & typeof userOperations & typeof apiAccessOperations & typeof personalApiKeyOperations & typeof feedbackOperations & typeof accessOperations & typeof credentialOperations & typeof platformOperations & typeof referenceOperations & typeof systemOperations;
29833
+ type ApiOperations = typeof scheduledStartOperations & typeof approvalRequestOperations & typeof accountOperations & typeof instanceOperations & typeof roleOperations & typeof collaborationWorkspaceOperations & typeof conversationOperations & typeof conversationFileOperations & typeof governanceOperations & typeof jobOperations & typeof operationRunOperations & typeof pageOperations & typeof appOperations & typeof configAssetOperations & typeof assetOperations & typeof agentOperations & typeof connectionOperations & typeof guardrailOperations & typeof workflowOperations & typeof workflowPrincipalRightsOperations & typeof dataStoreOperations & typeof knowledgeOperations & typeof userOperations & typeof apiAccessOperations & typeof personalApiKeyOperations & typeof feedbackOperations & typeof platformReportOperations & typeof accessOperations & typeof credentialOperations & typeof platformOperations & typeof referenceOperations & typeof systemOperations;
29586
29834
  /** Every product operation of the HTTP API, one file per area. */
29587
29835
  declare const apiOperations: ApiOperations;
29588
29836
 
@@ -29859,7 +30107,7 @@ declare const assetSchema: z.ZodObject<{
29859
30107
  publishedRevision: z.ZodOptional<z.ZodNumber>;
29860
30108
  liveVersion: z.ZodOptional<z.ZodObject<{
29861
30109
  number: z.ZodNumber;
29862
- publishedAt: z.ZodISODateTime;
30110
+ publishedAt: z.ZodOptional<z.ZodISODateTime>;
29863
30111
  by: z.ZodOptional<z.ZodString>;
29864
30112
  }, z.core.$strip>>;
29865
30113
  draftChangedSinceLive: z.ZodOptional<z.ZodBoolean>;
@@ -30077,9 +30325,11 @@ declare function createConfigApi(options: ConfigApiOptions): Promise<{
30077
30325
  pageId: string;
30078
30326
  fileSetNumber: number;
30079
30327
  byAgent?: true | undefined;
30328
+ agentDisplayName?: string | undefined;
30080
30329
  } | {
30081
30330
  kind: "agent_run";
30082
30331
  conversationId: string;
30332
+ agentDisplayName?: string | undefined;
30083
30333
  } | undefined;
30084
30334
  } | undefined>;
30085
30335
  /** Asks whether a sync of the batch would be applied. A refusal throws as the sync's. */
package/dist/index.js CHANGED
@@ -1940,6 +1940,9 @@ var FEEDBACK_NOTE_MAX_LENGTH = 2e3;
1940
1940
  var FEEDBACK_SUBJECT_KINDS = ["message"];
1941
1941
  var FEEDBACK_STATES = ["new", "handled"];
1942
1942
 
1943
+ // ../asset-schemas/src/platform-report-values.ts
1944
+ var PLATFORM_REPORT_NOTE_MAX_LENGTH = 2e3;
1945
+
1943
1946
  // ../asset-schemas/src/callable-operations.ts
1944
1947
  import { z as z10 } from "zod";
1945
1948
  var operationSourceSchema = z10.object({
@@ -1970,6 +1973,11 @@ var callableOperationsPageSchema = z10.object({
1970
1973
  truncated: z10.boolean()
1971
1974
  });
1972
1975
 
1976
+ // ../asset-schemas/src/preview-capture.ts
1977
+ var PREVIEW_CAPTURE_MAX_WIDTH = 1280;
1978
+ var PREVIEW_CAPTURE_MAX_HEIGHT = 1600;
1979
+ var PREVIEW_CAPTURE_MAX_BYTES = 4e5;
1980
+
1973
1981
  // ../asset-schemas/src/preview-report.ts
1974
1982
  import { z as z11 } from "zod";
1975
1983
  var PREVIEW_REPORT_MAX_ENTRIES = 10;
@@ -1999,6 +2007,8 @@ var previewReportEntrySchema = z11.strictObject({
1999
2007
  /** The page's file the entry came from, relative to the page. */
2000
2008
  file: z11.string().min(1).max(FILE_MAX_CHARS).optional(),
2001
2009
  line: z11.number().int().min(0).max(1e7).optional(),
2010
+ /** One-based column; the server resolves bundle coordinates to authored source. */
2011
+ column: z11.number().int().min(0).max(1e7).optional(),
2002
2012
  count: z11.number().int().min(1).max(1e9)
2003
2013
  });
2004
2014
  var previewReportSchema = z11.strictObject({
@@ -2049,14 +2059,26 @@ var guardReportSchema = z12.strictObject({
2049
2059
  message: z12.string().max(APP_BRIDGE_REPORT_MAX_CHARS),
2050
2060
  file: z12.string().max(APP_BRIDGE_REPORT_MAX_CHARS).optional(),
2051
2061
  line: reportCount.optional(),
2062
+ column: reportCount.optional(),
2052
2063
  count: reportCount.min(1)
2053
2064
  })
2054
2065
  ).max(PREVIEW_REPORT_MAX_ENTRIES),
2055
2066
  more: reportCount
2056
2067
  });
2068
+ var capturedPixels = (max) => z12.number().int().min(1).max(max);
2069
+ var captureResultSchema = z12.strictObject({
2070
+ ...mark,
2071
+ type: z12.literal("capture_result"),
2072
+ requestId,
2073
+ image: z12.instanceof(ArrayBuffer).refine((bytes) => bytes.byteLength > 0 && bytes.byteLength <= PREVIEW_CAPTURE_MAX_BYTES).optional(),
2074
+ width: capturedPixels(PREVIEW_CAPTURE_MAX_WIDTH).optional(),
2075
+ height: capturedPixels(PREVIEW_CAPTURE_MAX_HEIGHT).optional(),
2076
+ unavailable: z12.literal(true).optional()
2077
+ });
2057
2078
  var appBridgePageMessageSchema = z12.discriminatedUnion("type", [
2058
2079
  z12.strictObject({ ...mark, type: z12.literal("ready") }),
2059
2080
  z12.strictObject({ ...mark, type: z12.literal("report"), report: guardReportSchema }),
2081
+ captureResultSchema,
2060
2082
  z12.strictObject({
2061
2083
  ...mark,
2062
2084
  type: z12.literal("storage_write"),
@@ -2182,6 +2204,9 @@ var appBridgeHostMessageSchema = z12.discriminatedUnion("type", [
2182
2204
  ok: z12.boolean()
2183
2205
  }),
2184
2206
  z12.strictObject({ ...mark, type: z12.literal("context"), session, context: appBridgeContextSchema }),
2207
+ // Asks the platform's guard for a picture of the Page (PREVIEW-SEE-1). The guard answers it,
2208
+ // not the kit, so it carries no session.
2209
+ z12.strictObject({ ...mark, type: z12.literal("capture"), requestId }),
2185
2210
  z12.strictObject({
2186
2211
  ...mark,
2187
2212
  type: z12.literal("theme"),
@@ -2537,12 +2562,12 @@ function buildPath(pathTemplate, queryParamNames, options = {}) {
2537
2562
  }
2538
2563
 
2539
2564
  // ../api-contract/src/openapi.ts
2540
- import { z as z59 } from "zod";
2565
+ import { z as z60 } from "zod";
2541
2566
 
2542
2567
  // ../api-contract/package.json
2543
2568
  var package_default = {
2544
2569
  name: "@work-shape/catalyst-api-contract",
2545
- version: "0.8.0-rc.15",
2570
+ version: "0.8.0-rc.17",
2546
2571
  license: "MIT",
2547
2572
  repository: {
2548
2573
  type: "git",
@@ -3518,6 +3543,12 @@ var safeConfigSchema = z23.object({
3518
3543
  modules: z23.record(z23.string(), z23.object({ enabled: z23.boolean() })).default({}),
3519
3544
  /** Written feedback on agent messages: whether the comment may carry its exchange. */
3520
3545
  feedback: z23.object({ exchangeSnapshot: z23.boolean() }).optional(),
3546
+ /**
3547
+ * Whether a run that failed for a platform reason offers a report to the operator: release
3548
+ * config names a support address and the instance sends platform mail. Absent in the answer
3549
+ * of an API from before the report; the interface reads that as false.
3550
+ */
3551
+ platformReport: z23.object({ available: z23.boolean() }).optional(),
3521
3552
  /**
3522
3553
  * Knowledge Bases on this instance. `semanticSearch`: the knowledge module is on and release
3523
3554
  * config names a default embedding binding, so a Knowledge Base can search by meaning; a new
@@ -3665,9 +3696,8 @@ var configAssetSummarySchema = z23.object({
3665
3696
  var configAssetConfigSchema = z23.record(z23.string(), z23.unknown());
3666
3697
  var configAssetRevisionSchema = z23.object({
3667
3698
  /**
3668
- * The id of the asset the revision counts. It stays the same from the first revision to
3669
- * the delete and across a name that is created again, so a caller that keeps it knows a
3670
- * later asset of the same name and number for another one.
3699
+ * The identity of the asset the revision counts. An App deleted and created again under
3700
+ * the same name has another id, even when its revision numbers start at 1 again.
3671
3701
  */
3672
3702
  assetId: z23.string(),
3673
3703
  revision: z23.number().int().positive(),
@@ -3687,9 +3717,14 @@ var configAssetRevisionSchema = z23.object({
3687
3717
  /** The number of the Page revision the files were copied from. */
3688
3718
  fileSetNumber: z23.number().int().positive(),
3689
3719
  /** The conversation's agent saved the Page, not a person from its preview. */
3690
- byAgent: z23.literal(true).optional()
3720
+ byAgent: z23.literal(true).optional(),
3721
+ agentDisplayName: z23.string().optional()
3691
3722
  }),
3692
- z23.object({ kind: z23.literal("agent_run"), conversationId: z23.string() })
3723
+ z23.object({
3724
+ kind: z23.literal("agent_run"),
3725
+ conversationId: z23.string(),
3726
+ agentDisplayName: z23.string().optional()
3727
+ })
3693
3728
  ]).optional(),
3694
3729
  globalVersion: z23.number().int().positive(),
3695
3730
  createdAt: timestampSchema
@@ -3700,7 +3735,8 @@ var configAssetPublicationSchema = z23.object({
3700
3735
  revision: z23.number().int().positive(),
3701
3736
  /** Null where it is not known, as for a publish from before the versions were recorded. */
3702
3737
  actor: auditActorSchema.nullable(),
3703
- publishedAt: timestampSchema,
3738
+ /** Absent where the historical publish time is unknown. */
3739
+ publishedAt: timestampSchema.optional(),
3704
3740
  note: z23.string().optional()
3705
3741
  });
3706
3742
  var toolGroupSchema = z23.enum(TOOL_GROUPS);
@@ -4219,7 +4255,7 @@ var assetSchema = z27.object({
4219
4255
  */
4220
4256
  liveVersion: z27.object({
4221
4257
  number: z27.number().int().positive(),
4222
- publishedAt: timestampSchema,
4258
+ publishedAt: timestampSchema.optional(),
4223
4259
  /** The name of who published, as the account is now; empty for one that is gone. */
4224
4260
  by: z27.string().optional()
4225
4261
  }).optional(),
@@ -5785,6 +5821,11 @@ var pagePreviewSchema = z30.object({
5785
5821
  heldBackHosts: z30.array(z30.string()).optional(),
5786
5822
  draftHosts: draftHostsSchema.optional()
5787
5823
  });
5824
+ var assetPreviewSchema = pagePreviewSchema.pick({ url: true, expiresAt: true, fileSetId: true, number: true, pageSessionId: true }).extend({
5825
+ /** The number of the asset revision shown: its draft. */
5826
+ revision: z30.number().int().positive()
5827
+ });
5828
+ var assetPreviewRequestSchema = z30.object({}).strict();
5788
5829
 
5789
5830
  // ../api-contract/src/apps.ts
5790
5831
  var APP_ASSET_KIND = "app";
@@ -5920,6 +5961,18 @@ var appPreviewReportRequestSchema = z31.object({
5920
5961
  report: previewReportSchema
5921
5962
  }).strict();
5922
5963
  var appPreviewReportResponseSchema = z31.object({ stored: z31.boolean() }).strict();
5964
+ var appPreviewCaptureAnswerRequestSchema = z31.object({
5965
+ ...pageSessionProof,
5966
+ conversationId: z31.string().min(1).max(200).optional(),
5967
+ image: z31.base64().max(Math.ceil(PREVIEW_CAPTURE_MAX_BYTES / 3) * 4).optional(),
5968
+ unavailable: z31.literal(true).optional()
5969
+ }).strict().refine((answer) => answer.image === void 0 !== (answer.unavailable === void 0), {
5970
+ message: "An answer holds either the picture or that none can be taken"
5971
+ });
5972
+ var appPreviewCaptureAnswerResponseSchema = z31.object({ accepted: z31.boolean() }).strict();
5973
+ var pendingPreviewCapturesSchema = z31.object({
5974
+ captures: z31.array(z31.object({ id: z31.string(), fileSetId: z31.string() }).strict())
5975
+ }).strict();
5923
5976
  var appSessionContextSchema = z31.object({
5924
5977
  can: z31.record(z31.string(), appActionPermissionSchema)
5925
5978
  });
@@ -6274,6 +6327,40 @@ var appOperations = {
6274
6327
  errors: ["NOT_FOUND", "VALIDATION_FAILED"],
6275
6328
  rateClass: "write"
6276
6329
  }),
6330
+ // The capture requests a run of the caller's turn made in a conversation (PREVIEW-SEE-1),
6331
+ // asked when the interface sees a run call `preview.capture`. Only the caller's own.
6332
+ "apps.preview_captures.pending": defineOperation({
6333
+ id: "apps.preview_captures.pending",
6334
+ method: "GET",
6335
+ path: "/api/v1/conversations/:conversationId/preview-captures",
6336
+ summary: "List the caller's capture requests of a conversation that wait for their browser",
6337
+ tag: "Apps",
6338
+ auth: "user",
6339
+ scope: "conversation:read",
6340
+ requires: [],
6341
+ effect: "reading",
6342
+ response: json(pendingPreviewCapturesSchema),
6343
+ errors: ["NOT_FOUND"],
6344
+ rateClass: "read"
6345
+ }),
6346
+ // POST because it carries the token of the frame's address, which never stands in a path. A
6347
+ // picture for the model of one run, not a governance event: no Operation Run, audit event or
6348
+ // log line holds it, so it is no registered operation.
6349
+ "apps.sessions.capture": defineOperation({
6350
+ id: "apps.sessions.capture",
6351
+ method: "POST",
6352
+ path: "/api/v1/app-content-sessions/:pageSessionId/captures/:captureId",
6353
+ summary: "Answer a run's capture request with a picture of the preview a frame shows, or that none can be taken",
6354
+ tag: "Apps",
6355
+ auth: "user",
6356
+ scope: "conversation:write",
6357
+ requires: [],
6358
+ effect: "changing",
6359
+ body: appPreviewCaptureAnswerRequestSchema,
6360
+ response: json(appPreviewCaptureAnswerResponseSchema),
6361
+ errors: ["NOT_FOUND", "VALIDATION_FAILED"],
6362
+ rateClass: "write"
6363
+ }),
6277
6364
  "apps.sessions.write_storage": defineRegisteredOperation({
6278
6365
  id: "apps.sessions.write_storage",
6279
6366
  method: "POST",
@@ -10440,6 +10527,19 @@ var pageOperations = {
10440
10527
  body: pagePreviewRequestSchema,
10441
10528
  response: json(pagePreviewSchema),
10442
10529
  errors: ["NOT_FOUND"]
10530
+ }),
10531
+ // The draft of an asset whose kind brings a preview, such as a form page, shown in the frame
10532
+ // of a Page to the person who may write it. POST for the reason above.
10533
+ "assets.preview": defineOperation({
10534
+ ...pageAccess,
10535
+ tag: "Assets",
10536
+ id: "assets.preview",
10537
+ method: "POST",
10538
+ path: "/api/v1/assets/:kind/:name/preview",
10539
+ summary: "Get the address a frame loads the preview of an asset's draft from",
10540
+ body: assetPreviewRequestSchema,
10541
+ response: json(assetPreviewSchema),
10542
+ errors: ["NOT_FOUND"]
10443
10543
  })
10444
10544
  };
10445
10545
 
@@ -10843,6 +10943,38 @@ var platformOperations = {
10843
10943
  })
10844
10944
  };
10845
10945
 
10946
+ // ../api-contract/src/platform-report.ts
10947
+ import { z as z55 } from "zod";
10948
+ var sendPlatformReportRequestSchema = z55.object({
10949
+ /** What the person was doing. It goes into the mail and is kept nowhere. */
10950
+ note: z55.string().trim().max(PLATFORM_REPORT_NOTE_MAX_LENGTH).optional(),
10951
+ /** The person's address becomes the mail's Reply-To. Never its From. */
10952
+ replyToMe: z55.boolean().default(false)
10953
+ }).strict();
10954
+ var platformReportSchema = z55.object({
10955
+ id: z55.string(),
10956
+ reportedAt: z55.string()
10957
+ });
10958
+
10959
+ // ../api-contract/src/operations/platform-report.ts
10960
+ var platformReportOperations = {
10961
+ "platform_report.send": defineRegisteredOperation({
10962
+ id: "platform_report.send",
10963
+ method: "POST",
10964
+ path: "/api/v1/conversations/:conversationId/runs/:runId/platform-report",
10965
+ summary: "Report a run that failed for a platform reason to the operator's support address",
10966
+ tag: "Conversations",
10967
+ auth: "user",
10968
+ scope: "conversation:read",
10969
+ requires: [],
10970
+ effect: "changing",
10971
+ body: sendPlatformReportRequestSchema,
10972
+ response: json(platformReportSchema),
10973
+ errors: ["NOT_FOUND", "CONFLICT", "FORBIDDEN", "VALIDATION_FAILED"],
10974
+ rateClass: "write"
10975
+ })
10976
+ };
10977
+
10846
10978
  // ../api-contract/src/operations/reference.ts
10847
10979
  var referenceOperations = {
10848
10980
  "openapi.get": defineOperation({
@@ -10876,7 +11008,7 @@ var referenceOperations = {
10876
11008
  };
10877
11009
 
10878
11010
  // ../api-contract/src/operations/roles.ts
10879
- import { z as z55 } from "zod";
11011
+ import { z as z56 } from "zod";
10880
11012
  var roleOperations = {
10881
11013
  "roles.list": defineOperation({
10882
11014
  id: "roles.list",
@@ -10888,7 +11020,7 @@ var roleOperations = {
10888
11020
  scope: "user_admin:read",
10889
11021
  requires: ["users.manage"],
10890
11022
  effect: "reading",
10891
- response: json(z55.object({ items: z55.array(roleSchema) })),
11023
+ response: json(z56.object({ items: z56.array(roleSchema) })),
10892
11024
  errors: [],
10893
11025
  rateClass: "read"
10894
11026
  }),
@@ -10982,45 +11114,45 @@ var roleOperations = {
10982
11114
  };
10983
11115
 
10984
11116
  // ../api-contract/src/system.ts
10985
- import { z as z56 } from "zod";
10986
- var healthSchema = z56.object({
10987
- status: z56.literal("ok"),
10988
- clientInstanceId: z56.string(),
11117
+ import { z as z57 } from "zod";
11118
+ var healthSchema = z57.object({
11119
+ status: z57.literal("ok"),
11120
+ clientInstanceId: z57.string(),
10989
11121
  time: timestampSchema
10990
11122
  });
10991
- var readySchema = z56.object({
10992
- status: z56.literal("ready"),
11123
+ var readySchema = z57.object({
11124
+ status: z57.literal("ready"),
10993
11125
  /** The newest migration of this release. */
10994
- migration: z56.string()
11126
+ migration: z57.string()
10995
11127
  });
10996
- var notReadySchema = z56.object({
10997
- status: z56.literal("not_ready"),
10998
- reason: z56.enum(["database_unreachable", "database_behind"]),
10999
- missing: z56.array(z56.string()).optional()
11128
+ var notReadySchema = z57.object({
11129
+ status: z57.literal("not_ready"),
11130
+ reason: z57.enum(["database_unreachable", "database_behind"]),
11131
+ missing: z57.array(z57.string()).optional()
11000
11132
  });
11001
- var readinessSchema = z56.discriminatedUnion("status", [readySchema, notReadySchema]);
11002
- var capturedRecipientSchema = z56.object({
11003
- email: z56.string(),
11004
- displayLabel: z56.string().optional()
11133
+ var readinessSchema = z57.discriminatedUnion("status", [readySchema, notReadySchema]);
11134
+ var capturedRecipientSchema = z57.object({
11135
+ email: z57.string(),
11136
+ displayLabel: z57.string().optional()
11005
11137
  });
11006
- var capturedMailSchema = z56.object({
11007
- id: z56.string(),
11008
- from: z56.object({ email: z56.string(), name: z56.string() }),
11138
+ var capturedMailSchema = z57.object({
11139
+ id: z57.string(),
11140
+ from: z57.object({ email: z57.string(), name: z57.string() }),
11009
11141
  to: capturedRecipientSchema,
11010
- recipients: z56.object({
11011
- to: z56.array(capturedRecipientSchema),
11012
- cc: z56.array(capturedRecipientSchema),
11013
- bcc: z56.array(capturedRecipientSchema)
11142
+ recipients: z57.object({
11143
+ to: z57.array(capturedRecipientSchema),
11144
+ cc: z57.array(capturedRecipientSchema),
11145
+ bcc: z57.array(capturedRecipientSchema)
11014
11146
  }),
11015
11147
  replyTo: capturedRecipientSchema.optional(),
11016
- subject: z56.string(),
11017
- text: z56.string(),
11018
- html: z56.string(),
11019
- inlineImages: z56.array(
11020
- z56.object({
11021
- contentId: z56.string(),
11022
- contentType: z56.string(),
11023
- bytes: z56.number().int().min(0)
11148
+ subject: z57.string(),
11149
+ text: z57.string(),
11150
+ html: z57.string(),
11151
+ inlineImages: z57.array(
11152
+ z57.object({
11153
+ contentId: z57.string(),
11154
+ contentType: z57.string(),
11155
+ bytes: z57.number().int().min(0)
11024
11156
  })
11025
11157
  ).optional(),
11026
11158
  sentAt: timestampSchema
@@ -11269,69 +11401,69 @@ var userOperations = {
11269
11401
  };
11270
11402
 
11271
11403
  // ../api-contract/src/operations/workflows.ts
11272
- import { z as z57 } from "zod";
11404
+ import { z as z58 } from "zod";
11273
11405
  var WORKFLOW_RUN_OUTPUT_PREVIEW_MAX_CHARS = 2e3;
11274
11406
  var WORKFLOW_RUN_KEY_MAX_CHARS = 200;
11275
- var runKeySchema = z57.string().min(1).max(WORKFLOW_RUN_KEY_MAX_CHARS);
11276
- var runStatusSchema = z57.enum(WORKFLOW_RUN_STATUSES);
11277
- var stepRunStatusSchema = z57.enum(WORKFLOW_STEP_RUN_STATUSES);
11278
- var stepTypeSchema = z57.enum([...WORKFLOW_STEP_TYPES, ...WORKFLOW_RESERVED_STEP_TYPES]);
11279
- var countsSchema2 = z57.object({
11280
- total: z57.number().int().min(0),
11281
- done: z57.number().int().min(0),
11282
- failed: z57.number().int().min(0),
11283
- running: z57.number().int().min(0)
11284
- });
11285
- var workflowRunErrorSchema = z57.object({
11407
+ var runKeySchema = z58.string().min(1).max(WORKFLOW_RUN_KEY_MAX_CHARS);
11408
+ var runStatusSchema = z58.enum(WORKFLOW_RUN_STATUSES);
11409
+ var stepRunStatusSchema = z58.enum(WORKFLOW_STEP_RUN_STATUSES);
11410
+ var stepTypeSchema = z58.enum([...WORKFLOW_STEP_TYPES, ...WORKFLOW_RESERVED_STEP_TYPES]);
11411
+ var countsSchema2 = z58.object({
11412
+ total: z58.number().int().min(0),
11413
+ done: z58.number().int().min(0),
11414
+ failed: z58.number().int().min(0),
11415
+ running: z58.number().int().min(0)
11416
+ });
11417
+ var workflowRunErrorSchema = z58.object({
11286
11418
  /** A code of the engine, or the code of the refusal or failure of the step's operation. */
11287
- code: z57.string(),
11419
+ code: z58.string(),
11288
11420
  /** A sentence of the product. Never a value of the run and never text of an outside system. */
11289
- message: z57.string(),
11421
+ message: z58.string(),
11290
11422
  /** Where the run's principal was refused for a right it does not hold: that right. */
11291
- action: z57.string().optional(),
11423
+ action: z58.string().optional(),
11292
11424
  /** The Connection of a refused connection.use call, as the step recorded it. */
11293
- connection: z57.string().optional(),
11425
+ connection: z58.string().optional(),
11294
11426
  /** That Connection's display name, where the reader may read or use it. */
11295
- connectionTitle: z57.string().optional(),
11427
+ connectionTitle: z58.string().optional(),
11296
11428
  /** On `confirmation_unattended`: the operation an agent step called that needed one. */
11297
- operation: z57.string().optional(),
11429
+ operation: z58.string().optional(),
11298
11430
  /** On a run: the step run it ended at. */
11299
- stepRunId: z57.string().optional()
11431
+ stepRunId: z58.string().optional()
11300
11432
  });
11301
- var workflowOutputPreviewSchema = z57.object({
11433
+ var workflowOutputPreviewSchema = z58.object({
11302
11434
  /** The start of the value as JSON. */
11303
- text: z57.string().max(WORKFLOW_RUN_OUTPUT_PREVIEW_MAX_CHARS),
11304
- truncated: z57.boolean()
11435
+ text: z58.string().max(WORKFLOW_RUN_OUTPUT_PREVIEW_MAX_CHARS),
11436
+ truncated: z58.boolean()
11305
11437
  });
11306
- var datasetMetadataSchema = z57.object({
11307
- id: z57.string(),
11308
- rowSchema: z57.record(z57.string(), z57.unknown()),
11309
- rowCount: z57.number().int().min(0),
11310
- bytes: z57.number().int().min(0),
11311
- state: z57.enum(WORKFLOW_DATASET_STATES)
11438
+ var datasetMetadataSchema = z58.object({
11439
+ id: z58.string(),
11440
+ rowSchema: z58.record(z58.string(), z58.unknown()),
11441
+ rowCount: z58.number().int().min(0),
11442
+ bytes: z58.number().int().min(0),
11443
+ state: z58.enum(WORKFLOW_DATASET_STATES)
11312
11444
  });
11313
- var workflowRunSchema = z57.object({
11445
+ var workflowRunSchema = z58.object({
11314
11446
  /** Descendants that failed, reached a limit or contain failed items, excluding this run. */
11315
- failedDescendantCount: z57.number().int().min(0).optional(),
11316
- failedItemCount: z57.number().int().min(0).optional(),
11317
- id: z57.string(),
11318
- workflow: z57.string(),
11447
+ failedDescendantCount: z58.number().int().min(0).optional(),
11448
+ failedItemCount: z58.number().int().min(0).optional(),
11449
+ id: z58.string(),
11450
+ workflow: z58.string(),
11319
11451
  /** The revision of the definition the run started on and keeps to its end. */
11320
- definitionRevisionId: z57.string(),
11321
- mode: z57.enum(WORKFLOW_RUN_MODES),
11322
- trigger: z57.enum(WORKFLOW_TRIGGER_KINDS),
11452
+ definitionRevisionId: z58.string(),
11453
+ mode: z58.enum(WORKFLOW_RUN_MODES),
11454
+ trigger: z58.enum(WORKFLOW_TRIGGER_KINDS),
11323
11455
  status: runStatusSchema,
11324
11456
  /** A completed data run whose write steps handled no items. */
11325
- empty: z57.boolean().optional(),
11457
+ empty: z58.boolean().optional(),
11326
11458
  /**
11327
11459
  * The service principal the run acts as. Its rights are the rights of every step. A test run
11328
11460
  * (`mode: test`) acts as the person who started it, bounded by this principal.
11329
11461
  */
11330
- principal: z57.object({ id: z57.string(), name: z57.string(), displayLabel: z57.string() }),
11331
- startedBy: z57.object({
11332
- kind: z57.enum(PRINCIPAL_HOLDER_KINDS),
11333
- id: z57.string(),
11334
- label: z57.string()
11462
+ principal: z58.object({ id: z58.string(), name: z58.string(), displayLabel: z58.string() }),
11463
+ startedBy: z58.object({
11464
+ kind: z58.enum(PRINCIPAL_HOLDER_KINDS),
11465
+ id: z58.string(),
11466
+ label: z58.string()
11335
11467
  }),
11336
11468
  /** The due time of the schedule that started the run. Missing on every other run. */
11337
11469
  scheduledFor: timestampSchema.optional(),
@@ -11339,45 +11471,45 @@ var workflowRunSchema = z57.object({
11339
11471
  * The run key its start gave the run, such as `2026-09/1402`. Among the Workflow's runs that
11340
11472
  * are open or `done` a key exists once per starter. Missing on a run started without one.
11341
11473
  */
11342
- runKey: z57.string().optional(),
11343
- labels: z57.record(z57.string(), z57.string()).optional(),
11344
- continuation: z57.object({
11345
- rootRunId: z57.string(),
11346
- previousRunId: z57.string().optional(),
11347
- successorRunId: z57.string().optional(),
11348
- number: z57.number().int().positive()
11474
+ runKey: z58.string().optional(),
11475
+ labels: z58.record(z58.string(), z58.string()).optional(),
11476
+ continuation: z58.object({
11477
+ rootRunId: z58.string(),
11478
+ previousRunId: z58.string().optional(),
11479
+ successorRunId: z58.string().optional(),
11480
+ number: z58.number().int().positive()
11349
11481
  }).optional(),
11350
11482
  /** The Operation Run of the call that started the run. */
11351
- operationRunId: z57.string().optional(),
11483
+ operationRunId: z58.string().optional(),
11352
11484
  /**
11353
11485
  * The action of an App's draft whose click started this test run (DP-1): the App, the
11354
11486
  * revision of its draft and the action, by name, and whether the Workflow's draft or its
11355
11487
  * published revision ran. Missing on every other run.
11356
11488
  */
11357
- startedFrom: z57.object({
11358
- kind: z57.literal("app"),
11359
- app: z57.string(),
11360
- appRevisionId: z57.string(),
11361
- action: z57.string(),
11362
- workflowRevision: z57.enum(WORKFLOW_TEST_REVISIONS)
11489
+ startedFrom: z58.object({
11490
+ kind: z58.literal("app"),
11491
+ app: z58.string(),
11492
+ appRevisionId: z58.string(),
11493
+ action: z58.string(),
11494
+ workflowRevision: z58.enum(WORKFLOW_TEST_REVISIONS)
11363
11495
  }).optional(),
11364
- parentRunId: z57.string().optional(),
11365
- parentStepRunId: z57.string().optional(),
11366
- rootRunId: z57.string(),
11367
- depth: z57.number().int().min(0).max(2),
11368
- itemIndex: z57.number().int().min(0).optional(),
11369
- itemLabel: z57.string().optional(),
11370
- stepRunCount: z57.number().int().min(0),
11496
+ parentRunId: z58.string().optional(),
11497
+ parentStepRunId: z58.string().optional(),
11498
+ rootRunId: z58.string(),
11499
+ depth: z58.number().int().min(0).max(2),
11500
+ itemIndex: z58.number().int().min(0).optional(),
11501
+ itemLabel: z58.string().optional(),
11502
+ stepRunCount: z58.number().int().min(0),
11371
11503
  /** After this moment no further step starts and the run ends as `limit_reached`. */
11372
11504
  deadlineAt: timestampSchema,
11373
11505
  error: workflowRunErrorSchema.optional(),
11374
11506
  outputPreview: workflowOutputPreviewSchema.optional(),
11375
- datasets: z57.array(datasetMetadataSchema).optional(),
11507
+ datasets: z58.array(datasetMetadataSchema).optional(),
11376
11508
  createdAt: timestampSchema,
11377
11509
  startedAt: timestampSchema.optional(),
11378
11510
  finishedAt: timestampSchema.optional(),
11379
11511
  /** The person who cancelled the run. Missing where a service principal did, and on a run nobody cancelled. */
11380
- cancelledBy: z57.string().optional(),
11512
+ cancelledBy: z58.string().optional(),
11381
11513
  cancelledAt: timestampSchema.optional(),
11382
11514
  /**
11383
11515
  * When the values of the run were removed: its input and result, and the inputs and outputs
@@ -11385,91 +11517,91 @@ var workflowRunSchema = z57.object({
11385
11517
  */
11386
11518
  dataPrunedAt: timestampSchema.optional()
11387
11519
  });
11388
- var workflowStepTranscriptSchema = z57.object({
11389
- runId: z57.string(),
11390
- messages: z57.array(
11391
- z57.object({
11392
- role: z57.string(),
11393
- text: z57.string(),
11394
- toolCalls: z57.array(z57.object({ toolName: z57.string(), input: z57.unknown().optional() })).optional()
11520
+ var workflowStepTranscriptSchema = z58.object({
11521
+ runId: z58.string(),
11522
+ messages: z58.array(
11523
+ z58.object({
11524
+ role: z58.string(),
11525
+ text: z58.string(),
11526
+ toolCalls: z58.array(z58.object({ toolName: z58.string(), input: z58.unknown().optional() })).optional()
11395
11527
  })
11396
11528
  ),
11397
- truncated: z57.boolean()
11529
+ truncated: z58.boolean()
11398
11530
  });
11399
- var workflowStepRunSchema = z57.object({
11400
- id: z57.string(),
11401
- runId: z57.string(),
11402
- stepId: z57.string(),
11531
+ var workflowStepRunSchema = z58.object({
11532
+ id: z58.string(),
11533
+ runId: z58.string(),
11534
+ stepId: z58.string(),
11403
11535
  stepType: stepTypeSchema,
11404
11536
  /** The step's path in the run, such as `each_client[3].bookings`. */
11405
- key: z57.string(),
11537
+ key: z58.string(),
11406
11538
  /** The step run of the block that holds the step: today a loop. */
11407
- containerStepRunId: z57.string().optional(),
11539
+ containerStepRunId: z58.string().optional(),
11408
11540
  /** The branch of that block the step stands in. No block with branches runs yet. */
11409
- branch: z57.string().optional(),
11541
+ branch: z58.string().optional(),
11410
11542
  /** Which item of that loop, from 0, and what the loop's `itemLabel` field holds for it. */
11411
- iteration: z57.object({ index: z57.number().int().min(0), label: z57.string().optional() }).optional(),
11543
+ iteration: z58.object({ index: z58.number().int().min(0), label: z58.string().optional() }).optional(),
11412
11544
  /** On the step run of a loop: how many items it has and how far they are. */
11413
11545
  loop: countsSchema2.optional(),
11414
11546
  /** On the step run of a loop: how the step runs of each step directly inside it stand, by step id. */
11415
- bodyCounts: z57.record(z57.string(), countsSchema2).optional(),
11547
+ bodyCounts: z58.record(z58.string(), countsSchema2).optional(),
11416
11548
  /**
11417
11549
  * On the step run of a loop: how many of its items run at once. `asked` is the loop's
11418
11550
  * `concurrency`, an upper bound; `ranWith` is what one process runs of it, which the step
11419
11551
  * slots of a process bound.
11420
11552
  */
11421
- concurrency: z57.object({ asked: z57.number().int().min(1), ranWith: z57.number().int().min(1) }).optional(),
11553
+ concurrency: z58.object({ asked: z58.number().int().min(1), ranWith: z58.number().int().min(1) }).optional(),
11422
11554
  /** On the step run of an operation step: what its operation does and what it belongs to. */
11423
- effect: z57.enum(OPERATION_EFFECTS).optional(),
11424
- source: z57.string().optional(),
11555
+ effect: z58.enum(OPERATION_EFFECTS).optional(),
11556
+ source: z58.string().optional(),
11425
11557
  /**
11426
11558
  * On the step run of an operation step: where its call went (ADR-0031). `live` on every step
11427
11559
  * of a run of the published revision; in a test run `dry_run` for a changing step that was
11428
11560
  * simulated, `test` for a call to a test target, `live` for a read and for "Run live once".
11429
11561
  */
11430
- target: z57.enum(OPERATION_TARGETS).optional(),
11562
+ target: z58.enum(OPERATION_TARGETS).optional(),
11431
11563
  /**
11432
11564
  * On a step run of a test run: the tester's start satisfied the step's `confirm`, and a run
11433
11565
  * of the published revision asks for an approval here.
11434
11566
  */
11435
- publishedWouldAsk: z57.enum(["approval"]).optional(),
11567
+ publishedWouldAsk: z58.enum(["approval"]).optional(),
11436
11568
  /**
11437
11569
  * On the step run of a code step that ran: what its script wrote to its output and error
11438
11570
  * streams beside its result, each cut to 16 KiB.
11439
11571
  */
11440
- log: z57.object({ stdout: z57.string(), stderr: z57.string(), truncated: z57.boolean() }).optional(),
11572
+ log: z58.object({ stdout: z58.string(), stderr: z58.string(), truncated: z58.boolean() }).optional(),
11441
11573
  status: stepRunStatusSchema,
11442
- attempt: z57.number().int().min(0),
11574
+ attempt: z58.number().int().min(0),
11443
11575
  /** The Operation Run of the call an operation step made. */
11444
- operationRunId: z57.string().optional(),
11576
+ operationRunId: z58.string().optional(),
11445
11577
  /**
11446
11578
  * On the step run of a `workflow` step whose start a run key answered: the run it waits for
11447
11579
  * and does not own. Cancelling this run leaves that one going.
11448
11580
  */
11449
- linkedRunId: z57.string().optional(),
11581
+ linkedRunId: z58.string().optional(),
11450
11582
  /** The child run owned by this step, when one has started. */
11451
- childRunId: z57.string().optional(),
11452
- agent: z57.object({
11453
- runId: z57.string(),
11454
- status: z57.enum(AGENT_RUN_STATUSES),
11455
- usage: z57.object({
11456
- modelCallCount: z57.number(),
11457
- inputTokens: z57.number(),
11458
- outputTokens: z57.number(),
11459
- totalTokens: z57.number()
11583
+ childRunId: z58.string().optional(),
11584
+ agent: z58.object({
11585
+ runId: z58.string(),
11586
+ status: z58.enum(AGENT_RUN_STATUSES),
11587
+ usage: z58.object({
11588
+ modelCallCount: z58.number(),
11589
+ inputTokens: z58.number(),
11590
+ outputTokens: z58.number(),
11591
+ totalTokens: z58.number()
11460
11592
  })
11461
11593
  }).optional(),
11462
11594
  error: workflowRunErrorSchema.optional(),
11463
11595
  inputPreview: workflowOutputPreviewSchema.optional(),
11464
11596
  outputPreview: workflowOutputPreviewSchema.optional(),
11465
- datasets: z57.array(datasetMetadataSchema).optional(),
11597
+ datasets: z58.array(datasetMetadataSchema).optional(),
11466
11598
  createdAt: timestampSchema,
11467
11599
  startedAt: timestampSchema.optional(),
11468
11600
  finishedAt: timestampSchema.optional()
11469
11601
  });
11470
- var startWorkflowRunRequestSchema = z57.object({
11602
+ var startWorkflowRunRequestSchema = z58.object({
11471
11603
  /** The input of the run, checked against the `inputs` of the Workflow's definition. */
11472
- input: z57.record(z57.string(), z57.unknown()).optional(),
11604
+ input: z58.record(z58.string(), z58.unknown()).optional(),
11473
11605
  /**
11474
11606
  * The run key, such as `2026-09/1402`. Where a run of the Workflow that is open or `done`
11475
11607
  * holds it for the same starter (the person, their API key, or the Service Principal), the
@@ -11484,58 +11616,58 @@ var listWorkflowRunsQuerySchema = listQuerySchema.extend({
11484
11616
  keyPrefix: runKeySchema.optional()
11485
11617
  });
11486
11618
  var listWorkflowStepRunsQuerySchema = listQuerySchema.extend({
11487
- topLevel: z57.enum(["true", "false"]).optional(),
11488
- containerStepRunId: z57.string().min(1).optional(),
11619
+ topLevel: z58.enum(["true", "false"]).optional(),
11620
+ containerStepRunId: z58.string().min(1).optional(),
11489
11621
  status: stepRunStatusSchema.optional(),
11490
- iteration: z57.coerce.number().int().min(0).optional()
11622
+ iteration: z58.coerce.number().int().min(0).optional()
11491
11623
  });
11492
- var workflowStartIssueSchema = z57.object({
11624
+ var workflowStartIssueSchema = z58.object({
11493
11625
  /** The technical account’s display label, when it still exists. */
11494
- principalDisplayLabel: z57.string().optional(),
11495
- code: z57.string(),
11626
+ principalDisplayLabel: z58.string().optional(),
11627
+ code: z58.string(),
11496
11628
  /** A sentence of the product. Never a value of a run. */
11497
- message: z57.string(),
11629
+ message: z58.string(),
11498
11630
  /** Where in the definition it is, such as `steps.check.type`. */
11499
- path: z57.string().optional()
11631
+ path: z58.string().optional()
11500
11632
  });
11501
- var workflowSummarySchema = z57.object({
11502
- kind: z57.enum(WORKFLOW_KINDS).default("process"),
11503
- id: z57.string(),
11504
- name: z57.string(),
11505
- description: z57.string().optional(),
11633
+ var workflowSummarySchema = z58.object({
11634
+ kind: z58.enum(WORKFLOW_KINDS).default("process"),
11635
+ id: z58.string(),
11636
+ name: z58.string(),
11637
+ description: z58.string().optional(),
11506
11638
  /** The published revision: what a run started now has as its `definitionRevisionId`. */
11507
- definitionRevisionId: z57.string(),
11639
+ definitionRevisionId: z58.string(),
11508
11640
  /** The workspace that owns the Workflow (WS-OWN-1b). Missing where the instance owns it. */
11509
- workspaceId: z57.string().optional(),
11641
+ workspaceId: z58.string().optional(),
11510
11642
  /** Whether a start by hand is accepted now, as far as that is known before its input. */
11511
- runnable: z57.boolean(),
11643
+ runnable: z58.boolean(),
11512
11644
  /** Why not. Empty exactly where `runnable` is true. */
11513
- reasons: z57.array(workflowStartIssueSchema),
11645
+ reasons: z58.array(workflowStartIssueSchema),
11514
11646
  /**
11515
11647
  * The published revision's `inputs`: the JSON Schema a start's `input` is checked against,
11516
11648
  * from which a page builds its start form. Missing where the definition cannot be read.
11517
11649
  */
11518
- inputs: z57.record(z57.string(), z57.unknown()).optional(),
11650
+ inputs: z58.record(z58.string(), z58.unknown()).optional(),
11519
11651
  /**
11520
11652
  * How the published revision is started, the kinds of its trigger: `manual`, `schedule`,
11521
11653
  * `parent` (by a step of another Workflow). Missing where the definition cannot be read.
11522
11654
  */
11523
- triggers: z57.array(z57.string()).optional(),
11655
+ triggers: z58.array(z58.string()).optional(),
11524
11656
  /**
11525
11657
  * The display label of the service principal every run of the Workflow acts as. Missing
11526
11658
  * where that principal is disabled or gone, which `reasons` then says.
11527
11659
  */
11528
- runsAs: z57.string().optional(),
11660
+ runsAs: z58.string().optional(),
11529
11661
  /**
11530
11662
  * What the caller may do with this Workflow, of `workflow.read` (its runs) and `workflow.use`
11531
11663
  * (a start). Never empty: a Workflow the caller holds neither on is not listed.
11532
11664
  */
11533
- actions: z57.array(z57.string()),
11665
+ actions: z58.array(z58.string()),
11534
11666
  /** The latest run of the Workflow. Missing on one that never ran. */
11535
- lastRun: z57.object({
11536
- failedDescendantCount: z57.number().int().min(0).optional(),
11537
- failedItemCount: z57.number().int().min(0).optional(),
11538
- id: z57.string(),
11667
+ lastRun: z58.object({
11668
+ failedDescendantCount: z58.number().int().min(0).optional(),
11669
+ failedItemCount: z58.number().int().min(0).optional(),
11670
+ id: z58.string(),
11539
11671
  status: runStatusSchema,
11540
11672
  startedAt: timestampSchema.optional(),
11541
11673
  endedAt: timestampSchema.optional()
@@ -11553,11 +11685,11 @@ var workflowOperations = {
11553
11685
  requires: [],
11554
11686
  effect: "changing",
11555
11687
  response: json(
11556
- z57.object({
11557
- draftRevision: z57.number().int().positive(),
11558
- unpublishedRevision: z57.number().int().positive(),
11688
+ z58.object({
11689
+ draftRevision: z58.number().int().positive(),
11690
+ unpublishedRevision: z58.number().int().positive(),
11559
11691
  /** The live Apps that start the Workflow and stop working without it (DP-0). */
11560
- warnings: z57.array(assetWarningSchema)
11692
+ warnings: z58.array(assetWarningSchema)
11561
11693
  })
11562
11694
  ),
11563
11695
  errors: ["NOT_FOUND", "VALIDATION_FAILED"],
@@ -11573,7 +11705,7 @@ var workflowOperations = {
11573
11705
  scope: "config_assets:read",
11574
11706
  requires: [],
11575
11707
  effect: "reading",
11576
- query: z57.object({ format: z57.enum(WORKFLOW_DATASET_DOWNLOAD_FORMATS).default("jsonl") }),
11708
+ query: z58.object({ format: z58.enum(WORKFLOW_DATASET_DOWNLOAD_FORMATS).default("jsonl") }),
11577
11709
  response: blob(),
11578
11710
  errors: ["NOT_FOUND"],
11579
11711
  rateClass: "read"
@@ -11590,7 +11722,7 @@ var workflowOperations = {
11590
11722
  effect: "reading",
11591
11723
  query: listQuerySchema,
11592
11724
  response: json(
11593
- z57.object({ items: z57.array(workflowSummarySchema), nextCursor: z57.string().optional() })
11725
+ z58.object({ items: z58.array(workflowSummarySchema), nextCursor: z58.string().optional() })
11594
11726
  ),
11595
11727
  errors: [],
11596
11728
  rateClass: "read"
@@ -11700,22 +11832,22 @@ var workflowOperations = {
11700
11832
  };
11701
11833
 
11702
11834
  // ../api-contract/src/operations/workflow-principal-rights.ts
11703
- import { z as z58 } from "zod";
11704
- var workflowNeededRightSchema = z58.object({
11835
+ import { z as z59 } from "zod";
11836
+ var workflowNeededRightSchema = z59.object({
11705
11837
  /** The right, such as `connection.use`. */
11706
- action: z58.string(),
11838
+ action: z59.string(),
11707
11839
  /** The asset by its kind, and by its name in the definition where the caller may read it. */
11708
- asset: z58.object({ kind: z58.string(), name: z58.string().optional() }),
11840
+ asset: z59.object({ kind: z59.string(), name: z59.string().optional() }),
11709
11841
  /** The ids of the steps that need it. */
11710
- steps: z58.array(z58.string()),
11842
+ steps: z59.array(z59.string()),
11711
11843
  /** `publish`: the publish is refused without it. `run`: the steps fail when they run. */
11712
- neededFor: z58.enum(WORKFLOW_RIGHT_NEEDED_FOR),
11713
- held: z58.boolean(),
11844
+ neededFor: z59.enum(WORKFLOW_RIGHT_NEEDED_FOR),
11845
+ held: z59.boolean(),
11714
11846
  /**
11715
11847
  * On a right the account lacks and the caller may give it as things stand: what the grant
11716
11848
  * names. The grant write asks every rule again.
11717
11849
  */
11718
- grant: z58.object({ holderId: z58.string(), scopeId: z58.string() }).optional(),
11850
+ grant: z59.object({ holderId: z59.string(), scopeId: z59.string() }).optional(),
11719
11851
  /**
11720
11852
  * On a right the account lacks and the caller may not give: why. `not_grantable` where no
11721
11853
  * one can give it to an account on this instance, `not_administrator` where giving needs
@@ -11724,29 +11856,29 @@ var workflowNeededRightSchema = z58.object({
11724
11856
  * `asset_unavailable` where no active asset of the name exists, and `not_visible` where the
11725
11857
  * caller may not read the asset.
11726
11858
  */
11727
- refusal: z58.enum(WORKFLOW_RIGHT_REFUSALS).optional()
11859
+ refusal: z59.enum(WORKFLOW_RIGHT_REFUSALS).optional()
11728
11860
  });
11729
- var workflowAccountRightsSchema = z58.object({
11730
- workflow: z58.string(),
11731
- revision: z58.enum(WORKFLOW_RIGHTS_REVISIONS),
11861
+ var workflowAccountRightsSchema = z59.object({
11862
+ workflow: z59.string(),
11863
+ revision: z59.enum(WORKFLOW_RIGHTS_REVISIONS),
11732
11864
  /** The account's name in the definition. */
11733
- runAs: z58.string(),
11865
+ runAs: z59.string(),
11734
11866
  /** How the account stands, with its label where it exists. */
11735
- account: z58.object({
11736
- label: z58.string().optional(),
11737
- status: z58.enum(WORKFLOW_RUN_ACCOUNT_STATUSES)
11867
+ account: z59.object({
11868
+ label: z59.string().optional(),
11869
+ status: z59.enum(WORKFLOW_RUN_ACCOUNT_STATUSES)
11738
11870
  }),
11739
- rights: z58.array(workflowNeededRightSchema)
11871
+ rights: z59.array(workflowNeededRightSchema)
11740
11872
  });
11741
- var workflowPrincipalRightsSchema = z58.object({
11742
- workflows: z58.array(workflowAccountRightsSchema),
11873
+ var workflowPrincipalRightsSchema = z59.object({
11874
+ workflows: z59.array(workflowAccountRightsSchema),
11743
11875
  /**
11744
11876
  * How many child Workflows the caller may not read lack a right or an active account. They
11745
11877
  * are counted and not listed: no name, step, account or asset of theirs is in the answer.
11746
11878
  */
11747
- hiddenWorkflows: z58.number().int().nonnegative(),
11879
+ hiddenWorkflows: z59.number().int().nonnegative(),
11748
11880
  /** Whether the caller administers technical accounts and so may give them rights at all. */
11749
- administers: z58.boolean()
11881
+ administers: z59.boolean()
11750
11882
  });
11751
11883
  var workflowPrincipalRightsOperations = {
11752
11884
  "workflows.principal_rights": defineOperation({
@@ -11794,6 +11926,7 @@ var allOperations = {
11794
11926
  ...apiAccessOperations,
11795
11927
  ...personalApiKeyOperations,
11796
11928
  ...feedbackOperations,
11929
+ ...platformReportOperations,
11797
11930
  ...accessOperations,
11798
11931
  ...credentialOperations,
11799
11932
  ...platformOperations,
@@ -11875,7 +12008,7 @@ import { setTimeout as defaultSleep } from "timers/promises";
11875
12008
  import { randomUUID } from "crypto";
11876
12009
 
11877
12010
  // ../api-client/src/errors.ts
11878
- import { z as z60 } from "zod";
12011
+ import { z as z61 } from "zod";
11879
12012
  var ApiError = class extends Error {
11880
12013
  status;
11881
12014
  code;
@@ -11942,7 +12075,7 @@ function readCorrelationId(payload) {
11942
12075
  return error && "correlationId" in error && typeof error.correlationId === "string" ? error.correlationId : void 0;
11943
12076
  }
11944
12077
  function readRetryAfterSeconds(payload) {
11945
- const parsed = z60.object({ error: z60.object({ details: rateLimitedDetailsSchema }) }).safeParse(payload);
12078
+ const parsed = z61.object({ error: z61.object({ details: rateLimitedDetailsSchema }) }).safeParse(payload);
11946
12079
  return parsed.success ? parsed.data.error.details.retryAfterSeconds : void 0;
11947
12080
  }
11948
12081
 
@@ -18294,7 +18427,7 @@ import yaml7 from "js-yaml";
18294
18427
  import { readFile as readFile10 } from "fs/promises";
18295
18428
  import { basename as basename5, resolve as resolve11 } from "path";
18296
18429
  import { parseArgs as parseArgs4 } from "util";
18297
- import { z as z61 } from "zod";
18430
+ import { z as z62 } from "zod";
18298
18431
 
18299
18432
  // src/connection-sign-in.ts
18300
18433
  import { setTimeout as defaultSleep3 } from "timers/promises";
@@ -18423,11 +18556,11 @@ async function readSecret(input, prompt) {
18423
18556
  }
18424
18557
 
18425
18558
  // src/operation-commands.ts
18426
- var requestSchema = z61.strictObject({
18427
- params: z61.record(z61.string(), z61.string()).optional(),
18428
- query: z61.record(z61.string(), z61.union([z61.string(), z61.number(), z61.boolean()])).optional(),
18429
- body: z61.unknown().optional(),
18430
- file: z61.string().optional()
18559
+ var requestSchema = z62.strictObject({
18560
+ params: z62.record(z62.string(), z62.string()).optional(),
18561
+ query: z62.record(z62.string(), z62.union([z62.string(), z62.number(), z62.boolean()])).optional(),
18562
+ body: z62.unknown().optional(),
18563
+ file: z62.string().optional()
18431
18564
  });
18432
18565
  var UsageError2 = class extends Error {
18433
18566
  };
@@ -19038,7 +19171,7 @@ var initGroup = {
19038
19171
  // src/knowledge-commands.ts
19039
19172
  import { parseArgs as parseArgs8 } from "util";
19040
19173
  import yaml10 from "js-yaml";
19041
- import { z as z62 } from "zod";
19174
+ import { z as z63 } from "zod";
19042
19175
  var knowledgeHelpText = `Knowledge Base sources (draft changes take effect at publish):
19043
19176
  knowledge-base source add <kb> --source <id> --connection <name> --folder <id>... [--include <glob>...] [--exclude <glob>...]
19044
19177
  knowledge-base source list <kb>
@@ -19103,8 +19236,8 @@ async function runKnowledgeCommand(argv, base) {
19103
19236
  if (command === "add" || command === "remove" || command === "list") {
19104
19237
  const asset = await api.getAsset("knowledge_base", name2);
19105
19238
  if (!asset) throw new Error("The Knowledge Base is not available.");
19106
- const config = z62.record(z62.string(), z62.unknown()).parse(asset.config);
19107
- const sources = z62.array(z62.record(z62.string(), z62.unknown())).parse(config.sources ?? []);
19239
+ const config = z63.record(z63.string(), z63.unknown()).parse(asset.config);
19240
+ const sources = z63.array(z63.record(z63.string(), z63.unknown())).parse(config.sources ?? []);
19108
19241
  if (command === "list") result = sources;
19109
19242
  else {
19110
19243
  const remaining = sources.filter((s) => s.id !== values.source);
@@ -19142,7 +19275,7 @@ async function runKnowledgeCommand(argv, base) {
19142
19275
  const output = await call2(api, apiOperations["knowledge_bases.sources"], {
19143
19276
  params: { knowledgeBase: name2 }
19144
19277
  });
19145
- const parsed2 = z62.object({ sources: z62.array(z62.object({ id: z62.string() }).passthrough()) }).parse(output);
19278
+ const parsed2 = z63.object({ sources: z63.array(z63.object({ id: z63.string() }).passthrough()) }).parse(output);
19146
19279
  result = {
19147
19280
  sources: values.source ? parsed2.sources.filter((s) => s.id === values.source) : parsed2.sources
19148
19281
  };
@@ -19172,14 +19305,14 @@ async function runKnowledgeCommand(argv, base) {
19172
19305
  return 1;
19173
19306
  }
19174
19307
  }
19175
- var reindexAnswerSchema = z62.object({
19176
- started: z62.boolean(),
19177
- state: z62.string(),
19178
- active: z62.object({ model: z62.string() }).passthrough().optional(),
19179
- target: z62.object({ model: z62.string() }).passthrough().optional(),
19180
- progress: z62.object({ embedded: z62.number(), total: z62.number() }).optional(),
19181
- statement: z62.object({ confirmation: z62.string(), room: z62.boolean() }).passthrough().optional(),
19182
- lines: z62.array(z62.string()).optional()
19308
+ var reindexAnswerSchema = z63.object({
19309
+ started: z63.boolean(),
19310
+ state: z63.string(),
19311
+ active: z63.object({ model: z63.string() }).passthrough().optional(),
19312
+ target: z63.object({ model: z63.string() }).passthrough().optional(),
19313
+ progress: z63.object({ embedded: z63.number(), total: z63.number() }).optional(),
19314
+ statement: z63.object({ confirmation: z63.string(), room: z63.boolean() }).passthrough().optional(),
19315
+ lines: z63.array(z63.string()).optional()
19183
19316
  }).passthrough();
19184
19317
  async function reindex(api, name2, confirm, options, json2) {
19185
19318
  const raw = await call2(api, apiOperations["knowledge_bases.reindex"], {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@work-shape/catalyst-cli",
3
- "version": "0.8.0-rc.15",
3
+ "version": "0.8.0-rc.17",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -40,9 +40,9 @@
40
40
  "@types/node": "^24.13.1",
41
41
  "tsup": "^8.5.1",
42
42
  "typescript": "^6.0.3",
43
- "@work-shape/catalyst-api-client": "0.8.0-rc.15",
44
- "@work-shape/catalyst-api-contract": "0.8.0-rc.15",
45
- "@work-shape/catalyst-asset-schemas": "0.8.0-rc.15"
43
+ "@work-shape/catalyst-api-contract": "0.8.0-rc.17",
44
+ "@work-shape/catalyst-asset-schemas": "0.8.0-rc.17",
45
+ "@work-shape/catalyst-api-client": "0.8.0-rc.17"
46
46
  },
47
47
  "scripts": {
48
48
  "build": "tsup",