@work-shape/catalyst-cli 0.8.0-rc.20 → 0.8.0-rc.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -5320,6 +5320,165 @@ declare const appOperations: {
5320
5320
  readonly response: readonly ["Operation-Run-Id", "Location", "Idempotent-Replayed"];
5321
5321
  };
5322
5322
  }>;
5323
+ readonly "apps.rename": Operation<{
5324
+ readonly id: "apps.rename";
5325
+ readonly method: "POST";
5326
+ readonly path: "/api/v1/apps/:app/rename";
5327
+ readonly summary: "Give an App the name people read, over the title of every revision; no later write changes it";
5328
+ readonly tag: "Apps";
5329
+ readonly auth: "user";
5330
+ readonly scope: "config_assets:write";
5331
+ readonly requires: readonly [];
5332
+ readonly effect: "changing";
5333
+ readonly body: z.ZodObject<{
5334
+ workspaceId: z.ZodString;
5335
+ title: z.ZodString;
5336
+ }, z.core.$strict>;
5337
+ readonly response: {
5338
+ readonly kind: "json";
5339
+ readonly schema: z.ZodObject<{
5340
+ name: z.ZodString;
5341
+ title: z.ZodString;
5342
+ }, z.core.$strip>;
5343
+ };
5344
+ readonly errors: readonly ["NOT_FOUND", "CONFLICT"];
5345
+ readonly rateClass: "write";
5346
+ } & {
5347
+ readonly accepted: z.ZodObject<{
5348
+ id: z.ZodString;
5349
+ operation: z.ZodString;
5350
+ effect: z.ZodEnum<{
5351
+ reading: "reading";
5352
+ changing: "changing";
5353
+ }>;
5354
+ status: z.ZodEnum<{
5355
+ failed: "failed";
5356
+ running: "running";
5357
+ pending_confirmation: "pending_confirmation";
5358
+ pending_approval: "pending_approval";
5359
+ done: "done";
5360
+ denied: "denied";
5361
+ expired: "expired";
5362
+ }>;
5363
+ actor: z.ZodObject<{
5364
+ kind: z.ZodEnum<{
5365
+ user: "user";
5366
+ service_principal: "service_principal";
5367
+ }>;
5368
+ id: z.ZodString;
5369
+ label: z.ZodString;
5370
+ }, z.core.$strip>;
5371
+ origin: z.ZodDiscriminatedUnion<[z.ZodObject<{
5372
+ kind: z.ZodLiteral<"agent">;
5373
+ agentRunId: z.ZodString;
5374
+ conversationId: z.ZodString;
5375
+ agentName: z.ZodString;
5376
+ toolCallId: z.ZodString;
5377
+ toolName: z.ZodString;
5378
+ toolRevisionId: z.ZodOptional<z.ZodString>;
5379
+ boundBy: z.ZodOptional<z.ZodObject<{
5380
+ id: z.ZodString;
5381
+ label: z.ZodString;
5382
+ }, z.core.$strip>>;
5383
+ draft: z.ZodOptional<z.ZodObject<{
5384
+ kind: z.ZodLiteral<"agent_preview">;
5385
+ asset: z.ZodObject<{
5386
+ kind: z.ZodString;
5387
+ id: z.ZodString;
5388
+ name: z.ZodString;
5389
+ }, z.core.$strip>;
5390
+ revisionId: z.ZodString;
5391
+ part: z.ZodString;
5392
+ }, z.core.$strip>>;
5393
+ }, z.core.$strip>, z.ZodObject<{
5394
+ kind: z.ZodLiteral<"user">;
5395
+ }, z.core.$strip>, z.ZodObject<{
5396
+ kind: z.ZodLiteral<"cli">;
5397
+ unattended: z.ZodOptional<z.ZodLiteral<true>>;
5398
+ }, z.core.$strip>, z.ZodObject<{
5399
+ kind: z.ZodLiteral<"mcp">;
5400
+ clientName: z.ZodOptional<z.ZodString>;
5401
+ }, z.core.$strip>, z.ZodObject<{
5402
+ kind: z.ZodLiteral<"app">;
5403
+ appName: z.ZodOptional<z.ZodString>;
5404
+ appRevisionId: z.ZodString;
5405
+ actionName: z.ZodString;
5406
+ pageSessionId: z.ZodString;
5407
+ conversationId: z.ZodOptional<z.ZodString>;
5408
+ target: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
5409
+ connection: z.ZodString;
5410
+ operation: z.ZodString;
5411
+ }, z.core.$strip>, z.ZodObject<{
5412
+ dataStore: z.ZodString;
5413
+ }, z.core.$strip>, z.ZodObject<{
5414
+ workflow: z.ZodString;
5415
+ }, z.core.$strip>]>>;
5416
+ }, z.core.$strip>, z.ZodObject<{
5417
+ kind: z.ZodLiteral<"workflow">;
5418
+ workflowRunId: z.ZodString;
5419
+ stepRunId: z.ZodString;
5420
+ boundBy: z.ZodOptional<z.ZodObject<{
5421
+ id: z.ZodString;
5422
+ label: z.ZodString;
5423
+ }, z.core.$strip>>;
5424
+ }, z.core.$strip>, z.ZodObject<{
5425
+ kind: z.ZodLiteral<"schedule">;
5426
+ scheduleId: z.ZodString;
5427
+ }, z.core.$strip>], "kind">;
5428
+ target: z.ZodEnum<{
5429
+ live: "live";
5430
+ test: "test";
5431
+ dry_run: "dry_run";
5432
+ }>;
5433
+ app: z.ZodOptional<z.ZodObject<{
5434
+ title: z.ZodOptional<z.ZodString>;
5435
+ revision: z.ZodOptional<z.ZodNumber>;
5436
+ deleted: z.ZodBoolean;
5437
+ }, z.core.$strip>>;
5438
+ workspaceId: z.ZodOptional<z.ZodString>;
5439
+ approvalRequestId: z.ZodOptional<z.ZodString>;
5440
+ inputHash: z.ZodString;
5441
+ attempt: z.ZodNumber;
5442
+ decision: z.ZodOptional<z.ZodObject<{
5443
+ mode: z.ZodEnum<{
5444
+ direct: "direct";
5445
+ confirmed: "confirmed";
5446
+ approved: "approved";
5447
+ declined: "declined";
5448
+ }>;
5449
+ reason: z.ZodOptional<z.ZodEnum<{
5450
+ inherited_approval_not_applied: "inherited_approval_not_applied";
5451
+ workflow_publish: "workflow_publish";
5452
+ approved_by_caller: "approved_by_caller";
5453
+ }>>;
5454
+ by: z.ZodString;
5455
+ byLabel: z.ZodOptional<z.ZodString>;
5456
+ at: z.ZodISODateTime;
5457
+ comment: z.ZodOptional<z.ZodString>;
5458
+ }, z.core.$strip>>;
5459
+ error: z.ZodOptional<z.ZodObject<{
5460
+ code: z.ZodString;
5461
+ message: z.ZodString;
5462
+ reason: z.ZodOptional<z.ZodString>;
5463
+ }, z.core.$strip>>;
5464
+ usage: z.ZodOptional<z.ZodObject<{
5465
+ modelCalls: z.ZodNumber;
5466
+ inputTokens: z.ZodNumber;
5467
+ outputTokens: z.ZodNumber;
5468
+ totalTokens: z.ZodNumber;
5469
+ }, z.core.$strip>>;
5470
+ correlationId: z.ZodString;
5471
+ createdAt: z.ZodISODateTime;
5472
+ startedAt: z.ZodOptional<z.ZodISODateTime>;
5473
+ finishedAt: z.ZodOptional<z.ZodISODateTime>;
5474
+ expiresAt: z.ZodOptional<z.ZodISODateTime>;
5475
+ href: z.ZodString;
5476
+ }, z.core.$strip>;
5477
+ readonly headers: {
5478
+ readonly request: readonly ["Idempotency-Key", "Catalyst-Unattended"];
5479
+ readonly response: readonly ["Operation-Run-Id", "Location", "Idempotent-Replayed"];
5480
+ };
5481
+ }>;
5323
5482
  readonly "apps.allow_draft_host": Operation<{
5324
5483
  readonly id: "apps.allow_draft_host";
5325
5484
  readonly method: "POST";
@@ -16065,6 +16224,12 @@ declare const conversationOperations: {
16065
16224
  createdAt: z.ZodISODateTime;
16066
16225
  updatedAt: z.ZodISODateTime;
16067
16226
  dispatchedRunId: z.ZodOptional<z.ZodString>;
16227
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
16228
+ fileId: z.ZodString;
16229
+ filename: z.ZodString;
16230
+ mimeType: z.ZodOptional<z.ZodString>;
16231
+ byteSize: z.ZodNumber;
16232
+ }, z.core.$strip>>>;
16068
16233
  }, z.core.$strip>>>;
