@work-shape/catalyst-cli 0.8.0-rc.32 → 0.8.0-rc.34

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
@@ -65,6 +65,12 @@ interface AgentConfig {
65
65
  modelReasoningEfforts?: Record<string, ReasoningEffortConfig>;
66
66
  maxSteps?: number;
67
67
  toolNames: string[];
68
+ /**
69
+ * Whether a run its person starts in their own private chat is offered the tools of the MCP
70
+ * servers that person added for themselves, in the group "Deine MCP-Server" (PMCP-4). Unset
71
+ * is on; `false` keeps outside tools away from an agent whose instructions must not meet them.
72
+ */
73
+ ownServers?: boolean;
68
74
  /**
69
75
  * The other agents this agent may start as subagents with `run_agent`, besides itself. Each
70
76
  * is started only where the person may use it in the conversation's workspace.
@@ -4187,6 +4193,7 @@ declare const agentOperations: {
4187
4193
  userId: zod.ZodString;
4188
4194
  displayLabel: zod.ZodString;
4189
4195
  addedAt: zod.ZodISODateTime;
4196
+ deactivated: zod.ZodOptional<zod.ZodLiteral<true>>;
4190
4197
  }, zod_v4_core.$strip>>;
4191
4198
  createdByDisplayLabel: zod.ZodOptional<zod.ZodString>;
4192
4199
  }, zod_v4_core.$strip>;
@@ -13142,8 +13149,8 @@ declare const connectionOperations: {
13142
13149
  readonly schema: z.ZodObject<{
13143
13150
  connections: z.ZodArray<z.ZodObject<{
13144
13151
  state: z.ZodEnum<{
13145
- connected: "connected";
13146
13152
  needs_reconnect: "needs_reconnect";
13153
+ connected: "connected";
13147
13154
  revoked: "revoked";
13148
13155
  not_connected: "not_connected";
13149
13156
  }>;
@@ -13162,6 +13169,54 @@ declare const connectionOperations: {
13162
13169
  }>;
13163
13170
  version: z.ZodNumber;
13164
13171
  }, z.core.$strip>>;
13172
+ ownServer: z.ZodOptional<z.ZodObject<{
13173
+ host: z.ZodString;
13174
+ enabled: z.ZodBoolean;
13175
+ tools: z.ZodNumber;
13176
+ }, z.core.$strip>>;
13177
+ token: z.ZodOptional<z.ZodObject<{
13178
+ version: z.ZodOptional<z.ZodNumber>;
13179
+ }, z.core.$strip>>;
13180
+ }, z.core.$strip>>;
13181
+ ownServers: z.ZodOptional<z.ZodObject<{
13182
+ mayAdd: z.ZodBoolean;
13183
+ entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
13184
+ id: z.ZodString;
13185
+ version: z.ZodNumber;
13186
+ service: z.ZodString;
13187
+ title: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
13188
+ en: z.ZodOptional<z.ZodString>;
13189
+ de: z.ZodOptional<z.ZodString>;
13190
+ }, z.core.$strict>]>;
13191
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
13192
+ en: z.ZodOptional<z.ZodString>;
13193
+ de: z.ZodOptional<z.ZodString>;
13194
+ }, z.core.$strict>]>;
13195
+ mark: z.ZodObject<{
13196
+ color: z.ZodOptional<z.ZodString>;
13197
+ logo: z.ZodOptional<z.ZodString>;
13198
+ }, z.core.$strip>;
13199
+ url: z.ZodString;
13200
+ signIn: z.ZodEnum<{
13201
+ oauth: "oauth";
13202
+ token: "token";
13203
+ }>;
13204
+ token: z.ZodOptional<z.ZodObject<{
13205
+ help: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
13206
+ en: z.ZodOptional<z.ZodString>;
13207
+ de: z.ZodOptional<z.ZodString>;
13208
+ }, z.core.$strict>]>;
13209
+ link: z.ZodOptional<z.ZodString>;
13210
+ header: z.ZodOptional<z.ZodString>;
13211
+ }, z.core.$strip>>;
13212
+ tools: z.ZodArray<z.ZodObject<{
13213
+ name: z.ZodString;
13214
+ effect: z.ZodEnum<{
13215
+ reading: "reading";
13216
+ changing: "changing";
13217
+ }>;
13218
+ }, z.core.$strip>>;
13219
+ }, z.core.$strip>>>;
13165
13220
  }, z.core.$strip>>;
13166
13221
  }, z.core.$strip>;
13167
13222
  };
@@ -13187,8 +13242,8 @@ declare const connectionOperations: {
13187
13242
  readonly schema: z.ZodObject<{
13188
13243
  people: z.ZodArray<z.ZodObject<{
13189
13244
  state: z.ZodEnum<{
13190
- connected: "connected";
13191
13245
  needs_reconnect: "needs_reconnect";
13246
+ connected: "connected";
13192
13247
  revoked: "revoked";
13193
13248
  not_connected: "not_connected";
13194
13249
  }>;
@@ -13541,8 +13596,8 @@ declare const connectionOperations: {
13541
13596
  discoveredAt: z.ZodOptional<z.ZodISODateTime>;
13542
13597
  binding: z.ZodOptional<z.ZodObject<{
13543
13598
  state: z.ZodEnum<{
13544
- connected: "connected";
13545
13599
  needs_reconnect: "needs_reconnect";
13600
+ connected: "connected";
13546
13601
  revoked: "revoked";
13547
13602
  }>;
13548
13603
  account: z.ZodOptional<z.ZodString>;
@@ -13576,6 +13631,19 @@ declare const connectionOperations: {
13576
13631
  setBy: z.ZodOptional<z.ZodString>;
13577
13632
  takesEndpoint: z.ZodBoolean;
13578
13633
  }, z.core.$strip>>;
13634
+ ownToken: z.ZodOptional<z.ZodObject<{
13635
+ state: z.ZodEnum<{
13636
+ set: "set";
13637
+ not_set: "not_set";
13638
+ needs_reconnect: "needs_reconnect";
13639
+ }>;
13640
+ scheme: z.ZodEnum<{
13641
+ bearer: "bearer";
13642
+ header: "header";
13643
+ }>;
13644
+ since: z.ZodOptional<z.ZodISODateTime>;
13645
+ version: z.ZodOptional<z.ZodNumber>;
13646
+ }, z.core.$strip>>;
13579
13647
  }, z.core.$strip>;
13580
13648
  };
13581
13649
  readonly errors: readonly ["NOT_FOUND"];
@@ -13867,6 +13935,36 @@ declare const connectionOperations: {
13867
13935
  readonly response: readonly ["Operation-Run-Id", "Idempotent-Replayed"];
13868
13936
  };
13869
13937
  }>;
13938
+ readonly "connections.set_own_secret": Operation<{
13939
+ readonly id: "connections.set_own_secret";
13940
+ readonly method: "PUT";
13941
+ readonly path: "/api/v1/connections/:name/own-secret";
13942
+ readonly summary: "Set or replace the caller's own token for a personal MCP Connection that takes one. The value is never answered";
13943
+ readonly tag: "Connections";
13944
+ readonly auth: "user";
13945
+ readonly scope: "config_assets:write";
13946
+ readonly requires: readonly [];
13947
+ readonly effect: "changing";
13948
+ readonly secret: true;
13949
+ readonly body: z.ZodObject<{
13950
+ value: z.ZodString;
13951
+ expectedVersion: z.ZodNullable<z.ZodNumber>;
13952
+ }, z.core.$strip>;
13953
+ readonly response: {
13954
+ readonly kind: "json";
13955
+ readonly schema: z.ZodObject<{
13956
+ state: z.ZodLiteral<"set">;
13957
+ version: z.ZodNumber;
13958
+ }, z.core.$strip>;
13959
+ };
13960
+ readonly errors: readonly ["NOT_FOUND", "CONFLICT", "VALIDATION_FAILED"];
13961
+ readonly rateClass: "write";
13962
+ } & {
13963
+ readonly headers: {
13964
+ readonly request: readonly ["Idempotency-Key"];
13965
+ readonly response: readonly ["Operation-Run-Id", "Idempotent-Replayed"];
13966
+ };
13967
+ }>;
13870
13968
  readonly "connections.remove_test_credential": Operation<{
13871
13969
  readonly id: "connections.remove_test_credential";
13872
13970
  readonly method: "DELETE";
@@ -16994,6 +17092,7 @@ declare const conversationOperations: {
16994
17092
  userId: z.ZodString;
16995
17093
  displayLabel: z.ZodString;
16996
17094
  addedAt: z.ZodISODateTime;
17095
+ deactivated: z.ZodOptional<z.ZodLiteral<true>>;
16997
17096
  }, z.core.$strip>>;
16998
17097
  createdByDisplayLabel: z.ZodOptional<z.ZodString>;
16999
17098
  latestMessageAt: z.ZodOptional<z.ZodISODateTime>;
@@ -17028,6 +17127,86 @@ declare const conversationOperations: {
17028
17127
  readonly errors: readonly ["NOT_FOUND"];
17029
17128
  readonly rateClass: "read";
17030
17129
  }>;
17130
+ readonly "conversations.shared_from_outside.list": Operation<{
17131
+ readonly id: "conversations.shared_from_outside.list";
17132
+ readonly method: "GET";
17133
+ readonly path: "/api/v1/conversations/shared-from-outside";
17134
+ readonly summary: "List the chats shared with the caller from workspaces they are no member of";
17135
+ readonly tag: "Conversations";
17136
+ readonly auth: "user";
17137
+ readonly scope: "conversation:read";
17138
+ readonly requires: readonly [];
17139
+ readonly effect: "reading";
17140
+ readonly query: z.ZodObject<{
17141
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
17142
+ cursor: z.ZodOptional<z.ZodString>;
17143
+ query: z.ZodOptional<z.ZodString>;
17144
+ }, z.core.$strip>;
17145
+ readonly response: {
17146
+ readonly kind: "page";
17147
+ readonly schema: z.ZodObject<{
17148
+ items: z.ZodArray<z.ZodObject<{
17149
+ id: z.ZodString;
17150
+ clientInstanceId: z.ZodString;
17151
+ collaborationWorkspaceId: z.ZodString;
17152
+ createdByUserId: z.ZodString;
17153
+ createdByExternalUserId: z.ZodString;
17154
+ visibility: z.ZodEnum<{
17155
+ workspace: "workspace";
17156
+ private: "private";
17157
+ }>;
17158
+ title: z.ZodString;
17159
+ status: z.ZodString;
17160
+ createdAt: z.ZodISODateTime;
17161
+ updatedAt: z.ZodISODateTime;
17162
+ retainedUntil: z.ZodISODateTime;
17163
+ deletedAt: z.ZodOptional<z.ZodISODateTime>;
17164
+ subject: z.ZodOptional<z.ZodObject<{
17165
+ kind: z.ZodString;
17166
+ name: z.ZodString;
17167
+ }, z.core.$strip>>;
17168
+ creationTarget: z.ZodOptional<z.ZodLiteral<"instance">>;
17169
+ projectId: z.ZodOptional<z.ZodString>;
17170
+ people: z.ZodArray<z.ZodObject<{
17171
+ userId: z.ZodString;
17172
+ displayLabel: z.ZodString;
17173
+ addedAt: z.ZodISODateTime;
17174
+ deactivated: z.ZodOptional<z.ZodLiteral<true>>;
17175
+ }, z.core.$strip>>;
17176
+ createdByDisplayLabel: z.ZodOptional<z.ZodString>;
17177
+ latestMessageAt: z.ZodOptional<z.ZodISODateTime>;
17178
+ activeRun: z.ZodOptional<z.ZodObject<{
17179
+ id: z.ZodString;
17180
+ conversationId: z.ZodString;
17181
+ ownerUserId: z.ZodOptional<z.ZodString>;
17182
+ inputMessageId: z.ZodOptional<z.ZodString>;
17183
+ agentName: z.ZodString;
17184
+ status: z.ZodEnum<{
17185
+ failed: "failed";
17186
+ running: "running";
17187
+ queued: "queued";
17188
+ cancelled: "cancelled";
17189
+ waiting_for_decision: "waiting_for_decision";
17190
+ waiting_for_subagents: "waiting_for_subagents";
17191
+ cancelling: "cancelling";
17192
+ completed: "completed";
17193
+ }>;
17194
+ startedAt: z.ZodISODateTime;
17195
+ updatedAt: z.ZodISODateTime;
17196
+ lastSequence: z.ZodNumber;
17197
+ }, z.core.$strip>>;
17198
+ unread: z.ZodOptional<z.ZodBoolean>;
17199
+ lastViewedAt: z.ZodOptional<z.ZodISODateTime>;
17200
+ workspaceName: z.ZodString;
17201
+ }, z.core.$strip>>;
17202
+ nextCursor: z.ZodOptional<z.ZodString>;
17203
+ }, z.core.$strip>;
17204
+ readonly order: readonly string[];
17205
+ readonly descending: boolean;
17206
+ };
17207
+ readonly errors: readonly [];
17208
+ readonly rateClass: "read";
17209
+ }>;
17031
17210
  readonly "conversations.create": Operation<{
17032
17211
  readonly id: "conversations.create";
17033
17212
  readonly method: "POST";
@@ -17082,6 +17261,7 @@ declare const conversationOperations: {
17082
17261
  userId: z.ZodString;
17083
17262
  displayLabel: z.ZodString;
17084
17263
  addedAt: z.ZodISODateTime;
17264
+ deactivated: z.ZodOptional<z.ZodLiteral<true>>;
17085
17265
  }, z.core.$strip>>;
17086
17266
  createdByDisplayLabel: z.ZodOptional<z.ZodString>;
17087
17267
  }, z.core.$strip>;
@@ -17130,6 +17310,7 @@ declare const conversationOperations: {
17130
17310
  userId: z.ZodString;
17131
17311
  displayLabel: z.ZodString;
17132
17312
  addedAt: z.ZodISODateTime;
17313
+ deactivated: z.ZodOptional<z.ZodLiteral<true>>;
17133
17314
  }, z.core.$strip>>;
17134
17315
  createdByDisplayLabel: z.ZodOptional<z.ZodString>;
17135
17316
  }, z.core.$strip>;
@@ -17180,6 +17361,7 @@ declare const conversationOperations: {
17180
17361
  userId: z.ZodString;
17181
17362
  displayLabel: z.ZodString;
17182
17363
  addedAt: z.ZodISODateTime;
17364
+ deactivated: z.ZodOptional<z.ZodLiteral<true>>;
17183
17365
  }, z.core.$strip>>;
17184
17366
  createdByDisplayLabel: z.ZodOptional<z.ZodString>;
17185
17367
  }, z.core.$strip>;
@@ -17528,6 +17710,7 @@ declare const conversationOperations: {
17528
17710
  userId: z.ZodString;
17529
17711
  displayLabel: z.ZodString;
17530
17712
  addedAt: z.ZodISODateTime;
17713
+ deactivated: z.ZodOptional<z.ZodLiteral<true>>;
17531
17714
  }, z.core.$strip>>;
17532
17715
  createdByDisplayLabel: z.ZodOptional<z.ZodString>;
17533
17716
  }, z.core.$strip>;
@@ -17576,6 +17759,7 @@ declare const conversationOperations: {
17576
17759
  userId: z.ZodString;
17577
17760
  displayLabel: z.ZodString;
17578
17761
  addedAt: z.ZodISODateTime;
17762
+ deactivated: z.ZodOptional<z.ZodLiteral<true>>;
17579
17763
  }, z.core.$strip>>;
17580
17764
  createdByDisplayLabel: z.ZodOptional<z.ZodString>;
17581
17765
  }, z.core.$strip>;
@@ -17608,7 +17792,7 @@ declare const conversationOperations: {
17608
17792
  readonly id: "conversations.share_candidates";
17609
17793
  readonly method: "GET";
17610
17794
  readonly path: "/api/v1/conversations/:conversationId/share-candidates";
17611
- readonly summary: "The members of the chat's workspace its creator may name, preselected or searched";
17795
+ readonly summary: "The people of the instance the chat's creator may name, preselected or searched";
17612
17796
  readonly tag: "Conversations";
17613
17797
  readonly auth: "user";
17614
17798
  readonly scope: "conversation:read";
@@ -17626,10 +17810,106 @@ declare const conversationOperations: {
17626
17810
  displayLabel: z.ZodString;
17627
17811
  email: z.ZodOptional<z.ZodString>;
17628
17812
  hasAccess: z.ZodBoolean;
17813
+ member: z.ZodBoolean;
17629
17814
  }, z.core.$strip>>;
17630
17815
  }, z.core.$strip>;
17631
17816
  };
17632
- readonly errors: readonly ["NOT_FOUND", "FORBIDDEN"];
17817
+ readonly errors: readonly ["NOT_FOUND", "FORBIDDEN", "RATE_LIMITED"];
17818
+ readonly rateClass: "read";
17819
+ }>;
17820
+ readonly "conversations.reader_offer.get": Operation<{
17821
+ readonly id: "conversations.reader_offer.get";
17822
+ readonly method: "GET";
17823
+ readonly path: "/api/v1/conversations/:conversationId/reader-offer";
17824
+ readonly summary: "What the caller is offered in a chat they read: its workspace, and their agents";
17825
+ readonly tag: "Conversations";
17826
+ readonly auth: "user";
17827
+ readonly scope: "conversation:read";
17828
+ readonly requires: readonly [];
17829
+ readonly effect: "reading";
17830
+ readonly query: z.ZodObject<{
17831
+ locale: z.ZodOptional<z.ZodString>;
17832
+ }, z.core.$strip>;
17833
+ readonly response: {
17834
+ readonly kind: "json";
17835
+ readonly schema: z.ZodObject<{
17836
+ workspace: z.ZodObject<{
17837
+ id: z.ZodString;
17838
+ name: z.ZodString;
17839
+ }, z.core.$strip>;
17840
+ outside: z.ZodBoolean;
17841
+ defaultAgentName: z.ZodOptional<z.ZodString>;
17842
+ agents: z.ZodArray<z.ZodObject<{
17843
+ name: z.ZodString;
17844
+ displayName: z.ZodString;
17845
+ description: z.ZodOptional<z.ZodString>;
17846
+ defaultModelBindingId: z.ZodOptional<z.ZodString>;
17847
+ selectableModels: z.ZodArray<z.ZodObject<{
17848
+ bindingId: z.ZodOptional<z.ZodString>;
17849
+ model: z.ZodString;
17850
+ compactThresholdTokens: z.ZodOptional<z.ZodNumber>;
17851
+ label: z.ZodOptional<z.ZodString>;
17852
+ vendor: z.ZodOptional<z.ZodString>;
17853
+ description: z.ZodOptional<z.ZodString>;
17854
+ region: z.ZodOptional<z.ZodString>;
17855
+ personalDataBlocked: z.ZodOptional<z.ZodLiteral<true>>;
17856
+ usageTier: z.ZodOptional<z.ZodEnum<{
17857
+ low: "low";
17858
+ high: "high";
17859
+ very_low: "very_low";
17860
+ moderate: "moderate";
17861
+ elevated: "elevated";
17862
+ very_high: "very_high";
17863
+ }>>;
17864
+ reasoningEffort: z.ZodOptional<z.ZodEnum<{
17865
+ none: "none";
17866
+ low: "low";
17867
+ medium: "medium";
17868
+ high: "high";
17869
+ xhigh: "xhigh";
17870
+ max: "max";
17871
+ }>>;
17872
+ selectableReasoningEfforts: z.ZodArray<z.ZodEnum<{
17873
+ none: "none";
17874
+ low: "low";
17875
+ medium: "medium";
17876
+ high: "high";
17877
+ xhigh: "xhigh";
17878
+ max: "max";
17879
+ }>>;
17880
+ }, z.core.$strip>>;
17881
+ compactThresholdTokens: z.ZodOptional<z.ZodNumber>;
17882
+ buildsAssets: z.ZodOptional<z.ZodBoolean>;
17883
+ welcomeMessage: z.ZodOptional<z.ZodString>;
17884
+ welcomeSubtitle: z.ZodOptional<z.ZodString>;
17885
+ initialPrompts: z.ZodArray<z.ZodObject<{
17886
+ title: z.ZodString;
17887
+ prompt: z.ZodString;
17888
+ }, z.core.$strip>>;
17889
+ starters: z.ZodOptional<z.ZodArray<z.ZodObject<{
17890
+ skillName: z.ZodString;
17891
+ title: z.ZodString;
17892
+ hint: z.ZodOptional<z.ZodString>;
17893
+ prompt: z.ZodString;
17894
+ icon: z.ZodOptional<z.ZodString>;
17895
+ }, z.core.$strip>>>;
17896
+ connections: z.ZodOptional<z.ZodArray<z.ZodObject<{
17897
+ name: z.ZodString;
17898
+ title: z.ZodString;
17899
+ service: z.ZodOptional<z.ZodString>;
17900
+ connectorType: z.ZodOptional<z.ZodString>;
17901
+ tools: z.ZodArray<z.ZodObject<{
17902
+ toolName: z.ZodString;
17903
+ effect: z.ZodEnum<{
17904
+ reading: "reading";
17905
+ changing: "changing";
17906
+ }>;
17907
+ }, z.core.$strip>>;
17908
+ }, z.core.$strip>>>;
17909
+ }, z.core.$strip>>;
17910
+ }, z.core.$strip>;
17911
+ };
17912
+ readonly errors: readonly ["NOT_FOUND"];
17633
17913
  readonly rateClass: "read";
17634
17914
  }>;
17635
17915
  readonly "conversations.thread.get": Operation<{
@@ -17711,6 +17991,7 @@ declare const conversationOperations: {
17711
17991
  userId: z.ZodString;
17712
17992
  displayLabel: z.ZodString;
17713
17993
  addedAt: z.ZodISODateTime;
17994
+ deactivated: z.ZodOptional<z.ZodLiteral<true>>;
17714
17995
  }, z.core.$strip>>;
17715
17996
  createdByDisplayLabel: z.ZodOptional<z.ZodString>;
17716
17997
  }, z.core.$strip>;
@@ -19126,6 +19407,7 @@ declare const conversationOperations: {
19126
19407
  userId: z.ZodString;
19127
19408
  displayLabel: z.ZodString;
19128
19409
  addedAt: z.ZodISODateTime;
19410
+ deactivated: z.ZodOptional<z.ZodLiteral<true>>;
19129
19411
  }, z.core.$strip>>;
19130
19412
  createdByDisplayLabel: z.ZodOptional<z.ZodString>;
19131
19413
  }, z.core.$strip>;
@@ -19417,6 +19699,7 @@ declare const conversationOperations: {
19417
19699
  userId: z.ZodString;
19418
19700
  displayLabel: z.ZodString;
19419
19701
  addedAt: z.ZodISODateTime;
19702
+ deactivated: z.ZodOptional<z.ZodLiteral<true>>;
19420
19703
  }, z.core.$strip>>;
19421
19704
  createdByDisplayLabel: z.ZodOptional<z.ZodString>;
19422
19705
  }, z.core.$strip>;
@@ -20377,6 +20660,7 @@ declare const conversationOperations: {
20377
20660
  userId: z.ZodString;
20378
20661
  displayLabel: z.ZodString;
20379
20662
  addedAt: z.ZodISODateTime;
20663
+ deactivated: z.ZodOptional<z.ZodLiteral<true>>;
20380
20664
  }, z.core.$strip>>;
20381
20665
  createdByDisplayLabel: z.ZodOptional<z.ZodString>;
20382
20666
  }, z.core.$strip>;
@@ -20668,6 +20952,7 @@ declare const conversationOperations: {
20668
20952
  userId: z.ZodString;
20669
20953
  displayLabel: z.ZodString;
20670
20954
  addedAt: z.ZodISODateTime;
20955
+ deactivated: z.ZodOptional<z.ZodLiteral<true>>;
20671
20956
  }, z.core.$strip>>;
20672
20957
  createdByDisplayLabel: z.ZodOptional<z.ZodString>;
20673
20958
  }, z.core.$strip>;
@@ -21881,6 +22166,7 @@ declare const conversationOperations: {
21881
22166
  userId: z.ZodString;
21882
22167
  displayLabel: z.ZodString;
21883
22168
  addedAt: z.ZodISODateTime;
22169
+ deactivated: z.ZodOptional<z.ZodLiteral<true>>;
21884
22170
  }, z.core.$strip>>;
21885
22171
  createdByDisplayLabel: z.ZodOptional<z.ZodString>;
21886
22172
  }, z.core.$strip>;
@@ -31524,6 +31810,7 @@ declare const projectOperations: {
31524
31810
  userId: zod.ZodString;
31525
31811
  displayLabel: zod.ZodString;
31526
31812
  addedAt: zod.ZodISODateTime;
31813
+ deactivated: zod.ZodOptional<zod.ZodLiteral<true>>;
31527
31814
  }, zod_v4_core.$strip>>;
31528
31815
  createdByDisplayLabel: zod.ZodOptional<zod.ZodString>;
31529
31816
  }, zod_v4_core.$strip>;
@@ -33073,9 +33360,9 @@ declare const referenceOperations: {
33073
33360
  parameters: zod.ZodArray<zod.ZodObject<{
33074
33361
  name: zod.ZodString;
33075
33362
  in: zod.ZodEnum<{
33363
+ header: "header";
33076
33364
  path: "path";
33077
33365
  query: "query";
33078
- header: "header";
33079
33366
  }>;
33080
33367
  description: zod.ZodOptional<zod.ZodString>;
33081
33368
  required: zod.ZodBoolean;
package/dist/index.js CHANGED
@@ -590,6 +590,9 @@ var CONNECTION_OPERATION_STATUSES = [
590
590
  ];
591
591
  var CONNECTION_SECRET_STATES = ["set", "not_set", "unreadable"];
592
592
  var CONNECTION_TEST_CREDENTIAL_STATES = ["not_set", "set", "stale"];
593
+ var CONNECTION_OWN_TOKEN_STATES = ["set", "not_set", "needs_reconnect"];
594
+ var CONNECTION_OWN_TOKEN_SCHEMES = ["bearer", "header"];
595
+ var OWN_SERVER_SIGN_INS = ["oauth", "token"];
593
596
  var CONNECTOR_TEST_STATUSES = [
594
597
  "ready",
595
598
  "unauthorized",
@@ -1041,6 +1044,11 @@ var agentConfigSchema = z.object({
1041
1044
  modelReasoningEfforts: z.record(z.string().min(1), z.enum(REASONING_EFFORTS)).optional(),
1042
1045
  maxSteps: z.number().int().positive().optional(),
1043
1046
  toolNames: z.array(z.string().min(1)).default([]),
1047
+ /**
1048
+ * Whether a run its person starts in their own private chat is offered the tools of the MCP
1049
+ * servers that person added for themselves (PMCP-4). Unset is on.
1050
+ */
1051
+ ownServers: z.boolean().optional(),
1044
1052
  /**
1045
1053
  * The agents this agent may start as subagents through `run_agent`, beside itself. Only an
1046
1054
  * agent whose `toolNames` lists `run_agent` starts any.
@@ -2830,7 +2838,7 @@ import { z as z68 } from "zod";
2830
2838
  // ../api-contract/package.json
2831
2839
  var package_default = {
2832
2840
  name: "@work-shape/catalyst-api-contract",
2833
- version: "0.8.0-rc.32",
2841
+ version: "0.8.0-rc.34",
2834
2842
  license: "MIT",
2835
2843
  repository: {
2836
2844
  type: "git",
@@ -5630,7 +5638,12 @@ var conversationCreationTargetSchema = z33.literal("instance");
5630
5638
  var conversationPersonSchema = z33.object({
5631
5639
  userId: z33.string(),
5632
5640
  displayLabel: z33.string(),
5633
- addedAt: timestampSchema
5641
+ addedAt: timestampSchema,
5642
+ /**
5643
+ * Deactivated, or their deletion was requested: they read nothing while they cannot sign in,
5644
+ * and the panel shows them so, with Remove (CHAT-SHARE-6b).
5645
+ */
5646
+ deactivated: z33.literal(true).optional()
5634
5647
  });
