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

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";
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.21",
2648
2648
  license: "MIT",
2649
2649
  repository: {
2650
2650
  type: "git",
@@ -6399,6 +6399,15 @@ var updateAppFromPageRequestSchema = z34.object({
6399
6399
  */
6400
6400
  link: z34.boolean().optional()
6401
6401
  }).strict();
6402
+ var renameAppRequestSchema = z34.object({
6403
+ /** The workspace the App belongs to. */
6404
+ workspaceId: z34.string().min(1),
6405
+ title: z34.string().trim().min(1).max(120)
6406
+ }).strict();
6407
+ var renameAppResponseSchema = z34.object({
6408
+ name: z34.string(),
6409
+ title: z34.string()
6410
+ });
6402
6411
  var appFromPageQuerySchema = z34.object({
6403
6412
  /** The id of an App the caller thinks of putting the Page into. Answered as `candidate`. */
6404
6413
  app: z34.string().min(1).optional()
@@ -6748,6 +6757,21 @@ var appOperations = {
6748
6757
  errors: ["NOT_FOUND", "CONFLICT", "REVISION_CONFLICT", "VALIDATION_FAILED"],
6749
6758
  rateClass: "write"
6750
6759
  }),
6760
+ "apps.rename": defineRegisteredOperation({
6761
+ id: "apps.rename",
6762
+ method: "POST",
6763
+ path: "/api/v1/apps/:app/rename",
6764
+ summary: "Give an App the name people read, over the title of every revision; no later write changes it",
6765
+ tag: "Apps",
6766
+ auth: "user",
6767
+ scope: "config_assets:write",
6768
+ requires: [],
6769
+ effect: "changing",
6770
+ body: renameAppRequestSchema,
6771
+ response: json(renameAppResponseSchema),
6772
+ errors: ["NOT_FOUND", "CONFLICT"],
6773
+ rateClass: "write"
6774
+ }),
6751
6775
  // Only where release config sets `apps.draftHosts.enabled`; elsewhere it answers 404.
6752
6776
  "apps.allow_draft_host": defineRegisteredOperation({
6753
6777
  id: "apps.allow_draft_host",
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.21",
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.21",
44
+ "@work-shape/catalyst-asset-schemas": "0.8.0-rc.21",
45
+ "@work-shape/catalyst-api-contract": "0.8.0-rc.21"
46
46
  },
47
47
  "scripts": {
48
48
  "build": "tsup",