16069
16234
  conversation: z.ZodObject<{
16070
16235
  id: z.ZodString;
@@ -17097,7 +17262,9 @@ declare const conversationOperations: {
17097
17262
  readonly scope: "conversation:write";
17098
17263
  readonly requires: readonly [];
17099
17264
  readonly effect: "changing";
17100
- readonly body: z.ZodObject<{}, z.core.$strip>;
17265
+ readonly body: z.ZodObject<{
17266
+ keepAttachments: z.ZodOptional<z.ZodBoolean>;
17267
+ }, z.core.$strip>;
17101
17268
  readonly response: {
17102
17269
  readonly kind: "json";
17103
17270
  readonly schema: z.ZodObject<{
@@ -17133,6 +17300,12 @@ declare const conversationOperations: {
17133
17300
  createdAt: z.ZodISODateTime;
17134
17301
  updatedAt: z.ZodISODateTime;
17135
17302
  dispatchedRunId: z.ZodOptional<z.ZodString>;
17303
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
17304
+ fileId: z.ZodString;
17305
+ filename: z.ZodString;
17306
+ mimeType: z.ZodOptional<z.ZodString>;
17307
+ byteSize: z.ZodNumber;
17308
+ }, z.core.$strip>>>;
17136
17309
  }, z.core.$strip>;
17137
17310
  }, z.core.$strip>;
17138
17311
  };
@@ -17185,6 +17358,12 @@ declare const conversationOperations: {
17185
17358
  createdAt: z.ZodISODateTime;
17186
17359
  updatedAt: z.ZodISODateTime;
17187
17360
  dispatchedRunId: z.ZodOptional<z.ZodString>;
17361
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
17362
+ fileId: z.ZodString;
17363
+ filename: z.ZodString;
17364
+ mimeType: z.ZodOptional<z.ZodString>;
17365
+ byteSize: z.ZodNumber;
17366
+ }, z.core.$strip>>>;
17188
17367
  }, z.core.$strip>;