5635
5648
  var conversationSchema = z33.object({
5636
5649
  id: z33.string(),
@@ -5672,7 +5685,11 @@ var conversationPersonRemovedSchema = z33.object({
5672
5685
  var SHARE_CANDIDATES_QUERY_MAX_CHARS = 200;
5673
5686
  var SHARE_CANDIDATES_LIMIT_MAX = 50;
5674
5687
  var shareCandidatesQuerySchema = z33.object({
5675
- /** A prefix of a name, of a word of the name, or of an email, among the people offered. */
5688
+ /**
5689
+ * A prefix of a name or of a word of it, or an email. Among the people offered, a prefix of
5690
+ * an email matches too. From two letters a name prefix also finds active people of the
5691
+ * instance, and an email the person whose whole address it is (CHAT-SHARE-6).
5692
+ */
5676
5693
  query: z33.string().trim().min(1).max(SHARE_CANDIDATES_QUERY_MAX_CHARS).optional(),
5677
5694
  limit: z33.coerce.number().int().min(1).max(SHARE_CANDIDATES_LIMIT_MAX).default(5)
5678
5695
  });
@@ -5680,7 +5697,15 @@ var conversationShareCandidateSchema = z33.object({
5680
5697
  userId: z33.string(),
5681
5698
  displayLabel: z33.string(),
5682
5699
  email: z33.string().optional(),
5683
- hasAccess: z33.boolean()
5700
+ hasAccess: z33.boolean(),
5701
+ member: z33.boolean()
5702
+ });
5703
+ var conversationReaderOfferSchema = z33.object({
5704
+ workspace: z33.object({ id: z33.string(), name: z33.string() }),
5705
+ outside: z33.boolean(),
5706
+ defaultAgentName: z33.string().optional(),
5707
+ /** As `workspaces.agents.list` lists them: those the caller's own turns here may run. */
5708
+ agents: safeConfigSchema.shape.agents
5684
5709
  });
5685
5710
  var conversationShareCandidatesSchema = z33.object({
5686
5711
  candidates: z33.array(conversationShareCandidateSchema)
@@ -6495,6 +6520,9 @@ var conversationListItemSchema = conversationSchema.extend({
6495
6520
  unread: z33.boolean().optional(),
6496
6521
  lastViewedAt: timestampSchema.optional()
6497
6522
  });
6523
+ var sharedFromOutsideListItemSchema = conversationListItemSchema.extend({
6524
+ workspaceName: z33.string()
6525
+ });
6498
6526
  var conversationUserStateSchema = z33.object({
6499
6527
  clientInstanceId: z33.string(),
6500
6528
  conversationId: z33.string(),
@@ -9015,6 +9043,12 @@ var connectionTestCredentialSchema = z44.object({
9015
9043
  /** The Connection's type takes an address of the test credential's own. */
9016
9044
  takesEndpoint: z44.boolean()
9017
9045
  });
9046
+ var connectionOwnTokenSchema = z44.object({
9047
+ state: z44.enum(CONNECTION_OWN_TOKEN_STATES),
9048
+ scheme: z44.enum(CONNECTION_OWN_TOKEN_SCHEMES),
9049
+ since: timestampSchema.optional(),
9050
+ version: z44.number().int().positive().optional()
9051
+ });
9018
9052
  var connectionDetailSchema = z44.object({
9019
9053
  name: z44.string(),
9020
9054
  health: z44.enum(CONNECTION_HEALTH_STATES),
@@ -9047,7 +9081,9 @@ var connectionDetailSchema = z44.object({
9047
9081
  /** Only for a Connection whose auth scheme is `oauth`. */
9048
9082
  oauth: connectionOAuthSchema.optional(),
9049
9083
  /** Only for a shared Connection that takes a test credential, or where one is stored. */
9050
- testCredential: connectionTestCredentialSchema.optional()
9084
+ testCredential: connectionTestCredentialSchema.optional(),
9085
+ /** Only for a personal MCP Connection that takes each person's own token: the reader's. */
9086
+ ownToken: connectionOwnTokenSchema.optional()
9051
9087
  });
9052
9088
  var connectionOAuthStartSchema = z44.object({
9053
9089
  /** The sign-in, for `connections.oauth_sign_in`. It proves nothing and opens nothing. */
@@ -9245,6 +9281,14 @@ var connectionTestCredentialWriteSchema = connectionSecretWriteSchema.extend({
9245
9281
  endpoint: z44.string().url().max(2048).optional(),
9246
9282
  account: z44.string().trim().min(1).max(TEST_CREDENTIAL_ACCOUNT_MAX_CHARS).optional()
9247
9283
  });
9284
+ var connectionOwnSecretWriteSchema = z44.object({
9285
+ value: z44.string().min(1).max(SECRET_VALUE_MAX_CHARS),
9286
+ expectedVersion: z44.number().int().positive().nullable()
9287
+ });
9288
+ var connectionOwnSecretSetSchema = z44.object({
9289
+ state: z44.literal("set"),
9290
+ version: z44.number().int().positive()
9291
+ });
9248
9292
  var connectionTestCredentialSetSchema = z44.object({
9249
9293
  state: z44.literal("set"),
9250
9294
  version: z44.number().int().positive()
@@ -9304,9 +9348,53 @@ var personalConnectionsSchema = z44.object({
9304
9348
  name: z44.string(),
9305
9349
  title: z44.string(),
9306
9350
  service: z44.string().optional(),
9307
- catalogue: z44.object({ entry: z44.string(), part: z44.enum(CATALOGUE_PARTS), version: z44.number().int() }).optional()
9351
+ catalogue: z44.object({ entry: z44.string(), part: z44.enum(CATALOGUE_PARTS), version: z44.number().int() }).optional(),
9352
+ /**
9353
+ * Only on an MCP server the caller added for themselves (PMCP), which is listed to its
9354
+ * owner alone, also while it is switched off: its host, whether it is on, and how many
9355
+ * tools its owner accepted.
9356
+ */
9357
+ ownServer: z44.object({
9358
+ host: z44.string(),
9359
+ enabled: z44.boolean(),
9360
+ tools: z44.number().int().nonnegative()
9361
+ }).optional(),
9362
+ /**
9363
+ * Where each person pastes their own token instead of signing in (PMCP-6): the version
9364
+ * of the caller's token, for replacing it. Its state is the row's `state`.
9365
+ */
9366
+ token: z44.object({ version: z44.number().int().positive().optional() }).optional()
9308
9367
  })
9309
- )
9368
+ ),
9369
+ /**
9370
+ * Whether the caller may add an MCP server for themselves: the operator's switch is on, they
9371
+ * hold `connection.add_own`, and they are signed in to the instance in a first-party session.
9372
+ */
9373
+ ownServers: z44.object({
9374
+ mayAdd: z44.boolean(),
9375
+ /**
9376
+ * The catalogue entries a person adds as their own server (PMCP-CAT), listed while they may
9377
+ * add one: a tile each on the add screen. No credential, client or scope.
9378
+ */
9379
+ entries: z44.array(
9380
+ z44.object({
9381
+ id: z44.string(),
9382
+ version: z44.number().int(),
9383
+ service: z44.string(),
9384
+ title: localizedTextSchema,
9385
+ description: localizedTextSchema,
9386
+ mark: z44.object({ color: z44.string().optional(), logo: z44.string().optional() }),
9387
+ url: z44.string(),
9388
+ signIn: z44.enum(OWN_SERVER_SIGN_INS),
9389
+ token: z44.object({
9390
+ help: localizedTextSchema,
9391
+ link: z44.string().optional(),
9392
+ header: z44.string().optional()
9393
+ }).optional(),
9394
+ tools: z44.array(z44.object({ name: z44.string(), effect: connectionOperationEffectSchema }))
9395
+ })
9396
+ ).optional()
9397
+ }).optional()
9310
9398
  });
9311
9399
  var connectionPeopleSchema = z44.object({
9312
9400
  people: z44.array(
@@ -9476,6 +9564,24 @@ var connectionOperations = {
9476
9564
  errors: ["NOT_FOUND", "CONFLICT", "VALIDATION_FAILED"],
9477
9565
  rateClass: "write"
9478
9566
  }),
9567
+ "connections.set_own_secret": defineRegisteredOperation({
9568
+ id: "connections.set_own_secret",
9569
+ method: "PUT",
9570
+ path: "/api/v1/connections/:name/own-secret",
9571
+ summary: "Set or replace the caller's own token for a personal MCP Connection that takes one. The value is never answered",
9572
+ tag: "Connections",
9573
+ // A person in their first-party session alone (refused in the route for anything else).
9574
+ auth: "user",
9575
+ scope: "config_assets:write",
9576
+ requires: [],
9577
+ effect: "changing",
9578
+ // The call carries a secret. The run keeps no answer and the call never waits.
9579
+ secret: true,
9580
+ body: connectionOwnSecretWriteSchema,
9581
+ response: json(connectionOwnSecretSetSchema),
9582
+ errors: ["NOT_FOUND", "CONFLICT", "VALIDATION_FAILED"],
9583
+ rateClass: "write"
9584
+ }),
9479
9585
  "connections.remove_test_credential": defineRegisteredOperation({
9480
9586
  id: "connections.remove_test_credential",
9481
9587
  method: "DELETE",
@@ -10331,6 +10437,24 @@ var conversationOperations = {
10331
10437
  errors: ["NOT_FOUND"],
10332
10438
  rateClass: "read"
10333
10439
  }),
10440
+ "conversations.shared_from_outside.list": defineOperation({
10441
+ id: "conversations.shared_from_outside.list",
10442
+ method: "GET",
10443
+ path: "/api/v1/conversations/shared-from-outside",
10444
+ summary: "List the chats shared with the caller from workspaces they are no member of",
10445
+ tag: "Conversations",
10446
+ auth: "user",
10447
+ scope: "conversation:read",
10448
+ requires: [],
10449
+ effect: "reading",
10450
+ query: listQuerySchema.extend({
10451
+ /** Keeps the chats whose title contains this text, without regard to case. */
10452
+ query: z47.string().trim().min(1).max(CONVERSATION_TITLE_QUERY_MAX_CHARS).optional()
10453
+ }),
10454
+ response: page(sharedFromOutsideListItemSchema, ["updatedAt", "id"], true),
10455
+ errors: [],
10456
+ rateClass: "read"
10457
+ }),
10334
10458
  "conversations.create": defineOperation({
10335
10459
  id: "conversations.create",
10336
10460
  method: "POST",
@@ -10442,7 +10566,7 @@ var conversationOperations = {
10442
10566
  id: "conversations.share_candidates",
10443
10567
  method: "GET",
10444
10568
  path: "/api/v1/conversations/:conversationId/share-candidates",
10445
- summary: "The members of the chat's workspace its creator may name, preselected or searched",
10569
+ summary: "The people of the instance the chat's creator may name, preselected or searched",
10446
10570
  tag: "Conversations",
10447
10571
  auth: "user",
10448
10572
  scope: "conversation:read",
@@ -10450,7 +10574,22 @@ var conversationOperations = {
10450
10574
  effect: "reading",
10451
10575
  query: shareCandidatesQuerySchema,
10452
10576
  response: json(conversationShareCandidatesSchema),
10453
- errors: ["NOT_FOUND", "FORBIDDEN"],
10577
+ errors: ["NOT_FOUND", "FORBIDDEN", "RATE_LIMITED"],
10578
+ rateClass: "read"
10579
+ }),
10580
+ "conversations.reader_offer.get": defineOperation({
10581
+ id: "conversations.reader_offer.get",
10582
+ method: "GET",
10583
+ path: "/api/v1/conversations/:conversationId/reader-offer",
10584
+ summary: "What the caller is offered in a chat they read: its workspace, and their agents",
10585
+ tag: "Conversations",
10586
+ auth: "user",
10587
+ scope: "conversation:read",
10588
+ requires: [],
10589
+ effect: "reading",
10590
+ query: z47.object({ locale: z47.string().optional() }),
10591
+ response: json(conversationReaderOfferSchema),
10592
+ errors: ["NOT_FOUND"],
10454
10593
  rateClass: "read"
10455
10594
  }),
10456
10595
  "conversations.thread.get": defineOperation({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@work-shape/catalyst-cli",
3
- "version": "0.8.0-rc.32",
3
+ "version": "0.8.0-rc.34",
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.32",
44
- "@work-shape/catalyst-asset-schemas": "0.8.0-rc.32",
45
- "@work-shape/catalyst-api-contract": "0.8.0-rc.32"
43
+ "@work-shape/catalyst-api-client": "0.8.0-rc.34",
44
+ "@work-shape/catalyst-api-contract": "0.8.0-rc.34",
45
+ "@work-shape/catalyst-asset-schemas": "0.8.0-rc.34"
46
46
  },
47
47
  "scripts": {
48
48
  "build": "tsup",