@work-shape/catalyst-cli 0.8.0-rc.10 → 0.8.0-rc.12

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 +307 -0
  2. package/dist/index.js +1124 -34
  3. package/package.json +5 -4
package/dist/index.d.ts CHANGED
@@ -49,6 +49,11 @@ interface AgentConfig {
49
49
  modelBindingId?: string;
50
50
  reasoningEffort?: ReasoningEffortConfig;
51
51
  fastMode?: boolean;
52
+ /**
53
+ * Whether a run of the agent goes on on its model binding's `fallback` when that binding is
54
+ * rate-limited or down. Unset is on.
55
+ */
56
+ useModelFallback?: boolean;
52
57
  /** Bindings users may pick for this agent in the chat, besides its own `modelBindingId`. */
53
58
  userSelectableModelBindingIds?: string[];
54
59
  /**
@@ -2811,6 +2816,10 @@ declare const accountOperations: {
2811
2816
  "data_store_rows:read": "data_store_rows:read";
2812
2817
  "data_store_rows:write": "data_store_rows:write";
2813
2818
  }>>>;
2819
+ twoFactor: z.ZodOptional<z.ZodObject<{
2820
+ required: z.ZodBoolean;
2821
+ enrolled: z.ZodBoolean;
2822
+ }, z.core.$strip>>;
2814
2823
  }, z.core.$strip>;
2815
2824
  };
2816
2825
  readonly errors: readonly [];
@@ -2909,6 +2918,10 @@ declare const accountOperations: {
2909
2918
  "data_store_rows:read": "data_store_rows:read";
2910
2919
  "data_store_rows:write": "data_store_rows:write";
2911
2920
  }>>>;
2921
+ twoFactor: z.ZodOptional<z.ZodObject<{
2922
+ required: z.ZodBoolean;
2923
+ enrolled: z.ZodBoolean;
2924
+ }, z.core.$strip>>;
2912
2925
  }, z.core.$strip>;
2913
2926
  };
2914
2927
  readonly errors: readonly [];
@@ -11143,6 +11156,7 @@ declare const configAssetOperations: {
11143
11156
  id: zod.ZodString;
11144
11157
  model: zod.ZodString;
11145
11158
  label: zod.ZodOptional<zod.ZodString>;
11159
+ fallback: zod.ZodOptional<zod.ZodString>;
11146
11160
  }, zod_v4_core.$strip>>;
11147
11161
  fastModeModelBindingIds: zod.ZodArray<zod.ZodString>;
11148
11162
  reasoningEfforts: zod.ZodArray<zod.ZodEnum<{
@@ -12279,6 +12293,42 @@ declare const connectionOperations: {
12279
12293
  readonly response: readonly ["Operation-Run-Id", "Location", "Idempotent-Replayed"];
12280
12294
  };
12281
12295
  }>;
12296
+ readonly "connections.source_folders": Operation<{
12297
+ readonly id: "connections.source_folders";
12298
+ readonly method: "GET";
12299
+ readonly path: "/api/v1/connections/:name/source-folders";
12300
+ readonly summary: "List the folders inside one folder of a document source, to choose a Knowledge Base's folders";
12301
+ readonly tag: "Connections";
12302
+ readonly auth: "principal";
12303
+ readonly scope: "config_assets:read";
12304
+ readonly requires: readonly [];
12305
+ readonly effect: "reading";
12306
+ readonly query: z.ZodObject<{
12307
+ parent: z.ZodOptional<z.ZodString>;
12308
+ pageToken: z.ZodOptional<z.ZodString>;
12309
+ }, z.core.$strip>;
12310
+ readonly response: {
12311
+ readonly kind: "json";
12312
+ readonly schema: z.ZodObject<{
12313
+ folder: z.ZodObject<{
12314
+ id: z.ZodString;
12315
+ name: z.ZodString;
12316
+ path: z.ZodString;
12317
+ }, z.core.$strip>;
12318
+ folders: z.ZodArray<z.ZodObject<{
12319
+ id: z.ZodString;
12320
+ name: z.ZodString;
12321
+ }, z.core.$strip>>;
12322
+ nextPageToken: z.ZodOptional<z.ZodString>;
12323
+ }, z.core.$strip>;
12324
+ };
12325
+ readonly errors: readonly ["NOT_FOUND", "CONFLICT", "TIMEOUT"];
12326
+ readonly rateClass: "read";
12327
+ } & {
12328
+ readonly headers: {
12329
+ readonly response: readonly ["Operation-Run-Id"];
12330
+ };
12331
+ }>;
12282
12332
  readonly "connections.connector_types": Operation<{
12283
12333
  readonly id: "connections.connector_types";
12284
12334
  readonly method: "GET";
@@ -14898,6 +14948,22 @@ declare const conversationOperations: {
14898
14948
  compactThresholdTokens: z.ZodNumber;
14899
14949
  compacted: z.ZodBoolean;
14900
14950
  }, z.core.$strip>>;
14951
+ modelFallback: z.ZodOptional<z.ZodObject<{
14952
+ from: z.ZodObject<{
14953
+ bindingId: z.ZodString;
14954
+ model: z.ZodString;
14955
+ label: z.ZodOptional<z.ZodString>;
14956
+ }, z.core.$strip>;
14957
+ to: z.ZodObject<{
14958
+ bindingId: z.ZodString;
14959
+ model: z.ZodString;
14960
+ label: z.ZodOptional<z.ZodString>;
14961
+ }, z.core.$strip>;
14962
+ reason: z.ZodEnum<{
14963
+ unavailable: "unavailable";
14964
+ rate_limit: "rate_limit";
14965
+ }>;
14966
+ }, z.core.$strip>>;
14901
14967
  }, z.core.$strip>, z.ZodObject<{
14902
14968
  version: z.ZodLiteral<1>;
14903
14969
  kind: z.ZodLiteral<"tool_result">;
@@ -15444,6 +15510,22 @@ declare const conversationOperations: {
15444
15510
  compactThresholdTokens: z.ZodNumber;
15445
15511
  compacted: z.ZodBoolean;
15446
15512
  }, z.core.$strip>>;
15513
+ modelFallback: z.ZodOptional<z.ZodObject<{
15514
+ from: z.ZodObject<{
15515
+ bindingId: z.ZodString;
15516
+ model: z.ZodString;
15517
+ label: z.ZodOptional<z.ZodString>;
15518
+ }, z.core.$strip>;
15519
+ to: z.ZodObject<{
15520
+ bindingId: z.ZodString;
15521
+ model: z.ZodString;
15522
+ label: z.ZodOptional<z.ZodString>;
15523
+ }, z.core.$strip>;
15524
+ reason: z.ZodEnum<{
15525
+ unavailable: "unavailable";
15526
+ rate_limit: "rate_limit";
15527
+ }>;
15528
+ }, z.core.$strip>>;
15447
15529
  }, z.core.$strip>, z.ZodObject<{
15448
15530
  version: z.ZodLiteral<1>;
15449
15531
  kind: z.ZodLiteral<"tool_result">;
@@ -16040,6 +16122,22 @@ declare const conversationOperations: {
16040
16122
  compactThresholdTokens: z.ZodNumber;
16041
16123
  compacted: z.ZodBoolean;
16042
16124
  }, z.core.$strip>>;
16125
+ modelFallback: z.ZodOptional<z.ZodObject<{
16126
+ from: z.ZodObject<{
16127
+ bindingId: z.ZodString;
16128
+ model: z.ZodString;
16129
+ label: z.ZodOptional<z.ZodString>;
16130
+ }, z.core.$strip>;
16131
+ to: z.ZodObject<{
16132
+ bindingId: z.ZodString;
16133
+ model: z.ZodString;
16134
+ label: z.ZodOptional<z.ZodString>;
16135
+ }, z.core.$strip>;
16136
+ reason: z.ZodEnum<{
16137
+ unavailable: "unavailable";
16138
+ rate_limit: "rate_limit";
16139
+ }>;
16140
+ }, z.core.$strip>>;
16043
16141
  }, z.core.$strip>, z.ZodObject<{
16044
16142
  version: z.ZodLiteral<1>;
16045
16143
  kind: z.ZodLiteral<"tool_result">;
@@ -16299,6 +16397,22 @@ declare const conversationOperations: {
16299
16397
  compactThresholdTokens: z.ZodNumber;
16300
16398
  compacted: z.ZodBoolean;
16301
16399
  }, z.core.$strip>>;
16400
+ modelFallback: z.ZodOptional<z.ZodObject<{
16401
+ from: z.ZodObject<{
16402
+ bindingId: z.ZodString;
16403
+ model: z.ZodString;
16404
+ label: z.ZodOptional<z.ZodString>;
16405
+ }, z.core.$strip>;
16406
+ to: z.ZodObject<{
16407
+ bindingId: z.ZodString;
16408
+ model: z.ZodString;
16409
+ label: z.ZodOptional<z.ZodString>;
16410
+ }, z.core.$strip>;
16411
+ reason: z.ZodEnum<{
16412
+ unavailable: "unavailable";
16413
+ rate_limit: "rate_limit";
16414
+ }>;
16415
+ }, z.core.$strip>>;
16302
16416
  }, z.core.$strip>, z.ZodObject<{
16303
16417
  version: z.ZodLiteral<1>;
16304
16418
  kind: z.ZodLiteral<"tool_result">;
@@ -16937,6 +17051,22 @@ declare const conversationOperations: {
16937
17051
  compactThresholdTokens: z.ZodNumber;
16938
17052
  compacted: z.ZodBoolean;
16939
17053
  }, z.core.$strip>>;
17054
+ modelFallback: z.ZodOptional<z.ZodObject<{
17055
+ from: z.ZodObject<{
17056
+ bindingId: z.ZodString;
17057
+ model: z.ZodString;
17058
+ label: z.ZodOptional<z.ZodString>;
17059
+ }, z.core.$strip>;
17060
+ to: z.ZodObject<{
17061
+ bindingId: z.ZodString;
17062
+ model: z.ZodString;
17063
+ label: z.ZodOptional<z.ZodString>;
17064
+ }, z.core.$strip>;
17065
+ reason: z.ZodEnum<{
17066
+ unavailable: "unavailable";
17067
+ rate_limit: "rate_limit";
17068
+ }>;
17069
+ }, z.core.$strip>>;
16940
17070
  }, z.core.$strip>, z.ZodObject<{
16941
17071
  version: z.ZodLiteral<1>;
16942
17072
  kind: z.ZodLiteral<"tool_result">;
@@ -17196,6 +17326,22 @@ declare const conversationOperations: {
17196
17326
  compactThresholdTokens: z.ZodNumber;
17197
17327
  compacted: z.ZodBoolean;
17198
17328
  }, z.core.$strip>>;
17329
+ modelFallback: z.ZodOptional<z.ZodObject<{
17330
+ from: z.ZodObject<{
17331
+ bindingId: z.ZodString;
17332
+ model: z.ZodString;
17333
+ label: z.ZodOptional<z.ZodString>;
17334
+ }, z.core.$strip>;
17335
+ to: z.ZodObject<{
17336
+ bindingId: z.ZodString;
17337
+ model: z.ZodString;
17338
+ label: z.ZodOptional<z.ZodString>;
17339
+ }, z.core.$strip>;
17340
+ reason: z.ZodEnum<{
17341
+ unavailable: "unavailable";
17342
+ rate_limit: "rate_limit";
17343
+ }>;
17344
+ }, z.core.$strip>>;
17199
17345
  }, z.core.$strip>, z.ZodObject<{
17200
17346
  version: z.ZodLiteral<1>;
17201
17347
  kind: z.ZodLiteral<"tool_result">;
@@ -24807,6 +24953,7 @@ declare const platformOperations: {
24807
24953
  id: zod.ZodString;
24808
24954
  model: zod.ZodString;
24809
24955
  label: zod.ZodOptional<zod.ZodString>;
24956
+ fallback: zod.ZodOptional<zod.ZodString>;
24810
24957
  }, zod_v4_core.$strip>>;
24811
24958
  fastModeModelBindingIds: zod.ZodArray<zod.ZodString>;
24812
24959
  reasoningEfforts: zod.ZodArray<zod.ZodEnum<{
@@ -26321,6 +26468,7 @@ declare const userOperations: {
26321
26468
  updatedAt: zod.ZodISODateTime;
26322
26469
  lastAuthenticatedAt: zod.ZodOptional<zod.ZodISODateTime>;
26323
26470
  }, zod_v4_core.$strip>>;
26471
+ twoFactorEnabled: zod.ZodOptional<zod.ZodBoolean>;
26324
26472
  }, zod_v4_core.$strip>>;
26325
26473
  nextCursor: zod.ZodOptional<zod.ZodString>;
26326
26474
  }, zod_v4_core.$strip>;
@@ -26384,6 +26532,7 @@ declare const userOperations: {
26384
26532
  updatedAt: zod.ZodISODateTime;
26385
26533
  lastAuthenticatedAt: zod.ZodOptional<zod.ZodISODateTime>;
26386
26534
  }, zod_v4_core.$strip>>;
26535
+ twoFactorEnabled: zod.ZodOptional<zod.ZodBoolean>;
26387
26536
  }, zod_v4_core.$strip>;
26388
26537
  };
26389
26538
  readonly errors: readonly ["CONFLICT"];
@@ -26575,6 +26724,7 @@ declare const userOperations: {
26575
26724
  updatedAt: zod.ZodISODateTime;
26576
26725
  lastAuthenticatedAt: zod.ZodOptional<zod.ZodISODateTime>;
26577
26726
  }, zod_v4_core.$strip>>;
26727
+ twoFactorEnabled: zod.ZodOptional<zod.ZodBoolean>;
26578
26728
  }, zod_v4_core.$strip>;
26579
26729
  };
26580
26730
  readonly errors: readonly ["NOT_FOUND", "CONFLICT"];
@@ -26919,6 +27069,7 @@ declare const userOperations: {
26919
27069
  updatedAt: zod.ZodISODateTime;
26920
27070
  lastAuthenticatedAt: zod.ZodOptional<zod.ZodISODateTime>;
26921
27071
  }, zod_v4_core.$strip>>;
27072
+ twoFactorEnabled: zod.ZodOptional<zod.ZodBoolean>;
26922
27073
  }, zod_v4_core.$strip>;
26923
27074
  };
26924
27075
  readonly errors: readonly ["NOT_FOUND", "CONFLICT"];
@@ -27087,6 +27238,161 @@ declare const userOperations: {
27087
27238
  readonly response: readonly ["Operation-Run-Id", "Idempotent-Replayed"];
27088
27239
  };
27089
27240
  }>;
27241
+ readonly "users.two_factor.reset": Operation<{
27242
+ readonly id: "users.two_factor.reset";
27243
+ readonly method: "POST";
27244
+ readonly path: "/api/v1/instance/users/:userId/two-factor/reset";
27245
+ readonly summary: "Reset a user's two-factor sign-in: delete their second factor and trusted browsers and end their sessions. Needs the right `users.manage`. Only a superadmin resets a superadmin; nobody resets their own.";
27246
+ readonly tag: "Users";
27247
+ readonly auth: "user";
27248
+ readonly scope: "user_admin:write";
27249
+ readonly requires: readonly [];
27250
+ readonly effect: "changing";
27251
+ readonly response: {
27252
+ readonly kind: "json";
27253
+ readonly schema: zod.ZodObject<{
27254
+ ok: zod.ZodLiteral<true>;
27255
+ hadFactor: zod.ZodBoolean;
27256
+ }, zod_v4_core.$strip>;
27257
+ };
27258
+ readonly errors: readonly ["NOT_FOUND"];
27259
+ readonly rateClass: "write";
27260
+ } & {
27261
+ readonly accepted: zod.ZodObject<{
27262
+ id: zod.ZodString;
27263
+ operation: zod.ZodString;
27264
+ effect: zod.ZodEnum<{
27265
+ reading: "reading";
27266
+ changing: "changing";
27267
+ }>;
27268
+ status: zod.ZodEnum<{
27269
+ failed: "failed";
27270
+ running: "running";
27271
+ pending_confirmation: "pending_confirmation";
27272
+ pending_approval: "pending_approval";
27273
+ done: "done";
27274
+ denied: "denied";
27275
+ expired: "expired";
27276
+ }>;
27277
+ actor: zod.ZodObject<{
27278
+ kind: zod.ZodEnum<{
27279
+ user: "user";
27280
+ service_principal: "service_principal";
27281
+ }>;
27282
+ id: zod.ZodString;
27283
+ label: zod.ZodString;
27284
+ }, zod_v4_core.$strip>;
27285
+ origin: zod.ZodDiscriminatedUnion<[zod.ZodObject<{
27286
+ kind: zod.ZodLiteral<"agent">;
27287
+ agentRunId: zod.ZodString;
27288
+ conversationId: zod.ZodString;
27289
+ agentName: zod.ZodString;
27290
+ toolCallId: zod.ZodString;
27291
+ toolName: zod.ZodString;
27292
+ toolRevisionId: zod.ZodOptional<zod.ZodString>;
27293
+ boundBy: zod.ZodOptional<zod.ZodObject<{
27294
+ id: zod.ZodString;
27295
+ label: zod.ZodString;
27296
+ }, zod_v4_core.$strip>>;
27297
+ draft: zod.ZodOptional<zod.ZodObject<{
27298
+ kind: zod.ZodLiteral<"agent_preview">;
27299
+ asset: zod.ZodObject<{
27300
+ kind: zod.ZodString;
27301
+ id: zod.ZodString;
27302
+ name: zod.ZodString;
27303
+ }, zod_v4_core.$strip>;
27304
+ revisionId: zod.ZodString;
27305
+ part: zod.ZodString;
27306
+ }, zod_v4_core.$strip>>;
27307
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27308
+ kind: zod.ZodLiteral<"user">;
27309
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27310
+ kind: zod.ZodLiteral<"cli">;
27311
+ unattended: zod.ZodOptional<zod.ZodLiteral<true>>;
27312
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27313
+ kind: zod.ZodLiteral<"mcp">;
27314
+ clientName: zod.ZodOptional<zod.ZodString>;
27315
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27316
+ kind: zod.ZodLiteral<"app">;
27317
+ appName: zod.ZodOptional<zod.ZodString>;
27318
+ appRevisionId: zod.ZodString;
27319
+ actionName: zod.ZodString;
27320
+ pageSessionId: zod.ZodString;
27321
+ conversationId: zod.ZodOptional<zod.ZodString>;
27322
+ target: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
27323
+ connection: zod.ZodString;
27324
+ operation: zod.ZodString;
27325
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27326
+ dataStore: zod.ZodString;
27327
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27328
+ workflow: zod.ZodString;
27329
+ }, zod_v4_core.$strip>]>>;
27330
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27331
+ kind: zod.ZodLiteral<"workflow">;
27332
+ workflowRunId: zod.ZodString;
27333
+ stepRunId: zod.ZodString;
27334
+ boundBy: zod.ZodOptional<zod.ZodObject<{
27335
+ id: zod.ZodString;
27336
+ label: zod.ZodString;
27337
+ }, zod_v4_core.$strip>>;
27338
+ }, zod_v4_core.$strip>, zod.ZodObject<{
27339
+ kind: zod.ZodLiteral<"schedule">;
27340
+ scheduleId: zod.ZodString;
27341
+ }, zod_v4_core.$strip>], "kind">;
27342
+ target: zod.ZodEnum<{
27343
+ live: "live";
27344
+ test: "test";
27345
+ dry_run: "dry_run";
27346
+ }>;
27347
+ app: zod.ZodOptional<zod.ZodObject<{
27348
+ title: zod.ZodOptional<zod.ZodString>;
27349
+ revision: zod.ZodOptional<zod.ZodNumber>;
27350
+ deleted: zod.ZodBoolean;
27351
+ }, zod_v4_core.$strip>>;
27352
+ workspaceId: zod.ZodOptional<zod.ZodString>;
27353
+ approvalRequestId: zod.ZodOptional<zod.ZodString>;
27354
+ inputHash: zod.ZodString;
27355
+ attempt: zod.ZodNumber;
27356
+ decision: zod.ZodOptional<zod.ZodObject<{
27357
+ mode: zod.ZodEnum<{
27358
+ direct: "direct";
27359
+ confirmed: "confirmed";
27360
+ approved: "approved";
27361
+ declined: "declined";
27362
+ }>;
27363
+ reason: zod.ZodOptional<zod.ZodEnum<{
27364
+ inherited_approval_not_applied: "inherited_approval_not_applied";
27365
+ workflow_publish: "workflow_publish";
27366
+ approved_by_caller: "approved_by_caller";
27367
+ }>>;
27368
+ by: zod.ZodString;
27369
+ byLabel: zod.ZodOptional<zod.ZodString>;
27370
+ at: zod.ZodISODateTime;
27371
+ comment: zod.ZodOptional<zod.ZodString>;
27372
+ }, zod_v4_core.$strip>>;
27373
+ error: zod.ZodOptional<zod.ZodObject<{
27374
+ code: zod.ZodString;
27375
+ message: zod.ZodString;
27376
+ reason: zod.ZodOptional<zod.ZodString>;
27377
+ }, zod_v4_core.$strip>>;
27378
+ usage: zod.ZodOptional<zod.ZodObject<{
27379
+ modelCalls: zod.ZodNumber;
27380
+ inputTokens: zod.ZodNumber;
27381
+ outputTokens: zod.ZodNumber;
27382
+ totalTokens: zod.ZodNumber;
27383
+ }, zod_v4_core.$strip>>;
27384
+ correlationId: zod.ZodString;
27385
+ createdAt: zod.ZodISODateTime;
27386
+ startedAt: zod.ZodOptional<zod.ZodISODateTime>;
27387
+ finishedAt: zod.ZodOptional<zod.ZodISODateTime>;
27388
+ expiresAt: zod.ZodOptional<zod.ZodISODateTime>;
27389
+ href: zod.ZodString;
27390
+ }, zod_v4_core.$strip>;
27391
+ readonly headers: {
27392
+ readonly request: readonly ["Idempotency-Key", "Catalyst-Unattended"];
27393
+ readonly response: readonly ["Operation-Run-Id", "Location", "Idempotent-Replayed"];
27394
+ };
27395
+ }>;
27090
27396
  readonly "users.invitation.send": Operation<{
27091
27397
  readonly id: "users.invitation.send";
27092
27398
  readonly method: "POST";
@@ -27281,6 +27587,7 @@ declare const userOperations: {
27281
27587
  updatedAt: zod.ZodISODateTime;
27282
27588
  lastAuthenticatedAt: zod.ZodOptional<zod.ZodISODateTime>;
27283
27589
  }, zod_v4_core.$strip>>;
27590
+ twoFactorEnabled: zod.ZodOptional<zod.ZodBoolean>;
27284
27591
  }, zod_v4_core.$strip>;
27285
27592
  };
27286
27593
  readonly errors: readonly ["NOT_FOUND"];