17189
17368
  }, z.core.$strip>;
17190
17369
  };
@@ -17521,6 +17700,12 @@ declare const conversationOperations: {
17521
17700
  createdAt: z.ZodISODateTime;
17522
17701
  updatedAt: z.ZodISODateTime;
17523
17702
  dispatchedRunId: z.ZodOptional<z.ZodString>;
17703
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
17704
+ fileId: z.ZodString;
17705
+ filename: z.ZodString;
17706
+ mimeType: z.ZodOptional<z.ZodString>;
17707
+ byteSize: z.ZodNumber;
17708
+ }, z.core.$strip>>>;
17524
17709
  }, z.core.$strip>>>;
17525
17710
  conversation: z.ZodObject<{
17526
17711
  id: z.ZodString;
@@ -18125,6 +18310,12 @@ declare const conversationOperations: {
18125
18310
  createdAt: z.ZodISODateTime;
18126
18311
  updatedAt: z.ZodISODateTime;
18127
18312
  dispatchedRunId: z.ZodOptional<z.ZodString>;
18313
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
18314
+ fileId: z.ZodString;
18315
+ filename: z.ZodString;
18316
+ mimeType: z.ZodOptional<z.ZodString>;
18317
+ byteSize: z.ZodNumber;
18318
+ }, z.core.$strip>>>;
18128
18319
  }, z.core.$strip>;
18129
18320
  }, z.core.$strip>]>;
18130
18321
  };
@@ -18459,6 +18650,12 @@ declare const conversationOperations: {
18459
18650
  createdAt: z.ZodISODateTime;
18460
18651
  updatedAt: z.ZodISODateTime;
18461
18652
  dispatchedRunId: z.ZodOptional<z.ZodString>;
18653
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
18654
+ fileId: z.ZodString;
18655
+ filename: z.ZodString;
18656
+ mimeType: z.ZodOptional<z.ZodString>;
18657
+ byteSize: z.ZodNumber;
18658
+ }, z.core.$strip>>>;
18462
18659
  }, z.core.$strip>>>;
18463
18660
  conversation: z.ZodObject<{
18464
18661
  id: z.ZodString;
@@ -19094,6 +19291,12 @@ declare const conversationOperations: {
19094
19291
  createdAt: z.ZodISODateTime;
19095
19292
  updatedAt: z.ZodISODateTime;
19096
19293
  dispatchedRunId: z.ZodOptional<z.ZodString>;
19294
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
19295
+ fileId: z.ZodString;
19296
+ filename: z.ZodString;
19297
+ mimeType: z.ZodOptional<z.ZodString>;
19298
+ byteSize: z.ZodNumber;
19299
+ }, z.core.$strip>>>;
19097
19300
  }, z.core.$strip>>;
19098
19301
  }, z.core.$strip>, z.ZodObject<{
19099
19302
  type: z.ZodLiteral<"message_delta">;
package/dist/index.js CHANGED
@@ -2644,7 +2644,7 @@ import { z as z64 } from "zod";
2644
2644
  // ../api-contract/package.json
2645
2645
  var package_default = {
2646
2646
  name: "@work-shape/catalyst-api-contract",
2647
- version: "0.8.0-rc.20",
2647
+ version: "0.8.0-rc.22",
2648
2648
  license: "MIT",
2649
2649
  repository: {
2650
2650
  type: "git",
@@ -5948,7 +5948,16 @@ var conversationFollowUpSchema = z31.object({
5948
5948
  idempotencyKey: z31.string().optional(),
5949
5949
  createdAt: timestampSchema,
5950
5950
  updatedAt: timestampSchema,
5951
- dispatchedRunId: z31.string().optional()
5951
+ dispatchedRunId: z31.string().optional(),
5952
+ /** The files the pending message carries; they go with it when it starts. */
5953
+ attachments: z31.array(
5954
+ z31.object({
5955
+ fileId: z31.string(),
5956
+ filename: z31.string(),
5957
+ mimeType: z31.string().optional(),
5958
+ byteSize: z31.number().int().nonnegative()
5959
+ })
5960
+ ).optional()
5952
5961
  });
5953
5962
  var queuedConversationRunResponseSchema = z31.object({
5954
5963
  followUp: conversationFollowUpSchema
@@ -6399,6 +6408,15 @@ var updateAppFromPageRequestSchema = z34.object({
6399
6408
  */
6400
6409
  link: z34.boolean().optional()
6401
6410
  }).strict();
6411
+ var renameAppRequestSchema = z34.object({
6412
+ /** The workspace the App belongs to. */
6413
+ workspaceId: z34.string().min(1),
6414
+ title: z34.string().trim().min(1).max(120)
6415
+ }).strict();
6416
+ var renameAppResponseSchema = z34.object({
6417
+ name: z34.string(),
6418
+ title: z34.string()
6419
+ });
6402
6420
  var appFromPageQuerySchema = z34.object({
6403
6421
  /** The id of an App the caller thinks of putting the Page into. Answered as `candidate`. */
6404
6422
  app: z34.string().min(1).optional()
@@ -6748,6 +6766,21 @@ var appOperations = {
6748
6766
  errors: ["NOT_FOUND", "CONFLICT", "REVISION_CONFLICT", "VALIDATION_FAILED"],
6749
6767
  rateClass: "write"
6750
6768
  }),
6769
+ "apps.rename": defineRegisteredOperation({
6770
+ id: "apps.rename",
6771
+ method: "POST",
6772
+ path: "/api/v1/apps/:app/rename",
6773
+ summary: "Give an App the name people read, over the title of every revision; no later write changes it",
6774
+ tag: "Apps",
6775
+ auth: "user",
6776
+ scope: "config_assets:write",
6777
+ requires: [],
6778
+ effect: "changing",
6779
+ body: renameAppRequestSchema,
6780
+ response: json(renameAppResponseSchema),
6781
+ errors: ["NOT_FOUND", "CONFLICT"],
6782
+ rateClass: "write"
6783
+ }),
6751
6784
  // Only where release config sets `apps.draftHosts.enabled`; elsewhere it answers 404.
6752
6785
  "apps.allow_draft_host": defineRegisteredOperation({
6753
6786
  id: "apps.allow_draft_host",
@@ -9623,7 +9656,9 @@ var conversationOperations = {
9623
9656
  scope: "conversation:write",
9624
9657
  requires: [],
9625
9658
  effect: "changing",
9626
- body: z45.object({}),
9659
+ // Edit takes the message back with its files, which return to the composer; Remove
9660
+ // deletes them.
9661
+ body: z45.object({ keepAttachments: z45.boolean().optional() }),
9627
9662
  response: json(z45.object({ followUp: conversationFollowUpSchema })),
9628
9663
  errors: ["NOT_FOUND", "FORBIDDEN", "CONFLICT"],
9629
9664
  rateClass: "write"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@work-shape/catalyst-cli",
3
- "version": "0.8.0-rc.20",
3
+ "version": "0.8.0-rc.22",
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.20",
44
- "@work-shape/catalyst-api-contract": "0.8.0-rc.20",
45
- "@work-shape/catalyst-asset-schemas": "0.8.0-rc.20"
43
+ "@work-shape/catalyst-api-client": "0.8.0-rc.22",
44
+ "@work-shape/catalyst-api-contract": "0.8.0-rc.22",
45
+ "@work-shape/catalyst-asset-schemas": "0.8.0-rc.22"
46
46
  },
47
47
  "scripts": {
48
48
  "build": "tsup",